configure revision 3e6c936a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXfixes 5.0.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551test -n "$DJDIR" || exec 7<&0 </dev/null 552exec 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570 571# Identity of this package. 572PACKAGE_NAME='libXfixes' 573PACKAGE_TARNAME='libXfixes' 574PACKAGE_VERSION='5.0.1' 575PACKAGE_STRING='libXfixes 5.0.1' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577PACKAGE_URL='' 578 579ac_unique_file="Makefile.am" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619LIBOBJS 620FIXESEXT_LIBS 621FIXESEXT_CFLAGS 622FIXESEXT_VERSION 623MAN_SUBSTS 624XORG_MAN_PAGE 625ADMIN_MAN_DIR 626DRIVER_MAN_DIR 627MISC_MAN_DIR 628FILE_MAN_DIR 629LIB_MAN_DIR 630APP_MAN_DIR 631ADMIN_MAN_SUFFIX 632DRIVER_MAN_SUFFIX 633MISC_MAN_SUFFIX 634FILE_MAN_SUFFIX 635LIB_MAN_SUFFIX 636APP_MAN_SUFFIX 637INSTALL_CMD 638PKG_CONFIG 639CHANGELOG_CMD 640STRICT_CFLAGS 641CWARNFLAGS 642BASE_CFLAGS 643CPP 644OTOOL64 645OTOOL 646LIPO 647NMEDIT 648DSYMUTIL 649MANIFEST_TOOL 650RANLIB 651ac_ct_AR 652AR 653DLLTOOL 654OBJDUMP 655LN_S 656NM 657ac_ct_DUMPBIN 658DUMPBIN 659LD 660FGREP 661EGREP 662GREP 663SED 664am__fastdepCC_FALSE 665am__fastdepCC_TRUE 666CCDEPMODE 667am__nodep 668AMDEPBACKSLASH 669AMDEP_FALSE 670AMDEP_TRUE 671am__quote 672am__include 673DEPDIR 674OBJEXT 675EXEEXT 676ac_ct_CC 677CPPFLAGS 678LDFLAGS 679CFLAGS 680CC 681host_os 682host_vendor 683host_cpu 684host 685build_os 686build_vendor 687build_cpu 688build 689LIBTOOL 690AM_BACKSLASH 691AM_DEFAULT_VERBOSITY 692AM_DEFAULT_V 693AM_V 694am__untar 695am__tar 696AMTAR 697am__leading_dot 698SET_MAKE 699AWK 700mkdir_p 701MKDIR_P 702INSTALL_STRIP_PROGRAM 703STRIP 704install_sh 705MAKEINFO 706AUTOHEADER 707AUTOMAKE 708AUTOCONF 709ACLOCAL 710VERSION 711PACKAGE 712CYGPATH_W 713am__isrc 714INSTALL_DATA 715INSTALL_SCRIPT 716INSTALL_PROGRAM 717target_alias 718host_alias 719build_alias 720LIBS 721ECHO_T 722ECHO_N 723ECHO_C 724DEFS 725mandir 726localedir 727libdir 728psdir 729pdfdir 730dvidir 731htmldir 732infodir 733docdir 734oldincludedir 735includedir 736localstatedir 737sharedstatedir 738sysconfdir 739datadir 740datarootdir 741libexecdir 742sbindir 743bindir 744program_transform_name 745prefix 746exec_prefix 747PACKAGE_URL 748PACKAGE_BUGREPORT 749PACKAGE_STRING 750PACKAGE_VERSION 751PACKAGE_TARNAME 752PACKAGE_NAME 753PATH_SEPARATOR 754SHELL' 755ac_subst_files='' 756ac_user_opts=' 757enable_option_checking 758enable_silent_rules 759enable_shared 760enable_static 761with_pic 762enable_fast_install 763enable_dependency_tracking 764with_gnu_ld 765with_sysroot 766enable_libtool_lock 767enable_selective_werror 768enable_strict_compilation 769' 770 ac_precious_vars='build_alias 771host_alias 772target_alias 773CC 774CFLAGS 775LDFLAGS 776LIBS 777CPPFLAGS 778CPP 779PKG_CONFIG 780FIXESEXT_CFLAGS 781FIXESEXT_LIBS' 782 783 784# Initialize some variables set by options. 785ac_init_help= 786ac_init_version=false 787ac_unrecognized_opts= 788ac_unrecognized_sep= 789# The variables have the same names as the options, with 790# dashes changed to underlines. 791cache_file=/dev/null 792exec_prefix=NONE 793no_create= 794no_recursion= 795prefix=NONE 796program_prefix=NONE 797program_suffix=NONE 798program_transform_name=s,x,x, 799silent= 800site= 801srcdir= 802verbose= 803x_includes=NONE 804x_libraries=NONE 805 806# Installation directory options. 807# These are left unexpanded so users can "make install exec_prefix=/foo" 808# and all the variables that are supposed to be based on exec_prefix 809# by default will actually change. 810# Use braces instead of parens because sh, perl, etc. also accept them. 811# (The list follows the same order as the GNU Coding Standards.) 812bindir='${exec_prefix}/bin' 813sbindir='${exec_prefix}/sbin' 814libexecdir='${exec_prefix}/libexec' 815datarootdir='${prefix}/share' 816datadir='${datarootdir}' 817sysconfdir='${prefix}/etc' 818sharedstatedir='${prefix}/com' 819localstatedir='${prefix}/var' 820includedir='${prefix}/include' 821oldincludedir='/usr/include' 822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 823infodir='${datarootdir}/info' 824htmldir='${docdir}' 825dvidir='${docdir}' 826pdfdir='${docdir}' 827psdir='${docdir}' 828libdir='${exec_prefix}/lib' 829localedir='${datarootdir}/locale' 830mandir='${datarootdir}/man' 831 832ac_prev= 833ac_dashdash= 834for ac_option 835do 836 # If the previous option needs an argument, assign it. 837 if test -n "$ac_prev"; then 838 eval $ac_prev=\$ac_option 839 ac_prev= 840 continue 841 fi 842 843 case $ac_option in 844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 845 *=) ac_optarg= ;; 846 *) ac_optarg=yes ;; 847 esac 848 849 # Accept the important Cygnus configure options, so we can diagnose typos. 850 851 case $ac_dashdash$ac_option in 852 --) 853 ac_dashdash=yes ;; 854 855 -bindir | --bindir | --bindi | --bind | --bin | --bi) 856 ac_prev=bindir ;; 857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 858 bindir=$ac_optarg ;; 859 860 -build | --build | --buil | --bui | --bu) 861 ac_prev=build_alias ;; 862 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 863 build_alias=$ac_optarg ;; 864 865 -cache-file | --cache-file | --cache-fil | --cache-fi \ 866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 867 ac_prev=cache_file ;; 868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 870 cache_file=$ac_optarg ;; 871 872 --config-cache | -C) 873 cache_file=config.cache ;; 874 875 -datadir | --datadir | --datadi | --datad) 876 ac_prev=datadir ;; 877 -datadir=* | --datadir=* | --datadi=* | --datad=*) 878 datadir=$ac_optarg ;; 879 880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 881 | --dataroo | --dataro | --datar) 882 ac_prev=datarootdir ;; 883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 885 datarootdir=$ac_optarg ;; 886 887 -disable-* | --disable-*) 888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 889 # Reject names that are not valid shell variable names. 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891 as_fn_error $? "invalid feature name: $ac_useropt" 892 ac_useropt_orig=$ac_useropt 893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 894 case $ac_user_opts in 895 *" 896"enable_$ac_useropt" 897"*) ;; 898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 899 ac_unrecognized_sep=', ';; 900 esac 901 eval enable_$ac_useropt=no ;; 902 903 -docdir | --docdir | --docdi | --doc | --do) 904 ac_prev=docdir ;; 905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 906 docdir=$ac_optarg ;; 907 908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 909 ac_prev=dvidir ;; 910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 911 dvidir=$ac_optarg ;; 912 913 -enable-* | --enable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: $ac_useropt" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922"enable_$ac_useropt" 923"*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=\$ac_optarg ;; 928 929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 931 | --exec | --exe | --ex) 932 ac_prev=exec_prefix ;; 933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 935 | --exec=* | --exe=* | --ex=*) 936 exec_prefix=$ac_optarg ;; 937 938 -gas | --gas | --ga | --g) 939 # Obsolete; use --with-gas. 940 with_gas=yes ;; 941 942 -help | --help | --hel | --he | -h) 943 ac_init_help=long ;; 944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 945 ac_init_help=recursive ;; 946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 947 ac_init_help=short ;; 948 949 -host | --host | --hos | --ho) 950 ac_prev=host_alias ;; 951 -host=* | --host=* | --hos=* | --ho=*) 952 host_alias=$ac_optarg ;; 953 954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 955 ac_prev=htmldir ;; 956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 957 | --ht=*) 958 htmldir=$ac_optarg ;; 959 960 -includedir | --includedir | --includedi | --included | --include \ 961 | --includ | --inclu | --incl | --inc) 962 ac_prev=includedir ;; 963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 964 | --includ=* | --inclu=* | --incl=* | --inc=*) 965 includedir=$ac_optarg ;; 966 967 -infodir | --infodir | --infodi | --infod | --info | --inf) 968 ac_prev=infodir ;; 969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 970 infodir=$ac_optarg ;; 971 972 -libdir | --libdir | --libdi | --libd) 973 ac_prev=libdir ;; 974 -libdir=* | --libdir=* | --libdi=* | --libd=*) 975 libdir=$ac_optarg ;; 976 977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 978 | --libexe | --libex | --libe) 979 ac_prev=libexecdir ;; 980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 981 | --libexe=* | --libex=* | --libe=*) 982 libexecdir=$ac_optarg ;; 983 984 -localedir | --localedir | --localedi | --localed | --locale) 985 ac_prev=localedir ;; 986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 987 localedir=$ac_optarg ;; 988 989 -localstatedir | --localstatedir | --localstatedi | --localstated \ 990 | --localstate | --localstat | --localsta | --localst | --locals) 991 ac_prev=localstatedir ;; 992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 994 localstatedir=$ac_optarg ;; 995 996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 997 ac_prev=mandir ;; 998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 999 mandir=$ac_optarg ;; 1000 1001 -nfp | --nfp | --nf) 1002 # Obsolete; use --without-fp. 1003 with_fp=no ;; 1004 1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1006 | --no-cr | --no-c | -n) 1007 no_create=yes ;; 1008 1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1011 no_recursion=yes ;; 1012 1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1015 | --oldin | --oldi | --old | --ol | --o) 1016 ac_prev=oldincludedir ;; 1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1020 oldincludedir=$ac_optarg ;; 1021 1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1023 ac_prev=prefix ;; 1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1025 prefix=$ac_optarg ;; 1026 1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1028 | --program-pre | --program-pr | --program-p) 1029 ac_prev=program_prefix ;; 1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1032 program_prefix=$ac_optarg ;; 1033 1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1035 | --program-suf | --program-su | --program-s) 1036 ac_prev=program_suffix ;; 1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1039 program_suffix=$ac_optarg ;; 1040 1041 -program-transform-name | --program-transform-name \ 1042 | --program-transform-nam | --program-transform-na \ 1043 | --program-transform-n | --program-transform- \ 1044 | --program-transform | --program-transfor \ 1045 | --program-transfo | --program-transf \ 1046 | --program-trans | --program-tran \ 1047 | --progr-tra | --program-tr | --program-t) 1048 ac_prev=program_transform_name ;; 1049 -program-transform-name=* | --program-transform-name=* \ 1050 | --program-transform-nam=* | --program-transform-na=* \ 1051 | --program-transform-n=* | --program-transform-=* \ 1052 | --program-transform=* | --program-transfor=* \ 1053 | --program-transfo=* | --program-transf=* \ 1054 | --program-trans=* | --program-tran=* \ 1055 | --progr-tra=* | --program-tr=* | --program-t=*) 1056 program_transform_name=$ac_optarg ;; 1057 1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1059 ac_prev=pdfdir ;; 1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1061 pdfdir=$ac_optarg ;; 1062 1063 -psdir | --psdir | --psdi | --psd | --ps) 1064 ac_prev=psdir ;; 1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1066 psdir=$ac_optarg ;; 1067 1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1069 | -silent | --silent | --silen | --sile | --sil) 1070 silent=yes ;; 1071 1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1073 ac_prev=sbindir ;; 1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1075 | --sbi=* | --sb=*) 1076 sbindir=$ac_optarg ;; 1077 1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1080 | --sharedst | --shareds | --shared | --share | --shar \ 1081 | --sha | --sh) 1082 ac_prev=sharedstatedir ;; 1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1086 | --sha=* | --sh=*) 1087 sharedstatedir=$ac_optarg ;; 1088 1089 -site | --site | --sit) 1090 ac_prev=site ;; 1091 -site=* | --site=* | --sit=*) 1092 site=$ac_optarg ;; 1093 1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1095 ac_prev=srcdir ;; 1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1097 srcdir=$ac_optarg ;; 1098 1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1100 | --syscon | --sysco | --sysc | --sys | --sy) 1101 ac_prev=sysconfdir ;; 1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1104 sysconfdir=$ac_optarg ;; 1105 1106 -target | --target | --targe | --targ | --tar | --ta | --t) 1107 ac_prev=target_alias ;; 1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1109 target_alias=$ac_optarg ;; 1110 1111 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1112 verbose=yes ;; 1113 1114 -version | --version | --versio | --versi | --vers | -V) 1115 ac_init_version=: ;; 1116 1117 -with-* | --with-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error $? "invalid package name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126"with_$ac_useropt" 1127"*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval with_$ac_useropt=\$ac_optarg ;; 1132 1133 -without-* | --without-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: $ac_useropt" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=no ;; 1148 1149 --x) 1150 # Obsolete; use --with-x. 1151 with_x=yes ;; 1152 1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1154 | --x-incl | --x-inc | --x-in | --x-i) 1155 ac_prev=x_includes ;; 1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1158 x_includes=$ac_optarg ;; 1159 1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1162 ac_prev=x_libraries ;; 1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1165 x_libraries=$ac_optarg ;; 1166 1167 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1168Try \`$0 --help' for more information" 1169 ;; 1170 1171 *=*) 1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1173 # Reject names that are not valid shell variable names. 1174 case $ac_envvar in #( 1175 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1177 esac 1178 eval $ac_envvar=\$ac_optarg 1179 export $ac_envvar ;; 1180 1181 *) 1182 # FIXME: should be removed in autoconf 3.0. 1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1187 ;; 1188 1189 esac 1190done 1191 1192if test -n "$ac_prev"; then 1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1194 as_fn_error $? "missing argument to $ac_option" 1195fi 1196 1197if test -n "$ac_unrecognized_opts"; then 1198 case $enable_option_checking in 1199 no) ;; 1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1202 esac 1203fi 1204 1205# Check all directory arguments for consistency. 1206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1207 datadir sysconfdir sharedstatedir localstatedir includedir \ 1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1209 libdir localedir mandir 1210do 1211 eval ac_val=\$$ac_var 1212 # Remove trailing slashes. 1213 case $ac_val in 1214 */ ) 1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1216 eval $ac_var=\$ac_val;; 1217 esac 1218 # Be sure to have absolute directory names. 1219 case $ac_val in 1220 [\\/$]* | ?:[\\/]* ) continue;; 1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1222 esac 1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1224done 1225 1226# There might be people who depend on the old broken behavior: `$host' 1227# used to hold the argument of --host etc. 1228# FIXME: To remove some day. 1229build=$build_alias 1230host=$host_alias 1231target=$target_alias 1232 1233# FIXME: To remove some day. 1234if test "x$host_alias" != x; then 1235 if test "x$build_alias" = x; then 1236 cross_compiling=maybe 1237 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1238 If a cross compiler is detected then cross compile mode will be used" >&2 1239 elif test "x$build_alias" != "x$host_alias"; then 1240 cross_compiling=yes 1241 fi 1242fi 1243 1244ac_tool_prefix= 1245test -n "$host_alias" && ac_tool_prefix=$host_alias- 1246 1247test "$silent" = yes && exec 6>/dev/null 1248 1249 1250ac_pwd=`pwd` && test -n "$ac_pwd" && 1251ac_ls_di=`ls -di .` && 1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1253 as_fn_error $? "working directory cannot be determined" 1254test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1255 as_fn_error $? "pwd does not report name of working directory" 1256 1257 1258# Find the source files, if location was not specified. 1259if test -z "$srcdir"; then 1260 ac_srcdir_defaulted=yes 1261 # Try the directory containing this script, then the parent directory. 1262 ac_confdir=`$as_dirname -- "$as_myself" || 1263$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1264 X"$as_myself" : 'X\(//\)[^/]' \| \ 1265 X"$as_myself" : 'X\(//\)$' \| \ 1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1267$as_echo X"$as_myself" | 1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\/\)[^/].*/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\).*/{ 1281 s//\1/ 1282 q 1283 } 1284 s/.*/./; q'` 1285 srcdir=$ac_confdir 1286 if test ! -r "$srcdir/$ac_unique_file"; then 1287 srcdir=.. 1288 fi 1289else 1290 ac_srcdir_defaulted=no 1291fi 1292if test ! -r "$srcdir/$ac_unique_file"; then 1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1295fi 1296ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1297ac_abs_confdir=`( 1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1299 pwd)` 1300# When building in place, set srcdir=. 1301if test "$ac_abs_confdir" = "$ac_pwd"; then 1302 srcdir=. 1303fi 1304# Remove unnecessary trailing slashes from srcdir. 1305# Double slashes in file names in object file debugging info 1306# mess up M-x gdb in Emacs. 1307case $srcdir in 1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1309esac 1310for ac_var in $ac_precious_vars; do 1311 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_env_${ac_var}_value=\$${ac_var} 1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1314 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1315done 1316 1317# 1318# Report the --help message. 1319# 1320if test "$ac_init_help" = "long"; then 1321 # Omit some internal or obsolete options to make the list less imposing. 1322 # This message is too long to be a string in the A/UX 3.1 sh. 1323 cat <<_ACEOF 1324\`configure' configures libXfixes 5.0.1 to adapt to many kinds of systems. 1325 1326Usage: $0 [OPTION]... [VAR=VALUE]... 1327 1328To assign environment variables (e.g., CC, CFLAGS...), specify them as 1329VAR=VALUE. See below for descriptions of some of the useful variables. 1330 1331Defaults for the options are specified in brackets. 1332 1333Configuration: 1334 -h, --help display this help and exit 1335 --help=short display options specific to this package 1336 --help=recursive display the short help of all the included packages 1337 -V, --version display version information and exit 1338 -q, --quiet, --silent do not print \`checking ...' messages 1339 --cache-file=FILE cache test results in FILE [disabled] 1340 -C, --config-cache alias for \`--cache-file=config.cache' 1341 -n, --no-create do not create output files 1342 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1343 1344Installation directories: 1345 --prefix=PREFIX install architecture-independent files in PREFIX 1346 [$ac_default_prefix] 1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1348 [PREFIX] 1349 1350By default, \`make install' will install all the files in 1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1352an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1353for instance \`--prefix=\$HOME'. 1354 1355For better control, use the options below. 1356 1357Fine tuning of the installation directories: 1358 --bindir=DIR user executables [EPREFIX/bin] 1359 --sbindir=DIR system admin executables [EPREFIX/sbin] 1360 --libexecdir=DIR program executables [EPREFIX/libexec] 1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1364 --libdir=DIR object code libraries [EPREFIX/lib] 1365 --includedir=DIR C header files [PREFIX/include] 1366 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1369 --infodir=DIR info documentation [DATAROOTDIR/info] 1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1371 --mandir=DIR man documentation [DATAROOTDIR/man] 1372 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfixes] 1373 --htmldir=DIR html documentation [DOCDIR] 1374 --dvidir=DIR dvi documentation [DOCDIR] 1375 --pdfdir=DIR pdf documentation [DOCDIR] 1376 --psdir=DIR ps documentation [DOCDIR] 1377_ACEOF 1378 1379 cat <<\_ACEOF 1380 1381Program names: 1382 --program-prefix=PREFIX prepend PREFIX to installed program names 1383 --program-suffix=SUFFIX append SUFFIX to installed program names 1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1385 1386System types: 1387 --build=BUILD configure for building on BUILD [guessed] 1388 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1389_ACEOF 1390fi 1391 1392if test -n "$ac_init_help"; then 1393 case $ac_init_help in 1394 short | recursive ) echo "Configuration of libXfixes 5.0.1:";; 1395 esac 1396 cat <<\_ACEOF 1397 1398Optional Features: 1399 --disable-option-checking ignore unrecognized --enable/--with options 1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1402 --enable-silent-rules less verbose build output (undo: "make V=1") 1403 --disable-silent-rules verbose build output (undo: "make V=0") 1404 --enable-shared[=PKGS] build shared libraries [default=yes] 1405 --enable-static[=PKGS] build static libraries [default=yes] 1406 --enable-fast-install[=PKGS] 1407 optimize for fast installation [default=yes] 1408 --enable-dependency-tracking 1409 do not reject slow dependency extractors 1410 --disable-dependency-tracking 1411 speeds up one-time build 1412 --disable-libtool-lock avoid locking (might break parallel builds) 1413 --disable-selective-werror 1414 Turn off selective compiler errors. (default: 1415 enabled) 1416 --enable-strict-compilation 1417 Enable all warnings from compiler and make them 1418 errors (default: disabled) 1419 1420Optional Packages: 1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1424 both] 1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1426 --with-sysroot=DIR Search for dependent libraries within DIR 1427 (or the compiler's sysroot if not specified). 1428 1429Some influential environment variables: 1430 CC C compiler command 1431 CFLAGS C compiler flags 1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1433 nonstandard directory <lib dir> 1434 LIBS libraries to pass to the linker, e.g. -l<library> 1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1436 you have headers in a nonstandard directory <include dir> 1437 CPP C preprocessor 1438 PKG_CONFIG path to pkg-config utility 1439 FIXESEXT_CFLAGS 1440 C compiler flags for FIXESEXT, overriding pkg-config 1441 FIXESEXT_LIBS 1442 linker flags for FIXESEXT, overriding pkg-config 1443 1444Use these variables to override the choices made by `configure' or to help 1445it to find libraries and programs with nonstandard names/locations. 1446 1447Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1448_ACEOF 1449ac_status=$? 1450fi 1451 1452if test "$ac_init_help" = "recursive"; then 1453 # If there are subdirs, report their specific --help. 1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1455 test -d "$ac_dir" || 1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1457 continue 1458 ac_builddir=. 1459 1460case "$ac_dir" in 1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1462*) 1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1464 # A ".." for each directory in $ac_dir_suffix. 1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1466 case $ac_top_builddir_sub in 1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1469 esac ;; 1470esac 1471ac_abs_top_builddir=$ac_pwd 1472ac_abs_builddir=$ac_pwd$ac_dir_suffix 1473# for backward compatibility: 1474ac_top_builddir=$ac_top_build_prefix 1475 1476case $srcdir in 1477 .) # We are building in place. 1478 ac_srcdir=. 1479 ac_top_srcdir=$ac_top_builddir_sub 1480 ac_abs_top_srcdir=$ac_pwd ;; 1481 [\\/]* | ?:[\\/]* ) # Absolute name. 1482 ac_srcdir=$srcdir$ac_dir_suffix; 1483 ac_top_srcdir=$srcdir 1484 ac_abs_top_srcdir=$srcdir ;; 1485 *) # Relative name. 1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1487 ac_top_srcdir=$ac_top_build_prefix$srcdir 1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1489esac 1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1491 1492 cd "$ac_dir" || { ac_status=$?; continue; } 1493 # Check for guested configure. 1494 if test -f "$ac_srcdir/configure.gnu"; then 1495 echo && 1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1497 elif test -f "$ac_srcdir/configure"; then 1498 echo && 1499 $SHELL "$ac_srcdir/configure" --help=recursive 1500 else 1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1502 fi || ac_status=$? 1503 cd "$ac_pwd" || { ac_status=$?; break; } 1504 done 1505fi 1506 1507test -n "$ac_init_help" && exit $ac_status 1508if $ac_init_version; then 1509 cat <<\_ACEOF 1510libXfixes configure 5.0.1 1511generated by GNU Autoconf 2.68 1512 1513Copyright (C) 2010 Free Software Foundation, Inc. 1514This configure script is free software; the Free Software Foundation 1515gives unlimited permission to copy, distribute and modify it. 1516_ACEOF 1517 exit 1518fi 1519 1520## ------------------------ ## 1521## Autoconf initialization. ## 1522## ------------------------ ## 1523 1524# ac_fn_c_try_compile LINENO 1525# -------------------------- 1526# Try to compile conftest.$ac_ext, and return whether this succeeded. 1527ac_fn_c_try_compile () 1528{ 1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1530 rm -f conftest.$ac_objext 1531 if { { ac_try="$ac_compile" 1532case "(($ac_try" in 1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1534 *) ac_try_echo=$ac_try;; 1535esac 1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1537$as_echo "$ac_try_echo"; } >&5 1538 (eval "$ac_compile") 2>conftest.err 1539 ac_status=$? 1540 if test -s conftest.err; then 1541 grep -v '^ *+' conftest.err >conftest.er1 1542 cat conftest.er1 >&5 1543 mv -f conftest.er1 conftest.err 1544 fi 1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1546 test $ac_status = 0; } && { 1547 test -z "$ac_c_werror_flag" || 1548 test ! -s conftest.err 1549 } && test -s conftest.$ac_objext; then : 1550 ac_retval=0 1551else 1552 $as_echo "$as_me: failed program was:" >&5 1553sed 's/^/| /' conftest.$ac_ext >&5 1554 1555 ac_retval=1 1556fi 1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1558 as_fn_set_status $ac_retval 1559 1560} # ac_fn_c_try_compile 1561 1562# ac_fn_c_try_link LINENO 1563# ----------------------- 1564# Try to link conftest.$ac_ext, and return whether this succeeded. 1565ac_fn_c_try_link () 1566{ 1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1568 rm -f conftest.$ac_objext conftest$ac_exeext 1569 if { { ac_try="$ac_link" 1570case "(($ac_try" in 1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1572 *) ac_try_echo=$ac_try;; 1573esac 1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1575$as_echo "$ac_try_echo"; } >&5 1576 (eval "$ac_link") 2>conftest.err 1577 ac_status=$? 1578 if test -s conftest.err; then 1579 grep -v '^ *+' conftest.err >conftest.er1 1580 cat conftest.er1 >&5 1581 mv -f conftest.er1 conftest.err 1582 fi 1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1584 test $ac_status = 0; } && { 1585 test -z "$ac_c_werror_flag" || 1586 test ! -s conftest.err 1587 } && test -s conftest$ac_exeext && { 1588 test "$cross_compiling" = yes || 1589 $as_test_x conftest$ac_exeext 1590 }; then : 1591 ac_retval=0 1592else 1593 $as_echo "$as_me: failed program was:" >&5 1594sed 's/^/| /' conftest.$ac_ext >&5 1595 1596 ac_retval=1 1597fi 1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1600 # interfere with the next link command; also delete a directory that is 1601 # left behind by Apple's compiler. We do this before executing the actions. 1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_c_try_link 1607 1608# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1609# ------------------------------------------------------- 1610# Tests whether HEADER exists and can be compiled using the include files in 1611# INCLUDES, setting the cache variable VAR accordingly. 1612ac_fn_c_check_header_compile () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1616$as_echo_n "checking for $2... " >&6; } 1617if eval \${$3+:} false; then : 1618 $as_echo_n "(cached) " >&6 1619else 1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1621/* end confdefs.h. */ 1622$4 1623#include <$2> 1624_ACEOF 1625if ac_fn_c_try_compile "$LINENO"; then : 1626 eval "$3=yes" 1627else 1628 eval "$3=no" 1629fi 1630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1631fi 1632eval ac_res=\$$3 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1634$as_echo "$ac_res" >&6; } 1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1636 1637} # ac_fn_c_check_header_compile 1638 1639# ac_fn_c_try_cpp LINENO 1640# ---------------------- 1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_c_try_cpp () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 if { { ac_try="$ac_cpp conftest.$ac_ext" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } > conftest.i && { 1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 }; then : 1664 ac_retval=0 1665else 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=1 1670fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674} # ac_fn_c_try_cpp 1675 1676# ac_fn_c_try_run LINENO 1677# ---------------------- 1678# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1679# that executables *can* be run. 1680ac_fn_c_try_run () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 if { { ac_try="$ac_link" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>&5 1691 ac_status=$? 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1694 { { case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_try") 2>&5 1701 ac_status=$? 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; }; }; then : 1704 ac_retval=0 1705else 1706 $as_echo "$as_me: program exited with status $ac_status" >&5 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=$ac_status 1711fi 1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_c_try_run 1717 1718# ac_fn_c_check_func LINENO FUNC VAR 1719# ---------------------------------- 1720# Tests whether FUNC exists, setting the cache variable VAR accordingly 1721ac_fn_c_check_func () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725$as_echo_n "checking for $2... " >&6; } 1726if eval \${$3+:} false; then : 1727 $as_echo_n "(cached) " >&6 1728else 1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730/* end confdefs.h. */ 1731/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1733#define $2 innocuous_$2 1734 1735/* System header to define __stub macros and hopefully few prototypes, 1736 which can conflict with char $2 (); below. 1737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1738 <limits.h> exists even on freestanding compilers. */ 1739 1740#ifdef __STDC__ 1741# include <limits.h> 1742#else 1743# include <assert.h> 1744#endif 1745 1746#undef $2 1747 1748/* Override any GCC internal prototype to avoid an error. 1749 Use char because int might match the return type of a GCC 1750 builtin and then its argument prototype would still apply. */ 1751#ifdef __cplusplus 1752extern "C" 1753#endif 1754char $2 (); 1755/* The GNU C library defines this for functions which it implements 1756 to always fail with ENOSYS. Some functions are actually named 1757 something starting with __ and the normal name is an alias. */ 1758#if defined __stub_$2 || defined __stub___$2 1759choke me 1760#endif 1761 1762int 1763main () 1764{ 1765return $2 (); 1766 ; 1767 return 0; 1768} 1769_ACEOF 1770if ac_fn_c_try_link "$LINENO"; then : 1771 eval "$3=yes" 1772else 1773 eval "$3=no" 1774fi 1775rm -f core conftest.err conftest.$ac_objext \ 1776 conftest$ac_exeext conftest.$ac_ext 1777fi 1778eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783} # ac_fn_c_check_func 1784 1785# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1786# --------------------------------------------- 1787# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1788# accordingly. 1789ac_fn_c_check_decl () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 as_decl_name=`echo $2|sed 's/ *(.*//'` 1793 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1795$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798else 1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801$4 1802int 1803main () 1804{ 1805#ifndef $as_decl_name 1806#ifdef __cplusplus 1807 (void) $as_decl_use; 1808#else 1809 (void) $as_decl_name; 1810#endif 1811#endif 1812 1813 ; 1814 return 0; 1815} 1816_ACEOF 1817if ac_fn_c_try_compile "$LINENO"; then : 1818 eval "$3=yes" 1819else 1820 eval "$3=no" 1821fi 1822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1823fi 1824eval ac_res=\$$3 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1826$as_echo "$ac_res" >&6; } 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 1829} # ac_fn_c_check_decl 1830cat >config.log <<_ACEOF 1831This file contains any messages produced by compilers while 1832running configure, to aid debugging if configure makes a mistake. 1833 1834It was created by libXfixes $as_me 5.0.1, which was 1835generated by GNU Autoconf 2.68. Invocation command line was 1836 1837 $ $0 $@ 1838 1839_ACEOF 1840exec 5>>config.log 1841{ 1842cat <<_ASUNAME 1843## --------- ## 1844## Platform. ## 1845## --------- ## 1846 1847hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1848uname -m = `(uname -m) 2>/dev/null || echo unknown` 1849uname -r = `(uname -r) 2>/dev/null || echo unknown` 1850uname -s = `(uname -s) 2>/dev/null || echo unknown` 1851uname -v = `(uname -v) 2>/dev/null || echo unknown` 1852 1853/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1854/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1855 1856/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1857/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1858/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1859/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1860/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1861/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1862/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1863 1864_ASUNAME 1865 1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1867for as_dir in $PATH 1868do 1869 IFS=$as_save_IFS 1870 test -z "$as_dir" && as_dir=. 1871 $as_echo "PATH: $as_dir" 1872 done 1873IFS=$as_save_IFS 1874 1875} >&5 1876 1877cat >&5 <<_ACEOF 1878 1879 1880## ----------- ## 1881## Core tests. ## 1882## ----------- ## 1883 1884_ACEOF 1885 1886 1887# Keep a trace of the command line. 1888# Strip out --no-create and --no-recursion so they do not pile up. 1889# Strip out --silent because we don't want to record it for future runs. 1890# Also quote any args containing shell meta-characters. 1891# Make two passes to allow for proper duplicate-argument suppression. 1892ac_configure_args= 1893ac_configure_args0= 1894ac_configure_args1= 1895ac_must_keep_next=false 1896for ac_pass in 1 2 1897do 1898 for ac_arg 1899 do 1900 case $ac_arg in 1901 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1903 | -silent | --silent | --silen | --sile | --sil) 1904 continue ;; 1905 *\'*) 1906 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1907 esac 1908 case $ac_pass in 1909 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1910 2) 1911 as_fn_append ac_configure_args1 " '$ac_arg'" 1912 if test $ac_must_keep_next = true; then 1913 ac_must_keep_next=false # Got value, back to normal. 1914 else 1915 case $ac_arg in 1916 *=* | --config-cache | -C | -disable-* | --disable-* \ 1917 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1918 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1919 | -with-* | --with-* | -without-* | --without-* | --x) 1920 case "$ac_configure_args0 " in 1921 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1922 esac 1923 ;; 1924 -* ) ac_must_keep_next=true ;; 1925 esac 1926 fi 1927 as_fn_append ac_configure_args " '$ac_arg'" 1928 ;; 1929 esac 1930 done 1931done 1932{ ac_configure_args0=; unset ac_configure_args0;} 1933{ ac_configure_args1=; unset ac_configure_args1;} 1934 1935# When interrupted or exit'd, cleanup temporary files, and complete 1936# config.log. We remove comments because anyway the quotes in there 1937# would cause problems or look ugly. 1938# WARNING: Use '\'' to represent an apostrophe within the trap. 1939# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1940trap 'exit_status=$? 1941 # Save into config.log some information that might help in debugging. 1942 { 1943 echo 1944 1945 $as_echo "## ---------------- ## 1946## Cache variables. ## 1947## ---------------- ##" 1948 echo 1949 # The following way of writing the cache mishandles newlines in values, 1950( 1951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1952 eval ac_val=\$$ac_var 1953 case $ac_val in #( 1954 *${as_nl}*) 1955 case $ac_var in #( 1956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1957$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1958 esac 1959 case $ac_var in #( 1960 _ | IFS | as_nl) ;; #( 1961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1962 *) { eval $ac_var=; unset $ac_var;} ;; 1963 esac ;; 1964 esac 1965 done 1966 (set) 2>&1 | 1967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1968 *${as_nl}ac_space=\ *) 1969 sed -n \ 1970 "s/'\''/'\''\\\\'\'''\''/g; 1971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1972 ;; #( 1973 *) 1974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1975 ;; 1976 esac | 1977 sort 1978) 1979 echo 1980 1981 $as_echo "## ----------------- ## 1982## Output variables. ## 1983## ----------------- ##" 1984 echo 1985 for ac_var in $ac_subst_vars 1986 do 1987 eval ac_val=\$$ac_var 1988 case $ac_val in 1989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1990 esac 1991 $as_echo "$ac_var='\''$ac_val'\''" 1992 done | sort 1993 echo 1994 1995 if test -n "$ac_subst_files"; then 1996 $as_echo "## ------------------- ## 1997## File substitutions. ## 1998## ------------------- ##" 1999 echo 2000 for ac_var in $ac_subst_files 2001 do 2002 eval ac_val=\$$ac_var 2003 case $ac_val in 2004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2005 esac 2006 $as_echo "$ac_var='\''$ac_val'\''" 2007 done | sort 2008 echo 2009 fi 2010 2011 if test -s confdefs.h; then 2012 $as_echo "## ----------- ## 2013## confdefs.h. ## 2014## ----------- ##" 2015 echo 2016 cat confdefs.h 2017 echo 2018 fi 2019 test "$ac_signal" != 0 && 2020 $as_echo "$as_me: caught signal $ac_signal" 2021 $as_echo "$as_me: exit $exit_status" 2022 } >&5 2023 rm -f core *.core core.conftest.* && 2024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2025 exit $exit_status 2026' 0 2027for ac_signal in 1 2 13 15; do 2028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2029done 2030ac_signal=0 2031 2032# confdefs.h avoids OS command line length limits that DEFS can exceed. 2033rm -f -r conftest* confdefs.h 2034 2035$as_echo "/* confdefs.h */" > confdefs.h 2036 2037# Predefined preprocessor variables. 2038 2039cat >>confdefs.h <<_ACEOF 2040#define PACKAGE_NAME "$PACKAGE_NAME" 2041_ACEOF 2042 2043cat >>confdefs.h <<_ACEOF 2044#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2045_ACEOF 2046 2047cat >>confdefs.h <<_ACEOF 2048#define PACKAGE_VERSION "$PACKAGE_VERSION" 2049_ACEOF 2050 2051cat >>confdefs.h <<_ACEOF 2052#define PACKAGE_STRING "$PACKAGE_STRING" 2053_ACEOF 2054 2055cat >>confdefs.h <<_ACEOF 2056#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2057_ACEOF 2058 2059cat >>confdefs.h <<_ACEOF 2060#define PACKAGE_URL "$PACKAGE_URL" 2061_ACEOF 2062 2063 2064# Let the site file select an alternate cache file if it wants to. 2065# Prefer an explicitly selected file to automatically selected ones. 2066ac_site_file1=NONE 2067ac_site_file2=NONE 2068if test -n "$CONFIG_SITE"; then 2069 # We do not want a PATH search for config.site. 2070 case $CONFIG_SITE in #(( 2071 -*) ac_site_file1=./$CONFIG_SITE;; 2072 */*) ac_site_file1=$CONFIG_SITE;; 2073 *) ac_site_file1=./$CONFIG_SITE;; 2074 esac 2075elif test "x$prefix" != xNONE; then 2076 ac_site_file1=$prefix/share/config.site 2077 ac_site_file2=$prefix/etc/config.site 2078else 2079 ac_site_file1=$ac_default_prefix/share/config.site 2080 ac_site_file2=$ac_default_prefix/etc/config.site 2081fi 2082for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2083do 2084 test "x$ac_site_file" = xNONE && continue 2085 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2087$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2088 sed 's/^/| /' "$ac_site_file" >&5 2089 . "$ac_site_file" \ 2090 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2092as_fn_error $? "failed to load site script $ac_site_file 2093See \`config.log' for more details" "$LINENO" 5; } 2094 fi 2095done 2096 2097if test -r "$cache_file"; then 2098 # Some versions of bash will fail to source /dev/null (special files 2099 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2100 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2102$as_echo "$as_me: loading cache $cache_file" >&6;} 2103 case $cache_file in 2104 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2105 *) . "./$cache_file";; 2106 esac 2107 fi 2108else 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2110$as_echo "$as_me: creating cache $cache_file" >&6;} 2111 >$cache_file 2112fi 2113 2114# Check that the precious variables saved in the cache have kept the same 2115# value. 2116ac_cache_corrupted=false 2117for ac_var in $ac_precious_vars; do 2118 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2119 eval ac_new_set=\$ac_env_${ac_var}_set 2120 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2121 eval ac_new_val=\$ac_env_${ac_var}_value 2122 case $ac_old_set,$ac_new_set in 2123 set,) 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2125$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2126 ac_cache_corrupted=: ;; 2127 ,set) 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2129$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2130 ac_cache_corrupted=: ;; 2131 ,);; 2132 *) 2133 if test "x$ac_old_val" != "x$ac_new_val"; then 2134 # differences in whitespace do not lead to failure. 2135 ac_old_val_w=`echo x $ac_old_val` 2136 ac_new_val_w=`echo x $ac_new_val` 2137 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2139$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2140 ac_cache_corrupted=: 2141 else 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2143$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2144 eval $ac_var=\$ac_old_val 2145 fi 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2147$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2149$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2150 fi;; 2151 esac 2152 # Pass precious variables to config.status. 2153 if test "$ac_new_set" = set; then 2154 case $ac_new_val in 2155 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2156 *) ac_arg=$ac_var=$ac_new_val ;; 2157 esac 2158 case " $ac_configure_args " in 2159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2160 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2161 esac 2162 fi 2163done 2164if $ac_cache_corrupted; then 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2168$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2169 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2170fi 2171## -------------------- ## 2172## Main body of script. ## 2173## -------------------- ## 2174 2175ac_ext=c 2176ac_cpp='$CPP $CPPFLAGS' 2177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2179ac_compiler_gnu=$ac_cv_c_compiler_gnu 2180 2181 2182 2183ac_config_headers="$ac_config_headers config.h" 2184 2185 2186# Initialize Automake 2187am__api_version='1.13' 2188 2189ac_aux_dir= 2190for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2191 if test -f "$ac_dir/install-sh"; then 2192 ac_aux_dir=$ac_dir 2193 ac_install_sh="$ac_aux_dir/install-sh -c" 2194 break 2195 elif test -f "$ac_dir/install.sh"; then 2196 ac_aux_dir=$ac_dir 2197 ac_install_sh="$ac_aux_dir/install.sh -c" 2198 break 2199 elif test -f "$ac_dir/shtool"; then 2200 ac_aux_dir=$ac_dir 2201 ac_install_sh="$ac_aux_dir/shtool install -c" 2202 break 2203 fi 2204done 2205if test -z "$ac_aux_dir"; then 2206 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2207fi 2208 2209# These three variables are undocumented and unsupported, 2210# and are intended to be withdrawn in a future Autoconf release. 2211# They can cause serious problems if a builder's source tree is in a directory 2212# whose full name contains unusual characters. 2213ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2214ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2215ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2216 2217 2218# Find a good install program. We prefer a C program (faster), 2219# so one script is as good as another. But avoid the broken or 2220# incompatible versions: 2221# SysV /etc/install, /usr/sbin/install 2222# SunOS /usr/etc/install 2223# IRIX /sbin/install 2224# AIX /bin/install 2225# AmigaOS /C/install, which installs bootblocks on floppy discs 2226# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2227# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2228# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2229# OS/2's system install, which has a completely different semantic 2230# ./install, which can be erroneously created by make from ./install.sh. 2231# Reject install programs that cannot install multiple files. 2232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2233$as_echo_n "checking for a BSD-compatible install... " >&6; } 2234if test -z "$INSTALL"; then 2235if ${ac_cv_path_install+:} false; then : 2236 $as_echo_n "(cached) " >&6 2237else 2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2239for as_dir in $PATH 2240do 2241 IFS=$as_save_IFS 2242 test -z "$as_dir" && as_dir=. 2243 # Account for people who put trailing slashes in PATH elements. 2244case $as_dir/ in #(( 2245 ./ | .// | /[cC]/* | \ 2246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2247 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2248 /usr/ucb/* ) ;; 2249 *) 2250 # OSF1 and SCO ODT 3.0 have their own names for install. 2251 # Don't use installbsd from OSF since it installs stuff as root 2252 # by default. 2253 for ac_prog in ginstall scoinst install; do 2254 for ac_exec_ext in '' $ac_executable_extensions; do 2255 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2256 if test $ac_prog = install && 2257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2258 # AIX install. It has an incompatible calling convention. 2259 : 2260 elif test $ac_prog = install && 2261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2262 # program-specific install script used by HP pwplus--don't use. 2263 : 2264 else 2265 rm -rf conftest.one conftest.two conftest.dir 2266 echo one > conftest.one 2267 echo two > conftest.two 2268 mkdir conftest.dir 2269 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2270 test -s conftest.one && test -s conftest.two && 2271 test -s conftest.dir/conftest.one && 2272 test -s conftest.dir/conftest.two 2273 then 2274 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2275 break 3 2276 fi 2277 fi 2278 fi 2279 done 2280 done 2281 ;; 2282esac 2283 2284 done 2285IFS=$as_save_IFS 2286 2287rm -rf conftest.one conftest.two conftest.dir 2288 2289fi 2290 if test "${ac_cv_path_install+set}" = set; then 2291 INSTALL=$ac_cv_path_install 2292 else 2293 # As a last resort, use the slow shell script. Don't cache a 2294 # value for INSTALL within a source directory, because that will 2295 # break other packages using the cache if that directory is 2296 # removed, or if the value is a relative name. 2297 INSTALL=$ac_install_sh 2298 fi 2299fi 2300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2301$as_echo "$INSTALL" >&6; } 2302 2303# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2304# It thinks the first close brace ends the variable substitution. 2305test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2306 2307test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2308 2309test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2310 2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2312$as_echo_n "checking whether build environment is sane... " >&6; } 2313# Reject unsafe characters in $srcdir or the absolute working directory 2314# name. Accept space and tab only in the latter. 2315am_lf=' 2316' 2317case `pwd` in 2318 *[\\\"\#\$\&\'\`$am_lf]*) 2319 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2320esac 2321case $srcdir in 2322 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2323 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2324esac 2325 2326# Do 'set' in a subshell so we don't clobber the current shell's 2327# arguments. Must try -L first in case configure is actually a 2328# symlink; some systems play weird games with the mod time of symlinks 2329# (eg FreeBSD returns the mod time of the symlink's containing 2330# directory). 2331if ( 2332 am_has_slept=no 2333 for am_try in 1 2; do 2334 echo "timestamp, slept: $am_has_slept" > conftest.file 2335 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2336 if test "$*" = "X"; then 2337 # -L didn't work. 2338 set X `ls -t "$srcdir/configure" conftest.file` 2339 fi 2340 if test "$*" != "X $srcdir/configure conftest.file" \ 2341 && test "$*" != "X conftest.file $srcdir/configure"; then 2342 2343 # If neither matched, then we have a broken ls. This can happen 2344 # if, for instance, CONFIG_SHELL is bash and it inherits a 2345 # broken ls alias from the environment. This has actually 2346 # happened. Such a system could not be considered "sane". 2347 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2348 alias in your environment" "$LINENO" 5 2349 fi 2350 if test "$2" = conftest.file || test $am_try -eq 2; then 2351 break 2352 fi 2353 # Just in case. 2354 sleep 1 2355 am_has_slept=yes 2356 done 2357 test "$2" = conftest.file 2358 ) 2359then 2360 # Ok. 2361 : 2362else 2363 as_fn_error $? "newly created file is older than distributed files! 2364Check your system clock" "$LINENO" 5 2365fi 2366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2367$as_echo "yes" >&6; } 2368# If we didn't sleep, we still need to ensure time stamps of config.status and 2369# generated files are strictly newer. 2370am_sleep_pid= 2371if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2372 ( sleep 1 ) & 2373 am_sleep_pid=$! 2374fi 2375 2376rm -f conftest.file 2377 2378test "$program_prefix" != NONE && 2379 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2380# Use a double $ so make ignores it. 2381test "$program_suffix" != NONE && 2382 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2383# Double any \ or $. 2384# By default was `s,x,x', remove it if useless. 2385ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2386program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2387 2388# expand $ac_aux_dir to an absolute path 2389am_aux_dir=`cd $ac_aux_dir && pwd` 2390 2391if test x"${MISSING+set}" != xset; then 2392 case $am_aux_dir in 2393 *\ * | *\ *) 2394 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2395 *) 2396 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2397 esac 2398fi 2399# Use eval to expand $SHELL 2400if eval "$MISSING --is-lightweight"; then 2401 am_missing_run="$MISSING " 2402else 2403 am_missing_run= 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2405$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2406fi 2407 2408if test x"${install_sh}" != xset; then 2409 case $am_aux_dir in 2410 *\ * | *\ *) 2411 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2412 *) 2413 install_sh="\${SHELL} $am_aux_dir/install-sh" 2414 esac 2415fi 2416 2417# Installed binaries are usually stripped using 'strip' when the user 2418# run "make install-strip". However 'strip' might not be the right 2419# tool to use in cross-compilation environments, therefore Automake 2420# will honor the 'STRIP' environment variable to overrule this program. 2421if test "$cross_compiling" != no; then 2422 if test -n "$ac_tool_prefix"; then 2423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2424set dummy ${ac_tool_prefix}strip; ac_word=$2 2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2426$as_echo_n "checking for $ac_word... " >&6; } 2427if ${ac_cv_prog_STRIP+:} false; then : 2428 $as_echo_n "(cached) " >&6 2429else 2430 if test -n "$STRIP"; then 2431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2432else 2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2434for as_dir in $PATH 2435do 2436 IFS=$as_save_IFS 2437 test -z "$as_dir" && as_dir=. 2438 for ac_exec_ext in '' $ac_executable_extensions; do 2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2440 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2442 break 2 2443 fi 2444done 2445 done 2446IFS=$as_save_IFS 2447 2448fi 2449fi 2450STRIP=$ac_cv_prog_STRIP 2451if test -n "$STRIP"; then 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2453$as_echo "$STRIP" >&6; } 2454else 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2456$as_echo "no" >&6; } 2457fi 2458 2459 2460fi 2461if test -z "$ac_cv_prog_STRIP"; then 2462 ac_ct_STRIP=$STRIP 2463 # Extract the first word of "strip", so it can be a program name with args. 2464set dummy strip; ac_word=$2 2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2466$as_echo_n "checking for $ac_word... " >&6; } 2467if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2468 $as_echo_n "(cached) " >&6 2469else 2470 if test -n "$ac_ct_STRIP"; then 2471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2472else 2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2474for as_dir in $PATH 2475do 2476 IFS=$as_save_IFS 2477 test -z "$as_dir" && as_dir=. 2478 for ac_exec_ext in '' $ac_executable_extensions; do 2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2480 ac_cv_prog_ac_ct_STRIP="strip" 2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2482 break 2 2483 fi 2484done 2485 done 2486IFS=$as_save_IFS 2487 2488fi 2489fi 2490ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2491if test -n "$ac_ct_STRIP"; then 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2493$as_echo "$ac_ct_STRIP" >&6; } 2494else 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2496$as_echo "no" >&6; } 2497fi 2498 2499 if test "x$ac_ct_STRIP" = x; then 2500 STRIP=":" 2501 else 2502 case $cross_compiling:$ac_tool_warned in 2503yes:) 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2506ac_tool_warned=yes ;; 2507esac 2508 STRIP=$ac_ct_STRIP 2509 fi 2510else 2511 STRIP="$ac_cv_prog_STRIP" 2512fi 2513 2514fi 2515INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2516 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2518$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2519if test -z "$MKDIR_P"; then 2520 if ${ac_cv_path_mkdir+:} false; then : 2521 $as_echo_n "(cached) " >&6 2522else 2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2524for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2525do 2526 IFS=$as_save_IFS 2527 test -z "$as_dir" && as_dir=. 2528 for ac_prog in mkdir gmkdir; do 2529 for ac_exec_ext in '' $ac_executable_extensions; do 2530 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2531 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2532 'mkdir (GNU coreutils) '* | \ 2533 'mkdir (coreutils) '* | \ 2534 'mkdir (fileutils) '4.1*) 2535 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2536 break 3;; 2537 esac 2538 done 2539 done 2540 done 2541IFS=$as_save_IFS 2542 2543fi 2544 2545 test -d ./--version && rmdir ./--version 2546 if test "${ac_cv_path_mkdir+set}" = set; then 2547 MKDIR_P="$ac_cv_path_mkdir -p" 2548 else 2549 # As a last resort, use the slow shell script. Don't cache a 2550 # value for MKDIR_P within a source directory, because that will 2551 # break other packages using the cache if that directory is 2552 # removed, or if the value is a relative name. 2553 MKDIR_P="$ac_install_sh -d" 2554 fi 2555fi 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2557$as_echo "$MKDIR_P" >&6; } 2558 2559for ac_prog in gawk mawk nawk awk 2560do 2561 # Extract the first word of "$ac_prog", so it can be a program name with args. 2562set dummy $ac_prog; ac_word=$2 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2564$as_echo_n "checking for $ac_word... " >&6; } 2565if ${ac_cv_prog_AWK+:} false; then : 2566 $as_echo_n "(cached) " >&6 2567else 2568 if test -n "$AWK"; then 2569 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2570else 2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2572for as_dir in $PATH 2573do 2574 IFS=$as_save_IFS 2575 test -z "$as_dir" && as_dir=. 2576 for ac_exec_ext in '' $ac_executable_extensions; do 2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2578 ac_cv_prog_AWK="$ac_prog" 2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2580 break 2 2581 fi 2582done 2583 done 2584IFS=$as_save_IFS 2585 2586fi 2587fi 2588AWK=$ac_cv_prog_AWK 2589if test -n "$AWK"; then 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2591$as_echo "$AWK" >&6; } 2592else 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2594$as_echo "no" >&6; } 2595fi 2596 2597 2598 test -n "$AWK" && break 2599done 2600 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2602$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2603set x ${MAKE-make} 2604ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2605if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2606 $as_echo_n "(cached) " >&6 2607else 2608 cat >conftest.make <<\_ACEOF 2609SHELL = /bin/sh 2610all: 2611 @echo '@@@%%%=$(MAKE)=@@@%%%' 2612_ACEOF 2613# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2614case `${MAKE-make} -f conftest.make 2>/dev/null` in 2615 *@@@%%%=?*=@@@%%%*) 2616 eval ac_cv_prog_make_${ac_make}_set=yes;; 2617 *) 2618 eval ac_cv_prog_make_${ac_make}_set=no;; 2619esac 2620rm -f conftest.make 2621fi 2622if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2624$as_echo "yes" >&6; } 2625 SET_MAKE= 2626else 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2628$as_echo "no" >&6; } 2629 SET_MAKE="MAKE=${MAKE-make}" 2630fi 2631 2632rm -rf .tst 2>/dev/null 2633mkdir .tst 2>/dev/null 2634if test -d .tst; then 2635 am__leading_dot=. 2636else 2637 am__leading_dot=_ 2638fi 2639rmdir .tst 2>/dev/null 2640 2641# Check whether --enable-silent-rules was given. 2642if test "${enable_silent_rules+set}" = set; then : 2643 enableval=$enable_silent_rules; 2644fi 2645 2646case $enable_silent_rules in # ((( 2647 yes) AM_DEFAULT_VERBOSITY=0;; 2648 no) AM_DEFAULT_VERBOSITY=1;; 2649 *) AM_DEFAULT_VERBOSITY=1;; 2650esac 2651am_make=${MAKE-make} 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2653$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2654if ${am_cv_make_support_nested_variables+:} false; then : 2655 $as_echo_n "(cached) " >&6 2656else 2657 if $as_echo 'TRUE=$(BAR$(V)) 2658BAR0=false 2659BAR1=true 2660V=1 2661am__doit: 2662 @$(TRUE) 2663.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2664 am_cv_make_support_nested_variables=yes 2665else 2666 am_cv_make_support_nested_variables=no 2667fi 2668fi 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2670$as_echo "$am_cv_make_support_nested_variables" >&6; } 2671if test $am_cv_make_support_nested_variables = yes; then 2672 AM_V='$(V)' 2673 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2674else 2675 AM_V=$AM_DEFAULT_VERBOSITY 2676 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2677fi 2678AM_BACKSLASH='\' 2679 2680if test "`cd $srcdir && pwd`" != "`pwd`"; then 2681 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2682 # is not polluted with repeated "-I." 2683 am__isrc=' -I$(srcdir)' 2684 # test to see if srcdir already configured 2685 if test -f $srcdir/config.status; then 2686 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2687 fi 2688fi 2689 2690# test whether we have cygpath 2691if test -z "$CYGPATH_W"; then 2692 if (cygpath --version) >/dev/null 2>/dev/null; then 2693 CYGPATH_W='cygpath -w' 2694 else 2695 CYGPATH_W=echo 2696 fi 2697fi 2698 2699 2700# Define the identity of the package. 2701 PACKAGE='libXfixes' 2702 VERSION='5.0.1' 2703 2704 2705cat >>confdefs.h <<_ACEOF 2706#define PACKAGE "$PACKAGE" 2707_ACEOF 2708 2709 2710cat >>confdefs.h <<_ACEOF 2711#define VERSION "$VERSION" 2712_ACEOF 2713 2714# Some tools Automake needs. 2715 2716ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2717 2718 2719AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2720 2721 2722AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2723 2724 2725AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2726 2727 2728MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2729 2730# For better backward compatibility. To be removed once Automake 1.9.x 2731# dies out for good. For more background, see: 2732# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2733# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2734mkdir_p='$(MKDIR_P)' 2735 2736# We need awk for the "check" target. The system "awk" is bad on 2737# some platforms. 2738# Always define AMTAR for backward compatibility. Yes, it's still used 2739# in the wild :-( We should find a proper way to deprecate it ... 2740AMTAR='$${TAR-tar}' 2741 2742 2743# We'll loop over all known methods to create a tar archive until one works. 2744_am_tools='gnutar pax cpio none' 2745 2746am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2747 2748 2749 2750 2751 2752 2753 2754# Initialize libtool 2755case `pwd` in 2756 *\ * | *\ *) 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2758$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2759esac 2760 2761 2762 2763macro_version='2.4.2' 2764macro_revision='1.3337' 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778ltmain="$ac_aux_dir/ltmain.sh" 2779 2780# Make sure we can run config.sub. 2781$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2782 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2783 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2785$as_echo_n "checking build system type... " >&6; } 2786if ${ac_cv_build+:} false; then : 2787 $as_echo_n "(cached) " >&6 2788else 2789 ac_build_alias=$build_alias 2790test "x$ac_build_alias" = x && 2791 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2792test "x$ac_build_alias" = x && 2793 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2794ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2796 2797fi 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2799$as_echo "$ac_cv_build" >&6; } 2800case $ac_cv_build in 2801*-*-*) ;; 2802*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2803esac 2804build=$ac_cv_build 2805ac_save_IFS=$IFS; IFS='-' 2806set x $ac_cv_build 2807shift 2808build_cpu=$1 2809build_vendor=$2 2810shift; shift 2811# Remember, the first character of IFS is used to create $*, 2812# except with old shells: 2813build_os=$* 2814IFS=$ac_save_IFS 2815case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2816 2817 2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2819$as_echo_n "checking host system type... " >&6; } 2820if ${ac_cv_host+:} false; then : 2821 $as_echo_n "(cached) " >&6 2822else 2823 if test "x$host_alias" = x; then 2824 ac_cv_host=$ac_cv_build 2825else 2826 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2827 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2828fi 2829 2830fi 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2832$as_echo "$ac_cv_host" >&6; } 2833case $ac_cv_host in 2834*-*-*) ;; 2835*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2836esac 2837host=$ac_cv_host 2838ac_save_IFS=$IFS; IFS='-' 2839set x $ac_cv_host 2840shift 2841host_cpu=$1 2842host_vendor=$2 2843shift; shift 2844# Remember, the first character of IFS is used to create $*, 2845# except with old shells: 2846host_os=$* 2847IFS=$ac_save_IFS 2848case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2849 2850 2851# Backslashify metacharacters that are still active within 2852# double-quoted strings. 2853sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2854 2855# Same as above, but do not quote variable references. 2856double_quote_subst='s/\(["`\\]\)/\\\1/g' 2857 2858# Sed substitution to delay expansion of an escaped shell variable in a 2859# double_quote_subst'ed string. 2860delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2861 2862# Sed substitution to delay expansion of an escaped single quote. 2863delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2864 2865# Sed substitution to avoid accidental globbing in evaled expressions 2866no_glob_subst='s/\*/\\\*/g' 2867 2868ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2869ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2870ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2871 2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2873$as_echo_n "checking how to print strings... " >&6; } 2874# Test print first, because it will be a builtin if present. 2875if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2876 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2877 ECHO='print -r --' 2878elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2879 ECHO='printf %s\n' 2880else 2881 # Use this function as a fallback that always works. 2882 func_fallback_echo () 2883 { 2884 eval 'cat <<_LTECHO_EOF 2885$1 2886_LTECHO_EOF' 2887 } 2888 ECHO='func_fallback_echo' 2889fi 2890 2891# func_echo_all arg... 2892# Invoke $ECHO with all args, space-separated. 2893func_echo_all () 2894{ 2895 $ECHO "" 2896} 2897 2898case "$ECHO" in 2899 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2900$as_echo "printf" >&6; } ;; 2901 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2902$as_echo "print -r" >&6; } ;; 2903 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2904$as_echo "cat" >&6; } ;; 2905esac 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920DEPDIR="${am__leading_dot}deps" 2921 2922ac_config_commands="$ac_config_commands depfiles" 2923 2924 2925am_make=${MAKE-make} 2926cat > confinc << 'END' 2927am__doit: 2928 @echo this is the am__doit target 2929.PHONY: am__doit 2930END 2931# If we don't find an include directive, just comment out the code. 2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2933$as_echo_n "checking for style of include used by $am_make... " >&6; } 2934am__include="#" 2935am__quote= 2936_am_result=none 2937# First try GNU make style include. 2938echo "include confinc" > confmf 2939# Ignore all kinds of additional output from 'make'. 2940case `$am_make -s -f confmf 2> /dev/null` in #( 2941*the\ am__doit\ target*) 2942 am__include=include 2943 am__quote= 2944 _am_result=GNU 2945 ;; 2946esac 2947# Now try BSD make style include. 2948if test "$am__include" = "#"; then 2949 echo '.include "confinc"' > confmf 2950 case `$am_make -s -f confmf 2> /dev/null` in #( 2951 *the\ am__doit\ target*) 2952 am__include=.include 2953 am__quote="\"" 2954 _am_result=BSD 2955 ;; 2956 esac 2957fi 2958 2959 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2961$as_echo "$_am_result" >&6; } 2962rm -f confinc confmf 2963 2964# Check whether --enable-dependency-tracking was given. 2965if test "${enable_dependency_tracking+set}" = set; then : 2966 enableval=$enable_dependency_tracking; 2967fi 2968 2969if test "x$enable_dependency_tracking" != xno; then 2970 am_depcomp="$ac_aux_dir/depcomp" 2971 AMDEPBACKSLASH='\' 2972 am__nodep='_no' 2973fi 2974 if test "x$enable_dependency_tracking" != xno; then 2975 AMDEP_TRUE= 2976 AMDEP_FALSE='#' 2977else 2978 AMDEP_TRUE='#' 2979 AMDEP_FALSE= 2980fi 2981 2982 2983ac_ext=c 2984ac_cpp='$CPP $CPPFLAGS' 2985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2987ac_compiler_gnu=$ac_cv_c_compiler_gnu 2988if test -n "$ac_tool_prefix"; then 2989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2990set dummy ${ac_tool_prefix}gcc; ac_word=$2 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2992$as_echo_n "checking for $ac_word... " >&6; } 2993if ${ac_cv_prog_CC+:} false; then : 2994 $as_echo_n "(cached) " >&6 2995else 2996 if test -n "$CC"; then 2997 ac_cv_prog_CC="$CC" # Let the user override the test. 2998else 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3000for as_dir in $PATH 3001do 3002 IFS=$as_save_IFS 3003 test -z "$as_dir" && as_dir=. 3004 for ac_exec_ext in '' $ac_executable_extensions; do 3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3006 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3008 break 2 3009 fi 3010done 3011 done 3012IFS=$as_save_IFS 3013 3014fi 3015fi 3016CC=$ac_cv_prog_CC 3017if test -n "$CC"; then 3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3019$as_echo "$CC" >&6; } 3020else 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3022$as_echo "no" >&6; } 3023fi 3024 3025 3026fi 3027if test -z "$ac_cv_prog_CC"; then 3028 ac_ct_CC=$CC 3029 # Extract the first word of "gcc", so it can be a program name with args. 3030set dummy gcc; ac_word=$2 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3032$as_echo_n "checking for $ac_word... " >&6; } 3033if ${ac_cv_prog_ac_ct_CC+:} false; then : 3034 $as_echo_n "(cached) " >&6 3035else 3036 if test -n "$ac_ct_CC"; then 3037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3038else 3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3040for as_dir in $PATH 3041do 3042 IFS=$as_save_IFS 3043 test -z "$as_dir" && as_dir=. 3044 for ac_exec_ext in '' $ac_executable_extensions; do 3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3046 ac_cv_prog_ac_ct_CC="gcc" 3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3048 break 2 3049 fi 3050done 3051 done 3052IFS=$as_save_IFS 3053 3054fi 3055fi 3056ac_ct_CC=$ac_cv_prog_ac_ct_CC 3057if test -n "$ac_ct_CC"; then 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3059$as_echo "$ac_ct_CC" >&6; } 3060else 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3062$as_echo "no" >&6; } 3063fi 3064 3065 if test "x$ac_ct_CC" = x; then 3066 CC="" 3067 else 3068 case $cross_compiling:$ac_tool_warned in 3069yes:) 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3072ac_tool_warned=yes ;; 3073esac 3074 CC=$ac_ct_CC 3075 fi 3076else 3077 CC="$ac_cv_prog_CC" 3078fi 3079 3080if test -z "$CC"; then 3081 if test -n "$ac_tool_prefix"; then 3082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3083set dummy ${ac_tool_prefix}cc; ac_word=$2 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3085$as_echo_n "checking for $ac_word... " >&6; } 3086if ${ac_cv_prog_CC+:} false; then : 3087 $as_echo_n "(cached) " >&6 3088else 3089 if test -n "$CC"; then 3090 ac_cv_prog_CC="$CC" # Let the user override the test. 3091else 3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3093for as_dir in $PATH 3094do 3095 IFS=$as_save_IFS 3096 test -z "$as_dir" && as_dir=. 3097 for ac_exec_ext in '' $ac_executable_extensions; do 3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3099 ac_cv_prog_CC="${ac_tool_prefix}cc" 3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3101 break 2 3102 fi 3103done 3104 done 3105IFS=$as_save_IFS 3106 3107fi 3108fi 3109CC=$ac_cv_prog_CC 3110if test -n "$CC"; then 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3112$as_echo "$CC" >&6; } 3113else 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115$as_echo "no" >&6; } 3116fi 3117 3118 3119 fi 3120fi 3121if test -z "$CC"; then 3122 # Extract the first word of "cc", so it can be a program name with args. 3123set dummy cc; ac_word=$2 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3125$as_echo_n "checking for $ac_word... " >&6; } 3126if ${ac_cv_prog_CC+:} false; then : 3127 $as_echo_n "(cached) " >&6 3128else 3129 if test -n "$CC"; then 3130 ac_cv_prog_CC="$CC" # Let the user override the test. 3131else 3132 ac_prog_rejected=no 3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134for as_dir in $PATH 3135do 3136 IFS=$as_save_IFS 3137 test -z "$as_dir" && as_dir=. 3138 for ac_exec_ext in '' $ac_executable_extensions; do 3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3141 ac_prog_rejected=yes 3142 continue 3143 fi 3144 ac_cv_prog_CC="cc" 3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152if test $ac_prog_rejected = yes; then 3153 # We found a bogon in the path, so make sure we never use it. 3154 set dummy $ac_cv_prog_CC 3155 shift 3156 if test $# != 0; then 3157 # We chose a different compiler from the bogus one. 3158 # However, it has the same basename, so the bogon will be chosen 3159 # first if we set CC to just the basename; use the full file name. 3160 shift 3161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3162 fi 3163fi 3164fi 3165fi 3166CC=$ac_cv_prog_CC 3167if test -n "$CC"; then 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3169$as_echo "$CC" >&6; } 3170else 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3172$as_echo "no" >&6; } 3173fi 3174 3175 3176fi 3177if test -z "$CC"; then 3178 if test -n "$ac_tool_prefix"; then 3179 for ac_prog in cl.exe 3180 do 3181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3182set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3184$as_echo_n "checking for $ac_word... " >&6; } 3185if ${ac_cv_prog_CC+:} false; then : 3186 $as_echo_n "(cached) " >&6 3187else 3188 if test -n "$CC"; then 3189 ac_cv_prog_CC="$CC" # Let the user override the test. 3190else 3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3192for as_dir in $PATH 3193do 3194 IFS=$as_save_IFS 3195 test -z "$as_dir" && as_dir=. 3196 for ac_exec_ext in '' $ac_executable_extensions; do 3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3200 break 2 3201 fi 3202done 3203 done 3204IFS=$as_save_IFS 3205 3206fi 3207fi 3208CC=$ac_cv_prog_CC 3209if test -n "$CC"; then 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3211$as_echo "$CC" >&6; } 3212else 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3214$as_echo "no" >&6; } 3215fi 3216 3217 3218 test -n "$CC" && break 3219 done 3220fi 3221if test -z "$CC"; then 3222 ac_ct_CC=$CC 3223 for ac_prog in cl.exe 3224do 3225 # Extract the first word of "$ac_prog", so it can be a program name with args. 3226set dummy $ac_prog; ac_word=$2 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228$as_echo_n "checking for $ac_word... " >&6; } 3229if ${ac_cv_prog_ac_ct_CC+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 if test -n "$ac_ct_CC"; then 3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3234else 3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3242 ac_cv_prog_ac_ct_CC="$ac_prog" 3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246done 3247 done 3248IFS=$as_save_IFS 3249 3250fi 3251fi 3252ac_ct_CC=$ac_cv_prog_ac_ct_CC 3253if test -n "$ac_ct_CC"; then 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3255$as_echo "$ac_ct_CC" >&6; } 3256else 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258$as_echo "no" >&6; } 3259fi 3260 3261 3262 test -n "$ac_ct_CC" && break 3263done 3264 3265 if test "x$ac_ct_CC" = x; then 3266 CC="" 3267 else 3268 case $cross_compiling:$ac_tool_warned in 3269yes:) 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3272ac_tool_warned=yes ;; 3273esac 3274 CC=$ac_ct_CC 3275 fi 3276fi 3277 3278fi 3279 3280 3281test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3283as_fn_error $? "no acceptable C compiler found in \$PATH 3284See \`config.log' for more details" "$LINENO" 5; } 3285 3286# Provide some information about the compiler. 3287$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3288set X $ac_compile 3289ac_compiler=$2 3290for ac_option in --version -v -V -qversion; do 3291 { { ac_try="$ac_compiler $ac_option >&5" 3292case "(($ac_try" in 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3294 *) ac_try_echo=$ac_try;; 3295esac 3296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3297$as_echo "$ac_try_echo"; } >&5 3298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3299 ac_status=$? 3300 if test -s conftest.err; then 3301 sed '10a\ 3302... rest of stderr output deleted ... 3303 10q' conftest.err >conftest.er1 3304 cat conftest.er1 >&5 3305 fi 3306 rm -f conftest.er1 conftest.err 3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3308 test $ac_status = 0; } 3309done 3310 3311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3312/* end confdefs.h. */ 3313 3314int 3315main () 3316{ 3317 3318 ; 3319 return 0; 3320} 3321_ACEOF 3322ac_clean_files_save=$ac_clean_files 3323ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3324# Try to create an executable without -o first, disregard a.out. 3325# It will help us diagnose broken compilers, and finding out an intuition 3326# of exeext. 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3328$as_echo_n "checking whether the C compiler works... " >&6; } 3329ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3330 3331# The possible output files: 3332ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3333 3334ac_rmfiles= 3335for ac_file in $ac_files 3336do 3337 case $ac_file in 3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3339 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3340 esac 3341done 3342rm -f $ac_rmfiles 3343 3344if { { ac_try="$ac_link_default" 3345case "(($ac_try" in 3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3347 *) ac_try_echo=$ac_try;; 3348esac 3349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3350$as_echo "$ac_try_echo"; } >&5 3351 (eval "$ac_link_default") 2>&5 3352 ac_status=$? 3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3354 test $ac_status = 0; }; then : 3355 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3356# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3357# in a Makefile. We should not override ac_cv_exeext if it was cached, 3358# so that the user can short-circuit this test for compilers unknown to 3359# Autoconf. 3360for ac_file in $ac_files '' 3361do 3362 test -f "$ac_file" || continue 3363 case $ac_file in 3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3365 ;; 3366 [ab].out ) 3367 # We found the default executable, but exeext='' is most 3368 # certainly right. 3369 break;; 3370 *.* ) 3371 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3372 then :; else 3373 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3374 fi 3375 # We set ac_cv_exeext here because the later test for it is not 3376 # safe: cross compilers may not add the suffix if given an `-o' 3377 # argument, so we may need to know it at that point already. 3378 # Even if this section looks crufty: it has the advantage of 3379 # actually working. 3380 break;; 3381 * ) 3382 break;; 3383 esac 3384done 3385test "$ac_cv_exeext" = no && ac_cv_exeext= 3386 3387else 3388 ac_file='' 3389fi 3390if test -z "$ac_file"; then : 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3392$as_echo "no" >&6; } 3393$as_echo "$as_me: failed program was:" >&5 3394sed 's/^/| /' conftest.$ac_ext >&5 3395 3396{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3398as_fn_error 77 "C compiler cannot create executables 3399See \`config.log' for more details" "$LINENO" 5; } 3400else 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3402$as_echo "yes" >&6; } 3403fi 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3405$as_echo_n "checking for C compiler default output file name... " >&6; } 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3407$as_echo "$ac_file" >&6; } 3408ac_exeext=$ac_cv_exeext 3409 3410rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3411ac_clean_files=$ac_clean_files_save 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3413$as_echo_n "checking for suffix of executables... " >&6; } 3414if { { ac_try="$ac_link" 3415case "(($ac_try" in 3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3417 *) ac_try_echo=$ac_try;; 3418esac 3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3420$as_echo "$ac_try_echo"; } >&5 3421 (eval "$ac_link") 2>&5 3422 ac_status=$? 3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3424 test $ac_status = 0; }; then : 3425 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3426# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3427# work properly (i.e., refer to `conftest.exe'), while it won't with 3428# `rm'. 3429for ac_file in conftest.exe conftest conftest.*; do 3430 test -f "$ac_file" || continue 3431 case $ac_file in 3432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3433 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3434 break;; 3435 * ) break;; 3436 esac 3437done 3438else 3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3441as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3442See \`config.log' for more details" "$LINENO" 5; } 3443fi 3444rm -f conftest conftest$ac_cv_exeext 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3446$as_echo "$ac_cv_exeext" >&6; } 3447 3448rm -f conftest.$ac_ext 3449EXEEXT=$ac_cv_exeext 3450ac_exeext=$EXEEXT 3451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452/* end confdefs.h. */ 3453#include <stdio.h> 3454int 3455main () 3456{ 3457FILE *f = fopen ("conftest.out", "w"); 3458 return ferror (f) || fclose (f) != 0; 3459 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464ac_clean_files="$ac_clean_files conftest.out" 3465# Check that the compiler produces executables we can run. If not, either 3466# the compiler is broken, or we cross compile. 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3468$as_echo_n "checking whether we are cross compiling... " >&6; } 3469if test "$cross_compiling" != yes; then 3470 { { ac_try="$ac_link" 3471case "(($ac_try" in 3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3473 *) ac_try_echo=$ac_try;; 3474esac 3475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3476$as_echo "$ac_try_echo"; } >&5 3477 (eval "$ac_link") 2>&5 3478 ac_status=$? 3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3480 test $ac_status = 0; } 3481 if { ac_try='./conftest$ac_cv_exeext' 3482 { { case "(($ac_try" in 3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3484 *) ac_try_echo=$ac_try;; 3485esac 3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3487$as_echo "$ac_try_echo"; } >&5 3488 (eval "$ac_try") 2>&5 3489 ac_status=$? 3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3491 test $ac_status = 0; }; }; then 3492 cross_compiling=no 3493 else 3494 if test "$cross_compiling" = maybe; then 3495 cross_compiling=yes 3496 else 3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3499as_fn_error $? "cannot run C compiled programs. 3500If you meant to cross compile, use \`--host'. 3501See \`config.log' for more details" "$LINENO" 5; } 3502 fi 3503 fi 3504fi 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3506$as_echo "$cross_compiling" >&6; } 3507 3508rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3509ac_clean_files=$ac_clean_files_save 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3511$as_echo_n "checking for suffix of object files... " >&6; } 3512if ${ac_cv_objext+:} false; then : 3513 $as_echo_n "(cached) " >&6 3514else 3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3516/* end confdefs.h. */ 3517 3518int 3519main () 3520{ 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526rm -f conftest.o conftest.obj 3527if { { ac_try="$ac_compile" 3528case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3533$as_echo "$ac_try_echo"; } >&5 3534 (eval "$ac_compile") 2>&5 3535 ac_status=$? 3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3537 test $ac_status = 0; }; then : 3538 for ac_file in conftest.o conftest.obj conftest.*; do 3539 test -f "$ac_file" || continue; 3540 case $ac_file in 3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3542 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3543 break;; 3544 esac 3545done 3546else 3547 $as_echo "$as_me: failed program was:" >&5 3548sed 's/^/| /' conftest.$ac_ext >&5 3549 3550{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3552as_fn_error $? "cannot compute suffix of object files: cannot compile 3553See \`config.log' for more details" "$LINENO" 5; } 3554fi 3555rm -f conftest.$ac_cv_objext conftest.$ac_ext 3556fi 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3558$as_echo "$ac_cv_objext" >&6; } 3559OBJEXT=$ac_cv_objext 3560ac_objext=$OBJEXT 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3562$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3563if ${ac_cv_c_compiler_gnu+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3567/* end confdefs.h. */ 3568 3569int 3570main () 3571{ 3572#ifndef __GNUC__ 3573 choke me 3574#endif 3575 3576 ; 3577 return 0; 3578} 3579_ACEOF 3580if ac_fn_c_try_compile "$LINENO"; then : 3581 ac_compiler_gnu=yes 3582else 3583 ac_compiler_gnu=no 3584fi 3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3586ac_cv_c_compiler_gnu=$ac_compiler_gnu 3587 3588fi 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3590$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3591if test $ac_compiler_gnu = yes; then 3592 GCC=yes 3593else 3594 GCC= 3595fi 3596ac_test_CFLAGS=${CFLAGS+set} 3597ac_save_CFLAGS=$CFLAGS 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3599$as_echo_n "checking whether $CC accepts -g... " >&6; } 3600if ${ac_cv_prog_cc_g+:} false; then : 3601 $as_echo_n "(cached) " >&6 3602else 3603 ac_save_c_werror_flag=$ac_c_werror_flag 3604 ac_c_werror_flag=yes 3605 ac_cv_prog_cc_g=no 3606 CFLAGS="-g" 3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3608/* end confdefs.h. */ 3609 3610int 3611main () 3612{ 3613 3614 ; 3615 return 0; 3616} 3617_ACEOF 3618if ac_fn_c_try_compile "$LINENO"; then : 3619 ac_cv_prog_cc_g=yes 3620else 3621 CFLAGS="" 3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3623/* end confdefs.h. */ 3624 3625int 3626main () 3627{ 3628 3629 ; 3630 return 0; 3631} 3632_ACEOF 3633if ac_fn_c_try_compile "$LINENO"; then : 3634 3635else 3636 ac_c_werror_flag=$ac_save_c_werror_flag 3637 CFLAGS="-g" 3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3639/* end confdefs.h. */ 3640 3641int 3642main () 3643{ 3644 3645 ; 3646 return 0; 3647} 3648_ACEOF 3649if ac_fn_c_try_compile "$LINENO"; then : 3650 ac_cv_prog_cc_g=yes 3651fi 3652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3653fi 3654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3655fi 3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3657 ac_c_werror_flag=$ac_save_c_werror_flag 3658fi 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3660$as_echo "$ac_cv_prog_cc_g" >&6; } 3661if test "$ac_test_CFLAGS" = set; then 3662 CFLAGS=$ac_save_CFLAGS 3663elif test $ac_cv_prog_cc_g = yes; then 3664 if test "$GCC" = yes; then 3665 CFLAGS="-g -O2" 3666 else 3667 CFLAGS="-g" 3668 fi 3669else 3670 if test "$GCC" = yes; then 3671 CFLAGS="-O2" 3672 else 3673 CFLAGS= 3674 fi 3675fi 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3677$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3678if ${ac_cv_prog_cc_c89+:} false; then : 3679 $as_echo_n "(cached) " >&6 3680else 3681 ac_cv_prog_cc_c89=no 3682ac_save_CC=$CC 3683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684/* end confdefs.h. */ 3685#include <stdarg.h> 3686#include <stdio.h> 3687#include <sys/types.h> 3688#include <sys/stat.h> 3689/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3690struct buf { int x; }; 3691FILE * (*rcsopen) (struct buf *, struct stat *, int); 3692static char *e (p, i) 3693 char **p; 3694 int i; 3695{ 3696 return p[i]; 3697} 3698static char *f (char * (*g) (char **, int), char **p, ...) 3699{ 3700 char *s; 3701 va_list v; 3702 va_start (v,p); 3703 s = g (p, va_arg (v,int)); 3704 va_end (v); 3705 return s; 3706} 3707 3708/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3709 function prototypes and stuff, but not '\xHH' hex character constants. 3710 These don't provoke an error unfortunately, instead are silently treated 3711 as 'x'. The following induces an error, until -std is added to get 3712 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3713 array size at least. It's necessary to write '\x00'==0 to get something 3714 that's true only with -std. */ 3715int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3716 3717/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3718 inside strings and character constants. */ 3719#define FOO(x) 'x' 3720int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3721 3722int test (int i, double x); 3723struct s1 {int (*f) (int a);}; 3724struct s2 {int (*f) (double a);}; 3725int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3726int argc; 3727char **argv; 3728int 3729main () 3730{ 3731return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3732 ; 3733 return 0; 3734} 3735_ACEOF 3736for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3737 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3738do 3739 CC="$ac_save_CC $ac_arg" 3740 if ac_fn_c_try_compile "$LINENO"; then : 3741 ac_cv_prog_cc_c89=$ac_arg 3742fi 3743rm -f core conftest.err conftest.$ac_objext 3744 test "x$ac_cv_prog_cc_c89" != "xno" && break 3745done 3746rm -f conftest.$ac_ext 3747CC=$ac_save_CC 3748 3749fi 3750# AC_CACHE_VAL 3751case "x$ac_cv_prog_cc_c89" in 3752 x) 3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3754$as_echo "none needed" >&6; } ;; 3755 xno) 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3757$as_echo "unsupported" >&6; } ;; 3758 *) 3759 CC="$CC $ac_cv_prog_cc_c89" 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3761$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3762esac 3763if test "x$ac_cv_prog_cc_c89" != xno; then : 3764 3765fi 3766 3767ac_ext=c 3768ac_cpp='$CPP $CPPFLAGS' 3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3771ac_compiler_gnu=$ac_cv_c_compiler_gnu 3772 3773depcc="$CC" am_compiler_list= 3774 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3776$as_echo_n "checking dependency style of $depcc... " >&6; } 3777if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3778 $as_echo_n "(cached) " >&6 3779else 3780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3781 # We make a subdir and do the tests there. Otherwise we can end up 3782 # making bogus files that we don't know about and never remove. For 3783 # instance it was reported that on HP-UX the gcc test will end up 3784 # making a dummy file named 'D' -- because '-MD' means "put the output 3785 # in D". 3786 rm -rf conftest.dir 3787 mkdir conftest.dir 3788 # Copy depcomp to subdir because otherwise we won't find it if we're 3789 # using a relative directory. 3790 cp "$am_depcomp" conftest.dir 3791 cd conftest.dir 3792 # We will build objects and dependencies in a subdirectory because 3793 # it helps to detect inapplicable dependency modes. For instance 3794 # both Tru64's cc and ICC support -MD to output dependencies as a 3795 # side effect of compilation, but ICC will put the dependencies in 3796 # the current directory while Tru64 will put them in the object 3797 # directory. 3798 mkdir sub 3799 3800 am_cv_CC_dependencies_compiler_type=none 3801 if test "$am_compiler_list" = ""; then 3802 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3803 fi 3804 am__universal=false 3805 case " $depcc " in #( 3806 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3807 esac 3808 3809 for depmode in $am_compiler_list; do 3810 # Setup a source with many dependencies, because some compilers 3811 # like to wrap large dependency lists on column 80 (with \), and 3812 # we should not choose a depcomp mode which is confused by this. 3813 # 3814 # We need to recreate these files for each test, as the compiler may 3815 # overwrite some of them when testing with obscure command lines. 3816 # This happens at least with the AIX C compiler. 3817 : > sub/conftest.c 3818 for i in 1 2 3 4 5 6; do 3819 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3820 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3821 # Solaris 10 /bin/sh. 3822 echo '/* dummy */' > sub/conftst$i.h 3823 done 3824 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3825 3826 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3827 # mode. It turns out that the SunPro C++ compiler does not properly 3828 # handle '-M -o', and we need to detect this. Also, some Intel 3829 # versions had trouble with output in subdirs. 3830 am__obj=sub/conftest.${OBJEXT-o} 3831 am__minus_obj="-o $am__obj" 3832 case $depmode in 3833 gcc) 3834 # This depmode causes a compiler race in universal mode. 3835 test "$am__universal" = false || continue 3836 ;; 3837 nosideeffect) 3838 # After this tag, mechanisms are not by side-effect, so they'll 3839 # only be used when explicitly requested. 3840 if test "x$enable_dependency_tracking" = xyes; then 3841 continue 3842 else 3843 break 3844 fi 3845 ;; 3846 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3847 # This compiler won't grok '-c -o', but also, the minuso test has 3848 # not run yet. These depmodes are late enough in the game, and 3849 # so weak that their functioning should not be impacted. 3850 am__obj=conftest.${OBJEXT-o} 3851 am__minus_obj= 3852 ;; 3853 none) break ;; 3854 esac 3855 if depmode=$depmode \ 3856 source=sub/conftest.c object=$am__obj \ 3857 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3858 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3859 >/dev/null 2>conftest.err && 3860 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3861 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3862 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3863 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3864 # icc doesn't choke on unknown options, it will just issue warnings 3865 # or remarks (even with -Werror). So we grep stderr for any message 3866 # that says an option was ignored or not supported. 3867 # When given -MP, icc 7.0 and 7.1 complain thusly: 3868 # icc: Command line warning: ignoring option '-M'; no argument required 3869 # The diagnosis changed in icc 8.0: 3870 # icc: Command line remark: option '-MP' not supported 3871 if (grep 'ignoring option' conftest.err || 3872 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3873 am_cv_CC_dependencies_compiler_type=$depmode 3874 break 3875 fi 3876 fi 3877 done 3878 3879 cd .. 3880 rm -rf conftest.dir 3881else 3882 am_cv_CC_dependencies_compiler_type=none 3883fi 3884 3885fi 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3887$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3888CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3889 3890 if 3891 test "x$enable_dependency_tracking" != xno \ 3892 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3893 am__fastdepCC_TRUE= 3894 am__fastdepCC_FALSE='#' 3895else 3896 am__fastdepCC_TRUE='#' 3897 am__fastdepCC_FALSE= 3898fi 3899 3900 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3902$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3903if ${ac_cv_path_SED+:} false; then : 3904 $as_echo_n "(cached) " >&6 3905else 3906 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3907 for ac_i in 1 2 3 4 5 6 7; do 3908 ac_script="$ac_script$as_nl$ac_script" 3909 done 3910 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3911 { ac_script=; unset ac_script;} 3912 if test -z "$SED"; then 3913 ac_path_SED_found=false 3914 # Loop through the user's path and test for each of PROGNAME-LIST 3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3916for as_dir in $PATH 3917do 3918 IFS=$as_save_IFS 3919 test -z "$as_dir" && as_dir=. 3920 for ac_prog in sed gsed; do 3921 for ac_exec_ext in '' $ac_executable_extensions; do 3922 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3923 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3924# Check for GNU ac_path_SED and select it if it is found. 3925 # Check for GNU $ac_path_SED 3926case `"$ac_path_SED" --version 2>&1` in 3927*GNU*) 3928 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3929*) 3930 ac_count=0 3931 $as_echo_n 0123456789 >"conftest.in" 3932 while : 3933 do 3934 cat "conftest.in" "conftest.in" >"conftest.tmp" 3935 mv "conftest.tmp" "conftest.in" 3936 cp "conftest.in" "conftest.nl" 3937 $as_echo '' >> "conftest.nl" 3938 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3940 as_fn_arith $ac_count + 1 && ac_count=$as_val 3941 if test $ac_count -gt ${ac_path_SED_max-0}; then 3942 # Best one so far, save it but keep looking for a better one 3943 ac_cv_path_SED="$ac_path_SED" 3944 ac_path_SED_max=$ac_count 3945 fi 3946 # 10*(2^10) chars as input seems more than enough 3947 test $ac_count -gt 10 && break 3948 done 3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3950esac 3951 3952 $ac_path_SED_found && break 3 3953 done 3954 done 3955 done 3956IFS=$as_save_IFS 3957 if test -z "$ac_cv_path_SED"; then 3958 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3959 fi 3960else 3961 ac_cv_path_SED=$SED 3962fi 3963 3964fi 3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3966$as_echo "$ac_cv_path_SED" >&6; } 3967 SED="$ac_cv_path_SED" 3968 rm -f conftest.sed 3969 3970test -z "$SED" && SED=sed 3971Xsed="$SED -e 1s/^X//" 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3984$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3985if ${ac_cv_path_GREP+:} false; then : 3986 $as_echo_n "(cached) " >&6 3987else 3988 if test -z "$GREP"; then 3989 ac_path_GREP_found=false 3990 # Loop through the user's path and test for each of PROGNAME-LIST 3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3992for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3993do 3994 IFS=$as_save_IFS 3995 test -z "$as_dir" && as_dir=. 3996 for ac_prog in grep ggrep; do 3997 for ac_exec_ext in '' $ac_executable_extensions; do 3998 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3999 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4000# Check for GNU ac_path_GREP and select it if it is found. 4001 # Check for GNU $ac_path_GREP 4002case `"$ac_path_GREP" --version 2>&1` in 4003*GNU*) 4004 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4005*) 4006 ac_count=0 4007 $as_echo_n 0123456789 >"conftest.in" 4008 while : 4009 do 4010 cat "conftest.in" "conftest.in" >"conftest.tmp" 4011 mv "conftest.tmp" "conftest.in" 4012 cp "conftest.in" "conftest.nl" 4013 $as_echo 'GREP' >> "conftest.nl" 4014 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4015 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4016 as_fn_arith $ac_count + 1 && ac_count=$as_val 4017 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4018 # Best one so far, save it but keep looking for a better one 4019 ac_cv_path_GREP="$ac_path_GREP" 4020 ac_path_GREP_max=$ac_count 4021 fi 4022 # 10*(2^10) chars as input seems more than enough 4023 test $ac_count -gt 10 && break 4024 done 4025 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4026esac 4027 4028 $ac_path_GREP_found && break 3 4029 done 4030 done 4031 done 4032IFS=$as_save_IFS 4033 if test -z "$ac_cv_path_GREP"; then 4034 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4035 fi 4036else 4037 ac_cv_path_GREP=$GREP 4038fi 4039 4040fi 4041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4042$as_echo "$ac_cv_path_GREP" >&6; } 4043 GREP="$ac_cv_path_GREP" 4044 4045 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4047$as_echo_n "checking for egrep... " >&6; } 4048if ${ac_cv_path_EGREP+:} false; then : 4049 $as_echo_n "(cached) " >&6 4050else 4051 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4052 then ac_cv_path_EGREP="$GREP -E" 4053 else 4054 if test -z "$EGREP"; then 4055 ac_path_EGREP_found=false 4056 # Loop through the user's path and test for each of PROGNAME-LIST 4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4058for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4059do 4060 IFS=$as_save_IFS 4061 test -z "$as_dir" && as_dir=. 4062 for ac_prog in egrep; do 4063 for ac_exec_ext in '' $ac_executable_extensions; do 4064 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4065 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4066# Check for GNU ac_path_EGREP and select it if it is found. 4067 # Check for GNU $ac_path_EGREP 4068case `"$ac_path_EGREP" --version 2>&1` in 4069*GNU*) 4070 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4071*) 4072 ac_count=0 4073 $as_echo_n 0123456789 >"conftest.in" 4074 while : 4075 do 4076 cat "conftest.in" "conftest.in" >"conftest.tmp" 4077 mv "conftest.tmp" "conftest.in" 4078 cp "conftest.in" "conftest.nl" 4079 $as_echo 'EGREP' >> "conftest.nl" 4080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4082 as_fn_arith $ac_count + 1 && ac_count=$as_val 4083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4084 # Best one so far, save it but keep looking for a better one 4085 ac_cv_path_EGREP="$ac_path_EGREP" 4086 ac_path_EGREP_max=$ac_count 4087 fi 4088 # 10*(2^10) chars as input seems more than enough 4089 test $ac_count -gt 10 && break 4090 done 4091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4092esac 4093 4094 $ac_path_EGREP_found && break 3 4095 done 4096 done 4097 done 4098IFS=$as_save_IFS 4099 if test -z "$ac_cv_path_EGREP"; then 4100 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4101 fi 4102else 4103 ac_cv_path_EGREP=$EGREP 4104fi 4105 4106 fi 4107fi 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4109$as_echo "$ac_cv_path_EGREP" >&6; } 4110 EGREP="$ac_cv_path_EGREP" 4111 4112 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4114$as_echo_n "checking for fgrep... " >&6; } 4115if ${ac_cv_path_FGREP+:} false; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4119 then ac_cv_path_FGREP="$GREP -F" 4120 else 4121 if test -z "$FGREP"; then 4122 ac_path_FGREP_found=false 4123 # Loop through the user's path and test for each of PROGNAME-LIST 4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4126do 4127 IFS=$as_save_IFS 4128 test -z "$as_dir" && as_dir=. 4129 for ac_prog in fgrep; do 4130 for ac_exec_ext in '' $ac_executable_extensions; do 4131 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4132 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4133# Check for GNU ac_path_FGREP and select it if it is found. 4134 # Check for GNU $ac_path_FGREP 4135case `"$ac_path_FGREP" --version 2>&1` in 4136*GNU*) 4137 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4138*) 4139 ac_count=0 4140 $as_echo_n 0123456789 >"conftest.in" 4141 while : 4142 do 4143 cat "conftest.in" "conftest.in" >"conftest.tmp" 4144 mv "conftest.tmp" "conftest.in" 4145 cp "conftest.in" "conftest.nl" 4146 $as_echo 'FGREP' >> "conftest.nl" 4147 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4149 as_fn_arith $ac_count + 1 && ac_count=$as_val 4150 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4151 # Best one so far, save it but keep looking for a better one 4152 ac_cv_path_FGREP="$ac_path_FGREP" 4153 ac_path_FGREP_max=$ac_count 4154 fi 4155 # 10*(2^10) chars as input seems more than enough 4156 test $ac_count -gt 10 && break 4157 done 4158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4159esac 4160 4161 $ac_path_FGREP_found && break 3 4162 done 4163 done 4164 done 4165IFS=$as_save_IFS 4166 if test -z "$ac_cv_path_FGREP"; then 4167 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4168 fi 4169else 4170 ac_cv_path_FGREP=$FGREP 4171fi 4172 4173 fi 4174fi 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4176$as_echo "$ac_cv_path_FGREP" >&6; } 4177 FGREP="$ac_cv_path_FGREP" 4178 4179 4180test -z "$GREP" && GREP=grep 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200# Check whether --with-gnu-ld was given. 4201if test "${with_gnu_ld+set}" = set; then : 4202 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4203else 4204 with_gnu_ld=no 4205fi 4206 4207ac_prog=ld 4208if test "$GCC" = yes; then 4209 # Check if gcc -print-prog-name=ld gives a path. 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4211$as_echo_n "checking for ld used by $CC... " >&6; } 4212 case $host in 4213 *-*-mingw*) 4214 # gcc leaves a trailing carriage return which upsets mingw 4215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4216 *) 4217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4218 esac 4219 case $ac_prog in 4220 # Accept absolute paths. 4221 [\\/]* | ?:[\\/]*) 4222 re_direlt='/[^/][^/]*/\.\./' 4223 # Canonicalize the pathname of ld 4224 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4225 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4226 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4227 done 4228 test -z "$LD" && LD="$ac_prog" 4229 ;; 4230 "") 4231 # If it fails, then pretend we aren't using GCC. 4232 ac_prog=ld 4233 ;; 4234 *) 4235 # If it is relative, then search for the first ld in PATH. 4236 with_gnu_ld=unknown 4237 ;; 4238 esac 4239elif test "$with_gnu_ld" = yes; then 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4241$as_echo_n "checking for GNU ld... " >&6; } 4242else 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4244$as_echo_n "checking for non-GNU ld... " >&6; } 4245fi 4246if ${lt_cv_path_LD+:} false; then : 4247 $as_echo_n "(cached) " >&6 4248else 4249 if test -z "$LD"; then 4250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4251 for ac_dir in $PATH; do 4252 IFS="$lt_save_ifs" 4253 test -z "$ac_dir" && ac_dir=. 4254 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4255 lt_cv_path_LD="$ac_dir/$ac_prog" 4256 # Check to see if the program is GNU ld. I'd rather use --version, 4257 # but apparently some variants of GNU ld only accept -v. 4258 # Break only if it was the GNU/non-GNU ld that we prefer. 4259 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4260 *GNU* | *'with BFD'*) 4261 test "$with_gnu_ld" != no && break 4262 ;; 4263 *) 4264 test "$with_gnu_ld" != yes && break 4265 ;; 4266 esac 4267 fi 4268 done 4269 IFS="$lt_save_ifs" 4270else 4271 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4272fi 4273fi 4274 4275LD="$lt_cv_path_LD" 4276if test -n "$LD"; then 4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4278$as_echo "$LD" >&6; } 4279else 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4281$as_echo "no" >&6; } 4282fi 4283test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4285$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4286if ${lt_cv_prog_gnu_ld+:} false; then : 4287 $as_echo_n "(cached) " >&6 4288else 4289 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4290case `$LD -v 2>&1 </dev/null` in 4291*GNU* | *'with BFD'*) 4292 lt_cv_prog_gnu_ld=yes 4293 ;; 4294*) 4295 lt_cv_prog_gnu_ld=no 4296 ;; 4297esac 4298fi 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4300$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4301with_gnu_ld=$lt_cv_prog_gnu_ld 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4312$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4313if ${lt_cv_path_NM+:} false; then : 4314 $as_echo_n "(cached) " >&6 4315else 4316 if test -n "$NM"; then 4317 # Let the user override the test. 4318 lt_cv_path_NM="$NM" 4319else 4320 lt_nm_to_check="${ac_tool_prefix}nm" 4321 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4322 lt_nm_to_check="$lt_nm_to_check nm" 4323 fi 4324 for lt_tmp_nm in $lt_nm_to_check; do 4325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4326 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4327 IFS="$lt_save_ifs" 4328 test -z "$ac_dir" && ac_dir=. 4329 tmp_nm="$ac_dir/$lt_tmp_nm" 4330 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4331 # Check to see if the nm accepts a BSD-compat flag. 4332 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4333 # nm: unknown option "B" ignored 4334 # Tru64's nm complains that /dev/null is an invalid object file 4335 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4336 */dev/null* | *'Invalid file or object type'*) 4337 lt_cv_path_NM="$tmp_nm -B" 4338 break 4339 ;; 4340 *) 4341 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4342 */dev/null*) 4343 lt_cv_path_NM="$tmp_nm -p" 4344 break 4345 ;; 4346 *) 4347 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4348 continue # so that we can try to find one that supports BSD flags 4349 ;; 4350 esac 4351 ;; 4352 esac 4353 fi 4354 done 4355 IFS="$lt_save_ifs" 4356 done 4357 : ${lt_cv_path_NM=no} 4358fi 4359fi 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4361$as_echo "$lt_cv_path_NM" >&6; } 4362if test "$lt_cv_path_NM" != "no"; then 4363 NM="$lt_cv_path_NM" 4364else 4365 # Didn't find any BSD compatible name lister, look for dumpbin. 4366 if test -n "$DUMPBIN"; then : 4367 # Let the user override the test. 4368 else 4369 if test -n "$ac_tool_prefix"; then 4370 for ac_prog in dumpbin "link -dump" 4371 do 4372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4373set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4375$as_echo_n "checking for $ac_word... " >&6; } 4376if ${ac_cv_prog_DUMPBIN+:} false; then : 4377 $as_echo_n "(cached) " >&6 4378else 4379 if test -n "$DUMPBIN"; then 4380 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4381else 4382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4383for as_dir in $PATH 4384do 4385 IFS=$as_save_IFS 4386 test -z "$as_dir" && as_dir=. 4387 for ac_exec_ext in '' $ac_executable_extensions; do 4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4389 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4391 break 2 4392 fi 4393done 4394 done 4395IFS=$as_save_IFS 4396 4397fi 4398fi 4399DUMPBIN=$ac_cv_prog_DUMPBIN 4400if test -n "$DUMPBIN"; then 4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4402$as_echo "$DUMPBIN" >&6; } 4403else 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4405$as_echo "no" >&6; } 4406fi 4407 4408 4409 test -n "$DUMPBIN" && break 4410 done 4411fi 4412if test -z "$DUMPBIN"; then 4413 ac_ct_DUMPBIN=$DUMPBIN 4414 for ac_prog in dumpbin "link -dump" 4415do 4416 # Extract the first word of "$ac_prog", so it can be a program name with args. 4417set dummy $ac_prog; ac_word=$2 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4419$as_echo_n "checking for $ac_word... " >&6; } 4420if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4421 $as_echo_n "(cached) " >&6 4422else 4423 if test -n "$ac_ct_DUMPBIN"; then 4424 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4425else 4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4427for as_dir in $PATH 4428do 4429 IFS=$as_save_IFS 4430 test -z "$as_dir" && as_dir=. 4431 for ac_exec_ext in '' $ac_executable_extensions; do 4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4433 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4435 break 2 4436 fi 4437done 4438 done 4439IFS=$as_save_IFS 4440 4441fi 4442fi 4443ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4444if test -n "$ac_ct_DUMPBIN"; then 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4446$as_echo "$ac_ct_DUMPBIN" >&6; } 4447else 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4449$as_echo "no" >&6; } 4450fi 4451 4452 4453 test -n "$ac_ct_DUMPBIN" && break 4454done 4455 4456 if test "x$ac_ct_DUMPBIN" = x; then 4457 DUMPBIN=":" 4458 else 4459 case $cross_compiling:$ac_tool_warned in 4460yes:) 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4463ac_tool_warned=yes ;; 4464esac 4465 DUMPBIN=$ac_ct_DUMPBIN 4466 fi 4467fi 4468 4469 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4470 *COFF*) 4471 DUMPBIN="$DUMPBIN -symbols" 4472 ;; 4473 *) 4474 DUMPBIN=: 4475 ;; 4476 esac 4477 fi 4478 4479 if test "$DUMPBIN" != ":"; then 4480 NM="$DUMPBIN" 4481 fi 4482fi 4483test -z "$NM" && NM=nm 4484 4485 4486 4487 4488 4489 4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4491$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4492if ${lt_cv_nm_interface+:} false; then : 4493 $as_echo_n "(cached) " >&6 4494else 4495 lt_cv_nm_interface="BSD nm" 4496 echo "int some_variable = 0;" > conftest.$ac_ext 4497 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4498 (eval "$ac_compile" 2>conftest.err) 4499 cat conftest.err >&5 4500 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4501 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4502 cat conftest.err >&5 4503 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4504 cat conftest.out >&5 4505 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4506 lt_cv_nm_interface="MS dumpbin" 4507 fi 4508 rm -f conftest* 4509fi 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4511$as_echo "$lt_cv_nm_interface" >&6; } 4512 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4514$as_echo_n "checking whether ln -s works... " >&6; } 4515LN_S=$as_ln_s 4516if test "$LN_S" = "ln -s"; then 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4518$as_echo "yes" >&6; } 4519else 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4521$as_echo "no, using $LN_S" >&6; } 4522fi 4523 4524# find the maximum length of command line arguments 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4526$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4527if ${lt_cv_sys_max_cmd_len+:} false; then : 4528 $as_echo_n "(cached) " >&6 4529else 4530 i=0 4531 teststring="ABCD" 4532 4533 case $build_os in 4534 msdosdjgpp*) 4535 # On DJGPP, this test can blow up pretty badly due to problems in libc 4536 # (any single argument exceeding 2000 bytes causes a buffer overrun 4537 # during glob expansion). Even if it were fixed, the result of this 4538 # check would be larger than it should be. 4539 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4540 ;; 4541 4542 gnu*) 4543 # Under GNU Hurd, this test is not required because there is 4544 # no limit to the length of command line arguments. 4545 # Libtool will interpret -1 as no limit whatsoever 4546 lt_cv_sys_max_cmd_len=-1; 4547 ;; 4548 4549 cygwin* | mingw* | cegcc*) 4550 # On Win9x/ME, this test blows up -- it succeeds, but takes 4551 # about 5 minutes as the teststring grows exponentially. 4552 # Worse, since 9x/ME are not pre-emptively multitasking, 4553 # you end up with a "frozen" computer, even though with patience 4554 # the test eventually succeeds (with a max line length of 256k). 4555 # Instead, let's just punt: use the minimum linelength reported by 4556 # all of the supported platforms: 8192 (on NT/2K/XP). 4557 lt_cv_sys_max_cmd_len=8192; 4558 ;; 4559 4560 mint*) 4561 # On MiNT this can take a long time and run out of memory. 4562 lt_cv_sys_max_cmd_len=8192; 4563 ;; 4564 4565 amigaos*) 4566 # On AmigaOS with pdksh, this test takes hours, literally. 4567 # So we just punt and use a minimum line length of 8192. 4568 lt_cv_sys_max_cmd_len=8192; 4569 ;; 4570 4571 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4572 # This has been around since 386BSD, at least. Likely further. 4573 if test -x /sbin/sysctl; then 4574 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4575 elif test -x /usr/sbin/sysctl; then 4576 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4577 else 4578 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4579 fi 4580 # And add a safety zone 4581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4583 ;; 4584 4585 interix*) 4586 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4587 lt_cv_sys_max_cmd_len=196608 4588 ;; 4589 4590 os2*) 4591 # The test takes a long time on OS/2. 4592 lt_cv_sys_max_cmd_len=8192 4593 ;; 4594 4595 osf*) 4596 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4597 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4598 # nice to cause kernel panics so lets avoid the loop below. 4599 # First set a reasonable default. 4600 lt_cv_sys_max_cmd_len=16384 4601 # 4602 if test -x /sbin/sysconfig; then 4603 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4604 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4605 esac 4606 fi 4607 ;; 4608 sco3.2v5*) 4609 lt_cv_sys_max_cmd_len=102400 4610 ;; 4611 sysv5* | sco5v6* | sysv4.2uw2*) 4612 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4613 if test -n "$kargmax"; then 4614 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4615 else 4616 lt_cv_sys_max_cmd_len=32768 4617 fi 4618 ;; 4619 *) 4620 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4621 if test -n "$lt_cv_sys_max_cmd_len"; then 4622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4624 else 4625 # Make teststring a little bigger before we do anything with it. 4626 # a 1K string should be a reasonable start. 4627 for i in 1 2 3 4 5 6 7 8 ; do 4628 teststring=$teststring$teststring 4629 done 4630 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4631 # If test is not a shell built-in, we'll probably end up computing a 4632 # maximum length that is only half of the actual maximum length, but 4633 # we can't tell. 4634 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4635 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4636 test $i != 17 # 1/2 MB should be enough 4637 do 4638 i=`expr $i + 1` 4639 teststring=$teststring$teststring 4640 done 4641 # Only check the string length outside the loop. 4642 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4643 teststring= 4644 # Add a significant safety factor because C++ compilers can tack on 4645 # massive amounts of additional arguments before passing them to the 4646 # linker. It appears as though 1/2 is a usable value. 4647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4648 fi 4649 ;; 4650 esac 4651 4652fi 4653 4654if test -n $lt_cv_sys_max_cmd_len ; then 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4656$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4657else 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4659$as_echo "none" >&6; } 4660fi 4661max_cmd_len=$lt_cv_sys_max_cmd_len 4662 4663 4664 4665 4666 4667 4668: ${CP="cp -f"} 4669: ${MV="mv -f"} 4670: ${RM="rm -f"} 4671 4672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4673$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4674# Try some XSI features 4675xsi_shell=no 4676( _lt_dummy="a/b/c" 4677 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4678 = c,a/b,b/c, \ 4679 && eval 'test $(( 1 + 1 )) -eq 2 \ 4680 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4681 && xsi_shell=yes 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4683$as_echo "$xsi_shell" >&6; } 4684 4685 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4687$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4688lt_shell_append=no 4689( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4690 >/dev/null 2>&1 \ 4691 && lt_shell_append=yes 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4693$as_echo "$lt_shell_append" >&6; } 4694 4695 4696if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4697 lt_unset=unset 4698else 4699 lt_unset=false 4700fi 4701 4702 4703 4704 4705 4706# test EBCDIC or ASCII 4707case `echo X|tr X '\101'` in 4708 A) # ASCII based system 4709 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4710 lt_SP2NL='tr \040 \012' 4711 lt_NL2SP='tr \015\012 \040\040' 4712 ;; 4713 *) # EBCDIC based system 4714 lt_SP2NL='tr \100 \n' 4715 lt_NL2SP='tr \r\n \100\100' 4716 ;; 4717esac 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4728$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4729if ${lt_cv_to_host_file_cmd+:} false; then : 4730 $as_echo_n "(cached) " >&6 4731else 4732 case $host in 4733 *-*-mingw* ) 4734 case $build in 4735 *-*-mingw* ) # actually msys 4736 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4737 ;; 4738 *-*-cygwin* ) 4739 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4740 ;; 4741 * ) # otherwise, assume *nix 4742 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4743 ;; 4744 esac 4745 ;; 4746 *-*-cygwin* ) 4747 case $build in 4748 *-*-mingw* ) # actually msys 4749 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4750 ;; 4751 *-*-cygwin* ) 4752 lt_cv_to_host_file_cmd=func_convert_file_noop 4753 ;; 4754 * ) # otherwise, assume *nix 4755 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4756 ;; 4757 esac 4758 ;; 4759 * ) # unhandled hosts (and "normal" native builds) 4760 lt_cv_to_host_file_cmd=func_convert_file_noop 4761 ;; 4762esac 4763 4764fi 4765 4766to_host_file_cmd=$lt_cv_to_host_file_cmd 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4768$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4769 4770 4771 4772 4773 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4775$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4776if ${lt_cv_to_tool_file_cmd+:} false; then : 4777 $as_echo_n "(cached) " >&6 4778else 4779 #assume ordinary cross tools, or native build. 4780lt_cv_to_tool_file_cmd=func_convert_file_noop 4781case $host in 4782 *-*-mingw* ) 4783 case $build in 4784 *-*-mingw* ) # actually msys 4785 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4786 ;; 4787 esac 4788 ;; 4789esac 4790 4791fi 4792 4793to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4795$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4796 4797 4798 4799 4800 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4802$as_echo_n "checking for $LD option to reload object files... " >&6; } 4803if ${lt_cv_ld_reload_flag+:} false; then : 4804 $as_echo_n "(cached) " >&6 4805else 4806 lt_cv_ld_reload_flag='-r' 4807fi 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4809$as_echo "$lt_cv_ld_reload_flag" >&6; } 4810reload_flag=$lt_cv_ld_reload_flag 4811case $reload_flag in 4812"" | " "*) ;; 4813*) reload_flag=" $reload_flag" ;; 4814esac 4815reload_cmds='$LD$reload_flag -o $output$reload_objs' 4816case $host_os in 4817 cygwin* | mingw* | pw32* | cegcc*) 4818 if test "$GCC" != yes; then 4819 reload_cmds=false 4820 fi 4821 ;; 4822 darwin*) 4823 if test "$GCC" = yes; then 4824 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4825 else 4826 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4827 fi 4828 ;; 4829esac 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839if test -n "$ac_tool_prefix"; then 4840 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4841set dummy ${ac_tool_prefix}objdump; ac_word=$2 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4843$as_echo_n "checking for $ac_word... " >&6; } 4844if ${ac_cv_prog_OBJDUMP+:} false; then : 4845 $as_echo_n "(cached) " >&6 4846else 4847 if test -n "$OBJDUMP"; then 4848 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4849else 4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4851for as_dir in $PATH 4852do 4853 IFS=$as_save_IFS 4854 test -z "$as_dir" && as_dir=. 4855 for ac_exec_ext in '' $ac_executable_extensions; do 4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4857 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4859 break 2 4860 fi 4861done 4862 done 4863IFS=$as_save_IFS 4864 4865fi 4866fi 4867OBJDUMP=$ac_cv_prog_OBJDUMP 4868if test -n "$OBJDUMP"; then 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4870$as_echo "$OBJDUMP" >&6; } 4871else 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4873$as_echo "no" >&6; } 4874fi 4875 4876 4877fi 4878if test -z "$ac_cv_prog_OBJDUMP"; then 4879 ac_ct_OBJDUMP=$OBJDUMP 4880 # Extract the first word of "objdump", so it can be a program name with args. 4881set dummy objdump; ac_word=$2 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4883$as_echo_n "checking for $ac_word... " >&6; } 4884if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4885 $as_echo_n "(cached) " >&6 4886else 4887 if test -n "$ac_ct_OBJDUMP"; then 4888 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4889else 4890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4891for as_dir in $PATH 4892do 4893 IFS=$as_save_IFS 4894 test -z "$as_dir" && as_dir=. 4895 for ac_exec_ext in '' $ac_executable_extensions; do 4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4897 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4899 break 2 4900 fi 4901done 4902 done 4903IFS=$as_save_IFS 4904 4905fi 4906fi 4907ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4908if test -n "$ac_ct_OBJDUMP"; then 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4910$as_echo "$ac_ct_OBJDUMP" >&6; } 4911else 4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4913$as_echo "no" >&6; } 4914fi 4915 4916 if test "x$ac_ct_OBJDUMP" = x; then 4917 OBJDUMP="false" 4918 else 4919 case $cross_compiling:$ac_tool_warned in 4920yes:) 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4923ac_tool_warned=yes ;; 4924esac 4925 OBJDUMP=$ac_ct_OBJDUMP 4926 fi 4927else 4928 OBJDUMP="$ac_cv_prog_OBJDUMP" 4929fi 4930 4931test -z "$OBJDUMP" && OBJDUMP=objdump 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4942$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4943if ${lt_cv_deplibs_check_method+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 lt_cv_file_magic_cmd='$MAGIC_CMD' 4947lt_cv_file_magic_test_file= 4948lt_cv_deplibs_check_method='unknown' 4949# Need to set the preceding variable on all platforms that support 4950# interlibrary dependencies. 4951# 'none' -- dependencies not supported. 4952# `unknown' -- same as none, but documents that we really don't know. 4953# 'pass_all' -- all dependencies passed with no checks. 4954# 'test_compile' -- check by making test program. 4955# 'file_magic [[regex]]' -- check by looking for files in library path 4956# which responds to the $file_magic_cmd with a given extended regex. 4957# If you have `file' or equivalent on your system and you're not sure 4958# whether `pass_all' will *always* work, you probably want this one. 4959 4960case $host_os in 4961aix[4-9]*) 4962 lt_cv_deplibs_check_method=pass_all 4963 ;; 4964 4965beos*) 4966 lt_cv_deplibs_check_method=pass_all 4967 ;; 4968 4969bsdi[45]*) 4970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4971 lt_cv_file_magic_cmd='/usr/bin/file -L' 4972 lt_cv_file_magic_test_file=/shlib/libc.so 4973 ;; 4974 4975cygwin*) 4976 # func_win32_libid is a shell function defined in ltmain.sh 4977 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4978 lt_cv_file_magic_cmd='func_win32_libid' 4979 ;; 4980 4981mingw* | pw32*) 4982 # Base MSYS/MinGW do not provide the 'file' command needed by 4983 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4984 # unless we find 'file', for example because we are cross-compiling. 4985 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4986 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4988 lt_cv_file_magic_cmd='func_win32_libid' 4989 else 4990 # Keep this pattern in sync with the one in func_win32_libid. 4991 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4992 lt_cv_file_magic_cmd='$OBJDUMP -f' 4993 fi 4994 ;; 4995 4996cegcc*) 4997 # use the weaker test based on 'objdump'. See mingw*. 4998 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4999 lt_cv_file_magic_cmd='$OBJDUMP -f' 5000 ;; 5001 5002darwin* | rhapsody*) 5003 lt_cv_deplibs_check_method=pass_all 5004 ;; 5005 5006freebsd* | dragonfly*) 5007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5008 case $host_cpu in 5009 i*86 ) 5010 # Not sure whether the presence of OpenBSD here was a mistake. 5011 # Let's accept both of them until this is cleared up. 5012 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5013 lt_cv_file_magic_cmd=/usr/bin/file 5014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5015 ;; 5016 esac 5017 else 5018 lt_cv_deplibs_check_method=pass_all 5019 fi 5020 ;; 5021 5022gnu*) 5023 lt_cv_deplibs_check_method=pass_all 5024 ;; 5025 5026haiku*) 5027 lt_cv_deplibs_check_method=pass_all 5028 ;; 5029 5030hpux10.20* | hpux11*) 5031 lt_cv_file_magic_cmd=/usr/bin/file 5032 case $host_cpu in 5033 ia64*) 5034 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5035 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5036 ;; 5037 hppa*64*) 5038 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]' 5039 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5040 ;; 5041 *) 5042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5043 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5044 ;; 5045 esac 5046 ;; 5047 5048interix[3-9]*) 5049 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5051 ;; 5052 5053irix5* | irix6* | nonstopux*) 5054 case $LD in 5055 *-32|*"-32 ") libmagic=32-bit;; 5056 *-n32|*"-n32 ") libmagic=N32;; 5057 *-64|*"-64 ") libmagic=64-bit;; 5058 *) libmagic=never-match;; 5059 esac 5060 lt_cv_deplibs_check_method=pass_all 5061 ;; 5062 5063# This must be glibc/ELF. 5064linux* | k*bsd*-gnu | kopensolaris*-gnu) 5065 lt_cv_deplibs_check_method=pass_all 5066 ;; 5067 5068netbsd*) 5069 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5071 else 5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5073 fi 5074 ;; 5075 5076newos6*) 5077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5078 lt_cv_file_magic_cmd=/usr/bin/file 5079 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5080 ;; 5081 5082*nto* | *qnx*) 5083 lt_cv_deplibs_check_method=pass_all 5084 ;; 5085 5086openbsd*) 5087 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5089 else 5090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5091 fi 5092 ;; 5093 5094osf3* | osf4* | osf5*) 5095 lt_cv_deplibs_check_method=pass_all 5096 ;; 5097 5098rdos*) 5099 lt_cv_deplibs_check_method=pass_all 5100 ;; 5101 5102solaris*) 5103 lt_cv_deplibs_check_method=pass_all 5104 ;; 5105 5106sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5107 lt_cv_deplibs_check_method=pass_all 5108 ;; 5109 5110sysv4 | sysv4.3*) 5111 case $host_vendor in 5112 motorola) 5113 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]' 5114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5115 ;; 5116 ncr) 5117 lt_cv_deplibs_check_method=pass_all 5118 ;; 5119 sequent) 5120 lt_cv_file_magic_cmd='/bin/file' 5121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5122 ;; 5123 sni) 5124 lt_cv_file_magic_cmd='/bin/file' 5125 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5126 lt_cv_file_magic_test_file=/lib/libc.so 5127 ;; 5128 siemens) 5129 lt_cv_deplibs_check_method=pass_all 5130 ;; 5131 pc) 5132 lt_cv_deplibs_check_method=pass_all 5133 ;; 5134 esac 5135 ;; 5136 5137tpf*) 5138 lt_cv_deplibs_check_method=pass_all 5139 ;; 5140esac 5141 5142fi 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5144$as_echo "$lt_cv_deplibs_check_method" >&6; } 5145 5146file_magic_glob= 5147want_nocaseglob=no 5148if test "$build" = "$host"; then 5149 case $host_os in 5150 mingw* | pw32*) 5151 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5152 want_nocaseglob=yes 5153 else 5154 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5155 fi 5156 ;; 5157 esac 5158fi 5159 5160file_magic_cmd=$lt_cv_file_magic_cmd 5161deplibs_check_method=$lt_cv_deplibs_check_method 5162test -z "$deplibs_check_method" && deplibs_check_method=unknown 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185if test -n "$ac_tool_prefix"; then 5186 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5187set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5189$as_echo_n "checking for $ac_word... " >&6; } 5190if ${ac_cv_prog_DLLTOOL+:} false; then : 5191 $as_echo_n "(cached) " >&6 5192else 5193 if test -n "$DLLTOOL"; then 5194 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5195else 5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5197for as_dir in $PATH 5198do 5199 IFS=$as_save_IFS 5200 test -z "$as_dir" && as_dir=. 5201 for ac_exec_ext in '' $ac_executable_extensions; do 5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5203 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5205 break 2 5206 fi 5207done 5208 done 5209IFS=$as_save_IFS 5210 5211fi 5212fi 5213DLLTOOL=$ac_cv_prog_DLLTOOL 5214if test -n "$DLLTOOL"; then 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5216$as_echo "$DLLTOOL" >&6; } 5217else 5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5219$as_echo "no" >&6; } 5220fi 5221 5222 5223fi 5224if test -z "$ac_cv_prog_DLLTOOL"; then 5225 ac_ct_DLLTOOL=$DLLTOOL 5226 # Extract the first word of "dlltool", so it can be a program name with args. 5227set dummy dlltool; ac_word=$2 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5229$as_echo_n "checking for $ac_word... " >&6; } 5230if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232else 5233 if test -n "$ac_ct_DLLTOOL"; then 5234 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5235else 5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5237for as_dir in $PATH 5238do 5239 IFS=$as_save_IFS 5240 test -z "$as_dir" && as_dir=. 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5243 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247done 5248 done 5249IFS=$as_save_IFS 5250 5251fi 5252fi 5253ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5254if test -n "$ac_ct_DLLTOOL"; then 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5256$as_echo "$ac_ct_DLLTOOL" >&6; } 5257else 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5259$as_echo "no" >&6; } 5260fi 5261 5262 if test "x$ac_ct_DLLTOOL" = x; then 5263 DLLTOOL="false" 5264 else 5265 case $cross_compiling:$ac_tool_warned in 5266yes:) 5267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5269ac_tool_warned=yes ;; 5270esac 5271 DLLTOOL=$ac_ct_DLLTOOL 5272 fi 5273else 5274 DLLTOOL="$ac_cv_prog_DLLTOOL" 5275fi 5276 5277test -z "$DLLTOOL" && DLLTOOL=dlltool 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5289$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5290if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 lt_cv_sharedlib_from_linklib_cmd='unknown' 5294 5295case $host_os in 5296cygwin* | mingw* | pw32* | cegcc*) 5297 # two different shell functions defined in ltmain.sh 5298 # decide which to use based on capabilities of $DLLTOOL 5299 case `$DLLTOOL --help 2>&1` in 5300 *--identify-strict*) 5301 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5302 ;; 5303 *) 5304 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5305 ;; 5306 esac 5307 ;; 5308*) 5309 # fallback: assume linklib IS sharedlib 5310 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5311 ;; 5312esac 5313 5314fi 5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5316$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5317sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5318test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5319 5320 5321 5322 5323 5324 5325 5326 5327if test -n "$ac_tool_prefix"; then 5328 for ac_prog in ar 5329 do 5330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5331set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5333$as_echo_n "checking for $ac_word... " >&6; } 5334if ${ac_cv_prog_AR+:} false; then : 5335 $as_echo_n "(cached) " >&6 5336else 5337 if test -n "$AR"; then 5338 ac_cv_prog_AR="$AR" # Let the user override the test. 5339else 5340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5341for as_dir in $PATH 5342do 5343 IFS=$as_save_IFS 5344 test -z "$as_dir" && as_dir=. 5345 for ac_exec_ext in '' $ac_executable_extensions; do 5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5347 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5349 break 2 5350 fi 5351done 5352 done 5353IFS=$as_save_IFS 5354 5355fi 5356fi 5357AR=$ac_cv_prog_AR 5358if test -n "$AR"; then 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5360$as_echo "$AR" >&6; } 5361else 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5363$as_echo "no" >&6; } 5364fi 5365 5366 5367 test -n "$AR" && break 5368 done 5369fi 5370if test -z "$AR"; then 5371 ac_ct_AR=$AR 5372 for ac_prog in ar 5373do 5374 # Extract the first word of "$ac_prog", so it can be a program name with args. 5375set dummy $ac_prog; ac_word=$2 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5377$as_echo_n "checking for $ac_word... " >&6; } 5378if ${ac_cv_prog_ac_ct_AR+:} false; then : 5379 $as_echo_n "(cached) " >&6 5380else 5381 if test -n "$ac_ct_AR"; then 5382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5383else 5384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5385for as_dir in $PATH 5386do 5387 IFS=$as_save_IFS 5388 test -z "$as_dir" && as_dir=. 5389 for ac_exec_ext in '' $ac_executable_extensions; do 5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5391 ac_cv_prog_ac_ct_AR="$ac_prog" 5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5393 break 2 5394 fi 5395done 5396 done 5397IFS=$as_save_IFS 5398 5399fi 5400fi 5401ac_ct_AR=$ac_cv_prog_ac_ct_AR 5402if test -n "$ac_ct_AR"; then 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5404$as_echo "$ac_ct_AR" >&6; } 5405else 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5407$as_echo "no" >&6; } 5408fi 5409 5410 5411 test -n "$ac_ct_AR" && break 5412done 5413 5414 if test "x$ac_ct_AR" = x; then 5415 AR="false" 5416 else 5417 case $cross_compiling:$ac_tool_warned in 5418yes:) 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5421ac_tool_warned=yes ;; 5422esac 5423 AR=$ac_ct_AR 5424 fi 5425fi 5426 5427: ${AR=ar} 5428: ${AR_FLAGS=cru} 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5441$as_echo_n "checking for archiver @FILE support... " >&6; } 5442if ${lt_cv_ar_at_file+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444else 5445 lt_cv_ar_at_file=no 5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5447/* end confdefs.h. */ 5448 5449int 5450main () 5451{ 5452 5453 ; 5454 return 0; 5455} 5456_ACEOF 5457if ac_fn_c_try_compile "$LINENO"; then : 5458 echo conftest.$ac_objext > conftest.lst 5459 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5461 (eval $lt_ar_try) 2>&5 5462 ac_status=$? 5463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5464 test $ac_status = 0; } 5465 if test "$ac_status" -eq 0; then 5466 # Ensure the archiver fails upon bogus file names. 5467 rm -f conftest.$ac_objext libconftest.a 5468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5469 (eval $lt_ar_try) 2>&5 5470 ac_status=$? 5471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5472 test $ac_status = 0; } 5473 if test "$ac_status" -ne 0; then 5474 lt_cv_ar_at_file=@ 5475 fi 5476 fi 5477 rm -f conftest.* libconftest.a 5478 5479fi 5480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5481 5482fi 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5484$as_echo "$lt_cv_ar_at_file" >&6; } 5485 5486if test "x$lt_cv_ar_at_file" = xno; then 5487 archiver_list_spec= 5488else 5489 archiver_list_spec=$lt_cv_ar_at_file 5490fi 5491 5492 5493 5494 5495 5496 5497 5498if test -n "$ac_tool_prefix"; then 5499 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5500set dummy ${ac_tool_prefix}strip; ac_word=$2 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5502$as_echo_n "checking for $ac_word... " >&6; } 5503if ${ac_cv_prog_STRIP+:} false; then : 5504 $as_echo_n "(cached) " >&6 5505else 5506 if test -n "$STRIP"; then 5507 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5508else 5509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5510for as_dir in $PATH 5511do 5512 IFS=$as_save_IFS 5513 test -z "$as_dir" && as_dir=. 5514 for ac_exec_ext in '' $ac_executable_extensions; do 5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5516 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5518 break 2 5519 fi 5520done 5521 done 5522IFS=$as_save_IFS 5523 5524fi 5525fi 5526STRIP=$ac_cv_prog_STRIP 5527if test -n "$STRIP"; then 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5529$as_echo "$STRIP" >&6; } 5530else 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5532$as_echo "no" >&6; } 5533fi 5534 5535 5536fi 5537if test -z "$ac_cv_prog_STRIP"; then 5538 ac_ct_STRIP=$STRIP 5539 # Extract the first word of "strip", so it can be a program name with args. 5540set dummy strip; ac_word=$2 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5542$as_echo_n "checking for $ac_word... " >&6; } 5543if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5544 $as_echo_n "(cached) " >&6 5545else 5546 if test -n "$ac_ct_STRIP"; then 5547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5548else 5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5550for as_dir in $PATH 5551do 5552 IFS=$as_save_IFS 5553 test -z "$as_dir" && as_dir=. 5554 for ac_exec_ext in '' $ac_executable_extensions; do 5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5556 ac_cv_prog_ac_ct_STRIP="strip" 5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5558 break 2 5559 fi 5560done 5561 done 5562IFS=$as_save_IFS 5563 5564fi 5565fi 5566ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5567if test -n "$ac_ct_STRIP"; then 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5569$as_echo "$ac_ct_STRIP" >&6; } 5570else 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5572$as_echo "no" >&6; } 5573fi 5574 5575 if test "x$ac_ct_STRIP" = x; then 5576 STRIP=":" 5577 else 5578 case $cross_compiling:$ac_tool_warned in 5579yes:) 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5582ac_tool_warned=yes ;; 5583esac 5584 STRIP=$ac_ct_STRIP 5585 fi 5586else 5587 STRIP="$ac_cv_prog_STRIP" 5588fi 5589 5590test -z "$STRIP" && STRIP=: 5591 5592 5593 5594 5595 5596 5597if test -n "$ac_tool_prefix"; then 5598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5599set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5601$as_echo_n "checking for $ac_word... " >&6; } 5602if ${ac_cv_prog_RANLIB+:} false; then : 5603 $as_echo_n "(cached) " >&6 5604else 5605 if test -n "$RANLIB"; then 5606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5607else 5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5609for as_dir in $PATH 5610do 5611 IFS=$as_save_IFS 5612 test -z "$as_dir" && as_dir=. 5613 for ac_exec_ext in '' $ac_executable_extensions; do 5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5617 break 2 5618 fi 5619done 5620 done 5621IFS=$as_save_IFS 5622 5623fi 5624fi 5625RANLIB=$ac_cv_prog_RANLIB 5626if test -n "$RANLIB"; then 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5628$as_echo "$RANLIB" >&6; } 5629else 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5631$as_echo "no" >&6; } 5632fi 5633 5634 5635fi 5636if test -z "$ac_cv_prog_RANLIB"; then 5637 ac_ct_RANLIB=$RANLIB 5638 # Extract the first word of "ranlib", so it can be a program name with args. 5639set dummy ranlib; ac_word=$2 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5641$as_echo_n "checking for $ac_word... " >&6; } 5642if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5643 $as_echo_n "(cached) " >&6 5644else 5645 if test -n "$ac_ct_RANLIB"; then 5646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5647else 5648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5649for as_dir in $PATH 5650do 5651 IFS=$as_save_IFS 5652 test -z "$as_dir" && as_dir=. 5653 for ac_exec_ext in '' $ac_executable_extensions; do 5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5655 ac_cv_prog_ac_ct_RANLIB="ranlib" 5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5657 break 2 5658 fi 5659done 5660 done 5661IFS=$as_save_IFS 5662 5663fi 5664fi 5665ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5666if test -n "$ac_ct_RANLIB"; then 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5668$as_echo "$ac_ct_RANLIB" >&6; } 5669else 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5671$as_echo "no" >&6; } 5672fi 5673 5674 if test "x$ac_ct_RANLIB" = x; then 5675 RANLIB=":" 5676 else 5677 case $cross_compiling:$ac_tool_warned in 5678yes:) 5679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5681ac_tool_warned=yes ;; 5682esac 5683 RANLIB=$ac_ct_RANLIB 5684 fi 5685else 5686 RANLIB="$ac_cv_prog_RANLIB" 5687fi 5688 5689test -z "$RANLIB" && RANLIB=: 5690 5691 5692 5693 5694 5695 5696# Determine commands to create old-style static archives. 5697old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5698old_postinstall_cmds='chmod 644 $oldlib' 5699old_postuninstall_cmds= 5700 5701if test -n "$RANLIB"; then 5702 case $host_os in 5703 openbsd*) 5704 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5705 ;; 5706 *) 5707 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5708 ;; 5709 esac 5710 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5711fi 5712 5713case $host_os in 5714 darwin*) 5715 lock_old_archive_extraction=yes ;; 5716 *) 5717 lock_old_archive_extraction=no ;; 5718esac 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758# If no C compiler was specified, use CC. 5759LTCC=${LTCC-"$CC"} 5760 5761# If no C compiler flags were specified, use CFLAGS. 5762LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5763 5764# Allow CC to be a program name with arguments. 5765compiler=$CC 5766 5767 5768# Check for command to grab the raw symbol name followed by C symbol from nm. 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5770$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5771if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5772 $as_echo_n "(cached) " >&6 5773else 5774 5775# These are sane defaults that work on at least a few old systems. 5776# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5777 5778# Character class describing NM global symbol codes. 5779symcode='[BCDEGRST]' 5780 5781# Regexp to match symbols that can be accessed directly from C. 5782sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5783 5784# Define system-specific variables. 5785case $host_os in 5786aix*) 5787 symcode='[BCDT]' 5788 ;; 5789cygwin* | mingw* | pw32* | cegcc*) 5790 symcode='[ABCDGISTW]' 5791 ;; 5792hpux*) 5793 if test "$host_cpu" = ia64; then 5794 symcode='[ABCDEGRST]' 5795 fi 5796 ;; 5797irix* | nonstopux*) 5798 symcode='[BCDEGRST]' 5799 ;; 5800osf*) 5801 symcode='[BCDEGQRST]' 5802 ;; 5803solaris*) 5804 symcode='[BDRT]' 5805 ;; 5806sco3.2v5*) 5807 symcode='[DT]' 5808 ;; 5809sysv4.2uw2*) 5810 symcode='[DT]' 5811 ;; 5812sysv5* | sco5v6* | unixware* | OpenUNIX*) 5813 symcode='[ABDT]' 5814 ;; 5815sysv4) 5816 symcode='[DFNSTU]' 5817 ;; 5818esac 5819 5820# If we're using GNU nm, then use its standard symbol codes. 5821case `$NM -V 2>&1` in 5822*GNU* | *'with BFD'*) 5823 symcode='[ABCDGIRSTW]' ;; 5824esac 5825 5826# Transform an extracted symbol line into a proper C declaration. 5827# Some systems (esp. on ia64) link data and code symbols differently, 5828# so use this general approach. 5829lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5830 5831# Transform an extracted symbol line into symbol name and symbol address 5832lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5833lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5834 5835# Handle CRLF in mingw tool chain 5836opt_cr= 5837case $build_os in 5838mingw*) 5839 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5840 ;; 5841esac 5842 5843# Try without a prefix underscore, then with it. 5844for ac_symprfx in "" "_"; do 5845 5846 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5847 symxfrm="\\1 $ac_symprfx\\2 \\2" 5848 5849 # Write the raw and C identifiers. 5850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5851 # Fake it for dumpbin and say T for any non-static function 5852 # and D for any global variable. 5853 # Also find C++ and __fastcall symbols from MSVC++, 5854 # which start with @ or ?. 5855 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5856" {last_section=section; section=\$ 3};"\ 5857" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5858" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5859" \$ 0!~/External *\|/{next};"\ 5860" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5861" {if(hide[section]) next};"\ 5862" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5863" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5864" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5865" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5866" ' prfx=^$ac_symprfx" 5867 else 5868 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5869 fi 5870 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5871 5872 # Check to see that the pipe works correctly. 5873 pipe_works=no 5874 5875 rm -f conftest* 5876 cat > conftest.$ac_ext <<_LT_EOF 5877#ifdef __cplusplus 5878extern "C" { 5879#endif 5880char nm_test_var; 5881void nm_test_func(void); 5882void nm_test_func(void){} 5883#ifdef __cplusplus 5884} 5885#endif 5886int main(){nm_test_var='a';nm_test_func();return(0);} 5887_LT_EOF 5888 5889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5890 (eval $ac_compile) 2>&5 5891 ac_status=$? 5892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5893 test $ac_status = 0; }; then 5894 # Now try to grab the symbols. 5895 nlist=conftest.nm 5896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5897 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5898 ac_status=$? 5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5900 test $ac_status = 0; } && test -s "$nlist"; then 5901 # Try sorting and uniquifying the output. 5902 if sort "$nlist" | uniq > "$nlist"T; then 5903 mv -f "$nlist"T "$nlist" 5904 else 5905 rm -f "$nlist"T 5906 fi 5907 5908 # Make sure that we snagged all the symbols we need. 5909 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5910 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5911 cat <<_LT_EOF > conftest.$ac_ext 5912/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5913#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5914/* DATA imports from DLLs on WIN32 con't be const, because runtime 5915 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5916# define LT_DLSYM_CONST 5917#elif defined(__osf__) 5918/* This system does not cope well with relocations in const data. */ 5919# define LT_DLSYM_CONST 5920#else 5921# define LT_DLSYM_CONST const 5922#endif 5923 5924#ifdef __cplusplus 5925extern "C" { 5926#endif 5927 5928_LT_EOF 5929 # Now generate the symbol file. 5930 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5931 5932 cat <<_LT_EOF >> conftest.$ac_ext 5933 5934/* The mapping between symbol names and symbols. */ 5935LT_DLSYM_CONST struct { 5936 const char *name; 5937 void *address; 5938} 5939lt__PROGRAM__LTX_preloaded_symbols[] = 5940{ 5941 { "@PROGRAM@", (void *) 0 }, 5942_LT_EOF 5943 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5944 cat <<\_LT_EOF >> conftest.$ac_ext 5945 {0, (void *) 0} 5946}; 5947 5948/* This works around a problem in FreeBSD linker */ 5949#ifdef FREEBSD_WORKAROUND 5950static const void *lt_preloaded_setup() { 5951 return lt__PROGRAM__LTX_preloaded_symbols; 5952} 5953#endif 5954 5955#ifdef __cplusplus 5956} 5957#endif 5958_LT_EOF 5959 # Now try linking the two files. 5960 mv conftest.$ac_objext conftstm.$ac_objext 5961 lt_globsym_save_LIBS=$LIBS 5962 lt_globsym_save_CFLAGS=$CFLAGS 5963 LIBS="conftstm.$ac_objext" 5964 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5966 (eval $ac_link) 2>&5 5967 ac_status=$? 5968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5969 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5970 pipe_works=yes 5971 fi 5972 LIBS=$lt_globsym_save_LIBS 5973 CFLAGS=$lt_globsym_save_CFLAGS 5974 else 5975 echo "cannot find nm_test_func in $nlist" >&5 5976 fi 5977 else 5978 echo "cannot find nm_test_var in $nlist" >&5 5979 fi 5980 else 5981 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5982 fi 5983 else 5984 echo "$progname: failed program was:" >&5 5985 cat conftest.$ac_ext >&5 5986 fi 5987 rm -rf conftest* conftst* 5988 5989 # Do not use the global_symbol_pipe unless it works. 5990 if test "$pipe_works" = yes; then 5991 break 5992 else 5993 lt_cv_sys_global_symbol_pipe= 5994 fi 5995done 5996 5997fi 5998 5999if test -z "$lt_cv_sys_global_symbol_pipe"; then 6000 lt_cv_sys_global_symbol_to_cdecl= 6001fi 6002if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6004$as_echo "failed" >&6; } 6005else 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6007$as_echo "ok" >&6; } 6008fi 6009 6010# Response file support. 6011if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6012 nm_file_list_spec='@' 6013elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6014 nm_file_list_spec='@' 6015fi 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6044$as_echo_n "checking for sysroot... " >&6; } 6045 6046# Check whether --with-sysroot was given. 6047if test "${with_sysroot+set}" = set; then : 6048 withval=$with_sysroot; 6049else 6050 with_sysroot=no 6051fi 6052 6053 6054lt_sysroot= 6055case ${with_sysroot} in #( 6056 yes) 6057 if test "$GCC" = yes; then 6058 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6059 fi 6060 ;; #( 6061 /*) 6062 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6063 ;; #( 6064 no|'') 6065 ;; #( 6066 *) 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6068$as_echo "${with_sysroot}" >&6; } 6069 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6070 ;; 6071esac 6072 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6074$as_echo "${lt_sysroot:-no}" >&6; } 6075 6076 6077 6078 6079 6080# Check whether --enable-libtool-lock was given. 6081if test "${enable_libtool_lock+set}" = set; then : 6082 enableval=$enable_libtool_lock; 6083fi 6084 6085test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6086 6087# Some flags need to be propagated to the compiler or linker for good 6088# libtool support. 6089case $host in 6090ia64-*-hpux*) 6091 # Find out which ABI we are using. 6092 echo 'int i;' > conftest.$ac_ext 6093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6094 (eval $ac_compile) 2>&5 6095 ac_status=$? 6096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6097 test $ac_status = 0; }; then 6098 case `/usr/bin/file conftest.$ac_objext` in 6099 *ELF-32*) 6100 HPUX_IA64_MODE="32" 6101 ;; 6102 *ELF-64*) 6103 HPUX_IA64_MODE="64" 6104 ;; 6105 esac 6106 fi 6107 rm -rf conftest* 6108 ;; 6109*-*-irix6*) 6110 # Find out which ABI we are using. 6111 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6113 (eval $ac_compile) 2>&5 6114 ac_status=$? 6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6116 test $ac_status = 0; }; then 6117 if test "$lt_cv_prog_gnu_ld" = yes; then 6118 case `/usr/bin/file conftest.$ac_objext` in 6119 *32-bit*) 6120 LD="${LD-ld} -melf32bsmip" 6121 ;; 6122 *N32*) 6123 LD="${LD-ld} -melf32bmipn32" 6124 ;; 6125 *64-bit*) 6126 LD="${LD-ld} -melf64bmip" 6127 ;; 6128 esac 6129 else 6130 case `/usr/bin/file conftest.$ac_objext` in 6131 *32-bit*) 6132 LD="${LD-ld} -32" 6133 ;; 6134 *N32*) 6135 LD="${LD-ld} -n32" 6136 ;; 6137 *64-bit*) 6138 LD="${LD-ld} -64" 6139 ;; 6140 esac 6141 fi 6142 fi 6143 rm -rf conftest* 6144 ;; 6145 6146x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6147s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6148 # Find out which ABI we are using. 6149 echo 'int i;' > conftest.$ac_ext 6150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6151 (eval $ac_compile) 2>&5 6152 ac_status=$? 6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6154 test $ac_status = 0; }; then 6155 case `/usr/bin/file conftest.o` in 6156 *32-bit*) 6157 case $host in 6158 x86_64-*kfreebsd*-gnu) 6159 LD="${LD-ld} -m elf_i386_fbsd" 6160 ;; 6161 x86_64-*linux*) 6162 LD="${LD-ld} -m elf_i386" 6163 ;; 6164 ppc64-*linux*|powerpc64-*linux*) 6165 LD="${LD-ld} -m elf32ppclinux" 6166 ;; 6167 s390x-*linux*) 6168 LD="${LD-ld} -m elf_s390" 6169 ;; 6170 sparc64-*linux*) 6171 LD="${LD-ld} -m elf32_sparc" 6172 ;; 6173 esac 6174 ;; 6175 *64-bit*) 6176 case $host in 6177 x86_64-*kfreebsd*-gnu) 6178 LD="${LD-ld} -m elf_x86_64_fbsd" 6179 ;; 6180 x86_64-*linux*) 6181 LD="${LD-ld} -m elf_x86_64" 6182 ;; 6183 ppc*-*linux*|powerpc*-*linux*) 6184 LD="${LD-ld} -m elf64ppc" 6185 ;; 6186 s390*-*linux*|s390*-*tpf*) 6187 LD="${LD-ld} -m elf64_s390" 6188 ;; 6189 sparc*-*linux*) 6190 LD="${LD-ld} -m elf64_sparc" 6191 ;; 6192 esac 6193 ;; 6194 esac 6195 fi 6196 rm -rf conftest* 6197 ;; 6198 6199*-*-sco3.2v5*) 6200 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6201 SAVE_CFLAGS="$CFLAGS" 6202 CFLAGS="$CFLAGS -belf" 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6204$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6205if ${lt_cv_cc_needs_belf+:} false; then : 6206 $as_echo_n "(cached) " >&6 6207else 6208 ac_ext=c 6209ac_cpp='$CPP $CPPFLAGS' 6210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6212ac_compiler_gnu=$ac_cv_c_compiler_gnu 6213 6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216 6217int 6218main () 6219{ 6220 6221 ; 6222 return 0; 6223} 6224_ACEOF 6225if ac_fn_c_try_link "$LINENO"; then : 6226 lt_cv_cc_needs_belf=yes 6227else 6228 lt_cv_cc_needs_belf=no 6229fi 6230rm -f core conftest.err conftest.$ac_objext \ 6231 conftest$ac_exeext conftest.$ac_ext 6232 ac_ext=c 6233ac_cpp='$CPP $CPPFLAGS' 6234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6236ac_compiler_gnu=$ac_cv_c_compiler_gnu 6237 6238fi 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6240$as_echo "$lt_cv_cc_needs_belf" >&6; } 6241 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6242 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6243 CFLAGS="$SAVE_CFLAGS" 6244 fi 6245 ;; 6246*-*solaris*) 6247 # Find out which ABI we are using. 6248 echo 'int i;' > conftest.$ac_ext 6249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6250 (eval $ac_compile) 2>&5 6251 ac_status=$? 6252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6253 test $ac_status = 0; }; then 6254 case `/usr/bin/file conftest.o` in 6255 *64-bit*) 6256 case $lt_cv_prog_gnu_ld in 6257 yes*) 6258 case $host in 6259 i?86-*-solaris*) 6260 LD="${LD-ld} -m elf_x86_64" 6261 ;; 6262 sparc*-*-solaris*) 6263 LD="${LD-ld} -m elf64_sparc" 6264 ;; 6265 esac 6266 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6267 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6268 LD="${LD-ld}_sol2" 6269 fi 6270 ;; 6271 *) 6272 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6273 LD="${LD-ld} -64" 6274 fi 6275 ;; 6276 esac 6277 ;; 6278 esac 6279 fi 6280 rm -rf conftest* 6281 ;; 6282esac 6283 6284need_locks="$enable_libtool_lock" 6285 6286if test -n "$ac_tool_prefix"; then 6287 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6288set dummy ${ac_tool_prefix}mt; ac_word=$2 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6290$as_echo_n "checking for $ac_word... " >&6; } 6291if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6292 $as_echo_n "(cached) " >&6 6293else 6294 if test -n "$MANIFEST_TOOL"; then 6295 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6296else 6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6298for as_dir in $PATH 6299do 6300 IFS=$as_save_IFS 6301 test -z "$as_dir" && as_dir=. 6302 for ac_exec_ext in '' $ac_executable_extensions; do 6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6304 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6306 break 2 6307 fi 6308done 6309 done 6310IFS=$as_save_IFS 6311 6312fi 6313fi 6314MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6315if test -n "$MANIFEST_TOOL"; then 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6317$as_echo "$MANIFEST_TOOL" >&6; } 6318else 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6320$as_echo "no" >&6; } 6321fi 6322 6323 6324fi 6325if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6326 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6327 # Extract the first word of "mt", so it can be a program name with args. 6328set dummy mt; ac_word=$2 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6330$as_echo_n "checking for $ac_word... " >&6; } 6331if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6332 $as_echo_n "(cached) " >&6 6333else 6334 if test -n "$ac_ct_MANIFEST_TOOL"; then 6335 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6336else 6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6338for as_dir in $PATH 6339do 6340 IFS=$as_save_IFS 6341 test -z "$as_dir" && as_dir=. 6342 for ac_exec_ext in '' $ac_executable_extensions; do 6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6344 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6346 break 2 6347 fi 6348done 6349 done 6350IFS=$as_save_IFS 6351 6352fi 6353fi 6354ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6355if test -n "$ac_ct_MANIFEST_TOOL"; then 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6357$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6358else 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6360$as_echo "no" >&6; } 6361fi 6362 6363 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6364 MANIFEST_TOOL=":" 6365 else 6366 case $cross_compiling:$ac_tool_warned in 6367yes:) 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6370ac_tool_warned=yes ;; 6371esac 6372 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6373 fi 6374else 6375 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6376fi 6377 6378test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6380$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6381if ${lt_cv_path_mainfest_tool+:} false; then : 6382 $as_echo_n "(cached) " >&6 6383else 6384 lt_cv_path_mainfest_tool=no 6385 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6386 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6387 cat conftest.err >&5 6388 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6389 lt_cv_path_mainfest_tool=yes 6390 fi 6391 rm -f conftest* 6392fi 6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6394$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6395if test "x$lt_cv_path_mainfest_tool" != xyes; then 6396 MANIFEST_TOOL=: 6397fi 6398 6399 6400 6401 6402 6403 6404 case $host_os in 6405 rhapsody* | darwin*) 6406 if test -n "$ac_tool_prefix"; then 6407 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6408set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6410$as_echo_n "checking for $ac_word... " >&6; } 6411if ${ac_cv_prog_DSYMUTIL+:} false; then : 6412 $as_echo_n "(cached) " >&6 6413else 6414 if test -n "$DSYMUTIL"; then 6415 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6416else 6417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6418for as_dir in $PATH 6419do 6420 IFS=$as_save_IFS 6421 test -z "$as_dir" && as_dir=. 6422 for ac_exec_ext in '' $ac_executable_extensions; do 6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6424 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6426 break 2 6427 fi 6428done 6429 done 6430IFS=$as_save_IFS 6431 6432fi 6433fi 6434DSYMUTIL=$ac_cv_prog_DSYMUTIL 6435if test -n "$DSYMUTIL"; then 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6437$as_echo "$DSYMUTIL" >&6; } 6438else 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6440$as_echo "no" >&6; } 6441fi 6442 6443 6444fi 6445if test -z "$ac_cv_prog_DSYMUTIL"; then 6446 ac_ct_DSYMUTIL=$DSYMUTIL 6447 # Extract the first word of "dsymutil", so it can be a program name with args. 6448set dummy dsymutil; ac_word=$2 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6450$as_echo_n "checking for $ac_word... " >&6; } 6451if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6452 $as_echo_n "(cached) " >&6 6453else 6454 if test -n "$ac_ct_DSYMUTIL"; then 6455 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6456else 6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6458for as_dir in $PATH 6459do 6460 IFS=$as_save_IFS 6461 test -z "$as_dir" && as_dir=. 6462 for ac_exec_ext in '' $ac_executable_extensions; do 6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6464 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6466 break 2 6467 fi 6468done 6469 done 6470IFS=$as_save_IFS 6471 6472fi 6473fi 6474ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6475if test -n "$ac_ct_DSYMUTIL"; then 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6477$as_echo "$ac_ct_DSYMUTIL" >&6; } 6478else 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6480$as_echo "no" >&6; } 6481fi 6482 6483 if test "x$ac_ct_DSYMUTIL" = x; then 6484 DSYMUTIL=":" 6485 else 6486 case $cross_compiling:$ac_tool_warned in 6487yes:) 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6490ac_tool_warned=yes ;; 6491esac 6492 DSYMUTIL=$ac_ct_DSYMUTIL 6493 fi 6494else 6495 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6496fi 6497 6498 if test -n "$ac_tool_prefix"; then 6499 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6500set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502$as_echo_n "checking for $ac_word... " >&6; } 6503if ${ac_cv_prog_NMEDIT+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 if test -n "$NMEDIT"; then 6507 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6508else 6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6510for as_dir in $PATH 6511do 6512 IFS=$as_save_IFS 6513 test -z "$as_dir" && as_dir=. 6514 for ac_exec_ext in '' $ac_executable_extensions; do 6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6516 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6518 break 2 6519 fi 6520done 6521 done 6522IFS=$as_save_IFS 6523 6524fi 6525fi 6526NMEDIT=$ac_cv_prog_NMEDIT 6527if test -n "$NMEDIT"; then 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6529$as_echo "$NMEDIT" >&6; } 6530else 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532$as_echo "no" >&6; } 6533fi 6534 6535 6536fi 6537if test -z "$ac_cv_prog_NMEDIT"; then 6538 ac_ct_NMEDIT=$NMEDIT 6539 # Extract the first word of "nmedit", so it can be a program name with args. 6540set dummy nmedit; ac_word=$2 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6542$as_echo_n "checking for $ac_word... " >&6; } 6543if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6544 $as_echo_n "(cached) " >&6 6545else 6546 if test -n "$ac_ct_NMEDIT"; then 6547 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6548else 6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6550for as_dir in $PATH 6551do 6552 IFS=$as_save_IFS 6553 test -z "$as_dir" && as_dir=. 6554 for ac_exec_ext in '' $ac_executable_extensions; do 6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6556 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6558 break 2 6559 fi 6560done 6561 done 6562IFS=$as_save_IFS 6563 6564fi 6565fi 6566ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6567if test -n "$ac_ct_NMEDIT"; then 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6569$as_echo "$ac_ct_NMEDIT" >&6; } 6570else 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6572$as_echo "no" >&6; } 6573fi 6574 6575 if test "x$ac_ct_NMEDIT" = x; then 6576 NMEDIT=":" 6577 else 6578 case $cross_compiling:$ac_tool_warned in 6579yes:) 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6582ac_tool_warned=yes ;; 6583esac 6584 NMEDIT=$ac_ct_NMEDIT 6585 fi 6586else 6587 NMEDIT="$ac_cv_prog_NMEDIT" 6588fi 6589 6590 if test -n "$ac_tool_prefix"; then 6591 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6592set dummy ${ac_tool_prefix}lipo; ac_word=$2 6593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6594$as_echo_n "checking for $ac_word... " >&6; } 6595if ${ac_cv_prog_LIPO+:} false; then : 6596 $as_echo_n "(cached) " >&6 6597else 6598 if test -n "$LIPO"; then 6599 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6600else 6601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6602for as_dir in $PATH 6603do 6604 IFS=$as_save_IFS 6605 test -z "$as_dir" && as_dir=. 6606 for ac_exec_ext in '' $ac_executable_extensions; do 6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6608 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6610 break 2 6611 fi 6612done 6613 done 6614IFS=$as_save_IFS 6615 6616fi 6617fi 6618LIPO=$ac_cv_prog_LIPO 6619if test -n "$LIPO"; then 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6621$as_echo "$LIPO" >&6; } 6622else 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6624$as_echo "no" >&6; } 6625fi 6626 6627 6628fi 6629if test -z "$ac_cv_prog_LIPO"; then 6630 ac_ct_LIPO=$LIPO 6631 # Extract the first word of "lipo", so it can be a program name with args. 6632set dummy lipo; ac_word=$2 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6634$as_echo_n "checking for $ac_word... " >&6; } 6635if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6636 $as_echo_n "(cached) " >&6 6637else 6638 if test -n "$ac_ct_LIPO"; then 6639 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6640else 6641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6642for as_dir in $PATH 6643do 6644 IFS=$as_save_IFS 6645 test -z "$as_dir" && as_dir=. 6646 for ac_exec_ext in '' $ac_executable_extensions; do 6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6648 ac_cv_prog_ac_ct_LIPO="lipo" 6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6650 break 2 6651 fi 6652done 6653 done 6654IFS=$as_save_IFS 6655 6656fi 6657fi 6658ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6659if test -n "$ac_ct_LIPO"; then 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6661$as_echo "$ac_ct_LIPO" >&6; } 6662else 6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6664$as_echo "no" >&6; } 6665fi 6666 6667 if test "x$ac_ct_LIPO" = x; then 6668 LIPO=":" 6669 else 6670 case $cross_compiling:$ac_tool_warned in 6671yes:) 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6674ac_tool_warned=yes ;; 6675esac 6676 LIPO=$ac_ct_LIPO 6677 fi 6678else 6679 LIPO="$ac_cv_prog_LIPO" 6680fi 6681 6682 if test -n "$ac_tool_prefix"; then 6683 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6684set dummy ${ac_tool_prefix}otool; ac_word=$2 6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6686$as_echo_n "checking for $ac_word... " >&6; } 6687if ${ac_cv_prog_OTOOL+:} false; then : 6688 $as_echo_n "(cached) " >&6 6689else 6690 if test -n "$OTOOL"; then 6691 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6692else 6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6694for as_dir in $PATH 6695do 6696 IFS=$as_save_IFS 6697 test -z "$as_dir" && as_dir=. 6698 for ac_exec_ext in '' $ac_executable_extensions; do 6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6700 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6702 break 2 6703 fi 6704done 6705 done 6706IFS=$as_save_IFS 6707 6708fi 6709fi 6710OTOOL=$ac_cv_prog_OTOOL 6711if test -n "$OTOOL"; then 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6713$as_echo "$OTOOL" >&6; } 6714else 6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6716$as_echo "no" >&6; } 6717fi 6718 6719 6720fi 6721if test -z "$ac_cv_prog_OTOOL"; then 6722 ac_ct_OTOOL=$OTOOL 6723 # Extract the first word of "otool", so it can be a program name with args. 6724set dummy otool; ac_word=$2 6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6726$as_echo_n "checking for $ac_word... " >&6; } 6727if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6728 $as_echo_n "(cached) " >&6 6729else 6730 if test -n "$ac_ct_OTOOL"; then 6731 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6732else 6733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6734for as_dir in $PATH 6735do 6736 IFS=$as_save_IFS 6737 test -z "$as_dir" && as_dir=. 6738 for ac_exec_ext in '' $ac_executable_extensions; do 6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6740 ac_cv_prog_ac_ct_OTOOL="otool" 6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6742 break 2 6743 fi 6744done 6745 done 6746IFS=$as_save_IFS 6747 6748fi 6749fi 6750ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6751if test -n "$ac_ct_OTOOL"; then 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6753$as_echo "$ac_ct_OTOOL" >&6; } 6754else 6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6756$as_echo "no" >&6; } 6757fi 6758 6759 if test "x$ac_ct_OTOOL" = x; then 6760 OTOOL=":" 6761 else 6762 case $cross_compiling:$ac_tool_warned in 6763yes:) 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6766ac_tool_warned=yes ;; 6767esac 6768 OTOOL=$ac_ct_OTOOL 6769 fi 6770else 6771 OTOOL="$ac_cv_prog_OTOOL" 6772fi 6773 6774 if test -n "$ac_tool_prefix"; then 6775 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6776set dummy ${ac_tool_prefix}otool64; ac_word=$2 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6778$as_echo_n "checking for $ac_word... " >&6; } 6779if ${ac_cv_prog_OTOOL64+:} false; then : 6780 $as_echo_n "(cached) " >&6 6781else 6782 if test -n "$OTOOL64"; then 6783 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6784else 6785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6786for as_dir in $PATH 6787do 6788 IFS=$as_save_IFS 6789 test -z "$as_dir" && as_dir=. 6790 for ac_exec_ext in '' $ac_executable_extensions; do 6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6792 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6794 break 2 6795 fi 6796done 6797 done 6798IFS=$as_save_IFS 6799 6800fi 6801fi 6802OTOOL64=$ac_cv_prog_OTOOL64 6803if test -n "$OTOOL64"; then 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6805$as_echo "$OTOOL64" >&6; } 6806else 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6808$as_echo "no" >&6; } 6809fi 6810 6811 6812fi 6813if test -z "$ac_cv_prog_OTOOL64"; then 6814 ac_ct_OTOOL64=$OTOOL64 6815 # Extract the first word of "otool64", so it can be a program name with args. 6816set dummy otool64; ac_word=$2 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6818$as_echo_n "checking for $ac_word... " >&6; } 6819if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6820 $as_echo_n "(cached) " >&6 6821else 6822 if test -n "$ac_ct_OTOOL64"; then 6823 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6824else 6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826for as_dir in $PATH 6827do 6828 IFS=$as_save_IFS 6829 test -z "$as_dir" && as_dir=. 6830 for ac_exec_ext in '' $ac_executable_extensions; do 6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6832 ac_cv_prog_ac_ct_OTOOL64="otool64" 6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6834 break 2 6835 fi 6836done 6837 done 6838IFS=$as_save_IFS 6839 6840fi 6841fi 6842ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6843if test -n "$ac_ct_OTOOL64"; then 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6845$as_echo "$ac_ct_OTOOL64" >&6; } 6846else 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848$as_echo "no" >&6; } 6849fi 6850 6851 if test "x$ac_ct_OTOOL64" = x; then 6852 OTOOL64=":" 6853 else 6854 case $cross_compiling:$ac_tool_warned in 6855yes:) 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6858ac_tool_warned=yes ;; 6859esac 6860 OTOOL64=$ac_ct_OTOOL64 6861 fi 6862else 6863 OTOOL64="$ac_cv_prog_OTOOL64" 6864fi 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6893$as_echo_n "checking for -single_module linker flag... " >&6; } 6894if ${lt_cv_apple_cc_single_mod+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 lt_cv_apple_cc_single_mod=no 6898 if test -z "${LT_MULTI_MODULE}"; then 6899 # By default we will add the -single_module flag. You can override 6900 # by either setting the environment variable LT_MULTI_MODULE 6901 # non-empty at configure time, or by adding -multi_module to the 6902 # link flags. 6903 rm -rf libconftest.dylib* 6904 echo "int foo(void){return 1;}" > conftest.c 6905 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6906-dynamiclib -Wl,-single_module conftest.c" >&5 6907 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6908 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6909 _lt_result=$? 6910 # If there is a non-empty error log, and "single_module" 6911 # appears in it, assume the flag caused a linker warning 6912 if test -s conftest.err && $GREP single_module conftest.err; then 6913 cat conftest.err >&5 6914 # Otherwise, if the output was created with a 0 exit code from 6915 # the compiler, it worked. 6916 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 6917 lt_cv_apple_cc_single_mod=yes 6918 else 6919 cat conftest.err >&5 6920 fi 6921 rm -rf libconftest.dylib* 6922 rm -f conftest.* 6923 fi 6924fi 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6926$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6927 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6929$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6930if ${lt_cv_ld_exported_symbols_list+:} false; then : 6931 $as_echo_n "(cached) " >&6 6932else 6933 lt_cv_ld_exported_symbols_list=no 6934 save_LDFLAGS=$LDFLAGS 6935 echo "_main" > conftest.sym 6936 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6938/* end confdefs.h. */ 6939 6940int 6941main () 6942{ 6943 6944 ; 6945 return 0; 6946} 6947_ACEOF 6948if ac_fn_c_try_link "$LINENO"; then : 6949 lt_cv_ld_exported_symbols_list=yes 6950else 6951 lt_cv_ld_exported_symbols_list=no 6952fi 6953rm -f core conftest.err conftest.$ac_objext \ 6954 conftest$ac_exeext conftest.$ac_ext 6955 LDFLAGS="$save_LDFLAGS" 6956 6957fi 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6959$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6960 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6962$as_echo_n "checking for -force_load linker flag... " >&6; } 6963if ${lt_cv_ld_force_load+:} false; then : 6964 $as_echo_n "(cached) " >&6 6965else 6966 lt_cv_ld_force_load=no 6967 cat > conftest.c << _LT_EOF 6968int forced_loaded() { return 2;} 6969_LT_EOF 6970 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6971 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6972 echo "$AR cru libconftest.a conftest.o" >&5 6973 $AR cru libconftest.a conftest.o 2>&5 6974 echo "$RANLIB libconftest.a" >&5 6975 $RANLIB libconftest.a 2>&5 6976 cat > conftest.c << _LT_EOF 6977int main() { return 0;} 6978_LT_EOF 6979 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6980 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6981 _lt_result=$? 6982 if test -s conftest.err && $GREP force_load conftest.err; then 6983 cat conftest.err >&5 6984 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 6985 lt_cv_ld_force_load=yes 6986 else 6987 cat conftest.err >&5 6988 fi 6989 rm -f conftest.err libconftest.a conftest conftest.c 6990 rm -rf conftest.dSYM 6991 6992fi 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6994$as_echo "$lt_cv_ld_force_load" >&6; } 6995 case $host_os in 6996 rhapsody* | darwin1.[012]) 6997 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6998 darwin1.*) 6999 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7000 darwin*) # darwin 5.x on 7001 # if running on 10.5 or later, the deployment target defaults 7002 # to the OS version, if on x86, and 10.4, the deployment 7003 # target defaults to 10.4. Don't you love it? 7004 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7005 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7006 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7007 10.[012]*) 7008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7009 10.*) 7010 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7011 esac 7012 ;; 7013 esac 7014 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7015 _lt_dar_single_mod='$single_module' 7016 fi 7017 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7018 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7019 else 7020 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7021 fi 7022 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7023 _lt_dsymutil='~$DSYMUTIL $lib || :' 7024 else 7025 _lt_dsymutil= 7026 fi 7027 ;; 7028 esac 7029 7030ac_ext=c 7031ac_cpp='$CPP $CPPFLAGS' 7032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7034ac_compiler_gnu=$ac_cv_c_compiler_gnu 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7036$as_echo_n "checking how to run the C preprocessor... " >&6; } 7037# On Suns, sometimes $CPP names a directory. 7038if test -n "$CPP" && test -d "$CPP"; then 7039 CPP= 7040fi 7041if test -z "$CPP"; then 7042 if ${ac_cv_prog_CPP+:} false; then : 7043 $as_echo_n "(cached) " >&6 7044else 7045 # Double quotes because CPP needs to be expanded 7046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7047 do 7048 ac_preproc_ok=false 7049for ac_c_preproc_warn_flag in '' yes 7050do 7051 # Use a header file that comes with gcc, so configuring glibc 7052 # with a fresh cross-compiler works. 7053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7054 # <limits.h> exists even on freestanding compilers. 7055 # On the NeXT, cc -E runs the code through the compiler's parser, 7056 # not just through cpp. "Syntax error" is here to catch this case. 7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7058/* end confdefs.h. */ 7059#ifdef __STDC__ 7060# include <limits.h> 7061#else 7062# include <assert.h> 7063#endif 7064 Syntax error 7065_ACEOF 7066if ac_fn_c_try_cpp "$LINENO"; then : 7067 7068else 7069 # Broken: fails on valid input. 7070continue 7071fi 7072rm -f conftest.err conftest.i conftest.$ac_ext 7073 7074 # OK, works on sane cases. Now check whether nonexistent headers 7075 # can be detected and how. 7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7077/* end confdefs.h. */ 7078#include <ac_nonexistent.h> 7079_ACEOF 7080if ac_fn_c_try_cpp "$LINENO"; then : 7081 # Broken: success on invalid input. 7082continue 7083else 7084 # Passes both tests. 7085ac_preproc_ok=: 7086break 7087fi 7088rm -f conftest.err conftest.i conftest.$ac_ext 7089 7090done 7091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7092rm -f conftest.i conftest.err conftest.$ac_ext 7093if $ac_preproc_ok; then : 7094 break 7095fi 7096 7097 done 7098 ac_cv_prog_CPP=$CPP 7099 7100fi 7101 CPP=$ac_cv_prog_CPP 7102else 7103 ac_cv_prog_CPP=$CPP 7104fi 7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7106$as_echo "$CPP" >&6; } 7107ac_preproc_ok=false 7108for ac_c_preproc_warn_flag in '' yes 7109do 7110 # Use a header file that comes with gcc, so configuring glibc 7111 # with a fresh cross-compiler works. 7112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7113 # <limits.h> exists even on freestanding compilers. 7114 # On the NeXT, cc -E runs the code through the compiler's parser, 7115 # not just through cpp. "Syntax error" is here to catch this case. 7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7117/* end confdefs.h. */ 7118#ifdef __STDC__ 7119# include <limits.h> 7120#else 7121# include <assert.h> 7122#endif 7123 Syntax error 7124_ACEOF 7125if ac_fn_c_try_cpp "$LINENO"; then : 7126 7127else 7128 # Broken: fails on valid input. 7129continue 7130fi 7131rm -f conftest.err conftest.i conftest.$ac_ext 7132 7133 # OK, works on sane cases. Now check whether nonexistent headers 7134 # can be detected and how. 7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7136/* end confdefs.h. */ 7137#include <ac_nonexistent.h> 7138_ACEOF 7139if ac_fn_c_try_cpp "$LINENO"; then : 7140 # Broken: success on invalid input. 7141continue 7142else 7143 # Passes both tests. 7144ac_preproc_ok=: 7145break 7146fi 7147rm -f conftest.err conftest.i conftest.$ac_ext 7148 7149done 7150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7151rm -f conftest.i conftest.err conftest.$ac_ext 7152if $ac_preproc_ok; then : 7153 7154else 7155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7157as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7158See \`config.log' for more details" "$LINENO" 5; } 7159fi 7160 7161ac_ext=c 7162ac_cpp='$CPP $CPPFLAGS' 7163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7165ac_compiler_gnu=$ac_cv_c_compiler_gnu 7166 7167 7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7169$as_echo_n "checking for ANSI C header files... " >&6; } 7170if ${ac_cv_header_stdc+:} false; then : 7171 $as_echo_n "(cached) " >&6 7172else 7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7174/* end confdefs.h. */ 7175#include <stdlib.h> 7176#include <stdarg.h> 7177#include <string.h> 7178#include <float.h> 7179 7180int 7181main () 7182{ 7183 7184 ; 7185 return 0; 7186} 7187_ACEOF 7188if ac_fn_c_try_compile "$LINENO"; then : 7189 ac_cv_header_stdc=yes 7190else 7191 ac_cv_header_stdc=no 7192fi 7193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7194 7195if test $ac_cv_header_stdc = yes; then 7196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7198/* end confdefs.h. */ 7199#include <string.h> 7200 7201_ACEOF 7202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7203 $EGREP "memchr" >/dev/null 2>&1; then : 7204 7205else 7206 ac_cv_header_stdc=no 7207fi 7208rm -f conftest* 7209 7210fi 7211 7212if test $ac_cv_header_stdc = yes; then 7213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7215/* end confdefs.h. */ 7216#include <stdlib.h> 7217 7218_ACEOF 7219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7220 $EGREP "free" >/dev/null 2>&1; then : 7221 7222else 7223 ac_cv_header_stdc=no 7224fi 7225rm -f conftest* 7226 7227fi 7228 7229if test $ac_cv_header_stdc = yes; then 7230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7231 if test "$cross_compiling" = yes; then : 7232 : 7233else 7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7235/* end confdefs.h. */ 7236#include <ctype.h> 7237#include <stdlib.h> 7238#if ((' ' & 0x0FF) == 0x020) 7239# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7240# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7241#else 7242# define ISLOWER(c) \ 7243 (('a' <= (c) && (c) <= 'i') \ 7244 || ('j' <= (c) && (c) <= 'r') \ 7245 || ('s' <= (c) && (c) <= 'z')) 7246# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7247#endif 7248 7249#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7250int 7251main () 7252{ 7253 int i; 7254 for (i = 0; i < 256; i++) 7255 if (XOR (islower (i), ISLOWER (i)) 7256 || toupper (i) != TOUPPER (i)) 7257 return 2; 7258 return 0; 7259} 7260_ACEOF 7261if ac_fn_c_try_run "$LINENO"; then : 7262 7263else 7264 ac_cv_header_stdc=no 7265fi 7266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7267 conftest.$ac_objext conftest.beam conftest.$ac_ext 7268fi 7269 7270fi 7271fi 7272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7273$as_echo "$ac_cv_header_stdc" >&6; } 7274if test $ac_cv_header_stdc = yes; then 7275 7276$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7277 7278fi 7279 7280# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7281for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7282 inttypes.h stdint.h unistd.h 7283do : 7284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7285ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7286" 7287if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7288 cat >>confdefs.h <<_ACEOF 7289#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7290_ACEOF 7291 7292fi 7293 7294done 7295 7296 7297for ac_header in dlfcn.h 7298do : 7299 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7300" 7301if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7302 cat >>confdefs.h <<_ACEOF 7303#define HAVE_DLFCN_H 1 7304_ACEOF 7305 7306fi 7307 7308done 7309 7310 7311 7312 7313 7314# Set options 7315 7316 7317 7318 enable_dlopen=no 7319 7320 7321 enable_win32_dll=no 7322 7323 7324 # Check whether --enable-shared was given. 7325if test "${enable_shared+set}" = set; then : 7326 enableval=$enable_shared; p=${PACKAGE-default} 7327 case $enableval in 7328 yes) enable_shared=yes ;; 7329 no) enable_shared=no ;; 7330 *) 7331 enable_shared=no 7332 # Look at the argument we got. We use all the common list separators. 7333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7334 for pkg in $enableval; do 7335 IFS="$lt_save_ifs" 7336 if test "X$pkg" = "X$p"; then 7337 enable_shared=yes 7338 fi 7339 done 7340 IFS="$lt_save_ifs" 7341 ;; 7342 esac 7343else 7344 enable_shared=yes 7345fi 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 # Check whether --enable-static was given. 7356if test "${enable_static+set}" = set; then : 7357 enableval=$enable_static; p=${PACKAGE-default} 7358 case $enableval in 7359 yes) enable_static=yes ;; 7360 no) enable_static=no ;; 7361 *) 7362 enable_static=no 7363 # Look at the argument we got. We use all the common list separators. 7364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7365 for pkg in $enableval; do 7366 IFS="$lt_save_ifs" 7367 if test "X$pkg" = "X$p"; then 7368 enable_static=yes 7369 fi 7370 done 7371 IFS="$lt_save_ifs" 7372 ;; 7373 esac 7374else 7375 enable_static=yes 7376fi 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387# Check whether --with-pic was given. 7388if test "${with_pic+set}" = set; then : 7389 withval=$with_pic; lt_p=${PACKAGE-default} 7390 case $withval in 7391 yes|no) pic_mode=$withval ;; 7392 *) 7393 pic_mode=default 7394 # Look at the argument we got. We use all the common list separators. 7395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7396 for lt_pkg in $withval; do 7397 IFS="$lt_save_ifs" 7398 if test "X$lt_pkg" = "X$lt_p"; then 7399 pic_mode=yes 7400 fi 7401 done 7402 IFS="$lt_save_ifs" 7403 ;; 7404 esac 7405else 7406 pic_mode=default 7407fi 7408 7409 7410test -z "$pic_mode" && pic_mode=default 7411 7412 7413 7414 7415 7416 7417 7418 # Check whether --enable-fast-install was given. 7419if test "${enable_fast_install+set}" = set; then : 7420 enableval=$enable_fast_install; p=${PACKAGE-default} 7421 case $enableval in 7422 yes) enable_fast_install=yes ;; 7423 no) enable_fast_install=no ;; 7424 *) 7425 enable_fast_install=no 7426 # Look at the argument we got. We use all the common list separators. 7427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7428 for pkg in $enableval; do 7429 IFS="$lt_save_ifs" 7430 if test "X$pkg" = "X$p"; then 7431 enable_fast_install=yes 7432 fi 7433 done 7434 IFS="$lt_save_ifs" 7435 ;; 7436 esac 7437else 7438 enable_fast_install=yes 7439fi 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451# This can be used to rebuild libtool when needed 7452LIBTOOL_DEPS="$ltmain" 7453 7454# Always use our own libtool. 7455LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486test -z "$LN_S" && LN_S="ln -s" 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501if test -n "${ZSH_VERSION+set}" ; then 7502 setopt NO_GLOB_SUBST 7503fi 7504 7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7506$as_echo_n "checking for objdir... " >&6; } 7507if ${lt_cv_objdir+:} false; then : 7508 $as_echo_n "(cached) " >&6 7509else 7510 rm -f .libs 2>/dev/null 7511mkdir .libs 2>/dev/null 7512if test -d .libs; then 7513 lt_cv_objdir=.libs 7514else 7515 # MS-DOS does not allow filenames that begin with a dot. 7516 lt_cv_objdir=_libs 7517fi 7518rmdir .libs 2>/dev/null 7519fi 7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7521$as_echo "$lt_cv_objdir" >&6; } 7522objdir=$lt_cv_objdir 7523 7524 7525 7526 7527 7528cat >>confdefs.h <<_ACEOF 7529#define LT_OBJDIR "$lt_cv_objdir/" 7530_ACEOF 7531 7532 7533 7534 7535case $host_os in 7536aix3*) 7537 # AIX sometimes has problems with the GCC collect2 program. For some 7538 # reason, if we set the COLLECT_NAMES environment variable, the problems 7539 # vanish in a puff of smoke. 7540 if test "X${COLLECT_NAMES+set}" != Xset; then 7541 COLLECT_NAMES= 7542 export COLLECT_NAMES 7543 fi 7544 ;; 7545esac 7546 7547# Global variables: 7548ofile=libtool 7549can_build_shared=yes 7550 7551# All known linkers require a `.a' archive for static linking (except MSVC, 7552# which needs '.lib'). 7553libext=a 7554 7555with_gnu_ld="$lt_cv_prog_gnu_ld" 7556 7557old_CC="$CC" 7558old_CFLAGS="$CFLAGS" 7559 7560# Set sane defaults for various variables 7561test -z "$CC" && CC=cc 7562test -z "$LTCC" && LTCC=$CC 7563test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7564test -z "$LD" && LD=ld 7565test -z "$ac_objext" && ac_objext=o 7566 7567for cc_temp in $compiler""; do 7568 case $cc_temp in 7569 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7570 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7571 \-*) ;; 7572 *) break;; 7573 esac 7574done 7575cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7576 7577 7578# Only perform the check for file, if the check method requires it 7579test -z "$MAGIC_CMD" && MAGIC_CMD=file 7580case $deplibs_check_method in 7581file_magic*) 7582 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7584$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7585if ${lt_cv_path_MAGIC_CMD+:} false; then : 7586 $as_echo_n "(cached) " >&6 7587else 7588 case $MAGIC_CMD in 7589[\\/*] | ?:[\\/]*) 7590 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7591 ;; 7592*) 7593 lt_save_MAGIC_CMD="$MAGIC_CMD" 7594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7595 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7596 for ac_dir in $ac_dummy; do 7597 IFS="$lt_save_ifs" 7598 test -z "$ac_dir" && ac_dir=. 7599 if test -f $ac_dir/${ac_tool_prefix}file; then 7600 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7601 if test -n "$file_magic_test_file"; then 7602 case $deplibs_check_method in 7603 "file_magic "*) 7604 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7606 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7607 $EGREP "$file_magic_regex" > /dev/null; then 7608 : 7609 else 7610 cat <<_LT_EOF 1>&2 7611 7612*** Warning: the command libtool uses to detect shared libraries, 7613*** $file_magic_cmd, produces output that libtool cannot recognize. 7614*** The result is that libtool may fail to recognize shared libraries 7615*** as such. This will affect the creation of libtool libraries that 7616*** depend on shared libraries, but programs linked with such libtool 7617*** libraries will work regardless of this problem. Nevertheless, you 7618*** may want to report the problem to your system manager and/or to 7619*** bug-libtool@gnu.org 7620 7621_LT_EOF 7622 fi ;; 7623 esac 7624 fi 7625 break 7626 fi 7627 done 7628 IFS="$lt_save_ifs" 7629 MAGIC_CMD="$lt_save_MAGIC_CMD" 7630 ;; 7631esac 7632fi 7633 7634MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7635if test -n "$MAGIC_CMD"; then 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7637$as_echo "$MAGIC_CMD" >&6; } 7638else 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7640$as_echo "no" >&6; } 7641fi 7642 7643 7644 7645 7646 7647if test -z "$lt_cv_path_MAGIC_CMD"; then 7648 if test -n "$ac_tool_prefix"; then 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7650$as_echo_n "checking for file... " >&6; } 7651if ${lt_cv_path_MAGIC_CMD+:} false; then : 7652 $as_echo_n "(cached) " >&6 7653else 7654 case $MAGIC_CMD in 7655[\\/*] | ?:[\\/]*) 7656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7657 ;; 7658*) 7659 lt_save_MAGIC_CMD="$MAGIC_CMD" 7660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7661 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7662 for ac_dir in $ac_dummy; do 7663 IFS="$lt_save_ifs" 7664 test -z "$ac_dir" && ac_dir=. 7665 if test -f $ac_dir/file; then 7666 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7667 if test -n "$file_magic_test_file"; then 7668 case $deplibs_check_method in 7669 "file_magic "*) 7670 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7672 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7673 $EGREP "$file_magic_regex" > /dev/null; then 7674 : 7675 else 7676 cat <<_LT_EOF 1>&2 7677 7678*** Warning: the command libtool uses to detect shared libraries, 7679*** $file_magic_cmd, produces output that libtool cannot recognize. 7680*** The result is that libtool may fail to recognize shared libraries 7681*** as such. This will affect the creation of libtool libraries that 7682*** depend on shared libraries, but programs linked with such libtool 7683*** libraries will work regardless of this problem. Nevertheless, you 7684*** may want to report the problem to your system manager and/or to 7685*** bug-libtool@gnu.org 7686 7687_LT_EOF 7688 fi ;; 7689 esac 7690 fi 7691 break 7692 fi 7693 done 7694 IFS="$lt_save_ifs" 7695 MAGIC_CMD="$lt_save_MAGIC_CMD" 7696 ;; 7697esac 7698fi 7699 7700MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7701if test -n "$MAGIC_CMD"; then 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7703$as_echo "$MAGIC_CMD" >&6; } 7704else 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7706$as_echo "no" >&6; } 7707fi 7708 7709 7710 else 7711 MAGIC_CMD=: 7712 fi 7713fi 7714 7715 fi 7716 ;; 7717esac 7718 7719# Use C for the default configuration in the libtool script 7720 7721lt_save_CC="$CC" 7722ac_ext=c 7723ac_cpp='$CPP $CPPFLAGS' 7724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7726ac_compiler_gnu=$ac_cv_c_compiler_gnu 7727 7728 7729# Source file extension for C test sources. 7730ac_ext=c 7731 7732# Object file extension for compiled C test sources. 7733objext=o 7734objext=$objext 7735 7736# Code to be used in simple compile tests 7737lt_simple_compile_test_code="int some_variable = 0;" 7738 7739# Code to be used in simple link tests 7740lt_simple_link_test_code='int main(){return(0);}' 7741 7742 7743 7744 7745 7746 7747 7748# If no C compiler was specified, use CC. 7749LTCC=${LTCC-"$CC"} 7750 7751# If no C compiler flags were specified, use CFLAGS. 7752LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7753 7754# Allow CC to be a program name with arguments. 7755compiler=$CC 7756 7757# Save the default compiler, since it gets overwritten when the other 7758# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7759compiler_DEFAULT=$CC 7760 7761# save warnings/boilerplate of simple test code 7762ac_outfile=conftest.$ac_objext 7763echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7764eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7765_lt_compiler_boilerplate=`cat conftest.err` 7766$RM conftest* 7767 7768ac_outfile=conftest.$ac_objext 7769echo "$lt_simple_link_test_code" >conftest.$ac_ext 7770eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7771_lt_linker_boilerplate=`cat conftest.err` 7772$RM -r conftest* 7773 7774 7775if test -n "$compiler"; then 7776 7777lt_prog_compiler_no_builtin_flag= 7778 7779if test "$GCC" = yes; then 7780 case $cc_basename in 7781 nvcc*) 7782 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7783 *) 7784 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7785 esac 7786 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7788$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7789if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7790 $as_echo_n "(cached) " >&6 7791else 7792 lt_cv_prog_compiler_rtti_exceptions=no 7793 ac_outfile=conftest.$ac_objext 7794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7795 lt_compiler_flag="-fno-rtti -fno-exceptions" 7796 # Insert the option either (1) after the last *FLAGS variable, or 7797 # (2) before a word containing "conftest.", or (3) at the end. 7798 # Note that $ac_compile itself does not contain backslashes and begins 7799 # with a dollar sign (not a hyphen), so the echo should work correctly. 7800 # The option is referenced via a variable to avoid confusing sed. 7801 lt_compile=`echo "$ac_compile" | $SED \ 7802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7804 -e 's:$: $lt_compiler_flag:'` 7805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7806 (eval "$lt_compile" 2>conftest.err) 7807 ac_status=$? 7808 cat conftest.err >&5 7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7810 if (exit $ac_status) && test -s "$ac_outfile"; then 7811 # The compiler can only warn and ignore the option if not recognized 7812 # So say no if there are warnings other than the usual output. 7813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7816 lt_cv_prog_compiler_rtti_exceptions=yes 7817 fi 7818 fi 7819 $RM conftest* 7820 7821fi 7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7823$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7824 7825if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7826 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7827else 7828 : 7829fi 7830 7831fi 7832 7833 7834 7835 7836 7837 7838 lt_prog_compiler_wl= 7839lt_prog_compiler_pic= 7840lt_prog_compiler_static= 7841 7842 7843 if test "$GCC" = yes; then 7844 lt_prog_compiler_wl='-Wl,' 7845 lt_prog_compiler_static='-static' 7846 7847 case $host_os in 7848 aix*) 7849 # All AIX code is PIC. 7850 if test "$host_cpu" = ia64; then 7851 # AIX 5 now supports IA64 processor 7852 lt_prog_compiler_static='-Bstatic' 7853 fi 7854 ;; 7855 7856 amigaos*) 7857 case $host_cpu in 7858 powerpc) 7859 # see comment about AmigaOS4 .so support 7860 lt_prog_compiler_pic='-fPIC' 7861 ;; 7862 m68k) 7863 # FIXME: we need at least 68020 code to build shared libraries, but 7864 # adding the `-m68020' flag to GCC prevents building anything better, 7865 # like `-m68040'. 7866 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7867 ;; 7868 esac 7869 ;; 7870 7871 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7872 # PIC is the default for these OSes. 7873 ;; 7874 7875 mingw* | cygwin* | pw32* | os2* | cegcc*) 7876 # This hack is so that the source file can tell whether it is being 7877 # built for inclusion in a dll (and should export symbols for example). 7878 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7879 # (--disable-auto-import) libraries 7880 lt_prog_compiler_pic='-DDLL_EXPORT' 7881 ;; 7882 7883 darwin* | rhapsody*) 7884 # PIC is the default on this platform 7885 # Common symbols not allowed in MH_DYLIB files 7886 lt_prog_compiler_pic='-fno-common' 7887 ;; 7888 7889 haiku*) 7890 # PIC is the default for Haiku. 7891 # The "-static" flag exists, but is broken. 7892 lt_prog_compiler_static= 7893 ;; 7894 7895 hpux*) 7896 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7897 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7898 # sets the default TLS model and affects inlining. 7899 case $host_cpu in 7900 hppa*64*) 7901 # +Z the default 7902 ;; 7903 *) 7904 lt_prog_compiler_pic='-fPIC' 7905 ;; 7906 esac 7907 ;; 7908 7909 interix[3-9]*) 7910 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7911 # Instead, we relocate shared libraries at runtime. 7912 ;; 7913 7914 msdosdjgpp*) 7915 # Just because we use GCC doesn't mean we suddenly get shared libraries 7916 # on systems that don't support them. 7917 lt_prog_compiler_can_build_shared=no 7918 enable_shared=no 7919 ;; 7920 7921 *nto* | *qnx*) 7922 # QNX uses GNU C++, but need to define -shared option too, otherwise 7923 # it will coredump. 7924 lt_prog_compiler_pic='-fPIC -shared' 7925 ;; 7926 7927 sysv4*MP*) 7928 if test -d /usr/nec; then 7929 lt_prog_compiler_pic=-Kconform_pic 7930 fi 7931 ;; 7932 7933 *) 7934 lt_prog_compiler_pic='-fPIC' 7935 ;; 7936 esac 7937 7938 case $cc_basename in 7939 nvcc*) # Cuda Compiler Driver 2.2 7940 lt_prog_compiler_wl='-Xlinker ' 7941 if test -n "$lt_prog_compiler_pic"; then 7942 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 7943 fi 7944 ;; 7945 esac 7946 else 7947 # PORTME Check for flag to pass linker flags through the system compiler. 7948 case $host_os in 7949 aix*) 7950 lt_prog_compiler_wl='-Wl,' 7951 if test "$host_cpu" = ia64; then 7952 # AIX 5 now supports IA64 processor 7953 lt_prog_compiler_static='-Bstatic' 7954 else 7955 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7956 fi 7957 ;; 7958 7959 mingw* | cygwin* | pw32* | os2* | cegcc*) 7960 # This hack is so that the source file can tell whether it is being 7961 # built for inclusion in a dll (and should export symbols for example). 7962 lt_prog_compiler_pic='-DDLL_EXPORT' 7963 ;; 7964 7965 hpux9* | hpux10* | hpux11*) 7966 lt_prog_compiler_wl='-Wl,' 7967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7968 # not for PA HP-UX. 7969 case $host_cpu in 7970 hppa*64*|ia64*) 7971 # +Z the default 7972 ;; 7973 *) 7974 lt_prog_compiler_pic='+Z' 7975 ;; 7976 esac 7977 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7978 lt_prog_compiler_static='${wl}-a ${wl}archive' 7979 ;; 7980 7981 irix5* | irix6* | nonstopux*) 7982 lt_prog_compiler_wl='-Wl,' 7983 # PIC (with -KPIC) is the default. 7984 lt_prog_compiler_static='-non_shared' 7985 ;; 7986 7987 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7988 case $cc_basename in 7989 # old Intel for x86_64 which still supported -KPIC. 7990 ecc*) 7991 lt_prog_compiler_wl='-Wl,' 7992 lt_prog_compiler_pic='-KPIC' 7993 lt_prog_compiler_static='-static' 7994 ;; 7995 # icc used to be incompatible with GCC. 7996 # ICC 10 doesn't accept -KPIC any more. 7997 icc* | ifort*) 7998 lt_prog_compiler_wl='-Wl,' 7999 lt_prog_compiler_pic='-fPIC' 8000 lt_prog_compiler_static='-static' 8001 ;; 8002 # Lahey Fortran 8.1. 8003 lf95*) 8004 lt_prog_compiler_wl='-Wl,' 8005 lt_prog_compiler_pic='--shared' 8006 lt_prog_compiler_static='--static' 8007 ;; 8008 nagfor*) 8009 # NAG Fortran compiler 8010 lt_prog_compiler_wl='-Wl,-Wl,,' 8011 lt_prog_compiler_pic='-PIC' 8012 lt_prog_compiler_static='-Bstatic' 8013 ;; 8014 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8015 # Portland Group compilers (*not* the Pentium gcc compiler, 8016 # which looks to be a dead project) 8017 lt_prog_compiler_wl='-Wl,' 8018 lt_prog_compiler_pic='-fpic' 8019 lt_prog_compiler_static='-Bstatic' 8020 ;; 8021 ccc*) 8022 lt_prog_compiler_wl='-Wl,' 8023 # All Alpha code is PIC. 8024 lt_prog_compiler_static='-non_shared' 8025 ;; 8026 xl* | bgxl* | bgf* | mpixl*) 8027 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8028 lt_prog_compiler_wl='-Wl,' 8029 lt_prog_compiler_pic='-qpic' 8030 lt_prog_compiler_static='-qstaticlink' 8031 ;; 8032 *) 8033 case `$CC -V 2>&1 | sed 5q` in 8034 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8035 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8036 lt_prog_compiler_pic='-KPIC' 8037 lt_prog_compiler_static='-Bstatic' 8038 lt_prog_compiler_wl='' 8039 ;; 8040 *Sun\ F* | *Sun*Fortran*) 8041 lt_prog_compiler_pic='-KPIC' 8042 lt_prog_compiler_static='-Bstatic' 8043 lt_prog_compiler_wl='-Qoption ld ' 8044 ;; 8045 *Sun\ C*) 8046 # Sun C 5.9 8047 lt_prog_compiler_pic='-KPIC' 8048 lt_prog_compiler_static='-Bstatic' 8049 lt_prog_compiler_wl='-Wl,' 8050 ;; 8051 *Intel*\ [CF]*Compiler*) 8052 lt_prog_compiler_wl='-Wl,' 8053 lt_prog_compiler_pic='-fPIC' 8054 lt_prog_compiler_static='-static' 8055 ;; 8056 *Portland\ Group*) 8057 lt_prog_compiler_wl='-Wl,' 8058 lt_prog_compiler_pic='-fpic' 8059 lt_prog_compiler_static='-Bstatic' 8060 ;; 8061 esac 8062 ;; 8063 esac 8064 ;; 8065 8066 newsos6) 8067 lt_prog_compiler_pic='-KPIC' 8068 lt_prog_compiler_static='-Bstatic' 8069 ;; 8070 8071 *nto* | *qnx*) 8072 # QNX uses GNU C++, but need to define -shared option too, otherwise 8073 # it will coredump. 8074 lt_prog_compiler_pic='-fPIC -shared' 8075 ;; 8076 8077 osf3* | osf4* | osf5*) 8078 lt_prog_compiler_wl='-Wl,' 8079 # All OSF/1 code is PIC. 8080 lt_prog_compiler_static='-non_shared' 8081 ;; 8082 8083 rdos*) 8084 lt_prog_compiler_static='-non_shared' 8085 ;; 8086 8087 solaris*) 8088 lt_prog_compiler_pic='-KPIC' 8089 lt_prog_compiler_static='-Bstatic' 8090 case $cc_basename in 8091 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8092 lt_prog_compiler_wl='-Qoption ld ';; 8093 *) 8094 lt_prog_compiler_wl='-Wl,';; 8095 esac 8096 ;; 8097 8098 sunos4*) 8099 lt_prog_compiler_wl='-Qoption ld ' 8100 lt_prog_compiler_pic='-PIC' 8101 lt_prog_compiler_static='-Bstatic' 8102 ;; 8103 8104 sysv4 | sysv4.2uw2* | sysv4.3*) 8105 lt_prog_compiler_wl='-Wl,' 8106 lt_prog_compiler_pic='-KPIC' 8107 lt_prog_compiler_static='-Bstatic' 8108 ;; 8109 8110 sysv4*MP*) 8111 if test -d /usr/nec ;then 8112 lt_prog_compiler_pic='-Kconform_pic' 8113 lt_prog_compiler_static='-Bstatic' 8114 fi 8115 ;; 8116 8117 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8118 lt_prog_compiler_wl='-Wl,' 8119 lt_prog_compiler_pic='-KPIC' 8120 lt_prog_compiler_static='-Bstatic' 8121 ;; 8122 8123 unicos*) 8124 lt_prog_compiler_wl='-Wl,' 8125 lt_prog_compiler_can_build_shared=no 8126 ;; 8127 8128 uts4*) 8129 lt_prog_compiler_pic='-pic' 8130 lt_prog_compiler_static='-Bstatic' 8131 ;; 8132 8133 *) 8134 lt_prog_compiler_can_build_shared=no 8135 ;; 8136 esac 8137 fi 8138 8139case $host_os in 8140 # For platforms which do not support PIC, -DPIC is meaningless: 8141 *djgpp*) 8142 lt_prog_compiler_pic= 8143 ;; 8144 *) 8145 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8146 ;; 8147esac 8148 8149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8150$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8151if ${lt_cv_prog_compiler_pic+:} false; then : 8152 $as_echo_n "(cached) " >&6 8153else 8154 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8155fi 8156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8157$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8158lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8159 8160# 8161# Check to make sure the PIC flag actually works. 8162# 8163if test -n "$lt_prog_compiler_pic"; then 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8165$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8166if ${lt_cv_prog_compiler_pic_works+:} false; then : 8167 $as_echo_n "(cached) " >&6 8168else 8169 lt_cv_prog_compiler_pic_works=no 8170 ac_outfile=conftest.$ac_objext 8171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8172 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8173 # Insert the option either (1) after the last *FLAGS variable, or 8174 # (2) before a word containing "conftest.", or (3) at the end. 8175 # Note that $ac_compile itself does not contain backslashes and begins 8176 # with a dollar sign (not a hyphen), so the echo should work correctly. 8177 # The option is referenced via a variable to avoid confusing sed. 8178 lt_compile=`echo "$ac_compile" | $SED \ 8179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8181 -e 's:$: $lt_compiler_flag:'` 8182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8183 (eval "$lt_compile" 2>conftest.err) 8184 ac_status=$? 8185 cat conftest.err >&5 8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8187 if (exit $ac_status) && test -s "$ac_outfile"; then 8188 # The compiler can only warn and ignore the option if not recognized 8189 # So say no if there are warnings other than the usual output. 8190 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8193 lt_cv_prog_compiler_pic_works=yes 8194 fi 8195 fi 8196 $RM conftest* 8197 8198fi 8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8200$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8201 8202if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8203 case $lt_prog_compiler_pic in 8204 "" | " "*) ;; 8205 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8206 esac 8207else 8208 lt_prog_compiler_pic= 8209 lt_prog_compiler_can_build_shared=no 8210fi 8211 8212fi 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224# 8225# Check to make sure the static flag actually works. 8226# 8227wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8229$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8230if ${lt_cv_prog_compiler_static_works+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232else 8233 lt_cv_prog_compiler_static_works=no 8234 save_LDFLAGS="$LDFLAGS" 8235 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8236 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8237 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8238 # The linker can only warn and ignore the option if not recognized 8239 # So say no if there are warnings 8240 if test -s conftest.err; then 8241 # Append any errors to the config.log. 8242 cat conftest.err 1>&5 8243 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8245 if diff conftest.exp conftest.er2 >/dev/null; then 8246 lt_cv_prog_compiler_static_works=yes 8247 fi 8248 else 8249 lt_cv_prog_compiler_static_works=yes 8250 fi 8251 fi 8252 $RM -r conftest* 8253 LDFLAGS="$save_LDFLAGS" 8254 8255fi 8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8257$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8258 8259if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8260 : 8261else 8262 lt_prog_compiler_static= 8263fi 8264 8265 8266 8267 8268 8269 8270 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8272$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8273if ${lt_cv_prog_compiler_c_o+:} false; then : 8274 $as_echo_n "(cached) " >&6 8275else 8276 lt_cv_prog_compiler_c_o=no 8277 $RM -r conftest 2>/dev/null 8278 mkdir conftest 8279 cd conftest 8280 mkdir out 8281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8282 8283 lt_compiler_flag="-o out/conftest2.$ac_objext" 8284 # Insert the option either (1) after the last *FLAGS variable, or 8285 # (2) before a word containing "conftest.", or (3) at the end. 8286 # Note that $ac_compile itself does not contain backslashes and begins 8287 # with a dollar sign (not a hyphen), so the echo should work correctly. 8288 lt_compile=`echo "$ac_compile" | $SED \ 8289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8291 -e 's:$: $lt_compiler_flag:'` 8292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8293 (eval "$lt_compile" 2>out/conftest.err) 8294 ac_status=$? 8295 cat out/conftest.err >&5 8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8297 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8298 then 8299 # The compiler can only warn and ignore the option if not recognized 8300 # So say no if there are warnings 8301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8304 lt_cv_prog_compiler_c_o=yes 8305 fi 8306 fi 8307 chmod u+w . 2>&5 8308 $RM conftest* 8309 # SGI C++ compiler will create directory out/ii_files/ for 8310 # template instantiation 8311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8312 $RM out/* && rmdir out 8313 cd .. 8314 $RM -r conftest 8315 $RM conftest* 8316 8317fi 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8319$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8320 8321 8322 8323 8324 8325 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8327$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8328if ${lt_cv_prog_compiler_c_o+:} false; then : 8329 $as_echo_n "(cached) " >&6 8330else 8331 lt_cv_prog_compiler_c_o=no 8332 $RM -r conftest 2>/dev/null 8333 mkdir conftest 8334 cd conftest 8335 mkdir out 8336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8337 8338 lt_compiler_flag="-o out/conftest2.$ac_objext" 8339 # Insert the option either (1) after the last *FLAGS variable, or 8340 # (2) before a word containing "conftest.", or (3) at the end. 8341 # Note that $ac_compile itself does not contain backslashes and begins 8342 # with a dollar sign (not a hyphen), so the echo should work correctly. 8343 lt_compile=`echo "$ac_compile" | $SED \ 8344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8346 -e 's:$: $lt_compiler_flag:'` 8347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8348 (eval "$lt_compile" 2>out/conftest.err) 8349 ac_status=$? 8350 cat out/conftest.err >&5 8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8352 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8353 then 8354 # The compiler can only warn and ignore the option if not recognized 8355 # So say no if there are warnings 8356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8359 lt_cv_prog_compiler_c_o=yes 8360 fi 8361 fi 8362 chmod u+w . 2>&5 8363 $RM conftest* 8364 # SGI C++ compiler will create directory out/ii_files/ for 8365 # template instantiation 8366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8367 $RM out/* && rmdir out 8368 cd .. 8369 $RM -r conftest 8370 $RM conftest* 8371 8372fi 8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8374$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8375 8376 8377 8378 8379hard_links="nottested" 8380if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8381 # do not overwrite the value of need_locks provided by the user 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8383$as_echo_n "checking if we can lock with hard links... " >&6; } 8384 hard_links=yes 8385 $RM conftest* 8386 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8387 touch conftest.a 8388 ln conftest.a conftest.b 2>&5 || hard_links=no 8389 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8391$as_echo "$hard_links" >&6; } 8392 if test "$hard_links" = no; then 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8394$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8395 need_locks=warn 8396 fi 8397else 8398 need_locks=no 8399fi 8400 8401 8402 8403 8404 8405 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8407$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8408 8409 runpath_var= 8410 allow_undefined_flag= 8411 always_export_symbols=no 8412 archive_cmds= 8413 archive_expsym_cmds= 8414 compiler_needs_object=no 8415 enable_shared_with_static_runtimes=no 8416 export_dynamic_flag_spec= 8417 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8418 hardcode_automatic=no 8419 hardcode_direct=no 8420 hardcode_direct_absolute=no 8421 hardcode_libdir_flag_spec= 8422 hardcode_libdir_separator= 8423 hardcode_minus_L=no 8424 hardcode_shlibpath_var=unsupported 8425 inherit_rpath=no 8426 link_all_deplibs=unknown 8427 module_cmds= 8428 module_expsym_cmds= 8429 old_archive_from_new_cmds= 8430 old_archive_from_expsyms_cmds= 8431 thread_safe_flag_spec= 8432 whole_archive_flag_spec= 8433 # include_expsyms should be a list of space-separated symbols to be *always* 8434 # included in the symbol list 8435 include_expsyms= 8436 # exclude_expsyms can be an extended regexp of symbols to exclude 8437 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8438 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8439 # as well as any symbol that contains `d'. 8440 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8441 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8442 # platforms (ab)use it in PIC code, but their linkers get confused if 8443 # the symbol is explicitly referenced. Since portable code cannot 8444 # rely on this symbol name, it's probably fine to never include it in 8445 # preloaded symbol tables. 8446 # Exclude shared library initialization/finalization symbols. 8447 extract_expsyms_cmds= 8448 8449 case $host_os in 8450 cygwin* | mingw* | pw32* | cegcc*) 8451 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8452 # When not using gcc, we currently assume that we are using 8453 # Microsoft Visual C++. 8454 if test "$GCC" != yes; then 8455 with_gnu_ld=no 8456 fi 8457 ;; 8458 interix*) 8459 # we just hope/assume this is gcc and not c89 (= MSVC++) 8460 with_gnu_ld=yes 8461 ;; 8462 openbsd*) 8463 with_gnu_ld=no 8464 ;; 8465 esac 8466 8467 ld_shlibs=yes 8468 8469 # On some targets, GNU ld is compatible enough with the native linker 8470 # that we're better off using the native interface for both. 8471 lt_use_gnu_ld_interface=no 8472 if test "$with_gnu_ld" = yes; then 8473 case $host_os in 8474 aix*) 8475 # The AIX port of GNU ld has always aspired to compatibility 8476 # with the native linker. However, as the warning in the GNU ld 8477 # block says, versions before 2.19.5* couldn't really create working 8478 # shared libraries, regardless of the interface used. 8479 case `$LD -v 2>&1` in 8480 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8481 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8482 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8483 *) 8484 lt_use_gnu_ld_interface=yes 8485 ;; 8486 esac 8487 ;; 8488 *) 8489 lt_use_gnu_ld_interface=yes 8490 ;; 8491 esac 8492 fi 8493 8494 if test "$lt_use_gnu_ld_interface" = yes; then 8495 # If archive_cmds runs LD, not CC, wlarc should be empty 8496 wlarc='${wl}' 8497 8498 # Set some defaults for GNU ld with shared library support. These 8499 # are reset later if shared libraries are not supported. Putting them 8500 # here allows them to be overridden if necessary. 8501 runpath_var=LD_RUN_PATH 8502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8503 export_dynamic_flag_spec='${wl}--export-dynamic' 8504 # ancient GNU ld didn't support --whole-archive et. al. 8505 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8506 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8507 else 8508 whole_archive_flag_spec= 8509 fi 8510 supports_anon_versioning=no 8511 case `$LD -v 2>&1` in 8512 *GNU\ gold*) supports_anon_versioning=yes ;; 8513 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8516 *\ 2.11.*) ;; # other 2.11 versions 8517 *) supports_anon_versioning=yes ;; 8518 esac 8519 8520 # See if GNU ld supports shared libraries. 8521 case $host_os in 8522 aix[3-9]*) 8523 # On AIX/PPC, the GNU linker is very broken 8524 if test "$host_cpu" != ia64; then 8525 ld_shlibs=no 8526 cat <<_LT_EOF 1>&2 8527 8528*** Warning: the GNU linker, at least up to release 2.19, is reported 8529*** to be unable to reliably create shared libraries on AIX. 8530*** Therefore, libtool is disabling shared libraries support. If you 8531*** really care for shared libraries, you may want to install binutils 8532*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8533*** You will then need to restart the configuration process. 8534 8535_LT_EOF 8536 fi 8537 ;; 8538 8539 amigaos*) 8540 case $host_cpu in 8541 powerpc) 8542 # see comment about AmigaOS4 .so support 8543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8544 archive_expsym_cmds='' 8545 ;; 8546 m68k) 8547 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)' 8548 hardcode_libdir_flag_spec='-L$libdir' 8549 hardcode_minus_L=yes 8550 ;; 8551 esac 8552 ;; 8553 8554 beos*) 8555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8556 allow_undefined_flag=unsupported 8557 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8558 # support --undefined. This deserves some investigation. FIXME 8559 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8560 else 8561 ld_shlibs=no 8562 fi 8563 ;; 8564 8565 cygwin* | mingw* | pw32* | cegcc*) 8566 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8567 # as there is no search path for DLLs. 8568 hardcode_libdir_flag_spec='-L$libdir' 8569 export_dynamic_flag_spec='${wl}--export-all-symbols' 8570 allow_undefined_flag=unsupported 8571 always_export_symbols=no 8572 enable_shared_with_static_runtimes=yes 8573 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' 8574 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8575 8576 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8578 # If the export-symbols file already is a .def file (1st line 8579 # is EXPORTS), use it as is; otherwise, prepend... 8580 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8581 cp $export_symbols $output_objdir/$soname.def; 8582 else 8583 echo EXPORTS > $output_objdir/$soname.def; 8584 cat $export_symbols >> $output_objdir/$soname.def; 8585 fi~ 8586 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8587 else 8588 ld_shlibs=no 8589 fi 8590 ;; 8591 8592 haiku*) 8593 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8594 link_all_deplibs=yes 8595 ;; 8596 8597 interix[3-9]*) 8598 hardcode_direct=no 8599 hardcode_shlibpath_var=no 8600 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8601 export_dynamic_flag_spec='${wl}-E' 8602 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8603 # Instead, shared libraries are loaded at an image base (0x10000000 by 8604 # default) and relocated if they conflict, which is a slow very memory 8605 # consuming and fragmenting process. To avoid this, we pick a random, 8606 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8607 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8608 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8609 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' 8610 ;; 8611 8612 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8613 tmp_diet=no 8614 if test "$host_os" = linux-dietlibc; then 8615 case $cc_basename in 8616 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8617 esac 8618 fi 8619 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8620 && test "$tmp_diet" = no 8621 then 8622 tmp_addflag=' $pic_flag' 8623 tmp_sharedflag='-shared' 8624 case $cc_basename,$host_cpu in 8625 pgcc*) # Portland Group C compiler 8626 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' 8627 tmp_addflag=' $pic_flag' 8628 ;; 8629 pgf77* | pgf90* | pgf95* | pgfortran*) 8630 # Portland Group f77 and f90 compilers 8631 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' 8632 tmp_addflag=' $pic_flag -Mnomain' ;; 8633 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8634 tmp_addflag=' -i_dynamic' ;; 8635 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8636 tmp_addflag=' -i_dynamic -nofor_main' ;; 8637 ifc* | ifort*) # Intel Fortran compiler 8638 tmp_addflag=' -nofor_main' ;; 8639 lf95*) # Lahey Fortran 8.1 8640 whole_archive_flag_spec= 8641 tmp_sharedflag='--shared' ;; 8642 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8643 tmp_sharedflag='-qmkshrobj' 8644 tmp_addflag= ;; 8645 nvcc*) # Cuda Compiler Driver 2.2 8646 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' 8647 compiler_needs_object=yes 8648 ;; 8649 esac 8650 case `$CC -V 2>&1 | sed 5q` in 8651 *Sun\ C*) # Sun C 5.9 8652 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' 8653 compiler_needs_object=yes 8654 tmp_sharedflag='-G' ;; 8655 *Sun\ F*) # Sun Fortran 8.3 8656 tmp_sharedflag='-G' ;; 8657 esac 8658 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8659 8660 if test "x$supports_anon_versioning" = xyes; then 8661 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8663 echo "local: *; };" >> $output_objdir/$libname.ver~ 8664 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8665 fi 8666 8667 case $cc_basename in 8668 xlf* | bgf* | bgxlf* | mpixlf*) 8669 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8670 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8671 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8672 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8673 if test "x$supports_anon_versioning" = xyes; then 8674 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8676 echo "local: *; };" >> $output_objdir/$libname.ver~ 8677 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8678 fi 8679 ;; 8680 esac 8681 else 8682 ld_shlibs=no 8683 fi 8684 ;; 8685 8686 netbsd*) 8687 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8688 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8689 wlarc= 8690 else 8691 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8692 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8693 fi 8694 ;; 8695 8696 solaris*) 8697 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8698 ld_shlibs=no 8699 cat <<_LT_EOF 1>&2 8700 8701*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8702*** create shared libraries on Solaris systems. Therefore, libtool 8703*** is disabling shared libraries support. We urge you to upgrade GNU 8704*** binutils to release 2.9.1 or newer. Another option is to modify 8705*** your PATH or compiler configuration so that the native linker is 8706*** used, and then restart. 8707 8708_LT_EOF 8709 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8710 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8711 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8712 else 8713 ld_shlibs=no 8714 fi 8715 ;; 8716 8717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8718 case `$LD -v 2>&1` in 8719 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8720 ld_shlibs=no 8721 cat <<_LT_EOF 1>&2 8722 8723*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8724*** reliably create shared libraries on SCO systems. Therefore, libtool 8725*** is disabling shared libraries support. We urge you to upgrade GNU 8726*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8727*** your PATH or compiler configuration so that the native linker is 8728*** used, and then restart. 8729 8730_LT_EOF 8731 ;; 8732 *) 8733 # For security reasons, it is highly recommended that you always 8734 # use absolute paths for naming shared libraries, and exclude the 8735 # DT_RUNPATH tag from executables and libraries. But doing so 8736 # requires that you compile everything twice, which is a pain. 8737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8741 else 8742 ld_shlibs=no 8743 fi 8744 ;; 8745 esac 8746 ;; 8747 8748 sunos4*) 8749 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8750 wlarc= 8751 hardcode_direct=yes 8752 hardcode_shlibpath_var=no 8753 ;; 8754 8755 *) 8756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8758 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8759 else 8760 ld_shlibs=no 8761 fi 8762 ;; 8763 esac 8764 8765 if test "$ld_shlibs" = no; then 8766 runpath_var= 8767 hardcode_libdir_flag_spec= 8768 export_dynamic_flag_spec= 8769 whole_archive_flag_spec= 8770 fi 8771 else 8772 # PORTME fill in a description of your system's linker (not GNU ld) 8773 case $host_os in 8774 aix3*) 8775 allow_undefined_flag=unsupported 8776 always_export_symbols=yes 8777 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' 8778 # Note: this linker hardcodes the directories in LIBPATH if there 8779 # are no directories specified by -L. 8780 hardcode_minus_L=yes 8781 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8782 # Neither direct hardcoding nor static linking is supported with a 8783 # broken collect2. 8784 hardcode_direct=unsupported 8785 fi 8786 ;; 8787 8788 aix[4-9]*) 8789 if test "$host_cpu" = ia64; then 8790 # On IA64, the linker does run time linking by default, so we don't 8791 # have to do anything special. 8792 aix_use_runtimelinking=no 8793 exp_sym_flag='-Bexport' 8794 no_entry_flag="" 8795 else 8796 # If we're using GNU nm, then we don't want the "-C" option. 8797 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8798 # Also, AIX nm treats weak defined symbols like other global 8799 # defined symbols, whereas GNU nm marks them as "W". 8800 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8801 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8802 else 8803 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8804 fi 8805 aix_use_runtimelinking=no 8806 8807 # Test if we are trying to use run time linking or normal 8808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8809 # need to do runtime linking. 8810 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8811 for ld_flag in $LDFLAGS; do 8812 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8813 aix_use_runtimelinking=yes 8814 break 8815 fi 8816 done 8817 ;; 8818 esac 8819 8820 exp_sym_flag='-bexport' 8821 no_entry_flag='-bnoentry' 8822 fi 8823 8824 # When large executables or shared objects are built, AIX ld can 8825 # have problems creating the table of contents. If linking a library 8826 # or program results in "error TOC overflow" add -mminimal-toc to 8827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8829 8830 archive_cmds='' 8831 hardcode_direct=yes 8832 hardcode_direct_absolute=yes 8833 hardcode_libdir_separator=':' 8834 link_all_deplibs=yes 8835 file_list_spec='${wl}-f,' 8836 8837 if test "$GCC" = yes; then 8838 case $host_os in aix4.[012]|aix4.[012].*) 8839 # We only want to do this on AIX 4.2 and lower, the check 8840 # below for broken collect2 doesn't work under 4.3+ 8841 collect2name=`${CC} -print-prog-name=collect2` 8842 if test -f "$collect2name" && 8843 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8844 then 8845 # We have reworked collect2 8846 : 8847 else 8848 # We have old collect2 8849 hardcode_direct=unsupported 8850 # It fails to find uninstalled libraries when the uninstalled 8851 # path is not listed in the libpath. Setting hardcode_minus_L 8852 # to unsupported forces relinking 8853 hardcode_minus_L=yes 8854 hardcode_libdir_flag_spec='-L$libdir' 8855 hardcode_libdir_separator= 8856 fi 8857 ;; 8858 esac 8859 shared_flag='-shared' 8860 if test "$aix_use_runtimelinking" = yes; then 8861 shared_flag="$shared_flag "'${wl}-G' 8862 fi 8863 else 8864 # not using gcc 8865 if test "$host_cpu" = ia64; then 8866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8867 # chokes on -Wl,-G. The following line is correct: 8868 shared_flag='-G' 8869 else 8870 if test "$aix_use_runtimelinking" = yes; then 8871 shared_flag='${wl}-G' 8872 else 8873 shared_flag='${wl}-bM:SRE' 8874 fi 8875 fi 8876 fi 8877 8878 export_dynamic_flag_spec='${wl}-bexpall' 8879 # It seems that -bexpall does not export symbols beginning with 8880 # underscore (_), so it is better to generate a list of symbols to export. 8881 always_export_symbols=yes 8882 if test "$aix_use_runtimelinking" = yes; then 8883 # Warning - without using the other runtime loading flags (-brtl), 8884 # -berok will link without error, but may produce a broken library. 8885 allow_undefined_flag='-berok' 8886 # Determine the default libpath from the value encoded in an 8887 # empty executable. 8888 if test "${lt_cv_aix_libpath+set}" = set; then 8889 aix_libpath=$lt_cv_aix_libpath 8890else 8891 if ${lt_cv_aix_libpath_+:} false; then : 8892 $as_echo_n "(cached) " >&6 8893else 8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8895/* end confdefs.h. */ 8896 8897int 8898main () 8899{ 8900 8901 ; 8902 return 0; 8903} 8904_ACEOF 8905if ac_fn_c_try_link "$LINENO"; then : 8906 8907 lt_aix_libpath_sed=' 8908 /Import File Strings/,/^$/ { 8909 /^0/ { 8910 s/^0 *\([^ ]*\) *$/\1/ 8911 p 8912 } 8913 }' 8914 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8915 # Check for a 64-bit object if we didn't find anything. 8916 if test -z "$lt_cv_aix_libpath_"; then 8917 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8918 fi 8919fi 8920rm -f core conftest.err conftest.$ac_objext \ 8921 conftest$ac_exeext conftest.$ac_ext 8922 if test -z "$lt_cv_aix_libpath_"; then 8923 lt_cv_aix_libpath_="/usr/lib:/lib" 8924 fi 8925 8926fi 8927 8928 aix_libpath=$lt_cv_aix_libpath_ 8929fi 8930 8931 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8932 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8933 else 8934 if test "$host_cpu" = ia64; then 8935 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8936 allow_undefined_flag="-z nodefs" 8937 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" 8938 else 8939 # Determine the default libpath from the value encoded in an 8940 # empty executable. 8941 if test "${lt_cv_aix_libpath+set}" = set; then 8942 aix_libpath=$lt_cv_aix_libpath 8943else 8944 if ${lt_cv_aix_libpath_+:} false; then : 8945 $as_echo_n "(cached) " >&6 8946else 8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8948/* end confdefs.h. */ 8949 8950int 8951main () 8952{ 8953 8954 ; 8955 return 0; 8956} 8957_ACEOF 8958if ac_fn_c_try_link "$LINENO"; then : 8959 8960 lt_aix_libpath_sed=' 8961 /Import File Strings/,/^$/ { 8962 /^0/ { 8963 s/^0 *\([^ ]*\) *$/\1/ 8964 p 8965 } 8966 }' 8967 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8968 # Check for a 64-bit object if we didn't find anything. 8969 if test -z "$lt_cv_aix_libpath_"; then 8970 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8971 fi 8972fi 8973rm -f core conftest.err conftest.$ac_objext \ 8974 conftest$ac_exeext conftest.$ac_ext 8975 if test -z "$lt_cv_aix_libpath_"; then 8976 lt_cv_aix_libpath_="/usr/lib:/lib" 8977 fi 8978 8979fi 8980 8981 aix_libpath=$lt_cv_aix_libpath_ 8982fi 8983 8984 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8985 # Warning - without using the other run time loading flags, 8986 # -berok will link without error, but may produce a broken library. 8987 no_undefined_flag=' ${wl}-bernotok' 8988 allow_undefined_flag=' ${wl}-berok' 8989 if test "$with_gnu_ld" = yes; then 8990 # We only use this code for GNU lds that support --whole-archive. 8991 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8992 else 8993 # Exported symbols can be pulled into shared objects from archives 8994 whole_archive_flag_spec='$convenience' 8995 fi 8996 archive_cmds_need_lc=yes 8997 # This is similar to how AIX traditionally builds its shared libraries. 8998 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8999 fi 9000 fi 9001 ;; 9002 9003 amigaos*) 9004 case $host_cpu in 9005 powerpc) 9006 # see comment about AmigaOS4 .so support 9007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9008 archive_expsym_cmds='' 9009 ;; 9010 m68k) 9011 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)' 9012 hardcode_libdir_flag_spec='-L$libdir' 9013 hardcode_minus_L=yes 9014 ;; 9015 esac 9016 ;; 9017 9018 bsdi[45]*) 9019 export_dynamic_flag_spec=-rdynamic 9020 ;; 9021 9022 cygwin* | mingw* | pw32* | cegcc*) 9023 # When not using gcc, we currently assume that we are using 9024 # Microsoft Visual C++. 9025 # hardcode_libdir_flag_spec is actually meaningless, as there is 9026 # no search path for DLLs. 9027 case $cc_basename in 9028 cl*) 9029 # Native MSVC 9030 hardcode_libdir_flag_spec=' ' 9031 allow_undefined_flag=unsupported 9032 always_export_symbols=yes 9033 file_list_spec='@' 9034 # Tell ltmain to make .lib files, not .a files. 9035 libext=lib 9036 # Tell ltmain to make .dll files, not .so files. 9037 shrext_cmds=".dll" 9038 # FIXME: Setting linknames here is a bad hack. 9039 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9040 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9041 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9042 else 9043 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9044 fi~ 9045 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9046 linknames=' 9047 # The linker will not automatically build a static lib if we build a DLL. 9048 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9049 enable_shared_with_static_runtimes=yes 9050 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9051 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9052 # Don't use ranlib 9053 old_postinstall_cmds='chmod 644 $oldlib' 9054 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9055 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9056 case $lt_outputfile in 9057 *.exe|*.EXE) ;; 9058 *) 9059 lt_outputfile="$lt_outputfile.exe" 9060 lt_tool_outputfile="$lt_tool_outputfile.exe" 9061 ;; 9062 esac~ 9063 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9064 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9065 $RM "$lt_outputfile.manifest"; 9066 fi' 9067 ;; 9068 *) 9069 # Assume MSVC wrapper 9070 hardcode_libdir_flag_spec=' ' 9071 allow_undefined_flag=unsupported 9072 # Tell ltmain to make .lib files, not .a files. 9073 libext=lib 9074 # Tell ltmain to make .dll files, not .so files. 9075 shrext_cmds=".dll" 9076 # FIXME: Setting linknames here is a bad hack. 9077 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9078 # The linker will automatically build a .lib file if we build a DLL. 9079 old_archive_from_new_cmds='true' 9080 # FIXME: Should let the user specify the lib program. 9081 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9082 enable_shared_with_static_runtimes=yes 9083 ;; 9084 esac 9085 ;; 9086 9087 darwin* | rhapsody*) 9088 9089 9090 archive_cmds_need_lc=no 9091 hardcode_direct=no 9092 hardcode_automatic=yes 9093 hardcode_shlibpath_var=unsupported 9094 if test "$lt_cv_ld_force_load" = "yes"; then 9095 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\"`' 9096 9097 else 9098 whole_archive_flag_spec='' 9099 fi 9100 link_all_deplibs=yes 9101 allow_undefined_flag="$_lt_dar_allow_undefined" 9102 case $cc_basename in 9103 ifort*) _lt_dar_can_shared=yes ;; 9104 *) _lt_dar_can_shared=$GCC ;; 9105 esac 9106 if test "$_lt_dar_can_shared" = "yes"; then 9107 output_verbose_link_cmd=func_echo_all 9108 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9109 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9110 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}" 9111 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}" 9112 9113 else 9114 ld_shlibs=no 9115 fi 9116 9117 ;; 9118 9119 dgux*) 9120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9121 hardcode_libdir_flag_spec='-L$libdir' 9122 hardcode_shlibpath_var=no 9123 ;; 9124 9125 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9126 # support. Future versions do this automatically, but an explicit c++rt0.o 9127 # does not break anything, and helps significantly (at the cost of a little 9128 # extra space). 9129 freebsd2.2*) 9130 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9131 hardcode_libdir_flag_spec='-R$libdir' 9132 hardcode_direct=yes 9133 hardcode_shlibpath_var=no 9134 ;; 9135 9136 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9137 freebsd2.*) 9138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9139 hardcode_direct=yes 9140 hardcode_minus_L=yes 9141 hardcode_shlibpath_var=no 9142 ;; 9143 9144 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9145 freebsd* | dragonfly*) 9146 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9147 hardcode_libdir_flag_spec='-R$libdir' 9148 hardcode_direct=yes 9149 hardcode_shlibpath_var=no 9150 ;; 9151 9152 hpux9*) 9153 if test "$GCC" = yes; then 9154 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9155 else 9156 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9157 fi 9158 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9159 hardcode_libdir_separator=: 9160 hardcode_direct=yes 9161 9162 # hardcode_minus_L: Not really in the search PATH, 9163 # but as the default location of the library. 9164 hardcode_minus_L=yes 9165 export_dynamic_flag_spec='${wl}-E' 9166 ;; 9167 9168 hpux10*) 9169 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9170 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9171 else 9172 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9173 fi 9174 if test "$with_gnu_ld" = no; then 9175 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9176 hardcode_libdir_separator=: 9177 hardcode_direct=yes 9178 hardcode_direct_absolute=yes 9179 export_dynamic_flag_spec='${wl}-E' 9180 # hardcode_minus_L: Not really in the search PATH, 9181 # but as the default location of the library. 9182 hardcode_minus_L=yes 9183 fi 9184 ;; 9185 9186 hpux11*) 9187 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9188 case $host_cpu in 9189 hppa*64*) 9190 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9191 ;; 9192 ia64*) 9193 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9194 ;; 9195 *) 9196 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9197 ;; 9198 esac 9199 else 9200 case $host_cpu in 9201 hppa*64*) 9202 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9203 ;; 9204 ia64*) 9205 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9206 ;; 9207 *) 9208 9209 # Older versions of the 11.00 compiler do not understand -b yet 9210 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9212$as_echo_n "checking if $CC understands -b... " >&6; } 9213if ${lt_cv_prog_compiler__b+:} false; then : 9214 $as_echo_n "(cached) " >&6 9215else 9216 lt_cv_prog_compiler__b=no 9217 save_LDFLAGS="$LDFLAGS" 9218 LDFLAGS="$LDFLAGS -b" 9219 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9221 # The linker can only warn and ignore the option if not recognized 9222 # So say no if there are warnings 9223 if test -s conftest.err; then 9224 # Append any errors to the config.log. 9225 cat conftest.err 1>&5 9226 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9228 if diff conftest.exp conftest.er2 >/dev/null; then 9229 lt_cv_prog_compiler__b=yes 9230 fi 9231 else 9232 lt_cv_prog_compiler__b=yes 9233 fi 9234 fi 9235 $RM -r conftest* 9236 LDFLAGS="$save_LDFLAGS" 9237 9238fi 9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9240$as_echo "$lt_cv_prog_compiler__b" >&6; } 9241 9242if test x"$lt_cv_prog_compiler__b" = xyes; then 9243 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9244else 9245 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9246fi 9247 9248 ;; 9249 esac 9250 fi 9251 if test "$with_gnu_ld" = no; then 9252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9253 hardcode_libdir_separator=: 9254 9255 case $host_cpu in 9256 hppa*64*|ia64*) 9257 hardcode_direct=no 9258 hardcode_shlibpath_var=no 9259 ;; 9260 *) 9261 hardcode_direct=yes 9262 hardcode_direct_absolute=yes 9263 export_dynamic_flag_spec='${wl}-E' 9264 9265 # hardcode_minus_L: Not really in the search PATH, 9266 # but as the default location of the library. 9267 hardcode_minus_L=yes 9268 ;; 9269 esac 9270 fi 9271 ;; 9272 9273 irix5* | irix6* | nonstopux*) 9274 if test "$GCC" = yes; then 9275 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' 9276 # Try to use the -exported_symbol ld option, if it does not 9277 # work, assume that -exports_file does not work either and 9278 # implicitly export all symbols. 9279 # This should be the same for all languages, so no per-tag cache variable. 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9281$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9282if ${lt_cv_irix_exported_symbol+:} false; then : 9283 $as_echo_n "(cached) " >&6 9284else 9285 save_LDFLAGS="$LDFLAGS" 9286 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9288/* end confdefs.h. */ 9289int foo (void) { return 0; } 9290_ACEOF 9291if ac_fn_c_try_link "$LINENO"; then : 9292 lt_cv_irix_exported_symbol=yes 9293else 9294 lt_cv_irix_exported_symbol=no 9295fi 9296rm -f core conftest.err conftest.$ac_objext \ 9297 conftest$ac_exeext conftest.$ac_ext 9298 LDFLAGS="$save_LDFLAGS" 9299fi 9300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9301$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9302 if test "$lt_cv_irix_exported_symbol" = yes; then 9303 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' 9304 fi 9305 else 9306 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' 9307 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' 9308 fi 9309 archive_cmds_need_lc='no' 9310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9311 hardcode_libdir_separator=: 9312 inherit_rpath=yes 9313 link_all_deplibs=yes 9314 ;; 9315 9316 netbsd*) 9317 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9319 else 9320 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9321 fi 9322 hardcode_libdir_flag_spec='-R$libdir' 9323 hardcode_direct=yes 9324 hardcode_shlibpath_var=no 9325 ;; 9326 9327 newsos6) 9328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9329 hardcode_direct=yes 9330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9331 hardcode_libdir_separator=: 9332 hardcode_shlibpath_var=no 9333 ;; 9334 9335 *nto* | *qnx*) 9336 ;; 9337 9338 openbsd*) 9339 if test -f /usr/libexec/ld.so; then 9340 hardcode_direct=yes 9341 hardcode_shlibpath_var=no 9342 hardcode_direct_absolute=yes 9343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9345 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9347 export_dynamic_flag_spec='${wl}-E' 9348 else 9349 case $host_os in 9350 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9352 hardcode_libdir_flag_spec='-R$libdir' 9353 ;; 9354 *) 9355 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9357 ;; 9358 esac 9359 fi 9360 else 9361 ld_shlibs=no 9362 fi 9363 ;; 9364 9365 os2*) 9366 hardcode_libdir_flag_spec='-L$libdir' 9367 hardcode_minus_L=yes 9368 allow_undefined_flag=unsupported 9369 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9370 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9371 ;; 9372 9373 osf3*) 9374 if test "$GCC" = yes; then 9375 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9376 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' 9377 else 9378 allow_undefined_flag=' -expect_unresolved \*' 9379 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' 9380 fi 9381 archive_cmds_need_lc='no' 9382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9383 hardcode_libdir_separator=: 9384 ;; 9385 9386 osf4* | osf5*) # as osf3* with the addition of -msym flag 9387 if test "$GCC" = yes; then 9388 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9389 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' 9390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9391 else 9392 allow_undefined_flag=' -expect_unresolved \*' 9393 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' 9394 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~ 9395 $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' 9396 9397 # Both c and cxx compiler support -rpath directly 9398 hardcode_libdir_flag_spec='-rpath $libdir' 9399 fi 9400 archive_cmds_need_lc='no' 9401 hardcode_libdir_separator=: 9402 ;; 9403 9404 solaris*) 9405 no_undefined_flag=' -z defs' 9406 if test "$GCC" = yes; then 9407 wlarc='${wl}' 9408 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9409 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9410 $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' 9411 else 9412 case `$CC -V 2>&1` in 9413 *"Compilers 5.0"*) 9414 wlarc='' 9415 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9417 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9418 ;; 9419 *) 9420 wlarc='${wl}' 9421 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9422 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9423 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9424 ;; 9425 esac 9426 fi 9427 hardcode_libdir_flag_spec='-R$libdir' 9428 hardcode_shlibpath_var=no 9429 case $host_os in 9430 solaris2.[0-5] | solaris2.[0-5].*) ;; 9431 *) 9432 # The compiler driver will combine and reorder linker options, 9433 # but understands `-z linker_flag'. GCC discards it without `$wl', 9434 # but is careful enough not to reorder. 9435 # Supported since Solaris 2.6 (maybe 2.5.1?) 9436 if test "$GCC" = yes; then 9437 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9438 else 9439 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9440 fi 9441 ;; 9442 esac 9443 link_all_deplibs=yes 9444 ;; 9445 9446 sunos4*) 9447 if test "x$host_vendor" = xsequent; then 9448 # Use $CC to link under sequent, because it throws in some extra .o 9449 # files that make .init and .fini sections work. 9450 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9451 else 9452 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9453 fi 9454 hardcode_libdir_flag_spec='-L$libdir' 9455 hardcode_direct=yes 9456 hardcode_minus_L=yes 9457 hardcode_shlibpath_var=no 9458 ;; 9459 9460 sysv4) 9461 case $host_vendor in 9462 sni) 9463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9464 hardcode_direct=yes # is this really true??? 9465 ;; 9466 siemens) 9467 ## LD is ld it makes a PLAMLIB 9468 ## CC just makes a GrossModule. 9469 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9470 reload_cmds='$CC -r -o $output$reload_objs' 9471 hardcode_direct=no 9472 ;; 9473 motorola) 9474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9475 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9476 ;; 9477 esac 9478 runpath_var='LD_RUN_PATH' 9479 hardcode_shlibpath_var=no 9480 ;; 9481 9482 sysv4.3*) 9483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9484 hardcode_shlibpath_var=no 9485 export_dynamic_flag_spec='-Bexport' 9486 ;; 9487 9488 sysv4*MP*) 9489 if test -d /usr/nec; then 9490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9491 hardcode_shlibpath_var=no 9492 runpath_var=LD_RUN_PATH 9493 hardcode_runpath_var=yes 9494 ld_shlibs=yes 9495 fi 9496 ;; 9497 9498 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9499 no_undefined_flag='${wl}-z,text' 9500 archive_cmds_need_lc=no 9501 hardcode_shlibpath_var=no 9502 runpath_var='LD_RUN_PATH' 9503 9504 if test "$GCC" = yes; then 9505 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9506 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9507 else 9508 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9509 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9510 fi 9511 ;; 9512 9513 sysv5* | sco3.2v5* | sco5v6*) 9514 # Note: We can NOT use -z defs as we might desire, because we do not 9515 # link with -lc, and that would cause any symbols used from libc to 9516 # always be unresolved, which means just about no library would 9517 # ever link correctly. If we're not using GNU ld we use -z text 9518 # though, which does catch some bad symbols but isn't as heavy-handed 9519 # as -z defs. 9520 no_undefined_flag='${wl}-z,text' 9521 allow_undefined_flag='${wl}-z,nodefs' 9522 archive_cmds_need_lc=no 9523 hardcode_shlibpath_var=no 9524 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9525 hardcode_libdir_separator=':' 9526 link_all_deplibs=yes 9527 export_dynamic_flag_spec='${wl}-Bexport' 9528 runpath_var='LD_RUN_PATH' 9529 9530 if test "$GCC" = yes; then 9531 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9532 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9533 else 9534 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9535 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9536 fi 9537 ;; 9538 9539 uts4*) 9540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9541 hardcode_libdir_flag_spec='-L$libdir' 9542 hardcode_shlibpath_var=no 9543 ;; 9544 9545 *) 9546 ld_shlibs=no 9547 ;; 9548 esac 9549 9550 if test x$host_vendor = xsni; then 9551 case $host in 9552 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9553 export_dynamic_flag_spec='${wl}-Blargedynsym' 9554 ;; 9555 esac 9556 fi 9557 fi 9558 9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9560$as_echo "$ld_shlibs" >&6; } 9561test "$ld_shlibs" = no && can_build_shared=no 9562 9563with_gnu_ld=$with_gnu_ld 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579# 9580# Do we need to explicitly link libc? 9581# 9582case "x$archive_cmds_need_lc" in 9583x|xyes) 9584 # Assume -lc should be added 9585 archive_cmds_need_lc=yes 9586 9587 if test "$enable_shared" = yes && test "$GCC" = yes; then 9588 case $archive_cmds in 9589 *'~'*) 9590 # FIXME: we may have to deal with multi-command sequences. 9591 ;; 9592 '$CC '*) 9593 # Test whether the compiler implicitly links with -lc since on some 9594 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9595 # to ld, don't add -lc before -lgcc. 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9597$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9598if ${lt_cv_archive_cmds_need_lc+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 $RM conftest* 9602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9603 9604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9605 (eval $ac_compile) 2>&5 9606 ac_status=$? 9607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9608 test $ac_status = 0; } 2>conftest.err; then 9609 soname=conftest 9610 lib=conftest 9611 libobjs=conftest.$ac_objext 9612 deplibs= 9613 wl=$lt_prog_compiler_wl 9614 pic_flag=$lt_prog_compiler_pic 9615 compiler_flags=-v 9616 linker_flags=-v 9617 verstring= 9618 output_objdir=. 9619 libname=conftest 9620 lt_save_allow_undefined_flag=$allow_undefined_flag 9621 allow_undefined_flag= 9622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9623 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9624 ac_status=$? 9625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9626 test $ac_status = 0; } 9627 then 9628 lt_cv_archive_cmds_need_lc=no 9629 else 9630 lt_cv_archive_cmds_need_lc=yes 9631 fi 9632 allow_undefined_flag=$lt_save_allow_undefined_flag 9633 else 9634 cat conftest.err 1>&5 9635 fi 9636 $RM conftest* 9637 9638fi 9639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9640$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9641 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9642 ;; 9643 esac 9644 fi 9645 ;; 9646esac 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9800$as_echo_n "checking dynamic linker characteristics... " >&6; } 9801 9802if test "$GCC" = yes; then 9803 case $host_os in 9804 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9805 *) lt_awk_arg="/^libraries:/" ;; 9806 esac 9807 case $host_os in 9808 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9809 *) lt_sed_strip_eq="s,=/,/,g" ;; 9810 esac 9811 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9812 case $lt_search_path_spec in 9813 *\;*) 9814 # if the path contains ";" then we assume it to be the separator 9815 # otherwise default to the standard path separator (i.e. ":") - it is 9816 # assumed that no part of a normal pathname contains ";" but that should 9817 # okay in the real world where ";" in dirpaths is itself problematic. 9818 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9819 ;; 9820 *) 9821 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9822 ;; 9823 esac 9824 # Ok, now we have the path, separated by spaces, we can step through it 9825 # and add multilib dir if necessary. 9826 lt_tmp_lt_search_path_spec= 9827 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9828 for lt_sys_path in $lt_search_path_spec; do 9829 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9830 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9831 else 9832 test -d "$lt_sys_path" && \ 9833 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9834 fi 9835 done 9836 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9837BEGIN {RS=" "; FS="/|\n";} { 9838 lt_foo=""; 9839 lt_count=0; 9840 for (lt_i = NF; lt_i > 0; lt_i--) { 9841 if ($lt_i != "" && $lt_i != ".") { 9842 if ($lt_i == "..") { 9843 lt_count++; 9844 } else { 9845 if (lt_count == 0) { 9846 lt_foo="/" $lt_i lt_foo; 9847 } else { 9848 lt_count--; 9849 } 9850 } 9851 } 9852 } 9853 if (lt_foo != "") { lt_freq[lt_foo]++; } 9854 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9855}'` 9856 # AWK program above erroneously prepends '/' to C:/dos/paths 9857 # for these hosts. 9858 case $host_os in 9859 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9860 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9861 esac 9862 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9863else 9864 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9865fi 9866library_names_spec= 9867libname_spec='lib$name' 9868soname_spec= 9869shrext_cmds=".so" 9870postinstall_cmds= 9871postuninstall_cmds= 9872finish_cmds= 9873finish_eval= 9874shlibpath_var= 9875shlibpath_overrides_runpath=unknown 9876version_type=none 9877dynamic_linker="$host_os ld.so" 9878sys_lib_dlsearch_path_spec="/lib /usr/lib" 9879need_lib_prefix=unknown 9880hardcode_into_libs=no 9881 9882# when you set need_version to no, make sure it does not cause -set_version 9883# flags to be left without arguments 9884need_version=unknown 9885 9886case $host_os in 9887aix3*) 9888 version_type=linux # correct to gnu/linux during the next big refactor 9889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9890 shlibpath_var=LIBPATH 9891 9892 # AIX 3 has no versioning support, so we append a major version to the name. 9893 soname_spec='${libname}${release}${shared_ext}$major' 9894 ;; 9895 9896aix[4-9]*) 9897 version_type=linux # correct to gnu/linux during the next big refactor 9898 need_lib_prefix=no 9899 need_version=no 9900 hardcode_into_libs=yes 9901 if test "$host_cpu" = ia64; then 9902 # AIX 5 supports IA64 9903 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9904 shlibpath_var=LD_LIBRARY_PATH 9905 else 9906 # With GCC up to 2.95.x, collect2 would create an import file 9907 # for dependence libraries. The import file would start with 9908 # the line `#! .'. This would cause the generated library to 9909 # depend on `.', always an invalid library. This was fixed in 9910 # development snapshots of GCC prior to 3.0. 9911 case $host_os in 9912 aix4 | aix4.[01] | aix4.[01].*) 9913 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9914 echo ' yes ' 9915 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9916 : 9917 else 9918 can_build_shared=no 9919 fi 9920 ;; 9921 esac 9922 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9923 # soname into executable. Probably we can add versioning support to 9924 # collect2, so additional links can be useful in future. 9925 if test "$aix_use_runtimelinking" = yes; then 9926 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9927 # instead of lib<name>.a to let people know that these are not 9928 # typical AIX shared libraries. 9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9930 else 9931 # We preserve .a as extension for shared libraries through AIX4.2 9932 # and later when we are not doing run time linking. 9933 library_names_spec='${libname}${release}.a $libname.a' 9934 soname_spec='${libname}${release}${shared_ext}$major' 9935 fi 9936 shlibpath_var=LIBPATH 9937 fi 9938 ;; 9939 9940amigaos*) 9941 case $host_cpu in 9942 powerpc) 9943 # Since July 2007 AmigaOS4 officially supports .so libraries. 9944 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9946 ;; 9947 m68k) 9948 library_names_spec='$libname.ixlibrary $libname.a' 9949 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9950 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9951 ;; 9952 esac 9953 ;; 9954 9955beos*) 9956 library_names_spec='${libname}${shared_ext}' 9957 dynamic_linker="$host_os ld.so" 9958 shlibpath_var=LIBRARY_PATH 9959 ;; 9960 9961bsdi[45]*) 9962 version_type=linux # correct to gnu/linux during the next big refactor 9963 need_version=no 9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9965 soname_spec='${libname}${release}${shared_ext}$major' 9966 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9967 shlibpath_var=LD_LIBRARY_PATH 9968 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9969 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9970 # the default ld.so.conf also contains /usr/contrib/lib and 9971 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9972 # libtool to hard-code these into programs 9973 ;; 9974 9975cygwin* | mingw* | pw32* | cegcc*) 9976 version_type=windows 9977 shrext_cmds=".dll" 9978 need_version=no 9979 need_lib_prefix=no 9980 9981 case $GCC,$cc_basename in 9982 yes,*) 9983 # gcc 9984 library_names_spec='$libname.dll.a' 9985 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9986 postinstall_cmds='base_file=`basename \${file}`~ 9987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9988 dldir=$destdir/`dirname \$dlpath`~ 9989 test -d \$dldir || mkdir -p \$dldir~ 9990 $install_prog $dir/$dlname \$dldir/$dlname~ 9991 chmod a+x \$dldir/$dlname~ 9992 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9993 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9994 fi' 9995 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9996 dlpath=$dir/\$dldll~ 9997 $RM \$dlpath' 9998 shlibpath_overrides_runpath=yes 9999 10000 case $host_os in 10001 cygwin*) 10002 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10003 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10004 10005 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10006 ;; 10007 mingw* | cegcc*) 10008 # MinGW DLLs use traditional 'lib' prefix 10009 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10010 ;; 10011 pw32*) 10012 # pw32 DLLs use 'pw' prefix rather than 'lib' 10013 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10014 ;; 10015 esac 10016 dynamic_linker='Win32 ld.exe' 10017 ;; 10018 10019 *,cl*) 10020 # Native MSVC 10021 libname_spec='$name' 10022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10023 library_names_spec='${libname}.dll.lib' 10024 10025 case $build_os in 10026 mingw*) 10027 sys_lib_search_path_spec= 10028 lt_save_ifs=$IFS 10029 IFS=';' 10030 for lt_path in $LIB 10031 do 10032 IFS=$lt_save_ifs 10033 # Let DOS variable expansion print the short 8.3 style file name. 10034 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10035 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10036 done 10037 IFS=$lt_save_ifs 10038 # Convert to MSYS style. 10039 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10040 ;; 10041 cygwin*) 10042 # Convert to unix form, then to dos form, then back to unix form 10043 # but this time dos style (no spaces!) so that the unix form looks 10044 # like /cygdrive/c/PROGRA~1:/cygdr... 10045 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10046 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10047 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10048 ;; 10049 *) 10050 sys_lib_search_path_spec="$LIB" 10051 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10052 # It is most probably a Windows format PATH. 10053 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10054 else 10055 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10056 fi 10057 # FIXME: find the short name or the path components, as spaces are 10058 # common. (e.g. "Program Files" -> "PROGRA~1") 10059 ;; 10060 esac 10061 10062 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10063 postinstall_cmds='base_file=`basename \${file}`~ 10064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10065 dldir=$destdir/`dirname \$dlpath`~ 10066 test -d \$dldir || mkdir -p \$dldir~ 10067 $install_prog $dir/$dlname \$dldir/$dlname' 10068 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10069 dlpath=$dir/\$dldll~ 10070 $RM \$dlpath' 10071 shlibpath_overrides_runpath=yes 10072 dynamic_linker='Win32 link.exe' 10073 ;; 10074 10075 *) 10076 # Assume MSVC wrapper 10077 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10078 dynamic_linker='Win32 ld.exe' 10079 ;; 10080 esac 10081 # FIXME: first we should search . and the directory the executable is in 10082 shlibpath_var=PATH 10083 ;; 10084 10085darwin* | rhapsody*) 10086 dynamic_linker="$host_os dyld" 10087 version_type=darwin 10088 need_lib_prefix=no 10089 need_version=no 10090 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10091 soname_spec='${libname}${release}${major}$shared_ext' 10092 shlibpath_overrides_runpath=yes 10093 shlibpath_var=DYLD_LIBRARY_PATH 10094 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10095 10096 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10097 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10098 ;; 10099 10100dgux*) 10101 version_type=linux # correct to gnu/linux during the next big refactor 10102 need_lib_prefix=no 10103 need_version=no 10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10105 soname_spec='${libname}${release}${shared_ext}$major' 10106 shlibpath_var=LD_LIBRARY_PATH 10107 ;; 10108 10109freebsd* | dragonfly*) 10110 # DragonFly does not have aout. When/if they implement a new 10111 # versioning mechanism, adjust this. 10112 if test -x /usr/bin/objformat; then 10113 objformat=`/usr/bin/objformat` 10114 else 10115 case $host_os in 10116 freebsd[23].*) objformat=aout ;; 10117 *) objformat=elf ;; 10118 esac 10119 fi 10120 version_type=freebsd-$objformat 10121 case $version_type in 10122 freebsd-elf*) 10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10124 need_version=no 10125 need_lib_prefix=no 10126 ;; 10127 freebsd-*) 10128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10129 need_version=yes 10130 ;; 10131 esac 10132 shlibpath_var=LD_LIBRARY_PATH 10133 case $host_os in 10134 freebsd2.*) 10135 shlibpath_overrides_runpath=yes 10136 ;; 10137 freebsd3.[01]* | freebsdelf3.[01]*) 10138 shlibpath_overrides_runpath=yes 10139 hardcode_into_libs=yes 10140 ;; 10141 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10142 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10143 shlibpath_overrides_runpath=no 10144 hardcode_into_libs=yes 10145 ;; 10146 *) # from 4.6 on, and DragonFly 10147 shlibpath_overrides_runpath=yes 10148 hardcode_into_libs=yes 10149 ;; 10150 esac 10151 ;; 10152 10153gnu*) 10154 version_type=linux # correct to gnu/linux during the next big refactor 10155 need_lib_prefix=no 10156 need_version=no 10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10158 soname_spec='${libname}${release}${shared_ext}$major' 10159 shlibpath_var=LD_LIBRARY_PATH 10160 shlibpath_overrides_runpath=no 10161 hardcode_into_libs=yes 10162 ;; 10163 10164haiku*) 10165 version_type=linux # correct to gnu/linux during the next big refactor 10166 need_lib_prefix=no 10167 need_version=no 10168 dynamic_linker="$host_os runtime_loader" 10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10170 soname_spec='${libname}${release}${shared_ext}$major' 10171 shlibpath_var=LIBRARY_PATH 10172 shlibpath_overrides_runpath=yes 10173 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10174 hardcode_into_libs=yes 10175 ;; 10176 10177hpux9* | hpux10* | hpux11*) 10178 # Give a soname corresponding to the major version so that dld.sl refuses to 10179 # link against other versions. 10180 version_type=sunos 10181 need_lib_prefix=no 10182 need_version=no 10183 case $host_cpu in 10184 ia64*) 10185 shrext_cmds='.so' 10186 hardcode_into_libs=yes 10187 dynamic_linker="$host_os dld.so" 10188 shlibpath_var=LD_LIBRARY_PATH 10189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10191 soname_spec='${libname}${release}${shared_ext}$major' 10192 if test "X$HPUX_IA64_MODE" = X32; then 10193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10194 else 10195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10196 fi 10197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10198 ;; 10199 hppa*64*) 10200 shrext_cmds='.sl' 10201 hardcode_into_libs=yes 10202 dynamic_linker="$host_os dld.sl" 10203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10206 soname_spec='${libname}${release}${shared_ext}$major' 10207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10209 ;; 10210 *) 10211 shrext_cmds='.sl' 10212 dynamic_linker="$host_os dld.sl" 10213 shlibpath_var=SHLIB_PATH 10214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10216 soname_spec='${libname}${release}${shared_ext}$major' 10217 ;; 10218 esac 10219 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10220 postinstall_cmds='chmod 555 $lib' 10221 # or fails outright, so override atomically: 10222 install_override_mode=555 10223 ;; 10224 10225interix[3-9]*) 10226 version_type=linux # correct to gnu/linux during the next big refactor 10227 need_lib_prefix=no 10228 need_version=no 10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10230 soname_spec='${libname}${release}${shared_ext}$major' 10231 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10232 shlibpath_var=LD_LIBRARY_PATH 10233 shlibpath_overrides_runpath=no 10234 hardcode_into_libs=yes 10235 ;; 10236 10237irix5* | irix6* | nonstopux*) 10238 case $host_os in 10239 nonstopux*) version_type=nonstopux ;; 10240 *) 10241 if test "$lt_cv_prog_gnu_ld" = yes; then 10242 version_type=linux # correct to gnu/linux during the next big refactor 10243 else 10244 version_type=irix 10245 fi ;; 10246 esac 10247 need_lib_prefix=no 10248 need_version=no 10249 soname_spec='${libname}${release}${shared_ext}$major' 10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10251 case $host_os in 10252 irix5* | nonstopux*) 10253 libsuff= shlibsuff= 10254 ;; 10255 *) 10256 case $LD in # libtool.m4 will add one of these switches to LD 10257 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10258 libsuff= shlibsuff= libmagic=32-bit;; 10259 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10260 libsuff=32 shlibsuff=N32 libmagic=N32;; 10261 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10262 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10263 *) libsuff= shlibsuff= libmagic=never-match;; 10264 esac 10265 ;; 10266 esac 10267 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10268 shlibpath_overrides_runpath=no 10269 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10270 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10271 hardcode_into_libs=yes 10272 ;; 10273 10274# No shared lib support for Linux oldld, aout, or coff. 10275linux*oldld* | linux*aout* | linux*coff*) 10276 dynamic_linker=no 10277 ;; 10278 10279# This must be glibc/ELF. 10280linux* | k*bsd*-gnu | kopensolaris*-gnu) 10281 version_type=linux # correct to gnu/linux during the next big refactor 10282 need_lib_prefix=no 10283 need_version=no 10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10285 soname_spec='${libname}${release}${shared_ext}$major' 10286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10287 shlibpath_var=LD_LIBRARY_PATH 10288 shlibpath_overrides_runpath=no 10289 10290 # Some binutils ld are patched to set DT_RUNPATH 10291 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10292 $as_echo_n "(cached) " >&6 10293else 10294 lt_cv_shlibpath_overrides_runpath=no 10295 save_LDFLAGS=$LDFLAGS 10296 save_libdir=$libdir 10297 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10298 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10300/* end confdefs.h. */ 10301 10302int 10303main () 10304{ 10305 10306 ; 10307 return 0; 10308} 10309_ACEOF 10310if ac_fn_c_try_link "$LINENO"; then : 10311 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10312 lt_cv_shlibpath_overrides_runpath=yes 10313fi 10314fi 10315rm -f core conftest.err conftest.$ac_objext \ 10316 conftest$ac_exeext conftest.$ac_ext 10317 LDFLAGS=$save_LDFLAGS 10318 libdir=$save_libdir 10319 10320fi 10321 10322 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10323 10324 # This implies no fast_install, which is unacceptable. 10325 # Some rework will be needed to allow for fast_install 10326 # before this can be enabled. 10327 hardcode_into_libs=yes 10328 10329 # Append ld.so.conf contents to the search path 10330 if test -f /etc/ld.so.conf; then 10331 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' ' '` 10332 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10333 fi 10334 10335 # We used to test for /lib/ld.so.1 and disable shared libraries on 10336 # powerpc, because MkLinux only supported shared libraries with the 10337 # GNU dynamic linker. Since this was broken with cross compilers, 10338 # most powerpc-linux boxes support dynamic linking these days and 10339 # people can always --disable-shared, the test was removed, and we 10340 # assume the GNU/Linux dynamic linker is in use. 10341 dynamic_linker='GNU/Linux ld.so' 10342 ;; 10343 10344netbsd*) 10345 version_type=sunos 10346 need_lib_prefix=no 10347 need_version=no 10348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10351 dynamic_linker='NetBSD (a.out) ld.so' 10352 else 10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10354 soname_spec='${libname}${release}${shared_ext}$major' 10355 dynamic_linker='NetBSD ld.elf_so' 10356 fi 10357 shlibpath_var=LD_LIBRARY_PATH 10358 shlibpath_overrides_runpath=yes 10359 hardcode_into_libs=yes 10360 ;; 10361 10362newsos6) 10363 version_type=linux # correct to gnu/linux during the next big refactor 10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10365 shlibpath_var=LD_LIBRARY_PATH 10366 shlibpath_overrides_runpath=yes 10367 ;; 10368 10369*nto* | *qnx*) 10370 version_type=qnx 10371 need_lib_prefix=no 10372 need_version=no 10373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10374 soname_spec='${libname}${release}${shared_ext}$major' 10375 shlibpath_var=LD_LIBRARY_PATH 10376 shlibpath_overrides_runpath=no 10377 hardcode_into_libs=yes 10378 dynamic_linker='ldqnx.so' 10379 ;; 10380 10381openbsd*) 10382 version_type=sunos 10383 sys_lib_dlsearch_path_spec="/usr/lib" 10384 need_lib_prefix=no 10385 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10386 case $host_os in 10387 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10388 *) need_version=no ;; 10389 esac 10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10392 shlibpath_var=LD_LIBRARY_PATH 10393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10394 case $host_os in 10395 openbsd2.[89] | openbsd2.[89].*) 10396 shlibpath_overrides_runpath=no 10397 ;; 10398 *) 10399 shlibpath_overrides_runpath=yes 10400 ;; 10401 esac 10402 else 10403 shlibpath_overrides_runpath=yes 10404 fi 10405 ;; 10406 10407os2*) 10408 libname_spec='$name' 10409 shrext_cmds=".dll" 10410 need_lib_prefix=no 10411 library_names_spec='$libname${shared_ext} $libname.a' 10412 dynamic_linker='OS/2 ld.exe' 10413 shlibpath_var=LIBPATH 10414 ;; 10415 10416osf3* | osf4* | osf5*) 10417 version_type=osf 10418 need_lib_prefix=no 10419 need_version=no 10420 soname_spec='${libname}${release}${shared_ext}$major' 10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10422 shlibpath_var=LD_LIBRARY_PATH 10423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10425 ;; 10426 10427rdos*) 10428 dynamic_linker=no 10429 ;; 10430 10431solaris*) 10432 version_type=linux # correct to gnu/linux during the next big refactor 10433 need_lib_prefix=no 10434 need_version=no 10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10436 soname_spec='${libname}${release}${shared_ext}$major' 10437 shlibpath_var=LD_LIBRARY_PATH 10438 shlibpath_overrides_runpath=yes 10439 hardcode_into_libs=yes 10440 # ldd complains unless libraries are executable 10441 postinstall_cmds='chmod +x $lib' 10442 ;; 10443 10444sunos4*) 10445 version_type=sunos 10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10447 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10448 shlibpath_var=LD_LIBRARY_PATH 10449 shlibpath_overrides_runpath=yes 10450 if test "$with_gnu_ld" = yes; then 10451 need_lib_prefix=no 10452 fi 10453 need_version=yes 10454 ;; 10455 10456sysv4 | sysv4.3*) 10457 version_type=linux # correct to gnu/linux during the next big refactor 10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10459 soname_spec='${libname}${release}${shared_ext}$major' 10460 shlibpath_var=LD_LIBRARY_PATH 10461 case $host_vendor in 10462 sni) 10463 shlibpath_overrides_runpath=no 10464 need_lib_prefix=no 10465 runpath_var=LD_RUN_PATH 10466 ;; 10467 siemens) 10468 need_lib_prefix=no 10469 ;; 10470 motorola) 10471 need_lib_prefix=no 10472 need_version=no 10473 shlibpath_overrides_runpath=no 10474 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10475 ;; 10476 esac 10477 ;; 10478 10479sysv4*MP*) 10480 if test -d /usr/nec ;then 10481 version_type=linux # correct to gnu/linux during the next big refactor 10482 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10483 soname_spec='$libname${shared_ext}.$major' 10484 shlibpath_var=LD_LIBRARY_PATH 10485 fi 10486 ;; 10487 10488sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10489 version_type=freebsd-elf 10490 need_lib_prefix=no 10491 need_version=no 10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10493 soname_spec='${libname}${release}${shared_ext}$major' 10494 shlibpath_var=LD_LIBRARY_PATH 10495 shlibpath_overrides_runpath=yes 10496 hardcode_into_libs=yes 10497 if test "$with_gnu_ld" = yes; then 10498 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10499 else 10500 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10501 case $host_os in 10502 sco3.2v5*) 10503 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10504 ;; 10505 esac 10506 fi 10507 sys_lib_dlsearch_path_spec='/usr/lib' 10508 ;; 10509 10510tpf*) 10511 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10512 version_type=linux # correct to gnu/linux during the next big refactor 10513 need_lib_prefix=no 10514 need_version=no 10515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10516 shlibpath_var=LD_LIBRARY_PATH 10517 shlibpath_overrides_runpath=no 10518 hardcode_into_libs=yes 10519 ;; 10520 10521uts4*) 10522 version_type=linux # correct to gnu/linux during the next big refactor 10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10524 soname_spec='${libname}${release}${shared_ext}$major' 10525 shlibpath_var=LD_LIBRARY_PATH 10526 ;; 10527 10528*) 10529 dynamic_linker=no 10530 ;; 10531esac 10532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10533$as_echo "$dynamic_linker" >&6; } 10534test "$dynamic_linker" = no && can_build_shared=no 10535 10536variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10537if test "$GCC" = yes; then 10538 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10539fi 10540 10541if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10542 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10543fi 10544if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10545 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10546fi 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10640$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10641hardcode_action= 10642if test -n "$hardcode_libdir_flag_spec" || 10643 test -n "$runpath_var" || 10644 test "X$hardcode_automatic" = "Xyes" ; then 10645 10646 # We can hardcode non-existent directories. 10647 if test "$hardcode_direct" != no && 10648 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10649 # have to relink, otherwise we might link with an installed library 10650 # when we should be linking with a yet-to-be-installed one 10651 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10652 test "$hardcode_minus_L" != no; then 10653 # Linking always hardcodes the temporary library directory. 10654 hardcode_action=relink 10655 else 10656 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10657 hardcode_action=immediate 10658 fi 10659else 10660 # We cannot hardcode anything, or else we can only hardcode existing 10661 # directories. 10662 hardcode_action=unsupported 10663fi 10664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10665$as_echo "$hardcode_action" >&6; } 10666 10667if test "$hardcode_action" = relink || 10668 test "$inherit_rpath" = yes; then 10669 # Fast installation is not supported 10670 enable_fast_install=no 10671elif test "$shlibpath_overrides_runpath" = yes || 10672 test "$enable_shared" = no; then 10673 # Fast installation is not necessary 10674 enable_fast_install=needless 10675fi 10676 10677 10678 10679 10680 10681 10682 if test "x$enable_dlopen" != xyes; then 10683 enable_dlopen=unknown 10684 enable_dlopen_self=unknown 10685 enable_dlopen_self_static=unknown 10686else 10687 lt_cv_dlopen=no 10688 lt_cv_dlopen_libs= 10689 10690 case $host_os in 10691 beos*) 10692 lt_cv_dlopen="load_add_on" 10693 lt_cv_dlopen_libs= 10694 lt_cv_dlopen_self=yes 10695 ;; 10696 10697 mingw* | pw32* | cegcc*) 10698 lt_cv_dlopen="LoadLibrary" 10699 lt_cv_dlopen_libs= 10700 ;; 10701 10702 cygwin*) 10703 lt_cv_dlopen="dlopen" 10704 lt_cv_dlopen_libs= 10705 ;; 10706 10707 darwin*) 10708 # if libdl is installed we need to link against it 10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10710$as_echo_n "checking for dlopen in -ldl... " >&6; } 10711if ${ac_cv_lib_dl_dlopen+:} false; then : 10712 $as_echo_n "(cached) " >&6 10713else 10714 ac_check_lib_save_LIBS=$LIBS 10715LIBS="-ldl $LIBS" 10716cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10717/* end confdefs.h. */ 10718 10719/* Override any GCC internal prototype to avoid an error. 10720 Use char because int might match the return type of a GCC 10721 builtin and then its argument prototype would still apply. */ 10722#ifdef __cplusplus 10723extern "C" 10724#endif 10725char dlopen (); 10726int 10727main () 10728{ 10729return dlopen (); 10730 ; 10731 return 0; 10732} 10733_ACEOF 10734if ac_fn_c_try_link "$LINENO"; then : 10735 ac_cv_lib_dl_dlopen=yes 10736else 10737 ac_cv_lib_dl_dlopen=no 10738fi 10739rm -f core conftest.err conftest.$ac_objext \ 10740 conftest$ac_exeext conftest.$ac_ext 10741LIBS=$ac_check_lib_save_LIBS 10742fi 10743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10744$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10745if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10747else 10748 10749 lt_cv_dlopen="dyld" 10750 lt_cv_dlopen_libs= 10751 lt_cv_dlopen_self=yes 10752 10753fi 10754 10755 ;; 10756 10757 *) 10758 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10759if test "x$ac_cv_func_shl_load" = xyes; then : 10760 lt_cv_dlopen="shl_load" 10761else 10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10763$as_echo_n "checking for shl_load in -ldld... " >&6; } 10764if ${ac_cv_lib_dld_shl_load+:} false; then : 10765 $as_echo_n "(cached) " >&6 10766else 10767 ac_check_lib_save_LIBS=$LIBS 10768LIBS="-ldld $LIBS" 10769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10770/* end confdefs.h. */ 10771 10772/* Override any GCC internal prototype to avoid an error. 10773 Use char because int might match the return type of a GCC 10774 builtin and then its argument prototype would still apply. */ 10775#ifdef __cplusplus 10776extern "C" 10777#endif 10778char shl_load (); 10779int 10780main () 10781{ 10782return shl_load (); 10783 ; 10784 return 0; 10785} 10786_ACEOF 10787if ac_fn_c_try_link "$LINENO"; then : 10788 ac_cv_lib_dld_shl_load=yes 10789else 10790 ac_cv_lib_dld_shl_load=no 10791fi 10792rm -f core conftest.err conftest.$ac_objext \ 10793 conftest$ac_exeext conftest.$ac_ext 10794LIBS=$ac_check_lib_save_LIBS 10795fi 10796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10797$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10798if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10799 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10800else 10801 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10802if test "x$ac_cv_func_dlopen" = xyes; then : 10803 lt_cv_dlopen="dlopen" 10804else 10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10806$as_echo_n "checking for dlopen in -ldl... " >&6; } 10807if ${ac_cv_lib_dl_dlopen+:} false; then : 10808 $as_echo_n "(cached) " >&6 10809else 10810 ac_check_lib_save_LIBS=$LIBS 10811LIBS="-ldl $LIBS" 10812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10813/* end confdefs.h. */ 10814 10815/* Override any GCC internal prototype to avoid an error. 10816 Use char because int might match the return type of a GCC 10817 builtin and then its argument prototype would still apply. */ 10818#ifdef __cplusplus 10819extern "C" 10820#endif 10821char dlopen (); 10822int 10823main () 10824{ 10825return dlopen (); 10826 ; 10827 return 0; 10828} 10829_ACEOF 10830if ac_fn_c_try_link "$LINENO"; then : 10831 ac_cv_lib_dl_dlopen=yes 10832else 10833 ac_cv_lib_dl_dlopen=no 10834fi 10835rm -f core conftest.err conftest.$ac_objext \ 10836 conftest$ac_exeext conftest.$ac_ext 10837LIBS=$ac_check_lib_save_LIBS 10838fi 10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10840$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10841if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10843else 10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10845$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10846if ${ac_cv_lib_svld_dlopen+:} false; then : 10847 $as_echo_n "(cached) " >&6 10848else 10849 ac_check_lib_save_LIBS=$LIBS 10850LIBS="-lsvld $LIBS" 10851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10852/* end confdefs.h. */ 10853 10854/* Override any GCC internal prototype to avoid an error. 10855 Use char because int might match the return type of a GCC 10856 builtin and then its argument prototype would still apply. */ 10857#ifdef __cplusplus 10858extern "C" 10859#endif 10860char dlopen (); 10861int 10862main () 10863{ 10864return dlopen (); 10865 ; 10866 return 0; 10867} 10868_ACEOF 10869if ac_fn_c_try_link "$LINENO"; then : 10870 ac_cv_lib_svld_dlopen=yes 10871else 10872 ac_cv_lib_svld_dlopen=no 10873fi 10874rm -f core conftest.err conftest.$ac_objext \ 10875 conftest$ac_exeext conftest.$ac_ext 10876LIBS=$ac_check_lib_save_LIBS 10877fi 10878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10879$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10880if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10882else 10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10884$as_echo_n "checking for dld_link in -ldld... " >&6; } 10885if ${ac_cv_lib_dld_dld_link+:} false; then : 10886 $as_echo_n "(cached) " >&6 10887else 10888 ac_check_lib_save_LIBS=$LIBS 10889LIBS="-ldld $LIBS" 10890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10891/* end confdefs.h. */ 10892 10893/* Override any GCC internal prototype to avoid an error. 10894 Use char because int might match the return type of a GCC 10895 builtin and then its argument prototype would still apply. */ 10896#ifdef __cplusplus 10897extern "C" 10898#endif 10899char dld_link (); 10900int 10901main () 10902{ 10903return dld_link (); 10904 ; 10905 return 0; 10906} 10907_ACEOF 10908if ac_fn_c_try_link "$LINENO"; then : 10909 ac_cv_lib_dld_dld_link=yes 10910else 10911 ac_cv_lib_dld_dld_link=no 10912fi 10913rm -f core conftest.err conftest.$ac_objext \ 10914 conftest$ac_exeext conftest.$ac_ext 10915LIBS=$ac_check_lib_save_LIBS 10916fi 10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10918$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10919if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10920 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10921fi 10922 10923 10924fi 10925 10926 10927fi 10928 10929 10930fi 10931 10932 10933fi 10934 10935 10936fi 10937 10938 ;; 10939 esac 10940 10941 if test "x$lt_cv_dlopen" != xno; then 10942 enable_dlopen=yes 10943 else 10944 enable_dlopen=no 10945 fi 10946 10947 case $lt_cv_dlopen in 10948 dlopen) 10949 save_CPPFLAGS="$CPPFLAGS" 10950 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10951 10952 save_LDFLAGS="$LDFLAGS" 10953 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10954 10955 save_LIBS="$LIBS" 10956 LIBS="$lt_cv_dlopen_libs $LIBS" 10957 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10959$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10960if ${lt_cv_dlopen_self+:} false; then : 10961 $as_echo_n "(cached) " >&6 10962else 10963 if test "$cross_compiling" = yes; then : 10964 lt_cv_dlopen_self=cross 10965else 10966 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10967 lt_status=$lt_dlunknown 10968 cat > conftest.$ac_ext <<_LT_EOF 10969#line $LINENO "configure" 10970#include "confdefs.h" 10971 10972#if HAVE_DLFCN_H 10973#include <dlfcn.h> 10974#endif 10975 10976#include <stdio.h> 10977 10978#ifdef RTLD_GLOBAL 10979# define LT_DLGLOBAL RTLD_GLOBAL 10980#else 10981# ifdef DL_GLOBAL 10982# define LT_DLGLOBAL DL_GLOBAL 10983# else 10984# define LT_DLGLOBAL 0 10985# endif 10986#endif 10987 10988/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10989 find out it does not work in some platform. */ 10990#ifndef LT_DLLAZY_OR_NOW 10991# ifdef RTLD_LAZY 10992# define LT_DLLAZY_OR_NOW RTLD_LAZY 10993# else 10994# ifdef DL_LAZY 10995# define LT_DLLAZY_OR_NOW DL_LAZY 10996# else 10997# ifdef RTLD_NOW 10998# define LT_DLLAZY_OR_NOW RTLD_NOW 10999# else 11000# ifdef DL_NOW 11001# define LT_DLLAZY_OR_NOW DL_NOW 11002# else 11003# define LT_DLLAZY_OR_NOW 0 11004# endif 11005# endif 11006# endif 11007# endif 11008#endif 11009 11010/* When -fvisbility=hidden is used, assume the code has been annotated 11011 correspondingly for the symbols needed. */ 11012#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11013int fnord () __attribute__((visibility("default"))); 11014#endif 11015 11016int fnord () { return 42; } 11017int main () 11018{ 11019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11020 int status = $lt_dlunknown; 11021 11022 if (self) 11023 { 11024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11025 else 11026 { 11027 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11028 else puts (dlerror ()); 11029 } 11030 /* dlclose (self); */ 11031 } 11032 else 11033 puts (dlerror ()); 11034 11035 return status; 11036} 11037_LT_EOF 11038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11039 (eval $ac_link) 2>&5 11040 ac_status=$? 11041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11042 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11043 (./conftest; exit; ) >&5 2>/dev/null 11044 lt_status=$? 11045 case x$lt_status in 11046 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11047 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11048 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11049 esac 11050 else : 11051 # compilation failed 11052 lt_cv_dlopen_self=no 11053 fi 11054fi 11055rm -fr conftest* 11056 11057 11058fi 11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11060$as_echo "$lt_cv_dlopen_self" >&6; } 11061 11062 if test "x$lt_cv_dlopen_self" = xyes; then 11063 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11065$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11066if ${lt_cv_dlopen_self_static+:} false; then : 11067 $as_echo_n "(cached) " >&6 11068else 11069 if test "$cross_compiling" = yes; then : 11070 lt_cv_dlopen_self_static=cross 11071else 11072 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11073 lt_status=$lt_dlunknown 11074 cat > conftest.$ac_ext <<_LT_EOF 11075#line $LINENO "configure" 11076#include "confdefs.h" 11077 11078#if HAVE_DLFCN_H 11079#include <dlfcn.h> 11080#endif 11081 11082#include <stdio.h> 11083 11084#ifdef RTLD_GLOBAL 11085# define LT_DLGLOBAL RTLD_GLOBAL 11086#else 11087# ifdef DL_GLOBAL 11088# define LT_DLGLOBAL DL_GLOBAL 11089# else 11090# define LT_DLGLOBAL 0 11091# endif 11092#endif 11093 11094/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11095 find out it does not work in some platform. */ 11096#ifndef LT_DLLAZY_OR_NOW 11097# ifdef RTLD_LAZY 11098# define LT_DLLAZY_OR_NOW RTLD_LAZY 11099# else 11100# ifdef DL_LAZY 11101# define LT_DLLAZY_OR_NOW DL_LAZY 11102# else 11103# ifdef RTLD_NOW 11104# define LT_DLLAZY_OR_NOW RTLD_NOW 11105# else 11106# ifdef DL_NOW 11107# define LT_DLLAZY_OR_NOW DL_NOW 11108# else 11109# define LT_DLLAZY_OR_NOW 0 11110# endif 11111# endif 11112# endif 11113# endif 11114#endif 11115 11116/* When -fvisbility=hidden is used, assume the code has been annotated 11117 correspondingly for the symbols needed. */ 11118#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11119int fnord () __attribute__((visibility("default"))); 11120#endif 11121 11122int fnord () { return 42; } 11123int main () 11124{ 11125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11126 int status = $lt_dlunknown; 11127 11128 if (self) 11129 { 11130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11131 else 11132 { 11133 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11134 else puts (dlerror ()); 11135 } 11136 /* dlclose (self); */ 11137 } 11138 else 11139 puts (dlerror ()); 11140 11141 return status; 11142} 11143_LT_EOF 11144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11145 (eval $ac_link) 2>&5 11146 ac_status=$? 11147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11148 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11149 (./conftest; exit; ) >&5 2>/dev/null 11150 lt_status=$? 11151 case x$lt_status in 11152 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11153 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11154 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11155 esac 11156 else : 11157 # compilation failed 11158 lt_cv_dlopen_self_static=no 11159 fi 11160fi 11161rm -fr conftest* 11162 11163 11164fi 11165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11166$as_echo "$lt_cv_dlopen_self_static" >&6; } 11167 fi 11168 11169 CPPFLAGS="$save_CPPFLAGS" 11170 LDFLAGS="$save_LDFLAGS" 11171 LIBS="$save_LIBS" 11172 ;; 11173 esac 11174 11175 case $lt_cv_dlopen_self in 11176 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11177 *) enable_dlopen_self=unknown ;; 11178 esac 11179 11180 case $lt_cv_dlopen_self_static in 11181 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11182 *) enable_dlopen_self_static=unknown ;; 11183 esac 11184fi 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202striplib= 11203old_striplib= 11204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11205$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11206if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11207 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11208 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11210$as_echo "yes" >&6; } 11211else 11212# FIXME - insert some real tests, host_os isn't really good enough 11213 case $host_os in 11214 darwin*) 11215 if test -n "$STRIP" ; then 11216 striplib="$STRIP -x" 11217 old_striplib="$STRIP -S" 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11219$as_echo "yes" >&6; } 11220 else 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11222$as_echo "no" >&6; } 11223 fi 11224 ;; 11225 *) 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11227$as_echo "no" >&6; } 11228 ;; 11229 esac 11230fi 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 # Report which library types will actually be built 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11245$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11247$as_echo "$can_build_shared" >&6; } 11248 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11250$as_echo_n "checking whether to build shared libraries... " >&6; } 11251 test "$can_build_shared" = "no" && enable_shared=no 11252 11253 # On AIX, shared libraries and static libraries use the same namespace, and 11254 # are all built from PIC. 11255 case $host_os in 11256 aix3*) 11257 test "$enable_shared" = yes && enable_static=no 11258 if test -n "$RANLIB"; then 11259 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11260 postinstall_cmds='$RANLIB $lib' 11261 fi 11262 ;; 11263 11264 aix[4-9]*) 11265 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11266 test "$enable_shared" = yes && enable_static=no 11267 fi 11268 ;; 11269 esac 11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11271$as_echo "$enable_shared" >&6; } 11272 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11274$as_echo_n "checking whether to build static libraries... " >&6; } 11275 # Make sure either enable_shared or enable_static is yes. 11276 test "$enable_shared" = yes || enable_static=yes 11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11278$as_echo "$enable_static" >&6; } 11279 11280 11281 11282 11283fi 11284ac_ext=c 11285ac_cpp='$CPP $CPPFLAGS' 11286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11288ac_compiler_gnu=$ac_cv_c_compiler_gnu 11289 11290CC="$lt_save_CC" 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 ac_config_commands="$ac_config_commands libtool" 11307 11308 11309 11310 11311# Only expand once: 11312 11313 11314 11315# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11328$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11329if ${ac_cv_prog_cc_c99+:} false; then : 11330 $as_echo_n "(cached) " >&6 11331else 11332 ac_cv_prog_cc_c99=no 11333ac_save_CC=$CC 11334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11335/* end confdefs.h. */ 11336#include <stdarg.h> 11337#include <stdbool.h> 11338#include <stdlib.h> 11339#include <wchar.h> 11340#include <stdio.h> 11341 11342// Check varargs macros. These examples are taken from C99 6.10.3.5. 11343#define debug(...) fprintf (stderr, __VA_ARGS__) 11344#define showlist(...) puts (#__VA_ARGS__) 11345#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11346static void 11347test_varargs_macros (void) 11348{ 11349 int x = 1234; 11350 int y = 5678; 11351 debug ("Flag"); 11352 debug ("X = %d\n", x); 11353 showlist (The first, second, and third items.); 11354 report (x>y, "x is %d but y is %d", x, y); 11355} 11356 11357// Check long long types. 11358#define BIG64 18446744073709551615ull 11359#define BIG32 4294967295ul 11360#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11361#if !BIG_OK 11362 your preprocessor is broken; 11363#endif 11364#if BIG_OK 11365#else 11366 your preprocessor is broken; 11367#endif 11368static long long int bignum = -9223372036854775807LL; 11369static unsigned long long int ubignum = BIG64; 11370 11371struct incomplete_array 11372{ 11373 int datasize; 11374 double data[]; 11375}; 11376 11377struct named_init { 11378 int number; 11379 const wchar_t *name; 11380 double average; 11381}; 11382 11383typedef const char *ccp; 11384 11385static inline int 11386test_restrict (ccp restrict text) 11387{ 11388 // See if C++-style comments work. 11389 // Iterate through items via the restricted pointer. 11390 // Also check for declarations in for loops. 11391 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11392 continue; 11393 return 0; 11394} 11395 11396// Check varargs and va_copy. 11397static void 11398test_varargs (const char *format, ...) 11399{ 11400 va_list args; 11401 va_start (args, format); 11402 va_list args_copy; 11403 va_copy (args_copy, args); 11404 11405 const char *str; 11406 int number; 11407 float fnumber; 11408 11409 while (*format) 11410 { 11411 switch (*format++) 11412 { 11413 case 's': // string 11414 str = va_arg (args_copy, const char *); 11415 break; 11416 case 'd': // int 11417 number = va_arg (args_copy, int); 11418 break; 11419 case 'f': // float 11420 fnumber = va_arg (args_copy, double); 11421 break; 11422 default: 11423 break; 11424 } 11425 } 11426 va_end (args_copy); 11427 va_end (args); 11428} 11429 11430int 11431main () 11432{ 11433 11434 // Check bool. 11435 _Bool success = false; 11436 11437 // Check restrict. 11438 if (test_restrict ("String literal") == 0) 11439 success = true; 11440 char *restrict newvar = "Another string"; 11441 11442 // Check varargs. 11443 test_varargs ("s, d' f .", "string", 65, 34.234); 11444 test_varargs_macros (); 11445 11446 // Check flexible array members. 11447 struct incomplete_array *ia = 11448 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11449 ia->datasize = 10; 11450 for (int i = 0; i < ia->datasize; ++i) 11451 ia->data[i] = i * 1.234; 11452 11453 // Check named initializers. 11454 struct named_init ni = { 11455 .number = 34, 11456 .name = L"Test wide string", 11457 .average = 543.34343, 11458 }; 11459 11460 ni.number = 58; 11461 11462 int dynamic_array[ni.number]; 11463 dynamic_array[ni.number - 1] = 543; 11464 11465 // work around unused variable warnings 11466 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11467 || dynamic_array[ni.number - 1] != 543); 11468 11469 ; 11470 return 0; 11471} 11472_ACEOF 11473for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11474do 11475 CC="$ac_save_CC $ac_arg" 11476 if ac_fn_c_try_compile "$LINENO"; then : 11477 ac_cv_prog_cc_c99=$ac_arg 11478fi 11479rm -f core conftest.err conftest.$ac_objext 11480 test "x$ac_cv_prog_cc_c99" != "xno" && break 11481done 11482rm -f conftest.$ac_ext 11483CC=$ac_save_CC 11484 11485fi 11486# AC_CACHE_VAL 11487case "x$ac_cv_prog_cc_c99" in 11488 x) 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11490$as_echo "none needed" >&6; } ;; 11491 xno) 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11493$as_echo "unsupported" >&6; } ;; 11494 *) 11495 CC="$CC $ac_cv_prog_cc_c99" 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11497$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11498esac 11499if test "x$ac_cv_prog_cc_c99" != xno; then : 11500 11501fi 11502 11503 11504 11505 11506 11507 11508ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11509if test "x$ac_cv_have_decl___clang__" = xyes; then : 11510 CLANGCC="yes" 11511else 11512 CLANGCC="no" 11513fi 11514 11515ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11516if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11517 INTELCC="yes" 11518else 11519 INTELCC="no" 11520fi 11521 11522ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11523if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11524 SUNCC="yes" 11525else 11526 SUNCC="no" 11527fi 11528 11529 11530 11531 11532if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11533 if test -n "$ac_tool_prefix"; then 11534 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11535set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11537$as_echo_n "checking for $ac_word... " >&6; } 11538if ${ac_cv_path_PKG_CONFIG+:} false; then : 11539 $as_echo_n "(cached) " >&6 11540else 11541 case $PKG_CONFIG in 11542 [\\/]* | ?:[\\/]*) 11543 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11544 ;; 11545 *) 11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11547for as_dir in $PATH 11548do 11549 IFS=$as_save_IFS 11550 test -z "$as_dir" && as_dir=. 11551 for ac_exec_ext in '' $ac_executable_extensions; do 11552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11553 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11555 break 2 11556 fi 11557done 11558 done 11559IFS=$as_save_IFS 11560 11561 ;; 11562esac 11563fi 11564PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11565if test -n "$PKG_CONFIG"; then 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11567$as_echo "$PKG_CONFIG" >&6; } 11568else 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11570$as_echo "no" >&6; } 11571fi 11572 11573 11574fi 11575if test -z "$ac_cv_path_PKG_CONFIG"; then 11576 ac_pt_PKG_CONFIG=$PKG_CONFIG 11577 # Extract the first word of "pkg-config", so it can be a program name with args. 11578set dummy pkg-config; ac_word=$2 11579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11580$as_echo_n "checking for $ac_word... " >&6; } 11581if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11582 $as_echo_n "(cached) " >&6 11583else 11584 case $ac_pt_PKG_CONFIG in 11585 [\\/]* | ?:[\\/]*) 11586 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11587 ;; 11588 *) 11589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11590for as_dir in $PATH 11591do 11592 IFS=$as_save_IFS 11593 test -z "$as_dir" && as_dir=. 11594 for ac_exec_ext in '' $ac_executable_extensions; do 11595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11596 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11598 break 2 11599 fi 11600done 11601 done 11602IFS=$as_save_IFS 11603 11604 ;; 11605esac 11606fi 11607ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11608if test -n "$ac_pt_PKG_CONFIG"; then 11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11610$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11611else 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11613$as_echo "no" >&6; } 11614fi 11615 11616 if test "x$ac_pt_PKG_CONFIG" = x; then 11617 PKG_CONFIG="" 11618 else 11619 case $cross_compiling:$ac_tool_warned in 11620yes:) 11621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11623ac_tool_warned=yes ;; 11624esac 11625 PKG_CONFIG=$ac_pt_PKG_CONFIG 11626 fi 11627else 11628 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11629fi 11630 11631fi 11632if test -n "$PKG_CONFIG"; then 11633 _pkg_min_version=0.9.0 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11635$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11636 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11638$as_echo "yes" >&6; } 11639 else 11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11641$as_echo "no" >&6; } 11642 PKG_CONFIG="" 11643 fi 11644 11645fi 11646 11647 11648 11649 11650 11651# Check whether --enable-selective-werror was given. 11652if test "${enable_selective_werror+set}" = set; then : 11653 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11654else 11655 SELECTIVE_WERROR=yes 11656fi 11657 11658 11659 11660 11661 11662# -v is too short to test reliably with XORG_TESTSET_CFLAG 11663if test "x$SUNCC" = "xyes"; then 11664 BASE_CFLAGS="-v" 11665else 11666 BASE_CFLAGS="" 11667fi 11668 11669# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683xorg_testset_save_CFLAGS="$CFLAGS" 11684 11685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11690 $as_echo_n "(cached) " >&6 11691else 11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11693/* end confdefs.h. */ 11694int i; 11695_ACEOF 11696if ac_fn_c_try_compile "$LINENO"; then : 11697 xorg_cv_cc_flag_unknown_warning_option=yes 11698else 11699 xorg_cv_cc_flag_unknown_warning_option=no 11700fi 11701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11702fi 11703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11706 CFLAGS="$xorg_testset_save_CFLAGS" 11707fi 11708 11709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11712 fi 11713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11717 $as_echo_n "(cached) " >&6 11718else 11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11720/* end confdefs.h. */ 11721int i; 11722_ACEOF 11723if ac_fn_c_try_compile "$LINENO"; then : 11724 xorg_cv_cc_flag_unused_command_line_argument=yes 11725else 11726 xorg_cv_cc_flag_unused_command_line_argument=no 11727fi 11728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11729fi 11730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11733 CFLAGS="$xorg_testset_save_CFLAGS" 11734fi 11735 11736found="no" 11737 11738 if test $found = "no" ; then 11739 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11741 fi 11742 11743 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11745 fi 11746 11747 CFLAGS="$CFLAGS -Wall" 11748 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11750$as_echo_n "checking if $CC supports -Wall... " >&6; } 11751 cacheid=xorg_cv_cc_flag__Wall 11752 if eval \${$cacheid+:} false; then : 11753 $as_echo_n "(cached) " >&6 11754else 11755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11756/* end confdefs.h. */ 11757int i; 11758int 11759main () 11760{ 11761 11762 ; 11763 return 0; 11764} 11765_ACEOF 11766if ac_fn_c_try_link "$LINENO"; then : 11767 eval $cacheid=yes 11768else 11769 eval $cacheid=no 11770fi 11771rm -f core conftest.err conftest.$ac_objext \ 11772 conftest$ac_exeext conftest.$ac_ext 11773fi 11774 11775 11776 CFLAGS="$xorg_testset_save_CFLAGS" 11777 11778 eval supported=\$$cacheid 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11780$as_echo "$supported" >&6; } 11781 if test "$supported" = "yes" ; then 11782 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11783 found="yes" 11784 fi 11785 fi 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801xorg_testset_save_CFLAGS="$CFLAGS" 11802 11803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11808 $as_echo_n "(cached) " >&6 11809else 11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11811/* end confdefs.h. */ 11812int i; 11813_ACEOF 11814if ac_fn_c_try_compile "$LINENO"; then : 11815 xorg_cv_cc_flag_unknown_warning_option=yes 11816else 11817 xorg_cv_cc_flag_unknown_warning_option=no 11818fi 11819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11820fi 11821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11824 CFLAGS="$xorg_testset_save_CFLAGS" 11825fi 11826 11827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11830 fi 11831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11835 $as_echo_n "(cached) " >&6 11836else 11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11838/* end confdefs.h. */ 11839int i; 11840_ACEOF 11841if ac_fn_c_try_compile "$LINENO"; then : 11842 xorg_cv_cc_flag_unused_command_line_argument=yes 11843else 11844 xorg_cv_cc_flag_unused_command_line_argument=no 11845fi 11846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11847fi 11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11851 CFLAGS="$xorg_testset_save_CFLAGS" 11852fi 11853 11854found="no" 11855 11856 if test $found = "no" ; then 11857 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11859 fi 11860 11861 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11863 fi 11864 11865 CFLAGS="$CFLAGS -Wpointer-arith" 11866 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11868$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11869 cacheid=xorg_cv_cc_flag__Wpointer_arith 11870 if eval \${$cacheid+:} false; then : 11871 $as_echo_n "(cached) " >&6 11872else 11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11874/* end confdefs.h. */ 11875int i; 11876int 11877main () 11878{ 11879 11880 ; 11881 return 0; 11882} 11883_ACEOF 11884if ac_fn_c_try_link "$LINENO"; then : 11885 eval $cacheid=yes 11886else 11887 eval $cacheid=no 11888fi 11889rm -f core conftest.err conftest.$ac_objext \ 11890 conftest$ac_exeext conftest.$ac_ext 11891fi 11892 11893 11894 CFLAGS="$xorg_testset_save_CFLAGS" 11895 11896 eval supported=\$$cacheid 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11898$as_echo "$supported" >&6; } 11899 if test "$supported" = "yes" ; then 11900 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 11901 found="yes" 11902 fi 11903 fi 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919xorg_testset_save_CFLAGS="$CFLAGS" 11920 11921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11926 $as_echo_n "(cached) " >&6 11927else 11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11929/* end confdefs.h. */ 11930int i; 11931_ACEOF 11932if ac_fn_c_try_compile "$LINENO"; then : 11933 xorg_cv_cc_flag_unknown_warning_option=yes 11934else 11935 xorg_cv_cc_flag_unknown_warning_option=no 11936fi 11937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11938fi 11939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11942 CFLAGS="$xorg_testset_save_CFLAGS" 11943fi 11944 11945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11948 fi 11949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11953 $as_echo_n "(cached) " >&6 11954else 11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11956/* end confdefs.h. */ 11957int i; 11958_ACEOF 11959if ac_fn_c_try_compile "$LINENO"; then : 11960 xorg_cv_cc_flag_unused_command_line_argument=yes 11961else 11962 xorg_cv_cc_flag_unused_command_line_argument=no 11963fi 11964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11965fi 11966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11969 CFLAGS="$xorg_testset_save_CFLAGS" 11970fi 11971 11972found="no" 11973 11974 if test $found = "no" ; then 11975 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11977 fi 11978 11979 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11981 fi 11982 11983 CFLAGS="$CFLAGS -Wmissing-declarations" 11984 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 11986$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 11987 cacheid=xorg_cv_cc_flag__Wmissing_declarations 11988 if eval \${$cacheid+:} false; then : 11989 $as_echo_n "(cached) " >&6 11990else 11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11992/* end confdefs.h. */ 11993int i; 11994int 11995main () 11996{ 11997 11998 ; 11999 return 0; 12000} 12001_ACEOF 12002if ac_fn_c_try_link "$LINENO"; then : 12003 eval $cacheid=yes 12004else 12005 eval $cacheid=no 12006fi 12007rm -f core conftest.err conftest.$ac_objext \ 12008 conftest$ac_exeext conftest.$ac_ext 12009fi 12010 12011 12012 CFLAGS="$xorg_testset_save_CFLAGS" 12013 12014 eval supported=\$$cacheid 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12016$as_echo "$supported" >&6; } 12017 if test "$supported" = "yes" ; then 12018 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12019 found="yes" 12020 fi 12021 fi 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037xorg_testset_save_CFLAGS="$CFLAGS" 12038 12039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12044 $as_echo_n "(cached) " >&6 12045else 12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12047/* end confdefs.h. */ 12048int i; 12049_ACEOF 12050if ac_fn_c_try_compile "$LINENO"; then : 12051 xorg_cv_cc_flag_unknown_warning_option=yes 12052else 12053 xorg_cv_cc_flag_unknown_warning_option=no 12054fi 12055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12056fi 12057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12060 CFLAGS="$xorg_testset_save_CFLAGS" 12061fi 12062 12063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12066 fi 12067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12071 $as_echo_n "(cached) " >&6 12072else 12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12074/* end confdefs.h. */ 12075int i; 12076_ACEOF 12077if ac_fn_c_try_compile "$LINENO"; then : 12078 xorg_cv_cc_flag_unused_command_line_argument=yes 12079else 12080 xorg_cv_cc_flag_unused_command_line_argument=no 12081fi 12082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12083fi 12084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12087 CFLAGS="$xorg_testset_save_CFLAGS" 12088fi 12089 12090found="no" 12091 12092 if test $found = "no" ; then 12093 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12095 fi 12096 12097 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12099 fi 12100 12101 CFLAGS="$CFLAGS -Wformat=2" 12102 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12104$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12105 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12106 if eval \${$cacheid+:} false; then : 12107 $as_echo_n "(cached) " >&6 12108else 12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12110/* end confdefs.h. */ 12111int i; 12112int 12113main () 12114{ 12115 12116 ; 12117 return 0; 12118} 12119_ACEOF 12120if ac_fn_c_try_link "$LINENO"; then : 12121 eval $cacheid=yes 12122else 12123 eval $cacheid=no 12124fi 12125rm -f core conftest.err conftest.$ac_objext \ 12126 conftest$ac_exeext conftest.$ac_ext 12127fi 12128 12129 12130 CFLAGS="$xorg_testset_save_CFLAGS" 12131 12132 eval supported=\$$cacheid 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12134$as_echo "$supported" >&6; } 12135 if test "$supported" = "yes" ; then 12136 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12137 found="yes" 12138 fi 12139 fi 12140 12141 if test $found = "no" ; then 12142 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12144 fi 12145 12146 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12148 fi 12149 12150 CFLAGS="$CFLAGS -Wformat" 12151 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12153$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12154 cacheid=xorg_cv_cc_flag__Wformat 12155 if eval \${$cacheid+:} false; then : 12156 $as_echo_n "(cached) " >&6 12157else 12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12159/* end confdefs.h. */ 12160int i; 12161int 12162main () 12163{ 12164 12165 ; 12166 return 0; 12167} 12168_ACEOF 12169if ac_fn_c_try_link "$LINENO"; then : 12170 eval $cacheid=yes 12171else 12172 eval $cacheid=no 12173fi 12174rm -f core conftest.err conftest.$ac_objext \ 12175 conftest$ac_exeext conftest.$ac_ext 12176fi 12177 12178 12179 CFLAGS="$xorg_testset_save_CFLAGS" 12180 12181 eval supported=\$$cacheid 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12183$as_echo "$supported" >&6; } 12184 if test "$supported" = "yes" ; then 12185 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12186 found="yes" 12187 fi 12188 fi 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206xorg_testset_save_CFLAGS="$CFLAGS" 12207 12208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12213 $as_echo_n "(cached) " >&6 12214else 12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12216/* end confdefs.h. */ 12217int i; 12218_ACEOF 12219if ac_fn_c_try_compile "$LINENO"; then : 12220 xorg_cv_cc_flag_unknown_warning_option=yes 12221else 12222 xorg_cv_cc_flag_unknown_warning_option=no 12223fi 12224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12225fi 12226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12229 CFLAGS="$xorg_testset_save_CFLAGS" 12230fi 12231 12232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12235 fi 12236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12240 $as_echo_n "(cached) " >&6 12241else 12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12243/* end confdefs.h. */ 12244int i; 12245_ACEOF 12246if ac_fn_c_try_compile "$LINENO"; then : 12247 xorg_cv_cc_flag_unused_command_line_argument=yes 12248else 12249 xorg_cv_cc_flag_unused_command_line_argument=no 12250fi 12251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12252fi 12253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12256 CFLAGS="$xorg_testset_save_CFLAGS" 12257fi 12258 12259found="no" 12260 12261 if test $found = "no" ; then 12262 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12264 fi 12265 12266 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12268 fi 12269 12270 CFLAGS="$CFLAGS -Wstrict-prototypes" 12271 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12273$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12274 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12275 if eval \${$cacheid+:} false; then : 12276 $as_echo_n "(cached) " >&6 12277else 12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12279/* end confdefs.h. */ 12280int i; 12281int 12282main () 12283{ 12284 12285 ; 12286 return 0; 12287} 12288_ACEOF 12289if ac_fn_c_try_link "$LINENO"; then : 12290 eval $cacheid=yes 12291else 12292 eval $cacheid=no 12293fi 12294rm -f core conftest.err conftest.$ac_objext \ 12295 conftest$ac_exeext conftest.$ac_ext 12296fi 12297 12298 12299 CFLAGS="$xorg_testset_save_CFLAGS" 12300 12301 eval supported=\$$cacheid 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12303$as_echo "$supported" >&6; } 12304 if test "$supported" = "yes" ; then 12305 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12306 found="yes" 12307 fi 12308 fi 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324xorg_testset_save_CFLAGS="$CFLAGS" 12325 12326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12331 $as_echo_n "(cached) " >&6 12332else 12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12334/* end confdefs.h. */ 12335int i; 12336_ACEOF 12337if ac_fn_c_try_compile "$LINENO"; then : 12338 xorg_cv_cc_flag_unknown_warning_option=yes 12339else 12340 xorg_cv_cc_flag_unknown_warning_option=no 12341fi 12342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12343fi 12344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12347 CFLAGS="$xorg_testset_save_CFLAGS" 12348fi 12349 12350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12353 fi 12354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12358 $as_echo_n "(cached) " >&6 12359else 12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12361/* end confdefs.h. */ 12362int i; 12363_ACEOF 12364if ac_fn_c_try_compile "$LINENO"; then : 12365 xorg_cv_cc_flag_unused_command_line_argument=yes 12366else 12367 xorg_cv_cc_flag_unused_command_line_argument=no 12368fi 12369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12370fi 12371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12374 CFLAGS="$xorg_testset_save_CFLAGS" 12375fi 12376 12377found="no" 12378 12379 if test $found = "no" ; then 12380 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12382 fi 12383 12384 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12386 fi 12387 12388 CFLAGS="$CFLAGS -Wmissing-prototypes" 12389 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12391$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12392 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12393 if eval \${$cacheid+:} false; then : 12394 $as_echo_n "(cached) " >&6 12395else 12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12397/* end confdefs.h. */ 12398int i; 12399int 12400main () 12401{ 12402 12403 ; 12404 return 0; 12405} 12406_ACEOF 12407if ac_fn_c_try_link "$LINENO"; then : 12408 eval $cacheid=yes 12409else 12410 eval $cacheid=no 12411fi 12412rm -f core conftest.err conftest.$ac_objext \ 12413 conftest$ac_exeext conftest.$ac_ext 12414fi 12415 12416 12417 CFLAGS="$xorg_testset_save_CFLAGS" 12418 12419 eval supported=\$$cacheid 12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12421$as_echo "$supported" >&6; } 12422 if test "$supported" = "yes" ; then 12423 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12424 found="yes" 12425 fi 12426 fi 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442xorg_testset_save_CFLAGS="$CFLAGS" 12443 12444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12449 $as_echo_n "(cached) " >&6 12450else 12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12452/* end confdefs.h. */ 12453int i; 12454_ACEOF 12455if ac_fn_c_try_compile "$LINENO"; then : 12456 xorg_cv_cc_flag_unknown_warning_option=yes 12457else 12458 xorg_cv_cc_flag_unknown_warning_option=no 12459fi 12460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12461fi 12462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12465 CFLAGS="$xorg_testset_save_CFLAGS" 12466fi 12467 12468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12471 fi 12472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12476 $as_echo_n "(cached) " >&6 12477else 12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12479/* end confdefs.h. */ 12480int i; 12481_ACEOF 12482if ac_fn_c_try_compile "$LINENO"; then : 12483 xorg_cv_cc_flag_unused_command_line_argument=yes 12484else 12485 xorg_cv_cc_flag_unused_command_line_argument=no 12486fi 12487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12488fi 12489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12492 CFLAGS="$xorg_testset_save_CFLAGS" 12493fi 12494 12495found="no" 12496 12497 if test $found = "no" ; then 12498 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12500 fi 12501 12502 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12504 fi 12505 12506 CFLAGS="$CFLAGS -Wnested-externs" 12507 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12509$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12510 cacheid=xorg_cv_cc_flag__Wnested_externs 12511 if eval \${$cacheid+:} false; then : 12512 $as_echo_n "(cached) " >&6 12513else 12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12515/* end confdefs.h. */ 12516int i; 12517int 12518main () 12519{ 12520 12521 ; 12522 return 0; 12523} 12524_ACEOF 12525if ac_fn_c_try_link "$LINENO"; then : 12526 eval $cacheid=yes 12527else 12528 eval $cacheid=no 12529fi 12530rm -f core conftest.err conftest.$ac_objext \ 12531 conftest$ac_exeext conftest.$ac_ext 12532fi 12533 12534 12535 CFLAGS="$xorg_testset_save_CFLAGS" 12536 12537 eval supported=\$$cacheid 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12539$as_echo "$supported" >&6; } 12540 if test "$supported" = "yes" ; then 12541 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12542 found="yes" 12543 fi 12544 fi 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560xorg_testset_save_CFLAGS="$CFLAGS" 12561 12562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12567 $as_echo_n "(cached) " >&6 12568else 12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12570/* end confdefs.h. */ 12571int i; 12572_ACEOF 12573if ac_fn_c_try_compile "$LINENO"; then : 12574 xorg_cv_cc_flag_unknown_warning_option=yes 12575else 12576 xorg_cv_cc_flag_unknown_warning_option=no 12577fi 12578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12579fi 12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12583 CFLAGS="$xorg_testset_save_CFLAGS" 12584fi 12585 12586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12589 fi 12590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12594 $as_echo_n "(cached) " >&6 12595else 12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12597/* end confdefs.h. */ 12598int i; 12599_ACEOF 12600if ac_fn_c_try_compile "$LINENO"; then : 12601 xorg_cv_cc_flag_unused_command_line_argument=yes 12602else 12603 xorg_cv_cc_flag_unused_command_line_argument=no 12604fi 12605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12606fi 12607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12610 CFLAGS="$xorg_testset_save_CFLAGS" 12611fi 12612 12613found="no" 12614 12615 if test $found = "no" ; then 12616 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12618 fi 12619 12620 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12622 fi 12623 12624 CFLAGS="$CFLAGS -Wbad-function-cast" 12625 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12627$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12628 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12629 if eval \${$cacheid+:} false; then : 12630 $as_echo_n "(cached) " >&6 12631else 12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12633/* end confdefs.h. */ 12634int i; 12635int 12636main () 12637{ 12638 12639 ; 12640 return 0; 12641} 12642_ACEOF 12643if ac_fn_c_try_link "$LINENO"; then : 12644 eval $cacheid=yes 12645else 12646 eval $cacheid=no 12647fi 12648rm -f core conftest.err conftest.$ac_objext \ 12649 conftest$ac_exeext conftest.$ac_ext 12650fi 12651 12652 12653 CFLAGS="$xorg_testset_save_CFLAGS" 12654 12655 eval supported=\$$cacheid 12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12657$as_echo "$supported" >&6; } 12658 if test "$supported" = "yes" ; then 12659 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12660 found="yes" 12661 fi 12662 fi 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678xorg_testset_save_CFLAGS="$CFLAGS" 12679 12680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12685 $as_echo_n "(cached) " >&6 12686else 12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12688/* end confdefs.h. */ 12689int i; 12690_ACEOF 12691if ac_fn_c_try_compile "$LINENO"; then : 12692 xorg_cv_cc_flag_unknown_warning_option=yes 12693else 12694 xorg_cv_cc_flag_unknown_warning_option=no 12695fi 12696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12697fi 12698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12701 CFLAGS="$xorg_testset_save_CFLAGS" 12702fi 12703 12704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12707 fi 12708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12712 $as_echo_n "(cached) " >&6 12713else 12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12715/* end confdefs.h. */ 12716int i; 12717_ACEOF 12718if ac_fn_c_try_compile "$LINENO"; then : 12719 xorg_cv_cc_flag_unused_command_line_argument=yes 12720else 12721 xorg_cv_cc_flag_unused_command_line_argument=no 12722fi 12723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12724fi 12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12728 CFLAGS="$xorg_testset_save_CFLAGS" 12729fi 12730 12731found="no" 12732 12733 if test $found = "no" ; then 12734 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12736 fi 12737 12738 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12740 fi 12741 12742 CFLAGS="$CFLAGS -Wold-style-definition" 12743 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12745$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12746 cacheid=xorg_cv_cc_flag__Wold_style_definition 12747 if eval \${$cacheid+:} false; then : 12748 $as_echo_n "(cached) " >&6 12749else 12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12751/* end confdefs.h. */ 12752int i; 12753int 12754main () 12755{ 12756 12757 ; 12758 return 0; 12759} 12760_ACEOF 12761if ac_fn_c_try_link "$LINENO"; then : 12762 eval $cacheid=yes 12763else 12764 eval $cacheid=no 12765fi 12766rm -f core conftest.err conftest.$ac_objext \ 12767 conftest$ac_exeext conftest.$ac_ext 12768fi 12769 12770 12771 CFLAGS="$xorg_testset_save_CFLAGS" 12772 12773 eval supported=\$$cacheid 12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12775$as_echo "$supported" >&6; } 12776 if test "$supported" = "yes" ; then 12777 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12778 found="yes" 12779 fi 12780 fi 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796xorg_testset_save_CFLAGS="$CFLAGS" 12797 12798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12803 $as_echo_n "(cached) " >&6 12804else 12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12806/* end confdefs.h. */ 12807int i; 12808_ACEOF 12809if ac_fn_c_try_compile "$LINENO"; then : 12810 xorg_cv_cc_flag_unknown_warning_option=yes 12811else 12812 xorg_cv_cc_flag_unknown_warning_option=no 12813fi 12814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12815fi 12816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12819 CFLAGS="$xorg_testset_save_CFLAGS" 12820fi 12821 12822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12825 fi 12826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12830 $as_echo_n "(cached) " >&6 12831else 12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12833/* end confdefs.h. */ 12834int i; 12835_ACEOF 12836if ac_fn_c_try_compile "$LINENO"; then : 12837 xorg_cv_cc_flag_unused_command_line_argument=yes 12838else 12839 xorg_cv_cc_flag_unused_command_line_argument=no 12840fi 12841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12842fi 12843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12846 CFLAGS="$xorg_testset_save_CFLAGS" 12847fi 12848 12849found="no" 12850 12851 if test $found = "no" ; then 12852 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12854 fi 12855 12856 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12858 fi 12859 12860 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12861 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12863$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12864 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 12865 if eval \${$cacheid+:} false; then : 12866 $as_echo_n "(cached) " >&6 12867else 12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12869/* end confdefs.h. */ 12870int i; 12871int 12872main () 12873{ 12874 12875 ; 12876 return 0; 12877} 12878_ACEOF 12879if ac_fn_c_try_link "$LINENO"; then : 12880 eval $cacheid=yes 12881else 12882 eval $cacheid=no 12883fi 12884rm -f core conftest.err conftest.$ac_objext \ 12885 conftest$ac_exeext conftest.$ac_ext 12886fi 12887 12888 12889 CFLAGS="$xorg_testset_save_CFLAGS" 12890 12891 eval supported=\$$cacheid 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12893$as_echo "$supported" >&6; } 12894 if test "$supported" = "yes" ; then 12895 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 12896 found="yes" 12897 fi 12898 fi 12899 12900 12901 12902 12903 12904# This chunk adds additional warnings that could catch undesired effects. 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918xorg_testset_save_CFLAGS="$CFLAGS" 12919 12920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12923$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12924if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12925 $as_echo_n "(cached) " >&6 12926else 12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12928/* end confdefs.h. */ 12929int i; 12930_ACEOF 12931if ac_fn_c_try_compile "$LINENO"; then : 12932 xorg_cv_cc_flag_unknown_warning_option=yes 12933else 12934 xorg_cv_cc_flag_unknown_warning_option=no 12935fi 12936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12937fi 12938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12939$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12941 CFLAGS="$xorg_testset_save_CFLAGS" 12942fi 12943 12944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12947 fi 12948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12950$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12951if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12952 $as_echo_n "(cached) " >&6 12953else 12954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12955/* end confdefs.h. */ 12956int i; 12957_ACEOF 12958if ac_fn_c_try_compile "$LINENO"; then : 12959 xorg_cv_cc_flag_unused_command_line_argument=yes 12960else 12961 xorg_cv_cc_flag_unused_command_line_argument=no 12962fi 12963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12964fi 12965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12966$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12968 CFLAGS="$xorg_testset_save_CFLAGS" 12969fi 12970 12971found="no" 12972 12973 if test $found = "no" ; then 12974 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12976 fi 12977 12978 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12980 fi 12981 12982 CFLAGS="$CFLAGS -Wunused" 12983 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 12985$as_echo_n "checking if $CC supports -Wunused... " >&6; } 12986 cacheid=xorg_cv_cc_flag__Wunused 12987 if eval \${$cacheid+:} false; then : 12988 $as_echo_n "(cached) " >&6 12989else 12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12991/* end confdefs.h. */ 12992int i; 12993int 12994main () 12995{ 12996 12997 ; 12998 return 0; 12999} 13000_ACEOF 13001if ac_fn_c_try_link "$LINENO"; then : 13002 eval $cacheid=yes 13003else 13004 eval $cacheid=no 13005fi 13006rm -f core conftest.err conftest.$ac_objext \ 13007 conftest$ac_exeext conftest.$ac_ext 13008fi 13009 13010 13011 CFLAGS="$xorg_testset_save_CFLAGS" 13012 13013 eval supported=\$$cacheid 13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13015$as_echo "$supported" >&6; } 13016 if test "$supported" = "yes" ; then 13017 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13018 found="yes" 13019 fi 13020 fi 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036xorg_testset_save_CFLAGS="$CFLAGS" 13037 13038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13041$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13042if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13043 $as_echo_n "(cached) " >&6 13044else 13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13046/* end confdefs.h. */ 13047int i; 13048_ACEOF 13049if ac_fn_c_try_compile "$LINENO"; then : 13050 xorg_cv_cc_flag_unknown_warning_option=yes 13051else 13052 xorg_cv_cc_flag_unknown_warning_option=no 13053fi 13054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13055fi 13056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13057$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13059 CFLAGS="$xorg_testset_save_CFLAGS" 13060fi 13061 13062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13065 fi 13066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13068$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13069if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13070 $as_echo_n "(cached) " >&6 13071else 13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13073/* end confdefs.h. */ 13074int i; 13075_ACEOF 13076if ac_fn_c_try_compile "$LINENO"; then : 13077 xorg_cv_cc_flag_unused_command_line_argument=yes 13078else 13079 xorg_cv_cc_flag_unused_command_line_argument=no 13080fi 13081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13082fi 13083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13084$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13086 CFLAGS="$xorg_testset_save_CFLAGS" 13087fi 13088 13089found="no" 13090 13091 if test $found = "no" ; then 13092 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13094 fi 13095 13096 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13098 fi 13099 13100 CFLAGS="$CFLAGS -Wuninitialized" 13101 13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13103$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13104 cacheid=xorg_cv_cc_flag__Wuninitialized 13105 if eval \${$cacheid+:} false; then : 13106 $as_echo_n "(cached) " >&6 13107else 13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13109/* end confdefs.h. */ 13110int i; 13111int 13112main () 13113{ 13114 13115 ; 13116 return 0; 13117} 13118_ACEOF 13119if ac_fn_c_try_link "$LINENO"; then : 13120 eval $cacheid=yes 13121else 13122 eval $cacheid=no 13123fi 13124rm -f core conftest.err conftest.$ac_objext \ 13125 conftest$ac_exeext conftest.$ac_ext 13126fi 13127 13128 13129 CFLAGS="$xorg_testset_save_CFLAGS" 13130 13131 eval supported=\$$cacheid 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13133$as_echo "$supported" >&6; } 13134 if test "$supported" = "yes" ; then 13135 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13136 found="yes" 13137 fi 13138 fi 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154xorg_testset_save_CFLAGS="$CFLAGS" 13155 13156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13161 $as_echo_n "(cached) " >&6 13162else 13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13164/* end confdefs.h. */ 13165int i; 13166_ACEOF 13167if ac_fn_c_try_compile "$LINENO"; then : 13168 xorg_cv_cc_flag_unknown_warning_option=yes 13169else 13170 xorg_cv_cc_flag_unknown_warning_option=no 13171fi 13172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13173fi 13174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13177 CFLAGS="$xorg_testset_save_CFLAGS" 13178fi 13179 13180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13183 fi 13184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13188 $as_echo_n "(cached) " >&6 13189else 13190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13191/* end confdefs.h. */ 13192int i; 13193_ACEOF 13194if ac_fn_c_try_compile "$LINENO"; then : 13195 xorg_cv_cc_flag_unused_command_line_argument=yes 13196else 13197 xorg_cv_cc_flag_unused_command_line_argument=no 13198fi 13199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13200fi 13201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13204 CFLAGS="$xorg_testset_save_CFLAGS" 13205fi 13206 13207found="no" 13208 13209 if test $found = "no" ; then 13210 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13212 fi 13213 13214 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13216 fi 13217 13218 CFLAGS="$CFLAGS -Wshadow" 13219 13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13221$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13222 cacheid=xorg_cv_cc_flag__Wshadow 13223 if eval \${$cacheid+:} false; then : 13224 $as_echo_n "(cached) " >&6 13225else 13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13227/* end confdefs.h. */ 13228int i; 13229int 13230main () 13231{ 13232 13233 ; 13234 return 0; 13235} 13236_ACEOF 13237if ac_fn_c_try_link "$LINENO"; then : 13238 eval $cacheid=yes 13239else 13240 eval $cacheid=no 13241fi 13242rm -f core conftest.err conftest.$ac_objext \ 13243 conftest$ac_exeext conftest.$ac_ext 13244fi 13245 13246 13247 CFLAGS="$xorg_testset_save_CFLAGS" 13248 13249 eval supported=\$$cacheid 13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13251$as_echo "$supported" >&6; } 13252 if test "$supported" = "yes" ; then 13253 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13254 found="yes" 13255 fi 13256 fi 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272xorg_testset_save_CFLAGS="$CFLAGS" 13273 13274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13277$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13278if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13279 $as_echo_n "(cached) " >&6 13280else 13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13282/* end confdefs.h. */ 13283int i; 13284_ACEOF 13285if ac_fn_c_try_compile "$LINENO"; then : 13286 xorg_cv_cc_flag_unknown_warning_option=yes 13287else 13288 xorg_cv_cc_flag_unknown_warning_option=no 13289fi 13290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13291fi 13292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13293$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13295 CFLAGS="$xorg_testset_save_CFLAGS" 13296fi 13297 13298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13301 fi 13302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13304$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13305if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13306 $as_echo_n "(cached) " >&6 13307else 13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13309/* end confdefs.h. */ 13310int i; 13311_ACEOF 13312if ac_fn_c_try_compile "$LINENO"; then : 13313 xorg_cv_cc_flag_unused_command_line_argument=yes 13314else 13315 xorg_cv_cc_flag_unused_command_line_argument=no 13316fi 13317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13318fi 13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13320$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13322 CFLAGS="$xorg_testset_save_CFLAGS" 13323fi 13324 13325found="no" 13326 13327 if test $found = "no" ; then 13328 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13330 fi 13331 13332 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13334 fi 13335 13336 CFLAGS="$CFLAGS -Wcast-qual" 13337 13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13339$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13340 cacheid=xorg_cv_cc_flag__Wcast_qual 13341 if eval \${$cacheid+:} false; then : 13342 $as_echo_n "(cached) " >&6 13343else 13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13345/* end confdefs.h. */ 13346int i; 13347int 13348main () 13349{ 13350 13351 ; 13352 return 0; 13353} 13354_ACEOF 13355if ac_fn_c_try_link "$LINENO"; then : 13356 eval $cacheid=yes 13357else 13358 eval $cacheid=no 13359fi 13360rm -f core conftest.err conftest.$ac_objext \ 13361 conftest$ac_exeext conftest.$ac_ext 13362fi 13363 13364 13365 CFLAGS="$xorg_testset_save_CFLAGS" 13366 13367 eval supported=\$$cacheid 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13369$as_echo "$supported" >&6; } 13370 if test "$supported" = "yes" ; then 13371 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13372 found="yes" 13373 fi 13374 fi 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390xorg_testset_save_CFLAGS="$CFLAGS" 13391 13392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13395$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13396if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13397 $as_echo_n "(cached) " >&6 13398else 13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13400/* end confdefs.h. */ 13401int i; 13402_ACEOF 13403if ac_fn_c_try_compile "$LINENO"; then : 13404 xorg_cv_cc_flag_unknown_warning_option=yes 13405else 13406 xorg_cv_cc_flag_unknown_warning_option=no 13407fi 13408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13409fi 13410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13411$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13413 CFLAGS="$xorg_testset_save_CFLAGS" 13414fi 13415 13416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13419 fi 13420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13422$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13423if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13424 $as_echo_n "(cached) " >&6 13425else 13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13427/* end confdefs.h. */ 13428int i; 13429_ACEOF 13430if ac_fn_c_try_compile "$LINENO"; then : 13431 xorg_cv_cc_flag_unused_command_line_argument=yes 13432else 13433 xorg_cv_cc_flag_unused_command_line_argument=no 13434fi 13435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13436fi 13437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13438$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13440 CFLAGS="$xorg_testset_save_CFLAGS" 13441fi 13442 13443found="no" 13444 13445 if test $found = "no" ; then 13446 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13448 fi 13449 13450 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13452 fi 13453 13454 CFLAGS="$CFLAGS -Wmissing-noreturn" 13455 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13457$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13458 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13459 if eval \${$cacheid+:} false; then : 13460 $as_echo_n "(cached) " >&6 13461else 13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13463/* end confdefs.h. */ 13464int i; 13465int 13466main () 13467{ 13468 13469 ; 13470 return 0; 13471} 13472_ACEOF 13473if ac_fn_c_try_link "$LINENO"; then : 13474 eval $cacheid=yes 13475else 13476 eval $cacheid=no 13477fi 13478rm -f core conftest.err conftest.$ac_objext \ 13479 conftest$ac_exeext conftest.$ac_ext 13480fi 13481 13482 13483 CFLAGS="$xorg_testset_save_CFLAGS" 13484 13485 eval supported=\$$cacheid 13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13487$as_echo "$supported" >&6; } 13488 if test "$supported" = "yes" ; then 13489 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13490 found="yes" 13491 fi 13492 fi 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508xorg_testset_save_CFLAGS="$CFLAGS" 13509 13510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13513$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13514if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13515 $as_echo_n "(cached) " >&6 13516else 13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13518/* end confdefs.h. */ 13519int i; 13520_ACEOF 13521if ac_fn_c_try_compile "$LINENO"; then : 13522 xorg_cv_cc_flag_unknown_warning_option=yes 13523else 13524 xorg_cv_cc_flag_unknown_warning_option=no 13525fi 13526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13527fi 13528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13529$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13531 CFLAGS="$xorg_testset_save_CFLAGS" 13532fi 13533 13534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13537 fi 13538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13540$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13541if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13542 $as_echo_n "(cached) " >&6 13543else 13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13545/* end confdefs.h. */ 13546int i; 13547_ACEOF 13548if ac_fn_c_try_compile "$LINENO"; then : 13549 xorg_cv_cc_flag_unused_command_line_argument=yes 13550else 13551 xorg_cv_cc_flag_unused_command_line_argument=no 13552fi 13553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13554fi 13555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13556$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13558 CFLAGS="$xorg_testset_save_CFLAGS" 13559fi 13560 13561found="no" 13562 13563 if test $found = "no" ; then 13564 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13566 fi 13567 13568 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13570 fi 13571 13572 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13573 13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13575$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13576 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13577 if eval \${$cacheid+:} false; then : 13578 $as_echo_n "(cached) " >&6 13579else 13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13581/* end confdefs.h. */ 13582int i; 13583int 13584main () 13585{ 13586 13587 ; 13588 return 0; 13589} 13590_ACEOF 13591if ac_fn_c_try_link "$LINENO"; then : 13592 eval $cacheid=yes 13593else 13594 eval $cacheid=no 13595fi 13596rm -f core conftest.err conftest.$ac_objext \ 13597 conftest$ac_exeext conftest.$ac_ext 13598fi 13599 13600 13601 CFLAGS="$xorg_testset_save_CFLAGS" 13602 13603 eval supported=\$$cacheid 13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13605$as_echo "$supported" >&6; } 13606 if test "$supported" = "yes" ; then 13607 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13608 found="yes" 13609 fi 13610 fi 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626xorg_testset_save_CFLAGS="$CFLAGS" 13627 13628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13631$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13632if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13633 $as_echo_n "(cached) " >&6 13634else 13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13636/* end confdefs.h. */ 13637int i; 13638_ACEOF 13639if ac_fn_c_try_compile "$LINENO"; then : 13640 xorg_cv_cc_flag_unknown_warning_option=yes 13641else 13642 xorg_cv_cc_flag_unknown_warning_option=no 13643fi 13644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13645fi 13646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13647$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13649 CFLAGS="$xorg_testset_save_CFLAGS" 13650fi 13651 13652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13655 fi 13656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13658$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13659if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13660 $as_echo_n "(cached) " >&6 13661else 13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13663/* end confdefs.h. */ 13664int i; 13665_ACEOF 13666if ac_fn_c_try_compile "$LINENO"; then : 13667 xorg_cv_cc_flag_unused_command_line_argument=yes 13668else 13669 xorg_cv_cc_flag_unused_command_line_argument=no 13670fi 13671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13672fi 13673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13674$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13676 CFLAGS="$xorg_testset_save_CFLAGS" 13677fi 13678 13679found="no" 13680 13681 if test $found = "no" ; then 13682 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13684 fi 13685 13686 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13688 fi 13689 13690 CFLAGS="$CFLAGS -Wredundant-decls" 13691 13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13693$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13694 cacheid=xorg_cv_cc_flag__Wredundant_decls 13695 if eval \${$cacheid+:} false; then : 13696 $as_echo_n "(cached) " >&6 13697else 13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13699/* end confdefs.h. */ 13700int i; 13701int 13702main () 13703{ 13704 13705 ; 13706 return 0; 13707} 13708_ACEOF 13709if ac_fn_c_try_link "$LINENO"; then : 13710 eval $cacheid=yes 13711else 13712 eval $cacheid=no 13713fi 13714rm -f core conftest.err conftest.$ac_objext \ 13715 conftest$ac_exeext conftest.$ac_ext 13716fi 13717 13718 13719 CFLAGS="$xorg_testset_save_CFLAGS" 13720 13721 eval supported=\$$cacheid 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13723$as_echo "$supported" >&6; } 13724 if test "$supported" = "yes" ; then 13725 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13726 found="yes" 13727 fi 13728 fi 13729 13730 13731 13732# These are currently disabled because they are noisy. They will be enabled 13733# in the future once the codebase is sufficiently modernized to silence 13734# them. For now, I don't want them to drown out the other warnings. 13735# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13736# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13737# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13738 13739# Turn some warnings into errors, so we don't accidently get successful builds 13740# when there are problems that should be fixed. 13741 13742if test "x$SELECTIVE_WERROR" = "xyes" ; then 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756xorg_testset_save_CFLAGS="$CFLAGS" 13757 13758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13763 $as_echo_n "(cached) " >&6 13764else 13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13766/* end confdefs.h. */ 13767int i; 13768_ACEOF 13769if ac_fn_c_try_compile "$LINENO"; then : 13770 xorg_cv_cc_flag_unknown_warning_option=yes 13771else 13772 xorg_cv_cc_flag_unknown_warning_option=no 13773fi 13774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13775fi 13776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13779 CFLAGS="$xorg_testset_save_CFLAGS" 13780fi 13781 13782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13785 fi 13786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13790 $as_echo_n "(cached) " >&6 13791else 13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13793/* end confdefs.h. */ 13794int i; 13795_ACEOF 13796if ac_fn_c_try_compile "$LINENO"; then : 13797 xorg_cv_cc_flag_unused_command_line_argument=yes 13798else 13799 xorg_cv_cc_flag_unused_command_line_argument=no 13800fi 13801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13802fi 13803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13806 CFLAGS="$xorg_testset_save_CFLAGS" 13807fi 13808 13809found="no" 13810 13811 if test $found = "no" ; then 13812 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13814 fi 13815 13816 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13818 fi 13819 13820 CFLAGS="$CFLAGS -Werror=implicit" 13821 13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13823$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13824 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 13825 if eval \${$cacheid+:} false; then : 13826 $as_echo_n "(cached) " >&6 13827else 13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13829/* end confdefs.h. */ 13830int i; 13831int 13832main () 13833{ 13834 13835 ; 13836 return 0; 13837} 13838_ACEOF 13839if ac_fn_c_try_link "$LINENO"; then : 13840 eval $cacheid=yes 13841else 13842 eval $cacheid=no 13843fi 13844rm -f core conftest.err conftest.$ac_objext \ 13845 conftest$ac_exeext conftest.$ac_ext 13846fi 13847 13848 13849 CFLAGS="$xorg_testset_save_CFLAGS" 13850 13851 eval supported=\$$cacheid 13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13853$as_echo "$supported" >&6; } 13854 if test "$supported" = "yes" ; then 13855 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13856 found="yes" 13857 fi 13858 fi 13859 13860 if test $found = "no" ; then 13861 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13863 fi 13864 13865 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13867 fi 13868 13869 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13870 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13872$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13873 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 13874 if eval \${$cacheid+:} false; then : 13875 $as_echo_n "(cached) " >&6 13876else 13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13878/* end confdefs.h. */ 13879int i; 13880int 13881main () 13882{ 13883 13884 ; 13885 return 0; 13886} 13887_ACEOF 13888if ac_fn_c_try_link "$LINENO"; then : 13889 eval $cacheid=yes 13890else 13891 eval $cacheid=no 13892fi 13893rm -f core conftest.err conftest.$ac_objext \ 13894 conftest$ac_exeext conftest.$ac_ext 13895fi 13896 13897 13898 CFLAGS="$xorg_testset_save_CFLAGS" 13899 13900 eval supported=\$$cacheid 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13902$as_echo "$supported" >&6; } 13903 if test "$supported" = "yes" ; then 13904 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13905 found="yes" 13906 fi 13907 fi 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923xorg_testset_save_CFLAGS="$CFLAGS" 13924 13925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13930 $as_echo_n "(cached) " >&6 13931else 13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13933/* end confdefs.h. */ 13934int i; 13935_ACEOF 13936if ac_fn_c_try_compile "$LINENO"; then : 13937 xorg_cv_cc_flag_unknown_warning_option=yes 13938else 13939 xorg_cv_cc_flag_unknown_warning_option=no 13940fi 13941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13942fi 13943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13946 CFLAGS="$xorg_testset_save_CFLAGS" 13947fi 13948 13949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13952 fi 13953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13957 $as_echo_n "(cached) " >&6 13958else 13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13960/* end confdefs.h. */ 13961int i; 13962_ACEOF 13963if ac_fn_c_try_compile "$LINENO"; then : 13964 xorg_cv_cc_flag_unused_command_line_argument=yes 13965else 13966 xorg_cv_cc_flag_unused_command_line_argument=no 13967fi 13968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13969fi 13970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13973 CFLAGS="$xorg_testset_save_CFLAGS" 13974fi 13975 13976found="no" 13977 13978 if test $found = "no" ; then 13979 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13981 fi 13982 13983 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13985 fi 13986 13987 CFLAGS="$CFLAGS -Werror=nonnull" 13988 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 13990$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 13991 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 13992 if eval \${$cacheid+:} false; then : 13993 $as_echo_n "(cached) " >&6 13994else 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13996/* end confdefs.h. */ 13997int i; 13998int 13999main () 14000{ 14001 14002 ; 14003 return 0; 14004} 14005_ACEOF 14006if ac_fn_c_try_link "$LINENO"; then : 14007 eval $cacheid=yes 14008else 14009 eval $cacheid=no 14010fi 14011rm -f core conftest.err conftest.$ac_objext \ 14012 conftest$ac_exeext conftest.$ac_ext 14013fi 14014 14015 14016 CFLAGS="$xorg_testset_save_CFLAGS" 14017 14018 eval supported=\$$cacheid 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14020$as_echo "$supported" >&6; } 14021 if test "$supported" = "yes" ; then 14022 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14023 found="yes" 14024 fi 14025 fi 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041xorg_testset_save_CFLAGS="$CFLAGS" 14042 14043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14048 $as_echo_n "(cached) " >&6 14049else 14050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14051/* end confdefs.h. */ 14052int i; 14053_ACEOF 14054if ac_fn_c_try_compile "$LINENO"; then : 14055 xorg_cv_cc_flag_unknown_warning_option=yes 14056else 14057 xorg_cv_cc_flag_unknown_warning_option=no 14058fi 14059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14060fi 14061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14064 CFLAGS="$xorg_testset_save_CFLAGS" 14065fi 14066 14067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14070 fi 14071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14075 $as_echo_n "(cached) " >&6 14076else 14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14078/* end confdefs.h. */ 14079int i; 14080_ACEOF 14081if ac_fn_c_try_compile "$LINENO"; then : 14082 xorg_cv_cc_flag_unused_command_line_argument=yes 14083else 14084 xorg_cv_cc_flag_unused_command_line_argument=no 14085fi 14086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14087fi 14088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14091 CFLAGS="$xorg_testset_save_CFLAGS" 14092fi 14093 14094found="no" 14095 14096 if test $found = "no" ; then 14097 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14099 fi 14100 14101 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14103 fi 14104 14105 CFLAGS="$CFLAGS -Werror=init-self" 14106 14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14108$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14109 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14110 if eval \${$cacheid+:} false; then : 14111 $as_echo_n "(cached) " >&6 14112else 14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14114/* end confdefs.h. */ 14115int i; 14116int 14117main () 14118{ 14119 14120 ; 14121 return 0; 14122} 14123_ACEOF 14124if ac_fn_c_try_link "$LINENO"; then : 14125 eval $cacheid=yes 14126else 14127 eval $cacheid=no 14128fi 14129rm -f core conftest.err conftest.$ac_objext \ 14130 conftest$ac_exeext conftest.$ac_ext 14131fi 14132 14133 14134 CFLAGS="$xorg_testset_save_CFLAGS" 14135 14136 eval supported=\$$cacheid 14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14138$as_echo "$supported" >&6; } 14139 if test "$supported" = "yes" ; then 14140 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14141 found="yes" 14142 fi 14143 fi 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159xorg_testset_save_CFLAGS="$CFLAGS" 14160 14161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14166 $as_echo_n "(cached) " >&6 14167else 14168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14169/* end confdefs.h. */ 14170int i; 14171_ACEOF 14172if ac_fn_c_try_compile "$LINENO"; then : 14173 xorg_cv_cc_flag_unknown_warning_option=yes 14174else 14175 xorg_cv_cc_flag_unknown_warning_option=no 14176fi 14177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14178fi 14179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14182 CFLAGS="$xorg_testset_save_CFLAGS" 14183fi 14184 14185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14188 fi 14189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14193 $as_echo_n "(cached) " >&6 14194else 14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14196/* end confdefs.h. */ 14197int i; 14198_ACEOF 14199if ac_fn_c_try_compile "$LINENO"; then : 14200 xorg_cv_cc_flag_unused_command_line_argument=yes 14201else 14202 xorg_cv_cc_flag_unused_command_line_argument=no 14203fi 14204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14205fi 14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14209 CFLAGS="$xorg_testset_save_CFLAGS" 14210fi 14211 14212found="no" 14213 14214 if test $found = "no" ; then 14215 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14217 fi 14218 14219 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14221 fi 14222 14223 CFLAGS="$CFLAGS -Werror=main" 14224 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14226$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14227 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14228 if eval \${$cacheid+:} false; then : 14229 $as_echo_n "(cached) " >&6 14230else 14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14232/* end confdefs.h. */ 14233int i; 14234int 14235main () 14236{ 14237 14238 ; 14239 return 0; 14240} 14241_ACEOF 14242if ac_fn_c_try_link "$LINENO"; then : 14243 eval $cacheid=yes 14244else 14245 eval $cacheid=no 14246fi 14247rm -f core conftest.err conftest.$ac_objext \ 14248 conftest$ac_exeext conftest.$ac_ext 14249fi 14250 14251 14252 CFLAGS="$xorg_testset_save_CFLAGS" 14253 14254 eval supported=\$$cacheid 14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14256$as_echo "$supported" >&6; } 14257 if test "$supported" = "yes" ; then 14258 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14259 found="yes" 14260 fi 14261 fi 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277xorg_testset_save_CFLAGS="$CFLAGS" 14278 14279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14284 $as_echo_n "(cached) " >&6 14285else 14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14287/* end confdefs.h. */ 14288int i; 14289_ACEOF 14290if ac_fn_c_try_compile "$LINENO"; then : 14291 xorg_cv_cc_flag_unknown_warning_option=yes 14292else 14293 xorg_cv_cc_flag_unknown_warning_option=no 14294fi 14295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14296fi 14297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14300 CFLAGS="$xorg_testset_save_CFLAGS" 14301fi 14302 14303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14306 fi 14307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14311 $as_echo_n "(cached) " >&6 14312else 14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14314/* end confdefs.h. */ 14315int i; 14316_ACEOF 14317if ac_fn_c_try_compile "$LINENO"; then : 14318 xorg_cv_cc_flag_unused_command_line_argument=yes 14319else 14320 xorg_cv_cc_flag_unused_command_line_argument=no 14321fi 14322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14323fi 14324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14327 CFLAGS="$xorg_testset_save_CFLAGS" 14328fi 14329 14330found="no" 14331 14332 if test $found = "no" ; then 14333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14335 fi 14336 14337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14339 fi 14340 14341 CFLAGS="$CFLAGS -Werror=missing-braces" 14342 14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14344$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14345 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14346 if eval \${$cacheid+:} false; then : 14347 $as_echo_n "(cached) " >&6 14348else 14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14350/* end confdefs.h. */ 14351int i; 14352int 14353main () 14354{ 14355 14356 ; 14357 return 0; 14358} 14359_ACEOF 14360if ac_fn_c_try_link "$LINENO"; then : 14361 eval $cacheid=yes 14362else 14363 eval $cacheid=no 14364fi 14365rm -f core conftest.err conftest.$ac_objext \ 14366 conftest$ac_exeext conftest.$ac_ext 14367fi 14368 14369 14370 CFLAGS="$xorg_testset_save_CFLAGS" 14371 14372 eval supported=\$$cacheid 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14374$as_echo "$supported" >&6; } 14375 if test "$supported" = "yes" ; then 14376 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14377 found="yes" 14378 fi 14379 fi 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395xorg_testset_save_CFLAGS="$CFLAGS" 14396 14397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14402 $as_echo_n "(cached) " >&6 14403else 14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14405/* end confdefs.h. */ 14406int i; 14407_ACEOF 14408if ac_fn_c_try_compile "$LINENO"; then : 14409 xorg_cv_cc_flag_unknown_warning_option=yes 14410else 14411 xorg_cv_cc_flag_unknown_warning_option=no 14412fi 14413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14414fi 14415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14418 CFLAGS="$xorg_testset_save_CFLAGS" 14419fi 14420 14421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14424 fi 14425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14429 $as_echo_n "(cached) " >&6 14430else 14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14432/* end confdefs.h. */ 14433int i; 14434_ACEOF 14435if ac_fn_c_try_compile "$LINENO"; then : 14436 xorg_cv_cc_flag_unused_command_line_argument=yes 14437else 14438 xorg_cv_cc_flag_unused_command_line_argument=no 14439fi 14440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14441fi 14442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14444 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14445 CFLAGS="$xorg_testset_save_CFLAGS" 14446fi 14447 14448found="no" 14449 14450 if test $found = "no" ; then 14451 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14453 fi 14454 14455 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14457 fi 14458 14459 CFLAGS="$CFLAGS -Werror=sequence-point" 14460 14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14462$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14463 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14464 if eval \${$cacheid+:} false; then : 14465 $as_echo_n "(cached) " >&6 14466else 14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14468/* end confdefs.h. */ 14469int i; 14470int 14471main () 14472{ 14473 14474 ; 14475 return 0; 14476} 14477_ACEOF 14478if ac_fn_c_try_link "$LINENO"; then : 14479 eval $cacheid=yes 14480else 14481 eval $cacheid=no 14482fi 14483rm -f core conftest.err conftest.$ac_objext \ 14484 conftest$ac_exeext conftest.$ac_ext 14485fi 14486 14487 14488 CFLAGS="$xorg_testset_save_CFLAGS" 14489 14490 eval supported=\$$cacheid 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14492$as_echo "$supported" >&6; } 14493 if test "$supported" = "yes" ; then 14494 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14495 found="yes" 14496 fi 14497 fi 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513xorg_testset_save_CFLAGS="$CFLAGS" 14514 14515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14519if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14520 $as_echo_n "(cached) " >&6 14521else 14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14523/* end confdefs.h. */ 14524int i; 14525_ACEOF 14526if ac_fn_c_try_compile "$LINENO"; then : 14527 xorg_cv_cc_flag_unknown_warning_option=yes 14528else 14529 xorg_cv_cc_flag_unknown_warning_option=no 14530fi 14531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14532fi 14533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14536 CFLAGS="$xorg_testset_save_CFLAGS" 14537fi 14538 14539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14542 fi 14543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14547 $as_echo_n "(cached) " >&6 14548else 14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14550/* end confdefs.h. */ 14551int i; 14552_ACEOF 14553if ac_fn_c_try_compile "$LINENO"; then : 14554 xorg_cv_cc_flag_unused_command_line_argument=yes 14555else 14556 xorg_cv_cc_flag_unused_command_line_argument=no 14557fi 14558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14559fi 14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14563 CFLAGS="$xorg_testset_save_CFLAGS" 14564fi 14565 14566found="no" 14567 14568 if test $found = "no" ; then 14569 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14571 fi 14572 14573 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14575 fi 14576 14577 CFLAGS="$CFLAGS -Werror=return-type" 14578 14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14580$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14581 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14582 if eval \${$cacheid+:} false; then : 14583 $as_echo_n "(cached) " >&6 14584else 14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14586/* end confdefs.h. */ 14587int i; 14588int 14589main () 14590{ 14591 14592 ; 14593 return 0; 14594} 14595_ACEOF 14596if ac_fn_c_try_link "$LINENO"; then : 14597 eval $cacheid=yes 14598else 14599 eval $cacheid=no 14600fi 14601rm -f core conftest.err conftest.$ac_objext \ 14602 conftest$ac_exeext conftest.$ac_ext 14603fi 14604 14605 14606 CFLAGS="$xorg_testset_save_CFLAGS" 14607 14608 eval supported=\$$cacheid 14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14610$as_echo "$supported" >&6; } 14611 if test "$supported" = "yes" ; then 14612 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14613 found="yes" 14614 fi 14615 fi 14616 14617 if test $found = "no" ; then 14618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14620 fi 14621 14622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14624 fi 14625 14626 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14627 14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14629$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14630 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14631 if eval \${$cacheid+:} false; then : 14632 $as_echo_n "(cached) " >&6 14633else 14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14635/* end confdefs.h. */ 14636int i; 14637int 14638main () 14639{ 14640 14641 ; 14642 return 0; 14643} 14644_ACEOF 14645if ac_fn_c_try_link "$LINENO"; then : 14646 eval $cacheid=yes 14647else 14648 eval $cacheid=no 14649fi 14650rm -f core conftest.err conftest.$ac_objext \ 14651 conftest$ac_exeext conftest.$ac_ext 14652fi 14653 14654 14655 CFLAGS="$xorg_testset_save_CFLAGS" 14656 14657 eval supported=\$$cacheid 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14659$as_echo "$supported" >&6; } 14660 if test "$supported" = "yes" ; then 14661 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14662 found="yes" 14663 fi 14664 fi 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680xorg_testset_save_CFLAGS="$CFLAGS" 14681 14682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14687 $as_echo_n "(cached) " >&6 14688else 14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14690/* end confdefs.h. */ 14691int i; 14692_ACEOF 14693if ac_fn_c_try_compile "$LINENO"; then : 14694 xorg_cv_cc_flag_unknown_warning_option=yes 14695else 14696 xorg_cv_cc_flag_unknown_warning_option=no 14697fi 14698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14699fi 14700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14703 CFLAGS="$xorg_testset_save_CFLAGS" 14704fi 14705 14706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14709 fi 14710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14714 $as_echo_n "(cached) " >&6 14715else 14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14717/* end confdefs.h. */ 14718int i; 14719_ACEOF 14720if ac_fn_c_try_compile "$LINENO"; then : 14721 xorg_cv_cc_flag_unused_command_line_argument=yes 14722else 14723 xorg_cv_cc_flag_unused_command_line_argument=no 14724fi 14725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14726fi 14727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14730 CFLAGS="$xorg_testset_save_CFLAGS" 14731fi 14732 14733found="no" 14734 14735 if test $found = "no" ; then 14736 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14738 fi 14739 14740 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14742 fi 14743 14744 CFLAGS="$CFLAGS -Werror=trigraphs" 14745 14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14747$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14748 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14749 if eval \${$cacheid+:} false; then : 14750 $as_echo_n "(cached) " >&6 14751else 14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14753/* end confdefs.h. */ 14754int i; 14755int 14756main () 14757{ 14758 14759 ; 14760 return 0; 14761} 14762_ACEOF 14763if ac_fn_c_try_link "$LINENO"; then : 14764 eval $cacheid=yes 14765else 14766 eval $cacheid=no 14767fi 14768rm -f core conftest.err conftest.$ac_objext \ 14769 conftest$ac_exeext conftest.$ac_ext 14770fi 14771 14772 14773 CFLAGS="$xorg_testset_save_CFLAGS" 14774 14775 eval supported=\$$cacheid 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14777$as_echo "$supported" >&6; } 14778 if test "$supported" = "yes" ; then 14779 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14780 found="yes" 14781 fi 14782 fi 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798xorg_testset_save_CFLAGS="$CFLAGS" 14799 14800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14805 $as_echo_n "(cached) " >&6 14806else 14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14808/* end confdefs.h. */ 14809int i; 14810_ACEOF 14811if ac_fn_c_try_compile "$LINENO"; then : 14812 xorg_cv_cc_flag_unknown_warning_option=yes 14813else 14814 xorg_cv_cc_flag_unknown_warning_option=no 14815fi 14816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14817fi 14818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14821 CFLAGS="$xorg_testset_save_CFLAGS" 14822fi 14823 14824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14827 fi 14828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14832 $as_echo_n "(cached) " >&6 14833else 14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14835/* end confdefs.h. */ 14836int i; 14837_ACEOF 14838if ac_fn_c_try_compile "$LINENO"; then : 14839 xorg_cv_cc_flag_unused_command_line_argument=yes 14840else 14841 xorg_cv_cc_flag_unused_command_line_argument=no 14842fi 14843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14844fi 14845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14848 CFLAGS="$xorg_testset_save_CFLAGS" 14849fi 14850 14851found="no" 14852 14853 if test $found = "no" ; then 14854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14856 fi 14857 14858 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14860 fi 14861 14862 CFLAGS="$CFLAGS -Werror=array-bounds" 14863 14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14865$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14866 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 14867 if eval \${$cacheid+:} false; then : 14868 $as_echo_n "(cached) " >&6 14869else 14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14871/* end confdefs.h. */ 14872int i; 14873int 14874main () 14875{ 14876 14877 ; 14878 return 0; 14879} 14880_ACEOF 14881if ac_fn_c_try_link "$LINENO"; then : 14882 eval $cacheid=yes 14883else 14884 eval $cacheid=no 14885fi 14886rm -f core conftest.err conftest.$ac_objext \ 14887 conftest$ac_exeext conftest.$ac_ext 14888fi 14889 14890 14891 CFLAGS="$xorg_testset_save_CFLAGS" 14892 14893 eval supported=\$$cacheid 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14895$as_echo "$supported" >&6; } 14896 if test "$supported" = "yes" ; then 14897 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 14898 found="yes" 14899 fi 14900 fi 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916xorg_testset_save_CFLAGS="$CFLAGS" 14917 14918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14923 $as_echo_n "(cached) " >&6 14924else 14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14926/* end confdefs.h. */ 14927int i; 14928_ACEOF 14929if ac_fn_c_try_compile "$LINENO"; then : 14930 xorg_cv_cc_flag_unknown_warning_option=yes 14931else 14932 xorg_cv_cc_flag_unknown_warning_option=no 14933fi 14934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14935fi 14936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14939 CFLAGS="$xorg_testset_save_CFLAGS" 14940fi 14941 14942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14945 fi 14946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14950 $as_echo_n "(cached) " >&6 14951else 14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14953/* end confdefs.h. */ 14954int i; 14955_ACEOF 14956if ac_fn_c_try_compile "$LINENO"; then : 14957 xorg_cv_cc_flag_unused_command_line_argument=yes 14958else 14959 xorg_cv_cc_flag_unused_command_line_argument=no 14960fi 14961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14962fi 14963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14966 CFLAGS="$xorg_testset_save_CFLAGS" 14967fi 14968 14969found="no" 14970 14971 if test $found = "no" ; then 14972 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14974 fi 14975 14976 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14978 fi 14979 14980 CFLAGS="$CFLAGS -Werror=write-strings" 14981 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 14983$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 14984 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 14985 if eval \${$cacheid+:} false; then : 14986 $as_echo_n "(cached) " >&6 14987else 14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14989/* end confdefs.h. */ 14990int i; 14991int 14992main () 14993{ 14994 14995 ; 14996 return 0; 14997} 14998_ACEOF 14999if ac_fn_c_try_link "$LINENO"; then : 15000 eval $cacheid=yes 15001else 15002 eval $cacheid=no 15003fi 15004rm -f core conftest.err conftest.$ac_objext \ 15005 conftest$ac_exeext conftest.$ac_ext 15006fi 15007 15008 15009 CFLAGS="$xorg_testset_save_CFLAGS" 15010 15011 eval supported=\$$cacheid 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15013$as_echo "$supported" >&6; } 15014 if test "$supported" = "yes" ; then 15015 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15016 found="yes" 15017 fi 15018 fi 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034xorg_testset_save_CFLAGS="$CFLAGS" 15035 15036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15041 $as_echo_n "(cached) " >&6 15042else 15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15044/* end confdefs.h. */ 15045int i; 15046_ACEOF 15047if ac_fn_c_try_compile "$LINENO"; then : 15048 xorg_cv_cc_flag_unknown_warning_option=yes 15049else 15050 xorg_cv_cc_flag_unknown_warning_option=no 15051fi 15052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15053fi 15054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15057 CFLAGS="$xorg_testset_save_CFLAGS" 15058fi 15059 15060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15063 fi 15064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15068 $as_echo_n "(cached) " >&6 15069else 15070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15071/* end confdefs.h. */ 15072int i; 15073_ACEOF 15074if ac_fn_c_try_compile "$LINENO"; then : 15075 xorg_cv_cc_flag_unused_command_line_argument=yes 15076else 15077 xorg_cv_cc_flag_unused_command_line_argument=no 15078fi 15079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15080fi 15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15084 CFLAGS="$xorg_testset_save_CFLAGS" 15085fi 15086 15087found="no" 15088 15089 if test $found = "no" ; then 15090 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15092 fi 15093 15094 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15096 fi 15097 15098 CFLAGS="$CFLAGS -Werror=address" 15099 15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15101$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15102 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15103 if eval \${$cacheid+:} false; then : 15104 $as_echo_n "(cached) " >&6 15105else 15106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15107/* end confdefs.h. */ 15108int i; 15109int 15110main () 15111{ 15112 15113 ; 15114 return 0; 15115} 15116_ACEOF 15117if ac_fn_c_try_link "$LINENO"; then : 15118 eval $cacheid=yes 15119else 15120 eval $cacheid=no 15121fi 15122rm -f core conftest.err conftest.$ac_objext \ 15123 conftest$ac_exeext conftest.$ac_ext 15124fi 15125 15126 15127 CFLAGS="$xorg_testset_save_CFLAGS" 15128 15129 eval supported=\$$cacheid 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15131$as_echo "$supported" >&6; } 15132 if test "$supported" = "yes" ; then 15133 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15134 found="yes" 15135 fi 15136 fi 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152xorg_testset_save_CFLAGS="$CFLAGS" 15153 15154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15159 $as_echo_n "(cached) " >&6 15160else 15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15162/* end confdefs.h. */ 15163int i; 15164_ACEOF 15165if ac_fn_c_try_compile "$LINENO"; then : 15166 xorg_cv_cc_flag_unknown_warning_option=yes 15167else 15168 xorg_cv_cc_flag_unknown_warning_option=no 15169fi 15170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15171fi 15172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15175 CFLAGS="$xorg_testset_save_CFLAGS" 15176fi 15177 15178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15181 fi 15182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15186 $as_echo_n "(cached) " >&6 15187else 15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15189/* end confdefs.h. */ 15190int i; 15191_ACEOF 15192if ac_fn_c_try_compile "$LINENO"; then : 15193 xorg_cv_cc_flag_unused_command_line_argument=yes 15194else 15195 xorg_cv_cc_flag_unused_command_line_argument=no 15196fi 15197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15198fi 15199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15202 CFLAGS="$xorg_testset_save_CFLAGS" 15203fi 15204 15205found="no" 15206 15207 if test $found = "no" ; then 15208 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15210 fi 15211 15212 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15214 fi 15215 15216 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15217 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15219$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15220 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15221 if eval \${$cacheid+:} false; then : 15222 $as_echo_n "(cached) " >&6 15223else 15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15225/* end confdefs.h. */ 15226int i; 15227int 15228main () 15229{ 15230 15231 ; 15232 return 0; 15233} 15234_ACEOF 15235if ac_fn_c_try_link "$LINENO"; then : 15236 eval $cacheid=yes 15237else 15238 eval $cacheid=no 15239fi 15240rm -f core conftest.err conftest.$ac_objext \ 15241 conftest$ac_exeext conftest.$ac_ext 15242fi 15243 15244 15245 CFLAGS="$xorg_testset_save_CFLAGS" 15246 15247 eval supported=\$$cacheid 15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15249$as_echo "$supported" >&6; } 15250 if test "$supported" = "yes" ; then 15251 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15252 found="yes" 15253 fi 15254 fi 15255 15256 if test $found = "no" ; then 15257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15259 fi 15260 15261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15263 fi 15264 15265 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15266 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15268$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15269 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15270 if eval \${$cacheid+:} false; then : 15271 $as_echo_n "(cached) " >&6 15272else 15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15274/* end confdefs.h. */ 15275int i; 15276int 15277main () 15278{ 15279 15280 ; 15281 return 0; 15282} 15283_ACEOF 15284if ac_fn_c_try_link "$LINENO"; then : 15285 eval $cacheid=yes 15286else 15287 eval $cacheid=no 15288fi 15289rm -f core conftest.err conftest.$ac_objext \ 15290 conftest$ac_exeext conftest.$ac_ext 15291fi 15292 15293 15294 CFLAGS="$xorg_testset_save_CFLAGS" 15295 15296 eval supported=\$$cacheid 15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15298$as_echo "$supported" >&6; } 15299 if test "$supported" = "yes" ; then 15300 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15301 found="yes" 15302 fi 15303 fi 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319xorg_testset_save_CFLAGS="$CFLAGS" 15320 15321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15326 $as_echo_n "(cached) " >&6 15327else 15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15329/* end confdefs.h. */ 15330int i; 15331_ACEOF 15332if ac_fn_c_try_compile "$LINENO"; then : 15333 xorg_cv_cc_flag_unknown_warning_option=yes 15334else 15335 xorg_cv_cc_flag_unknown_warning_option=no 15336fi 15337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15338fi 15339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15342 CFLAGS="$xorg_testset_save_CFLAGS" 15343fi 15344 15345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15348 fi 15349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15353 $as_echo_n "(cached) " >&6 15354else 15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15356/* end confdefs.h. */ 15357int i; 15358_ACEOF 15359if ac_fn_c_try_compile "$LINENO"; then : 15360 xorg_cv_cc_flag_unused_command_line_argument=yes 15361else 15362 xorg_cv_cc_flag_unused_command_line_argument=no 15363fi 15364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15365fi 15366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15369 CFLAGS="$xorg_testset_save_CFLAGS" 15370fi 15371 15372found="no" 15373 15374 if test $found = "no" ; then 15375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15377 fi 15378 15379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15381 fi 15382 15383 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15384 15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15386$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15387 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15388 if eval \${$cacheid+:} false; then : 15389 $as_echo_n "(cached) " >&6 15390else 15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15392/* end confdefs.h. */ 15393int i; 15394int 15395main () 15396{ 15397 15398 ; 15399 return 0; 15400} 15401_ACEOF 15402if ac_fn_c_try_link "$LINENO"; then : 15403 eval $cacheid=yes 15404else 15405 eval $cacheid=no 15406fi 15407rm -f core conftest.err conftest.$ac_objext \ 15408 conftest$ac_exeext conftest.$ac_ext 15409fi 15410 15411 15412 CFLAGS="$xorg_testset_save_CFLAGS" 15413 15414 eval supported=\$$cacheid 15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15416$as_echo "$supported" >&6; } 15417 if test "$supported" = "yes" ; then 15418 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15419 found="yes" 15420 fi 15421 fi 15422 15423 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15424else 15425{ $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 15426$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;} 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440xorg_testset_save_CFLAGS="$CFLAGS" 15441 15442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15445$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15446if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15447 $as_echo_n "(cached) " >&6 15448else 15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15450/* end confdefs.h. */ 15451int i; 15452_ACEOF 15453if ac_fn_c_try_compile "$LINENO"; then : 15454 xorg_cv_cc_flag_unknown_warning_option=yes 15455else 15456 xorg_cv_cc_flag_unknown_warning_option=no 15457fi 15458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15459fi 15460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15461$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15463 CFLAGS="$xorg_testset_save_CFLAGS" 15464fi 15465 15466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15469 fi 15470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15472$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15473if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15474 $as_echo_n "(cached) " >&6 15475else 15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15477/* end confdefs.h. */ 15478int i; 15479_ACEOF 15480if ac_fn_c_try_compile "$LINENO"; then : 15481 xorg_cv_cc_flag_unused_command_line_argument=yes 15482else 15483 xorg_cv_cc_flag_unused_command_line_argument=no 15484fi 15485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15486fi 15487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15488$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15490 CFLAGS="$xorg_testset_save_CFLAGS" 15491fi 15492 15493found="no" 15494 15495 if test $found = "no" ; then 15496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15498 fi 15499 15500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15502 fi 15503 15504 CFLAGS="$CFLAGS -Wimplicit" 15505 15506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15507$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15508 cacheid=xorg_cv_cc_flag__Wimplicit 15509 if eval \${$cacheid+:} false; then : 15510 $as_echo_n "(cached) " >&6 15511else 15512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15513/* end confdefs.h. */ 15514int i; 15515int 15516main () 15517{ 15518 15519 ; 15520 return 0; 15521} 15522_ACEOF 15523if ac_fn_c_try_link "$LINENO"; then : 15524 eval $cacheid=yes 15525else 15526 eval $cacheid=no 15527fi 15528rm -f core conftest.err conftest.$ac_objext \ 15529 conftest$ac_exeext conftest.$ac_ext 15530fi 15531 15532 15533 CFLAGS="$xorg_testset_save_CFLAGS" 15534 15535 eval supported=\$$cacheid 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15537$as_echo "$supported" >&6; } 15538 if test "$supported" = "yes" ; then 15539 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15540 found="yes" 15541 fi 15542 fi 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558xorg_testset_save_CFLAGS="$CFLAGS" 15559 15560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15565 $as_echo_n "(cached) " >&6 15566else 15567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15568/* end confdefs.h. */ 15569int i; 15570_ACEOF 15571if ac_fn_c_try_compile "$LINENO"; then : 15572 xorg_cv_cc_flag_unknown_warning_option=yes 15573else 15574 xorg_cv_cc_flag_unknown_warning_option=no 15575fi 15576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15577fi 15578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15579$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15581 CFLAGS="$xorg_testset_save_CFLAGS" 15582fi 15583 15584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15587 fi 15588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15591if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15592 $as_echo_n "(cached) " >&6 15593else 15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15595/* end confdefs.h. */ 15596int i; 15597_ACEOF 15598if ac_fn_c_try_compile "$LINENO"; then : 15599 xorg_cv_cc_flag_unused_command_line_argument=yes 15600else 15601 xorg_cv_cc_flag_unused_command_line_argument=no 15602fi 15603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15604fi 15605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15608 CFLAGS="$xorg_testset_save_CFLAGS" 15609fi 15610 15611found="no" 15612 15613 if test $found = "no" ; then 15614 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15616 fi 15617 15618 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15620 fi 15621 15622 CFLAGS="$CFLAGS -Wnonnull" 15623 15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15625$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15626 cacheid=xorg_cv_cc_flag__Wnonnull 15627 if eval \${$cacheid+:} false; then : 15628 $as_echo_n "(cached) " >&6 15629else 15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15631/* end confdefs.h. */ 15632int i; 15633int 15634main () 15635{ 15636 15637 ; 15638 return 0; 15639} 15640_ACEOF 15641if ac_fn_c_try_link "$LINENO"; then : 15642 eval $cacheid=yes 15643else 15644 eval $cacheid=no 15645fi 15646rm -f core conftest.err conftest.$ac_objext \ 15647 conftest$ac_exeext conftest.$ac_ext 15648fi 15649 15650 15651 CFLAGS="$xorg_testset_save_CFLAGS" 15652 15653 eval supported=\$$cacheid 15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15655$as_echo "$supported" >&6; } 15656 if test "$supported" = "yes" ; then 15657 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15658 found="yes" 15659 fi 15660 fi 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676xorg_testset_save_CFLAGS="$CFLAGS" 15677 15678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15681$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15682if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15683 $as_echo_n "(cached) " >&6 15684else 15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15686/* end confdefs.h. */ 15687int i; 15688_ACEOF 15689if ac_fn_c_try_compile "$LINENO"; then : 15690 xorg_cv_cc_flag_unknown_warning_option=yes 15691else 15692 xorg_cv_cc_flag_unknown_warning_option=no 15693fi 15694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15695fi 15696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15697$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15699 CFLAGS="$xorg_testset_save_CFLAGS" 15700fi 15701 15702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15705 fi 15706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15708$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15709if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15710 $as_echo_n "(cached) " >&6 15711else 15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15713/* end confdefs.h. */ 15714int i; 15715_ACEOF 15716if ac_fn_c_try_compile "$LINENO"; then : 15717 xorg_cv_cc_flag_unused_command_line_argument=yes 15718else 15719 xorg_cv_cc_flag_unused_command_line_argument=no 15720fi 15721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15722fi 15723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15724$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15726 CFLAGS="$xorg_testset_save_CFLAGS" 15727fi 15728 15729found="no" 15730 15731 if test $found = "no" ; then 15732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15734 fi 15735 15736 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15738 fi 15739 15740 CFLAGS="$CFLAGS -Winit-self" 15741 15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15743$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15744 cacheid=xorg_cv_cc_flag__Winit_self 15745 if eval \${$cacheid+:} false; then : 15746 $as_echo_n "(cached) " >&6 15747else 15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15749/* end confdefs.h. */ 15750int i; 15751int 15752main () 15753{ 15754 15755 ; 15756 return 0; 15757} 15758_ACEOF 15759if ac_fn_c_try_link "$LINENO"; then : 15760 eval $cacheid=yes 15761else 15762 eval $cacheid=no 15763fi 15764rm -f core conftest.err conftest.$ac_objext \ 15765 conftest$ac_exeext conftest.$ac_ext 15766fi 15767 15768 15769 CFLAGS="$xorg_testset_save_CFLAGS" 15770 15771 eval supported=\$$cacheid 15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15773$as_echo "$supported" >&6; } 15774 if test "$supported" = "yes" ; then 15775 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15776 found="yes" 15777 fi 15778 fi 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794xorg_testset_save_CFLAGS="$CFLAGS" 15795 15796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15801 $as_echo_n "(cached) " >&6 15802else 15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15804/* end confdefs.h. */ 15805int i; 15806_ACEOF 15807if ac_fn_c_try_compile "$LINENO"; then : 15808 xorg_cv_cc_flag_unknown_warning_option=yes 15809else 15810 xorg_cv_cc_flag_unknown_warning_option=no 15811fi 15812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15813fi 15814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15817 CFLAGS="$xorg_testset_save_CFLAGS" 15818fi 15819 15820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15823 fi 15824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15827if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15828 $as_echo_n "(cached) " >&6 15829else 15830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15831/* end confdefs.h. */ 15832int i; 15833_ACEOF 15834if ac_fn_c_try_compile "$LINENO"; then : 15835 xorg_cv_cc_flag_unused_command_line_argument=yes 15836else 15837 xorg_cv_cc_flag_unused_command_line_argument=no 15838fi 15839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15840fi 15841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15844 CFLAGS="$xorg_testset_save_CFLAGS" 15845fi 15846 15847found="no" 15848 15849 if test $found = "no" ; then 15850 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15852 fi 15853 15854 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15856 fi 15857 15858 CFLAGS="$CFLAGS -Wmain" 15859 15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15861$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15862 cacheid=xorg_cv_cc_flag__Wmain 15863 if eval \${$cacheid+:} false; then : 15864 $as_echo_n "(cached) " >&6 15865else 15866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15867/* end confdefs.h. */ 15868int i; 15869int 15870main () 15871{ 15872 15873 ; 15874 return 0; 15875} 15876_ACEOF 15877if ac_fn_c_try_link "$LINENO"; then : 15878 eval $cacheid=yes 15879else 15880 eval $cacheid=no 15881fi 15882rm -f core conftest.err conftest.$ac_objext \ 15883 conftest$ac_exeext conftest.$ac_ext 15884fi 15885 15886 15887 CFLAGS="$xorg_testset_save_CFLAGS" 15888 15889 eval supported=\$$cacheid 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15891$as_echo "$supported" >&6; } 15892 if test "$supported" = "yes" ; then 15893 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 15894 found="yes" 15895 fi 15896 fi 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912xorg_testset_save_CFLAGS="$CFLAGS" 15913 15914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15919 $as_echo_n "(cached) " >&6 15920else 15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15922/* end confdefs.h. */ 15923int i; 15924_ACEOF 15925if ac_fn_c_try_compile "$LINENO"; then : 15926 xorg_cv_cc_flag_unknown_warning_option=yes 15927else 15928 xorg_cv_cc_flag_unknown_warning_option=no 15929fi 15930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15931fi 15932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15935 CFLAGS="$xorg_testset_save_CFLAGS" 15936fi 15937 15938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15941 fi 15942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15946 $as_echo_n "(cached) " >&6 15947else 15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15949/* end confdefs.h. */ 15950int i; 15951_ACEOF 15952if ac_fn_c_try_compile "$LINENO"; then : 15953 xorg_cv_cc_flag_unused_command_line_argument=yes 15954else 15955 xorg_cv_cc_flag_unused_command_line_argument=no 15956fi 15957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15958fi 15959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15962 CFLAGS="$xorg_testset_save_CFLAGS" 15963fi 15964 15965found="no" 15966 15967 if test $found = "no" ; then 15968 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15970 fi 15971 15972 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15974 fi 15975 15976 CFLAGS="$CFLAGS -Wmissing-braces" 15977 15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 15979$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 15980 cacheid=xorg_cv_cc_flag__Wmissing_braces 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 -Wmissing-braces" 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_unknown_warning_option" = "xyes" ; then 16087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16088 fi 16089 16090 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16092 fi 16093 16094 CFLAGS="$CFLAGS -Wsequence-point" 16095 16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16097$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16098 cacheid=xorg_cv_cc_flag__Wsequence_point 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 -Wsequence-point" 16130 found="yes" 16131 fi 16132 fi 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148xorg_testset_save_CFLAGS="$CFLAGS" 16149 16150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16155 $as_echo_n "(cached) " >&6 16156else 16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16158/* end confdefs.h. */ 16159int i; 16160_ACEOF 16161if ac_fn_c_try_compile "$LINENO"; then : 16162 xorg_cv_cc_flag_unknown_warning_option=yes 16163else 16164 xorg_cv_cc_flag_unknown_warning_option=no 16165fi 16166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16167fi 16168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16171 CFLAGS="$xorg_testset_save_CFLAGS" 16172fi 16173 16174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16177 fi 16178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16182 $as_echo_n "(cached) " >&6 16183else 16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16185/* end confdefs.h. */ 16186int i; 16187_ACEOF 16188if ac_fn_c_try_compile "$LINENO"; then : 16189 xorg_cv_cc_flag_unused_command_line_argument=yes 16190else 16191 xorg_cv_cc_flag_unused_command_line_argument=no 16192fi 16193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16194fi 16195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16198 CFLAGS="$xorg_testset_save_CFLAGS" 16199fi 16200 16201found="no" 16202 16203 if test $found = "no" ; then 16204 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16206 fi 16207 16208 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16210 fi 16211 16212 CFLAGS="$CFLAGS -Wreturn-type" 16213 16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16215$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16216 cacheid=xorg_cv_cc_flag__Wreturn_type 16217 if eval \${$cacheid+:} false; then : 16218 $as_echo_n "(cached) " >&6 16219else 16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16221/* end confdefs.h. */ 16222int i; 16223int 16224main () 16225{ 16226 16227 ; 16228 return 0; 16229} 16230_ACEOF 16231if ac_fn_c_try_link "$LINENO"; then : 16232 eval $cacheid=yes 16233else 16234 eval $cacheid=no 16235fi 16236rm -f core conftest.err conftest.$ac_objext \ 16237 conftest$ac_exeext conftest.$ac_ext 16238fi 16239 16240 16241 CFLAGS="$xorg_testset_save_CFLAGS" 16242 16243 eval supported=\$$cacheid 16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16245$as_echo "$supported" >&6; } 16246 if test "$supported" = "yes" ; then 16247 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16248 found="yes" 16249 fi 16250 fi 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266xorg_testset_save_CFLAGS="$CFLAGS" 16267 16268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16273 $as_echo_n "(cached) " >&6 16274else 16275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16276/* end confdefs.h. */ 16277int i; 16278_ACEOF 16279if ac_fn_c_try_compile "$LINENO"; then : 16280 xorg_cv_cc_flag_unknown_warning_option=yes 16281else 16282 xorg_cv_cc_flag_unknown_warning_option=no 16283fi 16284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16285fi 16286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16289 CFLAGS="$xorg_testset_save_CFLAGS" 16290fi 16291 16292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16295 fi 16296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16300 $as_echo_n "(cached) " >&6 16301else 16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16303/* end confdefs.h. */ 16304int i; 16305_ACEOF 16306if ac_fn_c_try_compile "$LINENO"; then : 16307 xorg_cv_cc_flag_unused_command_line_argument=yes 16308else 16309 xorg_cv_cc_flag_unused_command_line_argument=no 16310fi 16311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16312fi 16313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16316 CFLAGS="$xorg_testset_save_CFLAGS" 16317fi 16318 16319found="no" 16320 16321 if test $found = "no" ; then 16322 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16324 fi 16325 16326 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16328 fi 16329 16330 CFLAGS="$CFLAGS -Wtrigraphs" 16331 16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16333$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16334 cacheid=xorg_cv_cc_flag__Wtrigraphs 16335 if eval \${$cacheid+:} false; then : 16336 $as_echo_n "(cached) " >&6 16337else 16338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16339/* end confdefs.h. */ 16340int i; 16341int 16342main () 16343{ 16344 16345 ; 16346 return 0; 16347} 16348_ACEOF 16349if ac_fn_c_try_link "$LINENO"; then : 16350 eval $cacheid=yes 16351else 16352 eval $cacheid=no 16353fi 16354rm -f core conftest.err conftest.$ac_objext \ 16355 conftest$ac_exeext conftest.$ac_ext 16356fi 16357 16358 16359 CFLAGS="$xorg_testset_save_CFLAGS" 16360 16361 eval supported=\$$cacheid 16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16363$as_echo "$supported" >&6; } 16364 if test "$supported" = "yes" ; then 16365 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16366 found="yes" 16367 fi 16368 fi 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384xorg_testset_save_CFLAGS="$CFLAGS" 16385 16386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16389$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16390if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16391 $as_echo_n "(cached) " >&6 16392else 16393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16394/* end confdefs.h. */ 16395int i; 16396_ACEOF 16397if ac_fn_c_try_compile "$LINENO"; then : 16398 xorg_cv_cc_flag_unknown_warning_option=yes 16399else 16400 xorg_cv_cc_flag_unknown_warning_option=no 16401fi 16402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16403fi 16404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16405$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16407 CFLAGS="$xorg_testset_save_CFLAGS" 16408fi 16409 16410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16413 fi 16414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16416$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16417if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16418 $as_echo_n "(cached) " >&6 16419else 16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16421/* end confdefs.h. */ 16422int i; 16423_ACEOF 16424if ac_fn_c_try_compile "$LINENO"; then : 16425 xorg_cv_cc_flag_unused_command_line_argument=yes 16426else 16427 xorg_cv_cc_flag_unused_command_line_argument=no 16428fi 16429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16430fi 16431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16432$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16434 CFLAGS="$xorg_testset_save_CFLAGS" 16435fi 16436 16437found="no" 16438 16439 if test $found = "no" ; then 16440 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16442 fi 16443 16444 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16446 fi 16447 16448 CFLAGS="$CFLAGS -Warray-bounds" 16449 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16451$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16452 cacheid=xorg_cv_cc_flag__Warray_bounds 16453 if eval \${$cacheid+:} false; then : 16454 $as_echo_n "(cached) " >&6 16455else 16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16457/* end confdefs.h. */ 16458int i; 16459int 16460main () 16461{ 16462 16463 ; 16464 return 0; 16465} 16466_ACEOF 16467if ac_fn_c_try_link "$LINENO"; then : 16468 eval $cacheid=yes 16469else 16470 eval $cacheid=no 16471fi 16472rm -f core conftest.err conftest.$ac_objext \ 16473 conftest$ac_exeext conftest.$ac_ext 16474fi 16475 16476 16477 CFLAGS="$xorg_testset_save_CFLAGS" 16478 16479 eval supported=\$$cacheid 16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16481$as_echo "$supported" >&6; } 16482 if test "$supported" = "yes" ; then 16483 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16484 found="yes" 16485 fi 16486 fi 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502xorg_testset_save_CFLAGS="$CFLAGS" 16503 16504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16509 $as_echo_n "(cached) " >&6 16510else 16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16512/* end confdefs.h. */ 16513int i; 16514_ACEOF 16515if ac_fn_c_try_compile "$LINENO"; then : 16516 xorg_cv_cc_flag_unknown_warning_option=yes 16517else 16518 xorg_cv_cc_flag_unknown_warning_option=no 16519fi 16520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16521fi 16522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16525 CFLAGS="$xorg_testset_save_CFLAGS" 16526fi 16527 16528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16531 fi 16532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16536 $as_echo_n "(cached) " >&6 16537else 16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16539/* end confdefs.h. */ 16540int i; 16541_ACEOF 16542if ac_fn_c_try_compile "$LINENO"; then : 16543 xorg_cv_cc_flag_unused_command_line_argument=yes 16544else 16545 xorg_cv_cc_flag_unused_command_line_argument=no 16546fi 16547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16548fi 16549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16552 CFLAGS="$xorg_testset_save_CFLAGS" 16553fi 16554 16555found="no" 16556 16557 if test $found = "no" ; then 16558 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16560 fi 16561 16562 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16564 fi 16565 16566 CFLAGS="$CFLAGS -Wwrite-strings" 16567 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16569$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16570 cacheid=xorg_cv_cc_flag__Wwrite_strings 16571 if eval \${$cacheid+:} false; then : 16572 $as_echo_n "(cached) " >&6 16573else 16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16575/* end confdefs.h. */ 16576int i; 16577int 16578main () 16579{ 16580 16581 ; 16582 return 0; 16583} 16584_ACEOF 16585if ac_fn_c_try_link "$LINENO"; then : 16586 eval $cacheid=yes 16587else 16588 eval $cacheid=no 16589fi 16590rm -f core conftest.err conftest.$ac_objext \ 16591 conftest$ac_exeext conftest.$ac_ext 16592fi 16593 16594 16595 CFLAGS="$xorg_testset_save_CFLAGS" 16596 16597 eval supported=\$$cacheid 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16599$as_echo "$supported" >&6; } 16600 if test "$supported" = "yes" ; then 16601 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16602 found="yes" 16603 fi 16604 fi 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620xorg_testset_save_CFLAGS="$CFLAGS" 16621 16622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16627 $as_echo_n "(cached) " >&6 16628else 16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16630/* end confdefs.h. */ 16631int i; 16632_ACEOF 16633if ac_fn_c_try_compile "$LINENO"; then : 16634 xorg_cv_cc_flag_unknown_warning_option=yes 16635else 16636 xorg_cv_cc_flag_unknown_warning_option=no 16637fi 16638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16639fi 16640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16643 CFLAGS="$xorg_testset_save_CFLAGS" 16644fi 16645 16646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16649 fi 16650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16654 $as_echo_n "(cached) " >&6 16655else 16656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16657/* end confdefs.h. */ 16658int i; 16659_ACEOF 16660if ac_fn_c_try_compile "$LINENO"; then : 16661 xorg_cv_cc_flag_unused_command_line_argument=yes 16662else 16663 xorg_cv_cc_flag_unused_command_line_argument=no 16664fi 16665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16666fi 16667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16670 CFLAGS="$xorg_testset_save_CFLAGS" 16671fi 16672 16673found="no" 16674 16675 if test $found = "no" ; then 16676 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16678 fi 16679 16680 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16682 fi 16683 16684 CFLAGS="$CFLAGS -Waddress" 16685 16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16687$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16688 cacheid=xorg_cv_cc_flag__Waddress 16689 if eval \${$cacheid+:} false; then : 16690 $as_echo_n "(cached) " >&6 16691else 16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16693/* end confdefs.h. */ 16694int i; 16695int 16696main () 16697{ 16698 16699 ; 16700 return 0; 16701} 16702_ACEOF 16703if ac_fn_c_try_link "$LINENO"; then : 16704 eval $cacheid=yes 16705else 16706 eval $cacheid=no 16707fi 16708rm -f core conftest.err conftest.$ac_objext \ 16709 conftest$ac_exeext conftest.$ac_ext 16710fi 16711 16712 16713 CFLAGS="$xorg_testset_save_CFLAGS" 16714 16715 eval supported=\$$cacheid 16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16717$as_echo "$supported" >&6; } 16718 if test "$supported" = "yes" ; then 16719 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16720 found="yes" 16721 fi 16722 fi 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738xorg_testset_save_CFLAGS="$CFLAGS" 16739 16740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16745 $as_echo_n "(cached) " >&6 16746else 16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16748/* end confdefs.h. */ 16749int i; 16750_ACEOF 16751if ac_fn_c_try_compile "$LINENO"; then : 16752 xorg_cv_cc_flag_unknown_warning_option=yes 16753else 16754 xorg_cv_cc_flag_unknown_warning_option=no 16755fi 16756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16757fi 16758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16761 CFLAGS="$xorg_testset_save_CFLAGS" 16762fi 16763 16764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16767 fi 16768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16772 $as_echo_n "(cached) " >&6 16773else 16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16775/* end confdefs.h. */ 16776int i; 16777_ACEOF 16778if ac_fn_c_try_compile "$LINENO"; then : 16779 xorg_cv_cc_flag_unused_command_line_argument=yes 16780else 16781 xorg_cv_cc_flag_unused_command_line_argument=no 16782fi 16783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16784fi 16785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16788 CFLAGS="$xorg_testset_save_CFLAGS" 16789fi 16790 16791found="no" 16792 16793 if test $found = "no" ; then 16794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16796 fi 16797 16798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16800 fi 16801 16802 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16803 16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16805$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16806 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16807 if eval \${$cacheid+:} false; then : 16808 $as_echo_n "(cached) " >&6 16809else 16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16811/* end confdefs.h. */ 16812int i; 16813int 16814main () 16815{ 16816 16817 ; 16818 return 0; 16819} 16820_ACEOF 16821if ac_fn_c_try_link "$LINENO"; then : 16822 eval $cacheid=yes 16823else 16824 eval $cacheid=no 16825fi 16826rm -f core conftest.err conftest.$ac_objext \ 16827 conftest$ac_exeext conftest.$ac_ext 16828fi 16829 16830 16831 CFLAGS="$xorg_testset_save_CFLAGS" 16832 16833 eval supported=\$$cacheid 16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16835$as_echo "$supported" >&6; } 16836 if test "$supported" = "yes" ; then 16837 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16838 found="yes" 16839 fi 16840 fi 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856xorg_testset_save_CFLAGS="$CFLAGS" 16857 16858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16863 $as_echo_n "(cached) " >&6 16864else 16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16866/* end confdefs.h. */ 16867int i; 16868_ACEOF 16869if ac_fn_c_try_compile "$LINENO"; then : 16870 xorg_cv_cc_flag_unknown_warning_option=yes 16871else 16872 xorg_cv_cc_flag_unknown_warning_option=no 16873fi 16874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16875fi 16876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16879 CFLAGS="$xorg_testset_save_CFLAGS" 16880fi 16881 16882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16885 fi 16886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16890 $as_echo_n "(cached) " >&6 16891else 16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16893/* end confdefs.h. */ 16894int i; 16895_ACEOF 16896if ac_fn_c_try_compile "$LINENO"; then : 16897 xorg_cv_cc_flag_unused_command_line_argument=yes 16898else 16899 xorg_cv_cc_flag_unused_command_line_argument=no 16900fi 16901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16902fi 16903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16906 CFLAGS="$xorg_testset_save_CFLAGS" 16907fi 16908 16909found="no" 16910 16911 if test $found = "no" ; then 16912 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16914 fi 16915 16916 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16918 fi 16919 16920 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 16921 16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 16923$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 16924 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 16925 if eval \${$cacheid+:} false; then : 16926 $as_echo_n "(cached) " >&6 16927else 16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16929/* end confdefs.h. */ 16930int i; 16931int 16932main () 16933{ 16934 16935 ; 16936 return 0; 16937} 16938_ACEOF 16939if ac_fn_c_try_link "$LINENO"; then : 16940 eval $cacheid=yes 16941else 16942 eval $cacheid=no 16943fi 16944rm -f core conftest.err conftest.$ac_objext \ 16945 conftest$ac_exeext conftest.$ac_ext 16946fi 16947 16948 16949 CFLAGS="$xorg_testset_save_CFLAGS" 16950 16951 eval supported=\$$cacheid 16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16953$as_echo "$supported" >&6; } 16954 if test "$supported" = "yes" ; then 16955 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 16956 found="yes" 16957 fi 16958 fi 16959 16960 16961fi 16962 16963 16964 16965 16966 16967 16968 16969 CWARNFLAGS="$BASE_CFLAGS" 16970 if test "x$GCC" = xyes ; then 16971 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 16972 fi 16973 16974 16975 16976 16977 16978 16979 16980 16981# Check whether --enable-strict-compilation was given. 16982if test "${enable_strict_compilation+set}" = set; then : 16983 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 16984else 16985 STRICT_COMPILE=no 16986fi 16987 16988 16989 16990 16991 16992 16993STRICT_CFLAGS="" 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007xorg_testset_save_CFLAGS="$CFLAGS" 17008 17009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17014 $as_echo_n "(cached) " >&6 17015else 17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17017/* end confdefs.h. */ 17018int i; 17019_ACEOF 17020if ac_fn_c_try_compile "$LINENO"; then : 17021 xorg_cv_cc_flag_unknown_warning_option=yes 17022else 17023 xorg_cv_cc_flag_unknown_warning_option=no 17024fi 17025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17026fi 17027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17030 CFLAGS="$xorg_testset_save_CFLAGS" 17031fi 17032 17033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17036 fi 17037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17041 $as_echo_n "(cached) " >&6 17042else 17043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17044/* end confdefs.h. */ 17045int i; 17046_ACEOF 17047if ac_fn_c_try_compile "$LINENO"; then : 17048 xorg_cv_cc_flag_unused_command_line_argument=yes 17049else 17050 xorg_cv_cc_flag_unused_command_line_argument=no 17051fi 17052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17053fi 17054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17057 CFLAGS="$xorg_testset_save_CFLAGS" 17058fi 17059 17060found="no" 17061 17062 if test $found = "no" ; then 17063 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17065 fi 17066 17067 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17069 fi 17070 17071 CFLAGS="$CFLAGS -pedantic" 17072 17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17074$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17075 cacheid=xorg_cv_cc_flag__pedantic 17076 if eval \${$cacheid+:} false; then : 17077 $as_echo_n "(cached) " >&6 17078else 17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17080/* end confdefs.h. */ 17081int i; 17082int 17083main () 17084{ 17085 17086 ; 17087 return 0; 17088} 17089_ACEOF 17090if ac_fn_c_try_link "$LINENO"; then : 17091 eval $cacheid=yes 17092else 17093 eval $cacheid=no 17094fi 17095rm -f core conftest.err conftest.$ac_objext \ 17096 conftest$ac_exeext conftest.$ac_ext 17097fi 17098 17099 17100 CFLAGS="$xorg_testset_save_CFLAGS" 17101 17102 eval supported=\$$cacheid 17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17104$as_echo "$supported" >&6; } 17105 if test "$supported" = "yes" ; then 17106 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17107 found="yes" 17108 fi 17109 fi 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125xorg_testset_save_CFLAGS="$CFLAGS" 17126 17127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17132 $as_echo_n "(cached) " >&6 17133else 17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17135/* end confdefs.h. */ 17136int i; 17137_ACEOF 17138if ac_fn_c_try_compile "$LINENO"; then : 17139 xorg_cv_cc_flag_unknown_warning_option=yes 17140else 17141 xorg_cv_cc_flag_unknown_warning_option=no 17142fi 17143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17144fi 17145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17148 CFLAGS="$xorg_testset_save_CFLAGS" 17149fi 17150 17151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17154 fi 17155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17159 $as_echo_n "(cached) " >&6 17160else 17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17162/* end confdefs.h. */ 17163int i; 17164_ACEOF 17165if ac_fn_c_try_compile "$LINENO"; then : 17166 xorg_cv_cc_flag_unused_command_line_argument=yes 17167else 17168 xorg_cv_cc_flag_unused_command_line_argument=no 17169fi 17170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17171fi 17172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17175 CFLAGS="$xorg_testset_save_CFLAGS" 17176fi 17177 17178found="no" 17179 17180 if test $found = "no" ; then 17181 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17183 fi 17184 17185 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17187 fi 17188 17189 CFLAGS="$CFLAGS -Werror" 17190 17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17192$as_echo_n "checking if $CC supports -Werror... " >&6; } 17193 cacheid=xorg_cv_cc_flag__Werror 17194 if eval \${$cacheid+:} false; then : 17195 $as_echo_n "(cached) " >&6 17196else 17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17198/* end confdefs.h. */ 17199int i; 17200int 17201main () 17202{ 17203 17204 ; 17205 return 0; 17206} 17207_ACEOF 17208if ac_fn_c_try_link "$LINENO"; then : 17209 eval $cacheid=yes 17210else 17211 eval $cacheid=no 17212fi 17213rm -f core conftest.err conftest.$ac_objext \ 17214 conftest$ac_exeext conftest.$ac_ext 17215fi 17216 17217 17218 CFLAGS="$xorg_testset_save_CFLAGS" 17219 17220 eval supported=\$$cacheid 17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17222$as_echo "$supported" >&6; } 17223 if test "$supported" = "yes" ; then 17224 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17225 found="yes" 17226 fi 17227 fi 17228 17229 if test $found = "no" ; then 17230 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17232 fi 17233 17234 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17236 fi 17237 17238 CFLAGS="$CFLAGS -errwarn" 17239 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17241$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17242 cacheid=xorg_cv_cc_flag__errwarn 17243 if eval \${$cacheid+:} false; then : 17244 $as_echo_n "(cached) " >&6 17245else 17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17247/* end confdefs.h. */ 17248int i; 17249int 17250main () 17251{ 17252 17253 ; 17254 return 0; 17255} 17256_ACEOF 17257if ac_fn_c_try_link "$LINENO"; then : 17258 eval $cacheid=yes 17259else 17260 eval $cacheid=no 17261fi 17262rm -f core conftest.err conftest.$ac_objext \ 17263 conftest$ac_exeext conftest.$ac_ext 17264fi 17265 17266 17267 CFLAGS="$xorg_testset_save_CFLAGS" 17268 17269 eval supported=\$$cacheid 17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17271$as_echo "$supported" >&6; } 17272 if test "$supported" = "yes" ; then 17273 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17274 found="yes" 17275 fi 17276 fi 17277 17278 17279 17280# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17281# activate it with -Werror, so we add it here explicitly. 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295xorg_testset_save_CFLAGS="$CFLAGS" 17296 17297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17302 $as_echo_n "(cached) " >&6 17303else 17304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17305/* end confdefs.h. */ 17306int i; 17307_ACEOF 17308if ac_fn_c_try_compile "$LINENO"; then : 17309 xorg_cv_cc_flag_unknown_warning_option=yes 17310else 17311 xorg_cv_cc_flag_unknown_warning_option=no 17312fi 17313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17314fi 17315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17318 CFLAGS="$xorg_testset_save_CFLAGS" 17319fi 17320 17321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17324 fi 17325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17329 $as_echo_n "(cached) " >&6 17330else 17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17332/* end confdefs.h. */ 17333int i; 17334_ACEOF 17335if ac_fn_c_try_compile "$LINENO"; then : 17336 xorg_cv_cc_flag_unused_command_line_argument=yes 17337else 17338 xorg_cv_cc_flag_unused_command_line_argument=no 17339fi 17340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17341fi 17342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17345 CFLAGS="$xorg_testset_save_CFLAGS" 17346fi 17347 17348found="no" 17349 17350 if test $found = "no" ; then 17351 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17353 fi 17354 17355 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17357 fi 17358 17359 CFLAGS="$CFLAGS -Werror=attributes" 17360 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17362$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17363 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17364 if eval \${$cacheid+:} false; then : 17365 $as_echo_n "(cached) " >&6 17366else 17367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17368/* end confdefs.h. */ 17369int i; 17370int 17371main () 17372{ 17373 17374 ; 17375 return 0; 17376} 17377_ACEOF 17378if ac_fn_c_try_link "$LINENO"; then : 17379 eval $cacheid=yes 17380else 17381 eval $cacheid=no 17382fi 17383rm -f core conftest.err conftest.$ac_objext \ 17384 conftest$ac_exeext conftest.$ac_ext 17385fi 17386 17387 17388 CFLAGS="$xorg_testset_save_CFLAGS" 17389 17390 eval supported=\$$cacheid 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17392$as_echo "$supported" >&6; } 17393 if test "$supported" = "yes" ; then 17394 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17395 found="yes" 17396 fi 17397 fi 17398 17399 17400 17401if test "x$STRICT_COMPILE" = "xyes"; then 17402 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17403 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17404fi 17405 17406 17407 17408 17409 17410 17411cat >>confdefs.h <<_ACEOF 17412#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17413_ACEOF 17414 17415 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17416 if test "x$PVM" = "x"; then 17417 PVM="0" 17418 fi 17419 17420cat >>confdefs.h <<_ACEOF 17421#define PACKAGE_VERSION_MINOR $PVM 17422_ACEOF 17423 17424 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17425 if test "x$PVP" = "x"; then 17426 PVP="0" 17427 fi 17428 17429cat >>confdefs.h <<_ACEOF 17430#define PACKAGE_VERSION_PATCHLEVEL $PVP 17431_ACEOF 17432 17433 17434 17435CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17436mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17437|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17438echo 'git directory not found: installing possibly empty changelog.' >&2)" 17439 17440 17441 17442 17443macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17444INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17445mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17446|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17447echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17448 17449 17450 17451 17452 17453 17454if test x$APP_MAN_SUFFIX = x ; then 17455 APP_MAN_SUFFIX=1 17456fi 17457if test x$APP_MAN_DIR = x ; then 17458 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17459fi 17460 17461if test x$LIB_MAN_SUFFIX = x ; then 17462 LIB_MAN_SUFFIX=3 17463fi 17464if test x$LIB_MAN_DIR = x ; then 17465 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17466fi 17467 17468if test x$FILE_MAN_SUFFIX = x ; then 17469 case $host_os in 17470 solaris*) FILE_MAN_SUFFIX=4 ;; 17471 *) FILE_MAN_SUFFIX=5 ;; 17472 esac 17473fi 17474if test x$FILE_MAN_DIR = x ; then 17475 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17476fi 17477 17478if test x$MISC_MAN_SUFFIX = x ; then 17479 case $host_os in 17480 solaris*) MISC_MAN_SUFFIX=5 ;; 17481 *) MISC_MAN_SUFFIX=7 ;; 17482 esac 17483fi 17484if test x$MISC_MAN_DIR = x ; then 17485 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17486fi 17487 17488if test x$DRIVER_MAN_SUFFIX = x ; then 17489 case $host_os in 17490 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17491 *) DRIVER_MAN_SUFFIX=4 ;; 17492 esac 17493fi 17494if test x$DRIVER_MAN_DIR = x ; then 17495 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17496fi 17497 17498if test x$ADMIN_MAN_SUFFIX = x ; then 17499 case $host_os in 17500 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17501 *) ADMIN_MAN_SUFFIX=8 ;; 17502 esac 17503fi 17504if test x$ADMIN_MAN_DIR = x ; then 17505 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17506fi 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522XORG_MAN_PAGE="X Version 11" 17523 17524MAN_SUBSTS="\ 17525 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17526 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17527 -e 's|__xservername__|Xorg|g' \ 17528 -e 's|__xconfigfile__|xorg.conf|g' \ 17529 -e 's|__projectroot__|\$(prefix)|g' \ 17530 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17531 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17532 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17533 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17534 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17535 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17536 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17537 17538 17539 17540# Check whether --enable-silent-rules was given. 17541if test "${enable_silent_rules+set}" = set; then : 17542 enableval=$enable_silent_rules; 17543fi 17544 17545case $enable_silent_rules in # ((( 17546 yes) AM_DEFAULT_VERBOSITY=0;; 17547 no) AM_DEFAULT_VERBOSITY=1;; 17548 *) AM_DEFAULT_VERBOSITY=0;; 17549esac 17550am_make=${MAKE-make} 17551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17552$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17553if ${am_cv_make_support_nested_variables+:} false; then : 17554 $as_echo_n "(cached) " >&6 17555else 17556 if $as_echo 'TRUE=$(BAR$(V)) 17557BAR0=false 17558BAR1=true 17559V=1 17560am__doit: 17561 @$(TRUE) 17562.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17563 am_cv_make_support_nested_variables=yes 17564else 17565 am_cv_make_support_nested_variables=no 17566fi 17567fi 17568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17569$as_echo "$am_cv_make_support_nested_variables" >&6; } 17570if test $am_cv_make_support_nested_variables = yes; then 17571 AM_V='$(V)' 17572 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17573else 17574 AM_V=$AM_DEFAULT_VERBOSITY 17575 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17576fi 17577AM_BACKSLASH='\' 17578 17579 17580 17581# Check fixesext configuration, strip extra digits from package version to 17582# find the required protocol version 17583FIXESEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 17584 17585 17586# Obtain compiler/linker options for depedencies 17587 17588pkg_failed=no 17589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIXESEXT" >&5 17590$as_echo_n "checking for FIXESEXT... " >&6; } 17591 17592if test -n "$FIXESEXT_CFLAGS"; then 17593 pkg_cv_FIXESEXT_CFLAGS="$FIXESEXT_CFLAGS" 17594 elif test -n "$PKG_CONFIG"; then 17595 if test -n "$PKG_CONFIG" && \ 17596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto x11\""; } >&5 17597 ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11") 2>&5 17598 ac_status=$? 17599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17600 test $ac_status = 0; }; then 17601 pkg_cv_FIXESEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>/dev/null` 17602else 17603 pkg_failed=yes 17604fi 17605 else 17606 pkg_failed=untried 17607fi 17608if test -n "$FIXESEXT_LIBS"; then 17609 pkg_cv_FIXESEXT_LIBS="$FIXESEXT_LIBS" 17610 elif test -n "$PKG_CONFIG"; then 17611 if test -n "$PKG_CONFIG" && \ 17612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto fixesproto >= \$FIXESEXT_VERSION xextproto x11\""; } >&5 17613 ($PKG_CONFIG --exists --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11") 2>&5 17614 ac_status=$? 17615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17616 test $ac_status = 0; }; then 17617 pkg_cv_FIXESEXT_LIBS=`$PKG_CONFIG --libs "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>/dev/null` 17618else 17619 pkg_failed=yes 17620fi 17621 else 17622 pkg_failed=untried 17623fi 17624 17625 17626 17627if test $pkg_failed = yes; then 17628 17629if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17630 _pkg_short_errors_supported=yes 17631else 17632 _pkg_short_errors_supported=no 17633fi 17634 if test $_pkg_short_errors_supported = yes; then 17635 FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>&1` 17636 else 17637 FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto fixesproto >= $FIXESEXT_VERSION xextproto x11" 2>&1` 17638 fi 17639 # Put the nasty error message in config.log where it belongs 17640 echo "$FIXESEXT_PKG_ERRORS" >&5 17641 17642 as_fn_error $? "Package requirements (xproto fixesproto >= $FIXESEXT_VERSION xextproto x11) were not met: 17643 17644$FIXESEXT_PKG_ERRORS 17645 17646Consider adjusting the PKG_CONFIG_PATH environment variable if you 17647installed software in a non-standard prefix. 17648 17649Alternatively, you may set the environment variables FIXESEXT_CFLAGS 17650and FIXESEXT_LIBS to avoid the need to call pkg-config. 17651See the pkg-config man page for more details. 17652" "$LINENO" 5 17653elif test $pkg_failed = untried; then 17654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17656as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17657is in your PATH or set the PKG_CONFIG environment variable to the full 17658path to pkg-config. 17659 17660Alternatively, you may set the environment variables FIXESEXT_CFLAGS 17661and FIXESEXT_LIBS to avoid the need to call pkg-config. 17662See the pkg-config man page for more details. 17663 17664To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17665See \`config.log' for more details" "$LINENO" 5; } 17666else 17667 FIXESEXT_CFLAGS=$pkg_cv_FIXESEXT_CFLAGS 17668 FIXESEXT_LIBS=$pkg_cv_FIXESEXT_LIBS 17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17670$as_echo "yes" >&6; } 17671 : 17672fi 17673 17674# Check for _XEatDataWords function that may be patched into older Xlib releases 17675SAVE_LIBS="$LIBS" 17676LIBS="$FIXESEXT_LIBS" 17677for ac_func in _XEatDataWords 17678do : 17679 ac_fn_c_check_func "$LINENO" "_XEatDataWords" "ac_cv_func__XEatDataWords" 17680if test "x$ac_cv_func__XEatDataWords" = xyes; then : 17681 cat >>confdefs.h <<_ACEOF 17682#define HAVE__XEATDATAWORDS 1 17683_ACEOF 17684 17685fi 17686done 17687 17688LIBS="$SAVE_LIBS" 17689 17690 17691ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xfixes.pc" 17692 17693cat >confcache <<\_ACEOF 17694# This file is a shell script that caches the results of configure 17695# tests run on this system so they can be shared between configure 17696# scripts and configure runs, see configure's option --config-cache. 17697# It is not useful on other systems. If it contains results you don't 17698# want to keep, you may remove or edit it. 17699# 17700# config.status only pays attention to the cache file if you give it 17701# the --recheck option to rerun configure. 17702# 17703# `ac_cv_env_foo' variables (set or unset) will be overridden when 17704# loading this file, other *unset* `ac_cv_foo' will be assigned the 17705# following values. 17706 17707_ACEOF 17708 17709# The following way of writing the cache mishandles newlines in values, 17710# but we know of no workaround that is simple, portable, and efficient. 17711# So, we kill variables containing newlines. 17712# Ultrix sh set writes to stderr and can't be redirected directly, 17713# and sets the high bit in the cache file unless we assign to the vars. 17714( 17715 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17716 eval ac_val=\$$ac_var 17717 case $ac_val in #( 17718 *${as_nl}*) 17719 case $ac_var in #( 17720 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17721$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17722 esac 17723 case $ac_var in #( 17724 _ | IFS | as_nl) ;; #( 17725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17726 *) { eval $ac_var=; unset $ac_var;} ;; 17727 esac ;; 17728 esac 17729 done 17730 17731 (set) 2>&1 | 17732 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17733 *${as_nl}ac_space=\ *) 17734 # `set' does not quote correctly, so add quotes: double-quote 17735 # substitution turns \\\\ into \\, and sed turns \\ into \. 17736 sed -n \ 17737 "s/'/'\\\\''/g; 17738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17739 ;; #( 17740 *) 17741 # `set' quotes correctly as required by POSIX, so do not add quotes. 17742 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17743 ;; 17744 esac | 17745 sort 17746) | 17747 sed ' 17748 /^ac_cv_env_/b end 17749 t clear 17750 :clear 17751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17752 t end 17753 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17754 :end' >>confcache 17755if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17756 if test -w "$cache_file"; then 17757 if test "x$cache_file" != "x/dev/null"; then 17758 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17759$as_echo "$as_me: updating cache $cache_file" >&6;} 17760 if test ! -f "$cache_file" || test -h "$cache_file"; then 17761 cat confcache >"$cache_file" 17762 else 17763 case $cache_file in #( 17764 */* | ?:*) 17765 mv -f confcache "$cache_file"$$ && 17766 mv -f "$cache_file"$$ "$cache_file" ;; #( 17767 *) 17768 mv -f confcache "$cache_file" ;; 17769 esac 17770 fi 17771 fi 17772 else 17773 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17774$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17775 fi 17776fi 17777rm -f confcache 17778 17779test "x$prefix" = xNONE && prefix=$ac_default_prefix 17780# Let make expand exec_prefix. 17781test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17782 17783DEFS=-DHAVE_CONFIG_H 17784 17785ac_libobjs= 17786ac_ltlibobjs= 17787U= 17788for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17789 # 1. Remove the extension, and $U if already installed. 17790 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17791 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17792 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17793 # will be set to the directory where LIBOBJS objects are built. 17794 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17795 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17796done 17797LIBOBJS=$ac_libobjs 17798 17799LTLIBOBJS=$ac_ltlibobjs 17800 17801 17802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17803$as_echo_n "checking that generated files are newer than configure... " >&6; } 17804 if test -n "$am_sleep_pid"; then 17805 # Hide warnings about reused PIDs. 17806 wait $am_sleep_pid 2>/dev/null 17807 fi 17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17809$as_echo "done" >&6; } 17810 if test -n "$EXEEXT"; then 17811 am__EXEEXT_TRUE= 17812 am__EXEEXT_FALSE='#' 17813else 17814 am__EXEEXT_TRUE='#' 17815 am__EXEEXT_FALSE= 17816fi 17817 17818if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17819 as_fn_error $? "conditional \"AMDEP\" was never defined. 17820Usually this means the macro was only invoked conditionally." "$LINENO" 5 17821fi 17822if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17823 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17824Usually this means the macro was only invoked conditionally." "$LINENO" 5 17825fi 17826 17827: "${CONFIG_STATUS=./config.status}" 17828ac_write_fail=0 17829ac_clean_files_save=$ac_clean_files 17830ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17831{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17832$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17833as_write_fail=0 17834cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17835#! $SHELL 17836# Generated by $as_me. 17837# Run this file to recreate the current configuration. 17838# Compiler output produced by configure, useful for debugging 17839# configure, is in config.log if it exists. 17840 17841debug=false 17842ac_cs_recheck=false 17843ac_cs_silent=false 17844 17845SHELL=\${CONFIG_SHELL-$SHELL} 17846export SHELL 17847_ASEOF 17848cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17849## -------------------- ## 17850## M4sh Initialization. ## 17851## -------------------- ## 17852 17853# Be more Bourne compatible 17854DUALCASE=1; export DUALCASE # for MKS sh 17855if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17856 emulate sh 17857 NULLCMD=: 17858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17859 # is contrary to our usage. Disable this feature. 17860 alias -g '${1+"$@"}'='"$@"' 17861 setopt NO_GLOB_SUBST 17862else 17863 case `(set -o) 2>/dev/null` in #( 17864 *posix*) : 17865 set -o posix ;; #( 17866 *) : 17867 ;; 17868esac 17869fi 17870 17871 17872as_nl=' 17873' 17874export as_nl 17875# Printing a long string crashes Solaris 7 /usr/bin/printf. 17876as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17877as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17878as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17879# Prefer a ksh shell builtin over an external printf program on Solaris, 17880# but without wasting forks for bash or zsh. 17881if test -z "$BASH_VERSION$ZSH_VERSION" \ 17882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17883 as_echo='print -r --' 17884 as_echo_n='print -rn --' 17885elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17886 as_echo='printf %s\n' 17887 as_echo_n='printf %s' 17888else 17889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17890 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17891 as_echo_n='/usr/ucb/echo -n' 17892 else 17893 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17894 as_echo_n_body='eval 17895 arg=$1; 17896 case $arg in #( 17897 *"$as_nl"*) 17898 expr "X$arg" : "X\\(.*\\)$as_nl"; 17899 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17900 esac; 17901 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17902 ' 17903 export as_echo_n_body 17904 as_echo_n='sh -c $as_echo_n_body as_echo' 17905 fi 17906 export as_echo_body 17907 as_echo='sh -c $as_echo_body as_echo' 17908fi 17909 17910# The user is always right. 17911if test "${PATH_SEPARATOR+set}" != set; then 17912 PATH_SEPARATOR=: 17913 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17914 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17915 PATH_SEPARATOR=';' 17916 } 17917fi 17918 17919 17920# IFS 17921# We need space, tab and new line, in precisely that order. Quoting is 17922# there to prevent editors from complaining about space-tab. 17923# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17924# splitting by setting IFS to empty value.) 17925IFS=" "" $as_nl" 17926 17927# Find who we are. Look in the path if we contain no directory separator. 17928as_myself= 17929case $0 in #(( 17930 *[\\/]* ) as_myself=$0 ;; 17931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17932for as_dir in $PATH 17933do 17934 IFS=$as_save_IFS 17935 test -z "$as_dir" && as_dir=. 17936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17937 done 17938IFS=$as_save_IFS 17939 17940 ;; 17941esac 17942# We did not find ourselves, most probably we were run as `sh COMMAND' 17943# in which case we are not to be found in the path. 17944if test "x$as_myself" = x; then 17945 as_myself=$0 17946fi 17947if test ! -f "$as_myself"; then 17948 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17949 exit 1 17950fi 17951 17952# Unset variables that we do not need and which cause bugs (e.g. in 17953# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17954# suppresses any "Segmentation fault" message there. '((' could 17955# trigger a bug in pdksh 5.2.14. 17956for as_var in BASH_ENV ENV MAIL MAILPATH 17957do eval test x\${$as_var+set} = xset \ 17958 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17959done 17960PS1='$ ' 17961PS2='> ' 17962PS4='+ ' 17963 17964# NLS nuisances. 17965LC_ALL=C 17966export LC_ALL 17967LANGUAGE=C 17968export LANGUAGE 17969 17970# CDPATH. 17971(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17972 17973 17974# as_fn_error STATUS ERROR [LINENO LOG_FD] 17975# ---------------------------------------- 17976# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17977# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17978# script with STATUS, using 1 if that was 0. 17979as_fn_error () 17980{ 17981 as_status=$1; test $as_status -eq 0 && as_status=1 17982 if test "$4"; then 17983 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17984 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17985 fi 17986 $as_echo "$as_me: error: $2" >&2 17987 as_fn_exit $as_status 17988} # as_fn_error 17989 17990 17991# as_fn_set_status STATUS 17992# ----------------------- 17993# Set $? to STATUS, without forking. 17994as_fn_set_status () 17995{ 17996 return $1 17997} # as_fn_set_status 17998 17999# as_fn_exit STATUS 18000# ----------------- 18001# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18002as_fn_exit () 18003{ 18004 set +e 18005 as_fn_set_status $1 18006 exit $1 18007} # as_fn_exit 18008 18009# as_fn_unset VAR 18010# --------------- 18011# Portably unset VAR. 18012as_fn_unset () 18013{ 18014 { eval $1=; unset $1;} 18015} 18016as_unset=as_fn_unset 18017# as_fn_append VAR VALUE 18018# ---------------------- 18019# Append the text in VALUE to the end of the definition contained in VAR. Take 18020# advantage of any shell optimizations that allow amortized linear growth over 18021# repeated appends, instead of the typical quadratic growth present in naive 18022# implementations. 18023if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18024 eval 'as_fn_append () 18025 { 18026 eval $1+=\$2 18027 }' 18028else 18029 as_fn_append () 18030 { 18031 eval $1=\$$1\$2 18032 } 18033fi # as_fn_append 18034 18035# as_fn_arith ARG... 18036# ------------------ 18037# Perform arithmetic evaluation on the ARGs, and store the result in the 18038# global $as_val. Take advantage of shells that can avoid forks. The arguments 18039# must be portable across $(()) and expr. 18040if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18041 eval 'as_fn_arith () 18042 { 18043 as_val=$(( $* )) 18044 }' 18045else 18046 as_fn_arith () 18047 { 18048 as_val=`expr "$@" || test $? -eq 1` 18049 } 18050fi # as_fn_arith 18051 18052 18053if expr a : '\(a\)' >/dev/null 2>&1 && 18054 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18055 as_expr=expr 18056else 18057 as_expr=false 18058fi 18059 18060if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18061 as_basename=basename 18062else 18063 as_basename=false 18064fi 18065 18066if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18067 as_dirname=dirname 18068else 18069 as_dirname=false 18070fi 18071 18072as_me=`$as_basename -- "$0" || 18073$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18074 X"$0" : 'X\(//\)$' \| \ 18075 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18076$as_echo X/"$0" | 18077 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18078 s//\1/ 18079 q 18080 } 18081 /^X\/\(\/\/\)$/{ 18082 s//\1/ 18083 q 18084 } 18085 /^X\/\(\/\).*/{ 18086 s//\1/ 18087 q 18088 } 18089 s/.*/./; q'` 18090 18091# Avoid depending upon Character Ranges. 18092as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18093as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18094as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18095as_cr_digits='0123456789' 18096as_cr_alnum=$as_cr_Letters$as_cr_digits 18097 18098ECHO_C= ECHO_N= ECHO_T= 18099case `echo -n x` in #((((( 18100-n*) 18101 case `echo 'xy\c'` in 18102 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18103 xy) ECHO_C='\c';; 18104 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18105 ECHO_T=' ';; 18106 esac;; 18107*) 18108 ECHO_N='-n';; 18109esac 18110 18111rm -f conf$$ conf$$.exe conf$$.file 18112if test -d conf$$.dir; then 18113 rm -f conf$$.dir/conf$$.file 18114else 18115 rm -f conf$$.dir 18116 mkdir conf$$.dir 2>/dev/null 18117fi 18118if (echo >conf$$.file) 2>/dev/null; then 18119 if ln -s conf$$.file conf$$ 2>/dev/null; then 18120 as_ln_s='ln -s' 18121 # ... but there are two gotchas: 18122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18124 # In both cases, we have to default to `cp -p'. 18125 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18126 as_ln_s='cp -p' 18127 elif ln conf$$.file conf$$ 2>/dev/null; then 18128 as_ln_s=ln 18129 else 18130 as_ln_s='cp -p' 18131 fi 18132else 18133 as_ln_s='cp -p' 18134fi 18135rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18136rmdir conf$$.dir 2>/dev/null 18137 18138 18139# as_fn_mkdir_p 18140# ------------- 18141# Create "$as_dir" as a directory, including parents if necessary. 18142as_fn_mkdir_p () 18143{ 18144 18145 case $as_dir in #( 18146 -*) as_dir=./$as_dir;; 18147 esac 18148 test -d "$as_dir" || eval $as_mkdir_p || { 18149 as_dirs= 18150 while :; do 18151 case $as_dir in #( 18152 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18153 *) as_qdir=$as_dir;; 18154 esac 18155 as_dirs="'$as_qdir' $as_dirs" 18156 as_dir=`$as_dirname -- "$as_dir" || 18157$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18158 X"$as_dir" : 'X\(//\)[^/]' \| \ 18159 X"$as_dir" : 'X\(//\)$' \| \ 18160 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18161$as_echo X"$as_dir" | 18162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18163 s//\1/ 18164 q 18165 } 18166 /^X\(\/\/\)[^/].*/{ 18167 s//\1/ 18168 q 18169 } 18170 /^X\(\/\/\)$/{ 18171 s//\1/ 18172 q 18173 } 18174 /^X\(\/\).*/{ 18175 s//\1/ 18176 q 18177 } 18178 s/.*/./; q'` 18179 test -d "$as_dir" && break 18180 done 18181 test -z "$as_dirs" || eval "mkdir $as_dirs" 18182 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18183 18184 18185} # as_fn_mkdir_p 18186if mkdir -p . 2>/dev/null; then 18187 as_mkdir_p='mkdir -p "$as_dir"' 18188else 18189 test -d ./-p && rmdir ./-p 18190 as_mkdir_p=false 18191fi 18192 18193if test -x / >/dev/null 2>&1; then 18194 as_test_x='test -x' 18195else 18196 if ls -dL / >/dev/null 2>&1; then 18197 as_ls_L_option=L 18198 else 18199 as_ls_L_option= 18200 fi 18201 as_test_x=' 18202 eval sh -c '\'' 18203 if test -d "$1"; then 18204 test -d "$1/."; 18205 else 18206 case $1 in #( 18207 -*)set "./$1";; 18208 esac; 18209 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18210 ???[sx]*):;;*)false;;esac;fi 18211 '\'' sh 18212 ' 18213fi 18214as_executable_p=$as_test_x 18215 18216# Sed expression to map a string onto a valid CPP name. 18217as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18218 18219# Sed expression to map a string onto a valid variable name. 18220as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18221 18222 18223exec 6>&1 18224## ----------------------------------- ## 18225## Main body of $CONFIG_STATUS script. ## 18226## ----------------------------------- ## 18227_ASEOF 18228test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18229 18230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18231# Save the log message, to keep $0 and so on meaningful, and to 18232# report actual input values of CONFIG_FILES etc. instead of their 18233# values after options handling. 18234ac_log=" 18235This file was extended by libXfixes $as_me 5.0.1, which was 18236generated by GNU Autoconf 2.68. Invocation command line was 18237 18238 CONFIG_FILES = $CONFIG_FILES 18239 CONFIG_HEADERS = $CONFIG_HEADERS 18240 CONFIG_LINKS = $CONFIG_LINKS 18241 CONFIG_COMMANDS = $CONFIG_COMMANDS 18242 $ $0 $@ 18243 18244on `(hostname || uname -n) 2>/dev/null | sed 1q` 18245" 18246 18247_ACEOF 18248 18249case $ac_config_files in *" 18250"*) set x $ac_config_files; shift; ac_config_files=$*;; 18251esac 18252 18253case $ac_config_headers in *" 18254"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18255esac 18256 18257 18258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18259# Files that config.status was made for. 18260config_files="$ac_config_files" 18261config_headers="$ac_config_headers" 18262config_commands="$ac_config_commands" 18263 18264_ACEOF 18265 18266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18267ac_cs_usage="\ 18268\`$as_me' instantiates files and other configuration actions 18269from templates according to the current configuration. Unless the files 18270and actions are specified as TAGs, all are instantiated by default. 18271 18272Usage: $0 [OPTION]... [TAG]... 18273 18274 -h, --help print this help, then exit 18275 -V, --version print version number and configuration settings, then exit 18276 --config print configuration, then exit 18277 -q, --quiet, --silent 18278 do not print progress messages 18279 -d, --debug don't remove temporary files 18280 --recheck update $as_me by reconfiguring in the same conditions 18281 --file=FILE[:TEMPLATE] 18282 instantiate the configuration file FILE 18283 --header=FILE[:TEMPLATE] 18284 instantiate the configuration header FILE 18285 18286Configuration files: 18287$config_files 18288 18289Configuration headers: 18290$config_headers 18291 18292Configuration commands: 18293$config_commands 18294 18295Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18296 18297_ACEOF 18298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18299ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18300ac_cs_version="\\ 18301libXfixes config.status 5.0.1 18302configured by $0, generated by GNU Autoconf 2.68, 18303 with options \\"\$ac_cs_config\\" 18304 18305Copyright (C) 2010 Free Software Foundation, Inc. 18306This config.status script is free software; the Free Software Foundation 18307gives unlimited permission to copy, distribute and modify it." 18308 18309ac_pwd='$ac_pwd' 18310srcdir='$srcdir' 18311INSTALL='$INSTALL' 18312MKDIR_P='$MKDIR_P' 18313AWK='$AWK' 18314test -n "\$AWK" || AWK=awk 18315_ACEOF 18316 18317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18318# The default lists apply if the user does not specify any file. 18319ac_need_defaults=: 18320while test $# != 0 18321do 18322 case $1 in 18323 --*=?*) 18324 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18325 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18326 ac_shift=: 18327 ;; 18328 --*=) 18329 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18330 ac_optarg= 18331 ac_shift=: 18332 ;; 18333 *) 18334 ac_option=$1 18335 ac_optarg=$2 18336 ac_shift=shift 18337 ;; 18338 esac 18339 18340 case $ac_option in 18341 # Handling of the options. 18342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18343 ac_cs_recheck=: ;; 18344 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18345 $as_echo "$ac_cs_version"; exit ;; 18346 --config | --confi | --conf | --con | --co | --c ) 18347 $as_echo "$ac_cs_config"; exit ;; 18348 --debug | --debu | --deb | --de | --d | -d ) 18349 debug=: ;; 18350 --file | --fil | --fi | --f ) 18351 $ac_shift 18352 case $ac_optarg in 18353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18354 '') as_fn_error $? "missing file argument" ;; 18355 esac 18356 as_fn_append CONFIG_FILES " '$ac_optarg'" 18357 ac_need_defaults=false;; 18358 --header | --heade | --head | --hea ) 18359 $ac_shift 18360 case $ac_optarg in 18361 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18362 esac 18363 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18364 ac_need_defaults=false;; 18365 --he | --h) 18366 # Conflict between --help and --header 18367 as_fn_error $? "ambiguous option: \`$1' 18368Try \`$0 --help' for more information.";; 18369 --help | --hel | -h ) 18370 $as_echo "$ac_cs_usage"; exit ;; 18371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18372 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18373 ac_cs_silent=: ;; 18374 18375 # This is an error. 18376 -*) as_fn_error $? "unrecognized option: \`$1' 18377Try \`$0 --help' for more information." ;; 18378 18379 *) as_fn_append ac_config_targets " $1" 18380 ac_need_defaults=false ;; 18381 18382 esac 18383 shift 18384done 18385 18386ac_configure_extra_args= 18387 18388if $ac_cs_silent; then 18389 exec 6>/dev/null 18390 ac_configure_extra_args="$ac_configure_extra_args --silent" 18391fi 18392 18393_ACEOF 18394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18395if \$ac_cs_recheck; then 18396 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18397 shift 18398 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18399 CONFIG_SHELL='$SHELL' 18400 export CONFIG_SHELL 18401 exec "\$@" 18402fi 18403 18404_ACEOF 18405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18406exec 5>>config.log 18407{ 18408 echo 18409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18410## Running $as_me. ## 18411_ASBOX 18412 $as_echo "$ac_log" 18413} >&5 18414 18415_ACEOF 18416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18417# 18418# INIT-COMMANDS 18419# 18420AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18421 18422 18423# The HP-UX ksh and POSIX shell print the target directory to stdout 18424# if CDPATH is set. 18425(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18426 18427sed_quote_subst='$sed_quote_subst' 18428double_quote_subst='$double_quote_subst' 18429delay_variable_subst='$delay_variable_subst' 18430macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18431macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18432enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18433enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18434pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18435enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18436SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18437ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18438PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18439host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18440host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18441host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18442build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18443build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18444build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18445SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18446Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18447GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18448EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18449FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18450LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18451NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18452LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18453max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18454ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18455exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18456lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18457lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18458lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18459lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18460lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18461reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18462reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18463OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18464deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18465file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18466file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18467want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18468DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18469sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18470AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18471AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18472archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18473STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18474RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18475old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18476old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18477old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18478lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18479CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18480CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18481compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18482GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18483lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18484lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18485lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18486lt_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"`' 18487nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18488lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18489objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18490MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18491lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18492lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18493lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18494lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18495lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18496need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18497MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18498DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18499NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18500LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18501OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18502OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18503libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18504shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18505extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18506archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18507enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18508export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18509whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18510compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18511old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18512old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18513archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18514archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18515module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18516module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18517with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18518allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18519no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18520hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18521hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18522hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18523hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18524hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18525hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18526hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18527inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18528link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18529always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18530export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18531exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18532include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18533prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18534postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18535file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18536variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18537need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18538need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18539version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18540runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18541shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18542shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18543libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18544library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18545soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18546install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18547postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18548postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18549finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18550finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18551hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18552sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18553sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18554hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18555enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18556enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18557enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18558old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18559striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18560 18561LTCC='$LTCC' 18562LTCFLAGS='$LTCFLAGS' 18563compiler='$compiler_DEFAULT' 18564 18565# A function that is used when there is no print builtin or printf. 18566func_fallback_echo () 18567{ 18568 eval 'cat <<_LTECHO_EOF 18569\$1 18570_LTECHO_EOF' 18571} 18572 18573# Quote evaled strings. 18574for var in SHELL \ 18575ECHO \ 18576PATH_SEPARATOR \ 18577SED \ 18578GREP \ 18579EGREP \ 18580FGREP \ 18581LD \ 18582NM \ 18583LN_S \ 18584lt_SP2NL \ 18585lt_NL2SP \ 18586reload_flag \ 18587OBJDUMP \ 18588deplibs_check_method \ 18589file_magic_cmd \ 18590file_magic_glob \ 18591want_nocaseglob \ 18592DLLTOOL \ 18593sharedlib_from_linklib_cmd \ 18594AR \ 18595AR_FLAGS \ 18596archiver_list_spec \ 18597STRIP \ 18598RANLIB \ 18599CC \ 18600CFLAGS \ 18601compiler \ 18602lt_cv_sys_global_symbol_pipe \ 18603lt_cv_sys_global_symbol_to_cdecl \ 18604lt_cv_sys_global_symbol_to_c_name_address \ 18605lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18606nm_file_list_spec \ 18607lt_prog_compiler_no_builtin_flag \ 18608lt_prog_compiler_pic \ 18609lt_prog_compiler_wl \ 18610lt_prog_compiler_static \ 18611lt_cv_prog_compiler_c_o \ 18612need_locks \ 18613MANIFEST_TOOL \ 18614DSYMUTIL \ 18615NMEDIT \ 18616LIPO \ 18617OTOOL \ 18618OTOOL64 \ 18619shrext_cmds \ 18620export_dynamic_flag_spec \ 18621whole_archive_flag_spec \ 18622compiler_needs_object \ 18623with_gnu_ld \ 18624allow_undefined_flag \ 18625no_undefined_flag \ 18626hardcode_libdir_flag_spec \ 18627hardcode_libdir_separator \ 18628exclude_expsyms \ 18629include_expsyms \ 18630file_list_spec \ 18631variables_saved_for_relink \ 18632libname_spec \ 18633library_names_spec \ 18634soname_spec \ 18635install_override_mode \ 18636finish_eval \ 18637old_striplib \ 18638striplib; do 18639 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18640 *[\\\\\\\`\\"\\\$]*) 18641 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18642 ;; 18643 *) 18644 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18645 ;; 18646 esac 18647done 18648 18649# Double-quote double-evaled strings. 18650for var in reload_cmds \ 18651old_postinstall_cmds \ 18652old_postuninstall_cmds \ 18653old_archive_cmds \ 18654extract_expsyms_cmds \ 18655old_archive_from_new_cmds \ 18656old_archive_from_expsyms_cmds \ 18657archive_cmds \ 18658archive_expsym_cmds \ 18659module_cmds \ 18660module_expsym_cmds \ 18661export_symbols_cmds \ 18662prelink_cmds \ 18663postlink_cmds \ 18664postinstall_cmds \ 18665postuninstall_cmds \ 18666finish_cmds \ 18667sys_lib_search_path_spec \ 18668sys_lib_dlsearch_path_spec; do 18669 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18670 *[\\\\\\\`\\"\\\$]*) 18671 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18672 ;; 18673 *) 18674 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18675 ;; 18676 esac 18677done 18678 18679ac_aux_dir='$ac_aux_dir' 18680xsi_shell='$xsi_shell' 18681lt_shell_append='$lt_shell_append' 18682 18683# See if we are running on zsh, and set the options which allow our 18684# commands through without removal of \ escapes INIT. 18685if test -n "\${ZSH_VERSION+set}" ; then 18686 setopt NO_GLOB_SUBST 18687fi 18688 18689 18690 PACKAGE='$PACKAGE' 18691 VERSION='$VERSION' 18692 TIMESTAMP='$TIMESTAMP' 18693 RM='$RM' 18694 ofile='$ofile' 18695 18696 18697 18698 18699_ACEOF 18700 18701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18702 18703# Handling of arguments. 18704for ac_config_target in $ac_config_targets 18705do 18706 case $ac_config_target in 18707 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18708 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18709 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18710 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18711 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18712 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 18713 "xfixes.pc") CONFIG_FILES="$CONFIG_FILES xfixes.pc" ;; 18714 18715 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18716 esac 18717done 18718 18719 18720# If the user did not use the arguments to specify the items to instantiate, 18721# then the envvar interface is used. Set only those that are not. 18722# We use the long form for the default assignment because of an extremely 18723# bizarre bug on SunOS 4.1.3. 18724if $ac_need_defaults; then 18725 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18726 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18727 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18728fi 18729 18730# Have a temporary directory for convenience. Make it in the build tree 18731# simply because there is no reason against having it here, and in addition, 18732# creating and moving files from /tmp can sometimes cause problems. 18733# Hook for its removal unless debugging. 18734# Note that there is a small window in which the directory will not be cleaned: 18735# after its creation but before its name has been assigned to `$tmp'. 18736$debug || 18737{ 18738 tmp= ac_tmp= 18739 trap 'exit_status=$? 18740 : "${ac_tmp:=$tmp}" 18741 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18742' 0 18743 trap 'as_fn_exit 1' 1 2 13 15 18744} 18745# Create a (secure) tmp directory for tmp files. 18746 18747{ 18748 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18749 test -d "$tmp" 18750} || 18751{ 18752 tmp=./conf$$-$RANDOM 18753 (umask 077 && mkdir "$tmp") 18754} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18755ac_tmp=$tmp 18756 18757# Set up the scripts for CONFIG_FILES section. 18758# No need to generate them if there are no CONFIG_FILES. 18759# This happens for instance with `./config.status config.h'. 18760if test -n "$CONFIG_FILES"; then 18761 18762 18763ac_cr=`echo X | tr X '\015'` 18764# On cygwin, bash can eat \r inside `` if the user requested igncr. 18765# But we know of no other shell where ac_cr would be empty at this 18766# point, so we can use a bashism as a fallback. 18767if test "x$ac_cr" = x; then 18768 eval ac_cr=\$\'\\r\' 18769fi 18770ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18771if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18772 ac_cs_awk_cr='\\r' 18773else 18774 ac_cs_awk_cr=$ac_cr 18775fi 18776 18777echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18778_ACEOF 18779 18780 18781{ 18782 echo "cat >conf$$subs.awk <<_ACEOF" && 18783 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18784 echo "_ACEOF" 18785} >conf$$subs.sh || 18786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18787ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18788ac_delim='%!_!# ' 18789for ac_last_try in false false false false false :; do 18790 . ./conf$$subs.sh || 18791 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18792 18793 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18794 if test $ac_delim_n = $ac_delim_num; then 18795 break 18796 elif $ac_last_try; then 18797 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18798 else 18799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18800 fi 18801done 18802rm -f conf$$subs.sh 18803 18804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18805cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18806_ACEOF 18807sed -n ' 18808h 18809s/^/S["/; s/!.*/"]=/ 18810p 18811g 18812s/^[^!]*!// 18813:repl 18814t repl 18815s/'"$ac_delim"'$// 18816t delim 18817:nl 18818h 18819s/\(.\{148\}\)..*/\1/ 18820t more1 18821s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18822p 18823n 18824b repl 18825:more1 18826s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18827p 18828g 18829s/.\{148\}// 18830t nl 18831:delim 18832h 18833s/\(.\{148\}\)..*/\1/ 18834t more2 18835s/["\\]/\\&/g; s/^/"/; s/$/"/ 18836p 18837b 18838:more2 18839s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18840p 18841g 18842s/.\{148\}// 18843t delim 18844' <conf$$subs.awk | sed ' 18845/^[^""]/{ 18846 N 18847 s/\n// 18848} 18849' >>$CONFIG_STATUS || ac_write_fail=1 18850rm -f conf$$subs.awk 18851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18852_ACAWK 18853cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18854 for (key in S) S_is_set[key] = 1 18855 FS = "" 18856 18857} 18858{ 18859 line = $ 0 18860 nfields = split(line, field, "@") 18861 substed = 0 18862 len = length(field[1]) 18863 for (i = 2; i < nfields; i++) { 18864 key = field[i] 18865 keylen = length(key) 18866 if (S_is_set[key]) { 18867 value = S[key] 18868 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18869 len += length(value) + length(field[++i]) 18870 substed = 1 18871 } else 18872 len += 1 + keylen 18873 } 18874 18875 print line 18876} 18877 18878_ACAWK 18879_ACEOF 18880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18881if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18882 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18883else 18884 cat 18885fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18886 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18887_ACEOF 18888 18889# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18890# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18891# trailing colons and then remove the whole line if VPATH becomes empty 18892# (actually we leave an empty line to preserve line numbers). 18893if test "x$srcdir" = x.; then 18894 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18895h 18896s/// 18897s/^/:/ 18898s/[ ]*$/:/ 18899s/:\$(srcdir):/:/g 18900s/:\${srcdir}:/:/g 18901s/:@srcdir@:/:/g 18902s/^:*// 18903s/:*$// 18904x 18905s/\(=[ ]*\).*/\1/ 18906G 18907s/\n// 18908s/^[^=]*=[ ]*$// 18909}' 18910fi 18911 18912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18913fi # test -n "$CONFIG_FILES" 18914 18915# Set up the scripts for CONFIG_HEADERS section. 18916# No need to generate them if there are no CONFIG_HEADERS. 18917# This happens for instance with `./config.status Makefile'. 18918if test -n "$CONFIG_HEADERS"; then 18919cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18920BEGIN { 18921_ACEOF 18922 18923# Transform confdefs.h into an awk script `defines.awk', embedded as 18924# here-document in config.status, that substitutes the proper values into 18925# config.h.in to produce config.h. 18926 18927# Create a delimiter string that does not exist in confdefs.h, to ease 18928# handling of long lines. 18929ac_delim='%!_!# ' 18930for ac_last_try in false false :; do 18931 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18932 if test -z "$ac_tt"; then 18933 break 18934 elif $ac_last_try; then 18935 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18936 else 18937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18938 fi 18939done 18940 18941# For the awk script, D is an array of macro values keyed by name, 18942# likewise P contains macro parameters if any. Preserve backslash 18943# newline sequences. 18944 18945ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18946sed -n ' 18947s/.\{148\}/&'"$ac_delim"'/g 18948t rset 18949:rset 18950s/^[ ]*#[ ]*define[ ][ ]*/ / 18951t def 18952d 18953:def 18954s/\\$// 18955t bsnl 18956s/["\\]/\\&/g 18957s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18958D["\1"]=" \3"/p 18959s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18960d 18961:bsnl 18962s/["\\]/\\&/g 18963s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18964D["\1"]=" \3\\\\\\n"\\/p 18965t cont 18966s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18967t cont 18968d 18969:cont 18970n 18971s/.\{148\}/&'"$ac_delim"'/g 18972t clear 18973:clear 18974s/\\$// 18975t bsnlc 18976s/["\\]/\\&/g; s/^/"/; s/$/"/p 18977d 18978:bsnlc 18979s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18980b cont 18981' <confdefs.h | sed ' 18982s/'"$ac_delim"'/"\\\ 18983"/g' >>$CONFIG_STATUS || ac_write_fail=1 18984 18985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18986 for (key in D) D_is_set[key] = 1 18987 FS = "" 18988} 18989/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18990 line = \$ 0 18991 split(line, arg, " ") 18992 if (arg[1] == "#") { 18993 defundef = arg[2] 18994 mac1 = arg[3] 18995 } else { 18996 defundef = substr(arg[1], 2) 18997 mac1 = arg[2] 18998 } 18999 split(mac1, mac2, "(") #) 19000 macro = mac2[1] 19001 prefix = substr(line, 1, index(line, defundef) - 1) 19002 if (D_is_set[macro]) { 19003 # Preserve the white space surrounding the "#". 19004 print prefix "define", macro P[macro] D[macro] 19005 next 19006 } else { 19007 # Replace #undef with comments. This is necessary, for example, 19008 # in the case of _POSIX_SOURCE, which is predefined and required 19009 # on some systems where configure will not decide to define it. 19010 if (defundef == "undef") { 19011 print "/*", prefix defundef, macro, "*/" 19012 next 19013 } 19014 } 19015} 19016{ print } 19017_ACAWK 19018_ACEOF 19019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19020 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19021fi # test -n "$CONFIG_HEADERS" 19022 19023 19024eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19025shift 19026for ac_tag 19027do 19028 case $ac_tag in 19029 :[FHLC]) ac_mode=$ac_tag; continue;; 19030 esac 19031 case $ac_mode$ac_tag in 19032 :[FHL]*:*);; 19033 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19034 :[FH]-) ac_tag=-:-;; 19035 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19036 esac 19037 ac_save_IFS=$IFS 19038 IFS=: 19039 set x $ac_tag 19040 IFS=$ac_save_IFS 19041 shift 19042 ac_file=$1 19043 shift 19044 19045 case $ac_mode in 19046 :L) ac_source=$1;; 19047 :[FH]) 19048 ac_file_inputs= 19049 for ac_f 19050 do 19051 case $ac_f in 19052 -) ac_f="$ac_tmp/stdin";; 19053 *) # Look for the file first in the build tree, then in the source tree 19054 # (if the path is not absolute). The absolute path cannot be DOS-style, 19055 # because $ac_f cannot contain `:'. 19056 test -f "$ac_f" || 19057 case $ac_f in 19058 [\\/$]*) false;; 19059 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19060 esac || 19061 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19062 esac 19063 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19064 as_fn_append ac_file_inputs " '$ac_f'" 19065 done 19066 19067 # Let's still pretend it is `configure' which instantiates (i.e., don't 19068 # use $as_me), people would be surprised to read: 19069 # /* config.h. Generated by config.status. */ 19070 configure_input='Generated from '` 19071 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19072 `' by configure.' 19073 if test x"$ac_file" != x-; then 19074 configure_input="$ac_file. $configure_input" 19075 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19076$as_echo "$as_me: creating $ac_file" >&6;} 19077 fi 19078 # Neutralize special characters interpreted by sed in replacement strings. 19079 case $configure_input in #( 19080 *\&* | *\|* | *\\* ) 19081 ac_sed_conf_input=`$as_echo "$configure_input" | 19082 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19083 *) ac_sed_conf_input=$configure_input;; 19084 esac 19085 19086 case $ac_tag in 19087 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19089 esac 19090 ;; 19091 esac 19092 19093 ac_dir=`$as_dirname -- "$ac_file" || 19094$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19095 X"$ac_file" : 'X\(//\)[^/]' \| \ 19096 X"$ac_file" : 'X\(//\)$' \| \ 19097 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19098$as_echo X"$ac_file" | 19099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19100 s//\1/ 19101 q 19102 } 19103 /^X\(\/\/\)[^/].*/{ 19104 s//\1/ 19105 q 19106 } 19107 /^X\(\/\/\)$/{ 19108 s//\1/ 19109 q 19110 } 19111 /^X\(\/\).*/{ 19112 s//\1/ 19113 q 19114 } 19115 s/.*/./; q'` 19116 as_dir="$ac_dir"; as_fn_mkdir_p 19117 ac_builddir=. 19118 19119case "$ac_dir" in 19120.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19121*) 19122 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19123 # A ".." for each directory in $ac_dir_suffix. 19124 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19125 case $ac_top_builddir_sub in 19126 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19127 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19128 esac ;; 19129esac 19130ac_abs_top_builddir=$ac_pwd 19131ac_abs_builddir=$ac_pwd$ac_dir_suffix 19132# for backward compatibility: 19133ac_top_builddir=$ac_top_build_prefix 19134 19135case $srcdir in 19136 .) # We are building in place. 19137 ac_srcdir=. 19138 ac_top_srcdir=$ac_top_builddir_sub 19139 ac_abs_top_srcdir=$ac_pwd ;; 19140 [\\/]* | ?:[\\/]* ) # Absolute name. 19141 ac_srcdir=$srcdir$ac_dir_suffix; 19142 ac_top_srcdir=$srcdir 19143 ac_abs_top_srcdir=$srcdir ;; 19144 *) # Relative name. 19145 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19146 ac_top_srcdir=$ac_top_build_prefix$srcdir 19147 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19148esac 19149ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19150 19151 19152 case $ac_mode in 19153 :F) 19154 # 19155 # CONFIG_FILE 19156 # 19157 19158 case $INSTALL in 19159 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19160 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19161 esac 19162 ac_MKDIR_P=$MKDIR_P 19163 case $MKDIR_P in 19164 [\\/$]* | ?:[\\/]* ) ;; 19165 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19166 esac 19167_ACEOF 19168 19169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19170# If the template does not know about datarootdir, expand it. 19171# FIXME: This hack should be removed a few years after 2.60. 19172ac_datarootdir_hack=; ac_datarootdir_seen= 19173ac_sed_dataroot=' 19174/datarootdir/ { 19175 p 19176 q 19177} 19178/@datadir@/p 19179/@docdir@/p 19180/@infodir@/p 19181/@localedir@/p 19182/@mandir@/p' 19183case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19184*datarootdir*) ac_datarootdir_seen=yes;; 19185*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19187$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19188_ACEOF 19189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19190 ac_datarootdir_hack=' 19191 s&@datadir@&$datadir&g 19192 s&@docdir@&$docdir&g 19193 s&@infodir@&$infodir&g 19194 s&@localedir@&$localedir&g 19195 s&@mandir@&$mandir&g 19196 s&\\\${datarootdir}&$datarootdir&g' ;; 19197esac 19198_ACEOF 19199 19200# Neutralize VPATH when `$srcdir' = `.'. 19201# Shell code in configure.ac might set extrasub. 19202# FIXME: do we really want to maintain this feature? 19203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19204ac_sed_extra="$ac_vpsub 19205$extrasub 19206_ACEOF 19207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19208:t 19209/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19210s|@configure_input@|$ac_sed_conf_input|;t t 19211s&@top_builddir@&$ac_top_builddir_sub&;t t 19212s&@top_build_prefix@&$ac_top_build_prefix&;t t 19213s&@srcdir@&$ac_srcdir&;t t 19214s&@abs_srcdir@&$ac_abs_srcdir&;t t 19215s&@top_srcdir@&$ac_top_srcdir&;t t 19216s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19217s&@builddir@&$ac_builddir&;t t 19218s&@abs_builddir@&$ac_abs_builddir&;t t 19219s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19220s&@INSTALL@&$ac_INSTALL&;t t 19221s&@MKDIR_P@&$ac_MKDIR_P&;t t 19222$ac_datarootdir_hack 19223" 19224eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19225 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19226 19227test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19228 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19229 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19230 "$ac_tmp/out"`; test -z "$ac_out"; } && 19231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19232which seems to be undefined. Please make sure it is defined" >&5 19233$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19234which seems to be undefined. Please make sure it is defined" >&2;} 19235 19236 rm -f "$ac_tmp/stdin" 19237 case $ac_file in 19238 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19239 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19240 esac \ 19241 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19242 ;; 19243 :H) 19244 # 19245 # CONFIG_HEADER 19246 # 19247 if test x"$ac_file" != x-; then 19248 { 19249 $as_echo "/* $configure_input */" \ 19250 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19251 } >"$ac_tmp/config.h" \ 19252 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19253 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19254 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19255$as_echo "$as_me: $ac_file is unchanged" >&6;} 19256 else 19257 rm -f "$ac_file" 19258 mv "$ac_tmp/config.h" "$ac_file" \ 19259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19260 fi 19261 else 19262 $as_echo "/* $configure_input */" \ 19263 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19264 || as_fn_error $? "could not create -" "$LINENO" 5 19265 fi 19266# Compute "$ac_file"'s index in $config_headers. 19267_am_arg="$ac_file" 19268_am_stamp_count=1 19269for _am_header in $config_headers :; do 19270 case $_am_header in 19271 $_am_arg | $_am_arg:* ) 19272 break ;; 19273 * ) 19274 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19275 esac 19276done 19277echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19278$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19279 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19280 X"$_am_arg" : 'X\(//\)$' \| \ 19281 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19282$as_echo X"$_am_arg" | 19283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19284 s//\1/ 19285 q 19286 } 19287 /^X\(\/\/\)[^/].*/{ 19288 s//\1/ 19289 q 19290 } 19291 /^X\(\/\/\)$/{ 19292 s//\1/ 19293 q 19294 } 19295 /^X\(\/\).*/{ 19296 s//\1/ 19297 q 19298 } 19299 s/.*/./; q'`/stamp-h$_am_stamp_count 19300 ;; 19301 19302 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19303$as_echo "$as_me: executing $ac_file commands" >&6;} 19304 ;; 19305 esac 19306 19307 19308 case $ac_file$ac_mode in 19309 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19310 # Older Autoconf quotes --file arguments for eval, but not when files 19311 # are listed without --file. Let's play safe and only enable the eval 19312 # if we detect the quoting. 19313 case $CONFIG_FILES in 19314 *\'*) eval set x "$CONFIG_FILES" ;; 19315 *) set x $CONFIG_FILES ;; 19316 esac 19317 shift 19318 for mf 19319 do 19320 # Strip MF so we end up with the name of the file. 19321 mf=`echo "$mf" | sed -e 's/:.*$//'` 19322 # Check whether this is an Automake generated Makefile or not. 19323 # We used to match only the files named 'Makefile.in', but 19324 # some people rename them; so instead we look at the file content. 19325 # Grep'ing the first line is not enough: some people post-process 19326 # each Makefile.in and add a new line on top of each file to say so. 19327 # Grep'ing the whole file is not good either: AIX grep has a line 19328 # limit of 2048, but all sed's we know have understand at least 4000. 19329 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19330 dirpart=`$as_dirname -- "$mf" || 19331$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19332 X"$mf" : 'X\(//\)[^/]' \| \ 19333 X"$mf" : 'X\(//\)$' \| \ 19334 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19335$as_echo X"$mf" | 19336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19337 s//\1/ 19338 q 19339 } 19340 /^X\(\/\/\)[^/].*/{ 19341 s//\1/ 19342 q 19343 } 19344 /^X\(\/\/\)$/{ 19345 s//\1/ 19346 q 19347 } 19348 /^X\(\/\).*/{ 19349 s//\1/ 19350 q 19351 } 19352 s/.*/./; q'` 19353 else 19354 continue 19355 fi 19356 # Extract the definition of DEPDIR, am__include, and am__quote 19357 # from the Makefile without running 'make'. 19358 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19359 test -z "$DEPDIR" && continue 19360 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19361 test -z "$am__include" && continue 19362 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19363 # Find all dependency output files, they are included files with 19364 # $(DEPDIR) in their names. We invoke sed twice because it is the 19365 # simplest approach to changing $(DEPDIR) to its actual value in the 19366 # expansion. 19367 for file in `sed -n " 19368 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19369 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19370 # Make sure the directory exists. 19371 test -f "$dirpart/$file" && continue 19372 fdir=`$as_dirname -- "$file" || 19373$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19374 X"$file" : 'X\(//\)[^/]' \| \ 19375 X"$file" : 'X\(//\)$' \| \ 19376 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19377$as_echo X"$file" | 19378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19379 s//\1/ 19380 q 19381 } 19382 /^X\(\/\/\)[^/].*/{ 19383 s//\1/ 19384 q 19385 } 19386 /^X\(\/\/\)$/{ 19387 s//\1/ 19388 q 19389 } 19390 /^X\(\/\).*/{ 19391 s//\1/ 19392 q 19393 } 19394 s/.*/./; q'` 19395 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19396 # echo "creating $dirpart/$file" 19397 echo '# dummy' > "$dirpart/$file" 19398 done 19399 done 19400} 19401 ;; 19402 "libtool":C) 19403 19404 # See if we are running on zsh, and set the options which allow our 19405 # commands through without removal of \ escapes. 19406 if test -n "${ZSH_VERSION+set}" ; then 19407 setopt NO_GLOB_SUBST 19408 fi 19409 19410 cfgfile="${ofile}T" 19411 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19412 $RM "$cfgfile" 19413 19414 cat <<_LT_EOF >> "$cfgfile" 19415#! $SHELL 19416 19417# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19418# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19419# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19420# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19421# 19422# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19423# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19424# Foundation, Inc. 19425# Written by Gordon Matzigkeit, 1996 19426# 19427# This file is part of GNU Libtool. 19428# 19429# GNU Libtool is free software; you can redistribute it and/or 19430# modify it under the terms of the GNU General Public License as 19431# published by the Free Software Foundation; either version 2 of 19432# the License, or (at your option) any later version. 19433# 19434# As a special exception to the GNU General Public License, 19435# if you distribute this file as part of a program or library that 19436# is built using GNU Libtool, you may include this file under the 19437# same distribution terms that you use for the rest of that program. 19438# 19439# GNU Libtool is distributed in the hope that it will be useful, 19440# but WITHOUT ANY WARRANTY; without even the implied warranty of 19441# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19442# GNU General Public License for more details. 19443# 19444# You should have received a copy of the GNU General Public License 19445# along with GNU Libtool; see the file COPYING. If not, a copy 19446# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19447# obtained by writing to the Free Software Foundation, Inc., 19448# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19449 19450 19451# The names of the tagged configurations supported by this script. 19452available_tags="" 19453 19454# ### BEGIN LIBTOOL CONFIG 19455 19456# Which release of libtool.m4 was used? 19457macro_version=$macro_version 19458macro_revision=$macro_revision 19459 19460# Whether or not to build shared libraries. 19461build_libtool_libs=$enable_shared 19462 19463# Whether or not to build static libraries. 19464build_old_libs=$enable_static 19465 19466# What type of objects to build. 19467pic_mode=$pic_mode 19468 19469# Whether or not to optimize for fast installation. 19470fast_install=$enable_fast_install 19471 19472# Shell to use when invoking shell scripts. 19473SHELL=$lt_SHELL 19474 19475# An echo program that protects backslashes. 19476ECHO=$lt_ECHO 19477 19478# The PATH separator for the build system. 19479PATH_SEPARATOR=$lt_PATH_SEPARATOR 19480 19481# The host system. 19482host_alias=$host_alias 19483host=$host 19484host_os=$host_os 19485 19486# The build system. 19487build_alias=$build_alias 19488build=$build 19489build_os=$build_os 19490 19491# A sed program that does not truncate output. 19492SED=$lt_SED 19493 19494# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19495Xsed="\$SED -e 1s/^X//" 19496 19497# A grep program that handles long lines. 19498GREP=$lt_GREP 19499 19500# An ERE matcher. 19501EGREP=$lt_EGREP 19502 19503# A literal string matcher. 19504FGREP=$lt_FGREP 19505 19506# A BSD- or MS-compatible name lister. 19507NM=$lt_NM 19508 19509# Whether we need soft or hard links. 19510LN_S=$lt_LN_S 19511 19512# What is the maximum length of a command? 19513max_cmd_len=$max_cmd_len 19514 19515# Object file suffix (normally "o"). 19516objext=$ac_objext 19517 19518# Executable file suffix (normally ""). 19519exeext=$exeext 19520 19521# whether the shell understands "unset". 19522lt_unset=$lt_unset 19523 19524# turn spaces into newlines. 19525SP2NL=$lt_lt_SP2NL 19526 19527# turn newlines into spaces. 19528NL2SP=$lt_lt_NL2SP 19529 19530# convert \$build file names to \$host format. 19531to_host_file_cmd=$lt_cv_to_host_file_cmd 19532 19533# convert \$build files to toolchain format. 19534to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19535 19536# An object symbol dumper. 19537OBJDUMP=$lt_OBJDUMP 19538 19539# Method to check whether dependent libraries are shared objects. 19540deplibs_check_method=$lt_deplibs_check_method 19541 19542# Command to use when deplibs_check_method = "file_magic". 19543file_magic_cmd=$lt_file_magic_cmd 19544 19545# How to find potential files when deplibs_check_method = "file_magic". 19546file_magic_glob=$lt_file_magic_glob 19547 19548# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19549want_nocaseglob=$lt_want_nocaseglob 19550 19551# DLL creation program. 19552DLLTOOL=$lt_DLLTOOL 19553 19554# Command to associate shared and link libraries. 19555sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19556 19557# The archiver. 19558AR=$lt_AR 19559 19560# Flags to create an archive. 19561AR_FLAGS=$lt_AR_FLAGS 19562 19563# How to feed a file listing to the archiver. 19564archiver_list_spec=$lt_archiver_list_spec 19565 19566# A symbol stripping program. 19567STRIP=$lt_STRIP 19568 19569# Commands used to install an old-style archive. 19570RANLIB=$lt_RANLIB 19571old_postinstall_cmds=$lt_old_postinstall_cmds 19572old_postuninstall_cmds=$lt_old_postuninstall_cmds 19573 19574# Whether to use a lock for old archive extraction. 19575lock_old_archive_extraction=$lock_old_archive_extraction 19576 19577# A C compiler. 19578LTCC=$lt_CC 19579 19580# LTCC compiler flags. 19581LTCFLAGS=$lt_CFLAGS 19582 19583# Take the output of nm and produce a listing of raw symbols and C names. 19584global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19585 19586# Transform the output of nm in a proper C declaration. 19587global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19588 19589# Transform the output of nm in a C name address pair. 19590global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19591 19592# Transform the output of nm in a C name address pair when lib prefix is needed. 19593global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19594 19595# Specify filename containing input files for \$NM. 19596nm_file_list_spec=$lt_nm_file_list_spec 19597 19598# The root where to search for dependent libraries,and in which our libraries should be installed. 19599lt_sysroot=$lt_sysroot 19600 19601# The name of the directory that contains temporary libtool files. 19602objdir=$objdir 19603 19604# Used to examine libraries when file_magic_cmd begins with "file". 19605MAGIC_CMD=$MAGIC_CMD 19606 19607# Must we lock files when doing compilation? 19608need_locks=$lt_need_locks 19609 19610# Manifest tool. 19611MANIFEST_TOOL=$lt_MANIFEST_TOOL 19612 19613# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19614DSYMUTIL=$lt_DSYMUTIL 19615 19616# Tool to change global to local symbols on Mac OS X. 19617NMEDIT=$lt_NMEDIT 19618 19619# Tool to manipulate fat objects and archives on Mac OS X. 19620LIPO=$lt_LIPO 19621 19622# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19623OTOOL=$lt_OTOOL 19624 19625# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19626OTOOL64=$lt_OTOOL64 19627 19628# Old archive suffix (normally "a"). 19629libext=$libext 19630 19631# Shared library suffix (normally ".so"). 19632shrext_cmds=$lt_shrext_cmds 19633 19634# The commands to extract the exported symbol list from a shared archive. 19635extract_expsyms_cmds=$lt_extract_expsyms_cmds 19636 19637# Variables whose values should be saved in libtool wrapper scripts and 19638# restored at link time. 19639variables_saved_for_relink=$lt_variables_saved_for_relink 19640 19641# Do we need the "lib" prefix for modules? 19642need_lib_prefix=$need_lib_prefix 19643 19644# Do we need a version for libraries? 19645need_version=$need_version 19646 19647# Library versioning type. 19648version_type=$version_type 19649 19650# Shared library runtime path variable. 19651runpath_var=$runpath_var 19652 19653# Shared library path variable. 19654shlibpath_var=$shlibpath_var 19655 19656# Is shlibpath searched before the hard-coded library search path? 19657shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19658 19659# Format of library name prefix. 19660libname_spec=$lt_libname_spec 19661 19662# List of archive names. First name is the real one, the rest are links. 19663# The last name is the one that the linker finds with -lNAME 19664library_names_spec=$lt_library_names_spec 19665 19666# The coded name of the library, if different from the real name. 19667soname_spec=$lt_soname_spec 19668 19669# Permission mode override for installation of shared libraries. 19670install_override_mode=$lt_install_override_mode 19671 19672# Command to use after installation of a shared archive. 19673postinstall_cmds=$lt_postinstall_cmds 19674 19675# Command to use after uninstallation of a shared archive. 19676postuninstall_cmds=$lt_postuninstall_cmds 19677 19678# Commands used to finish a libtool library installation in a directory. 19679finish_cmds=$lt_finish_cmds 19680 19681# As "finish_cmds", except a single script fragment to be evaled but 19682# not shown. 19683finish_eval=$lt_finish_eval 19684 19685# Whether we should hardcode library paths into libraries. 19686hardcode_into_libs=$hardcode_into_libs 19687 19688# Compile-time system search path for libraries. 19689sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19690 19691# Run-time system search path for libraries. 19692sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19693 19694# Whether dlopen is supported. 19695dlopen_support=$enable_dlopen 19696 19697# Whether dlopen of programs is supported. 19698dlopen_self=$enable_dlopen_self 19699 19700# Whether dlopen of statically linked programs is supported. 19701dlopen_self_static=$enable_dlopen_self_static 19702 19703# Commands to strip libraries. 19704old_striplib=$lt_old_striplib 19705striplib=$lt_striplib 19706 19707 19708# The linker used to build libraries. 19709LD=$lt_LD 19710 19711# How to create reloadable object files. 19712reload_flag=$lt_reload_flag 19713reload_cmds=$lt_reload_cmds 19714 19715# Commands used to build an old-style archive. 19716old_archive_cmds=$lt_old_archive_cmds 19717 19718# A language specific compiler. 19719CC=$lt_compiler 19720 19721# Is the compiler the GNU compiler? 19722with_gcc=$GCC 19723 19724# Compiler flag to turn off builtin functions. 19725no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19726 19727# Additional compiler flags for building library objects. 19728pic_flag=$lt_lt_prog_compiler_pic 19729 19730# How to pass a linker flag through the compiler. 19731wl=$lt_lt_prog_compiler_wl 19732 19733# Compiler flag to prevent dynamic linking. 19734link_static_flag=$lt_lt_prog_compiler_static 19735 19736# Does compiler simultaneously support -c and -o options? 19737compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19738 19739# Whether or not to add -lc for building shared libraries. 19740build_libtool_need_lc=$archive_cmds_need_lc 19741 19742# Whether or not to disallow shared libs when runtime libs are static. 19743allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19744 19745# Compiler flag to allow reflexive dlopens. 19746export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19747 19748# Compiler flag to generate shared objects directly from archives. 19749whole_archive_flag_spec=$lt_whole_archive_flag_spec 19750 19751# Whether the compiler copes with passing no objects directly. 19752compiler_needs_object=$lt_compiler_needs_object 19753 19754# Create an old-style archive from a shared archive. 19755old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19756 19757# Create a temporary old-style archive to link instead of a shared archive. 19758old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19759 19760# Commands used to build a shared archive. 19761archive_cmds=$lt_archive_cmds 19762archive_expsym_cmds=$lt_archive_expsym_cmds 19763 19764# Commands used to build a loadable module if different from building 19765# a shared archive. 19766module_cmds=$lt_module_cmds 19767module_expsym_cmds=$lt_module_expsym_cmds 19768 19769# Whether we are building with GNU ld or not. 19770with_gnu_ld=$lt_with_gnu_ld 19771 19772# Flag that allows shared libraries with undefined symbols to be built. 19773allow_undefined_flag=$lt_allow_undefined_flag 19774 19775# Flag that enforces no undefined symbols. 19776no_undefined_flag=$lt_no_undefined_flag 19777 19778# Flag to hardcode \$libdir into a binary during linking. 19779# This must work even if \$libdir does not exist 19780hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19781 19782# Whether we need a single "-rpath" flag with a separated argument. 19783hardcode_libdir_separator=$lt_hardcode_libdir_separator 19784 19785# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19786# DIR into the resulting binary. 19787hardcode_direct=$hardcode_direct 19788 19789# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19790# DIR into the resulting binary and the resulting library dependency is 19791# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19792# library is relocated. 19793hardcode_direct_absolute=$hardcode_direct_absolute 19794 19795# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19796# into the resulting binary. 19797hardcode_minus_L=$hardcode_minus_L 19798 19799# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19800# into the resulting binary. 19801hardcode_shlibpath_var=$hardcode_shlibpath_var 19802 19803# Set to "yes" if building a shared library automatically hardcodes DIR 19804# into the library and all subsequent libraries and executables linked 19805# against it. 19806hardcode_automatic=$hardcode_automatic 19807 19808# Set to yes if linker adds runtime paths of dependent libraries 19809# to runtime path list. 19810inherit_rpath=$inherit_rpath 19811 19812# Whether libtool must link a program against all its dependency libraries. 19813link_all_deplibs=$link_all_deplibs 19814 19815# Set to "yes" if exported symbols are required. 19816always_export_symbols=$always_export_symbols 19817 19818# The commands to list exported symbols. 19819export_symbols_cmds=$lt_export_symbols_cmds 19820 19821# Symbols that should not be listed in the preloaded symbols. 19822exclude_expsyms=$lt_exclude_expsyms 19823 19824# Symbols that must always be exported. 19825include_expsyms=$lt_include_expsyms 19826 19827# Commands necessary for linking programs (against libraries) with templates. 19828prelink_cmds=$lt_prelink_cmds 19829 19830# Commands necessary for finishing linking programs. 19831postlink_cmds=$lt_postlink_cmds 19832 19833# Specify filename containing input files. 19834file_list_spec=$lt_file_list_spec 19835 19836# How to hardcode a shared library path into an executable. 19837hardcode_action=$hardcode_action 19838 19839# ### END LIBTOOL CONFIG 19840 19841_LT_EOF 19842 19843 case $host_os in 19844 aix3*) 19845 cat <<\_LT_EOF >> "$cfgfile" 19846# AIX sometimes has problems with the GCC collect2 program. For some 19847# reason, if we set the COLLECT_NAMES environment variable, the problems 19848# vanish in a puff of smoke. 19849if test "X${COLLECT_NAMES+set}" != Xset; then 19850 COLLECT_NAMES= 19851 export COLLECT_NAMES 19852fi 19853_LT_EOF 19854 ;; 19855 esac 19856 19857 19858ltmain="$ac_aux_dir/ltmain.sh" 19859 19860 19861 # We use sed instead of cat because bash on DJGPP gets confused if 19862 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19863 # text mode, it properly converts lines to CR/LF. This bash problem 19864 # is reportedly fixed, but why not run on old versions too? 19865 sed '$q' "$ltmain" >> "$cfgfile" \ 19866 || (rm -f "$cfgfile"; exit 1) 19867 19868 if test x"$xsi_shell" = xyes; then 19869 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 19870func_dirname ()\ 19871{\ 19872\ case ${1} in\ 19873\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19874\ * ) func_dirname_result="${3}" ;;\ 19875\ esac\ 19876} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 19877 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19879test 0 -eq $? || _lt_function_replace_fail=: 19880 19881 19882 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19883func_basename ()\ 19884{\ 19885\ func_basename_result="${1##*/}"\ 19886} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19887 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19889test 0 -eq $? || _lt_function_replace_fail=: 19890 19891 19892 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19893func_dirname_and_basename ()\ 19894{\ 19895\ case ${1} in\ 19896\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19897\ * ) func_dirname_result="${3}" ;;\ 19898\ esac\ 19899\ func_basename_result="${1##*/}"\ 19900} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19901 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19903test 0 -eq $? || _lt_function_replace_fail=: 19904 19905 19906 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19907func_stripname ()\ 19908{\ 19909\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 19910\ # positional parameters, so assign one to ordinary parameter first.\ 19911\ func_stripname_result=${3}\ 19912\ func_stripname_result=${func_stripname_result#"${1}"}\ 19913\ func_stripname_result=${func_stripname_result%"${2}"}\ 19914} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 19915 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19917test 0 -eq $? || _lt_function_replace_fail=: 19918 19919 19920 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19921func_split_long_opt ()\ 19922{\ 19923\ func_split_long_opt_name=${1%%=*}\ 19924\ func_split_long_opt_arg=${1#*=}\ 19925} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19926 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19928test 0 -eq $? || _lt_function_replace_fail=: 19929 19930 19931 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19932func_split_short_opt ()\ 19933{\ 19934\ func_split_short_opt_arg=${1#??}\ 19935\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 19936} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19937 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19939test 0 -eq $? || _lt_function_replace_fail=: 19940 19941 19942 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19943func_lo2o ()\ 19944{\ 19945\ case ${1} in\ 19946\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 19947\ *) func_lo2o_result=${1} ;;\ 19948\ esac\ 19949} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 19950 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19952test 0 -eq $? || _lt_function_replace_fail=: 19953 19954 19955 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19956func_xform ()\ 19957{\ 19958 func_xform_result=${1%.*}.lo\ 19959} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 19960 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19962test 0 -eq $? || _lt_function_replace_fail=: 19963 19964 19965 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19966func_arith ()\ 19967{\ 19968 func_arith_result=$(( $* ))\ 19969} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19970 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19972test 0 -eq $? || _lt_function_replace_fail=: 19973 19974 19975 sed -e '/^func_len ()$/,/^} # func_len /c\ 19976func_len ()\ 19977{\ 19978 func_len_result=${#1}\ 19979} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19980 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19982test 0 -eq $? || _lt_function_replace_fail=: 19983 19984fi 19985 19986if test x"$lt_shell_append" = xyes; then 19987 sed -e '/^func_append ()$/,/^} # func_append /c\ 19988func_append ()\ 19989{\ 19990 eval "${1}+=\\${2}"\ 19991} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19992 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19994test 0 -eq $? || _lt_function_replace_fail=: 19995 19996 19997 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19998func_append_quoted ()\ 19999{\ 20000\ func_quote_for_eval "${2}"\ 20001\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20002} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20003 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20005test 0 -eq $? || _lt_function_replace_fail=: 20006 20007 20008 # Save a `func_append' function call where possible by direct use of '+=' 20009 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20010 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20011 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20012 test 0 -eq $? || _lt_function_replace_fail=: 20013else 20014 # Save a `func_append' function call even when '+=' is not available 20015 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20016 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20017 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20018 test 0 -eq $? || _lt_function_replace_fail=: 20019fi 20020 20021if test x"$_lt_function_replace_fail" = x":"; then 20022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20023$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20024fi 20025 20026 20027 mv -f "$cfgfile" "$ofile" || 20028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20029 chmod +x "$ofile" 20030 20031 ;; 20032 20033 esac 20034done # for ac_tag 20035 20036 20037as_fn_exit 0 20038_ACEOF 20039ac_clean_files=$ac_clean_files_save 20040 20041test $ac_write_fail = 0 || 20042 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20043 20044 20045# configure is writing to config.log, and then calls config.status. 20046# config.status does its own redirection, appending to config.log. 20047# Unfortunately, on DOS this fails, as config.log is still kept open 20048# by configure, so config.status won't be able to write to it; its 20049# output is simply discarded. So we exec the FD to /dev/null, 20050# effectively closing config.log, so it can be properly (re)opened and 20051# appended to by config.status. When coming back to configure, we 20052# need to make the FD available again. 20053if test "$no_create" != yes; then 20054 ac_cs_success=: 20055 ac_config_status_args= 20056 test "$silent" = yes && 20057 ac_config_status_args="$ac_config_status_args --quiet" 20058 exec 5>/dev/null 20059 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20060 exec 5>>config.log 20061 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20062 # would make configure fail if this is the last instruction. 20063 $ac_cs_success || as_fn_exit 1 20064fi 20065if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20067$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20068fi 20069 20070