configure revision 2836776b
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXft 2.3.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='libXft' 573PACKAGE_TARNAME='libXft' 574PACKAGE_VERSION='2.3.1' 575PACKAGE_STRING='libXft 2.3.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 620FONTCONFIG_LIBS 621FONTCONFIG_CFLAGS 622FREETYPE_LIBS 623FREETYPE_CFLAGS 624XRENDER_LIBS 625XRENDER_CFLAGS 626XFT_LT_VERSION 627AM_BACKSLASH 628AM_DEFAULT_VERBOSITY 629MAN_SUBSTS 630XORG_MAN_PAGE 631ADMIN_MAN_DIR 632DRIVER_MAN_DIR 633MISC_MAN_DIR 634FILE_MAN_DIR 635LIB_MAN_DIR 636APP_MAN_DIR 637ADMIN_MAN_SUFFIX 638DRIVER_MAN_SUFFIX 639MISC_MAN_SUFFIX 640FILE_MAN_SUFFIX 641LIB_MAN_SUFFIX 642APP_MAN_SUFFIX 643INSTALL_CMD 644PKG_CONFIG 645CHANGELOG_CMD 646STRICT_CFLAGS 647CWARNFLAGS 648BASE_CFLAGS 649CPP 650OTOOL64 651OTOOL 652LIPO 653NMEDIT 654DSYMUTIL 655MANIFEST_TOOL 656RANLIB 657ac_ct_AR 658AR 659DLLTOOL 660OBJDUMP 661LN_S 662NM 663ac_ct_DUMPBIN 664DUMPBIN 665LD 666FGREP 667EGREP 668GREP 669SED 670am__fastdepCC_FALSE 671am__fastdepCC_TRUE 672CCDEPMODE 673am__nodep 674AMDEPBACKSLASH 675AMDEP_FALSE 676AMDEP_TRUE 677am__quote 678am__include 679DEPDIR 680OBJEXT 681EXEEXT 682ac_ct_CC 683CPPFLAGS 684LDFLAGS 685CFLAGS 686CC 687host_os 688host_vendor 689host_cpu 690host 691build_os 692build_vendor 693build_cpu 694build 695LIBTOOL 696MAINT 697MAINTAINER_MODE_FALSE 698MAINTAINER_MODE_TRUE 699am__untar 700am__tar 701AMTAR 702am__leading_dot 703SET_MAKE 704AWK 705mkdir_p 706MKDIR_P 707INSTALL_STRIP_PROGRAM 708STRIP 709install_sh 710MAKEINFO 711AUTOHEADER 712AUTOMAKE 713AUTOCONF 714ACLOCAL 715VERSION 716PACKAGE 717CYGPATH_W 718am__isrc 719INSTALL_DATA 720INSTALL_SCRIPT 721INSTALL_PROGRAM 722target_alias 723host_alias 724build_alias 725LIBS 726ECHO_T 727ECHO_N 728ECHO_C 729DEFS 730mandir 731localedir 732libdir 733psdir 734pdfdir 735dvidir 736htmldir 737infodir 738docdir 739oldincludedir 740includedir 741localstatedir 742sharedstatedir 743sysconfdir 744datadir 745datarootdir 746libexecdir 747sbindir 748bindir 749program_transform_name 750prefix 751exec_prefix 752PACKAGE_URL 753PACKAGE_BUGREPORT 754PACKAGE_STRING 755PACKAGE_VERSION 756PACKAGE_TARNAME 757PACKAGE_NAME 758PATH_SEPARATOR 759SHELL' 760ac_subst_files='' 761ac_user_opts=' 762enable_option_checking 763enable_maintainer_mode 764enable_shared 765enable_static 766with_pic 767enable_fast_install 768enable_dependency_tracking 769with_gnu_ld 770with_sysroot 771enable_libtool_lock 772enable_selective_werror 773enable_strict_compilation 774enable_silent_rules 775' 776 ac_precious_vars='build_alias 777host_alias 778target_alias 779CC 780CFLAGS 781LDFLAGS 782LIBS 783CPPFLAGS 784CPP 785PKG_CONFIG 786XRENDER_CFLAGS 787XRENDER_LIBS 788FREETYPE_CFLAGS 789FREETYPE_LIBS 790FONTCONFIG_CFLAGS 791FONTCONFIG_LIBS' 792 793 794# Initialize some variables set by options. 795ac_init_help= 796ac_init_version=false 797ac_unrecognized_opts= 798ac_unrecognized_sep= 799# The variables have the same names as the options, with 800# dashes changed to underlines. 801cache_file=/dev/null 802exec_prefix=NONE 803no_create= 804no_recursion= 805prefix=NONE 806program_prefix=NONE 807program_suffix=NONE 808program_transform_name=s,x,x, 809silent= 810site= 811srcdir= 812verbose= 813x_includes=NONE 814x_libraries=NONE 815 816# Installation directory options. 817# These are left unexpanded so users can "make install exec_prefix=/foo" 818# and all the variables that are supposed to be based on exec_prefix 819# by default will actually change. 820# Use braces instead of parens because sh, perl, etc. also accept them. 821# (The list follows the same order as the GNU Coding Standards.) 822bindir='${exec_prefix}/bin' 823sbindir='${exec_prefix}/sbin' 824libexecdir='${exec_prefix}/libexec' 825datarootdir='${prefix}/share' 826datadir='${datarootdir}' 827sysconfdir='${prefix}/etc' 828sharedstatedir='${prefix}/com' 829localstatedir='${prefix}/var' 830includedir='${prefix}/include' 831oldincludedir='/usr/include' 832docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 833infodir='${datarootdir}/info' 834htmldir='${docdir}' 835dvidir='${docdir}' 836pdfdir='${docdir}' 837psdir='${docdir}' 838libdir='${exec_prefix}/lib' 839localedir='${datarootdir}/locale' 840mandir='${datarootdir}/man' 841 842ac_prev= 843ac_dashdash= 844for ac_option 845do 846 # If the previous option needs an argument, assign it. 847 if test -n "$ac_prev"; then 848 eval $ac_prev=\$ac_option 849 ac_prev= 850 continue 851 fi 852 853 case $ac_option in 854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 855 *=) ac_optarg= ;; 856 *) ac_optarg=yes ;; 857 esac 858 859 # Accept the important Cygnus configure options, so we can diagnose typos. 860 861 case $ac_dashdash$ac_option in 862 --) 863 ac_dashdash=yes ;; 864 865 -bindir | --bindir | --bindi | --bind | --bin | --bi) 866 ac_prev=bindir ;; 867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 868 bindir=$ac_optarg ;; 869 870 -build | --build | --buil | --bui | --bu) 871 ac_prev=build_alias ;; 872 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 873 build_alias=$ac_optarg ;; 874 875 -cache-file | --cache-file | --cache-fil | --cache-fi \ 876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 877 ac_prev=cache_file ;; 878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 880 cache_file=$ac_optarg ;; 881 882 --config-cache | -C) 883 cache_file=config.cache ;; 884 885 -datadir | --datadir | --datadi | --datad) 886 ac_prev=datadir ;; 887 -datadir=* | --datadir=* | --datadi=* | --datad=*) 888 datadir=$ac_optarg ;; 889 890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 891 | --dataroo | --dataro | --datar) 892 ac_prev=datarootdir ;; 893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 895 datarootdir=$ac_optarg ;; 896 897 -disable-* | --disable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error $? "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906"enable_$ac_useropt" 907"*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=no ;; 912 913 -docdir | --docdir | --docdi | --doc | --do) 914 ac_prev=docdir ;; 915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 916 docdir=$ac_optarg ;; 917 918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 919 ac_prev=dvidir ;; 920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 921 dvidir=$ac_optarg ;; 922 923 -enable-* | --enable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=\$ac_optarg ;; 938 939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 941 | --exec | --exe | --ex) 942 ac_prev=exec_prefix ;; 943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 945 | --exec=* | --exe=* | --ex=*) 946 exec_prefix=$ac_optarg ;; 947 948 -gas | --gas | --ga | --g) 949 # Obsolete; use --with-gas. 950 with_gas=yes ;; 951 952 -help | --help | --hel | --he | -h) 953 ac_init_help=long ;; 954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 955 ac_init_help=recursive ;; 956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 957 ac_init_help=short ;; 958 959 -host | --host | --hos | --ho) 960 ac_prev=host_alias ;; 961 -host=* | --host=* | --hos=* | --ho=*) 962 host_alias=$ac_optarg ;; 963 964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 965 ac_prev=htmldir ;; 966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 967 | --ht=*) 968 htmldir=$ac_optarg ;; 969 970 -includedir | --includedir | --includedi | --included | --include \ 971 | --includ | --inclu | --incl | --inc) 972 ac_prev=includedir ;; 973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 974 | --includ=* | --inclu=* | --incl=* | --inc=*) 975 includedir=$ac_optarg ;; 976 977 -infodir | --infodir | --infodi | --infod | --info | --inf) 978 ac_prev=infodir ;; 979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 980 infodir=$ac_optarg ;; 981 982 -libdir | --libdir | --libdi | --libd) 983 ac_prev=libdir ;; 984 -libdir=* | --libdir=* | --libdi=* | --libd=*) 985 libdir=$ac_optarg ;; 986 987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 988 | --libexe | --libex | --libe) 989 ac_prev=libexecdir ;; 990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 991 | --libexe=* | --libex=* | --libe=*) 992 libexecdir=$ac_optarg ;; 993 994 -localedir | --localedir | --localedi | --localed | --locale) 995 ac_prev=localedir ;; 996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 997 localedir=$ac_optarg ;; 998 999 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1000 | --localstate | --localstat | --localsta | --localst | --locals) 1001 ac_prev=localstatedir ;; 1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1004 localstatedir=$ac_optarg ;; 1005 1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1007 ac_prev=mandir ;; 1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1009 mandir=$ac_optarg ;; 1010 1011 -nfp | --nfp | --nf) 1012 # Obsolete; use --without-fp. 1013 with_fp=no ;; 1014 1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1016 | --no-cr | --no-c | -n) 1017 no_create=yes ;; 1018 1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1021 no_recursion=yes ;; 1022 1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1025 | --oldin | --oldi | --old | --ol | --o) 1026 ac_prev=oldincludedir ;; 1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1030 oldincludedir=$ac_optarg ;; 1031 1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1033 ac_prev=prefix ;; 1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1035 prefix=$ac_optarg ;; 1036 1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1038 | --program-pre | --program-pr | --program-p) 1039 ac_prev=program_prefix ;; 1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1042 program_prefix=$ac_optarg ;; 1043 1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1045 | --program-suf | --program-su | --program-s) 1046 ac_prev=program_suffix ;; 1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1049 program_suffix=$ac_optarg ;; 1050 1051 -program-transform-name | --program-transform-name \ 1052 | --program-transform-nam | --program-transform-na \ 1053 | --program-transform-n | --program-transform- \ 1054 | --program-transform | --program-transfor \ 1055 | --program-transfo | --program-transf \ 1056 | --program-trans | --program-tran \ 1057 | --progr-tra | --program-tr | --program-t) 1058 ac_prev=program_transform_name ;; 1059 -program-transform-name=* | --program-transform-name=* \ 1060 | --program-transform-nam=* | --program-transform-na=* \ 1061 | --program-transform-n=* | --program-transform-=* \ 1062 | --program-transform=* | --program-transfor=* \ 1063 | --program-transfo=* | --program-transf=* \ 1064 | --program-trans=* | --program-tran=* \ 1065 | --progr-tra=* | --program-tr=* | --program-t=*) 1066 program_transform_name=$ac_optarg ;; 1067 1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1069 ac_prev=pdfdir ;; 1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1071 pdfdir=$ac_optarg ;; 1072 1073 -psdir | --psdir | --psdi | --psd | --ps) 1074 ac_prev=psdir ;; 1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1076 psdir=$ac_optarg ;; 1077 1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1079 | -silent | --silent | --silen | --sile | --sil) 1080 silent=yes ;; 1081 1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1083 ac_prev=sbindir ;; 1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1085 | --sbi=* | --sb=*) 1086 sbindir=$ac_optarg ;; 1087 1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1090 | --sharedst | --shareds | --shared | --share | --shar \ 1091 | --sha | --sh) 1092 ac_prev=sharedstatedir ;; 1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1096 | --sha=* | --sh=*) 1097 sharedstatedir=$ac_optarg ;; 1098 1099 -site | --site | --sit) 1100 ac_prev=site ;; 1101 -site=* | --site=* | --sit=*) 1102 site=$ac_optarg ;; 1103 1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1105 ac_prev=srcdir ;; 1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1107 srcdir=$ac_optarg ;; 1108 1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1110 | --syscon | --sysco | --sysc | --sys | --sy) 1111 ac_prev=sysconfdir ;; 1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1114 sysconfdir=$ac_optarg ;; 1115 1116 -target | --target | --targe | --targ | --tar | --ta | --t) 1117 ac_prev=target_alias ;; 1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1119 target_alias=$ac_optarg ;; 1120 1121 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1122 verbose=yes ;; 1123 1124 -version | --version | --versio | --versi | --vers | -V) 1125 ac_init_version=: ;; 1126 1127 -with-* | --with-*) 1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1129 # Reject names that are not valid shell variable names. 1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 as_fn_error $? "invalid package name: $ac_useropt" 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136"with_$ac_useropt" 1137"*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval with_$ac_useropt=\$ac_optarg ;; 1142 1143 -without-* | --without-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: $ac_useropt" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=no ;; 1158 1159 --x) 1160 # Obsolete; use --with-x. 1161 with_x=yes ;; 1162 1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1164 | --x-incl | --x-inc | --x-in | --x-i) 1165 ac_prev=x_includes ;; 1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1168 x_includes=$ac_optarg ;; 1169 1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1172 ac_prev=x_libraries ;; 1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1175 x_libraries=$ac_optarg ;; 1176 1177 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1178Try \`$0 --help' for more information" 1179 ;; 1180 1181 *=*) 1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1183 # Reject names that are not valid shell variable names. 1184 case $ac_envvar in #( 1185 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1187 esac 1188 eval $ac_envvar=\$ac_optarg 1189 export $ac_envvar ;; 1190 1191 *) 1192 # FIXME: should be removed in autoconf 3.0. 1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1197 ;; 1198 1199 esac 1200done 1201 1202if test -n "$ac_prev"; then 1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1204 as_fn_error $? "missing argument to $ac_option" 1205fi 1206 1207if test -n "$ac_unrecognized_opts"; then 1208 case $enable_option_checking in 1209 no) ;; 1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1212 esac 1213fi 1214 1215# Check all directory arguments for consistency. 1216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1217 datadir sysconfdir sharedstatedir localstatedir includedir \ 1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1219 libdir localedir mandir 1220do 1221 eval ac_val=\$$ac_var 1222 # Remove trailing slashes. 1223 case $ac_val in 1224 */ ) 1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1226 eval $ac_var=\$ac_val;; 1227 esac 1228 # Be sure to have absolute directory names. 1229 case $ac_val in 1230 [\\/$]* | ?:[\\/]* ) continue;; 1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1232 esac 1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1234done 1235 1236# There might be people who depend on the old broken behavior: `$host' 1237# used to hold the argument of --host etc. 1238# FIXME: To remove some day. 1239build=$build_alias 1240host=$host_alias 1241target=$target_alias 1242 1243# FIXME: To remove some day. 1244if test "x$host_alias" != x; then 1245 if test "x$build_alias" = x; then 1246 cross_compiling=maybe 1247 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1248 If a cross compiler is detected then cross compile mode will be used" >&2 1249 elif test "x$build_alias" != "x$host_alias"; then 1250 cross_compiling=yes 1251 fi 1252fi 1253 1254ac_tool_prefix= 1255test -n "$host_alias" && ac_tool_prefix=$host_alias- 1256 1257test "$silent" = yes && exec 6>/dev/null 1258 1259 1260ac_pwd=`pwd` && test -n "$ac_pwd" && 1261ac_ls_di=`ls -di .` && 1262ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1263 as_fn_error $? "working directory cannot be determined" 1264test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1265 as_fn_error $? "pwd does not report name of working directory" 1266 1267 1268# Find the source files, if location was not specified. 1269if test -z "$srcdir"; then 1270 ac_srcdir_defaulted=yes 1271 # Try the directory containing this script, then the parent directory. 1272 ac_confdir=`$as_dirname -- "$as_myself" || 1273$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1274 X"$as_myself" : 'X\(//\)[^/]' \| \ 1275 X"$as_myself" : 'X\(//\)$' \| \ 1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1277$as_echo X"$as_myself" | 1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)[^/].*/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\).*/{ 1291 s//\1/ 1292 q 1293 } 1294 s/.*/./; q'` 1295 srcdir=$ac_confdir 1296 if test ! -r "$srcdir/$ac_unique_file"; then 1297 srcdir=.. 1298 fi 1299else 1300 ac_srcdir_defaulted=no 1301fi 1302if test ! -r "$srcdir/$ac_unique_file"; then 1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1305fi 1306ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1307ac_abs_confdir=`( 1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1309 pwd)` 1310# When building in place, set srcdir=. 1311if test "$ac_abs_confdir" = "$ac_pwd"; then 1312 srcdir=. 1313fi 1314# Remove unnecessary trailing slashes from srcdir. 1315# Double slashes in file names in object file debugging info 1316# mess up M-x gdb in Emacs. 1317case $srcdir in 1318*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1319esac 1320for ac_var in $ac_precious_vars; do 1321 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_env_${ac_var}_value=\$${ac_var} 1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1324 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1325done 1326 1327# 1328# Report the --help message. 1329# 1330if test "$ac_init_help" = "long"; then 1331 # Omit some internal or obsolete options to make the list less imposing. 1332 # This message is too long to be a string in the A/UX 3.1 sh. 1333 cat <<_ACEOF 1334\`configure' configures libXft 2.3.1 to adapt to many kinds of systems. 1335 1336Usage: $0 [OPTION]... [VAR=VALUE]... 1337 1338To assign environment variables (e.g., CC, CFLAGS...), specify them as 1339VAR=VALUE. See below for descriptions of some of the useful variables. 1340 1341Defaults for the options are specified in brackets. 1342 1343Configuration: 1344 -h, --help display this help and exit 1345 --help=short display options specific to this package 1346 --help=recursive display the short help of all the included packages 1347 -V, --version display version information and exit 1348 -q, --quiet, --silent do not print \`checking ...' messages 1349 --cache-file=FILE cache test results in FILE [disabled] 1350 -C, --config-cache alias for \`--cache-file=config.cache' 1351 -n, --no-create do not create output files 1352 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1353 1354Installation directories: 1355 --prefix=PREFIX install architecture-independent files in PREFIX 1356 [$ac_default_prefix] 1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1358 [PREFIX] 1359 1360By default, \`make install' will install all the files in 1361\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1362an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1363for instance \`--prefix=\$HOME'. 1364 1365For better control, use the options below. 1366 1367Fine tuning of the installation directories: 1368 --bindir=DIR user executables [EPREFIX/bin] 1369 --sbindir=DIR system admin executables [EPREFIX/sbin] 1370 --libexecdir=DIR program executables [EPREFIX/libexec] 1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1374 --libdir=DIR object code libraries [EPREFIX/lib] 1375 --includedir=DIR C header files [PREFIX/include] 1376 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1379 --infodir=DIR info documentation [DATAROOTDIR/info] 1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1381 --mandir=DIR man documentation [DATAROOTDIR/man] 1382 --docdir=DIR documentation root [DATAROOTDIR/doc/libXft] 1383 --htmldir=DIR html documentation [DOCDIR] 1384 --dvidir=DIR dvi documentation [DOCDIR] 1385 --pdfdir=DIR pdf documentation [DOCDIR] 1386 --psdir=DIR ps documentation [DOCDIR] 1387_ACEOF 1388 1389 cat <<\_ACEOF 1390 1391Program names: 1392 --program-prefix=PREFIX prepend PREFIX to installed program names 1393 --program-suffix=SUFFIX append SUFFIX to installed program names 1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1395 1396System types: 1397 --build=BUILD configure for building on BUILD [guessed] 1398 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1399_ACEOF 1400fi 1401 1402if test -n "$ac_init_help"; then 1403 case $ac_init_help in 1404 short | recursive ) echo "Configuration of libXft 2.3.1:";; 1405 esac 1406 cat <<\_ACEOF 1407 1408Optional Features: 1409 --disable-option-checking ignore unrecognized --enable/--with options 1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1412 --enable-maintainer-mode enable make rules and dependencies not useful 1413 (and sometimes confusing) to the casual installer 1414 --enable-shared[=PKGS] build shared libraries [default=yes] 1415 --enable-static[=PKGS] build static libraries [default=yes] 1416 --enable-fast-install[=PKGS] 1417 optimize for fast installation [default=yes] 1418 --disable-dependency-tracking speeds up one-time build 1419 --enable-dependency-tracking do not reject slow dependency extractors 1420 --disable-libtool-lock avoid locking (might break parallel builds) 1421 --disable-selective-werror 1422 Turn off selective compiler errors. (default: 1423 enabled) 1424 --enable-strict-compilation 1425 Enable all warnings from compiler and make them 1426 errors (default: disabled) 1427 --enable-silent-rules less verbose build output (undo: `make V=1') 1428 --disable-silent-rules verbose build output (undo: `make V=0') 1429 1430Optional Packages: 1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1433 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1434 both] 1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1436 --with-sysroot=DIR Search for dependent libraries within DIR 1437 (or the compiler's sysroot if not specified). 1438 1439Some influential environment variables: 1440 CC C compiler command 1441 CFLAGS C compiler flags 1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1443 nonstandard directory <lib dir> 1444 LIBS libraries to pass to the linker, e.g. -l<library> 1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1446 you have headers in a nonstandard directory <include dir> 1447 CPP C preprocessor 1448 PKG_CONFIG path to pkg-config utility 1449 XRENDER_CFLAGS 1450 C compiler flags for XRENDER, overriding pkg-config 1451 XRENDER_LIBS 1452 linker flags for XRENDER, overriding pkg-config 1453 FREETYPE_CFLAGS 1454 C compiler flags for FREETYPE, overriding pkg-config 1455 FREETYPE_LIBS 1456 linker flags for FREETYPE, overriding pkg-config 1457 FONTCONFIG_CFLAGS 1458 C compiler flags for FONTCONFIG, overriding pkg-config 1459 FONTCONFIG_LIBS 1460 linker flags for FONTCONFIG, overriding pkg-config 1461 1462Use these variables to override the choices made by `configure' or to help 1463it to find libraries and programs with nonstandard names/locations. 1464 1465Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1466_ACEOF 1467ac_status=$? 1468fi 1469 1470if test "$ac_init_help" = "recursive"; then 1471 # If there are subdirs, report their specific --help. 1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1473 test -d "$ac_dir" || 1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1475 continue 1476 ac_builddir=. 1477 1478case "$ac_dir" in 1479.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1480*) 1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1482 # A ".." for each directory in $ac_dir_suffix. 1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1484 case $ac_top_builddir_sub in 1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1487 esac ;; 1488esac 1489ac_abs_top_builddir=$ac_pwd 1490ac_abs_builddir=$ac_pwd$ac_dir_suffix 1491# for backward compatibility: 1492ac_top_builddir=$ac_top_build_prefix 1493 1494case $srcdir in 1495 .) # We are building in place. 1496 ac_srcdir=. 1497 ac_top_srcdir=$ac_top_builddir_sub 1498 ac_abs_top_srcdir=$ac_pwd ;; 1499 [\\/]* | ?:[\\/]* ) # Absolute name. 1500 ac_srcdir=$srcdir$ac_dir_suffix; 1501 ac_top_srcdir=$srcdir 1502 ac_abs_top_srcdir=$srcdir ;; 1503 *) # Relative name. 1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1505 ac_top_srcdir=$ac_top_build_prefix$srcdir 1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1507esac 1508ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1509 1510 cd "$ac_dir" || { ac_status=$?; continue; } 1511 # Check for guested configure. 1512 if test -f "$ac_srcdir/configure.gnu"; then 1513 echo && 1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1515 elif test -f "$ac_srcdir/configure"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure" --help=recursive 1518 else 1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1520 fi || ac_status=$? 1521 cd "$ac_pwd" || { ac_status=$?; break; } 1522 done 1523fi 1524 1525test -n "$ac_init_help" && exit $ac_status 1526if $ac_init_version; then 1527 cat <<\_ACEOF 1528libXft configure 2.3.1 1529generated by GNU Autoconf 2.68 1530 1531Copyright (C) 2010 Free Software Foundation, Inc. 1532This configure script is free software; the Free Software Foundation 1533gives unlimited permission to copy, distribute and modify it. 1534_ACEOF 1535 exit 1536fi 1537 1538## ------------------------ ## 1539## Autoconf initialization. ## 1540## ------------------------ ## 1541 1542# ac_fn_c_try_compile LINENO 1543# -------------------------- 1544# Try to compile conftest.$ac_ext, and return whether this succeeded. 1545ac_fn_c_try_compile () 1546{ 1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1548 rm -f conftest.$ac_objext 1549 if { { ac_try="$ac_compile" 1550case "(($ac_try" in 1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1552 *) ac_try_echo=$ac_try;; 1553esac 1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1555$as_echo "$ac_try_echo"; } >&5 1556 (eval "$ac_compile") 2>conftest.err 1557 ac_status=$? 1558 if test -s conftest.err; then 1559 grep -v '^ *+' conftest.err >conftest.er1 1560 cat conftest.er1 >&5 1561 mv -f conftest.er1 conftest.err 1562 fi 1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1564 test $ac_status = 0; } && { 1565 test -z "$ac_c_werror_flag" || 1566 test ! -s conftest.err 1567 } && test -s conftest.$ac_objext; then : 1568 ac_retval=0 1569else 1570 $as_echo "$as_me: failed program was:" >&5 1571sed 's/^/| /' conftest.$ac_ext >&5 1572 1573 ac_retval=1 1574fi 1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576 as_fn_set_status $ac_retval 1577 1578} # ac_fn_c_try_compile 1579 1580# ac_fn_c_try_link LINENO 1581# ----------------------- 1582# Try to link conftest.$ac_ext, and return whether this succeeded. 1583ac_fn_c_try_link () 1584{ 1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1586 rm -f conftest.$ac_objext conftest$ac_exeext 1587 if { { ac_try="$ac_link" 1588case "(($ac_try" in 1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1590 *) ac_try_echo=$ac_try;; 1591esac 1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1593$as_echo "$ac_try_echo"; } >&5 1594 (eval "$ac_link") 2>conftest.err 1595 ac_status=$? 1596 if test -s conftest.err; then 1597 grep -v '^ *+' conftest.err >conftest.er1 1598 cat conftest.er1 >&5 1599 mv -f conftest.er1 conftest.err 1600 fi 1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1602 test $ac_status = 0; } && { 1603 test -z "$ac_c_werror_flag" || 1604 test ! -s conftest.err 1605 } && test -s conftest$ac_exeext && { 1606 test "$cross_compiling" = yes || 1607 $as_test_x conftest$ac_exeext 1608 }; then : 1609 ac_retval=0 1610else 1611 $as_echo "$as_me: failed program was:" >&5 1612sed 's/^/| /' conftest.$ac_ext >&5 1613 1614 ac_retval=1 1615fi 1616 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1617 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1618 # interfere with the next link command; also delete a directory that is 1619 # left behind by Apple's compiler. We do this before executing the actions. 1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1622 as_fn_set_status $ac_retval 1623 1624} # ac_fn_c_try_link 1625 1626# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1627# ------------------------------------------------------- 1628# Tests whether HEADER exists and can be compiled using the include files in 1629# INCLUDES, setting the cache variable VAR accordingly. 1630ac_fn_c_check_header_compile () 1631{ 1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1634$as_echo_n "checking for $2... " >&6; } 1635if eval \${$3+:} false; then : 1636 $as_echo_n "(cached) " >&6 1637else 1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1639/* end confdefs.h. */ 1640$4 1641#include <$2> 1642_ACEOF 1643if ac_fn_c_try_compile "$LINENO"; then : 1644 eval "$3=yes" 1645else 1646 eval "$3=no" 1647fi 1648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1649fi 1650eval ac_res=\$$3 1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1652$as_echo "$ac_res" >&6; } 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 1655} # ac_fn_c_check_header_compile 1656 1657# ac_fn_c_try_cpp LINENO 1658# ---------------------- 1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1660ac_fn_c_try_cpp () 1661{ 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 if { { ac_try="$ac_cpp conftest.$ac_ext" 1664case "(($ac_try" in 1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1666 *) ac_try_echo=$ac_try;; 1667esac 1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1669$as_echo "$ac_try_echo"; } >&5 1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1671 ac_status=$? 1672 if test -s conftest.err; then 1673 grep -v '^ *+' conftest.err >conftest.er1 1674 cat conftest.er1 >&5 1675 mv -f conftest.er1 conftest.err 1676 fi 1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1678 test $ac_status = 0; } > conftest.i && { 1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1680 test ! -s conftest.err 1681 }; then : 1682 ac_retval=0 1683else 1684 $as_echo "$as_me: failed program was:" >&5 1685sed 's/^/| /' conftest.$ac_ext >&5 1686 1687 ac_retval=1 1688fi 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1690 as_fn_set_status $ac_retval 1691 1692} # ac_fn_c_try_cpp 1693 1694# ac_fn_c_try_run LINENO 1695# ---------------------- 1696# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1697# that executables *can* be run. 1698ac_fn_c_try_run () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 if { { ac_try="$ac_link" 1702case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_link") 2>&5 1709 ac_status=$? 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1712 { { case "(($ac_try" in 1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1714 *) ac_try_echo=$ac_try;; 1715esac 1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1717$as_echo "$ac_try_echo"; } >&5 1718 (eval "$ac_try") 2>&5 1719 ac_status=$? 1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1721 test $ac_status = 0; }; }; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: program exited with status $ac_status" >&5 1725 $as_echo "$as_me: failed program was:" >&5 1726sed 's/^/| /' conftest.$ac_ext >&5 1727 1728 ac_retval=$ac_status 1729fi 1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732 as_fn_set_status $ac_retval 1733 1734} # ac_fn_c_try_run 1735 1736# ac_fn_c_check_func LINENO FUNC VAR 1737# ---------------------------------- 1738# Tests whether FUNC exists, setting the cache variable VAR accordingly 1739ac_fn_c_check_func () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1743$as_echo_n "checking for $2... " >&6; } 1744if eval \${$3+:} false; then : 1745 $as_echo_n "(cached) " >&6 1746else 1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1748/* end confdefs.h. */ 1749/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1751#define $2 innocuous_$2 1752 1753/* System header to define __stub macros and hopefully few prototypes, 1754 which can conflict with char $2 (); below. 1755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1756 <limits.h> exists even on freestanding compilers. */ 1757 1758#ifdef __STDC__ 1759# include <limits.h> 1760#else 1761# include <assert.h> 1762#endif 1763 1764#undef $2 1765 1766/* Override any GCC internal prototype to avoid an error. 1767 Use char because int might match the return type of a GCC 1768 builtin and then its argument prototype would still apply. */ 1769#ifdef __cplusplus 1770extern "C" 1771#endif 1772char $2 (); 1773/* The GNU C library defines this for functions which it implements 1774 to always fail with ENOSYS. Some functions are actually named 1775 something starting with __ and the normal name is an alias. */ 1776#if defined __stub_$2 || defined __stub___$2 1777choke me 1778#endif 1779 1780int 1781main () 1782{ 1783return $2 (); 1784 ; 1785 return 0; 1786} 1787_ACEOF 1788if ac_fn_c_try_link "$LINENO"; then : 1789 eval "$3=yes" 1790else 1791 eval "$3=no" 1792fi 1793rm -f core conftest.err conftest.$ac_objext \ 1794 conftest$ac_exeext conftest.$ac_ext 1795fi 1796eval ac_res=\$$3 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1798$as_echo "$ac_res" >&6; } 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 1801} # ac_fn_c_check_func 1802 1803# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1804# --------------------------------------------- 1805# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1806# accordingly. 1807ac_fn_c_check_decl () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 as_decl_name=`echo $2|sed 's/ *(.*//'` 1811 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1813$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1814if eval \${$3+:} false; then : 1815 $as_echo_n "(cached) " >&6 1816else 1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1818/* end confdefs.h. */ 1819$4 1820int 1821main () 1822{ 1823#ifndef $as_decl_name 1824#ifdef __cplusplus 1825 (void) $as_decl_use; 1826#else 1827 (void) $as_decl_name; 1828#endif 1829#endif 1830 1831 ; 1832 return 0; 1833} 1834_ACEOF 1835if ac_fn_c_try_compile "$LINENO"; then : 1836 eval "$3=yes" 1837else 1838 eval "$3=no" 1839fi 1840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1841fi 1842eval ac_res=\$$3 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1844$as_echo "$ac_res" >&6; } 1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1846 1847} # ac_fn_c_check_decl 1848cat >config.log <<_ACEOF 1849This file contains any messages produced by compilers while 1850running configure, to aid debugging if configure makes a mistake. 1851 1852It was created by libXft $as_me 2.3.1, which was 1853generated by GNU Autoconf 2.68. Invocation command line was 1854 1855 $ $0 $@ 1856 1857_ACEOF 1858exec 5>>config.log 1859{ 1860cat <<_ASUNAME 1861## --------- ## 1862## Platform. ## 1863## --------- ## 1864 1865hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1866uname -m = `(uname -m) 2>/dev/null || echo unknown` 1867uname -r = `(uname -r) 2>/dev/null || echo unknown` 1868uname -s = `(uname -s) 2>/dev/null || echo unknown` 1869uname -v = `(uname -v) 2>/dev/null || echo unknown` 1870 1871/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1872/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1873 1874/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1875/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1876/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1877/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1878/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1879/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1880/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1881 1882_ASUNAME 1883 1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1885for as_dir in $PATH 1886do 1887 IFS=$as_save_IFS 1888 test -z "$as_dir" && as_dir=. 1889 $as_echo "PATH: $as_dir" 1890 done 1891IFS=$as_save_IFS 1892 1893} >&5 1894 1895cat >&5 <<_ACEOF 1896 1897 1898## ----------- ## 1899## Core tests. ## 1900## ----------- ## 1901 1902_ACEOF 1903 1904 1905# Keep a trace of the command line. 1906# Strip out --no-create and --no-recursion so they do not pile up. 1907# Strip out --silent because we don't want to record it for future runs. 1908# Also quote any args containing shell meta-characters. 1909# Make two passes to allow for proper duplicate-argument suppression. 1910ac_configure_args= 1911ac_configure_args0= 1912ac_configure_args1= 1913ac_must_keep_next=false 1914for ac_pass in 1 2 1915do 1916 for ac_arg 1917 do 1918 case $ac_arg in 1919 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1921 | -silent | --silent | --silen | --sile | --sil) 1922 continue ;; 1923 *\'*) 1924 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1925 esac 1926 case $ac_pass in 1927 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1928 2) 1929 as_fn_append ac_configure_args1 " '$ac_arg'" 1930 if test $ac_must_keep_next = true; then 1931 ac_must_keep_next=false # Got value, back to normal. 1932 else 1933 case $ac_arg in 1934 *=* | --config-cache | -C | -disable-* | --disable-* \ 1935 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1936 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1937 | -with-* | --with-* | -without-* | --without-* | --x) 1938 case "$ac_configure_args0 " in 1939 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1940 esac 1941 ;; 1942 -* ) ac_must_keep_next=true ;; 1943 esac 1944 fi 1945 as_fn_append ac_configure_args " '$ac_arg'" 1946 ;; 1947 esac 1948 done 1949done 1950{ ac_configure_args0=; unset ac_configure_args0;} 1951{ ac_configure_args1=; unset ac_configure_args1;} 1952 1953# When interrupted or exit'd, cleanup temporary files, and complete 1954# config.log. We remove comments because anyway the quotes in there 1955# would cause problems or look ugly. 1956# WARNING: Use '\'' to represent an apostrophe within the trap. 1957# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1958trap 'exit_status=$? 1959 # Save into config.log some information that might help in debugging. 1960 { 1961 echo 1962 1963 $as_echo "## ---------------- ## 1964## Cache variables. ## 1965## ---------------- ##" 1966 echo 1967 # The following way of writing the cache mishandles newlines in values, 1968( 1969 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1970 eval ac_val=\$$ac_var 1971 case $ac_val in #( 1972 *${as_nl}*) 1973 case $ac_var in #( 1974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1975$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1976 esac 1977 case $ac_var in #( 1978 _ | IFS | as_nl) ;; #( 1979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1980 *) { eval $ac_var=; unset $ac_var;} ;; 1981 esac ;; 1982 esac 1983 done 1984 (set) 2>&1 | 1985 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1986 *${as_nl}ac_space=\ *) 1987 sed -n \ 1988 "s/'\''/'\''\\\\'\'''\''/g; 1989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1990 ;; #( 1991 *) 1992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1993 ;; 1994 esac | 1995 sort 1996) 1997 echo 1998 1999 $as_echo "## ----------------- ## 2000## Output variables. ## 2001## ----------------- ##" 2002 echo 2003 for ac_var in $ac_subst_vars 2004 do 2005 eval ac_val=\$$ac_var 2006 case $ac_val in 2007 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2008 esac 2009 $as_echo "$ac_var='\''$ac_val'\''" 2010 done | sort 2011 echo 2012 2013 if test -n "$ac_subst_files"; then 2014 $as_echo "## ------------------- ## 2015## File substitutions. ## 2016## ------------------- ##" 2017 echo 2018 for ac_var in $ac_subst_files 2019 do 2020 eval ac_val=\$$ac_var 2021 case $ac_val in 2022 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2023 esac 2024 $as_echo "$ac_var='\''$ac_val'\''" 2025 done | sort 2026 echo 2027 fi 2028 2029 if test -s confdefs.h; then 2030 $as_echo "## ----------- ## 2031## confdefs.h. ## 2032## ----------- ##" 2033 echo 2034 cat confdefs.h 2035 echo 2036 fi 2037 test "$ac_signal" != 0 && 2038 $as_echo "$as_me: caught signal $ac_signal" 2039 $as_echo "$as_me: exit $exit_status" 2040 } >&5 2041 rm -f core *.core core.conftest.* && 2042 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2043 exit $exit_status 2044' 0 2045for ac_signal in 1 2 13 15; do 2046 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2047done 2048ac_signal=0 2049 2050# confdefs.h avoids OS command line length limits that DEFS can exceed. 2051rm -f -r conftest* confdefs.h 2052 2053$as_echo "/* confdefs.h */" > confdefs.h 2054 2055# Predefined preprocessor variables. 2056 2057cat >>confdefs.h <<_ACEOF 2058#define PACKAGE_NAME "$PACKAGE_NAME" 2059_ACEOF 2060 2061cat >>confdefs.h <<_ACEOF 2062#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2063_ACEOF 2064 2065cat >>confdefs.h <<_ACEOF 2066#define PACKAGE_VERSION "$PACKAGE_VERSION" 2067_ACEOF 2068 2069cat >>confdefs.h <<_ACEOF 2070#define PACKAGE_STRING "$PACKAGE_STRING" 2071_ACEOF 2072 2073cat >>confdefs.h <<_ACEOF 2074#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2075_ACEOF 2076 2077cat >>confdefs.h <<_ACEOF 2078#define PACKAGE_URL "$PACKAGE_URL" 2079_ACEOF 2080 2081 2082# Let the site file select an alternate cache file if it wants to. 2083# Prefer an explicitly selected file to automatically selected ones. 2084ac_site_file1=NONE 2085ac_site_file2=NONE 2086if test -n "$CONFIG_SITE"; then 2087 # We do not want a PATH search for config.site. 2088 case $CONFIG_SITE in #(( 2089 -*) ac_site_file1=./$CONFIG_SITE;; 2090 */*) ac_site_file1=$CONFIG_SITE;; 2091 *) ac_site_file1=./$CONFIG_SITE;; 2092 esac 2093elif test "x$prefix" != xNONE; then 2094 ac_site_file1=$prefix/share/config.site 2095 ac_site_file2=$prefix/etc/config.site 2096else 2097 ac_site_file1=$ac_default_prefix/share/config.site 2098 ac_site_file2=$ac_default_prefix/etc/config.site 2099fi 2100for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2101do 2102 test "x$ac_site_file" = xNONE && continue 2103 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2104 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2105$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2106 sed 's/^/| /' "$ac_site_file" >&5 2107 . "$ac_site_file" \ 2108 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2110as_fn_error $? "failed to load site script $ac_site_file 2111See \`config.log' for more details" "$LINENO" 5; } 2112 fi 2113done 2114 2115if test -r "$cache_file"; then 2116 # Some versions of bash will fail to source /dev/null (special files 2117 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2118 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2120$as_echo "$as_me: loading cache $cache_file" >&6;} 2121 case $cache_file in 2122 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2123 *) . "./$cache_file";; 2124 esac 2125 fi 2126else 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2128$as_echo "$as_me: creating cache $cache_file" >&6;} 2129 >$cache_file 2130fi 2131 2132# Check that the precious variables saved in the cache have kept the same 2133# value. 2134ac_cache_corrupted=false 2135for ac_var in $ac_precious_vars; do 2136 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2137 eval ac_new_set=\$ac_env_${ac_var}_set 2138 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2139 eval ac_new_val=\$ac_env_${ac_var}_value 2140 case $ac_old_set,$ac_new_set in 2141 set,) 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2143$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2144 ac_cache_corrupted=: ;; 2145 ,set) 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2147$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2148 ac_cache_corrupted=: ;; 2149 ,);; 2150 *) 2151 if test "x$ac_old_val" != "x$ac_new_val"; then 2152 # differences in whitespace do not lead to failure. 2153 ac_old_val_w=`echo x $ac_old_val` 2154 ac_new_val_w=`echo x $ac_new_val` 2155 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2157$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2158 ac_cache_corrupted=: 2159 else 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2161$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2162 eval $ac_var=\$ac_old_val 2163 fi 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2165$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2167$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2168 fi;; 2169 esac 2170 # Pass precious variables to config.status. 2171 if test "$ac_new_set" = set; then 2172 case $ac_new_val in 2173 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2174 *) ac_arg=$ac_var=$ac_new_val ;; 2175 esac 2176 case " $ac_configure_args " in 2177 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2178 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2179 esac 2180 fi 2181done 2182if $ac_cache_corrupted; then 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2186$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2187 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2188fi 2189## -------------------- ## 2190## Main body of script. ## 2191## -------------------- ## 2192 2193ac_ext=c 2194ac_cpp='$CPP $CPPFLAGS' 2195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2197ac_compiler_gnu=$ac_cv_c_compiler_gnu 2198 2199 2200 2201ac_config_headers="$ac_config_headers config.h" 2202 2203 2204# Initialize Automake 2205am__api_version='1.11' 2206 2207ac_aux_dir= 2208for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2209 if test -f "$ac_dir/install-sh"; then 2210 ac_aux_dir=$ac_dir 2211 ac_install_sh="$ac_aux_dir/install-sh -c" 2212 break 2213 elif test -f "$ac_dir/install.sh"; then 2214 ac_aux_dir=$ac_dir 2215 ac_install_sh="$ac_aux_dir/install.sh -c" 2216 break 2217 elif test -f "$ac_dir/shtool"; then 2218 ac_aux_dir=$ac_dir 2219 ac_install_sh="$ac_aux_dir/shtool install -c" 2220 break 2221 fi 2222done 2223if test -z "$ac_aux_dir"; then 2224 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2225fi 2226 2227# These three variables are undocumented and unsupported, 2228# and are intended to be withdrawn in a future Autoconf release. 2229# They can cause serious problems if a builder's source tree is in a directory 2230# whose full name contains unusual characters. 2231ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2232ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2233ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2234 2235 2236# Find a good install program. We prefer a C program (faster), 2237# so one script is as good as another. But avoid the broken or 2238# incompatible versions: 2239# SysV /etc/install, /usr/sbin/install 2240# SunOS /usr/etc/install 2241# IRIX /sbin/install 2242# AIX /bin/install 2243# AmigaOS /C/install, which installs bootblocks on floppy discs 2244# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2245# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2246# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2247# OS/2's system install, which has a completely different semantic 2248# ./install, which can be erroneously created by make from ./install.sh. 2249# Reject install programs that cannot install multiple files. 2250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2251$as_echo_n "checking for a BSD-compatible install... " >&6; } 2252if test -z "$INSTALL"; then 2253if ${ac_cv_path_install+:} false; then : 2254 $as_echo_n "(cached) " >&6 2255else 2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2257for as_dir in $PATH 2258do 2259 IFS=$as_save_IFS 2260 test -z "$as_dir" && as_dir=. 2261 # Account for people who put trailing slashes in PATH elements. 2262case $as_dir/ in #(( 2263 ./ | .// | /[cC]/* | \ 2264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2265 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2266 /usr/ucb/* ) ;; 2267 *) 2268 # OSF1 and SCO ODT 3.0 have their own names for install. 2269 # Don't use installbsd from OSF since it installs stuff as root 2270 # by default. 2271 for ac_prog in ginstall scoinst install; do 2272 for ac_exec_ext in '' $ac_executable_extensions; do 2273 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2274 if test $ac_prog = install && 2275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2276 # AIX install. It has an incompatible calling convention. 2277 : 2278 elif test $ac_prog = install && 2279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2280 # program-specific install script used by HP pwplus--don't use. 2281 : 2282 else 2283 rm -rf conftest.one conftest.two conftest.dir 2284 echo one > conftest.one 2285 echo two > conftest.two 2286 mkdir conftest.dir 2287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2288 test -s conftest.one && test -s conftest.two && 2289 test -s conftest.dir/conftest.one && 2290 test -s conftest.dir/conftest.two 2291 then 2292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2293 break 3 2294 fi 2295 fi 2296 fi 2297 done 2298 done 2299 ;; 2300esac 2301 2302 done 2303IFS=$as_save_IFS 2304 2305rm -rf conftest.one conftest.two conftest.dir 2306 2307fi 2308 if test "${ac_cv_path_install+set}" = set; then 2309 INSTALL=$ac_cv_path_install 2310 else 2311 # As a last resort, use the slow shell script. Don't cache a 2312 # value for INSTALL within a source directory, because that will 2313 # break other packages using the cache if that directory is 2314 # removed, or if the value is a relative name. 2315 INSTALL=$ac_install_sh 2316 fi 2317fi 2318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2319$as_echo "$INSTALL" >&6; } 2320 2321# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2322# It thinks the first close brace ends the variable substitution. 2323test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2324 2325test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2326 2327test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2328 2329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2330$as_echo_n "checking whether build environment is sane... " >&6; } 2331# Just in case 2332sleep 1 2333echo timestamp > conftest.file 2334# Reject unsafe characters in $srcdir or the absolute working directory 2335# name. Accept space and tab only in the latter. 2336am_lf=' 2337' 2338case `pwd` in 2339 *[\\\"\#\$\&\'\`$am_lf]*) 2340 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2341esac 2342case $srcdir in 2343 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2344 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2345esac 2346 2347# Do `set' in a subshell so we don't clobber the current shell's 2348# arguments. Must try -L first in case configure is actually a 2349# symlink; some systems play weird games with the mod time of symlinks 2350# (eg FreeBSD returns the mod time of the symlink's containing 2351# directory). 2352if ( 2353 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2354 if test "$*" = "X"; then 2355 # -L didn't work. 2356 set X `ls -t "$srcdir/configure" conftest.file` 2357 fi 2358 rm -f conftest.file 2359 if test "$*" != "X $srcdir/configure conftest.file" \ 2360 && test "$*" != "X conftest.file $srcdir/configure"; then 2361 2362 # If neither matched, then we have a broken ls. This can happen 2363 # if, for instance, CONFIG_SHELL is bash and it inherits a 2364 # broken ls alias from the environment. This has actually 2365 # happened. Such a system could not be considered "sane". 2366 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2367alias in your environment" "$LINENO" 5 2368 fi 2369 2370 test "$2" = conftest.file 2371 ) 2372then 2373 # Ok. 2374 : 2375else 2376 as_fn_error $? "newly created file is older than distributed files! 2377Check your system clock" "$LINENO" 5 2378fi 2379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2380$as_echo "yes" >&6; } 2381test "$program_prefix" != NONE && 2382 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2383# Use a double $ so make ignores it. 2384test "$program_suffix" != NONE && 2385 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2386# Double any \ or $. 2387# By default was `s,x,x', remove it if useless. 2388ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2389program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2390 2391# expand $ac_aux_dir to an absolute path 2392am_aux_dir=`cd $ac_aux_dir && pwd` 2393 2394if test x"${MISSING+set}" != xset; then 2395 case $am_aux_dir in 2396 *\ * | *\ *) 2397 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2398 *) 2399 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2400 esac 2401fi 2402# Use eval to expand $SHELL 2403if eval "$MISSING --run true"; then 2404 am_missing_run="$MISSING --run " 2405else 2406 am_missing_run= 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2408$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2409fi 2410 2411if test x"${install_sh}" != xset; then 2412 case $am_aux_dir in 2413 *\ * | *\ *) 2414 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2415 *) 2416 install_sh="\${SHELL} $am_aux_dir/install-sh" 2417 esac 2418fi 2419 2420# Installed binaries are usually stripped using `strip' when the user 2421# run `make install-strip'. However `strip' might not be the right 2422# tool to use in cross-compilation environments, therefore Automake 2423# will honor the `STRIP' environment variable to overrule this program. 2424if test "$cross_compiling" != no; then 2425 if test -n "$ac_tool_prefix"; then 2426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2427set dummy ${ac_tool_prefix}strip; ac_word=$2 2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2429$as_echo_n "checking for $ac_word... " >&6; } 2430if ${ac_cv_prog_STRIP+:} false; then : 2431 $as_echo_n "(cached) " >&6 2432else 2433 if test -n "$STRIP"; then 2434 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2435else 2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2437for as_dir in $PATH 2438do 2439 IFS=$as_save_IFS 2440 test -z "$as_dir" && as_dir=. 2441 for ac_exec_ext in '' $ac_executable_extensions; do 2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2443 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2445 break 2 2446 fi 2447done 2448 done 2449IFS=$as_save_IFS 2450 2451fi 2452fi 2453STRIP=$ac_cv_prog_STRIP 2454if test -n "$STRIP"; then 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2456$as_echo "$STRIP" >&6; } 2457else 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2459$as_echo "no" >&6; } 2460fi 2461 2462 2463fi 2464if test -z "$ac_cv_prog_STRIP"; then 2465 ac_ct_STRIP=$STRIP 2466 # Extract the first word of "strip", so it can be a program name with args. 2467set dummy strip; ac_word=$2 2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2469$as_echo_n "checking for $ac_word... " >&6; } 2470if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2471 $as_echo_n "(cached) " >&6 2472else 2473 if test -n "$ac_ct_STRIP"; then 2474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2475else 2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477for as_dir in $PATH 2478do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 for ac_exec_ext in '' $ac_executable_extensions; do 2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2483 ac_cv_prog_ac_ct_STRIP="strip" 2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2485 break 2 2486 fi 2487done 2488 done 2489IFS=$as_save_IFS 2490 2491fi 2492fi 2493ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2494if test -n "$ac_ct_STRIP"; then 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2496$as_echo "$ac_ct_STRIP" >&6; } 2497else 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2499$as_echo "no" >&6; } 2500fi 2501 2502 if test "x$ac_ct_STRIP" = x; then 2503 STRIP=":" 2504 else 2505 case $cross_compiling:$ac_tool_warned in 2506yes:) 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2509ac_tool_warned=yes ;; 2510esac 2511 STRIP=$ac_ct_STRIP 2512 fi 2513else 2514 STRIP="$ac_cv_prog_STRIP" 2515fi 2516 2517fi 2518INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2519 2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2521$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2522if test -z "$MKDIR_P"; then 2523 if ${ac_cv_path_mkdir+:} false; then : 2524 $as_echo_n "(cached) " >&6 2525else 2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2527for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2528do 2529 IFS=$as_save_IFS 2530 test -z "$as_dir" && as_dir=. 2531 for ac_prog in mkdir gmkdir; do 2532 for ac_exec_ext in '' $ac_executable_extensions; do 2533 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2534 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2535 'mkdir (GNU coreutils) '* | \ 2536 'mkdir (coreutils) '* | \ 2537 'mkdir (fileutils) '4.1*) 2538 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2539 break 3;; 2540 esac 2541 done 2542 done 2543 done 2544IFS=$as_save_IFS 2545 2546fi 2547 2548 test -d ./--version && rmdir ./--version 2549 if test "${ac_cv_path_mkdir+set}" = set; then 2550 MKDIR_P="$ac_cv_path_mkdir -p" 2551 else 2552 # As a last resort, use the slow shell script. Don't cache a 2553 # value for MKDIR_P within a source directory, because that will 2554 # break other packages using the cache if that directory is 2555 # removed, or if the value is a relative name. 2556 MKDIR_P="$ac_install_sh -d" 2557 fi 2558fi 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2560$as_echo "$MKDIR_P" >&6; } 2561 2562mkdir_p="$MKDIR_P" 2563case $mkdir_p in 2564 [\\/$]* | ?:[\\/]*) ;; 2565 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2566esac 2567 2568for ac_prog in gawk mawk nawk awk 2569do 2570 # Extract the first word of "$ac_prog", so it can be a program name with args. 2571set dummy $ac_prog; ac_word=$2 2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2573$as_echo_n "checking for $ac_word... " >&6; } 2574if ${ac_cv_prog_AWK+:} false; then : 2575 $as_echo_n "(cached) " >&6 2576else 2577 if test -n "$AWK"; then 2578 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2579else 2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2581for as_dir in $PATH 2582do 2583 IFS=$as_save_IFS 2584 test -z "$as_dir" && as_dir=. 2585 for ac_exec_ext in '' $ac_executable_extensions; do 2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2587 ac_cv_prog_AWK="$ac_prog" 2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2589 break 2 2590 fi 2591done 2592 done 2593IFS=$as_save_IFS 2594 2595fi 2596fi 2597AWK=$ac_cv_prog_AWK 2598if test -n "$AWK"; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2600$as_echo "$AWK" >&6; } 2601else 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2603$as_echo "no" >&6; } 2604fi 2605 2606 2607 test -n "$AWK" && break 2608done 2609 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2611$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2612set x ${MAKE-make} 2613ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2614if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2615 $as_echo_n "(cached) " >&6 2616else 2617 cat >conftest.make <<\_ACEOF 2618SHELL = /bin/sh 2619all: 2620 @echo '@@@%%%=$(MAKE)=@@@%%%' 2621_ACEOF 2622# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2623case `${MAKE-make} -f conftest.make 2>/dev/null` in 2624 *@@@%%%=?*=@@@%%%*) 2625 eval ac_cv_prog_make_${ac_make}_set=yes;; 2626 *) 2627 eval ac_cv_prog_make_${ac_make}_set=no;; 2628esac 2629rm -f conftest.make 2630fi 2631if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2633$as_echo "yes" >&6; } 2634 SET_MAKE= 2635else 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2637$as_echo "no" >&6; } 2638 SET_MAKE="MAKE=${MAKE-make}" 2639fi 2640 2641rm -rf .tst 2>/dev/null 2642mkdir .tst 2>/dev/null 2643if test -d .tst; then 2644 am__leading_dot=. 2645else 2646 am__leading_dot=_ 2647fi 2648rmdir .tst 2>/dev/null 2649 2650if test "`cd $srcdir && pwd`" != "`pwd`"; then 2651 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2652 # is not polluted with repeated "-I." 2653 am__isrc=' -I$(srcdir)' 2654 # test to see if srcdir already configured 2655 if test -f $srcdir/config.status; then 2656 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2657 fi 2658fi 2659 2660# test whether we have cygpath 2661if test -z "$CYGPATH_W"; then 2662 if (cygpath --version) >/dev/null 2>/dev/null; then 2663 CYGPATH_W='cygpath -w' 2664 else 2665 CYGPATH_W=echo 2666 fi 2667fi 2668 2669 2670# Define the identity of the package. 2671 PACKAGE='libXft' 2672 VERSION='2.3.1' 2673 2674 2675cat >>confdefs.h <<_ACEOF 2676#define PACKAGE "$PACKAGE" 2677_ACEOF 2678 2679 2680cat >>confdefs.h <<_ACEOF 2681#define VERSION "$VERSION" 2682_ACEOF 2683 2684# Some tools Automake needs. 2685 2686ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2687 2688 2689AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2690 2691 2692AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2693 2694 2695AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2696 2697 2698MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2699 2700# We need awk for the "check" target. The system "awk" is bad on 2701# some platforms. 2702# Always define AMTAR for backward compatibility. 2703 2704AMTAR=${AMTAR-"${am_missing_run}tar"} 2705 2706am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2707 2708 2709 2710 2711 2712 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2714$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2715 # Check whether --enable-maintainer-mode was given. 2716if test "${enable_maintainer_mode+set}" = set; then : 2717 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2718else 2719 USE_MAINTAINER_MODE=no 2720fi 2721 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2723$as_echo "$USE_MAINTAINER_MODE" >&6; } 2724 if test $USE_MAINTAINER_MODE = yes; then 2725 MAINTAINER_MODE_TRUE= 2726 MAINTAINER_MODE_FALSE='#' 2727else 2728 MAINTAINER_MODE_TRUE='#' 2729 MAINTAINER_MODE_FALSE= 2730fi 2731 2732 MAINT=$MAINTAINER_MODE_TRUE 2733 2734 2735 2736# Initialize libtool 2737case `pwd` in 2738 *\ * | *\ *) 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2740$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2741esac 2742 2743 2744 2745macro_version='2.4.2' 2746macro_revision='1.3337' 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760ltmain="$ac_aux_dir/ltmain.sh" 2761 2762# Make sure we can run config.sub. 2763$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2765 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2767$as_echo_n "checking build system type... " >&6; } 2768if ${ac_cv_build+:} false; then : 2769 $as_echo_n "(cached) " >&6 2770else 2771 ac_build_alias=$build_alias 2772test "x$ac_build_alias" = x && 2773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2774test "x$ac_build_alias" = x && 2775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2776ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2778 2779fi 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2781$as_echo "$ac_cv_build" >&6; } 2782case $ac_cv_build in 2783*-*-*) ;; 2784*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2785esac 2786build=$ac_cv_build 2787ac_save_IFS=$IFS; IFS='-' 2788set x $ac_cv_build 2789shift 2790build_cpu=$1 2791build_vendor=$2 2792shift; shift 2793# Remember, the first character of IFS is used to create $*, 2794# except with old shells: 2795build_os=$* 2796IFS=$ac_save_IFS 2797case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2798 2799 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2801$as_echo_n "checking host system type... " >&6; } 2802if ${ac_cv_host+:} false; then : 2803 $as_echo_n "(cached) " >&6 2804else 2805 if test "x$host_alias" = x; then 2806 ac_cv_host=$ac_cv_build 2807else 2808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2810fi 2811 2812fi 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2814$as_echo "$ac_cv_host" >&6; } 2815case $ac_cv_host in 2816*-*-*) ;; 2817*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2818esac 2819host=$ac_cv_host 2820ac_save_IFS=$IFS; IFS='-' 2821set x $ac_cv_host 2822shift 2823host_cpu=$1 2824host_vendor=$2 2825shift; shift 2826# Remember, the first character of IFS is used to create $*, 2827# except with old shells: 2828host_os=$* 2829IFS=$ac_save_IFS 2830case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2831 2832 2833# Backslashify metacharacters that are still active within 2834# double-quoted strings. 2835sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2836 2837# Same as above, but do not quote variable references. 2838double_quote_subst='s/\(["`\\]\)/\\\1/g' 2839 2840# Sed substitution to delay expansion of an escaped shell variable in a 2841# double_quote_subst'ed string. 2842delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2843 2844# Sed substitution to delay expansion of an escaped single quote. 2845delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2846 2847# Sed substitution to avoid accidental globbing in evaled expressions 2848no_glob_subst='s/\*/\\\*/g' 2849 2850ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2851ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2852ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2853 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2855$as_echo_n "checking how to print strings... " >&6; } 2856# Test print first, because it will be a builtin if present. 2857if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2858 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2859 ECHO='print -r --' 2860elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2861 ECHO='printf %s\n' 2862else 2863 # Use this function as a fallback that always works. 2864 func_fallback_echo () 2865 { 2866 eval 'cat <<_LTECHO_EOF 2867$1 2868_LTECHO_EOF' 2869 } 2870 ECHO='func_fallback_echo' 2871fi 2872 2873# func_echo_all arg... 2874# Invoke $ECHO with all args, space-separated. 2875func_echo_all () 2876{ 2877 $ECHO "" 2878} 2879 2880case "$ECHO" in 2881 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2882$as_echo "printf" >&6; } ;; 2883 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2884$as_echo "print -r" >&6; } ;; 2885 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2886$as_echo "cat" >&6; } ;; 2887esac 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902DEPDIR="${am__leading_dot}deps" 2903 2904ac_config_commands="$ac_config_commands depfiles" 2905 2906 2907am_make=${MAKE-make} 2908cat > confinc << 'END' 2909am__doit: 2910 @echo this is the am__doit target 2911.PHONY: am__doit 2912END 2913# If we don't find an include directive, just comment out the code. 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2915$as_echo_n "checking for style of include used by $am_make... " >&6; } 2916am__include="#" 2917am__quote= 2918_am_result=none 2919# First try GNU make style include. 2920echo "include confinc" > confmf 2921# Ignore all kinds of additional output from `make'. 2922case `$am_make -s -f confmf 2> /dev/null` in #( 2923*the\ am__doit\ target*) 2924 am__include=include 2925 am__quote= 2926 _am_result=GNU 2927 ;; 2928esac 2929# Now try BSD make style include. 2930if test "$am__include" = "#"; then 2931 echo '.include "confinc"' > confmf 2932 case `$am_make -s -f confmf 2> /dev/null` in #( 2933 *the\ am__doit\ target*) 2934 am__include=.include 2935 am__quote="\"" 2936 _am_result=BSD 2937 ;; 2938 esac 2939fi 2940 2941 2942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2943$as_echo "$_am_result" >&6; } 2944rm -f confinc confmf 2945 2946# Check whether --enable-dependency-tracking was given. 2947if test "${enable_dependency_tracking+set}" = set; then : 2948 enableval=$enable_dependency_tracking; 2949fi 2950 2951if test "x$enable_dependency_tracking" != xno; then 2952 am_depcomp="$ac_aux_dir/depcomp" 2953 AMDEPBACKSLASH='\' 2954 am__nodep='_no' 2955fi 2956 if test "x$enable_dependency_tracking" != xno; then 2957 AMDEP_TRUE= 2958 AMDEP_FALSE='#' 2959else 2960 AMDEP_TRUE='#' 2961 AMDEP_FALSE= 2962fi 2963 2964 2965ac_ext=c 2966ac_cpp='$CPP $CPPFLAGS' 2967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2969ac_compiler_gnu=$ac_cv_c_compiler_gnu 2970if test -n "$ac_tool_prefix"; then 2971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2972set dummy ${ac_tool_prefix}gcc; ac_word=$2 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2974$as_echo_n "checking for $ac_word... " >&6; } 2975if ${ac_cv_prog_CC+:} false; then : 2976 $as_echo_n "(cached) " >&6 2977else 2978 if test -n "$CC"; then 2979 ac_cv_prog_CC="$CC" # Let the user override the test. 2980else 2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2982for as_dir in $PATH 2983do 2984 IFS=$as_save_IFS 2985 test -z "$as_dir" && as_dir=. 2986 for ac_exec_ext in '' $ac_executable_extensions; do 2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2988 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2990 break 2 2991 fi 2992done 2993 done 2994IFS=$as_save_IFS 2995 2996fi 2997fi 2998CC=$ac_cv_prog_CC 2999if test -n "$CC"; then 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3001$as_echo "$CC" >&6; } 3002else 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3004$as_echo "no" >&6; } 3005fi 3006 3007 3008fi 3009if test -z "$ac_cv_prog_CC"; then 3010 ac_ct_CC=$CC 3011 # Extract the first word of "gcc", so it can be a program name with args. 3012set dummy gcc; ac_word=$2 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3014$as_echo_n "checking for $ac_word... " >&6; } 3015if ${ac_cv_prog_ac_ct_CC+:} false; then : 3016 $as_echo_n "(cached) " >&6 3017else 3018 if test -n "$ac_ct_CC"; then 3019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3020else 3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3022for as_dir in $PATH 3023do 3024 IFS=$as_save_IFS 3025 test -z "$as_dir" && as_dir=. 3026 for ac_exec_ext in '' $ac_executable_extensions; do 3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3028 ac_cv_prog_ac_ct_CC="gcc" 3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3030 break 2 3031 fi 3032done 3033 done 3034IFS=$as_save_IFS 3035 3036fi 3037fi 3038ac_ct_CC=$ac_cv_prog_ac_ct_CC 3039if test -n "$ac_ct_CC"; then 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3041$as_echo "$ac_ct_CC" >&6; } 3042else 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3044$as_echo "no" >&6; } 3045fi 3046 3047 if test "x$ac_ct_CC" = x; then 3048 CC="" 3049 else 3050 case $cross_compiling:$ac_tool_warned in 3051yes:) 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3054ac_tool_warned=yes ;; 3055esac 3056 CC=$ac_ct_CC 3057 fi 3058else 3059 CC="$ac_cv_prog_CC" 3060fi 3061 3062if test -z "$CC"; then 3063 if test -n "$ac_tool_prefix"; then 3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3065set dummy ${ac_tool_prefix}cc; ac_word=$2 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3067$as_echo_n "checking for $ac_word... " >&6; } 3068if ${ac_cv_prog_CC+:} false; then : 3069 $as_echo_n "(cached) " >&6 3070else 3071 if test -n "$CC"; then 3072 ac_cv_prog_CC="$CC" # Let the user override the test. 3073else 3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3075for as_dir in $PATH 3076do 3077 IFS=$as_save_IFS 3078 test -z "$as_dir" && as_dir=. 3079 for ac_exec_ext in '' $ac_executable_extensions; do 3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3081 ac_cv_prog_CC="${ac_tool_prefix}cc" 3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3083 break 2 3084 fi 3085done 3086 done 3087IFS=$as_save_IFS 3088 3089fi 3090fi 3091CC=$ac_cv_prog_CC 3092if test -n "$CC"; then 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3094$as_echo "$CC" >&6; } 3095else 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3097$as_echo "no" >&6; } 3098fi 3099 3100 3101 fi 3102fi 3103if test -z "$CC"; then 3104 # Extract the first word of "cc", so it can be a program name with args. 3105set dummy cc; ac_word=$2 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3107$as_echo_n "checking for $ac_word... " >&6; } 3108if ${ac_cv_prog_CC+:} false; then : 3109 $as_echo_n "(cached) " >&6 3110else 3111 if test -n "$CC"; then 3112 ac_cv_prog_CC="$CC" # Let the user override the test. 3113else 3114 ac_prog_rejected=no 3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3116for as_dir in $PATH 3117do 3118 IFS=$as_save_IFS 3119 test -z "$as_dir" && as_dir=. 3120 for ac_exec_ext in '' $ac_executable_extensions; do 3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3123 ac_prog_rejected=yes 3124 continue 3125 fi 3126 ac_cv_prog_CC="cc" 3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3128 break 2 3129 fi 3130done 3131 done 3132IFS=$as_save_IFS 3133 3134if test $ac_prog_rejected = yes; then 3135 # We found a bogon in the path, so make sure we never use it. 3136 set dummy $ac_cv_prog_CC 3137 shift 3138 if test $# != 0; then 3139 # We chose a different compiler from the bogus one. 3140 # However, it has the same basename, so the bogon will be chosen 3141 # first if we set CC to just the basename; use the full file name. 3142 shift 3143 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3144 fi 3145fi 3146fi 3147fi 3148CC=$ac_cv_prog_CC 3149if test -n "$CC"; then 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3151$as_echo "$CC" >&6; } 3152else 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3154$as_echo "no" >&6; } 3155fi 3156 3157 3158fi 3159if test -z "$CC"; then 3160 if test -n "$ac_tool_prefix"; then 3161 for ac_prog in cl.exe 3162 do 3163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3164set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3166$as_echo_n "checking for $ac_word... " >&6; } 3167if ${ac_cv_prog_CC+:} false; then : 3168 $as_echo_n "(cached) " >&6 3169else 3170 if test -n "$CC"; then 3171 ac_cv_prog_CC="$CC" # Let the user override the test. 3172else 3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174for as_dir in $PATH 3175do 3176 IFS=$as_save_IFS 3177 test -z "$as_dir" && as_dir=. 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3182 break 2 3183 fi 3184done 3185 done 3186IFS=$as_save_IFS 3187 3188fi 3189fi 3190CC=$ac_cv_prog_CC 3191if test -n "$CC"; then 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3193$as_echo "$CC" >&6; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197fi 3198 3199 3200 test -n "$CC" && break 3201 done 3202fi 3203if test -z "$CC"; then 3204 ac_ct_CC=$CC 3205 for ac_prog in cl.exe 3206do 3207 # Extract the first word of "$ac_prog", so it can be a program name with args. 3208set dummy $ac_prog; ac_word=$2 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3210$as_echo_n "checking for $ac_word... " >&6; } 3211if ${ac_cv_prog_ac_ct_CC+:} false; then : 3212 $as_echo_n "(cached) " >&6 3213else 3214 if test -n "$ac_ct_CC"; then 3215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3216else 3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3218for as_dir in $PATH 3219do 3220 IFS=$as_save_IFS 3221 test -z "$as_dir" && as_dir=. 3222 for ac_exec_ext in '' $ac_executable_extensions; do 3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3224 ac_cv_prog_ac_ct_CC="$ac_prog" 3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3226 break 2 3227 fi 3228done 3229 done 3230IFS=$as_save_IFS 3231 3232fi 3233fi 3234ac_ct_CC=$ac_cv_prog_ac_ct_CC 3235if test -n "$ac_ct_CC"; then 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3237$as_echo "$ac_ct_CC" >&6; } 3238else 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3240$as_echo "no" >&6; } 3241fi 3242 3243 3244 test -n "$ac_ct_CC" && break 3245done 3246 3247 if test "x$ac_ct_CC" = x; then 3248 CC="" 3249 else 3250 case $cross_compiling:$ac_tool_warned in 3251yes:) 3252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3254ac_tool_warned=yes ;; 3255esac 3256 CC=$ac_ct_CC 3257 fi 3258fi 3259 3260fi 3261 3262 3263test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3265as_fn_error $? "no acceptable C compiler found in \$PATH 3266See \`config.log' for more details" "$LINENO" 5; } 3267 3268# Provide some information about the compiler. 3269$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3270set X $ac_compile 3271ac_compiler=$2 3272for ac_option in --version -v -V -qversion; do 3273 { { ac_try="$ac_compiler $ac_option >&5" 3274case "(($ac_try" in 3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3276 *) ac_try_echo=$ac_try;; 3277esac 3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3279$as_echo "$ac_try_echo"; } >&5 3280 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3281 ac_status=$? 3282 if test -s conftest.err; then 3283 sed '10a\ 3284... rest of stderr output deleted ... 3285 10q' conftest.err >conftest.er1 3286 cat conftest.er1 >&5 3287 fi 3288 rm -f conftest.er1 conftest.err 3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3290 test $ac_status = 0; } 3291done 3292 3293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3294/* end confdefs.h. */ 3295 3296int 3297main () 3298{ 3299 3300 ; 3301 return 0; 3302} 3303_ACEOF 3304ac_clean_files_save=$ac_clean_files 3305ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3306# Try to create an executable without -o first, disregard a.out. 3307# It will help us diagnose broken compilers, and finding out an intuition 3308# of exeext. 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3310$as_echo_n "checking whether the C compiler works... " >&6; } 3311ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3312 3313# The possible output files: 3314ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3315 3316ac_rmfiles= 3317for ac_file in $ac_files 3318do 3319 case $ac_file in 3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3321 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3322 esac 3323done 3324rm -f $ac_rmfiles 3325 3326if { { ac_try="$ac_link_default" 3327case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3332$as_echo "$ac_try_echo"; } >&5 3333 (eval "$ac_link_default") 2>&5 3334 ac_status=$? 3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3336 test $ac_status = 0; }; then : 3337 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3338# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3339# in a Makefile. We should not override ac_cv_exeext if it was cached, 3340# so that the user can short-circuit this test for compilers unknown to 3341# Autoconf. 3342for ac_file in $ac_files '' 3343do 3344 test -f "$ac_file" || continue 3345 case $ac_file in 3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3347 ;; 3348 [ab].out ) 3349 # We found the default executable, but exeext='' is most 3350 # certainly right. 3351 break;; 3352 *.* ) 3353 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3354 then :; else 3355 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3356 fi 3357 # We set ac_cv_exeext here because the later test for it is not 3358 # safe: cross compilers may not add the suffix if given an `-o' 3359 # argument, so we may need to know it at that point already. 3360 # Even if this section looks crufty: it has the advantage of 3361 # actually working. 3362 break;; 3363 * ) 3364 break;; 3365 esac 3366done 3367test "$ac_cv_exeext" = no && ac_cv_exeext= 3368 3369else 3370 ac_file='' 3371fi 3372if test -z "$ac_file"; then : 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3374$as_echo "no" >&6; } 3375$as_echo "$as_me: failed program was:" >&5 3376sed 's/^/| /' conftest.$ac_ext >&5 3377 3378{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3380as_fn_error 77 "C compiler cannot create executables 3381See \`config.log' for more details" "$LINENO" 5; } 3382else 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3384$as_echo "yes" >&6; } 3385fi 3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3387$as_echo_n "checking for C compiler default output file name... " >&6; } 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3389$as_echo "$ac_file" >&6; } 3390ac_exeext=$ac_cv_exeext 3391 3392rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3393ac_clean_files=$ac_clean_files_save 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3395$as_echo_n "checking for suffix of executables... " >&6; } 3396if { { ac_try="$ac_link" 3397case "(($ac_try" in 3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3399 *) ac_try_echo=$ac_try;; 3400esac 3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3402$as_echo "$ac_try_echo"; } >&5 3403 (eval "$ac_link") 2>&5 3404 ac_status=$? 3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3406 test $ac_status = 0; }; then : 3407 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3408# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3409# work properly (i.e., refer to `conftest.exe'), while it won't with 3410# `rm'. 3411for ac_file in conftest.exe conftest conftest.*; do 3412 test -f "$ac_file" || continue 3413 case $ac_file in 3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3416 break;; 3417 * ) break;; 3418 esac 3419done 3420else 3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3423as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3424See \`config.log' for more details" "$LINENO" 5; } 3425fi 3426rm -f conftest conftest$ac_cv_exeext 3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3428$as_echo "$ac_cv_exeext" >&6; } 3429 3430rm -f conftest.$ac_ext 3431EXEEXT=$ac_cv_exeext 3432ac_exeext=$EXEEXT 3433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3434/* end confdefs.h. */ 3435#include <stdio.h> 3436int 3437main () 3438{ 3439FILE *f = fopen ("conftest.out", "w"); 3440 return ferror (f) || fclose (f) != 0; 3441 3442 ; 3443 return 0; 3444} 3445_ACEOF 3446ac_clean_files="$ac_clean_files conftest.out" 3447# Check that the compiler produces executables we can run. If not, either 3448# the compiler is broken, or we cross compile. 3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3450$as_echo_n "checking whether we are cross compiling... " >&6; } 3451if test "$cross_compiling" != yes; then 3452 { { ac_try="$ac_link" 3453case "(($ac_try" in 3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3455 *) ac_try_echo=$ac_try;; 3456esac 3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3458$as_echo "$ac_try_echo"; } >&5 3459 (eval "$ac_link") 2>&5 3460 ac_status=$? 3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3462 test $ac_status = 0; } 3463 if { ac_try='./conftest$ac_cv_exeext' 3464 { { case "(($ac_try" in 3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3466 *) ac_try_echo=$ac_try;; 3467esac 3468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3469$as_echo "$ac_try_echo"; } >&5 3470 (eval "$ac_try") 2>&5 3471 ac_status=$? 3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3473 test $ac_status = 0; }; }; then 3474 cross_compiling=no 3475 else 3476 if test "$cross_compiling" = maybe; then 3477 cross_compiling=yes 3478 else 3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3481as_fn_error $? "cannot run C compiled programs. 3482If you meant to cross compile, use \`--host'. 3483See \`config.log' for more details" "$LINENO" 5; } 3484 fi 3485 fi 3486fi 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3488$as_echo "$cross_compiling" >&6; } 3489 3490rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3491ac_clean_files=$ac_clean_files_save 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3493$as_echo_n "checking for suffix of object files... " >&6; } 3494if ${ac_cv_objext+:} false; then : 3495 $as_echo_n "(cached) " >&6 3496else 3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3498/* end confdefs.h. */ 3499 3500int 3501main () 3502{ 3503 3504 ; 3505 return 0; 3506} 3507_ACEOF 3508rm -f conftest.o conftest.obj 3509if { { ac_try="$ac_compile" 3510case "(($ac_try" in 3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3512 *) ac_try_echo=$ac_try;; 3513esac 3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3515$as_echo "$ac_try_echo"; } >&5 3516 (eval "$ac_compile") 2>&5 3517 ac_status=$? 3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3519 test $ac_status = 0; }; then : 3520 for ac_file in conftest.o conftest.obj conftest.*; do 3521 test -f "$ac_file" || continue; 3522 case $ac_file in 3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3525 break;; 3526 esac 3527done 3528else 3529 $as_echo "$as_me: failed program was:" >&5 3530sed 's/^/| /' conftest.$ac_ext >&5 3531 3532{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3534as_fn_error $? "cannot compute suffix of object files: cannot compile 3535See \`config.log' for more details" "$LINENO" 5; } 3536fi 3537rm -f conftest.$ac_cv_objext conftest.$ac_ext 3538fi 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3540$as_echo "$ac_cv_objext" >&6; } 3541OBJEXT=$ac_cv_objext 3542ac_objext=$OBJEXT 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3544$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3545if ${ac_cv_c_compiler_gnu+:} false; then : 3546 $as_echo_n "(cached) " >&6 3547else 3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549/* end confdefs.h. */ 3550 3551int 3552main () 3553{ 3554#ifndef __GNUC__ 3555 choke me 3556#endif 3557 3558 ; 3559 return 0; 3560} 3561_ACEOF 3562if ac_fn_c_try_compile "$LINENO"; then : 3563 ac_compiler_gnu=yes 3564else 3565 ac_compiler_gnu=no 3566fi 3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3568ac_cv_c_compiler_gnu=$ac_compiler_gnu 3569 3570fi 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3572$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3573if test $ac_compiler_gnu = yes; then 3574 GCC=yes 3575else 3576 GCC= 3577fi 3578ac_test_CFLAGS=${CFLAGS+set} 3579ac_save_CFLAGS=$CFLAGS 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3581$as_echo_n "checking whether $CC accepts -g... " >&6; } 3582if ${ac_cv_prog_cc_g+:} false; then : 3583 $as_echo_n "(cached) " >&6 3584else 3585 ac_save_c_werror_flag=$ac_c_werror_flag 3586 ac_c_werror_flag=yes 3587 ac_cv_prog_cc_g=no 3588 CFLAGS="-g" 3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3590/* end confdefs.h. */ 3591 3592int 3593main () 3594{ 3595 3596 ; 3597 return 0; 3598} 3599_ACEOF 3600if ac_fn_c_try_compile "$LINENO"; then : 3601 ac_cv_prog_cc_g=yes 3602else 3603 CFLAGS="" 3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3605/* end confdefs.h. */ 3606 3607int 3608main () 3609{ 3610 3611 ; 3612 return 0; 3613} 3614_ACEOF 3615if ac_fn_c_try_compile "$LINENO"; then : 3616 3617else 3618 ac_c_werror_flag=$ac_save_c_werror_flag 3619 CFLAGS="-g" 3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621/* end confdefs.h. */ 3622 3623int 3624main () 3625{ 3626 3627 ; 3628 return 0; 3629} 3630_ACEOF 3631if ac_fn_c_try_compile "$LINENO"; then : 3632 ac_cv_prog_cc_g=yes 3633fi 3634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3635fi 3636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3637fi 3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3639 ac_c_werror_flag=$ac_save_c_werror_flag 3640fi 3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3642$as_echo "$ac_cv_prog_cc_g" >&6; } 3643if test "$ac_test_CFLAGS" = set; then 3644 CFLAGS=$ac_save_CFLAGS 3645elif test $ac_cv_prog_cc_g = yes; then 3646 if test "$GCC" = yes; then 3647 CFLAGS="-g -O2" 3648 else 3649 CFLAGS="-g" 3650 fi 3651else 3652 if test "$GCC" = yes; then 3653 CFLAGS="-O2" 3654 else 3655 CFLAGS= 3656 fi 3657fi 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3660if ${ac_cv_prog_cc_c89+:} false; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 ac_cv_prog_cc_c89=no 3664ac_save_CC=$CC 3665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3666/* end confdefs.h. */ 3667#include <stdarg.h> 3668#include <stdio.h> 3669#include <sys/types.h> 3670#include <sys/stat.h> 3671/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3672struct buf { int x; }; 3673FILE * (*rcsopen) (struct buf *, struct stat *, int); 3674static char *e (p, i) 3675 char **p; 3676 int i; 3677{ 3678 return p[i]; 3679} 3680static char *f (char * (*g) (char **, int), char **p, ...) 3681{ 3682 char *s; 3683 va_list v; 3684 va_start (v,p); 3685 s = g (p, va_arg (v,int)); 3686 va_end (v); 3687 return s; 3688} 3689 3690/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3691 function prototypes and stuff, but not '\xHH' hex character constants. 3692 These don't provoke an error unfortunately, instead are silently treated 3693 as 'x'. The following induces an error, until -std is added to get 3694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3695 array size at least. It's necessary to write '\x00'==0 to get something 3696 that's true only with -std. */ 3697int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3698 3699/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3700 inside strings and character constants. */ 3701#define FOO(x) 'x' 3702int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3703 3704int test (int i, double x); 3705struct s1 {int (*f) (int a);}; 3706struct s2 {int (*f) (double a);}; 3707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3708int argc; 3709char **argv; 3710int 3711main () 3712{ 3713return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3714 ; 3715 return 0; 3716} 3717_ACEOF 3718for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3720do 3721 CC="$ac_save_CC $ac_arg" 3722 if ac_fn_c_try_compile "$LINENO"; then : 3723 ac_cv_prog_cc_c89=$ac_arg 3724fi 3725rm -f core conftest.err conftest.$ac_objext 3726 test "x$ac_cv_prog_cc_c89" != "xno" && break 3727done 3728rm -f conftest.$ac_ext 3729CC=$ac_save_CC 3730 3731fi 3732# AC_CACHE_VAL 3733case "x$ac_cv_prog_cc_c89" in 3734 x) 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3736$as_echo "none needed" >&6; } ;; 3737 xno) 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3739$as_echo "unsupported" >&6; } ;; 3740 *) 3741 CC="$CC $ac_cv_prog_cc_c89" 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3743$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3744esac 3745if test "x$ac_cv_prog_cc_c89" != xno; then : 3746 3747fi 3748 3749ac_ext=c 3750ac_cpp='$CPP $CPPFLAGS' 3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3753ac_compiler_gnu=$ac_cv_c_compiler_gnu 3754 3755depcc="$CC" am_compiler_list= 3756 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3758$as_echo_n "checking dependency style of $depcc... " >&6; } 3759if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3760 $as_echo_n "(cached) " >&6 3761else 3762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3763 # We make a subdir and do the tests there. Otherwise we can end up 3764 # making bogus files that we don't know about and never remove. For 3765 # instance it was reported that on HP-UX the gcc test will end up 3766 # making a dummy file named `D' -- because `-MD' means `put the output 3767 # in D'. 3768 rm -rf conftest.dir 3769 mkdir conftest.dir 3770 # Copy depcomp to subdir because otherwise we won't find it if we're 3771 # using a relative directory. 3772 cp "$am_depcomp" conftest.dir 3773 cd conftest.dir 3774 # We will build objects and dependencies in a subdirectory because 3775 # it helps to detect inapplicable dependency modes. For instance 3776 # both Tru64's cc and ICC support -MD to output dependencies as a 3777 # side effect of compilation, but ICC will put the dependencies in 3778 # the current directory while Tru64 will put them in the object 3779 # directory. 3780 mkdir sub 3781 3782 am_cv_CC_dependencies_compiler_type=none 3783 if test "$am_compiler_list" = ""; then 3784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3785 fi 3786 am__universal=false 3787 case " $depcc " in #( 3788 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3789 esac 3790 3791 for depmode in $am_compiler_list; do 3792 # Setup a source with many dependencies, because some compilers 3793 # like to wrap large dependency lists on column 80 (with \), and 3794 # we should not choose a depcomp mode which is confused by this. 3795 # 3796 # We need to recreate these files for each test, as the compiler may 3797 # overwrite some of them when testing with obscure command lines. 3798 # This happens at least with the AIX C compiler. 3799 : > sub/conftest.c 3800 for i in 1 2 3 4 5 6; do 3801 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3802 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3803 # Solaris 8's {/usr,}/bin/sh. 3804 touch sub/conftst$i.h 3805 done 3806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3807 3808 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3809 # mode. It turns out that the SunPro C++ compiler does not properly 3810 # handle `-M -o', and we need to detect this. Also, some Intel 3811 # versions had trouble with output in subdirs 3812 am__obj=sub/conftest.${OBJEXT-o} 3813 am__minus_obj="-o $am__obj" 3814 case $depmode in 3815 gcc) 3816 # This depmode causes a compiler race in universal mode. 3817 test "$am__universal" = false || continue 3818 ;; 3819 nosideeffect) 3820 # after this tag, mechanisms are not by side-effect, so they'll 3821 # only be used when explicitly requested 3822 if test "x$enable_dependency_tracking" = xyes; then 3823 continue 3824 else 3825 break 3826 fi 3827 ;; 3828 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3829 # This compiler won't grok `-c -o', but also, the minuso test has 3830 # not run yet. These depmodes are late enough in the game, and 3831 # so weak that their functioning should not be impacted. 3832 am__obj=conftest.${OBJEXT-o} 3833 am__minus_obj= 3834 ;; 3835 none) break ;; 3836 esac 3837 if depmode=$depmode \ 3838 source=sub/conftest.c object=$am__obj \ 3839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3841 >/dev/null 2>conftest.err && 3842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3846 # icc doesn't choke on unknown options, it will just issue warnings 3847 # or remarks (even with -Werror). So we grep stderr for any message 3848 # that says an option was ignored or not supported. 3849 # When given -MP, icc 7.0 and 7.1 complain thusly: 3850 # icc: Command line warning: ignoring option '-M'; no argument required 3851 # The diagnosis changed in icc 8.0: 3852 # icc: Command line remark: option '-MP' not supported 3853 if (grep 'ignoring option' conftest.err || 3854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3855 am_cv_CC_dependencies_compiler_type=$depmode 3856 break 3857 fi 3858 fi 3859 done 3860 3861 cd .. 3862 rm -rf conftest.dir 3863else 3864 am_cv_CC_dependencies_compiler_type=none 3865fi 3866 3867fi 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3869$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3870CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3871 3872 if 3873 test "x$enable_dependency_tracking" != xno \ 3874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3875 am__fastdepCC_TRUE= 3876 am__fastdepCC_FALSE='#' 3877else 3878 am__fastdepCC_TRUE='#' 3879 am__fastdepCC_FALSE= 3880fi 3881 3882 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3884$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3885if ${ac_cv_path_SED+:} false; then : 3886 $as_echo_n "(cached) " >&6 3887else 3888 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3889 for ac_i in 1 2 3 4 5 6 7; do 3890 ac_script="$ac_script$as_nl$ac_script" 3891 done 3892 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3893 { ac_script=; unset ac_script;} 3894 if test -z "$SED"; then 3895 ac_path_SED_found=false 3896 # Loop through the user's path and test for each of PROGNAME-LIST 3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3898for as_dir in $PATH 3899do 3900 IFS=$as_save_IFS 3901 test -z "$as_dir" && as_dir=. 3902 for ac_prog in sed gsed; do 3903 for ac_exec_ext in '' $ac_executable_extensions; do 3904 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3905 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3906# Check for GNU ac_path_SED and select it if it is found. 3907 # Check for GNU $ac_path_SED 3908case `"$ac_path_SED" --version 2>&1` in 3909*GNU*) 3910 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3911*) 3912 ac_count=0 3913 $as_echo_n 0123456789 >"conftest.in" 3914 while : 3915 do 3916 cat "conftest.in" "conftest.in" >"conftest.tmp" 3917 mv "conftest.tmp" "conftest.in" 3918 cp "conftest.in" "conftest.nl" 3919 $as_echo '' >> "conftest.nl" 3920 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3922 as_fn_arith $ac_count + 1 && ac_count=$as_val 3923 if test $ac_count -gt ${ac_path_SED_max-0}; then 3924 # Best one so far, save it but keep looking for a better one 3925 ac_cv_path_SED="$ac_path_SED" 3926 ac_path_SED_max=$ac_count 3927 fi 3928 # 10*(2^10) chars as input seems more than enough 3929 test $ac_count -gt 10 && break 3930 done 3931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3932esac 3933 3934 $ac_path_SED_found && break 3 3935 done 3936 done 3937 done 3938IFS=$as_save_IFS 3939 if test -z "$ac_cv_path_SED"; then 3940 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3941 fi 3942else 3943 ac_cv_path_SED=$SED 3944fi 3945 3946fi 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3948$as_echo "$ac_cv_path_SED" >&6; } 3949 SED="$ac_cv_path_SED" 3950 rm -f conftest.sed 3951 3952test -z "$SED" && SED=sed 3953Xsed="$SED -e 1s/^X//" 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3966$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3967if ${ac_cv_path_GREP+:} false; then : 3968 $as_echo_n "(cached) " >&6 3969else 3970 if test -z "$GREP"; then 3971 ac_path_GREP_found=false 3972 # Loop through the user's path and test for each of PROGNAME-LIST 3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3974for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3975do 3976 IFS=$as_save_IFS 3977 test -z "$as_dir" && as_dir=. 3978 for ac_prog in grep ggrep; do 3979 for ac_exec_ext in '' $ac_executable_extensions; do 3980 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3981 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3982# Check for GNU ac_path_GREP and select it if it is found. 3983 # Check for GNU $ac_path_GREP 3984case `"$ac_path_GREP" --version 2>&1` in 3985*GNU*) 3986 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3987*) 3988 ac_count=0 3989 $as_echo_n 0123456789 >"conftest.in" 3990 while : 3991 do 3992 cat "conftest.in" "conftest.in" >"conftest.tmp" 3993 mv "conftest.tmp" "conftest.in" 3994 cp "conftest.in" "conftest.nl" 3995 $as_echo 'GREP' >> "conftest.nl" 3996 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3998 as_fn_arith $ac_count + 1 && ac_count=$as_val 3999 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4000 # Best one so far, save it but keep looking for a better one 4001 ac_cv_path_GREP="$ac_path_GREP" 4002 ac_path_GREP_max=$ac_count 4003 fi 4004 # 10*(2^10) chars as input seems more than enough 4005 test $ac_count -gt 10 && break 4006 done 4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4008esac 4009 4010 $ac_path_GREP_found && break 3 4011 done 4012 done 4013 done 4014IFS=$as_save_IFS 4015 if test -z "$ac_cv_path_GREP"; then 4016 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4017 fi 4018else 4019 ac_cv_path_GREP=$GREP 4020fi 4021 4022fi 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4024$as_echo "$ac_cv_path_GREP" >&6; } 4025 GREP="$ac_cv_path_GREP" 4026 4027 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4029$as_echo_n "checking for egrep... " >&6; } 4030if ${ac_cv_path_EGREP+:} false; then : 4031 $as_echo_n "(cached) " >&6 4032else 4033 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4034 then ac_cv_path_EGREP="$GREP -E" 4035 else 4036 if test -z "$EGREP"; then 4037 ac_path_EGREP_found=false 4038 # Loop through the user's path and test for each of PROGNAME-LIST 4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4040for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4041do 4042 IFS=$as_save_IFS 4043 test -z "$as_dir" && as_dir=. 4044 for ac_prog in egrep; do 4045 for ac_exec_ext in '' $ac_executable_extensions; do 4046 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4047 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4048# Check for GNU ac_path_EGREP and select it if it is found. 4049 # Check for GNU $ac_path_EGREP 4050case `"$ac_path_EGREP" --version 2>&1` in 4051*GNU*) 4052 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4053*) 4054 ac_count=0 4055 $as_echo_n 0123456789 >"conftest.in" 4056 while : 4057 do 4058 cat "conftest.in" "conftest.in" >"conftest.tmp" 4059 mv "conftest.tmp" "conftest.in" 4060 cp "conftest.in" "conftest.nl" 4061 $as_echo 'EGREP' >> "conftest.nl" 4062 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4064 as_fn_arith $ac_count + 1 && ac_count=$as_val 4065 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4066 # Best one so far, save it but keep looking for a better one 4067 ac_cv_path_EGREP="$ac_path_EGREP" 4068 ac_path_EGREP_max=$ac_count 4069 fi 4070 # 10*(2^10) chars as input seems more than enough 4071 test $ac_count -gt 10 && break 4072 done 4073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4074esac 4075 4076 $ac_path_EGREP_found && break 3 4077 done 4078 done 4079 done 4080IFS=$as_save_IFS 4081 if test -z "$ac_cv_path_EGREP"; then 4082 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4083 fi 4084else 4085 ac_cv_path_EGREP=$EGREP 4086fi 4087 4088 fi 4089fi 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4091$as_echo "$ac_cv_path_EGREP" >&6; } 4092 EGREP="$ac_cv_path_EGREP" 4093 4094 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4096$as_echo_n "checking for fgrep... " >&6; } 4097if ${ac_cv_path_FGREP+:} false; then : 4098 $as_echo_n "(cached) " >&6 4099else 4100 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4101 then ac_cv_path_FGREP="$GREP -F" 4102 else 4103 if test -z "$FGREP"; then 4104 ac_path_FGREP_found=false 4105 # Loop through the user's path and test for each of PROGNAME-LIST 4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4107for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4108do 4109 IFS=$as_save_IFS 4110 test -z "$as_dir" && as_dir=. 4111 for ac_prog in fgrep; do 4112 for ac_exec_ext in '' $ac_executable_extensions; do 4113 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4114 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4115# Check for GNU ac_path_FGREP and select it if it is found. 4116 # Check for GNU $ac_path_FGREP 4117case `"$ac_path_FGREP" --version 2>&1` in 4118*GNU*) 4119 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4120*) 4121 ac_count=0 4122 $as_echo_n 0123456789 >"conftest.in" 4123 while : 4124 do 4125 cat "conftest.in" "conftest.in" >"conftest.tmp" 4126 mv "conftest.tmp" "conftest.in" 4127 cp "conftest.in" "conftest.nl" 4128 $as_echo 'FGREP' >> "conftest.nl" 4129 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4131 as_fn_arith $ac_count + 1 && ac_count=$as_val 4132 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4133 # Best one so far, save it but keep looking for a better one 4134 ac_cv_path_FGREP="$ac_path_FGREP" 4135 ac_path_FGREP_max=$ac_count 4136 fi 4137 # 10*(2^10) chars as input seems more than enough 4138 test $ac_count -gt 10 && break 4139 done 4140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4141esac 4142 4143 $ac_path_FGREP_found && break 3 4144 done 4145 done 4146 done 4147IFS=$as_save_IFS 4148 if test -z "$ac_cv_path_FGREP"; then 4149 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4150 fi 4151else 4152 ac_cv_path_FGREP=$FGREP 4153fi 4154 4155 fi 4156fi 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4158$as_echo "$ac_cv_path_FGREP" >&6; } 4159 FGREP="$ac_cv_path_FGREP" 4160 4161 4162test -z "$GREP" && GREP=grep 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182# Check whether --with-gnu-ld was given. 4183if test "${with_gnu_ld+set}" = set; then : 4184 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4185else 4186 with_gnu_ld=no 4187fi 4188 4189ac_prog=ld 4190if test "$GCC" = yes; then 4191 # Check if gcc -print-prog-name=ld gives a path. 4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4193$as_echo_n "checking for ld used by $CC... " >&6; } 4194 case $host in 4195 *-*-mingw*) 4196 # gcc leaves a trailing carriage return which upsets mingw 4197 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4198 *) 4199 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4200 esac 4201 case $ac_prog in 4202 # Accept absolute paths. 4203 [\\/]* | ?:[\\/]*) 4204 re_direlt='/[^/][^/]*/\.\./' 4205 # Canonicalize the pathname of ld 4206 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4207 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4208 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4209 done 4210 test -z "$LD" && LD="$ac_prog" 4211 ;; 4212 "") 4213 # If it fails, then pretend we aren't using GCC. 4214 ac_prog=ld 4215 ;; 4216 *) 4217 # If it is relative, then search for the first ld in PATH. 4218 with_gnu_ld=unknown 4219 ;; 4220 esac 4221elif test "$with_gnu_ld" = yes; then 4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4223$as_echo_n "checking for GNU ld... " >&6; } 4224else 4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4226$as_echo_n "checking for non-GNU ld... " >&6; } 4227fi 4228if ${lt_cv_path_LD+:} false; then : 4229 $as_echo_n "(cached) " >&6 4230else 4231 if test -z "$LD"; then 4232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4233 for ac_dir in $PATH; do 4234 IFS="$lt_save_ifs" 4235 test -z "$ac_dir" && ac_dir=. 4236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4237 lt_cv_path_LD="$ac_dir/$ac_prog" 4238 # Check to see if the program is GNU ld. I'd rather use --version, 4239 # but apparently some variants of GNU ld only accept -v. 4240 # Break only if it was the GNU/non-GNU ld that we prefer. 4241 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4242 *GNU* | *'with BFD'*) 4243 test "$with_gnu_ld" != no && break 4244 ;; 4245 *) 4246 test "$with_gnu_ld" != yes && break 4247 ;; 4248 esac 4249 fi 4250 done 4251 IFS="$lt_save_ifs" 4252else 4253 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4254fi 4255fi 4256 4257LD="$lt_cv_path_LD" 4258if test -n "$LD"; then 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4260$as_echo "$LD" >&6; } 4261else 4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4263$as_echo "no" >&6; } 4264fi 4265test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4267$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4268if ${lt_cv_prog_gnu_ld+:} false; then : 4269 $as_echo_n "(cached) " >&6 4270else 4271 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4272case `$LD -v 2>&1 </dev/null` in 4273*GNU* | *'with BFD'*) 4274 lt_cv_prog_gnu_ld=yes 4275 ;; 4276*) 4277 lt_cv_prog_gnu_ld=no 4278 ;; 4279esac 4280fi 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4282$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4283with_gnu_ld=$lt_cv_prog_gnu_ld 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4294$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4295if ${lt_cv_path_NM+:} false; then : 4296 $as_echo_n "(cached) " >&6 4297else 4298 if test -n "$NM"; then 4299 # Let the user override the test. 4300 lt_cv_path_NM="$NM" 4301else 4302 lt_nm_to_check="${ac_tool_prefix}nm" 4303 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4304 lt_nm_to_check="$lt_nm_to_check nm" 4305 fi 4306 for lt_tmp_nm in $lt_nm_to_check; do 4307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4308 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4309 IFS="$lt_save_ifs" 4310 test -z "$ac_dir" && ac_dir=. 4311 tmp_nm="$ac_dir/$lt_tmp_nm" 4312 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4313 # Check to see if the nm accepts a BSD-compat flag. 4314 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4315 # nm: unknown option "B" ignored 4316 # Tru64's nm complains that /dev/null is an invalid object file 4317 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4318 */dev/null* | *'Invalid file or object type'*) 4319 lt_cv_path_NM="$tmp_nm -B" 4320 break 4321 ;; 4322 *) 4323 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4324 */dev/null*) 4325 lt_cv_path_NM="$tmp_nm -p" 4326 break 4327 ;; 4328 *) 4329 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4330 continue # so that we can try to find one that supports BSD flags 4331 ;; 4332 esac 4333 ;; 4334 esac 4335 fi 4336 done 4337 IFS="$lt_save_ifs" 4338 done 4339 : ${lt_cv_path_NM=no} 4340fi 4341fi 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4343$as_echo "$lt_cv_path_NM" >&6; } 4344if test "$lt_cv_path_NM" != "no"; then 4345 NM="$lt_cv_path_NM" 4346else 4347 # Didn't find any BSD compatible name lister, look for dumpbin. 4348 if test -n "$DUMPBIN"; then : 4349 # Let the user override the test. 4350 else 4351 if test -n "$ac_tool_prefix"; then 4352 for ac_prog in dumpbin "link -dump" 4353 do 4354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4355set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4357$as_echo_n "checking for $ac_word... " >&6; } 4358if ${ac_cv_prog_DUMPBIN+:} false; then : 4359 $as_echo_n "(cached) " >&6 4360else 4361 if test -n "$DUMPBIN"; then 4362 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4363else 4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4365for as_dir in $PATH 4366do 4367 IFS=$as_save_IFS 4368 test -z "$as_dir" && as_dir=. 4369 for ac_exec_ext in '' $ac_executable_extensions; do 4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4371 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4373 break 2 4374 fi 4375done 4376 done 4377IFS=$as_save_IFS 4378 4379fi 4380fi 4381DUMPBIN=$ac_cv_prog_DUMPBIN 4382if test -n "$DUMPBIN"; then 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4384$as_echo "$DUMPBIN" >&6; } 4385else 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4387$as_echo "no" >&6; } 4388fi 4389 4390 4391 test -n "$DUMPBIN" && break 4392 done 4393fi 4394if test -z "$DUMPBIN"; then 4395 ac_ct_DUMPBIN=$DUMPBIN 4396 for ac_prog in dumpbin "link -dump" 4397do 4398 # Extract the first word of "$ac_prog", so it can be a program name with args. 4399set dummy $ac_prog; ac_word=$2 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4401$as_echo_n "checking for $ac_word... " >&6; } 4402if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4403 $as_echo_n "(cached) " >&6 4404else 4405 if test -n "$ac_ct_DUMPBIN"; then 4406 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4407else 4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4409for as_dir in $PATH 4410do 4411 IFS=$as_save_IFS 4412 test -z "$as_dir" && as_dir=. 4413 for ac_exec_ext in '' $ac_executable_extensions; do 4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4415 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4417 break 2 4418 fi 4419done 4420 done 4421IFS=$as_save_IFS 4422 4423fi 4424fi 4425ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4426if test -n "$ac_ct_DUMPBIN"; then 4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4428$as_echo "$ac_ct_DUMPBIN" >&6; } 4429else 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4431$as_echo "no" >&6; } 4432fi 4433 4434 4435 test -n "$ac_ct_DUMPBIN" && break 4436done 4437 4438 if test "x$ac_ct_DUMPBIN" = x; then 4439 DUMPBIN=":" 4440 else 4441 case $cross_compiling:$ac_tool_warned in 4442yes:) 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4445ac_tool_warned=yes ;; 4446esac 4447 DUMPBIN=$ac_ct_DUMPBIN 4448 fi 4449fi 4450 4451 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4452 *COFF*) 4453 DUMPBIN="$DUMPBIN -symbols" 4454 ;; 4455 *) 4456 DUMPBIN=: 4457 ;; 4458 esac 4459 fi 4460 4461 if test "$DUMPBIN" != ":"; then 4462 NM="$DUMPBIN" 4463 fi 4464fi 4465test -z "$NM" && NM=nm 4466 4467 4468 4469 4470 4471 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4473$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4474if ${lt_cv_nm_interface+:} false; then : 4475 $as_echo_n "(cached) " >&6 4476else 4477 lt_cv_nm_interface="BSD nm" 4478 echo "int some_variable = 0;" > conftest.$ac_ext 4479 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4480 (eval "$ac_compile" 2>conftest.err) 4481 cat conftest.err >&5 4482 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4483 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4484 cat conftest.err >&5 4485 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4486 cat conftest.out >&5 4487 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4488 lt_cv_nm_interface="MS dumpbin" 4489 fi 4490 rm -f conftest* 4491fi 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4493$as_echo "$lt_cv_nm_interface" >&6; } 4494 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4496$as_echo_n "checking whether ln -s works... " >&6; } 4497LN_S=$as_ln_s 4498if test "$LN_S" = "ln -s"; then 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4500$as_echo "yes" >&6; } 4501else 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4503$as_echo "no, using $LN_S" >&6; } 4504fi 4505 4506# find the maximum length of command line arguments 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4508$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4509if ${lt_cv_sys_max_cmd_len+:} false; then : 4510 $as_echo_n "(cached) " >&6 4511else 4512 i=0 4513 teststring="ABCD" 4514 4515 case $build_os in 4516 msdosdjgpp*) 4517 # On DJGPP, this test can blow up pretty badly due to problems in libc 4518 # (any single argument exceeding 2000 bytes causes a buffer overrun 4519 # during glob expansion). Even if it were fixed, the result of this 4520 # check would be larger than it should be. 4521 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4522 ;; 4523 4524 gnu*) 4525 # Under GNU Hurd, this test is not required because there is 4526 # no limit to the length of command line arguments. 4527 # Libtool will interpret -1 as no limit whatsoever 4528 lt_cv_sys_max_cmd_len=-1; 4529 ;; 4530 4531 cygwin* | mingw* | cegcc*) 4532 # On Win9x/ME, this test blows up -- it succeeds, but takes 4533 # about 5 minutes as the teststring grows exponentially. 4534 # Worse, since 9x/ME are not pre-emptively multitasking, 4535 # you end up with a "frozen" computer, even though with patience 4536 # the test eventually succeeds (with a max line length of 256k). 4537 # Instead, let's just punt: use the minimum linelength reported by 4538 # all of the supported platforms: 8192 (on NT/2K/XP). 4539 lt_cv_sys_max_cmd_len=8192; 4540 ;; 4541 4542 mint*) 4543 # On MiNT this can take a long time and run out of memory. 4544 lt_cv_sys_max_cmd_len=8192; 4545 ;; 4546 4547 amigaos*) 4548 # On AmigaOS with pdksh, this test takes hours, literally. 4549 # So we just punt and use a minimum line length of 8192. 4550 lt_cv_sys_max_cmd_len=8192; 4551 ;; 4552 4553 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4554 # This has been around since 386BSD, at least. Likely further. 4555 if test -x /sbin/sysctl; then 4556 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4557 elif test -x /usr/sbin/sysctl; then 4558 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4559 else 4560 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4561 fi 4562 # And add a safety zone 4563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4565 ;; 4566 4567 interix*) 4568 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4569 lt_cv_sys_max_cmd_len=196608 4570 ;; 4571 4572 os2*) 4573 # The test takes a long time on OS/2. 4574 lt_cv_sys_max_cmd_len=8192 4575 ;; 4576 4577 osf*) 4578 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4579 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4580 # nice to cause kernel panics so lets avoid the loop below. 4581 # First set a reasonable default. 4582 lt_cv_sys_max_cmd_len=16384 4583 # 4584 if test -x /sbin/sysconfig; then 4585 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4586 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4587 esac 4588 fi 4589 ;; 4590 sco3.2v5*) 4591 lt_cv_sys_max_cmd_len=102400 4592 ;; 4593 sysv5* | sco5v6* | sysv4.2uw2*) 4594 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4595 if test -n "$kargmax"; then 4596 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4597 else 4598 lt_cv_sys_max_cmd_len=32768 4599 fi 4600 ;; 4601 *) 4602 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4603 if test -n "$lt_cv_sys_max_cmd_len"; then 4604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4606 else 4607 # Make teststring a little bigger before we do anything with it. 4608 # a 1K string should be a reasonable start. 4609 for i in 1 2 3 4 5 6 7 8 ; do 4610 teststring=$teststring$teststring 4611 done 4612 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4613 # If test is not a shell built-in, we'll probably end up computing a 4614 # maximum length that is only half of the actual maximum length, but 4615 # we can't tell. 4616 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4617 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4618 test $i != 17 # 1/2 MB should be enough 4619 do 4620 i=`expr $i + 1` 4621 teststring=$teststring$teststring 4622 done 4623 # Only check the string length outside the loop. 4624 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4625 teststring= 4626 # Add a significant safety factor because C++ compilers can tack on 4627 # massive amounts of additional arguments before passing them to the 4628 # linker. It appears as though 1/2 is a usable value. 4629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4630 fi 4631 ;; 4632 esac 4633 4634fi 4635 4636if test -n $lt_cv_sys_max_cmd_len ; then 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4638$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4639else 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4641$as_echo "none" >&6; } 4642fi 4643max_cmd_len=$lt_cv_sys_max_cmd_len 4644 4645 4646 4647 4648 4649 4650: ${CP="cp -f"} 4651: ${MV="mv -f"} 4652: ${RM="rm -f"} 4653 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4655$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4656# Try some XSI features 4657xsi_shell=no 4658( _lt_dummy="a/b/c" 4659 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4660 = c,a/b,b/c, \ 4661 && eval 'test $(( 1 + 1 )) -eq 2 \ 4662 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4663 && xsi_shell=yes 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4665$as_echo "$xsi_shell" >&6; } 4666 4667 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4669$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4670lt_shell_append=no 4671( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4672 >/dev/null 2>&1 \ 4673 && lt_shell_append=yes 4674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4675$as_echo "$lt_shell_append" >&6; } 4676 4677 4678if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4679 lt_unset=unset 4680else 4681 lt_unset=false 4682fi 4683 4684 4685 4686 4687 4688# test EBCDIC or ASCII 4689case `echo X|tr X '\101'` in 4690 A) # ASCII based system 4691 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4692 lt_SP2NL='tr \040 \012' 4693 lt_NL2SP='tr \015\012 \040\040' 4694 ;; 4695 *) # EBCDIC based system 4696 lt_SP2NL='tr \100 \n' 4697 lt_NL2SP='tr \r\n \100\100' 4698 ;; 4699esac 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4710$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4711if ${lt_cv_to_host_file_cmd+:} false; then : 4712 $as_echo_n "(cached) " >&6 4713else 4714 case $host in 4715 *-*-mingw* ) 4716 case $build in 4717 *-*-mingw* ) # actually msys 4718 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4719 ;; 4720 *-*-cygwin* ) 4721 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4722 ;; 4723 * ) # otherwise, assume *nix 4724 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4725 ;; 4726 esac 4727 ;; 4728 *-*-cygwin* ) 4729 case $build in 4730 *-*-mingw* ) # actually msys 4731 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4732 ;; 4733 *-*-cygwin* ) 4734 lt_cv_to_host_file_cmd=func_convert_file_noop 4735 ;; 4736 * ) # otherwise, assume *nix 4737 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4738 ;; 4739 esac 4740 ;; 4741 * ) # unhandled hosts (and "normal" native builds) 4742 lt_cv_to_host_file_cmd=func_convert_file_noop 4743 ;; 4744esac 4745 4746fi 4747 4748to_host_file_cmd=$lt_cv_to_host_file_cmd 4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4750$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4751 4752 4753 4754 4755 4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4757$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4758if ${lt_cv_to_tool_file_cmd+:} false; then : 4759 $as_echo_n "(cached) " >&6 4760else 4761 #assume ordinary cross tools, or native build. 4762lt_cv_to_tool_file_cmd=func_convert_file_noop 4763case $host in 4764 *-*-mingw* ) 4765 case $build in 4766 *-*-mingw* ) # actually msys 4767 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4768 ;; 4769 esac 4770 ;; 4771esac 4772 4773fi 4774 4775to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4777$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4778 4779 4780 4781 4782 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4784$as_echo_n "checking for $LD option to reload object files... " >&6; } 4785if ${lt_cv_ld_reload_flag+:} false; then : 4786 $as_echo_n "(cached) " >&6 4787else 4788 lt_cv_ld_reload_flag='-r' 4789fi 4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4791$as_echo "$lt_cv_ld_reload_flag" >&6; } 4792reload_flag=$lt_cv_ld_reload_flag 4793case $reload_flag in 4794"" | " "*) ;; 4795*) reload_flag=" $reload_flag" ;; 4796esac 4797reload_cmds='$LD$reload_flag -o $output$reload_objs' 4798case $host_os in 4799 cygwin* | mingw* | pw32* | cegcc*) 4800 if test "$GCC" != yes; then 4801 reload_cmds=false 4802 fi 4803 ;; 4804 darwin*) 4805 if test "$GCC" = yes; then 4806 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4807 else 4808 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4809 fi 4810 ;; 4811esac 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821if test -n "$ac_tool_prefix"; then 4822 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4823set dummy ${ac_tool_prefix}objdump; ac_word=$2 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4825$as_echo_n "checking for $ac_word... " >&6; } 4826if ${ac_cv_prog_OBJDUMP+:} false; then : 4827 $as_echo_n "(cached) " >&6 4828else 4829 if test -n "$OBJDUMP"; then 4830 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4831else 4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4833for as_dir in $PATH 4834do 4835 IFS=$as_save_IFS 4836 test -z "$as_dir" && as_dir=. 4837 for ac_exec_ext in '' $ac_executable_extensions; do 4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4839 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4841 break 2 4842 fi 4843done 4844 done 4845IFS=$as_save_IFS 4846 4847fi 4848fi 4849OBJDUMP=$ac_cv_prog_OBJDUMP 4850if test -n "$OBJDUMP"; then 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4852$as_echo "$OBJDUMP" >&6; } 4853else 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4855$as_echo "no" >&6; } 4856fi 4857 4858 4859fi 4860if test -z "$ac_cv_prog_OBJDUMP"; then 4861 ac_ct_OBJDUMP=$OBJDUMP 4862 # Extract the first word of "objdump", so it can be a program name with args. 4863set dummy objdump; ac_word=$2 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4865$as_echo_n "checking for $ac_word... " >&6; } 4866if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4867 $as_echo_n "(cached) " >&6 4868else 4869 if test -n "$ac_ct_OBJDUMP"; then 4870 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4871else 4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4873for as_dir in $PATH 4874do 4875 IFS=$as_save_IFS 4876 test -z "$as_dir" && as_dir=. 4877 for ac_exec_ext in '' $ac_executable_extensions; do 4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4879 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4881 break 2 4882 fi 4883done 4884 done 4885IFS=$as_save_IFS 4886 4887fi 4888fi 4889ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4890if test -n "$ac_ct_OBJDUMP"; then 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4892$as_echo "$ac_ct_OBJDUMP" >&6; } 4893else 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4895$as_echo "no" >&6; } 4896fi 4897 4898 if test "x$ac_ct_OBJDUMP" = x; then 4899 OBJDUMP="false" 4900 else 4901 case $cross_compiling:$ac_tool_warned in 4902yes:) 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4905ac_tool_warned=yes ;; 4906esac 4907 OBJDUMP=$ac_ct_OBJDUMP 4908 fi 4909else 4910 OBJDUMP="$ac_cv_prog_OBJDUMP" 4911fi 4912 4913test -z "$OBJDUMP" && OBJDUMP=objdump 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4924$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4925if ${lt_cv_deplibs_check_method+:} false; then : 4926 $as_echo_n "(cached) " >&6 4927else 4928 lt_cv_file_magic_cmd='$MAGIC_CMD' 4929lt_cv_file_magic_test_file= 4930lt_cv_deplibs_check_method='unknown' 4931# Need to set the preceding variable on all platforms that support 4932# interlibrary dependencies. 4933# 'none' -- dependencies not supported. 4934# `unknown' -- same as none, but documents that we really don't know. 4935# 'pass_all' -- all dependencies passed with no checks. 4936# 'test_compile' -- check by making test program. 4937# 'file_magic [[regex]]' -- check by looking for files in library path 4938# which responds to the $file_magic_cmd with a given extended regex. 4939# If you have `file' or equivalent on your system and you're not sure 4940# whether `pass_all' will *always* work, you probably want this one. 4941 4942case $host_os in 4943aix[4-9]*) 4944 lt_cv_deplibs_check_method=pass_all 4945 ;; 4946 4947beos*) 4948 lt_cv_deplibs_check_method=pass_all 4949 ;; 4950 4951bsdi[45]*) 4952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4953 lt_cv_file_magic_cmd='/usr/bin/file -L' 4954 lt_cv_file_magic_test_file=/shlib/libc.so 4955 ;; 4956 4957cygwin*) 4958 # func_win32_libid is a shell function defined in ltmain.sh 4959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4960 lt_cv_file_magic_cmd='func_win32_libid' 4961 ;; 4962 4963mingw* | pw32*) 4964 # Base MSYS/MinGW do not provide the 'file' command needed by 4965 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4966 # unless we find 'file', for example because we are cross-compiling. 4967 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4968 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4970 lt_cv_file_magic_cmd='func_win32_libid' 4971 else 4972 # Keep this pattern in sync with the one in func_win32_libid. 4973 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4974 lt_cv_file_magic_cmd='$OBJDUMP -f' 4975 fi 4976 ;; 4977 4978cegcc*) 4979 # use the weaker test based on 'objdump'. See mingw*. 4980 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4981 lt_cv_file_magic_cmd='$OBJDUMP -f' 4982 ;; 4983 4984darwin* | rhapsody*) 4985 lt_cv_deplibs_check_method=pass_all 4986 ;; 4987 4988freebsd* | dragonfly*) 4989 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4990 case $host_cpu in 4991 i*86 ) 4992 # Not sure whether the presence of OpenBSD here was a mistake. 4993 # Let's accept both of them until this is cleared up. 4994 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4995 lt_cv_file_magic_cmd=/usr/bin/file 4996 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4997 ;; 4998 esac 4999 else 5000 lt_cv_deplibs_check_method=pass_all 5001 fi 5002 ;; 5003 5004gnu*) 5005 lt_cv_deplibs_check_method=pass_all 5006 ;; 5007 5008haiku*) 5009 lt_cv_deplibs_check_method=pass_all 5010 ;; 5011 5012hpux10.20* | hpux11*) 5013 lt_cv_file_magic_cmd=/usr/bin/file 5014 case $host_cpu in 5015 ia64*) 5016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5018 ;; 5019 hppa*64*) 5020 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]' 5021 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5022 ;; 5023 *) 5024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5025 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5026 ;; 5027 esac 5028 ;; 5029 5030interix[3-9]*) 5031 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5033 ;; 5034 5035irix5* | irix6* | nonstopux*) 5036 case $LD in 5037 *-32|*"-32 ") libmagic=32-bit;; 5038 *-n32|*"-n32 ") libmagic=N32;; 5039 *-64|*"-64 ") libmagic=64-bit;; 5040 *) libmagic=never-match;; 5041 esac 5042 lt_cv_deplibs_check_method=pass_all 5043 ;; 5044 5045# This must be glibc/ELF. 5046linux* | k*bsd*-gnu | kopensolaris*-gnu) 5047 lt_cv_deplibs_check_method=pass_all 5048 ;; 5049 5050netbsd*) 5051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5053 else 5054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5055 fi 5056 ;; 5057 5058newos6*) 5059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5060 lt_cv_file_magic_cmd=/usr/bin/file 5061 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5062 ;; 5063 5064*nto* | *qnx*) 5065 lt_cv_deplibs_check_method=pass_all 5066 ;; 5067 5068openbsd*) 5069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5071 else 5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5073 fi 5074 ;; 5075 5076osf3* | osf4* | osf5*) 5077 lt_cv_deplibs_check_method=pass_all 5078 ;; 5079 5080rdos*) 5081 lt_cv_deplibs_check_method=pass_all 5082 ;; 5083 5084solaris*) 5085 lt_cv_deplibs_check_method=pass_all 5086 ;; 5087 5088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5089 lt_cv_deplibs_check_method=pass_all 5090 ;; 5091 5092sysv4 | sysv4.3*) 5093 case $host_vendor in 5094 motorola) 5095 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]' 5096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5097 ;; 5098 ncr) 5099 lt_cv_deplibs_check_method=pass_all 5100 ;; 5101 sequent) 5102 lt_cv_file_magic_cmd='/bin/file' 5103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5104 ;; 5105 sni) 5106 lt_cv_file_magic_cmd='/bin/file' 5107 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5108 lt_cv_file_magic_test_file=/lib/libc.so 5109 ;; 5110 siemens) 5111 lt_cv_deplibs_check_method=pass_all 5112 ;; 5113 pc) 5114 lt_cv_deplibs_check_method=pass_all 5115 ;; 5116 esac 5117 ;; 5118 5119tpf*) 5120 lt_cv_deplibs_check_method=pass_all 5121 ;; 5122esac 5123 5124fi 5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5126$as_echo "$lt_cv_deplibs_check_method" >&6; } 5127 5128file_magic_glob= 5129want_nocaseglob=no 5130if test "$build" = "$host"; then 5131 case $host_os in 5132 mingw* | pw32*) 5133 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5134 want_nocaseglob=yes 5135 else 5136 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5137 fi 5138 ;; 5139 esac 5140fi 5141 5142file_magic_cmd=$lt_cv_file_magic_cmd 5143deplibs_check_method=$lt_cv_deplibs_check_method 5144test -z "$deplibs_check_method" && deplibs_check_method=unknown 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167if test -n "$ac_tool_prefix"; then 5168 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5169set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5171$as_echo_n "checking for $ac_word... " >&6; } 5172if ${ac_cv_prog_DLLTOOL+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174else 5175 if test -n "$DLLTOOL"; then 5176 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5177else 5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5179for as_dir in $PATH 5180do 5181 IFS=$as_save_IFS 5182 test -z "$as_dir" && as_dir=. 5183 for ac_exec_ext in '' $ac_executable_extensions; do 5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5185 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5187 break 2 5188 fi 5189done 5190 done 5191IFS=$as_save_IFS 5192 5193fi 5194fi 5195DLLTOOL=$ac_cv_prog_DLLTOOL 5196if test -n "$DLLTOOL"; then 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5198$as_echo "$DLLTOOL" >&6; } 5199else 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5201$as_echo "no" >&6; } 5202fi 5203 5204 5205fi 5206if test -z "$ac_cv_prog_DLLTOOL"; then 5207 ac_ct_DLLTOOL=$DLLTOOL 5208 # Extract the first word of "dlltool", so it can be a program name with args. 5209set dummy dlltool; ac_word=$2 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5211$as_echo_n "checking for $ac_word... " >&6; } 5212if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 if test -n "$ac_ct_DLLTOOL"; then 5216 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5217else 5218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5219for as_dir in $PATH 5220do 5221 IFS=$as_save_IFS 5222 test -z "$as_dir" && as_dir=. 5223 for ac_exec_ext in '' $ac_executable_extensions; do 5224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5225 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5227 break 2 5228 fi 5229done 5230 done 5231IFS=$as_save_IFS 5232 5233fi 5234fi 5235ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5236if test -n "$ac_ct_DLLTOOL"; then 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5238$as_echo "$ac_ct_DLLTOOL" >&6; } 5239else 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5241$as_echo "no" >&6; } 5242fi 5243 5244 if test "x$ac_ct_DLLTOOL" = x; then 5245 DLLTOOL="false" 5246 else 5247 case $cross_compiling:$ac_tool_warned in 5248yes:) 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5251ac_tool_warned=yes ;; 5252esac 5253 DLLTOOL=$ac_ct_DLLTOOL 5254 fi 5255else 5256 DLLTOOL="$ac_cv_prog_DLLTOOL" 5257fi 5258 5259test -z "$DLLTOOL" && DLLTOOL=dlltool 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5271$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5272if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 lt_cv_sharedlib_from_linklib_cmd='unknown' 5276 5277case $host_os in 5278cygwin* | mingw* | pw32* | cegcc*) 5279 # two different shell functions defined in ltmain.sh 5280 # decide which to use based on capabilities of $DLLTOOL 5281 case `$DLLTOOL --help 2>&1` in 5282 *--identify-strict*) 5283 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5284 ;; 5285 *) 5286 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5287 ;; 5288 esac 5289 ;; 5290*) 5291 # fallback: assume linklib IS sharedlib 5292 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5293 ;; 5294esac 5295 5296fi 5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5298$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5299sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5300test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5301 5302 5303 5304 5305 5306 5307 5308 5309if test -n "$ac_tool_prefix"; then 5310 for ac_prog in ar 5311 do 5312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5313set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5315$as_echo_n "checking for $ac_word... " >&6; } 5316if ${ac_cv_prog_AR+:} false; then : 5317 $as_echo_n "(cached) " >&6 5318else 5319 if test -n "$AR"; then 5320 ac_cv_prog_AR="$AR" # Let the user override the test. 5321else 5322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5323for as_dir in $PATH 5324do 5325 IFS=$as_save_IFS 5326 test -z "$as_dir" && as_dir=. 5327 for ac_exec_ext in '' $ac_executable_extensions; do 5328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5329 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5331 break 2 5332 fi 5333done 5334 done 5335IFS=$as_save_IFS 5336 5337fi 5338fi 5339AR=$ac_cv_prog_AR 5340if test -n "$AR"; then 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5342$as_echo "$AR" >&6; } 5343else 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5345$as_echo "no" >&6; } 5346fi 5347 5348 5349 test -n "$AR" && break 5350 done 5351fi 5352if test -z "$AR"; then 5353 ac_ct_AR=$AR 5354 for ac_prog in ar 5355do 5356 # Extract the first word of "$ac_prog", so it can be a program name with args. 5357set dummy $ac_prog; ac_word=$2 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5359$as_echo_n "checking for $ac_word... " >&6; } 5360if ${ac_cv_prog_ac_ct_AR+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 if test -n "$ac_ct_AR"; then 5364 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5365else 5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5367for as_dir in $PATH 5368do 5369 IFS=$as_save_IFS 5370 test -z "$as_dir" && as_dir=. 5371 for ac_exec_ext in '' $ac_executable_extensions; do 5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5373 ac_cv_prog_ac_ct_AR="$ac_prog" 5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5375 break 2 5376 fi 5377done 5378 done 5379IFS=$as_save_IFS 5380 5381fi 5382fi 5383ac_ct_AR=$ac_cv_prog_ac_ct_AR 5384if test -n "$ac_ct_AR"; then 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5386$as_echo "$ac_ct_AR" >&6; } 5387else 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5389$as_echo "no" >&6; } 5390fi 5391 5392 5393 test -n "$ac_ct_AR" && break 5394done 5395 5396 if test "x$ac_ct_AR" = x; then 5397 AR="false" 5398 else 5399 case $cross_compiling:$ac_tool_warned in 5400yes:) 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5403ac_tool_warned=yes ;; 5404esac 5405 AR=$ac_ct_AR 5406 fi 5407fi 5408 5409: ${AR=ar} 5410: ${AR_FLAGS=cru} 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5423$as_echo_n "checking for archiver @FILE support... " >&6; } 5424if ${lt_cv_ar_at_file+:} false; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 lt_cv_ar_at_file=no 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5429/* end confdefs.h. */ 5430 5431int 5432main () 5433{ 5434 5435 ; 5436 return 0; 5437} 5438_ACEOF 5439if ac_fn_c_try_compile "$LINENO"; then : 5440 echo conftest.$ac_objext > conftest.lst 5441 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5443 (eval $lt_ar_try) 2>&5 5444 ac_status=$? 5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5446 test $ac_status = 0; } 5447 if test "$ac_status" -eq 0; then 5448 # Ensure the archiver fails upon bogus file names. 5449 rm -f conftest.$ac_objext libconftest.a 5450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5451 (eval $lt_ar_try) 2>&5 5452 ac_status=$? 5453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5454 test $ac_status = 0; } 5455 if test "$ac_status" -ne 0; then 5456 lt_cv_ar_at_file=@ 5457 fi 5458 fi 5459 rm -f conftest.* libconftest.a 5460 5461fi 5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5463 5464fi 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5466$as_echo "$lt_cv_ar_at_file" >&6; } 5467 5468if test "x$lt_cv_ar_at_file" = xno; then 5469 archiver_list_spec= 5470else 5471 archiver_list_spec=$lt_cv_ar_at_file 5472fi 5473 5474 5475 5476 5477 5478 5479 5480if test -n "$ac_tool_prefix"; then 5481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5482set dummy ${ac_tool_prefix}strip; ac_word=$2 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5484$as_echo_n "checking for $ac_word... " >&6; } 5485if ${ac_cv_prog_STRIP+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 if test -n "$STRIP"; then 5489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5490else 5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5492for as_dir in $PATH 5493do 5494 IFS=$as_save_IFS 5495 test -z "$as_dir" && as_dir=. 5496 for ac_exec_ext in '' $ac_executable_extensions; do 5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5498 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5500 break 2 5501 fi 5502done 5503 done 5504IFS=$as_save_IFS 5505 5506fi 5507fi 5508STRIP=$ac_cv_prog_STRIP 5509if test -n "$STRIP"; then 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5511$as_echo "$STRIP" >&6; } 5512else 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5514$as_echo "no" >&6; } 5515fi 5516 5517 5518fi 5519if test -z "$ac_cv_prog_STRIP"; then 5520 ac_ct_STRIP=$STRIP 5521 # Extract the first word of "strip", so it can be a program name with args. 5522set dummy strip; ac_word=$2 5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5524$as_echo_n "checking for $ac_word... " >&6; } 5525if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5526 $as_echo_n "(cached) " >&6 5527else 5528 if test -n "$ac_ct_STRIP"; then 5529 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5530else 5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5532for as_dir in $PATH 5533do 5534 IFS=$as_save_IFS 5535 test -z "$as_dir" && as_dir=. 5536 for ac_exec_ext in '' $ac_executable_extensions; do 5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5538 ac_cv_prog_ac_ct_STRIP="strip" 5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5540 break 2 5541 fi 5542done 5543 done 5544IFS=$as_save_IFS 5545 5546fi 5547fi 5548ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5549if test -n "$ac_ct_STRIP"; then 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5551$as_echo "$ac_ct_STRIP" >&6; } 5552else 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5554$as_echo "no" >&6; } 5555fi 5556 5557 if test "x$ac_ct_STRIP" = x; then 5558 STRIP=":" 5559 else 5560 case $cross_compiling:$ac_tool_warned in 5561yes:) 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5564ac_tool_warned=yes ;; 5565esac 5566 STRIP=$ac_ct_STRIP 5567 fi 5568else 5569 STRIP="$ac_cv_prog_STRIP" 5570fi 5571 5572test -z "$STRIP" && STRIP=: 5573 5574 5575 5576 5577 5578 5579if test -n "$ac_tool_prefix"; then 5580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5581set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5583$as_echo_n "checking for $ac_word... " >&6; } 5584if ${ac_cv_prog_RANLIB+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 if test -n "$RANLIB"; then 5588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5589else 5590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5591for as_dir in $PATH 5592do 5593 IFS=$as_save_IFS 5594 test -z "$as_dir" && as_dir=. 5595 for ac_exec_ext in '' $ac_executable_extensions; do 5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5599 break 2 5600 fi 5601done 5602 done 5603IFS=$as_save_IFS 5604 5605fi 5606fi 5607RANLIB=$ac_cv_prog_RANLIB 5608if test -n "$RANLIB"; then 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5610$as_echo "$RANLIB" >&6; } 5611else 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5613$as_echo "no" >&6; } 5614fi 5615 5616 5617fi 5618if test -z "$ac_cv_prog_RANLIB"; then 5619 ac_ct_RANLIB=$RANLIB 5620 # Extract the first word of "ranlib", so it can be a program name with args. 5621set dummy ranlib; ac_word=$2 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5623$as_echo_n "checking for $ac_word... " >&6; } 5624if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5625 $as_echo_n "(cached) " >&6 5626else 5627 if test -n "$ac_ct_RANLIB"; then 5628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5629else 5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5631for as_dir in $PATH 5632do 5633 IFS=$as_save_IFS 5634 test -z "$as_dir" && as_dir=. 5635 for ac_exec_ext in '' $ac_executable_extensions; do 5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5637 ac_cv_prog_ac_ct_RANLIB="ranlib" 5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5639 break 2 5640 fi 5641done 5642 done 5643IFS=$as_save_IFS 5644 5645fi 5646fi 5647ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5648if test -n "$ac_ct_RANLIB"; then 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5650$as_echo "$ac_ct_RANLIB" >&6; } 5651else 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5653$as_echo "no" >&6; } 5654fi 5655 5656 if test "x$ac_ct_RANLIB" = x; then 5657 RANLIB=":" 5658 else 5659 case $cross_compiling:$ac_tool_warned in 5660yes:) 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5663ac_tool_warned=yes ;; 5664esac 5665 RANLIB=$ac_ct_RANLIB 5666 fi 5667else 5668 RANLIB="$ac_cv_prog_RANLIB" 5669fi 5670 5671test -z "$RANLIB" && RANLIB=: 5672 5673 5674 5675 5676 5677 5678# Determine commands to create old-style static archives. 5679old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5680old_postinstall_cmds='chmod 644 $oldlib' 5681old_postuninstall_cmds= 5682 5683if test -n "$RANLIB"; then 5684 case $host_os in 5685 openbsd*) 5686 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5687 ;; 5688 *) 5689 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5690 ;; 5691 esac 5692 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5693fi 5694 5695case $host_os in 5696 darwin*) 5697 lock_old_archive_extraction=yes ;; 5698 *) 5699 lock_old_archive_extraction=no ;; 5700esac 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740# If no C compiler was specified, use CC. 5741LTCC=${LTCC-"$CC"} 5742 5743# If no C compiler flags were specified, use CFLAGS. 5744LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5745 5746# Allow CC to be a program name with arguments. 5747compiler=$CC 5748 5749 5750# Check for command to grab the raw symbol name followed by C symbol from nm. 5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5752$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5753if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5754 $as_echo_n "(cached) " >&6 5755else 5756 5757# These are sane defaults that work on at least a few old systems. 5758# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5759 5760# Character class describing NM global symbol codes. 5761symcode='[BCDEGRST]' 5762 5763# Regexp to match symbols that can be accessed directly from C. 5764sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5765 5766# Define system-specific variables. 5767case $host_os in 5768aix*) 5769 symcode='[BCDT]' 5770 ;; 5771cygwin* | mingw* | pw32* | cegcc*) 5772 symcode='[ABCDGISTW]' 5773 ;; 5774hpux*) 5775 if test "$host_cpu" = ia64; then 5776 symcode='[ABCDEGRST]' 5777 fi 5778 ;; 5779irix* | nonstopux*) 5780 symcode='[BCDEGRST]' 5781 ;; 5782osf*) 5783 symcode='[BCDEGQRST]' 5784 ;; 5785solaris*) 5786 symcode='[BDRT]' 5787 ;; 5788sco3.2v5*) 5789 symcode='[DT]' 5790 ;; 5791sysv4.2uw2*) 5792 symcode='[DT]' 5793 ;; 5794sysv5* | sco5v6* | unixware* | OpenUNIX*) 5795 symcode='[ABDT]' 5796 ;; 5797sysv4) 5798 symcode='[DFNSTU]' 5799 ;; 5800esac 5801 5802# If we're using GNU nm, then use its standard symbol codes. 5803case `$NM -V 2>&1` in 5804*GNU* | *'with BFD'*) 5805 symcode='[ABCDGIRSTW]' ;; 5806esac 5807 5808# Transform an extracted symbol line into a proper C declaration. 5809# Some systems (esp. on ia64) link data and code symbols differently, 5810# so use this general approach. 5811lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5812 5813# Transform an extracted symbol line into symbol name and symbol address 5814lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5815lt_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'" 5816 5817# Handle CRLF in mingw tool chain 5818opt_cr= 5819case $build_os in 5820mingw*) 5821 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5822 ;; 5823esac 5824 5825# Try without a prefix underscore, then with it. 5826for ac_symprfx in "" "_"; do 5827 5828 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5829 symxfrm="\\1 $ac_symprfx\\2 \\2" 5830 5831 # Write the raw and C identifiers. 5832 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5833 # Fake it for dumpbin and say T for any non-static function 5834 # and D for any global variable. 5835 # Also find C++ and __fastcall symbols from MSVC++, 5836 # which start with @ or ?. 5837 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5838" {last_section=section; section=\$ 3};"\ 5839" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5840" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5841" \$ 0!~/External *\|/{next};"\ 5842" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5843" {if(hide[section]) next};"\ 5844" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5845" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5846" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5847" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5848" ' prfx=^$ac_symprfx" 5849 else 5850 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5851 fi 5852 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5853 5854 # Check to see that the pipe works correctly. 5855 pipe_works=no 5856 5857 rm -f conftest* 5858 cat > conftest.$ac_ext <<_LT_EOF 5859#ifdef __cplusplus 5860extern "C" { 5861#endif 5862char nm_test_var; 5863void nm_test_func(void); 5864void nm_test_func(void){} 5865#ifdef __cplusplus 5866} 5867#endif 5868int main(){nm_test_var='a';nm_test_func();return(0);} 5869_LT_EOF 5870 5871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5872 (eval $ac_compile) 2>&5 5873 ac_status=$? 5874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5875 test $ac_status = 0; }; then 5876 # Now try to grab the symbols. 5877 nlist=conftest.nm 5878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5879 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5880 ac_status=$? 5881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5882 test $ac_status = 0; } && test -s "$nlist"; then 5883 # Try sorting and uniquifying the output. 5884 if sort "$nlist" | uniq > "$nlist"T; then 5885 mv -f "$nlist"T "$nlist" 5886 else 5887 rm -f "$nlist"T 5888 fi 5889 5890 # Make sure that we snagged all the symbols we need. 5891 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5892 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5893 cat <<_LT_EOF > conftest.$ac_ext 5894/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5895#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5896/* DATA imports from DLLs on WIN32 con't be const, because runtime 5897 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5898# define LT_DLSYM_CONST 5899#elif defined(__osf__) 5900/* This system does not cope well with relocations in const data. */ 5901# define LT_DLSYM_CONST 5902#else 5903# define LT_DLSYM_CONST const 5904#endif 5905 5906#ifdef __cplusplus 5907extern "C" { 5908#endif 5909 5910_LT_EOF 5911 # Now generate the symbol file. 5912 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5913 5914 cat <<_LT_EOF >> conftest.$ac_ext 5915 5916/* The mapping between symbol names and symbols. */ 5917LT_DLSYM_CONST struct { 5918 const char *name; 5919 void *address; 5920} 5921lt__PROGRAM__LTX_preloaded_symbols[] = 5922{ 5923 { "@PROGRAM@", (void *) 0 }, 5924_LT_EOF 5925 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5926 cat <<\_LT_EOF >> conftest.$ac_ext 5927 {0, (void *) 0} 5928}; 5929 5930/* This works around a problem in FreeBSD linker */ 5931#ifdef FREEBSD_WORKAROUND 5932static const void *lt_preloaded_setup() { 5933 return lt__PROGRAM__LTX_preloaded_symbols; 5934} 5935#endif 5936 5937#ifdef __cplusplus 5938} 5939#endif 5940_LT_EOF 5941 # Now try linking the two files. 5942 mv conftest.$ac_objext conftstm.$ac_objext 5943 lt_globsym_save_LIBS=$LIBS 5944 lt_globsym_save_CFLAGS=$CFLAGS 5945 LIBS="conftstm.$ac_objext" 5946 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5948 (eval $ac_link) 2>&5 5949 ac_status=$? 5950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5951 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5952 pipe_works=yes 5953 fi 5954 LIBS=$lt_globsym_save_LIBS 5955 CFLAGS=$lt_globsym_save_CFLAGS 5956 else 5957 echo "cannot find nm_test_func in $nlist" >&5 5958 fi 5959 else 5960 echo "cannot find nm_test_var in $nlist" >&5 5961 fi 5962 else 5963 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5964 fi 5965 else 5966 echo "$progname: failed program was:" >&5 5967 cat conftest.$ac_ext >&5 5968 fi 5969 rm -rf conftest* conftst* 5970 5971 # Do not use the global_symbol_pipe unless it works. 5972 if test "$pipe_works" = yes; then 5973 break 5974 else 5975 lt_cv_sys_global_symbol_pipe= 5976 fi 5977done 5978 5979fi 5980 5981if test -z "$lt_cv_sys_global_symbol_pipe"; then 5982 lt_cv_sys_global_symbol_to_cdecl= 5983fi 5984if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5986$as_echo "failed" >&6; } 5987else 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5989$as_echo "ok" >&6; } 5990fi 5991 5992# Response file support. 5993if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5994 nm_file_list_spec='@' 5995elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5996 nm_file_list_spec='@' 5997fi 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6026$as_echo_n "checking for sysroot... " >&6; } 6027 6028# Check whether --with-sysroot was given. 6029if test "${with_sysroot+set}" = set; then : 6030 withval=$with_sysroot; 6031else 6032 with_sysroot=no 6033fi 6034 6035 6036lt_sysroot= 6037case ${with_sysroot} in #( 6038 yes) 6039 if test "$GCC" = yes; then 6040 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6041 fi 6042 ;; #( 6043 /*) 6044 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6045 ;; #( 6046 no|'') 6047 ;; #( 6048 *) 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6050$as_echo "${with_sysroot}" >&6; } 6051 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6052 ;; 6053esac 6054 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6056$as_echo "${lt_sysroot:-no}" >&6; } 6057 6058 6059 6060 6061 6062# Check whether --enable-libtool-lock was given. 6063if test "${enable_libtool_lock+set}" = set; then : 6064 enableval=$enable_libtool_lock; 6065fi 6066 6067test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6068 6069# Some flags need to be propagated to the compiler or linker for good 6070# libtool support. 6071case $host in 6072ia64-*-hpux*) 6073 # Find out which ABI we are using. 6074 echo 'int i;' > conftest.$ac_ext 6075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6076 (eval $ac_compile) 2>&5 6077 ac_status=$? 6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6079 test $ac_status = 0; }; then 6080 case `/usr/bin/file conftest.$ac_objext` in 6081 *ELF-32*) 6082 HPUX_IA64_MODE="32" 6083 ;; 6084 *ELF-64*) 6085 HPUX_IA64_MODE="64" 6086 ;; 6087 esac 6088 fi 6089 rm -rf conftest* 6090 ;; 6091*-*-irix6*) 6092 # Find out which ABI we are using. 6093 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6095 (eval $ac_compile) 2>&5 6096 ac_status=$? 6097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6098 test $ac_status = 0; }; then 6099 if test "$lt_cv_prog_gnu_ld" = yes; then 6100 case `/usr/bin/file conftest.$ac_objext` in 6101 *32-bit*) 6102 LD="${LD-ld} -melf32bsmip" 6103 ;; 6104 *N32*) 6105 LD="${LD-ld} -melf32bmipn32" 6106 ;; 6107 *64-bit*) 6108 LD="${LD-ld} -melf64bmip" 6109 ;; 6110 esac 6111 else 6112 case `/usr/bin/file conftest.$ac_objext` in 6113 *32-bit*) 6114 LD="${LD-ld} -32" 6115 ;; 6116 *N32*) 6117 LD="${LD-ld} -n32" 6118 ;; 6119 *64-bit*) 6120 LD="${LD-ld} -64" 6121 ;; 6122 esac 6123 fi 6124 fi 6125 rm -rf conftest* 6126 ;; 6127 6128x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6129s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6130 # Find out which ABI we are using. 6131 echo 'int i;' > conftest.$ac_ext 6132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6133 (eval $ac_compile) 2>&5 6134 ac_status=$? 6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6136 test $ac_status = 0; }; then 6137 case `/usr/bin/file conftest.o` in 6138 *32-bit*) 6139 case $host in 6140 x86_64-*kfreebsd*-gnu) 6141 LD="${LD-ld} -m elf_i386_fbsd" 6142 ;; 6143 x86_64-*linux*) 6144 LD="${LD-ld} -m elf_i386" 6145 ;; 6146 ppc64-*linux*|powerpc64-*linux*) 6147 LD="${LD-ld} -m elf32ppclinux" 6148 ;; 6149 s390x-*linux*) 6150 LD="${LD-ld} -m elf_s390" 6151 ;; 6152 sparc64-*linux*) 6153 LD="${LD-ld} -m elf32_sparc" 6154 ;; 6155 esac 6156 ;; 6157 *64-bit*) 6158 case $host in 6159 x86_64-*kfreebsd*-gnu) 6160 LD="${LD-ld} -m elf_x86_64_fbsd" 6161 ;; 6162 x86_64-*linux*) 6163 LD="${LD-ld} -m elf_x86_64" 6164 ;; 6165 ppc*-*linux*|powerpc*-*linux*) 6166 LD="${LD-ld} -m elf64ppc" 6167 ;; 6168 s390*-*linux*|s390*-*tpf*) 6169 LD="${LD-ld} -m elf64_s390" 6170 ;; 6171 sparc*-*linux*) 6172 LD="${LD-ld} -m elf64_sparc" 6173 ;; 6174 esac 6175 ;; 6176 esac 6177 fi 6178 rm -rf conftest* 6179 ;; 6180 6181*-*-sco3.2v5*) 6182 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6183 SAVE_CFLAGS="$CFLAGS" 6184 CFLAGS="$CFLAGS -belf" 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6186$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6187if ${lt_cv_cc_needs_belf+:} false; then : 6188 $as_echo_n "(cached) " >&6 6189else 6190 ac_ext=c 6191ac_cpp='$CPP $CPPFLAGS' 6192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6194ac_compiler_gnu=$ac_cv_c_compiler_gnu 6195 6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6197/* end confdefs.h. */ 6198 6199int 6200main () 6201{ 6202 6203 ; 6204 return 0; 6205} 6206_ACEOF 6207if ac_fn_c_try_link "$LINENO"; then : 6208 lt_cv_cc_needs_belf=yes 6209else 6210 lt_cv_cc_needs_belf=no 6211fi 6212rm -f core conftest.err conftest.$ac_objext \ 6213 conftest$ac_exeext conftest.$ac_ext 6214 ac_ext=c 6215ac_cpp='$CPP $CPPFLAGS' 6216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6218ac_compiler_gnu=$ac_cv_c_compiler_gnu 6219 6220fi 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6222$as_echo "$lt_cv_cc_needs_belf" >&6; } 6223 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6224 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6225 CFLAGS="$SAVE_CFLAGS" 6226 fi 6227 ;; 6228*-*solaris*) 6229 # Find out which ABI we are using. 6230 echo 'int i;' > conftest.$ac_ext 6231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6232 (eval $ac_compile) 2>&5 6233 ac_status=$? 6234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6235 test $ac_status = 0; }; then 6236 case `/usr/bin/file conftest.o` in 6237 *64-bit*) 6238 case $lt_cv_prog_gnu_ld in 6239 yes*) 6240 case $host in 6241 i?86-*-solaris*) 6242 LD="${LD-ld} -m elf_x86_64" 6243 ;; 6244 sparc*-*-solaris*) 6245 LD="${LD-ld} -m elf64_sparc" 6246 ;; 6247 esac 6248 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6249 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6250 LD="${LD-ld}_sol2" 6251 fi 6252 ;; 6253 *) 6254 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6255 LD="${LD-ld} -64" 6256 fi 6257 ;; 6258 esac 6259 ;; 6260 esac 6261 fi 6262 rm -rf conftest* 6263 ;; 6264esac 6265 6266need_locks="$enable_libtool_lock" 6267 6268if test -n "$ac_tool_prefix"; then 6269 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6270set dummy ${ac_tool_prefix}mt; ac_word=$2 6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6272$as_echo_n "checking for $ac_word... " >&6; } 6273if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6274 $as_echo_n "(cached) " >&6 6275else 6276 if test -n "$MANIFEST_TOOL"; then 6277 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6278else 6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6280for as_dir in $PATH 6281do 6282 IFS=$as_save_IFS 6283 test -z "$as_dir" && as_dir=. 6284 for ac_exec_ext in '' $ac_executable_extensions; do 6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6286 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6288 break 2 6289 fi 6290done 6291 done 6292IFS=$as_save_IFS 6293 6294fi 6295fi 6296MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6297if test -n "$MANIFEST_TOOL"; then 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6299$as_echo "$MANIFEST_TOOL" >&6; } 6300else 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6302$as_echo "no" >&6; } 6303fi 6304 6305 6306fi 6307if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6308 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6309 # Extract the first word of "mt", so it can be a program name with args. 6310set dummy mt; ac_word=$2 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6312$as_echo_n "checking for $ac_word... " >&6; } 6313if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6314 $as_echo_n "(cached) " >&6 6315else 6316 if test -n "$ac_ct_MANIFEST_TOOL"; then 6317 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6318else 6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6320for as_dir in $PATH 6321do 6322 IFS=$as_save_IFS 6323 test -z "$as_dir" && as_dir=. 6324 for ac_exec_ext in '' $ac_executable_extensions; do 6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6326 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6328 break 2 6329 fi 6330done 6331 done 6332IFS=$as_save_IFS 6333 6334fi 6335fi 6336ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6337if test -n "$ac_ct_MANIFEST_TOOL"; then 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6339$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6340else 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6342$as_echo "no" >&6; } 6343fi 6344 6345 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6346 MANIFEST_TOOL=":" 6347 else 6348 case $cross_compiling:$ac_tool_warned in 6349yes:) 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6352ac_tool_warned=yes ;; 6353esac 6354 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6355 fi 6356else 6357 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6358fi 6359 6360test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6362$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6363if ${lt_cv_path_mainfest_tool+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 lt_cv_path_mainfest_tool=no 6367 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6368 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6369 cat conftest.err >&5 6370 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6371 lt_cv_path_mainfest_tool=yes 6372 fi 6373 rm -f conftest* 6374fi 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6376$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6377if test "x$lt_cv_path_mainfest_tool" != xyes; then 6378 MANIFEST_TOOL=: 6379fi 6380 6381 6382 6383 6384 6385 6386 case $host_os in 6387 rhapsody* | darwin*) 6388 if test -n "$ac_tool_prefix"; then 6389 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6390set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6392$as_echo_n "checking for $ac_word... " >&6; } 6393if ${ac_cv_prog_DSYMUTIL+:} false; then : 6394 $as_echo_n "(cached) " >&6 6395else 6396 if test -n "$DSYMUTIL"; then 6397 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6398else 6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6400for as_dir in $PATH 6401do 6402 IFS=$as_save_IFS 6403 test -z "$as_dir" && as_dir=. 6404 for ac_exec_ext in '' $ac_executable_extensions; do 6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6406 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6408 break 2 6409 fi 6410done 6411 done 6412IFS=$as_save_IFS 6413 6414fi 6415fi 6416DSYMUTIL=$ac_cv_prog_DSYMUTIL 6417if test -n "$DSYMUTIL"; then 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6419$as_echo "$DSYMUTIL" >&6; } 6420else 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6422$as_echo "no" >&6; } 6423fi 6424 6425 6426fi 6427if test -z "$ac_cv_prog_DSYMUTIL"; then 6428 ac_ct_DSYMUTIL=$DSYMUTIL 6429 # Extract the first word of "dsymutil", so it can be a program name with args. 6430set dummy dsymutil; ac_word=$2 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6432$as_echo_n "checking for $ac_word... " >&6; } 6433if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435else 6436 if test -n "$ac_ct_DSYMUTIL"; then 6437 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6438else 6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6440for as_dir in $PATH 6441do 6442 IFS=$as_save_IFS 6443 test -z "$as_dir" && as_dir=. 6444 for ac_exec_ext in '' $ac_executable_extensions; do 6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6446 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6448 break 2 6449 fi 6450done 6451 done 6452IFS=$as_save_IFS 6453 6454fi 6455fi 6456ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6457if test -n "$ac_ct_DSYMUTIL"; then 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6459$as_echo "$ac_ct_DSYMUTIL" >&6; } 6460else 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6462$as_echo "no" >&6; } 6463fi 6464 6465 if test "x$ac_ct_DSYMUTIL" = x; then 6466 DSYMUTIL=":" 6467 else 6468 case $cross_compiling:$ac_tool_warned in 6469yes:) 6470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6472ac_tool_warned=yes ;; 6473esac 6474 DSYMUTIL=$ac_ct_DSYMUTIL 6475 fi 6476else 6477 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6478fi 6479 6480 if test -n "$ac_tool_prefix"; then 6481 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6482set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6484$as_echo_n "checking for $ac_word... " >&6; } 6485if ${ac_cv_prog_NMEDIT+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 if test -n "$NMEDIT"; then 6489 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6490else 6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6492for as_dir in $PATH 6493do 6494 IFS=$as_save_IFS 6495 test -z "$as_dir" && as_dir=. 6496 for ac_exec_ext in '' $ac_executable_extensions; do 6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6498 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6500 break 2 6501 fi 6502done 6503 done 6504IFS=$as_save_IFS 6505 6506fi 6507fi 6508NMEDIT=$ac_cv_prog_NMEDIT 6509if test -n "$NMEDIT"; then 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6511$as_echo "$NMEDIT" >&6; } 6512else 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6514$as_echo "no" >&6; } 6515fi 6516 6517 6518fi 6519if test -z "$ac_cv_prog_NMEDIT"; then 6520 ac_ct_NMEDIT=$NMEDIT 6521 # Extract the first word of "nmedit", so it can be a program name with args. 6522set dummy nmedit; ac_word=$2 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6524$as_echo_n "checking for $ac_word... " >&6; } 6525if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 if test -n "$ac_ct_NMEDIT"; then 6529 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6530else 6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6532for as_dir in $PATH 6533do 6534 IFS=$as_save_IFS 6535 test -z "$as_dir" && as_dir=. 6536 for ac_exec_ext in '' $ac_executable_extensions; do 6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6538 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6540 break 2 6541 fi 6542done 6543 done 6544IFS=$as_save_IFS 6545 6546fi 6547fi 6548ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6549if test -n "$ac_ct_NMEDIT"; then 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6551$as_echo "$ac_ct_NMEDIT" >&6; } 6552else 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6554$as_echo "no" >&6; } 6555fi 6556 6557 if test "x$ac_ct_NMEDIT" = x; then 6558 NMEDIT=":" 6559 else 6560 case $cross_compiling:$ac_tool_warned in 6561yes:) 6562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6564ac_tool_warned=yes ;; 6565esac 6566 NMEDIT=$ac_ct_NMEDIT 6567 fi 6568else 6569 NMEDIT="$ac_cv_prog_NMEDIT" 6570fi 6571 6572 if test -n "$ac_tool_prefix"; then 6573 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6574set dummy ${ac_tool_prefix}lipo; ac_word=$2 6575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6576$as_echo_n "checking for $ac_word... " >&6; } 6577if ${ac_cv_prog_LIPO+:} false; then : 6578 $as_echo_n "(cached) " >&6 6579else 6580 if test -n "$LIPO"; then 6581 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6582else 6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6584for as_dir in $PATH 6585do 6586 IFS=$as_save_IFS 6587 test -z "$as_dir" && as_dir=. 6588 for ac_exec_ext in '' $ac_executable_extensions; do 6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6590 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6592 break 2 6593 fi 6594done 6595 done 6596IFS=$as_save_IFS 6597 6598fi 6599fi 6600LIPO=$ac_cv_prog_LIPO 6601if test -n "$LIPO"; then 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6603$as_echo "$LIPO" >&6; } 6604else 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6606$as_echo "no" >&6; } 6607fi 6608 6609 6610fi 6611if test -z "$ac_cv_prog_LIPO"; then 6612 ac_ct_LIPO=$LIPO 6613 # Extract the first word of "lipo", so it can be a program name with args. 6614set dummy lipo; ac_word=$2 6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6616$as_echo_n "checking for $ac_word... " >&6; } 6617if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6618 $as_echo_n "(cached) " >&6 6619else 6620 if test -n "$ac_ct_LIPO"; then 6621 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6622else 6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624for as_dir in $PATH 6625do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_exec_ext in '' $ac_executable_extensions; do 6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6630 ac_cv_prog_ac_ct_LIPO="lipo" 6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6632 break 2 6633 fi 6634done 6635 done 6636IFS=$as_save_IFS 6637 6638fi 6639fi 6640ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6641if test -n "$ac_ct_LIPO"; then 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6643$as_echo "$ac_ct_LIPO" >&6; } 6644else 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6646$as_echo "no" >&6; } 6647fi 6648 6649 if test "x$ac_ct_LIPO" = x; then 6650 LIPO=":" 6651 else 6652 case $cross_compiling:$ac_tool_warned in 6653yes:) 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6656ac_tool_warned=yes ;; 6657esac 6658 LIPO=$ac_ct_LIPO 6659 fi 6660else 6661 LIPO="$ac_cv_prog_LIPO" 6662fi 6663 6664 if test -n "$ac_tool_prefix"; then 6665 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6666set dummy ${ac_tool_prefix}otool; ac_word=$2 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6668$as_echo_n "checking for $ac_word... " >&6; } 6669if ${ac_cv_prog_OTOOL+:} false; then : 6670 $as_echo_n "(cached) " >&6 6671else 6672 if test -n "$OTOOL"; then 6673 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6674else 6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6676for as_dir in $PATH 6677do 6678 IFS=$as_save_IFS 6679 test -z "$as_dir" && as_dir=. 6680 for ac_exec_ext in '' $ac_executable_extensions; do 6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6682 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6684 break 2 6685 fi 6686done 6687 done 6688IFS=$as_save_IFS 6689 6690fi 6691fi 6692OTOOL=$ac_cv_prog_OTOOL 6693if test -n "$OTOOL"; then 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6695$as_echo "$OTOOL" >&6; } 6696else 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6698$as_echo "no" >&6; } 6699fi 6700 6701 6702fi 6703if test -z "$ac_cv_prog_OTOOL"; then 6704 ac_ct_OTOOL=$OTOOL 6705 # Extract the first word of "otool", so it can be a program name with args. 6706set dummy otool; ac_word=$2 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6708$as_echo_n "checking for $ac_word... " >&6; } 6709if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 if test -n "$ac_ct_OTOOL"; then 6713 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6714else 6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6716for as_dir in $PATH 6717do 6718 IFS=$as_save_IFS 6719 test -z "$as_dir" && as_dir=. 6720 for ac_exec_ext in '' $ac_executable_extensions; do 6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6722 ac_cv_prog_ac_ct_OTOOL="otool" 6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6724 break 2 6725 fi 6726done 6727 done 6728IFS=$as_save_IFS 6729 6730fi 6731fi 6732ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6733if test -n "$ac_ct_OTOOL"; then 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6735$as_echo "$ac_ct_OTOOL" >&6; } 6736else 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6738$as_echo "no" >&6; } 6739fi 6740 6741 if test "x$ac_ct_OTOOL" = x; then 6742 OTOOL=":" 6743 else 6744 case $cross_compiling:$ac_tool_warned in 6745yes:) 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6748ac_tool_warned=yes ;; 6749esac 6750 OTOOL=$ac_ct_OTOOL 6751 fi 6752else 6753 OTOOL="$ac_cv_prog_OTOOL" 6754fi 6755 6756 if test -n "$ac_tool_prefix"; then 6757 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6758set dummy ${ac_tool_prefix}otool64; ac_word=$2 6759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6760$as_echo_n "checking for $ac_word... " >&6; } 6761if ${ac_cv_prog_OTOOL64+:} false; then : 6762 $as_echo_n "(cached) " >&6 6763else 6764 if test -n "$OTOOL64"; then 6765 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6766else 6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6768for as_dir in $PATH 6769do 6770 IFS=$as_save_IFS 6771 test -z "$as_dir" && as_dir=. 6772 for ac_exec_ext in '' $ac_executable_extensions; do 6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6774 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6776 break 2 6777 fi 6778done 6779 done 6780IFS=$as_save_IFS 6781 6782fi 6783fi 6784OTOOL64=$ac_cv_prog_OTOOL64 6785if test -n "$OTOOL64"; then 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6787$as_echo "$OTOOL64" >&6; } 6788else 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6790$as_echo "no" >&6; } 6791fi 6792 6793 6794fi 6795if test -z "$ac_cv_prog_OTOOL64"; then 6796 ac_ct_OTOOL64=$OTOOL64 6797 # Extract the first word of "otool64", so it can be a program name with args. 6798set dummy otool64; ac_word=$2 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6800$as_echo_n "checking for $ac_word... " >&6; } 6801if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6802 $as_echo_n "(cached) " >&6 6803else 6804 if test -n "$ac_ct_OTOOL64"; then 6805 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6806else 6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6808for as_dir in $PATH 6809do 6810 IFS=$as_save_IFS 6811 test -z "$as_dir" && as_dir=. 6812 for ac_exec_ext in '' $ac_executable_extensions; do 6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6814 ac_cv_prog_ac_ct_OTOOL64="otool64" 6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6816 break 2 6817 fi 6818done 6819 done 6820IFS=$as_save_IFS 6821 6822fi 6823fi 6824ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6825if test -n "$ac_ct_OTOOL64"; then 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6827$as_echo "$ac_ct_OTOOL64" >&6; } 6828else 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6830$as_echo "no" >&6; } 6831fi 6832 6833 if test "x$ac_ct_OTOOL64" = x; then 6834 OTOOL64=":" 6835 else 6836 case $cross_compiling:$ac_tool_warned in 6837yes:) 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6840ac_tool_warned=yes ;; 6841esac 6842 OTOOL64=$ac_ct_OTOOL64 6843 fi 6844else 6845 OTOOL64="$ac_cv_prog_OTOOL64" 6846fi 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6875$as_echo_n "checking for -single_module linker flag... " >&6; } 6876if ${lt_cv_apple_cc_single_mod+:} false; then : 6877 $as_echo_n "(cached) " >&6 6878else 6879 lt_cv_apple_cc_single_mod=no 6880 if test -z "${LT_MULTI_MODULE}"; then 6881 # By default we will add the -single_module flag. You can override 6882 # by either setting the environment variable LT_MULTI_MODULE 6883 # non-empty at configure time, or by adding -multi_module to the 6884 # link flags. 6885 rm -rf libconftest.dylib* 6886 echo "int foo(void){return 1;}" > conftest.c 6887 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6888-dynamiclib -Wl,-single_module conftest.c" >&5 6889 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6890 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6891 _lt_result=$? 6892 # If there is a non-empty error log, and "single_module" 6893 # appears in it, assume the flag caused a linker warning 6894 if test -s conftest.err && $GREP single_module conftest.err; then 6895 cat conftest.err >&5 6896 # Otherwise, if the output was created with a 0 exit code from 6897 # the compiler, it worked. 6898 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 6899 lt_cv_apple_cc_single_mod=yes 6900 else 6901 cat conftest.err >&5 6902 fi 6903 rm -rf libconftest.dylib* 6904 rm -f conftest.* 6905 fi 6906fi 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6908$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6909 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6911$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6912if ${lt_cv_ld_exported_symbols_list+:} false; then : 6913 $as_echo_n "(cached) " >&6 6914else 6915 lt_cv_ld_exported_symbols_list=no 6916 save_LDFLAGS=$LDFLAGS 6917 echo "_main" > conftest.sym 6918 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920/* end confdefs.h. */ 6921 6922int 6923main () 6924{ 6925 6926 ; 6927 return 0; 6928} 6929_ACEOF 6930if ac_fn_c_try_link "$LINENO"; then : 6931 lt_cv_ld_exported_symbols_list=yes 6932else 6933 lt_cv_ld_exported_symbols_list=no 6934fi 6935rm -f core conftest.err conftest.$ac_objext \ 6936 conftest$ac_exeext conftest.$ac_ext 6937 LDFLAGS="$save_LDFLAGS" 6938 6939fi 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6941$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6942 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6944$as_echo_n "checking for -force_load linker flag... " >&6; } 6945if ${lt_cv_ld_force_load+:} false; then : 6946 $as_echo_n "(cached) " >&6 6947else 6948 lt_cv_ld_force_load=no 6949 cat > conftest.c << _LT_EOF 6950int forced_loaded() { return 2;} 6951_LT_EOF 6952 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6953 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6954 echo "$AR cru libconftest.a conftest.o" >&5 6955 $AR cru libconftest.a conftest.o 2>&5 6956 echo "$RANLIB libconftest.a" >&5 6957 $RANLIB libconftest.a 2>&5 6958 cat > conftest.c << _LT_EOF 6959int main() { return 0;} 6960_LT_EOF 6961 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6962 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6963 _lt_result=$? 6964 if test -s conftest.err && $GREP force_load conftest.err; then 6965 cat conftest.err >&5 6966 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 6967 lt_cv_ld_force_load=yes 6968 else 6969 cat conftest.err >&5 6970 fi 6971 rm -f conftest.err libconftest.a conftest conftest.c 6972 rm -rf conftest.dSYM 6973 6974fi 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6976$as_echo "$lt_cv_ld_force_load" >&6; } 6977 case $host_os in 6978 rhapsody* | darwin1.[012]) 6979 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6980 darwin1.*) 6981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6982 darwin*) # darwin 5.x on 6983 # if running on 10.5 or later, the deployment target defaults 6984 # to the OS version, if on x86, and 10.4, the deployment 6985 # target defaults to 10.4. Don't you love it? 6986 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6987 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6989 10.[012]*) 6990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6991 10.*) 6992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6993 esac 6994 ;; 6995 esac 6996 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6997 _lt_dar_single_mod='$single_module' 6998 fi 6999 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7000 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7001 else 7002 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7003 fi 7004 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7005 _lt_dsymutil='~$DSYMUTIL $lib || :' 7006 else 7007 _lt_dsymutil= 7008 fi 7009 ;; 7010 esac 7011 7012ac_ext=c 7013ac_cpp='$CPP $CPPFLAGS' 7014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7016ac_compiler_gnu=$ac_cv_c_compiler_gnu 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7018$as_echo_n "checking how to run the C preprocessor... " >&6; } 7019# On Suns, sometimes $CPP names a directory. 7020if test -n "$CPP" && test -d "$CPP"; then 7021 CPP= 7022fi 7023if test -z "$CPP"; then 7024 if ${ac_cv_prog_CPP+:} false; then : 7025 $as_echo_n "(cached) " >&6 7026else 7027 # Double quotes because CPP needs to be expanded 7028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7029 do 7030 ac_preproc_ok=false 7031for ac_c_preproc_warn_flag in '' yes 7032do 7033 # Use a header file that comes with gcc, so configuring glibc 7034 # with a fresh cross-compiler works. 7035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7036 # <limits.h> exists even on freestanding compilers. 7037 # On the NeXT, cc -E runs the code through the compiler's parser, 7038 # not just through cpp. "Syntax error" is here to catch this case. 7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7040/* end confdefs.h. */ 7041#ifdef __STDC__ 7042# include <limits.h> 7043#else 7044# include <assert.h> 7045#endif 7046 Syntax error 7047_ACEOF 7048if ac_fn_c_try_cpp "$LINENO"; then : 7049 7050else 7051 # Broken: fails on valid input. 7052continue 7053fi 7054rm -f conftest.err conftest.i conftest.$ac_ext 7055 7056 # OK, works on sane cases. Now check whether nonexistent headers 7057 # can be detected and how. 7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7059/* end confdefs.h. */ 7060#include <ac_nonexistent.h> 7061_ACEOF 7062if ac_fn_c_try_cpp "$LINENO"; then : 7063 # Broken: success on invalid input. 7064continue 7065else 7066 # Passes both tests. 7067ac_preproc_ok=: 7068break 7069fi 7070rm -f conftest.err conftest.i conftest.$ac_ext 7071 7072done 7073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7074rm -f conftest.i conftest.err conftest.$ac_ext 7075if $ac_preproc_ok; then : 7076 break 7077fi 7078 7079 done 7080 ac_cv_prog_CPP=$CPP 7081 7082fi 7083 CPP=$ac_cv_prog_CPP 7084else 7085 ac_cv_prog_CPP=$CPP 7086fi 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7088$as_echo "$CPP" >&6; } 7089ac_preproc_ok=false 7090for ac_c_preproc_warn_flag in '' yes 7091do 7092 # Use a header file that comes with gcc, so configuring glibc 7093 # with a fresh cross-compiler works. 7094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7095 # <limits.h> exists even on freestanding compilers. 7096 # On the NeXT, cc -E runs the code through the compiler's parser, 7097 # not just through cpp. "Syntax error" is here to catch this case. 7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7099/* end confdefs.h. */ 7100#ifdef __STDC__ 7101# include <limits.h> 7102#else 7103# include <assert.h> 7104#endif 7105 Syntax error 7106_ACEOF 7107if ac_fn_c_try_cpp "$LINENO"; then : 7108 7109else 7110 # Broken: fails on valid input. 7111continue 7112fi 7113rm -f conftest.err conftest.i conftest.$ac_ext 7114 7115 # OK, works on sane cases. Now check whether nonexistent headers 7116 # can be detected and how. 7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118/* end confdefs.h. */ 7119#include <ac_nonexistent.h> 7120_ACEOF 7121if ac_fn_c_try_cpp "$LINENO"; then : 7122 # Broken: success on invalid input. 7123continue 7124else 7125 # Passes both tests. 7126ac_preproc_ok=: 7127break 7128fi 7129rm -f conftest.err conftest.i conftest.$ac_ext 7130 7131done 7132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7133rm -f conftest.i conftest.err conftest.$ac_ext 7134if $ac_preproc_ok; then : 7135 7136else 7137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7139as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7140See \`config.log' for more details" "$LINENO" 5; } 7141fi 7142 7143ac_ext=c 7144ac_cpp='$CPP $CPPFLAGS' 7145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7147ac_compiler_gnu=$ac_cv_c_compiler_gnu 7148 7149 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7151$as_echo_n "checking for ANSI C header files... " >&6; } 7152if ${ac_cv_header_stdc+:} false; then : 7153 $as_echo_n "(cached) " >&6 7154else 7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7156/* end confdefs.h. */ 7157#include <stdlib.h> 7158#include <stdarg.h> 7159#include <string.h> 7160#include <float.h> 7161 7162int 7163main () 7164{ 7165 7166 ; 7167 return 0; 7168} 7169_ACEOF 7170if ac_fn_c_try_compile "$LINENO"; then : 7171 ac_cv_header_stdc=yes 7172else 7173 ac_cv_header_stdc=no 7174fi 7175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7176 7177if test $ac_cv_header_stdc = yes; then 7178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180/* end confdefs.h. */ 7181#include <string.h> 7182 7183_ACEOF 7184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7185 $EGREP "memchr" >/dev/null 2>&1; then : 7186 7187else 7188 ac_cv_header_stdc=no 7189fi 7190rm -f conftest* 7191 7192fi 7193 7194if test $ac_cv_header_stdc = yes; then 7195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7197/* end confdefs.h. */ 7198#include <stdlib.h> 7199 7200_ACEOF 7201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7202 $EGREP "free" >/dev/null 2>&1; then : 7203 7204else 7205 ac_cv_header_stdc=no 7206fi 7207rm -f conftest* 7208 7209fi 7210 7211if test $ac_cv_header_stdc = yes; then 7212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7213 if test "$cross_compiling" = yes; then : 7214 : 7215else 7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7217/* end confdefs.h. */ 7218#include <ctype.h> 7219#include <stdlib.h> 7220#if ((' ' & 0x0FF) == 0x020) 7221# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7222# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7223#else 7224# define ISLOWER(c) \ 7225 (('a' <= (c) && (c) <= 'i') \ 7226 || ('j' <= (c) && (c) <= 'r') \ 7227 || ('s' <= (c) && (c) <= 'z')) 7228# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7229#endif 7230 7231#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7232int 7233main () 7234{ 7235 int i; 7236 for (i = 0; i < 256; i++) 7237 if (XOR (islower (i), ISLOWER (i)) 7238 || toupper (i) != TOUPPER (i)) 7239 return 2; 7240 return 0; 7241} 7242_ACEOF 7243if ac_fn_c_try_run "$LINENO"; then : 7244 7245else 7246 ac_cv_header_stdc=no 7247fi 7248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7249 conftest.$ac_objext conftest.beam conftest.$ac_ext 7250fi 7251 7252fi 7253fi 7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7255$as_echo "$ac_cv_header_stdc" >&6; } 7256if test $ac_cv_header_stdc = yes; then 7257 7258$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7259 7260fi 7261 7262# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7263for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7264 inttypes.h stdint.h unistd.h 7265do : 7266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7267ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7268" 7269if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7270 cat >>confdefs.h <<_ACEOF 7271#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7272_ACEOF 7273 7274fi 7275 7276done 7277 7278 7279for ac_header in dlfcn.h 7280do : 7281 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7282" 7283if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7284 cat >>confdefs.h <<_ACEOF 7285#define HAVE_DLFCN_H 1 7286_ACEOF 7287 7288fi 7289 7290done 7291 7292 7293 7294 7295 7296# Set options 7297 7298 7299 7300 enable_dlopen=no 7301 7302 7303 enable_win32_dll=no 7304 7305 7306 # Check whether --enable-shared was given. 7307if test "${enable_shared+set}" = set; then : 7308 enableval=$enable_shared; p=${PACKAGE-default} 7309 case $enableval in 7310 yes) enable_shared=yes ;; 7311 no) enable_shared=no ;; 7312 *) 7313 enable_shared=no 7314 # Look at the argument we got. We use all the common list separators. 7315 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7316 for pkg in $enableval; do 7317 IFS="$lt_save_ifs" 7318 if test "X$pkg" = "X$p"; then 7319 enable_shared=yes 7320 fi 7321 done 7322 IFS="$lt_save_ifs" 7323 ;; 7324 esac 7325else 7326 enable_shared=yes 7327fi 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 # Check whether --enable-static was given. 7338if test "${enable_static+set}" = set; then : 7339 enableval=$enable_static; p=${PACKAGE-default} 7340 case $enableval in 7341 yes) enable_static=yes ;; 7342 no) enable_static=no ;; 7343 *) 7344 enable_static=no 7345 # Look at the argument we got. We use all the common list separators. 7346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7347 for pkg in $enableval; do 7348 IFS="$lt_save_ifs" 7349 if test "X$pkg" = "X$p"; then 7350 enable_static=yes 7351 fi 7352 done 7353 IFS="$lt_save_ifs" 7354 ;; 7355 esac 7356else 7357 enable_static=yes 7358fi 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369# Check whether --with-pic was given. 7370if test "${with_pic+set}" = set; then : 7371 withval=$with_pic; lt_p=${PACKAGE-default} 7372 case $withval in 7373 yes|no) pic_mode=$withval ;; 7374 *) 7375 pic_mode=default 7376 # Look at the argument we got. We use all the common list separators. 7377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7378 for lt_pkg in $withval; do 7379 IFS="$lt_save_ifs" 7380 if test "X$lt_pkg" = "X$lt_p"; then 7381 pic_mode=yes 7382 fi 7383 done 7384 IFS="$lt_save_ifs" 7385 ;; 7386 esac 7387else 7388 pic_mode=default 7389fi 7390 7391 7392test -z "$pic_mode" && pic_mode=default 7393 7394 7395 7396 7397 7398 7399 7400 # Check whether --enable-fast-install was given. 7401if test "${enable_fast_install+set}" = set; then : 7402 enableval=$enable_fast_install; p=${PACKAGE-default} 7403 case $enableval in 7404 yes) enable_fast_install=yes ;; 7405 no) enable_fast_install=no ;; 7406 *) 7407 enable_fast_install=no 7408 # Look at the argument we got. We use all the common list separators. 7409 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7410 for pkg in $enableval; do 7411 IFS="$lt_save_ifs" 7412 if test "X$pkg" = "X$p"; then 7413 enable_fast_install=yes 7414 fi 7415 done 7416 IFS="$lt_save_ifs" 7417 ;; 7418 esac 7419else 7420 enable_fast_install=yes 7421fi 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433# This can be used to rebuild libtool when needed 7434LIBTOOL_DEPS="$ltmain" 7435 7436# Always use our own libtool. 7437LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468test -z "$LN_S" && LN_S="ln -s" 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483if test -n "${ZSH_VERSION+set}" ; then 7484 setopt NO_GLOB_SUBST 7485fi 7486 7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7488$as_echo_n "checking for objdir... " >&6; } 7489if ${lt_cv_objdir+:} false; then : 7490 $as_echo_n "(cached) " >&6 7491else 7492 rm -f .libs 2>/dev/null 7493mkdir .libs 2>/dev/null 7494if test -d .libs; then 7495 lt_cv_objdir=.libs 7496else 7497 # MS-DOS does not allow filenames that begin with a dot. 7498 lt_cv_objdir=_libs 7499fi 7500rmdir .libs 2>/dev/null 7501fi 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7503$as_echo "$lt_cv_objdir" >&6; } 7504objdir=$lt_cv_objdir 7505 7506 7507 7508 7509 7510cat >>confdefs.h <<_ACEOF 7511#define LT_OBJDIR "$lt_cv_objdir/" 7512_ACEOF 7513 7514 7515 7516 7517case $host_os in 7518aix3*) 7519 # AIX sometimes has problems with the GCC collect2 program. For some 7520 # reason, if we set the COLLECT_NAMES environment variable, the problems 7521 # vanish in a puff of smoke. 7522 if test "X${COLLECT_NAMES+set}" != Xset; then 7523 COLLECT_NAMES= 7524 export COLLECT_NAMES 7525 fi 7526 ;; 7527esac 7528 7529# Global variables: 7530ofile=libtool 7531can_build_shared=yes 7532 7533# All known linkers require a `.a' archive for static linking (except MSVC, 7534# which needs '.lib'). 7535libext=a 7536 7537with_gnu_ld="$lt_cv_prog_gnu_ld" 7538 7539old_CC="$CC" 7540old_CFLAGS="$CFLAGS" 7541 7542# Set sane defaults for various variables 7543test -z "$CC" && CC=cc 7544test -z "$LTCC" && LTCC=$CC 7545test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7546test -z "$LD" && LD=ld 7547test -z "$ac_objext" && ac_objext=o 7548 7549for cc_temp in $compiler""; do 7550 case $cc_temp in 7551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7553 \-*) ;; 7554 *) break;; 7555 esac 7556done 7557cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7558 7559 7560# Only perform the check for file, if the check method requires it 7561test -z "$MAGIC_CMD" && MAGIC_CMD=file 7562case $deplibs_check_method in 7563file_magic*) 7564 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7566$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7567if ${lt_cv_path_MAGIC_CMD+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 case $MAGIC_CMD in 7571[\\/*] | ?:[\\/]*) 7572 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7573 ;; 7574*) 7575 lt_save_MAGIC_CMD="$MAGIC_CMD" 7576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7577 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7578 for ac_dir in $ac_dummy; do 7579 IFS="$lt_save_ifs" 7580 test -z "$ac_dir" && ac_dir=. 7581 if test -f $ac_dir/${ac_tool_prefix}file; then 7582 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7583 if test -n "$file_magic_test_file"; then 7584 case $deplibs_check_method in 7585 "file_magic "*) 7586 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7589 $EGREP "$file_magic_regex" > /dev/null; then 7590 : 7591 else 7592 cat <<_LT_EOF 1>&2 7593 7594*** Warning: the command libtool uses to detect shared libraries, 7595*** $file_magic_cmd, produces output that libtool cannot recognize. 7596*** The result is that libtool may fail to recognize shared libraries 7597*** as such. This will affect the creation of libtool libraries that 7598*** depend on shared libraries, but programs linked with such libtool 7599*** libraries will work regardless of this problem. Nevertheless, you 7600*** may want to report the problem to your system manager and/or to 7601*** bug-libtool@gnu.org 7602 7603_LT_EOF 7604 fi ;; 7605 esac 7606 fi 7607 break 7608 fi 7609 done 7610 IFS="$lt_save_ifs" 7611 MAGIC_CMD="$lt_save_MAGIC_CMD" 7612 ;; 7613esac 7614fi 7615 7616MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7617if test -n "$MAGIC_CMD"; then 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7619$as_echo "$MAGIC_CMD" >&6; } 7620else 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7622$as_echo "no" >&6; } 7623fi 7624 7625 7626 7627 7628 7629if test -z "$lt_cv_path_MAGIC_CMD"; then 7630 if test -n "$ac_tool_prefix"; then 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7632$as_echo_n "checking for file... " >&6; } 7633if ${lt_cv_path_MAGIC_CMD+:} false; then : 7634 $as_echo_n "(cached) " >&6 7635else 7636 case $MAGIC_CMD in 7637[\\/*] | ?:[\\/]*) 7638 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7639 ;; 7640*) 7641 lt_save_MAGIC_CMD="$MAGIC_CMD" 7642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7643 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7644 for ac_dir in $ac_dummy; do 7645 IFS="$lt_save_ifs" 7646 test -z "$ac_dir" && ac_dir=. 7647 if test -f $ac_dir/file; then 7648 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7649 if test -n "$file_magic_test_file"; then 7650 case $deplibs_check_method in 7651 "file_magic "*) 7652 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7654 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7655 $EGREP "$file_magic_regex" > /dev/null; then 7656 : 7657 else 7658 cat <<_LT_EOF 1>&2 7659 7660*** Warning: the command libtool uses to detect shared libraries, 7661*** $file_magic_cmd, produces output that libtool cannot recognize. 7662*** The result is that libtool may fail to recognize shared libraries 7663*** as such. This will affect the creation of libtool libraries that 7664*** depend on shared libraries, but programs linked with such libtool 7665*** libraries will work regardless of this problem. Nevertheless, you 7666*** may want to report the problem to your system manager and/or to 7667*** bug-libtool@gnu.org 7668 7669_LT_EOF 7670 fi ;; 7671 esac 7672 fi 7673 break 7674 fi 7675 done 7676 IFS="$lt_save_ifs" 7677 MAGIC_CMD="$lt_save_MAGIC_CMD" 7678 ;; 7679esac 7680fi 7681 7682MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7683if test -n "$MAGIC_CMD"; then 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7685$as_echo "$MAGIC_CMD" >&6; } 7686else 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7688$as_echo "no" >&6; } 7689fi 7690 7691 7692 else 7693 MAGIC_CMD=: 7694 fi 7695fi 7696 7697 fi 7698 ;; 7699esac 7700 7701# Use C for the default configuration in the libtool script 7702 7703lt_save_CC="$CC" 7704ac_ext=c 7705ac_cpp='$CPP $CPPFLAGS' 7706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7708ac_compiler_gnu=$ac_cv_c_compiler_gnu 7709 7710 7711# Source file extension for C test sources. 7712ac_ext=c 7713 7714# Object file extension for compiled C test sources. 7715objext=o 7716objext=$objext 7717 7718# Code to be used in simple compile tests 7719lt_simple_compile_test_code="int some_variable = 0;" 7720 7721# Code to be used in simple link tests 7722lt_simple_link_test_code='int main(){return(0);}' 7723 7724 7725 7726 7727 7728 7729 7730# If no C compiler was specified, use CC. 7731LTCC=${LTCC-"$CC"} 7732 7733# If no C compiler flags were specified, use CFLAGS. 7734LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7735 7736# Allow CC to be a program name with arguments. 7737compiler=$CC 7738 7739# Save the default compiler, since it gets overwritten when the other 7740# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7741compiler_DEFAULT=$CC 7742 7743# save warnings/boilerplate of simple test code 7744ac_outfile=conftest.$ac_objext 7745echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7746eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7747_lt_compiler_boilerplate=`cat conftest.err` 7748$RM conftest* 7749 7750ac_outfile=conftest.$ac_objext 7751echo "$lt_simple_link_test_code" >conftest.$ac_ext 7752eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7753_lt_linker_boilerplate=`cat conftest.err` 7754$RM -r conftest* 7755 7756 7757if test -n "$compiler"; then 7758 7759lt_prog_compiler_no_builtin_flag= 7760 7761if test "$GCC" = yes; then 7762 case $cc_basename in 7763 nvcc*) 7764 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7765 *) 7766 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7767 esac 7768 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7770$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7771if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7772 $as_echo_n "(cached) " >&6 7773else 7774 lt_cv_prog_compiler_rtti_exceptions=no 7775 ac_outfile=conftest.$ac_objext 7776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7777 lt_compiler_flag="-fno-rtti -fno-exceptions" 7778 # Insert the option either (1) after the last *FLAGS variable, or 7779 # (2) before a word containing "conftest.", or (3) at the end. 7780 # Note that $ac_compile itself does not contain backslashes and begins 7781 # with a dollar sign (not a hyphen), so the echo should work correctly. 7782 # The option is referenced via a variable to avoid confusing sed. 7783 lt_compile=`echo "$ac_compile" | $SED \ 7784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7786 -e 's:$: $lt_compiler_flag:'` 7787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7788 (eval "$lt_compile" 2>conftest.err) 7789 ac_status=$? 7790 cat conftest.err >&5 7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7792 if (exit $ac_status) && test -s "$ac_outfile"; then 7793 # The compiler can only warn and ignore the option if not recognized 7794 # So say no if there are warnings other than the usual output. 7795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7798 lt_cv_prog_compiler_rtti_exceptions=yes 7799 fi 7800 fi 7801 $RM conftest* 7802 7803fi 7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7805$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7806 7807if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7808 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7809else 7810 : 7811fi 7812 7813fi 7814 7815 7816 7817 7818 7819 7820 lt_prog_compiler_wl= 7821lt_prog_compiler_pic= 7822lt_prog_compiler_static= 7823 7824 7825 if test "$GCC" = yes; then 7826 lt_prog_compiler_wl='-Wl,' 7827 lt_prog_compiler_static='-static' 7828 7829 case $host_os in 7830 aix*) 7831 # All AIX code is PIC. 7832 if test "$host_cpu" = ia64; then 7833 # AIX 5 now supports IA64 processor 7834 lt_prog_compiler_static='-Bstatic' 7835 fi 7836 ;; 7837 7838 amigaos*) 7839 case $host_cpu in 7840 powerpc) 7841 # see comment about AmigaOS4 .so support 7842 lt_prog_compiler_pic='-fPIC' 7843 ;; 7844 m68k) 7845 # FIXME: we need at least 68020 code to build shared libraries, but 7846 # adding the `-m68020' flag to GCC prevents building anything better, 7847 # like `-m68040'. 7848 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7849 ;; 7850 esac 7851 ;; 7852 7853 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7854 # PIC is the default for these OSes. 7855 ;; 7856 7857 mingw* | cygwin* | pw32* | os2* | cegcc*) 7858 # This hack is so that the source file can tell whether it is being 7859 # built for inclusion in a dll (and should export symbols for example). 7860 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7861 # (--disable-auto-import) libraries 7862 lt_prog_compiler_pic='-DDLL_EXPORT' 7863 ;; 7864 7865 darwin* | rhapsody*) 7866 # PIC is the default on this platform 7867 # Common symbols not allowed in MH_DYLIB files 7868 lt_prog_compiler_pic='-fno-common' 7869 ;; 7870 7871 haiku*) 7872 # PIC is the default for Haiku. 7873 # The "-static" flag exists, but is broken. 7874 lt_prog_compiler_static= 7875 ;; 7876 7877 hpux*) 7878 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7879 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7880 # sets the default TLS model and affects inlining. 7881 case $host_cpu in 7882 hppa*64*) 7883 # +Z the default 7884 ;; 7885 *) 7886 lt_prog_compiler_pic='-fPIC' 7887 ;; 7888 esac 7889 ;; 7890 7891 interix[3-9]*) 7892 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7893 # Instead, we relocate shared libraries at runtime. 7894 ;; 7895 7896 msdosdjgpp*) 7897 # Just because we use GCC doesn't mean we suddenly get shared libraries 7898 # on systems that don't support them. 7899 lt_prog_compiler_can_build_shared=no 7900 enable_shared=no 7901 ;; 7902 7903 *nto* | *qnx*) 7904 # QNX uses GNU C++, but need to define -shared option too, otherwise 7905 # it will coredump. 7906 lt_prog_compiler_pic='-fPIC -shared' 7907 ;; 7908 7909 sysv4*MP*) 7910 if test -d /usr/nec; then 7911 lt_prog_compiler_pic=-Kconform_pic 7912 fi 7913 ;; 7914 7915 *) 7916 lt_prog_compiler_pic='-fPIC' 7917 ;; 7918 esac 7919 7920 case $cc_basename in 7921 nvcc*) # Cuda Compiler Driver 2.2 7922 lt_prog_compiler_wl='-Xlinker ' 7923 if test -n "$lt_prog_compiler_pic"; then 7924 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 7925 fi 7926 ;; 7927 esac 7928 else 7929 # PORTME Check for flag to pass linker flags through the system compiler. 7930 case $host_os in 7931 aix*) 7932 lt_prog_compiler_wl='-Wl,' 7933 if test "$host_cpu" = ia64; then 7934 # AIX 5 now supports IA64 processor 7935 lt_prog_compiler_static='-Bstatic' 7936 else 7937 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7938 fi 7939 ;; 7940 7941 mingw* | cygwin* | pw32* | os2* | cegcc*) 7942 # This hack is so that the source file can tell whether it is being 7943 # built for inclusion in a dll (and should export symbols for example). 7944 lt_prog_compiler_pic='-DDLL_EXPORT' 7945 ;; 7946 7947 hpux9* | hpux10* | hpux11*) 7948 lt_prog_compiler_wl='-Wl,' 7949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7950 # not for PA HP-UX. 7951 case $host_cpu in 7952 hppa*64*|ia64*) 7953 # +Z the default 7954 ;; 7955 *) 7956 lt_prog_compiler_pic='+Z' 7957 ;; 7958 esac 7959 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7960 lt_prog_compiler_static='${wl}-a ${wl}archive' 7961 ;; 7962 7963 irix5* | irix6* | nonstopux*) 7964 lt_prog_compiler_wl='-Wl,' 7965 # PIC (with -KPIC) is the default. 7966 lt_prog_compiler_static='-non_shared' 7967 ;; 7968 7969 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7970 case $cc_basename in 7971 # old Intel for x86_64 which still supported -KPIC. 7972 ecc*) 7973 lt_prog_compiler_wl='-Wl,' 7974 lt_prog_compiler_pic='-KPIC' 7975 lt_prog_compiler_static='-static' 7976 ;; 7977 # icc used to be incompatible with GCC. 7978 # ICC 10 doesn't accept -KPIC any more. 7979 icc* | ifort*) 7980 lt_prog_compiler_wl='-Wl,' 7981 lt_prog_compiler_pic='-fPIC' 7982 lt_prog_compiler_static='-static' 7983 ;; 7984 # Lahey Fortran 8.1. 7985 lf95*) 7986 lt_prog_compiler_wl='-Wl,' 7987 lt_prog_compiler_pic='--shared' 7988 lt_prog_compiler_static='--static' 7989 ;; 7990 nagfor*) 7991 # NAG Fortran compiler 7992 lt_prog_compiler_wl='-Wl,-Wl,,' 7993 lt_prog_compiler_pic='-PIC' 7994 lt_prog_compiler_static='-Bstatic' 7995 ;; 7996 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7997 # Portland Group compilers (*not* the Pentium gcc compiler, 7998 # which looks to be a dead project) 7999 lt_prog_compiler_wl='-Wl,' 8000 lt_prog_compiler_pic='-fpic' 8001 lt_prog_compiler_static='-Bstatic' 8002 ;; 8003 ccc*) 8004 lt_prog_compiler_wl='-Wl,' 8005 # All Alpha code is PIC. 8006 lt_prog_compiler_static='-non_shared' 8007 ;; 8008 xl* | bgxl* | bgf* | mpixl*) 8009 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8010 lt_prog_compiler_wl='-Wl,' 8011 lt_prog_compiler_pic='-qpic' 8012 lt_prog_compiler_static='-qstaticlink' 8013 ;; 8014 *) 8015 case `$CC -V 2>&1 | sed 5q` in 8016 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8017 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8018 lt_prog_compiler_pic='-KPIC' 8019 lt_prog_compiler_static='-Bstatic' 8020 lt_prog_compiler_wl='' 8021 ;; 8022 *Sun\ F* | *Sun*Fortran*) 8023 lt_prog_compiler_pic='-KPIC' 8024 lt_prog_compiler_static='-Bstatic' 8025 lt_prog_compiler_wl='-Qoption ld ' 8026 ;; 8027 *Sun\ C*) 8028 # Sun C 5.9 8029 lt_prog_compiler_pic='-KPIC' 8030 lt_prog_compiler_static='-Bstatic' 8031 lt_prog_compiler_wl='-Wl,' 8032 ;; 8033 *Intel*\ [CF]*Compiler*) 8034 lt_prog_compiler_wl='-Wl,' 8035 lt_prog_compiler_pic='-fPIC' 8036 lt_prog_compiler_static='-static' 8037 ;; 8038 *Portland\ Group*) 8039 lt_prog_compiler_wl='-Wl,' 8040 lt_prog_compiler_pic='-fpic' 8041 lt_prog_compiler_static='-Bstatic' 8042 ;; 8043 esac 8044 ;; 8045 esac 8046 ;; 8047 8048 newsos6) 8049 lt_prog_compiler_pic='-KPIC' 8050 lt_prog_compiler_static='-Bstatic' 8051 ;; 8052 8053 *nto* | *qnx*) 8054 # QNX uses GNU C++, but need to define -shared option too, otherwise 8055 # it will coredump. 8056 lt_prog_compiler_pic='-fPIC -shared' 8057 ;; 8058 8059 osf3* | osf4* | osf5*) 8060 lt_prog_compiler_wl='-Wl,' 8061 # All OSF/1 code is PIC. 8062 lt_prog_compiler_static='-non_shared' 8063 ;; 8064 8065 rdos*) 8066 lt_prog_compiler_static='-non_shared' 8067 ;; 8068 8069 solaris*) 8070 lt_prog_compiler_pic='-KPIC' 8071 lt_prog_compiler_static='-Bstatic' 8072 case $cc_basename in 8073 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8074 lt_prog_compiler_wl='-Qoption ld ';; 8075 *) 8076 lt_prog_compiler_wl='-Wl,';; 8077 esac 8078 ;; 8079 8080 sunos4*) 8081 lt_prog_compiler_wl='-Qoption ld ' 8082 lt_prog_compiler_pic='-PIC' 8083 lt_prog_compiler_static='-Bstatic' 8084 ;; 8085 8086 sysv4 | sysv4.2uw2* | sysv4.3*) 8087 lt_prog_compiler_wl='-Wl,' 8088 lt_prog_compiler_pic='-KPIC' 8089 lt_prog_compiler_static='-Bstatic' 8090 ;; 8091 8092 sysv4*MP*) 8093 if test -d /usr/nec ;then 8094 lt_prog_compiler_pic='-Kconform_pic' 8095 lt_prog_compiler_static='-Bstatic' 8096 fi 8097 ;; 8098 8099 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8100 lt_prog_compiler_wl='-Wl,' 8101 lt_prog_compiler_pic='-KPIC' 8102 lt_prog_compiler_static='-Bstatic' 8103 ;; 8104 8105 unicos*) 8106 lt_prog_compiler_wl='-Wl,' 8107 lt_prog_compiler_can_build_shared=no 8108 ;; 8109 8110 uts4*) 8111 lt_prog_compiler_pic='-pic' 8112 lt_prog_compiler_static='-Bstatic' 8113 ;; 8114 8115 *) 8116 lt_prog_compiler_can_build_shared=no 8117 ;; 8118 esac 8119 fi 8120 8121case $host_os in 8122 # For platforms which do not support PIC, -DPIC is meaningless: 8123 *djgpp*) 8124 lt_prog_compiler_pic= 8125 ;; 8126 *) 8127 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8128 ;; 8129esac 8130 8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8132$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8133if ${lt_cv_prog_compiler_pic+:} false; then : 8134 $as_echo_n "(cached) " >&6 8135else 8136 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8137fi 8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8139$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8140lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8141 8142# 8143# Check to make sure the PIC flag actually works. 8144# 8145if test -n "$lt_prog_compiler_pic"; then 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8147$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8148if ${lt_cv_prog_compiler_pic_works+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150else 8151 lt_cv_prog_compiler_pic_works=no 8152 ac_outfile=conftest.$ac_objext 8153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8154 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8155 # Insert the option either (1) after the last *FLAGS variable, or 8156 # (2) before a word containing "conftest.", or (3) at the end. 8157 # Note that $ac_compile itself does not contain backslashes and begins 8158 # with a dollar sign (not a hyphen), so the echo should work correctly. 8159 # The option is referenced via a variable to avoid confusing sed. 8160 lt_compile=`echo "$ac_compile" | $SED \ 8161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8163 -e 's:$: $lt_compiler_flag:'` 8164 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8165 (eval "$lt_compile" 2>conftest.err) 8166 ac_status=$? 8167 cat conftest.err >&5 8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8169 if (exit $ac_status) && test -s "$ac_outfile"; then 8170 # The compiler can only warn and ignore the option if not recognized 8171 # So say no if there are warnings other than the usual output. 8172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8175 lt_cv_prog_compiler_pic_works=yes 8176 fi 8177 fi 8178 $RM conftest* 8179 8180fi 8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8182$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8183 8184if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8185 case $lt_prog_compiler_pic in 8186 "" | " "*) ;; 8187 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8188 esac 8189else 8190 lt_prog_compiler_pic= 8191 lt_prog_compiler_can_build_shared=no 8192fi 8193 8194fi 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206# 8207# Check to make sure the static flag actually works. 8208# 8209wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8211$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8212if ${lt_cv_prog_compiler_static_works+:} false; then : 8213 $as_echo_n "(cached) " >&6 8214else 8215 lt_cv_prog_compiler_static_works=no 8216 save_LDFLAGS="$LDFLAGS" 8217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8218 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8220 # The linker can only warn and ignore the option if not recognized 8221 # So say no if there are warnings 8222 if test -s conftest.err; then 8223 # Append any errors to the config.log. 8224 cat conftest.err 1>&5 8225 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8227 if diff conftest.exp conftest.er2 >/dev/null; then 8228 lt_cv_prog_compiler_static_works=yes 8229 fi 8230 else 8231 lt_cv_prog_compiler_static_works=yes 8232 fi 8233 fi 8234 $RM -r conftest* 8235 LDFLAGS="$save_LDFLAGS" 8236 8237fi 8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8239$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8240 8241if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8242 : 8243else 8244 lt_prog_compiler_static= 8245fi 8246 8247 8248 8249 8250 8251 8252 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8254$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8255if ${lt_cv_prog_compiler_c_o+:} false; then : 8256 $as_echo_n "(cached) " >&6 8257else 8258 lt_cv_prog_compiler_c_o=no 8259 $RM -r conftest 2>/dev/null 8260 mkdir conftest 8261 cd conftest 8262 mkdir out 8263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8264 8265 lt_compiler_flag="-o out/conftest2.$ac_objext" 8266 # Insert the option either (1) after the last *FLAGS variable, or 8267 # (2) before a word containing "conftest.", or (3) at the end. 8268 # Note that $ac_compile itself does not contain backslashes and begins 8269 # with a dollar sign (not a hyphen), so the echo should work correctly. 8270 lt_compile=`echo "$ac_compile" | $SED \ 8271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8273 -e 's:$: $lt_compiler_flag:'` 8274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8275 (eval "$lt_compile" 2>out/conftest.err) 8276 ac_status=$? 8277 cat out/conftest.err >&5 8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8279 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8280 then 8281 # The compiler can only warn and ignore the option if not recognized 8282 # So say no if there are warnings 8283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8286 lt_cv_prog_compiler_c_o=yes 8287 fi 8288 fi 8289 chmod u+w . 2>&5 8290 $RM conftest* 8291 # SGI C++ compiler will create directory out/ii_files/ for 8292 # template instantiation 8293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8294 $RM out/* && rmdir out 8295 cd .. 8296 $RM -r conftest 8297 $RM conftest* 8298 8299fi 8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8301$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8302 8303 8304 8305 8306 8307 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8309$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8310if ${lt_cv_prog_compiler_c_o+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312else 8313 lt_cv_prog_compiler_c_o=no 8314 $RM -r conftest 2>/dev/null 8315 mkdir conftest 8316 cd conftest 8317 mkdir out 8318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8319 8320 lt_compiler_flag="-o out/conftest2.$ac_objext" 8321 # Insert the option either (1) after the last *FLAGS variable, or 8322 # (2) before a word containing "conftest.", or (3) at the end. 8323 # Note that $ac_compile itself does not contain backslashes and begins 8324 # with a dollar sign (not a hyphen), so the echo should work correctly. 8325 lt_compile=`echo "$ac_compile" | $SED \ 8326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8328 -e 's:$: $lt_compiler_flag:'` 8329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8330 (eval "$lt_compile" 2>out/conftest.err) 8331 ac_status=$? 8332 cat out/conftest.err >&5 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8334 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8335 then 8336 # The compiler can only warn and ignore the option if not recognized 8337 # So say no if there are warnings 8338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8341 lt_cv_prog_compiler_c_o=yes 8342 fi 8343 fi 8344 chmod u+w . 2>&5 8345 $RM conftest* 8346 # SGI C++ compiler will create directory out/ii_files/ for 8347 # template instantiation 8348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8349 $RM out/* && rmdir out 8350 cd .. 8351 $RM -r conftest 8352 $RM conftest* 8353 8354fi 8355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8356$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8357 8358 8359 8360 8361hard_links="nottested" 8362if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8363 # do not overwrite the value of need_locks provided by the user 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8365$as_echo_n "checking if we can lock with hard links... " >&6; } 8366 hard_links=yes 8367 $RM conftest* 8368 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8369 touch conftest.a 8370 ln conftest.a conftest.b 2>&5 || hard_links=no 8371 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8373$as_echo "$hard_links" >&6; } 8374 if test "$hard_links" = no; then 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8376$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8377 need_locks=warn 8378 fi 8379else 8380 need_locks=no 8381fi 8382 8383 8384 8385 8386 8387 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8389$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8390 8391 runpath_var= 8392 allow_undefined_flag= 8393 always_export_symbols=no 8394 archive_cmds= 8395 archive_expsym_cmds= 8396 compiler_needs_object=no 8397 enable_shared_with_static_runtimes=no 8398 export_dynamic_flag_spec= 8399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8400 hardcode_automatic=no 8401 hardcode_direct=no 8402 hardcode_direct_absolute=no 8403 hardcode_libdir_flag_spec= 8404 hardcode_libdir_separator= 8405 hardcode_minus_L=no 8406 hardcode_shlibpath_var=unsupported 8407 inherit_rpath=no 8408 link_all_deplibs=unknown 8409 module_cmds= 8410 module_expsym_cmds= 8411 old_archive_from_new_cmds= 8412 old_archive_from_expsyms_cmds= 8413 thread_safe_flag_spec= 8414 whole_archive_flag_spec= 8415 # include_expsyms should be a list of space-separated symbols to be *always* 8416 # included in the symbol list 8417 include_expsyms= 8418 # exclude_expsyms can be an extended regexp of symbols to exclude 8419 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8420 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8421 # as well as any symbol that contains `d'. 8422 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8423 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8424 # platforms (ab)use it in PIC code, but their linkers get confused if 8425 # the symbol is explicitly referenced. Since portable code cannot 8426 # rely on this symbol name, it's probably fine to never include it in 8427 # preloaded symbol tables. 8428 # Exclude shared library initialization/finalization symbols. 8429 extract_expsyms_cmds= 8430 8431 case $host_os in 8432 cygwin* | mingw* | pw32* | cegcc*) 8433 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8434 # When not using gcc, we currently assume that we are using 8435 # Microsoft Visual C++. 8436 if test "$GCC" != yes; then 8437 with_gnu_ld=no 8438 fi 8439 ;; 8440 interix*) 8441 # we just hope/assume this is gcc and not c89 (= MSVC++) 8442 with_gnu_ld=yes 8443 ;; 8444 openbsd*) 8445 with_gnu_ld=no 8446 ;; 8447 esac 8448 8449 ld_shlibs=yes 8450 8451 # On some targets, GNU ld is compatible enough with the native linker 8452 # that we're better off using the native interface for both. 8453 lt_use_gnu_ld_interface=no 8454 if test "$with_gnu_ld" = yes; then 8455 case $host_os in 8456 aix*) 8457 # The AIX port of GNU ld has always aspired to compatibility 8458 # with the native linker. However, as the warning in the GNU ld 8459 # block says, versions before 2.19.5* couldn't really create working 8460 # shared libraries, regardless of the interface used. 8461 case `$LD -v 2>&1` in 8462 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8463 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8464 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8465 *) 8466 lt_use_gnu_ld_interface=yes 8467 ;; 8468 esac 8469 ;; 8470 *) 8471 lt_use_gnu_ld_interface=yes 8472 ;; 8473 esac 8474 fi 8475 8476 if test "$lt_use_gnu_ld_interface" = yes; then 8477 # If archive_cmds runs LD, not CC, wlarc should be empty 8478 wlarc='${wl}' 8479 8480 # Set some defaults for GNU ld with shared library support. These 8481 # are reset later if shared libraries are not supported. Putting them 8482 # here allows them to be overridden if necessary. 8483 runpath_var=LD_RUN_PATH 8484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8485 export_dynamic_flag_spec='${wl}--export-dynamic' 8486 # ancient GNU ld didn't support --whole-archive et. al. 8487 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8488 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8489 else 8490 whole_archive_flag_spec= 8491 fi 8492 supports_anon_versioning=no 8493 case `$LD -v 2>&1` in 8494 *GNU\ gold*) supports_anon_versioning=yes ;; 8495 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8496 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8497 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8498 *\ 2.11.*) ;; # other 2.11 versions 8499 *) supports_anon_versioning=yes ;; 8500 esac 8501 8502 # See if GNU ld supports shared libraries. 8503 case $host_os in 8504 aix[3-9]*) 8505 # On AIX/PPC, the GNU linker is very broken 8506 if test "$host_cpu" != ia64; then 8507 ld_shlibs=no 8508 cat <<_LT_EOF 1>&2 8509 8510*** Warning: the GNU linker, at least up to release 2.19, is reported 8511*** to be unable to reliably create shared libraries on AIX. 8512*** Therefore, libtool is disabling shared libraries support. If you 8513*** really care for shared libraries, you may want to install binutils 8514*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8515*** You will then need to restart the configuration process. 8516 8517_LT_EOF 8518 fi 8519 ;; 8520 8521 amigaos*) 8522 case $host_cpu in 8523 powerpc) 8524 # see comment about AmigaOS4 .so support 8525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8526 archive_expsym_cmds='' 8527 ;; 8528 m68k) 8529 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)' 8530 hardcode_libdir_flag_spec='-L$libdir' 8531 hardcode_minus_L=yes 8532 ;; 8533 esac 8534 ;; 8535 8536 beos*) 8537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8538 allow_undefined_flag=unsupported 8539 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8540 # support --undefined. This deserves some investigation. FIXME 8541 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8542 else 8543 ld_shlibs=no 8544 fi 8545 ;; 8546 8547 cygwin* | mingw* | pw32* | cegcc*) 8548 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8549 # as there is no search path for DLLs. 8550 hardcode_libdir_flag_spec='-L$libdir' 8551 export_dynamic_flag_spec='${wl}--export-all-symbols' 8552 allow_undefined_flag=unsupported 8553 always_export_symbols=no 8554 enable_shared_with_static_runtimes=yes 8555 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' 8556 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8557 8558 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8560 # If the export-symbols file already is a .def file (1st line 8561 # is EXPORTS), use it as is; otherwise, prepend... 8562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8563 cp $export_symbols $output_objdir/$soname.def; 8564 else 8565 echo EXPORTS > $output_objdir/$soname.def; 8566 cat $export_symbols >> $output_objdir/$soname.def; 8567 fi~ 8568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8569 else 8570 ld_shlibs=no 8571 fi 8572 ;; 8573 8574 haiku*) 8575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8576 link_all_deplibs=yes 8577 ;; 8578 8579 interix[3-9]*) 8580 hardcode_direct=no 8581 hardcode_shlibpath_var=no 8582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8583 export_dynamic_flag_spec='${wl}-E' 8584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8585 # Instead, shared libraries are loaded at an image base (0x10000000 by 8586 # default) and relocated if they conflict, which is a slow very memory 8587 # consuming and fragmenting process. To avoid this, we pick a random, 8588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8589 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8591 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' 8592 ;; 8593 8594 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8595 tmp_diet=no 8596 if test "$host_os" = linux-dietlibc; then 8597 case $cc_basename in 8598 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8599 esac 8600 fi 8601 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8602 && test "$tmp_diet" = no 8603 then 8604 tmp_addflag=' $pic_flag' 8605 tmp_sharedflag='-shared' 8606 case $cc_basename,$host_cpu in 8607 pgcc*) # Portland Group C compiler 8608 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' 8609 tmp_addflag=' $pic_flag' 8610 ;; 8611 pgf77* | pgf90* | pgf95* | pgfortran*) 8612 # Portland Group f77 and f90 compilers 8613 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' 8614 tmp_addflag=' $pic_flag -Mnomain' ;; 8615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8616 tmp_addflag=' -i_dynamic' ;; 8617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8618 tmp_addflag=' -i_dynamic -nofor_main' ;; 8619 ifc* | ifort*) # Intel Fortran compiler 8620 tmp_addflag=' -nofor_main' ;; 8621 lf95*) # Lahey Fortran 8.1 8622 whole_archive_flag_spec= 8623 tmp_sharedflag='--shared' ;; 8624 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8625 tmp_sharedflag='-qmkshrobj' 8626 tmp_addflag= ;; 8627 nvcc*) # Cuda Compiler Driver 2.2 8628 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' 8629 compiler_needs_object=yes 8630 ;; 8631 esac 8632 case `$CC -V 2>&1 | sed 5q` in 8633 *Sun\ C*) # Sun C 5.9 8634 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' 8635 compiler_needs_object=yes 8636 tmp_sharedflag='-G' ;; 8637 *Sun\ F*) # Sun Fortran 8.3 8638 tmp_sharedflag='-G' ;; 8639 esac 8640 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8641 8642 if test "x$supports_anon_versioning" = xyes; then 8643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8645 echo "local: *; };" >> $output_objdir/$libname.ver~ 8646 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8647 fi 8648 8649 case $cc_basename in 8650 xlf* | bgf* | bgxlf* | mpixlf*) 8651 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8652 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8654 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8655 if test "x$supports_anon_versioning" = xyes; then 8656 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8658 echo "local: *; };" >> $output_objdir/$libname.ver~ 8659 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8660 fi 8661 ;; 8662 esac 8663 else 8664 ld_shlibs=no 8665 fi 8666 ;; 8667 8668 netbsd*) 8669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8670 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8671 wlarc= 8672 else 8673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8674 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8675 fi 8676 ;; 8677 8678 solaris*) 8679 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8680 ld_shlibs=no 8681 cat <<_LT_EOF 1>&2 8682 8683*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8684*** create shared libraries on Solaris systems. Therefore, libtool 8685*** is disabling shared libraries support. We urge you to upgrade GNU 8686*** binutils to release 2.9.1 or newer. Another option is to modify 8687*** your PATH or compiler configuration so that the native linker is 8688*** used, and then restart. 8689 8690_LT_EOF 8691 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8693 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8694 else 8695 ld_shlibs=no 8696 fi 8697 ;; 8698 8699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8700 case `$LD -v 2>&1` in 8701 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8702 ld_shlibs=no 8703 cat <<_LT_EOF 1>&2 8704 8705*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8706*** reliably create shared libraries on SCO systems. Therefore, libtool 8707*** is disabling shared libraries support. We urge you to upgrade GNU 8708*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8709*** your PATH or compiler configuration so that the native linker is 8710*** used, and then restart. 8711 8712_LT_EOF 8713 ;; 8714 *) 8715 # For security reasons, it is highly recommended that you always 8716 # use absolute paths for naming shared libraries, and exclude the 8717 # DT_RUNPATH tag from executables and libraries. But doing so 8718 # requires that you compile everything twice, which is a pain. 8719 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8723 else 8724 ld_shlibs=no 8725 fi 8726 ;; 8727 esac 8728 ;; 8729 8730 sunos4*) 8731 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8732 wlarc= 8733 hardcode_direct=yes 8734 hardcode_shlibpath_var=no 8735 ;; 8736 8737 *) 8738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8740 archive_expsym_cmds='$CC -shared $pic_flag $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 if test "$ld_shlibs" = no; then 8748 runpath_var= 8749 hardcode_libdir_flag_spec= 8750 export_dynamic_flag_spec= 8751 whole_archive_flag_spec= 8752 fi 8753 else 8754 # PORTME fill in a description of your system's linker (not GNU ld) 8755 case $host_os in 8756 aix3*) 8757 allow_undefined_flag=unsupported 8758 always_export_symbols=yes 8759 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' 8760 # Note: this linker hardcodes the directories in LIBPATH if there 8761 # are no directories specified by -L. 8762 hardcode_minus_L=yes 8763 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8764 # Neither direct hardcoding nor static linking is supported with a 8765 # broken collect2. 8766 hardcode_direct=unsupported 8767 fi 8768 ;; 8769 8770 aix[4-9]*) 8771 if test "$host_cpu" = ia64; then 8772 # On IA64, the linker does run time linking by default, so we don't 8773 # have to do anything special. 8774 aix_use_runtimelinking=no 8775 exp_sym_flag='-Bexport' 8776 no_entry_flag="" 8777 else 8778 # If we're using GNU nm, then we don't want the "-C" option. 8779 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8780 # Also, AIX nm treats weak defined symbols like other global 8781 # defined symbols, whereas GNU nm marks them as "W". 8782 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8783 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' 8784 else 8785 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' 8786 fi 8787 aix_use_runtimelinking=no 8788 8789 # Test if we are trying to use run time linking or normal 8790 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8791 # need to do runtime linking. 8792 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8793 for ld_flag in $LDFLAGS; do 8794 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8795 aix_use_runtimelinking=yes 8796 break 8797 fi 8798 done 8799 ;; 8800 esac 8801 8802 exp_sym_flag='-bexport' 8803 no_entry_flag='-bnoentry' 8804 fi 8805 8806 # When large executables or shared objects are built, AIX ld can 8807 # have problems creating the table of contents. If linking a library 8808 # or program results in "error TOC overflow" add -mminimal-toc to 8809 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8810 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8811 8812 archive_cmds='' 8813 hardcode_direct=yes 8814 hardcode_direct_absolute=yes 8815 hardcode_libdir_separator=':' 8816 link_all_deplibs=yes 8817 file_list_spec='${wl}-f,' 8818 8819 if test "$GCC" = yes; then 8820 case $host_os in aix4.[012]|aix4.[012].*) 8821 # We only want to do this on AIX 4.2 and lower, the check 8822 # below for broken collect2 doesn't work under 4.3+ 8823 collect2name=`${CC} -print-prog-name=collect2` 8824 if test -f "$collect2name" && 8825 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8826 then 8827 # We have reworked collect2 8828 : 8829 else 8830 # We have old collect2 8831 hardcode_direct=unsupported 8832 # It fails to find uninstalled libraries when the uninstalled 8833 # path is not listed in the libpath. Setting hardcode_minus_L 8834 # to unsupported forces relinking 8835 hardcode_minus_L=yes 8836 hardcode_libdir_flag_spec='-L$libdir' 8837 hardcode_libdir_separator= 8838 fi 8839 ;; 8840 esac 8841 shared_flag='-shared' 8842 if test "$aix_use_runtimelinking" = yes; then 8843 shared_flag="$shared_flag "'${wl}-G' 8844 fi 8845 else 8846 # not using gcc 8847 if test "$host_cpu" = ia64; then 8848 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8849 # chokes on -Wl,-G. The following line is correct: 8850 shared_flag='-G' 8851 else 8852 if test "$aix_use_runtimelinking" = yes; then 8853 shared_flag='${wl}-G' 8854 else 8855 shared_flag='${wl}-bM:SRE' 8856 fi 8857 fi 8858 fi 8859 8860 export_dynamic_flag_spec='${wl}-bexpall' 8861 # It seems that -bexpall does not export symbols beginning with 8862 # underscore (_), so it is better to generate a list of symbols to export. 8863 always_export_symbols=yes 8864 if test "$aix_use_runtimelinking" = yes; then 8865 # Warning - without using the other runtime loading flags (-brtl), 8866 # -berok will link without error, but may produce a broken library. 8867 allow_undefined_flag='-berok' 8868 # Determine the default libpath from the value encoded in an 8869 # empty executable. 8870 if test "${lt_cv_aix_libpath+set}" = set; then 8871 aix_libpath=$lt_cv_aix_libpath 8872else 8873 if ${lt_cv_aix_libpath_+:} false; then : 8874 $as_echo_n "(cached) " >&6 8875else 8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8877/* end confdefs.h. */ 8878 8879int 8880main () 8881{ 8882 8883 ; 8884 return 0; 8885} 8886_ACEOF 8887if ac_fn_c_try_link "$LINENO"; then : 8888 8889 lt_aix_libpath_sed=' 8890 /Import File Strings/,/^$/ { 8891 /^0/ { 8892 s/^0 *\([^ ]*\) *$/\1/ 8893 p 8894 } 8895 }' 8896 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8897 # Check for a 64-bit object if we didn't find anything. 8898 if test -z "$lt_cv_aix_libpath_"; then 8899 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8900 fi 8901fi 8902rm -f core conftest.err conftest.$ac_objext \ 8903 conftest$ac_exeext conftest.$ac_ext 8904 if test -z "$lt_cv_aix_libpath_"; then 8905 lt_cv_aix_libpath_="/usr/lib:/lib" 8906 fi 8907 8908fi 8909 8910 aix_libpath=$lt_cv_aix_libpath_ 8911fi 8912 8913 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8914 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" 8915 else 8916 if test "$host_cpu" = ia64; then 8917 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8918 allow_undefined_flag="-z nodefs" 8919 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" 8920 else 8921 # Determine the default libpath from the value encoded in an 8922 # empty executable. 8923 if test "${lt_cv_aix_libpath+set}" = set; then 8924 aix_libpath=$lt_cv_aix_libpath 8925else 8926 if ${lt_cv_aix_libpath_+:} false; then : 8927 $as_echo_n "(cached) " >&6 8928else 8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8930/* end confdefs.h. */ 8931 8932int 8933main () 8934{ 8935 8936 ; 8937 return 0; 8938} 8939_ACEOF 8940if ac_fn_c_try_link "$LINENO"; then : 8941 8942 lt_aix_libpath_sed=' 8943 /Import File Strings/,/^$/ { 8944 /^0/ { 8945 s/^0 *\([^ ]*\) *$/\1/ 8946 p 8947 } 8948 }' 8949 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8950 # Check for a 64-bit object if we didn't find anything. 8951 if test -z "$lt_cv_aix_libpath_"; then 8952 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8953 fi 8954fi 8955rm -f core conftest.err conftest.$ac_objext \ 8956 conftest$ac_exeext conftest.$ac_ext 8957 if test -z "$lt_cv_aix_libpath_"; then 8958 lt_cv_aix_libpath_="/usr/lib:/lib" 8959 fi 8960 8961fi 8962 8963 aix_libpath=$lt_cv_aix_libpath_ 8964fi 8965 8966 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8967 # Warning - without using the other run time loading flags, 8968 # -berok will link without error, but may produce a broken library. 8969 no_undefined_flag=' ${wl}-bernotok' 8970 allow_undefined_flag=' ${wl}-berok' 8971 if test "$with_gnu_ld" = yes; then 8972 # We only use this code for GNU lds that support --whole-archive. 8973 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8974 else 8975 # Exported symbols can be pulled into shared objects from archives 8976 whole_archive_flag_spec='$convenience' 8977 fi 8978 archive_cmds_need_lc=yes 8979 # This is similar to how AIX traditionally builds its shared libraries. 8980 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' 8981 fi 8982 fi 8983 ;; 8984 8985 amigaos*) 8986 case $host_cpu in 8987 powerpc) 8988 # see comment about AmigaOS4 .so support 8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8990 archive_expsym_cmds='' 8991 ;; 8992 m68k) 8993 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)' 8994 hardcode_libdir_flag_spec='-L$libdir' 8995 hardcode_minus_L=yes 8996 ;; 8997 esac 8998 ;; 8999 9000 bsdi[45]*) 9001 export_dynamic_flag_spec=-rdynamic 9002 ;; 9003 9004 cygwin* | mingw* | pw32* | cegcc*) 9005 # When not using gcc, we currently assume that we are using 9006 # Microsoft Visual C++. 9007 # hardcode_libdir_flag_spec is actually meaningless, as there is 9008 # no search path for DLLs. 9009 case $cc_basename in 9010 cl*) 9011 # Native MSVC 9012 hardcode_libdir_flag_spec=' ' 9013 allow_undefined_flag=unsupported 9014 always_export_symbols=yes 9015 file_list_spec='@' 9016 # Tell ltmain to make .lib files, not .a files. 9017 libext=lib 9018 # Tell ltmain to make .dll files, not .so files. 9019 shrext_cmds=".dll" 9020 # FIXME: Setting linknames here is a bad hack. 9021 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9022 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9023 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9024 else 9025 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9026 fi~ 9027 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9028 linknames=' 9029 # The linker will not automatically build a static lib if we build a DLL. 9030 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9031 enable_shared_with_static_runtimes=yes 9032 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9033 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9034 # Don't use ranlib 9035 old_postinstall_cmds='chmod 644 $oldlib' 9036 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9037 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9038 case $lt_outputfile in 9039 *.exe|*.EXE) ;; 9040 *) 9041 lt_outputfile="$lt_outputfile.exe" 9042 lt_tool_outputfile="$lt_tool_outputfile.exe" 9043 ;; 9044 esac~ 9045 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9046 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9047 $RM "$lt_outputfile.manifest"; 9048 fi' 9049 ;; 9050 *) 9051 # Assume MSVC wrapper 9052 hardcode_libdir_flag_spec=' ' 9053 allow_undefined_flag=unsupported 9054 # Tell ltmain to make .lib files, not .a files. 9055 libext=lib 9056 # Tell ltmain to make .dll files, not .so files. 9057 shrext_cmds=".dll" 9058 # FIXME: Setting linknames here is a bad hack. 9059 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9060 # The linker will automatically build a .lib file if we build a DLL. 9061 old_archive_from_new_cmds='true' 9062 # FIXME: Should let the user specify the lib program. 9063 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9064 enable_shared_with_static_runtimes=yes 9065 ;; 9066 esac 9067 ;; 9068 9069 darwin* | rhapsody*) 9070 9071 9072 archive_cmds_need_lc=no 9073 hardcode_direct=no 9074 hardcode_automatic=yes 9075 hardcode_shlibpath_var=unsupported 9076 if test "$lt_cv_ld_force_load" = "yes"; then 9077 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\"`' 9078 9079 else 9080 whole_archive_flag_spec='' 9081 fi 9082 link_all_deplibs=yes 9083 allow_undefined_flag="$_lt_dar_allow_undefined" 9084 case $cc_basename in 9085 ifort*) _lt_dar_can_shared=yes ;; 9086 *) _lt_dar_can_shared=$GCC ;; 9087 esac 9088 if test "$_lt_dar_can_shared" = "yes"; then 9089 output_verbose_link_cmd=func_echo_all 9090 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9091 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9092 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}" 9093 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}" 9094 9095 else 9096 ld_shlibs=no 9097 fi 9098 9099 ;; 9100 9101 dgux*) 9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9103 hardcode_libdir_flag_spec='-L$libdir' 9104 hardcode_shlibpath_var=no 9105 ;; 9106 9107 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9108 # support. Future versions do this automatically, but an explicit c++rt0.o 9109 # does not break anything, and helps significantly (at the cost of a little 9110 # extra space). 9111 freebsd2.2*) 9112 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9113 hardcode_libdir_flag_spec='-R$libdir' 9114 hardcode_direct=yes 9115 hardcode_shlibpath_var=no 9116 ;; 9117 9118 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9119 freebsd2.*) 9120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9121 hardcode_direct=yes 9122 hardcode_minus_L=yes 9123 hardcode_shlibpath_var=no 9124 ;; 9125 9126 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9127 freebsd* | dragonfly*) 9128 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9129 hardcode_libdir_flag_spec='-R$libdir' 9130 hardcode_direct=yes 9131 hardcode_shlibpath_var=no 9132 ;; 9133 9134 hpux9*) 9135 if test "$GCC" = yes; then 9136 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' 9137 else 9138 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' 9139 fi 9140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9141 hardcode_libdir_separator=: 9142 hardcode_direct=yes 9143 9144 # hardcode_minus_L: Not really in the search PATH, 9145 # but as the default location of the library. 9146 hardcode_minus_L=yes 9147 export_dynamic_flag_spec='${wl}-E' 9148 ;; 9149 9150 hpux10*) 9151 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9152 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9153 else 9154 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9155 fi 9156 if test "$with_gnu_ld" = no; then 9157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9158 hardcode_libdir_separator=: 9159 hardcode_direct=yes 9160 hardcode_direct_absolute=yes 9161 export_dynamic_flag_spec='${wl}-E' 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 fi 9166 ;; 9167 9168 hpux11*) 9169 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9170 case $host_cpu in 9171 hppa*64*) 9172 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9173 ;; 9174 ia64*) 9175 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9176 ;; 9177 *) 9178 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9179 ;; 9180 esac 9181 else 9182 case $host_cpu in 9183 hppa*64*) 9184 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9185 ;; 9186 ia64*) 9187 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9188 ;; 9189 *) 9190 9191 # Older versions of the 11.00 compiler do not understand -b yet 9192 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9194$as_echo_n "checking if $CC understands -b... " >&6; } 9195if ${lt_cv_prog_compiler__b+:} false; then : 9196 $as_echo_n "(cached) " >&6 9197else 9198 lt_cv_prog_compiler__b=no 9199 save_LDFLAGS="$LDFLAGS" 9200 LDFLAGS="$LDFLAGS -b" 9201 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9203 # The linker can only warn and ignore the option if not recognized 9204 # So say no if there are warnings 9205 if test -s conftest.err; then 9206 # Append any errors to the config.log. 9207 cat conftest.err 1>&5 9208 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9210 if diff conftest.exp conftest.er2 >/dev/null; then 9211 lt_cv_prog_compiler__b=yes 9212 fi 9213 else 9214 lt_cv_prog_compiler__b=yes 9215 fi 9216 fi 9217 $RM -r conftest* 9218 LDFLAGS="$save_LDFLAGS" 9219 9220fi 9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9222$as_echo "$lt_cv_prog_compiler__b" >&6; } 9223 9224if test x"$lt_cv_prog_compiler__b" = xyes; then 9225 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9226else 9227 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9228fi 9229 9230 ;; 9231 esac 9232 fi 9233 if test "$with_gnu_ld" = no; then 9234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9235 hardcode_libdir_separator=: 9236 9237 case $host_cpu in 9238 hppa*64*|ia64*) 9239 hardcode_direct=no 9240 hardcode_shlibpath_var=no 9241 ;; 9242 *) 9243 hardcode_direct=yes 9244 hardcode_direct_absolute=yes 9245 export_dynamic_flag_spec='${wl}-E' 9246 9247 # hardcode_minus_L: Not really in the search PATH, 9248 # but as the default location of the library. 9249 hardcode_minus_L=yes 9250 ;; 9251 esac 9252 fi 9253 ;; 9254 9255 irix5* | irix6* | nonstopux*) 9256 if test "$GCC" = yes; then 9257 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' 9258 # Try to use the -exported_symbol ld option, if it does not 9259 # work, assume that -exports_file does not work either and 9260 # implicitly export all symbols. 9261 # This should be the same for all languages, so no per-tag cache variable. 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9263$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9264if ${lt_cv_irix_exported_symbol+:} false; then : 9265 $as_echo_n "(cached) " >&6 9266else 9267 save_LDFLAGS="$LDFLAGS" 9268 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270/* end confdefs.h. */ 9271int foo (void) { return 0; } 9272_ACEOF 9273if ac_fn_c_try_link "$LINENO"; then : 9274 lt_cv_irix_exported_symbol=yes 9275else 9276 lt_cv_irix_exported_symbol=no 9277fi 9278rm -f core conftest.err conftest.$ac_objext \ 9279 conftest$ac_exeext conftest.$ac_ext 9280 LDFLAGS="$save_LDFLAGS" 9281fi 9282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9283$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9284 if test "$lt_cv_irix_exported_symbol" = yes; then 9285 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' 9286 fi 9287 else 9288 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' 9289 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' 9290 fi 9291 archive_cmds_need_lc='no' 9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9293 hardcode_libdir_separator=: 9294 inherit_rpath=yes 9295 link_all_deplibs=yes 9296 ;; 9297 9298 netbsd*) 9299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9301 else 9302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9303 fi 9304 hardcode_libdir_flag_spec='-R$libdir' 9305 hardcode_direct=yes 9306 hardcode_shlibpath_var=no 9307 ;; 9308 9309 newsos6) 9310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9311 hardcode_direct=yes 9312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9313 hardcode_libdir_separator=: 9314 hardcode_shlibpath_var=no 9315 ;; 9316 9317 *nto* | *qnx*) 9318 ;; 9319 9320 openbsd*) 9321 if test -f /usr/libexec/ld.so; then 9322 hardcode_direct=yes 9323 hardcode_shlibpath_var=no 9324 hardcode_direct_absolute=yes 9325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9329 export_dynamic_flag_spec='${wl}-E' 9330 else 9331 case $host_os in 9332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9334 hardcode_libdir_flag_spec='-R$libdir' 9335 ;; 9336 *) 9337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9339 ;; 9340 esac 9341 fi 9342 else 9343 ld_shlibs=no 9344 fi 9345 ;; 9346 9347 os2*) 9348 hardcode_libdir_flag_spec='-L$libdir' 9349 hardcode_minus_L=yes 9350 allow_undefined_flag=unsupported 9351 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' 9352 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9353 ;; 9354 9355 osf3*) 9356 if test "$GCC" = yes; then 9357 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9358 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' 9359 else 9360 allow_undefined_flag=' -expect_unresolved \*' 9361 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' 9362 fi 9363 archive_cmds_need_lc='no' 9364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9365 hardcode_libdir_separator=: 9366 ;; 9367 9368 osf4* | osf5*) # as osf3* with the addition of -msym flag 9369 if test "$GCC" = yes; then 9370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9371 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' 9372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9373 else 9374 allow_undefined_flag=' -expect_unresolved \*' 9375 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' 9376 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~ 9377 $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' 9378 9379 # Both c and cxx compiler support -rpath directly 9380 hardcode_libdir_flag_spec='-rpath $libdir' 9381 fi 9382 archive_cmds_need_lc='no' 9383 hardcode_libdir_separator=: 9384 ;; 9385 9386 solaris*) 9387 no_undefined_flag=' -z defs' 9388 if test "$GCC" = yes; then 9389 wlarc='${wl}' 9390 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9392 $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' 9393 else 9394 case `$CC -V 2>&1` in 9395 *"Compilers 5.0"*) 9396 wlarc='' 9397 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9400 ;; 9401 *) 9402 wlarc='${wl}' 9403 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9406 ;; 9407 esac 9408 fi 9409 hardcode_libdir_flag_spec='-R$libdir' 9410 hardcode_shlibpath_var=no 9411 case $host_os in 9412 solaris2.[0-5] | solaris2.[0-5].*) ;; 9413 *) 9414 # The compiler driver will combine and reorder linker options, 9415 # but understands `-z linker_flag'. GCC discards it without `$wl', 9416 # but is careful enough not to reorder. 9417 # Supported since Solaris 2.6 (maybe 2.5.1?) 9418 if test "$GCC" = yes; then 9419 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9420 else 9421 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9422 fi 9423 ;; 9424 esac 9425 link_all_deplibs=yes 9426 ;; 9427 9428 sunos4*) 9429 if test "x$host_vendor" = xsequent; then 9430 # Use $CC to link under sequent, because it throws in some extra .o 9431 # files that make .init and .fini sections work. 9432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9433 else 9434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9435 fi 9436 hardcode_libdir_flag_spec='-L$libdir' 9437 hardcode_direct=yes 9438 hardcode_minus_L=yes 9439 hardcode_shlibpath_var=no 9440 ;; 9441 9442 sysv4) 9443 case $host_vendor in 9444 sni) 9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9446 hardcode_direct=yes # is this really true??? 9447 ;; 9448 siemens) 9449 ## LD is ld it makes a PLAMLIB 9450 ## CC just makes a GrossModule. 9451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9452 reload_cmds='$CC -r -o $output$reload_objs' 9453 hardcode_direct=no 9454 ;; 9455 motorola) 9456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9458 ;; 9459 esac 9460 runpath_var='LD_RUN_PATH' 9461 hardcode_shlibpath_var=no 9462 ;; 9463 9464 sysv4.3*) 9465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9466 hardcode_shlibpath_var=no 9467 export_dynamic_flag_spec='-Bexport' 9468 ;; 9469 9470 sysv4*MP*) 9471 if test -d /usr/nec; then 9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9473 hardcode_shlibpath_var=no 9474 runpath_var=LD_RUN_PATH 9475 hardcode_runpath_var=yes 9476 ld_shlibs=yes 9477 fi 9478 ;; 9479 9480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9481 no_undefined_flag='${wl}-z,text' 9482 archive_cmds_need_lc=no 9483 hardcode_shlibpath_var=no 9484 runpath_var='LD_RUN_PATH' 9485 9486 if test "$GCC" = yes; then 9487 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9488 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9489 else 9490 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9491 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9492 fi 9493 ;; 9494 9495 sysv5* | sco3.2v5* | sco5v6*) 9496 # Note: We can NOT use -z defs as we might desire, because we do not 9497 # link with -lc, and that would cause any symbols used from libc to 9498 # always be unresolved, which means just about no library would 9499 # ever link correctly. If we're not using GNU ld we use -z text 9500 # though, which does catch some bad symbols but isn't as heavy-handed 9501 # as -z defs. 9502 no_undefined_flag='${wl}-z,text' 9503 allow_undefined_flag='${wl}-z,nodefs' 9504 archive_cmds_need_lc=no 9505 hardcode_shlibpath_var=no 9506 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9507 hardcode_libdir_separator=':' 9508 link_all_deplibs=yes 9509 export_dynamic_flag_spec='${wl}-Bexport' 9510 runpath_var='LD_RUN_PATH' 9511 9512 if test "$GCC" = yes; then 9513 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9514 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9515 else 9516 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9517 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9518 fi 9519 ;; 9520 9521 uts4*) 9522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9523 hardcode_libdir_flag_spec='-L$libdir' 9524 hardcode_shlibpath_var=no 9525 ;; 9526 9527 *) 9528 ld_shlibs=no 9529 ;; 9530 esac 9531 9532 if test x$host_vendor = xsni; then 9533 case $host in 9534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9535 export_dynamic_flag_spec='${wl}-Blargedynsym' 9536 ;; 9537 esac 9538 fi 9539 fi 9540 9541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9542$as_echo "$ld_shlibs" >&6; } 9543test "$ld_shlibs" = no && can_build_shared=no 9544 9545with_gnu_ld=$with_gnu_ld 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561# 9562# Do we need to explicitly link libc? 9563# 9564case "x$archive_cmds_need_lc" in 9565x|xyes) 9566 # Assume -lc should be added 9567 archive_cmds_need_lc=yes 9568 9569 if test "$enable_shared" = yes && test "$GCC" = yes; then 9570 case $archive_cmds in 9571 *'~'*) 9572 # FIXME: we may have to deal with multi-command sequences. 9573 ;; 9574 '$CC '*) 9575 # Test whether the compiler implicitly links with -lc since on some 9576 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9577 # to ld, don't add -lc before -lgcc. 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9579$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9580if ${lt_cv_archive_cmds_need_lc+:} false; then : 9581 $as_echo_n "(cached) " >&6 9582else 9583 $RM conftest* 9584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9585 9586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9587 (eval $ac_compile) 2>&5 9588 ac_status=$? 9589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9590 test $ac_status = 0; } 2>conftest.err; then 9591 soname=conftest 9592 lib=conftest 9593 libobjs=conftest.$ac_objext 9594 deplibs= 9595 wl=$lt_prog_compiler_wl 9596 pic_flag=$lt_prog_compiler_pic 9597 compiler_flags=-v 9598 linker_flags=-v 9599 verstring= 9600 output_objdir=. 9601 libname=conftest 9602 lt_save_allow_undefined_flag=$allow_undefined_flag 9603 allow_undefined_flag= 9604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9605 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9606 ac_status=$? 9607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9608 test $ac_status = 0; } 9609 then 9610 lt_cv_archive_cmds_need_lc=no 9611 else 9612 lt_cv_archive_cmds_need_lc=yes 9613 fi 9614 allow_undefined_flag=$lt_save_allow_undefined_flag 9615 else 9616 cat conftest.err 1>&5 9617 fi 9618 $RM conftest* 9619 9620fi 9621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9622$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9623 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9624 ;; 9625 esac 9626 fi 9627 ;; 9628esac 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9782$as_echo_n "checking dynamic linker characteristics... " >&6; } 9783 9784if test "$GCC" = yes; then 9785 case $host_os in 9786 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9787 *) lt_awk_arg="/^libraries:/" ;; 9788 esac 9789 case $host_os in 9790 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9791 *) lt_sed_strip_eq="s,=/,/,g" ;; 9792 esac 9793 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9794 case $lt_search_path_spec in 9795 *\;*) 9796 # if the path contains ";" then we assume it to be the separator 9797 # otherwise default to the standard path separator (i.e. ":") - it is 9798 # assumed that no part of a normal pathname contains ";" but that should 9799 # okay in the real world where ";" in dirpaths is itself problematic. 9800 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9801 ;; 9802 *) 9803 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9804 ;; 9805 esac 9806 # Ok, now we have the path, separated by spaces, we can step through it 9807 # and add multilib dir if necessary. 9808 lt_tmp_lt_search_path_spec= 9809 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9810 for lt_sys_path in $lt_search_path_spec; do 9811 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9813 else 9814 test -d "$lt_sys_path" && \ 9815 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9816 fi 9817 done 9818 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9819BEGIN {RS=" "; FS="/|\n";} { 9820 lt_foo=""; 9821 lt_count=0; 9822 for (lt_i = NF; lt_i > 0; lt_i--) { 9823 if ($lt_i != "" && $lt_i != ".") { 9824 if ($lt_i == "..") { 9825 lt_count++; 9826 } else { 9827 if (lt_count == 0) { 9828 lt_foo="/" $lt_i lt_foo; 9829 } else { 9830 lt_count--; 9831 } 9832 } 9833 } 9834 } 9835 if (lt_foo != "") { lt_freq[lt_foo]++; } 9836 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9837}'` 9838 # AWK program above erroneously prepends '/' to C:/dos/paths 9839 # for these hosts. 9840 case $host_os in 9841 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9842 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9843 esac 9844 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9845else 9846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9847fi 9848library_names_spec= 9849libname_spec='lib$name' 9850soname_spec= 9851shrext_cmds=".so" 9852postinstall_cmds= 9853postuninstall_cmds= 9854finish_cmds= 9855finish_eval= 9856shlibpath_var= 9857shlibpath_overrides_runpath=unknown 9858version_type=none 9859dynamic_linker="$host_os ld.so" 9860sys_lib_dlsearch_path_spec="/lib /usr/lib" 9861need_lib_prefix=unknown 9862hardcode_into_libs=no 9863 9864# when you set need_version to no, make sure it does not cause -set_version 9865# flags to be left without arguments 9866need_version=unknown 9867 9868case $host_os in 9869aix3*) 9870 version_type=linux # correct to gnu/linux during the next big refactor 9871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9872 shlibpath_var=LIBPATH 9873 9874 # AIX 3 has no versioning support, so we append a major version to the name. 9875 soname_spec='${libname}${release}${shared_ext}$major' 9876 ;; 9877 9878aix[4-9]*) 9879 version_type=linux # correct to gnu/linux during the next big refactor 9880 need_lib_prefix=no 9881 need_version=no 9882 hardcode_into_libs=yes 9883 if test "$host_cpu" = ia64; then 9884 # AIX 5 supports IA64 9885 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9886 shlibpath_var=LD_LIBRARY_PATH 9887 else 9888 # With GCC up to 2.95.x, collect2 would create an import file 9889 # for dependence libraries. The import file would start with 9890 # the line `#! .'. This would cause the generated library to 9891 # depend on `.', always an invalid library. This was fixed in 9892 # development snapshots of GCC prior to 3.0. 9893 case $host_os in 9894 aix4 | aix4.[01] | aix4.[01].*) 9895 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9896 echo ' yes ' 9897 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9898 : 9899 else 9900 can_build_shared=no 9901 fi 9902 ;; 9903 esac 9904 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9905 # soname into executable. Probably we can add versioning support to 9906 # collect2, so additional links can be useful in future. 9907 if test "$aix_use_runtimelinking" = yes; then 9908 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9909 # instead of lib<name>.a to let people know that these are not 9910 # typical AIX shared libraries. 9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9912 else 9913 # We preserve .a as extension for shared libraries through AIX4.2 9914 # and later when we are not doing run time linking. 9915 library_names_spec='${libname}${release}.a $libname.a' 9916 soname_spec='${libname}${release}${shared_ext}$major' 9917 fi 9918 shlibpath_var=LIBPATH 9919 fi 9920 ;; 9921 9922amigaos*) 9923 case $host_cpu in 9924 powerpc) 9925 # Since July 2007 AmigaOS4 officially supports .so libraries. 9926 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9928 ;; 9929 m68k) 9930 library_names_spec='$libname.ixlibrary $libname.a' 9931 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9932 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' 9933 ;; 9934 esac 9935 ;; 9936 9937beos*) 9938 library_names_spec='${libname}${shared_ext}' 9939 dynamic_linker="$host_os ld.so" 9940 shlibpath_var=LIBRARY_PATH 9941 ;; 9942 9943bsdi[45]*) 9944 version_type=linux # correct to gnu/linux during the next big refactor 9945 need_version=no 9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9947 soname_spec='${libname}${release}${shared_ext}$major' 9948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9949 shlibpath_var=LD_LIBRARY_PATH 9950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9952 # the default ld.so.conf also contains /usr/contrib/lib and 9953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9954 # libtool to hard-code these into programs 9955 ;; 9956 9957cygwin* | mingw* | pw32* | cegcc*) 9958 version_type=windows 9959 shrext_cmds=".dll" 9960 need_version=no 9961 need_lib_prefix=no 9962 9963 case $GCC,$cc_basename in 9964 yes,*) 9965 # gcc 9966 library_names_spec='$libname.dll.a' 9967 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9968 postinstall_cmds='base_file=`basename \${file}`~ 9969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9970 dldir=$destdir/`dirname \$dlpath`~ 9971 test -d \$dldir || mkdir -p \$dldir~ 9972 $install_prog $dir/$dlname \$dldir/$dlname~ 9973 chmod a+x \$dldir/$dlname~ 9974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9976 fi' 9977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9978 dlpath=$dir/\$dldll~ 9979 $RM \$dlpath' 9980 shlibpath_overrides_runpath=yes 9981 9982 case $host_os in 9983 cygwin*) 9984 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9985 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9986 9987 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9988 ;; 9989 mingw* | cegcc*) 9990 # MinGW DLLs use traditional 'lib' prefix 9991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9992 ;; 9993 pw32*) 9994 # pw32 DLLs use 'pw' prefix rather than 'lib' 9995 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9996 ;; 9997 esac 9998 dynamic_linker='Win32 ld.exe' 9999 ;; 10000 10001 *,cl*) 10002 # Native MSVC 10003 libname_spec='$name' 10004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10005 library_names_spec='${libname}.dll.lib' 10006 10007 case $build_os in 10008 mingw*) 10009 sys_lib_search_path_spec= 10010 lt_save_ifs=$IFS 10011 IFS=';' 10012 for lt_path in $LIB 10013 do 10014 IFS=$lt_save_ifs 10015 # Let DOS variable expansion print the short 8.3 style file name. 10016 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10017 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10018 done 10019 IFS=$lt_save_ifs 10020 # Convert to MSYS style. 10021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10022 ;; 10023 cygwin*) 10024 # Convert to unix form, then to dos form, then back to unix form 10025 # but this time dos style (no spaces!) so that the unix form looks 10026 # like /cygdrive/c/PROGRA~1:/cygdr... 10027 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10028 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10029 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10030 ;; 10031 *) 10032 sys_lib_search_path_spec="$LIB" 10033 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10034 # It is most probably a Windows format PATH. 10035 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10036 else 10037 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10038 fi 10039 # FIXME: find the short name or the path components, as spaces are 10040 # common. (e.g. "Program Files" -> "PROGRA~1") 10041 ;; 10042 esac 10043 10044 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10045 postinstall_cmds='base_file=`basename \${file}`~ 10046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10047 dldir=$destdir/`dirname \$dlpath`~ 10048 test -d \$dldir || mkdir -p \$dldir~ 10049 $install_prog $dir/$dlname \$dldir/$dlname' 10050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10051 dlpath=$dir/\$dldll~ 10052 $RM \$dlpath' 10053 shlibpath_overrides_runpath=yes 10054 dynamic_linker='Win32 link.exe' 10055 ;; 10056 10057 *) 10058 # Assume MSVC wrapper 10059 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10060 dynamic_linker='Win32 ld.exe' 10061 ;; 10062 esac 10063 # FIXME: first we should search . and the directory the executable is in 10064 shlibpath_var=PATH 10065 ;; 10066 10067darwin* | rhapsody*) 10068 dynamic_linker="$host_os dyld" 10069 version_type=darwin 10070 need_lib_prefix=no 10071 need_version=no 10072 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10073 soname_spec='${libname}${release}${major}$shared_ext' 10074 shlibpath_overrides_runpath=yes 10075 shlibpath_var=DYLD_LIBRARY_PATH 10076 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10077 10078 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10079 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10080 ;; 10081 10082dgux*) 10083 version_type=linux # correct to gnu/linux during the next big refactor 10084 need_lib_prefix=no 10085 need_version=no 10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10087 soname_spec='${libname}${release}${shared_ext}$major' 10088 shlibpath_var=LD_LIBRARY_PATH 10089 ;; 10090 10091freebsd* | dragonfly*) 10092 # DragonFly does not have aout. When/if they implement a new 10093 # versioning mechanism, adjust this. 10094 if test -x /usr/bin/objformat; then 10095 objformat=`/usr/bin/objformat` 10096 else 10097 case $host_os in 10098 freebsd[23].*) objformat=aout ;; 10099 *) objformat=elf ;; 10100 esac 10101 fi 10102 version_type=freebsd-$objformat 10103 case $version_type in 10104 freebsd-elf*) 10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10106 need_version=no 10107 need_lib_prefix=no 10108 ;; 10109 freebsd-*) 10110 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10111 need_version=yes 10112 ;; 10113 esac 10114 shlibpath_var=LD_LIBRARY_PATH 10115 case $host_os in 10116 freebsd2.*) 10117 shlibpath_overrides_runpath=yes 10118 ;; 10119 freebsd3.[01]* | freebsdelf3.[01]*) 10120 shlibpath_overrides_runpath=yes 10121 hardcode_into_libs=yes 10122 ;; 10123 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10124 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10125 shlibpath_overrides_runpath=no 10126 hardcode_into_libs=yes 10127 ;; 10128 *) # from 4.6 on, and DragonFly 10129 shlibpath_overrides_runpath=yes 10130 hardcode_into_libs=yes 10131 ;; 10132 esac 10133 ;; 10134 10135gnu*) 10136 version_type=linux # correct to gnu/linux during the next big refactor 10137 need_lib_prefix=no 10138 need_version=no 10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10140 soname_spec='${libname}${release}${shared_ext}$major' 10141 shlibpath_var=LD_LIBRARY_PATH 10142 shlibpath_overrides_runpath=no 10143 hardcode_into_libs=yes 10144 ;; 10145 10146haiku*) 10147 version_type=linux # correct to gnu/linux during the next big refactor 10148 need_lib_prefix=no 10149 need_version=no 10150 dynamic_linker="$host_os runtime_loader" 10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10152 soname_spec='${libname}${release}${shared_ext}$major' 10153 shlibpath_var=LIBRARY_PATH 10154 shlibpath_overrides_runpath=yes 10155 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10156 hardcode_into_libs=yes 10157 ;; 10158 10159hpux9* | hpux10* | hpux11*) 10160 # Give a soname corresponding to the major version so that dld.sl refuses to 10161 # link against other versions. 10162 version_type=sunos 10163 need_lib_prefix=no 10164 need_version=no 10165 case $host_cpu in 10166 ia64*) 10167 shrext_cmds='.so' 10168 hardcode_into_libs=yes 10169 dynamic_linker="$host_os dld.so" 10170 shlibpath_var=LD_LIBRARY_PATH 10171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10173 soname_spec='${libname}${release}${shared_ext}$major' 10174 if test "X$HPUX_IA64_MODE" = X32; then 10175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10176 else 10177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10178 fi 10179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10180 ;; 10181 hppa*64*) 10182 shrext_cmds='.sl' 10183 hardcode_into_libs=yes 10184 dynamic_linker="$host_os dld.sl" 10185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10188 soname_spec='${libname}${release}${shared_ext}$major' 10189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10191 ;; 10192 *) 10193 shrext_cmds='.sl' 10194 dynamic_linker="$host_os dld.sl" 10195 shlibpath_var=SHLIB_PATH 10196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10198 soname_spec='${libname}${release}${shared_ext}$major' 10199 ;; 10200 esac 10201 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10202 postinstall_cmds='chmod 555 $lib' 10203 # or fails outright, so override atomically: 10204 install_override_mode=555 10205 ;; 10206 10207interix[3-9]*) 10208 version_type=linux # correct to gnu/linux during the next big refactor 10209 need_lib_prefix=no 10210 need_version=no 10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10212 soname_spec='${libname}${release}${shared_ext}$major' 10213 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10214 shlibpath_var=LD_LIBRARY_PATH 10215 shlibpath_overrides_runpath=no 10216 hardcode_into_libs=yes 10217 ;; 10218 10219irix5* | irix6* | nonstopux*) 10220 case $host_os in 10221 nonstopux*) version_type=nonstopux ;; 10222 *) 10223 if test "$lt_cv_prog_gnu_ld" = yes; then 10224 version_type=linux # correct to gnu/linux during the next big refactor 10225 else 10226 version_type=irix 10227 fi ;; 10228 esac 10229 need_lib_prefix=no 10230 need_version=no 10231 soname_spec='${libname}${release}${shared_ext}$major' 10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10233 case $host_os in 10234 irix5* | nonstopux*) 10235 libsuff= shlibsuff= 10236 ;; 10237 *) 10238 case $LD in # libtool.m4 will add one of these switches to LD 10239 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10240 libsuff= shlibsuff= libmagic=32-bit;; 10241 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10242 libsuff=32 shlibsuff=N32 libmagic=N32;; 10243 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10244 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10245 *) libsuff= shlibsuff= libmagic=never-match;; 10246 esac 10247 ;; 10248 esac 10249 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10250 shlibpath_overrides_runpath=no 10251 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10252 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10253 hardcode_into_libs=yes 10254 ;; 10255 10256# No shared lib support for Linux oldld, aout, or coff. 10257linux*oldld* | linux*aout* | linux*coff*) 10258 dynamic_linker=no 10259 ;; 10260 10261# This must be glibc/ELF. 10262linux* | k*bsd*-gnu | kopensolaris*-gnu) 10263 version_type=linux # correct to gnu/linux during the next big refactor 10264 need_lib_prefix=no 10265 need_version=no 10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10267 soname_spec='${libname}${release}${shared_ext}$major' 10268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10269 shlibpath_var=LD_LIBRARY_PATH 10270 shlibpath_overrides_runpath=no 10271 10272 # Some binutils ld are patched to set DT_RUNPATH 10273 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10274 $as_echo_n "(cached) " >&6 10275else 10276 lt_cv_shlibpath_overrides_runpath=no 10277 save_LDFLAGS=$LDFLAGS 10278 save_libdir=$libdir 10279 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10280 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10282/* end confdefs.h. */ 10283 10284int 10285main () 10286{ 10287 10288 ; 10289 return 0; 10290} 10291_ACEOF 10292if ac_fn_c_try_link "$LINENO"; then : 10293 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10294 lt_cv_shlibpath_overrides_runpath=yes 10295fi 10296fi 10297rm -f core conftest.err conftest.$ac_objext \ 10298 conftest$ac_exeext conftest.$ac_ext 10299 LDFLAGS=$save_LDFLAGS 10300 libdir=$save_libdir 10301 10302fi 10303 10304 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10305 10306 # This implies no fast_install, which is unacceptable. 10307 # Some rework will be needed to allow for fast_install 10308 # before this can be enabled. 10309 hardcode_into_libs=yes 10310 10311 # Append ld.so.conf contents to the search path 10312 if test -f /etc/ld.so.conf; then 10313 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' ' '` 10314 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10315 fi 10316 10317 # We used to test for /lib/ld.so.1 and disable shared libraries on 10318 # powerpc, because MkLinux only supported shared libraries with the 10319 # GNU dynamic linker. Since this was broken with cross compilers, 10320 # most powerpc-linux boxes support dynamic linking these days and 10321 # people can always --disable-shared, the test was removed, and we 10322 # assume the GNU/Linux dynamic linker is in use. 10323 dynamic_linker='GNU/Linux ld.so' 10324 ;; 10325 10326netbsd*) 10327 version_type=sunos 10328 need_lib_prefix=no 10329 need_version=no 10330 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10333 dynamic_linker='NetBSD (a.out) ld.so' 10334 else 10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10336 soname_spec='${libname}${release}${shared_ext}$major' 10337 dynamic_linker='NetBSD ld.elf_so' 10338 fi 10339 shlibpath_var=LD_LIBRARY_PATH 10340 shlibpath_overrides_runpath=yes 10341 hardcode_into_libs=yes 10342 ;; 10343 10344newsos6) 10345 version_type=linux # correct to gnu/linux during the next big refactor 10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10347 shlibpath_var=LD_LIBRARY_PATH 10348 shlibpath_overrides_runpath=yes 10349 ;; 10350 10351*nto* | *qnx*) 10352 version_type=qnx 10353 need_lib_prefix=no 10354 need_version=no 10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10356 soname_spec='${libname}${release}${shared_ext}$major' 10357 shlibpath_var=LD_LIBRARY_PATH 10358 shlibpath_overrides_runpath=no 10359 hardcode_into_libs=yes 10360 dynamic_linker='ldqnx.so' 10361 ;; 10362 10363openbsd*) 10364 version_type=sunos 10365 sys_lib_dlsearch_path_spec="/usr/lib" 10366 need_lib_prefix=no 10367 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10368 case $host_os in 10369 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10370 *) need_version=no ;; 10371 esac 10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10374 shlibpath_var=LD_LIBRARY_PATH 10375 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10376 case $host_os in 10377 openbsd2.[89] | openbsd2.[89].*) 10378 shlibpath_overrides_runpath=no 10379 ;; 10380 *) 10381 shlibpath_overrides_runpath=yes 10382 ;; 10383 esac 10384 else 10385 shlibpath_overrides_runpath=yes 10386 fi 10387 ;; 10388 10389os2*) 10390 libname_spec='$name' 10391 shrext_cmds=".dll" 10392 need_lib_prefix=no 10393 library_names_spec='$libname${shared_ext} $libname.a' 10394 dynamic_linker='OS/2 ld.exe' 10395 shlibpath_var=LIBPATH 10396 ;; 10397 10398osf3* | osf4* | osf5*) 10399 version_type=osf 10400 need_lib_prefix=no 10401 need_version=no 10402 soname_spec='${libname}${release}${shared_ext}$major' 10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10404 shlibpath_var=LD_LIBRARY_PATH 10405 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10406 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10407 ;; 10408 10409rdos*) 10410 dynamic_linker=no 10411 ;; 10412 10413solaris*) 10414 version_type=linux # correct to gnu/linux during the next big refactor 10415 need_lib_prefix=no 10416 need_version=no 10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10418 soname_spec='${libname}${release}${shared_ext}$major' 10419 shlibpath_var=LD_LIBRARY_PATH 10420 shlibpath_overrides_runpath=yes 10421 hardcode_into_libs=yes 10422 # ldd complains unless libraries are executable 10423 postinstall_cmds='chmod +x $lib' 10424 ;; 10425 10426sunos4*) 10427 version_type=sunos 10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10429 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10430 shlibpath_var=LD_LIBRARY_PATH 10431 shlibpath_overrides_runpath=yes 10432 if test "$with_gnu_ld" = yes; then 10433 need_lib_prefix=no 10434 fi 10435 need_version=yes 10436 ;; 10437 10438sysv4 | sysv4.3*) 10439 version_type=linux # correct to gnu/linux during the next big refactor 10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10441 soname_spec='${libname}${release}${shared_ext}$major' 10442 shlibpath_var=LD_LIBRARY_PATH 10443 case $host_vendor in 10444 sni) 10445 shlibpath_overrides_runpath=no 10446 need_lib_prefix=no 10447 runpath_var=LD_RUN_PATH 10448 ;; 10449 siemens) 10450 need_lib_prefix=no 10451 ;; 10452 motorola) 10453 need_lib_prefix=no 10454 need_version=no 10455 shlibpath_overrides_runpath=no 10456 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10457 ;; 10458 esac 10459 ;; 10460 10461sysv4*MP*) 10462 if test -d /usr/nec ;then 10463 version_type=linux # correct to gnu/linux during the next big refactor 10464 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10465 soname_spec='$libname${shared_ext}.$major' 10466 shlibpath_var=LD_LIBRARY_PATH 10467 fi 10468 ;; 10469 10470sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10471 version_type=freebsd-elf 10472 need_lib_prefix=no 10473 need_version=no 10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10475 soname_spec='${libname}${release}${shared_ext}$major' 10476 shlibpath_var=LD_LIBRARY_PATH 10477 shlibpath_overrides_runpath=yes 10478 hardcode_into_libs=yes 10479 if test "$with_gnu_ld" = yes; then 10480 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10481 else 10482 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10483 case $host_os in 10484 sco3.2v5*) 10485 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10486 ;; 10487 esac 10488 fi 10489 sys_lib_dlsearch_path_spec='/usr/lib' 10490 ;; 10491 10492tpf*) 10493 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10494 version_type=linux # correct to gnu/linux during the next big refactor 10495 need_lib_prefix=no 10496 need_version=no 10497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10498 shlibpath_var=LD_LIBRARY_PATH 10499 shlibpath_overrides_runpath=no 10500 hardcode_into_libs=yes 10501 ;; 10502 10503uts4*) 10504 version_type=linux # correct to gnu/linux during the next big refactor 10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10506 soname_spec='${libname}${release}${shared_ext}$major' 10507 shlibpath_var=LD_LIBRARY_PATH 10508 ;; 10509 10510*) 10511 dynamic_linker=no 10512 ;; 10513esac 10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10515$as_echo "$dynamic_linker" >&6; } 10516test "$dynamic_linker" = no && can_build_shared=no 10517 10518variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10519if test "$GCC" = yes; then 10520 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10521fi 10522 10523if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10524 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10525fi 10526if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10527 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10528fi 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10622$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10623hardcode_action= 10624if test -n "$hardcode_libdir_flag_spec" || 10625 test -n "$runpath_var" || 10626 test "X$hardcode_automatic" = "Xyes" ; then 10627 10628 # We can hardcode non-existent directories. 10629 if test "$hardcode_direct" != no && 10630 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10631 # have to relink, otherwise we might link with an installed library 10632 # when we should be linking with a yet-to-be-installed one 10633 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10634 test "$hardcode_minus_L" != no; then 10635 # Linking always hardcodes the temporary library directory. 10636 hardcode_action=relink 10637 else 10638 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10639 hardcode_action=immediate 10640 fi 10641else 10642 # We cannot hardcode anything, or else we can only hardcode existing 10643 # directories. 10644 hardcode_action=unsupported 10645fi 10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10647$as_echo "$hardcode_action" >&6; } 10648 10649if test "$hardcode_action" = relink || 10650 test "$inherit_rpath" = yes; then 10651 # Fast installation is not supported 10652 enable_fast_install=no 10653elif test "$shlibpath_overrides_runpath" = yes || 10654 test "$enable_shared" = no; then 10655 # Fast installation is not necessary 10656 enable_fast_install=needless 10657fi 10658 10659 10660 10661 10662 10663 10664 if test "x$enable_dlopen" != xyes; then 10665 enable_dlopen=unknown 10666 enable_dlopen_self=unknown 10667 enable_dlopen_self_static=unknown 10668else 10669 lt_cv_dlopen=no 10670 lt_cv_dlopen_libs= 10671 10672 case $host_os in 10673 beos*) 10674 lt_cv_dlopen="load_add_on" 10675 lt_cv_dlopen_libs= 10676 lt_cv_dlopen_self=yes 10677 ;; 10678 10679 mingw* | pw32* | cegcc*) 10680 lt_cv_dlopen="LoadLibrary" 10681 lt_cv_dlopen_libs= 10682 ;; 10683 10684 cygwin*) 10685 lt_cv_dlopen="dlopen" 10686 lt_cv_dlopen_libs= 10687 ;; 10688 10689 darwin*) 10690 # if libdl is installed we need to link against it 10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10692$as_echo_n "checking for dlopen in -ldl... " >&6; } 10693if ${ac_cv_lib_dl_dlopen+:} false; then : 10694 $as_echo_n "(cached) " >&6 10695else 10696 ac_check_lib_save_LIBS=$LIBS 10697LIBS="-ldl $LIBS" 10698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10699/* end confdefs.h. */ 10700 10701/* Override any GCC internal prototype to avoid an error. 10702 Use char because int might match the return type of a GCC 10703 builtin and then its argument prototype would still apply. */ 10704#ifdef __cplusplus 10705extern "C" 10706#endif 10707char dlopen (); 10708int 10709main () 10710{ 10711return dlopen (); 10712 ; 10713 return 0; 10714} 10715_ACEOF 10716if ac_fn_c_try_link "$LINENO"; then : 10717 ac_cv_lib_dl_dlopen=yes 10718else 10719 ac_cv_lib_dl_dlopen=no 10720fi 10721rm -f core conftest.err conftest.$ac_objext \ 10722 conftest$ac_exeext conftest.$ac_ext 10723LIBS=$ac_check_lib_save_LIBS 10724fi 10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10726$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10727if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10729else 10730 10731 lt_cv_dlopen="dyld" 10732 lt_cv_dlopen_libs= 10733 lt_cv_dlopen_self=yes 10734 10735fi 10736 10737 ;; 10738 10739 *) 10740 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10741if test "x$ac_cv_func_shl_load" = xyes; then : 10742 lt_cv_dlopen="shl_load" 10743else 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10745$as_echo_n "checking for shl_load in -ldld... " >&6; } 10746if ${ac_cv_lib_dld_shl_load+:} false; then : 10747 $as_echo_n "(cached) " >&6 10748else 10749 ac_check_lib_save_LIBS=$LIBS 10750LIBS="-ldld $LIBS" 10751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10752/* end confdefs.h. */ 10753 10754/* Override any GCC internal prototype to avoid an error. 10755 Use char because int might match the return type of a GCC 10756 builtin and then its argument prototype would still apply. */ 10757#ifdef __cplusplus 10758extern "C" 10759#endif 10760char shl_load (); 10761int 10762main () 10763{ 10764return shl_load (); 10765 ; 10766 return 0; 10767} 10768_ACEOF 10769if ac_fn_c_try_link "$LINENO"; then : 10770 ac_cv_lib_dld_shl_load=yes 10771else 10772 ac_cv_lib_dld_shl_load=no 10773fi 10774rm -f core conftest.err conftest.$ac_objext \ 10775 conftest$ac_exeext conftest.$ac_ext 10776LIBS=$ac_check_lib_save_LIBS 10777fi 10778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10779$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10780if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10781 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10782else 10783 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10784if test "x$ac_cv_func_dlopen" = xyes; then : 10785 lt_cv_dlopen="dlopen" 10786else 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10788$as_echo_n "checking for dlopen in -ldl... " >&6; } 10789if ${ac_cv_lib_dl_dlopen+:} false; then : 10790 $as_echo_n "(cached) " >&6 10791else 10792 ac_check_lib_save_LIBS=$LIBS 10793LIBS="-ldl $LIBS" 10794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10795/* end confdefs.h. */ 10796 10797/* Override any GCC internal prototype to avoid an error. 10798 Use char because int might match the return type of a GCC 10799 builtin and then its argument prototype would still apply. */ 10800#ifdef __cplusplus 10801extern "C" 10802#endif 10803char dlopen (); 10804int 10805main () 10806{ 10807return dlopen (); 10808 ; 10809 return 0; 10810} 10811_ACEOF 10812if ac_fn_c_try_link "$LINENO"; then : 10813 ac_cv_lib_dl_dlopen=yes 10814else 10815 ac_cv_lib_dl_dlopen=no 10816fi 10817rm -f core conftest.err conftest.$ac_objext \ 10818 conftest$ac_exeext conftest.$ac_ext 10819LIBS=$ac_check_lib_save_LIBS 10820fi 10821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10822$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10823if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10825else 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10827$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10828if ${ac_cv_lib_svld_dlopen+:} false; then : 10829 $as_echo_n "(cached) " >&6 10830else 10831 ac_check_lib_save_LIBS=$LIBS 10832LIBS="-lsvld $LIBS" 10833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10834/* end confdefs.h. */ 10835 10836/* Override any GCC internal prototype to avoid an error. 10837 Use char because int might match the return type of a GCC 10838 builtin and then its argument prototype would still apply. */ 10839#ifdef __cplusplus 10840extern "C" 10841#endif 10842char dlopen (); 10843int 10844main () 10845{ 10846return dlopen (); 10847 ; 10848 return 0; 10849} 10850_ACEOF 10851if ac_fn_c_try_link "$LINENO"; then : 10852 ac_cv_lib_svld_dlopen=yes 10853else 10854 ac_cv_lib_svld_dlopen=no 10855fi 10856rm -f core conftest.err conftest.$ac_objext \ 10857 conftest$ac_exeext conftest.$ac_ext 10858LIBS=$ac_check_lib_save_LIBS 10859fi 10860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10861$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10862if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10864else 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10866$as_echo_n "checking for dld_link in -ldld... " >&6; } 10867if ${ac_cv_lib_dld_dld_link+:} false; then : 10868 $as_echo_n "(cached) " >&6 10869else 10870 ac_check_lib_save_LIBS=$LIBS 10871LIBS="-ldld $LIBS" 10872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10873/* end confdefs.h. */ 10874 10875/* Override any GCC internal prototype to avoid an error. 10876 Use char because int might match the return type of a GCC 10877 builtin and then its argument prototype would still apply. */ 10878#ifdef __cplusplus 10879extern "C" 10880#endif 10881char dld_link (); 10882int 10883main () 10884{ 10885return dld_link (); 10886 ; 10887 return 0; 10888} 10889_ACEOF 10890if ac_fn_c_try_link "$LINENO"; then : 10891 ac_cv_lib_dld_dld_link=yes 10892else 10893 ac_cv_lib_dld_dld_link=no 10894fi 10895rm -f core conftest.err conftest.$ac_objext \ 10896 conftest$ac_exeext conftest.$ac_ext 10897LIBS=$ac_check_lib_save_LIBS 10898fi 10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10900$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10901if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10902 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10903fi 10904 10905 10906fi 10907 10908 10909fi 10910 10911 10912fi 10913 10914 10915fi 10916 10917 10918fi 10919 10920 ;; 10921 esac 10922 10923 if test "x$lt_cv_dlopen" != xno; then 10924 enable_dlopen=yes 10925 else 10926 enable_dlopen=no 10927 fi 10928 10929 case $lt_cv_dlopen in 10930 dlopen) 10931 save_CPPFLAGS="$CPPFLAGS" 10932 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10933 10934 save_LDFLAGS="$LDFLAGS" 10935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10936 10937 save_LIBS="$LIBS" 10938 LIBS="$lt_cv_dlopen_libs $LIBS" 10939 10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10941$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10942if ${lt_cv_dlopen_self+:} false; then : 10943 $as_echo_n "(cached) " >&6 10944else 10945 if test "$cross_compiling" = yes; then : 10946 lt_cv_dlopen_self=cross 10947else 10948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10949 lt_status=$lt_dlunknown 10950 cat > conftest.$ac_ext <<_LT_EOF 10951#line $LINENO "configure" 10952#include "confdefs.h" 10953 10954#if HAVE_DLFCN_H 10955#include <dlfcn.h> 10956#endif 10957 10958#include <stdio.h> 10959 10960#ifdef RTLD_GLOBAL 10961# define LT_DLGLOBAL RTLD_GLOBAL 10962#else 10963# ifdef DL_GLOBAL 10964# define LT_DLGLOBAL DL_GLOBAL 10965# else 10966# define LT_DLGLOBAL 0 10967# endif 10968#endif 10969 10970/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10971 find out it does not work in some platform. */ 10972#ifndef LT_DLLAZY_OR_NOW 10973# ifdef RTLD_LAZY 10974# define LT_DLLAZY_OR_NOW RTLD_LAZY 10975# else 10976# ifdef DL_LAZY 10977# define LT_DLLAZY_OR_NOW DL_LAZY 10978# else 10979# ifdef RTLD_NOW 10980# define LT_DLLAZY_OR_NOW RTLD_NOW 10981# else 10982# ifdef DL_NOW 10983# define LT_DLLAZY_OR_NOW DL_NOW 10984# else 10985# define LT_DLLAZY_OR_NOW 0 10986# endif 10987# endif 10988# endif 10989# endif 10990#endif 10991 10992/* When -fvisbility=hidden is used, assume the code has been annotated 10993 correspondingly for the symbols needed. */ 10994#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10995int fnord () __attribute__((visibility("default"))); 10996#endif 10997 10998int fnord () { return 42; } 10999int main () 11000{ 11001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11002 int status = $lt_dlunknown; 11003 11004 if (self) 11005 { 11006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11007 else 11008 { 11009 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11010 else puts (dlerror ()); 11011 } 11012 /* dlclose (self); */ 11013 } 11014 else 11015 puts (dlerror ()); 11016 11017 return status; 11018} 11019_LT_EOF 11020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11021 (eval $ac_link) 2>&5 11022 ac_status=$? 11023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11024 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11025 (./conftest; exit; ) >&5 2>/dev/null 11026 lt_status=$? 11027 case x$lt_status in 11028 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11029 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11030 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11031 esac 11032 else : 11033 # compilation failed 11034 lt_cv_dlopen_self=no 11035 fi 11036fi 11037rm -fr conftest* 11038 11039 11040fi 11041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11042$as_echo "$lt_cv_dlopen_self" >&6; } 11043 11044 if test "x$lt_cv_dlopen_self" = xyes; then 11045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11047$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11048if ${lt_cv_dlopen_self_static+:} false; then : 11049 $as_echo_n "(cached) " >&6 11050else 11051 if test "$cross_compiling" = yes; then : 11052 lt_cv_dlopen_self_static=cross 11053else 11054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11055 lt_status=$lt_dlunknown 11056 cat > conftest.$ac_ext <<_LT_EOF 11057#line $LINENO "configure" 11058#include "confdefs.h" 11059 11060#if HAVE_DLFCN_H 11061#include <dlfcn.h> 11062#endif 11063 11064#include <stdio.h> 11065 11066#ifdef RTLD_GLOBAL 11067# define LT_DLGLOBAL RTLD_GLOBAL 11068#else 11069# ifdef DL_GLOBAL 11070# define LT_DLGLOBAL DL_GLOBAL 11071# else 11072# define LT_DLGLOBAL 0 11073# endif 11074#endif 11075 11076/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11077 find out it does not work in some platform. */ 11078#ifndef LT_DLLAZY_OR_NOW 11079# ifdef RTLD_LAZY 11080# define LT_DLLAZY_OR_NOW RTLD_LAZY 11081# else 11082# ifdef DL_LAZY 11083# define LT_DLLAZY_OR_NOW DL_LAZY 11084# else 11085# ifdef RTLD_NOW 11086# define LT_DLLAZY_OR_NOW RTLD_NOW 11087# else 11088# ifdef DL_NOW 11089# define LT_DLLAZY_OR_NOW DL_NOW 11090# else 11091# define LT_DLLAZY_OR_NOW 0 11092# endif 11093# endif 11094# endif 11095# endif 11096#endif 11097 11098/* When -fvisbility=hidden is used, assume the code has been annotated 11099 correspondingly for the symbols needed. */ 11100#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11101int fnord () __attribute__((visibility("default"))); 11102#endif 11103 11104int fnord () { return 42; } 11105int main () 11106{ 11107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11108 int status = $lt_dlunknown; 11109 11110 if (self) 11111 { 11112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11113 else 11114 { 11115 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11116 else puts (dlerror ()); 11117 } 11118 /* dlclose (self); */ 11119 } 11120 else 11121 puts (dlerror ()); 11122 11123 return status; 11124} 11125_LT_EOF 11126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11127 (eval $ac_link) 2>&5 11128 ac_status=$? 11129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11130 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11131 (./conftest; exit; ) >&5 2>/dev/null 11132 lt_status=$? 11133 case x$lt_status in 11134 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11135 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11136 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11137 esac 11138 else : 11139 # compilation failed 11140 lt_cv_dlopen_self_static=no 11141 fi 11142fi 11143rm -fr conftest* 11144 11145 11146fi 11147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11148$as_echo "$lt_cv_dlopen_self_static" >&6; } 11149 fi 11150 11151 CPPFLAGS="$save_CPPFLAGS" 11152 LDFLAGS="$save_LDFLAGS" 11153 LIBS="$save_LIBS" 11154 ;; 11155 esac 11156 11157 case $lt_cv_dlopen_self in 11158 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11159 *) enable_dlopen_self=unknown ;; 11160 esac 11161 11162 case $lt_cv_dlopen_self_static in 11163 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11164 *) enable_dlopen_self_static=unknown ;; 11165 esac 11166fi 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184striplib= 11185old_striplib= 11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11187$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11188if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11189 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11190 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11192$as_echo "yes" >&6; } 11193else 11194# FIXME - insert some real tests, host_os isn't really good enough 11195 case $host_os in 11196 darwin*) 11197 if test -n "$STRIP" ; then 11198 striplib="$STRIP -x" 11199 old_striplib="$STRIP -S" 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11201$as_echo "yes" >&6; } 11202 else 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11204$as_echo "no" >&6; } 11205 fi 11206 ;; 11207 *) 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11209$as_echo "no" >&6; } 11210 ;; 11211 esac 11212fi 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 # Report which library types will actually be built 11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11227$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11229$as_echo "$can_build_shared" >&6; } 11230 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11232$as_echo_n "checking whether to build shared libraries... " >&6; } 11233 test "$can_build_shared" = "no" && enable_shared=no 11234 11235 # On AIX, shared libraries and static libraries use the same namespace, and 11236 # are all built from PIC. 11237 case $host_os in 11238 aix3*) 11239 test "$enable_shared" = yes && enable_static=no 11240 if test -n "$RANLIB"; then 11241 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11242 postinstall_cmds='$RANLIB $lib' 11243 fi 11244 ;; 11245 11246 aix[4-9]*) 11247 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11248 test "$enable_shared" = yes && enable_static=no 11249 fi 11250 ;; 11251 esac 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11253$as_echo "$enable_shared" >&6; } 11254 11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11256$as_echo_n "checking whether to build static libraries... " >&6; } 11257 # Make sure either enable_shared or enable_static is yes. 11258 test "$enable_shared" = yes || enable_static=yes 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11260$as_echo "$enable_static" >&6; } 11261 11262 11263 11264 11265fi 11266ac_ext=c 11267ac_cpp='$CPP $CPPFLAGS' 11268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11270ac_compiler_gnu=$ac_cv_c_compiler_gnu 11271 11272CC="$lt_save_CC" 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 ac_config_commands="$ac_config_commands libtool" 11289 11290 11291 11292 11293# Only expand once: 11294 11295 11296 11297# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11310$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11311if ${ac_cv_prog_cc_c99+:} false; then : 11312 $as_echo_n "(cached) " >&6 11313else 11314 ac_cv_prog_cc_c99=no 11315ac_save_CC=$CC 11316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11317/* end confdefs.h. */ 11318#include <stdarg.h> 11319#include <stdbool.h> 11320#include <stdlib.h> 11321#include <wchar.h> 11322#include <stdio.h> 11323 11324// Check varargs macros. These examples are taken from C99 6.10.3.5. 11325#define debug(...) fprintf (stderr, __VA_ARGS__) 11326#define showlist(...) puts (#__VA_ARGS__) 11327#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11328static void 11329test_varargs_macros (void) 11330{ 11331 int x = 1234; 11332 int y = 5678; 11333 debug ("Flag"); 11334 debug ("X = %d\n", x); 11335 showlist (The first, second, and third items.); 11336 report (x>y, "x is %d but y is %d", x, y); 11337} 11338 11339// Check long long types. 11340#define BIG64 18446744073709551615ull 11341#define BIG32 4294967295ul 11342#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11343#if !BIG_OK 11344 your preprocessor is broken; 11345#endif 11346#if BIG_OK 11347#else 11348 your preprocessor is broken; 11349#endif 11350static long long int bignum = -9223372036854775807LL; 11351static unsigned long long int ubignum = BIG64; 11352 11353struct incomplete_array 11354{ 11355 int datasize; 11356 double data[]; 11357}; 11358 11359struct named_init { 11360 int number; 11361 const wchar_t *name; 11362 double average; 11363}; 11364 11365typedef const char *ccp; 11366 11367static inline int 11368test_restrict (ccp restrict text) 11369{ 11370 // See if C++-style comments work. 11371 // Iterate through items via the restricted pointer. 11372 // Also check for declarations in for loops. 11373 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11374 continue; 11375 return 0; 11376} 11377 11378// Check varargs and va_copy. 11379static void 11380test_varargs (const char *format, ...) 11381{ 11382 va_list args; 11383 va_start (args, format); 11384 va_list args_copy; 11385 va_copy (args_copy, args); 11386 11387 const char *str; 11388 int number; 11389 float fnumber; 11390 11391 while (*format) 11392 { 11393 switch (*format++) 11394 { 11395 case 's': // string 11396 str = va_arg (args_copy, const char *); 11397 break; 11398 case 'd': // int 11399 number = va_arg (args_copy, int); 11400 break; 11401 case 'f': // float 11402 fnumber = va_arg (args_copy, double); 11403 break; 11404 default: 11405 break; 11406 } 11407 } 11408 va_end (args_copy); 11409 va_end (args); 11410} 11411 11412int 11413main () 11414{ 11415 11416 // Check bool. 11417 _Bool success = false; 11418 11419 // Check restrict. 11420 if (test_restrict ("String literal") == 0) 11421 success = true; 11422 char *restrict newvar = "Another string"; 11423 11424 // Check varargs. 11425 test_varargs ("s, d' f .", "string", 65, 34.234); 11426 test_varargs_macros (); 11427 11428 // Check flexible array members. 11429 struct incomplete_array *ia = 11430 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11431 ia->datasize = 10; 11432 for (int i = 0; i < ia->datasize; ++i) 11433 ia->data[i] = i * 1.234; 11434 11435 // Check named initializers. 11436 struct named_init ni = { 11437 .number = 34, 11438 .name = L"Test wide string", 11439 .average = 543.34343, 11440 }; 11441 11442 ni.number = 58; 11443 11444 int dynamic_array[ni.number]; 11445 dynamic_array[ni.number - 1] = 543; 11446 11447 // work around unused variable warnings 11448 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11449 || dynamic_array[ni.number - 1] != 543); 11450 11451 ; 11452 return 0; 11453} 11454_ACEOF 11455for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11456do 11457 CC="$ac_save_CC $ac_arg" 11458 if ac_fn_c_try_compile "$LINENO"; then : 11459 ac_cv_prog_cc_c99=$ac_arg 11460fi 11461rm -f core conftest.err conftest.$ac_objext 11462 test "x$ac_cv_prog_cc_c99" != "xno" && break 11463done 11464rm -f conftest.$ac_ext 11465CC=$ac_save_CC 11466 11467fi 11468# AC_CACHE_VAL 11469case "x$ac_cv_prog_cc_c99" in 11470 x) 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11472$as_echo "none needed" >&6; } ;; 11473 xno) 11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11475$as_echo "unsupported" >&6; } ;; 11476 *) 11477 CC="$CC $ac_cv_prog_cc_c99" 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11479$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11480esac 11481if test "x$ac_cv_prog_cc_c99" != xno; then : 11482 11483fi 11484 11485 11486 11487 11488 11489 11490ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11491if test "x$ac_cv_have_decl___clang__" = xyes; then : 11492 CLANGCC="yes" 11493else 11494 CLANGCC="no" 11495fi 11496 11497ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11498if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11499 INTELCC="yes" 11500else 11501 INTELCC="no" 11502fi 11503 11504ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11505if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11506 SUNCC="yes" 11507else 11508 SUNCC="no" 11509fi 11510 11511 11512 11513 11514if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11515 if test -n "$ac_tool_prefix"; then 11516 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11517set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11519$as_echo_n "checking for $ac_word... " >&6; } 11520if ${ac_cv_path_PKG_CONFIG+:} false; then : 11521 $as_echo_n "(cached) " >&6 11522else 11523 case $PKG_CONFIG in 11524 [\\/]* | ?:[\\/]*) 11525 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11526 ;; 11527 *) 11528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11529for as_dir in $PATH 11530do 11531 IFS=$as_save_IFS 11532 test -z "$as_dir" && as_dir=. 11533 for ac_exec_ext in '' $ac_executable_extensions; do 11534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11535 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11537 break 2 11538 fi 11539done 11540 done 11541IFS=$as_save_IFS 11542 11543 ;; 11544esac 11545fi 11546PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11547if test -n "$PKG_CONFIG"; then 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11549$as_echo "$PKG_CONFIG" >&6; } 11550else 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11552$as_echo "no" >&6; } 11553fi 11554 11555 11556fi 11557if test -z "$ac_cv_path_PKG_CONFIG"; then 11558 ac_pt_PKG_CONFIG=$PKG_CONFIG 11559 # Extract the first word of "pkg-config", so it can be a program name with args. 11560set dummy pkg-config; ac_word=$2 11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11562$as_echo_n "checking for $ac_word... " >&6; } 11563if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11564 $as_echo_n "(cached) " >&6 11565else 11566 case $ac_pt_PKG_CONFIG in 11567 [\\/]* | ?:[\\/]*) 11568 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11569 ;; 11570 *) 11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11572for as_dir in $PATH 11573do 11574 IFS=$as_save_IFS 11575 test -z "$as_dir" && as_dir=. 11576 for ac_exec_ext in '' $ac_executable_extensions; do 11577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11578 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11580 break 2 11581 fi 11582done 11583 done 11584IFS=$as_save_IFS 11585 11586 ;; 11587esac 11588fi 11589ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11590if test -n "$ac_pt_PKG_CONFIG"; then 11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11592$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11593else 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11595$as_echo "no" >&6; } 11596fi 11597 11598 if test "x$ac_pt_PKG_CONFIG" = x; then 11599 PKG_CONFIG="" 11600 else 11601 case $cross_compiling:$ac_tool_warned in 11602yes:) 11603{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11604$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11605ac_tool_warned=yes ;; 11606esac 11607 PKG_CONFIG=$ac_pt_PKG_CONFIG 11608 fi 11609else 11610 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11611fi 11612 11613fi 11614if test -n "$PKG_CONFIG"; then 11615 _pkg_min_version=0.9.0 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11617$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11618 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11620$as_echo "yes" >&6; } 11621 else 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11623$as_echo "no" >&6; } 11624 PKG_CONFIG="" 11625 fi 11626 11627fi 11628 11629 11630 11631 11632 11633# Check whether --enable-selective-werror was given. 11634if test "${enable_selective_werror+set}" = set; then : 11635 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11636else 11637 SELECTIVE_WERROR=yes 11638fi 11639 11640 11641 11642 11643 11644# -v is too short to test reliably with XORG_TESTSET_CFLAG 11645if test "x$SUNCC" = "xyes"; then 11646 BASE_CFLAGS="-v" 11647else 11648 BASE_CFLAGS="" 11649fi 11650 11651# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665xorg_testset_save_CFLAGS="$CFLAGS" 11666 11667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11670$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11671if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11672 $as_echo_n "(cached) " >&6 11673else 11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11675/* end confdefs.h. */ 11676int i; 11677_ACEOF 11678if ac_fn_c_try_compile "$LINENO"; then : 11679 xorg_cv_cc_flag_unknown_warning_option=yes 11680else 11681 xorg_cv_cc_flag_unknown_warning_option=no 11682fi 11683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11684fi 11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11686$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11688 CFLAGS="$xorg_testset_save_CFLAGS" 11689fi 11690 11691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11694 fi 11695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11697$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11698if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11699 $as_echo_n "(cached) " >&6 11700else 11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11702/* end confdefs.h. */ 11703int i; 11704_ACEOF 11705if ac_fn_c_try_compile "$LINENO"; then : 11706 xorg_cv_cc_flag_unused_command_line_argument=yes 11707else 11708 xorg_cv_cc_flag_unused_command_line_argument=no 11709fi 11710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11711fi 11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11713$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11715 CFLAGS="$xorg_testset_save_CFLAGS" 11716fi 11717 11718found="no" 11719 11720 if test $found = "no" ; then 11721 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11723 fi 11724 11725 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11727 fi 11728 11729 CFLAGS="$CFLAGS -Wall" 11730 11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11732$as_echo_n "checking if $CC supports -Wall... " >&6; } 11733 cacheid=xorg_cv_cc_flag__Wall 11734 if eval \${$cacheid+:} false; then : 11735 $as_echo_n "(cached) " >&6 11736else 11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11738/* end confdefs.h. */ 11739int i; 11740int 11741main () 11742{ 11743 11744 ; 11745 return 0; 11746} 11747_ACEOF 11748if ac_fn_c_try_link "$LINENO"; then : 11749 eval $cacheid=yes 11750else 11751 eval $cacheid=no 11752fi 11753rm -f core conftest.err conftest.$ac_objext \ 11754 conftest$ac_exeext conftest.$ac_ext 11755fi 11756 11757 11758 CFLAGS="$xorg_testset_save_CFLAGS" 11759 11760 eval supported=\$$cacheid 11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11762$as_echo "$supported" >&6; } 11763 if test "$supported" = "yes" ; then 11764 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11765 found="yes" 11766 fi 11767 fi 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783xorg_testset_save_CFLAGS="$CFLAGS" 11784 11785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11788$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11789if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11790 $as_echo_n "(cached) " >&6 11791else 11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11793/* end confdefs.h. */ 11794int i; 11795_ACEOF 11796if ac_fn_c_try_compile "$LINENO"; then : 11797 xorg_cv_cc_flag_unknown_warning_option=yes 11798else 11799 xorg_cv_cc_flag_unknown_warning_option=no 11800fi 11801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11802fi 11803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11804$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11806 CFLAGS="$xorg_testset_save_CFLAGS" 11807fi 11808 11809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11812 fi 11813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11815$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11816if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11817 $as_echo_n "(cached) " >&6 11818else 11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11820/* end confdefs.h. */ 11821int i; 11822_ACEOF 11823if ac_fn_c_try_compile "$LINENO"; then : 11824 xorg_cv_cc_flag_unused_command_line_argument=yes 11825else 11826 xorg_cv_cc_flag_unused_command_line_argument=no 11827fi 11828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11829fi 11830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11831$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11833 CFLAGS="$xorg_testset_save_CFLAGS" 11834fi 11835 11836found="no" 11837 11838 if test $found = "no" ; then 11839 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11841 fi 11842 11843 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11845 fi 11846 11847 CFLAGS="$CFLAGS -Wpointer-arith" 11848 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 11850$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 11851 cacheid=xorg_cv_cc_flag__Wpointer_arith 11852 if eval \${$cacheid+:} false; then : 11853 $as_echo_n "(cached) " >&6 11854else 11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11856/* end confdefs.h. */ 11857int i; 11858int 11859main () 11860{ 11861 11862 ; 11863 return 0; 11864} 11865_ACEOF 11866if ac_fn_c_try_link "$LINENO"; then : 11867 eval $cacheid=yes 11868else 11869 eval $cacheid=no 11870fi 11871rm -f core conftest.err conftest.$ac_objext \ 11872 conftest$ac_exeext conftest.$ac_ext 11873fi 11874 11875 11876 CFLAGS="$xorg_testset_save_CFLAGS" 11877 11878 eval supported=\$$cacheid 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11880$as_echo "$supported" >&6; } 11881 if test "$supported" = "yes" ; then 11882 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 11883 found="yes" 11884 fi 11885 fi 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901xorg_testset_save_CFLAGS="$CFLAGS" 11902 11903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11906$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11907if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11908 $as_echo_n "(cached) " >&6 11909else 11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11911/* end confdefs.h. */ 11912int i; 11913_ACEOF 11914if ac_fn_c_try_compile "$LINENO"; then : 11915 xorg_cv_cc_flag_unknown_warning_option=yes 11916else 11917 xorg_cv_cc_flag_unknown_warning_option=no 11918fi 11919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11920fi 11921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11922$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11924 CFLAGS="$xorg_testset_save_CFLAGS" 11925fi 11926 11927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11930 fi 11931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11933$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11934if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11935 $as_echo_n "(cached) " >&6 11936else 11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11938/* end confdefs.h. */ 11939int i; 11940_ACEOF 11941if ac_fn_c_try_compile "$LINENO"; then : 11942 xorg_cv_cc_flag_unused_command_line_argument=yes 11943else 11944 xorg_cv_cc_flag_unused_command_line_argument=no 11945fi 11946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11947fi 11948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11949$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11951 CFLAGS="$xorg_testset_save_CFLAGS" 11952fi 11953 11954found="no" 11955 11956 if test $found = "no" ; then 11957 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11959 fi 11960 11961 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11963 fi 11964 11965 CFLAGS="$CFLAGS -Wmissing-declarations" 11966 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 11968$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 11969 cacheid=xorg_cv_cc_flag__Wmissing_declarations 11970 if eval \${$cacheid+:} false; then : 11971 $as_echo_n "(cached) " >&6 11972else 11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11974/* end confdefs.h. */ 11975int i; 11976int 11977main () 11978{ 11979 11980 ; 11981 return 0; 11982} 11983_ACEOF 11984if ac_fn_c_try_link "$LINENO"; then : 11985 eval $cacheid=yes 11986else 11987 eval $cacheid=no 11988fi 11989rm -f core conftest.err conftest.$ac_objext \ 11990 conftest$ac_exeext conftest.$ac_ext 11991fi 11992 11993 11994 CFLAGS="$xorg_testset_save_CFLAGS" 11995 11996 eval supported=\$$cacheid 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11998$as_echo "$supported" >&6; } 11999 if test "$supported" = "yes" ; then 12000 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12001 found="yes" 12002 fi 12003 fi 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019xorg_testset_save_CFLAGS="$CFLAGS" 12020 12021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12024$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12025if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12026 $as_echo_n "(cached) " >&6 12027else 12028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12029/* end confdefs.h. */ 12030int i; 12031_ACEOF 12032if ac_fn_c_try_compile "$LINENO"; then : 12033 xorg_cv_cc_flag_unknown_warning_option=yes 12034else 12035 xorg_cv_cc_flag_unknown_warning_option=no 12036fi 12037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12038fi 12039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12040$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12042 CFLAGS="$xorg_testset_save_CFLAGS" 12043fi 12044 12045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12048 fi 12049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12051$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12052if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12053 $as_echo_n "(cached) " >&6 12054else 12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12056/* end confdefs.h. */ 12057int i; 12058_ACEOF 12059if ac_fn_c_try_compile "$LINENO"; then : 12060 xorg_cv_cc_flag_unused_command_line_argument=yes 12061else 12062 xorg_cv_cc_flag_unused_command_line_argument=no 12063fi 12064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12065fi 12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12067$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12069 CFLAGS="$xorg_testset_save_CFLAGS" 12070fi 12071 12072found="no" 12073 12074 if test $found = "no" ; then 12075 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12077 fi 12078 12079 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12081 fi 12082 12083 CFLAGS="$CFLAGS -Wformat=2" 12084 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12086$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12087 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 12088 if eval \${$cacheid+:} false; then : 12089 $as_echo_n "(cached) " >&6 12090else 12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12092/* end confdefs.h. */ 12093int i; 12094int 12095main () 12096{ 12097 12098 ; 12099 return 0; 12100} 12101_ACEOF 12102if ac_fn_c_try_link "$LINENO"; then : 12103 eval $cacheid=yes 12104else 12105 eval $cacheid=no 12106fi 12107rm -f core conftest.err conftest.$ac_objext \ 12108 conftest$ac_exeext conftest.$ac_ext 12109fi 12110 12111 12112 CFLAGS="$xorg_testset_save_CFLAGS" 12113 12114 eval supported=\$$cacheid 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12116$as_echo "$supported" >&6; } 12117 if test "$supported" = "yes" ; then 12118 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12119 found="yes" 12120 fi 12121 fi 12122 12123 if test $found = "no" ; then 12124 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12126 fi 12127 12128 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12130 fi 12131 12132 CFLAGS="$CFLAGS -Wformat" 12133 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12135$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12136 cacheid=xorg_cv_cc_flag__Wformat 12137 if eval \${$cacheid+:} false; then : 12138 $as_echo_n "(cached) " >&6 12139else 12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12141/* end confdefs.h. */ 12142int i; 12143int 12144main () 12145{ 12146 12147 ; 12148 return 0; 12149} 12150_ACEOF 12151if ac_fn_c_try_link "$LINENO"; then : 12152 eval $cacheid=yes 12153else 12154 eval $cacheid=no 12155fi 12156rm -f core conftest.err conftest.$ac_objext \ 12157 conftest$ac_exeext conftest.$ac_ext 12158fi 12159 12160 12161 CFLAGS="$xorg_testset_save_CFLAGS" 12162 12163 eval supported=\$$cacheid 12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12165$as_echo "$supported" >&6; } 12166 if test "$supported" = "yes" ; then 12167 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12168 found="yes" 12169 fi 12170 fi 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188xorg_testset_save_CFLAGS="$CFLAGS" 12189 12190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12194if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12195 $as_echo_n "(cached) " >&6 12196else 12197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12198/* end confdefs.h. */ 12199int i; 12200_ACEOF 12201if ac_fn_c_try_compile "$LINENO"; then : 12202 xorg_cv_cc_flag_unknown_warning_option=yes 12203else 12204 xorg_cv_cc_flag_unknown_warning_option=no 12205fi 12206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12207fi 12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12209$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12211 CFLAGS="$xorg_testset_save_CFLAGS" 12212fi 12213 12214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12217 fi 12218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12220$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12221if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12222 $as_echo_n "(cached) " >&6 12223else 12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12225/* end confdefs.h. */ 12226int i; 12227_ACEOF 12228if ac_fn_c_try_compile "$LINENO"; then : 12229 xorg_cv_cc_flag_unused_command_line_argument=yes 12230else 12231 xorg_cv_cc_flag_unused_command_line_argument=no 12232fi 12233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12234fi 12235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12236$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12238 CFLAGS="$xorg_testset_save_CFLAGS" 12239fi 12240 12241found="no" 12242 12243 if test $found = "no" ; then 12244 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12246 fi 12247 12248 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12250 fi 12251 12252 CFLAGS="$CFLAGS -Wstrict-prototypes" 12253 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12255$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12256 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12257 if eval \${$cacheid+:} false; then : 12258 $as_echo_n "(cached) " >&6 12259else 12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12261/* end confdefs.h. */ 12262int i; 12263int 12264main () 12265{ 12266 12267 ; 12268 return 0; 12269} 12270_ACEOF 12271if ac_fn_c_try_link "$LINENO"; then : 12272 eval $cacheid=yes 12273else 12274 eval $cacheid=no 12275fi 12276rm -f core conftest.err conftest.$ac_objext \ 12277 conftest$ac_exeext conftest.$ac_ext 12278fi 12279 12280 12281 CFLAGS="$xorg_testset_save_CFLAGS" 12282 12283 eval supported=\$$cacheid 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12285$as_echo "$supported" >&6; } 12286 if test "$supported" = "yes" ; then 12287 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12288 found="yes" 12289 fi 12290 fi 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306xorg_testset_save_CFLAGS="$CFLAGS" 12307 12308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12311$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12312if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12313 $as_echo_n "(cached) " >&6 12314else 12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12316/* end confdefs.h. */ 12317int i; 12318_ACEOF 12319if ac_fn_c_try_compile "$LINENO"; then : 12320 xorg_cv_cc_flag_unknown_warning_option=yes 12321else 12322 xorg_cv_cc_flag_unknown_warning_option=no 12323fi 12324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12325fi 12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12327$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12329 CFLAGS="$xorg_testset_save_CFLAGS" 12330fi 12331 12332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12335 fi 12336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12338$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12339if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12340 $as_echo_n "(cached) " >&6 12341else 12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12343/* end confdefs.h. */ 12344int i; 12345_ACEOF 12346if ac_fn_c_try_compile "$LINENO"; then : 12347 xorg_cv_cc_flag_unused_command_line_argument=yes 12348else 12349 xorg_cv_cc_flag_unused_command_line_argument=no 12350fi 12351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12352fi 12353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12354$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12356 CFLAGS="$xorg_testset_save_CFLAGS" 12357fi 12358 12359found="no" 12360 12361 if test $found = "no" ; then 12362 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12364 fi 12365 12366 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12368 fi 12369 12370 CFLAGS="$CFLAGS -Wmissing-prototypes" 12371 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12373$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12374 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12375 if eval \${$cacheid+:} false; then : 12376 $as_echo_n "(cached) " >&6 12377else 12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12379/* end confdefs.h. */ 12380int i; 12381int 12382main () 12383{ 12384 12385 ; 12386 return 0; 12387} 12388_ACEOF 12389if ac_fn_c_try_link "$LINENO"; then : 12390 eval $cacheid=yes 12391else 12392 eval $cacheid=no 12393fi 12394rm -f core conftest.err conftest.$ac_objext \ 12395 conftest$ac_exeext conftest.$ac_ext 12396fi 12397 12398 12399 CFLAGS="$xorg_testset_save_CFLAGS" 12400 12401 eval supported=\$$cacheid 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12403$as_echo "$supported" >&6; } 12404 if test "$supported" = "yes" ; then 12405 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12406 found="yes" 12407 fi 12408 fi 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424xorg_testset_save_CFLAGS="$CFLAGS" 12425 12426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12431 $as_echo_n "(cached) " >&6 12432else 12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12434/* end confdefs.h. */ 12435int i; 12436_ACEOF 12437if ac_fn_c_try_compile "$LINENO"; then : 12438 xorg_cv_cc_flag_unknown_warning_option=yes 12439else 12440 xorg_cv_cc_flag_unknown_warning_option=no 12441fi 12442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12443fi 12444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12447 CFLAGS="$xorg_testset_save_CFLAGS" 12448fi 12449 12450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12453 fi 12454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12458 $as_echo_n "(cached) " >&6 12459else 12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12461/* end confdefs.h. */ 12462int i; 12463_ACEOF 12464if ac_fn_c_try_compile "$LINENO"; then : 12465 xorg_cv_cc_flag_unused_command_line_argument=yes 12466else 12467 xorg_cv_cc_flag_unused_command_line_argument=no 12468fi 12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12470fi 12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12474 CFLAGS="$xorg_testset_save_CFLAGS" 12475fi 12476 12477found="no" 12478 12479 if test $found = "no" ; then 12480 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12482 fi 12483 12484 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12486 fi 12487 12488 CFLAGS="$CFLAGS -Wnested-externs" 12489 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12491$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12492 cacheid=xorg_cv_cc_flag__Wnested_externs 12493 if eval \${$cacheid+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495else 12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12497/* end confdefs.h. */ 12498int i; 12499int 12500main () 12501{ 12502 12503 ; 12504 return 0; 12505} 12506_ACEOF 12507if ac_fn_c_try_link "$LINENO"; then : 12508 eval $cacheid=yes 12509else 12510 eval $cacheid=no 12511fi 12512rm -f core conftest.err conftest.$ac_objext \ 12513 conftest$ac_exeext conftest.$ac_ext 12514fi 12515 12516 12517 CFLAGS="$xorg_testset_save_CFLAGS" 12518 12519 eval supported=\$$cacheid 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12521$as_echo "$supported" >&6; } 12522 if test "$supported" = "yes" ; then 12523 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12524 found="yes" 12525 fi 12526 fi 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542xorg_testset_save_CFLAGS="$CFLAGS" 12543 12544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12549 $as_echo_n "(cached) " >&6 12550else 12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12552/* end confdefs.h. */ 12553int i; 12554_ACEOF 12555if ac_fn_c_try_compile "$LINENO"; then : 12556 xorg_cv_cc_flag_unknown_warning_option=yes 12557else 12558 xorg_cv_cc_flag_unknown_warning_option=no 12559fi 12560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12561fi 12562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12565 CFLAGS="$xorg_testset_save_CFLAGS" 12566fi 12567 12568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12571 fi 12572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12576 $as_echo_n "(cached) " >&6 12577else 12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12579/* end confdefs.h. */ 12580int i; 12581_ACEOF 12582if ac_fn_c_try_compile "$LINENO"; then : 12583 xorg_cv_cc_flag_unused_command_line_argument=yes 12584else 12585 xorg_cv_cc_flag_unused_command_line_argument=no 12586fi 12587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12588fi 12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12592 CFLAGS="$xorg_testset_save_CFLAGS" 12593fi 12594 12595found="no" 12596 12597 if test $found = "no" ; then 12598 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12600 fi 12601 12602 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12604 fi 12605 12606 CFLAGS="$CFLAGS -Wbad-function-cast" 12607 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12609$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12610 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12611 if eval \${$cacheid+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12615/* end confdefs.h. */ 12616int i; 12617int 12618main () 12619{ 12620 12621 ; 12622 return 0; 12623} 12624_ACEOF 12625if ac_fn_c_try_link "$LINENO"; then : 12626 eval $cacheid=yes 12627else 12628 eval $cacheid=no 12629fi 12630rm -f core conftest.err conftest.$ac_objext \ 12631 conftest$ac_exeext conftest.$ac_ext 12632fi 12633 12634 12635 CFLAGS="$xorg_testset_save_CFLAGS" 12636 12637 eval supported=\$$cacheid 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12639$as_echo "$supported" >&6; } 12640 if test "$supported" = "yes" ; then 12641 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12642 found="yes" 12643 fi 12644 fi 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660xorg_testset_save_CFLAGS="$CFLAGS" 12661 12662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12665$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12666if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12667 $as_echo_n "(cached) " >&6 12668else 12669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12670/* end confdefs.h. */ 12671int i; 12672_ACEOF 12673if ac_fn_c_try_compile "$LINENO"; then : 12674 xorg_cv_cc_flag_unknown_warning_option=yes 12675else 12676 xorg_cv_cc_flag_unknown_warning_option=no 12677fi 12678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12679fi 12680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12681$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12683 CFLAGS="$xorg_testset_save_CFLAGS" 12684fi 12685 12686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12689 fi 12690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12692$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12693if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12694 $as_echo_n "(cached) " >&6 12695else 12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12697/* end confdefs.h. */ 12698int i; 12699_ACEOF 12700if ac_fn_c_try_compile "$LINENO"; then : 12701 xorg_cv_cc_flag_unused_command_line_argument=yes 12702else 12703 xorg_cv_cc_flag_unused_command_line_argument=no 12704fi 12705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12706fi 12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12708$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12710 CFLAGS="$xorg_testset_save_CFLAGS" 12711fi 12712 12713found="no" 12714 12715 if test $found = "no" ; then 12716 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12718 fi 12719 12720 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12722 fi 12723 12724 CFLAGS="$CFLAGS -Wold-style-definition" 12725 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12727$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12728 cacheid=xorg_cv_cc_flag__Wold_style_definition 12729 if eval \${$cacheid+:} false; then : 12730 $as_echo_n "(cached) " >&6 12731else 12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12733/* end confdefs.h. */ 12734int i; 12735int 12736main () 12737{ 12738 12739 ; 12740 return 0; 12741} 12742_ACEOF 12743if ac_fn_c_try_link "$LINENO"; then : 12744 eval $cacheid=yes 12745else 12746 eval $cacheid=no 12747fi 12748rm -f core conftest.err conftest.$ac_objext \ 12749 conftest$ac_exeext conftest.$ac_ext 12750fi 12751 12752 12753 CFLAGS="$xorg_testset_save_CFLAGS" 12754 12755 eval supported=\$$cacheid 12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12757$as_echo "$supported" >&6; } 12758 if test "$supported" = "yes" ; then 12759 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12760 found="yes" 12761 fi 12762 fi 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778xorg_testset_save_CFLAGS="$CFLAGS" 12779 12780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12785 $as_echo_n "(cached) " >&6 12786else 12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12788/* end confdefs.h. */ 12789int i; 12790_ACEOF 12791if ac_fn_c_try_compile "$LINENO"; then : 12792 xorg_cv_cc_flag_unknown_warning_option=yes 12793else 12794 xorg_cv_cc_flag_unknown_warning_option=no 12795fi 12796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12797fi 12798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12801 CFLAGS="$xorg_testset_save_CFLAGS" 12802fi 12803 12804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12807 fi 12808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12812 $as_echo_n "(cached) " >&6 12813else 12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12815/* end confdefs.h. */ 12816int i; 12817_ACEOF 12818if ac_fn_c_try_compile "$LINENO"; then : 12819 xorg_cv_cc_flag_unused_command_line_argument=yes 12820else 12821 xorg_cv_cc_flag_unused_command_line_argument=no 12822fi 12823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12824fi 12825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12828 CFLAGS="$xorg_testset_save_CFLAGS" 12829fi 12830 12831found="no" 12832 12833 if test $found = "no" ; then 12834 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12836 fi 12837 12838 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12840 fi 12841 12842 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12843 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 12845$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 12846 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 12847 if eval \${$cacheid+:} false; then : 12848 $as_echo_n "(cached) " >&6 12849else 12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12851/* end confdefs.h. */ 12852int i; 12853int 12854main () 12855{ 12856 12857 ; 12858 return 0; 12859} 12860_ACEOF 12861if ac_fn_c_try_link "$LINENO"; then : 12862 eval $cacheid=yes 12863else 12864 eval $cacheid=no 12865fi 12866rm -f core conftest.err conftest.$ac_objext \ 12867 conftest$ac_exeext conftest.$ac_ext 12868fi 12869 12870 12871 CFLAGS="$xorg_testset_save_CFLAGS" 12872 12873 eval supported=\$$cacheid 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12875$as_echo "$supported" >&6; } 12876 if test "$supported" = "yes" ; then 12877 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 12878 found="yes" 12879 fi 12880 fi 12881 12882 12883 12884 12885 12886# This chunk adds additional warnings that could catch undesired effects. 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900xorg_testset_save_CFLAGS="$CFLAGS" 12901 12902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12907 $as_echo_n "(cached) " >&6 12908else 12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12910/* end confdefs.h. */ 12911int i; 12912_ACEOF 12913if ac_fn_c_try_compile "$LINENO"; then : 12914 xorg_cv_cc_flag_unknown_warning_option=yes 12915else 12916 xorg_cv_cc_flag_unknown_warning_option=no 12917fi 12918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12919fi 12920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12923 CFLAGS="$xorg_testset_save_CFLAGS" 12924fi 12925 12926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12929 fi 12930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12934 $as_echo_n "(cached) " >&6 12935else 12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12937/* end confdefs.h. */ 12938int i; 12939_ACEOF 12940if ac_fn_c_try_compile "$LINENO"; then : 12941 xorg_cv_cc_flag_unused_command_line_argument=yes 12942else 12943 xorg_cv_cc_flag_unused_command_line_argument=no 12944fi 12945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12946fi 12947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12950 CFLAGS="$xorg_testset_save_CFLAGS" 12951fi 12952 12953found="no" 12954 12955 if test $found = "no" ; then 12956 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12958 fi 12959 12960 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12962 fi 12963 12964 CFLAGS="$CFLAGS -Wunused" 12965 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 12967$as_echo_n "checking if $CC supports -Wunused... " >&6; } 12968 cacheid=xorg_cv_cc_flag__Wunused 12969 if eval \${$cacheid+:} false; then : 12970 $as_echo_n "(cached) " >&6 12971else 12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12973/* end confdefs.h. */ 12974int i; 12975int 12976main () 12977{ 12978 12979 ; 12980 return 0; 12981} 12982_ACEOF 12983if ac_fn_c_try_link "$LINENO"; then : 12984 eval $cacheid=yes 12985else 12986 eval $cacheid=no 12987fi 12988rm -f core conftest.err conftest.$ac_objext \ 12989 conftest$ac_exeext conftest.$ac_ext 12990fi 12991 12992 12993 CFLAGS="$xorg_testset_save_CFLAGS" 12994 12995 eval supported=\$$cacheid 12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12997$as_echo "$supported" >&6; } 12998 if test "$supported" = "yes" ; then 12999 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13000 found="yes" 13001 fi 13002 fi 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018xorg_testset_save_CFLAGS="$CFLAGS" 13019 13020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13023$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13024if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13025 $as_echo_n "(cached) " >&6 13026else 13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13028/* end confdefs.h. */ 13029int i; 13030_ACEOF 13031if ac_fn_c_try_compile "$LINENO"; then : 13032 xorg_cv_cc_flag_unknown_warning_option=yes 13033else 13034 xorg_cv_cc_flag_unknown_warning_option=no 13035fi 13036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13037fi 13038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13039$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13041 CFLAGS="$xorg_testset_save_CFLAGS" 13042fi 13043 13044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13047 fi 13048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13050$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13051if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13052 $as_echo_n "(cached) " >&6 13053else 13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13055/* end confdefs.h. */ 13056int i; 13057_ACEOF 13058if ac_fn_c_try_compile "$LINENO"; then : 13059 xorg_cv_cc_flag_unused_command_line_argument=yes 13060else 13061 xorg_cv_cc_flag_unused_command_line_argument=no 13062fi 13063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13064fi 13065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13066$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13068 CFLAGS="$xorg_testset_save_CFLAGS" 13069fi 13070 13071found="no" 13072 13073 if test $found = "no" ; then 13074 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13076 fi 13077 13078 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13080 fi 13081 13082 CFLAGS="$CFLAGS -Wuninitialized" 13083 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13085$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13086 cacheid=xorg_cv_cc_flag__Wuninitialized 13087 if eval \${$cacheid+:} false; then : 13088 $as_echo_n "(cached) " >&6 13089else 13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13091/* end confdefs.h. */ 13092int i; 13093int 13094main () 13095{ 13096 13097 ; 13098 return 0; 13099} 13100_ACEOF 13101if ac_fn_c_try_link "$LINENO"; then : 13102 eval $cacheid=yes 13103else 13104 eval $cacheid=no 13105fi 13106rm -f core conftest.err conftest.$ac_objext \ 13107 conftest$ac_exeext conftest.$ac_ext 13108fi 13109 13110 13111 CFLAGS="$xorg_testset_save_CFLAGS" 13112 13113 eval supported=\$$cacheid 13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13115$as_echo "$supported" >&6; } 13116 if test "$supported" = "yes" ; then 13117 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13118 found="yes" 13119 fi 13120 fi 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136xorg_testset_save_CFLAGS="$CFLAGS" 13137 13138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13141$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13142if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13143 $as_echo_n "(cached) " >&6 13144else 13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13146/* end confdefs.h. */ 13147int i; 13148_ACEOF 13149if ac_fn_c_try_compile "$LINENO"; then : 13150 xorg_cv_cc_flag_unknown_warning_option=yes 13151else 13152 xorg_cv_cc_flag_unknown_warning_option=no 13153fi 13154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13155fi 13156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13157$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13159 CFLAGS="$xorg_testset_save_CFLAGS" 13160fi 13161 13162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13165 fi 13166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13168$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13169if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13170 $as_echo_n "(cached) " >&6 13171else 13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13173/* end confdefs.h. */ 13174int i; 13175_ACEOF 13176if ac_fn_c_try_compile "$LINENO"; then : 13177 xorg_cv_cc_flag_unused_command_line_argument=yes 13178else 13179 xorg_cv_cc_flag_unused_command_line_argument=no 13180fi 13181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13182fi 13183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13184$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13186 CFLAGS="$xorg_testset_save_CFLAGS" 13187fi 13188 13189found="no" 13190 13191 if test $found = "no" ; then 13192 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13194 fi 13195 13196 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13198 fi 13199 13200 CFLAGS="$CFLAGS -Wshadow" 13201 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13203$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13204 cacheid=xorg_cv_cc_flag__Wshadow 13205 if eval \${$cacheid+:} false; then : 13206 $as_echo_n "(cached) " >&6 13207else 13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13209/* end confdefs.h. */ 13210int i; 13211int 13212main () 13213{ 13214 13215 ; 13216 return 0; 13217} 13218_ACEOF 13219if ac_fn_c_try_link "$LINENO"; then : 13220 eval $cacheid=yes 13221else 13222 eval $cacheid=no 13223fi 13224rm -f core conftest.err conftest.$ac_objext \ 13225 conftest$ac_exeext conftest.$ac_ext 13226fi 13227 13228 13229 CFLAGS="$xorg_testset_save_CFLAGS" 13230 13231 eval supported=\$$cacheid 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13233$as_echo "$supported" >&6; } 13234 if test "$supported" = "yes" ; then 13235 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13236 found="yes" 13237 fi 13238 fi 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254xorg_testset_save_CFLAGS="$CFLAGS" 13255 13256if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13259$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13260if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13261 $as_echo_n "(cached) " >&6 13262else 13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13264/* end confdefs.h. */ 13265int i; 13266_ACEOF 13267if ac_fn_c_try_compile "$LINENO"; then : 13268 xorg_cv_cc_flag_unknown_warning_option=yes 13269else 13270 xorg_cv_cc_flag_unknown_warning_option=no 13271fi 13272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13273fi 13274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13275$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13277 CFLAGS="$xorg_testset_save_CFLAGS" 13278fi 13279 13280if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13283 fi 13284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13286$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13287if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13288 $as_echo_n "(cached) " >&6 13289else 13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13291/* end confdefs.h. */ 13292int i; 13293_ACEOF 13294if ac_fn_c_try_compile "$LINENO"; then : 13295 xorg_cv_cc_flag_unused_command_line_argument=yes 13296else 13297 xorg_cv_cc_flag_unused_command_line_argument=no 13298fi 13299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13300fi 13301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13302$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13304 CFLAGS="$xorg_testset_save_CFLAGS" 13305fi 13306 13307found="no" 13308 13309 if test $found = "no" ; then 13310 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13312 fi 13313 13314 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13316 fi 13317 13318 CFLAGS="$CFLAGS -Wcast-qual" 13319 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13321$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13322 cacheid=xorg_cv_cc_flag__Wcast_qual 13323 if eval \${$cacheid+:} false; then : 13324 $as_echo_n "(cached) " >&6 13325else 13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13327/* end confdefs.h. */ 13328int i; 13329int 13330main () 13331{ 13332 13333 ; 13334 return 0; 13335} 13336_ACEOF 13337if ac_fn_c_try_link "$LINENO"; then : 13338 eval $cacheid=yes 13339else 13340 eval $cacheid=no 13341fi 13342rm -f core conftest.err conftest.$ac_objext \ 13343 conftest$ac_exeext conftest.$ac_ext 13344fi 13345 13346 13347 CFLAGS="$xorg_testset_save_CFLAGS" 13348 13349 eval supported=\$$cacheid 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13351$as_echo "$supported" >&6; } 13352 if test "$supported" = "yes" ; then 13353 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13354 found="yes" 13355 fi 13356 fi 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372xorg_testset_save_CFLAGS="$CFLAGS" 13373 13374if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13377$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13378if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13379 $as_echo_n "(cached) " >&6 13380else 13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13382/* end confdefs.h. */ 13383int i; 13384_ACEOF 13385if ac_fn_c_try_compile "$LINENO"; then : 13386 xorg_cv_cc_flag_unknown_warning_option=yes 13387else 13388 xorg_cv_cc_flag_unknown_warning_option=no 13389fi 13390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13391fi 13392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13393$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13395 CFLAGS="$xorg_testset_save_CFLAGS" 13396fi 13397 13398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13401 fi 13402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13404$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13405if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13406 $as_echo_n "(cached) " >&6 13407else 13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13409/* end confdefs.h. */ 13410int i; 13411_ACEOF 13412if ac_fn_c_try_compile "$LINENO"; then : 13413 xorg_cv_cc_flag_unused_command_line_argument=yes 13414else 13415 xorg_cv_cc_flag_unused_command_line_argument=no 13416fi 13417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13418fi 13419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13420$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13422 CFLAGS="$xorg_testset_save_CFLAGS" 13423fi 13424 13425found="no" 13426 13427 if test $found = "no" ; then 13428 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13430 fi 13431 13432 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13434 fi 13435 13436 CFLAGS="$CFLAGS -Wmissing-noreturn" 13437 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13439$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13440 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13441 if eval \${$cacheid+:} false; then : 13442 $as_echo_n "(cached) " >&6 13443else 13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13445/* end confdefs.h. */ 13446int i; 13447int 13448main () 13449{ 13450 13451 ; 13452 return 0; 13453} 13454_ACEOF 13455if ac_fn_c_try_link "$LINENO"; then : 13456 eval $cacheid=yes 13457else 13458 eval $cacheid=no 13459fi 13460rm -f core conftest.err conftest.$ac_objext \ 13461 conftest$ac_exeext conftest.$ac_ext 13462fi 13463 13464 13465 CFLAGS="$xorg_testset_save_CFLAGS" 13466 13467 eval supported=\$$cacheid 13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13469$as_echo "$supported" >&6; } 13470 if test "$supported" = "yes" ; then 13471 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13472 found="yes" 13473 fi 13474 fi 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490xorg_testset_save_CFLAGS="$CFLAGS" 13491 13492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13495$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13496if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13497 $as_echo_n "(cached) " >&6 13498else 13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13500/* end confdefs.h. */ 13501int i; 13502_ACEOF 13503if ac_fn_c_try_compile "$LINENO"; then : 13504 xorg_cv_cc_flag_unknown_warning_option=yes 13505else 13506 xorg_cv_cc_flag_unknown_warning_option=no 13507fi 13508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13509fi 13510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13511$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13513 CFLAGS="$xorg_testset_save_CFLAGS" 13514fi 13515 13516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13519 fi 13520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13522$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13523if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13524 $as_echo_n "(cached) " >&6 13525else 13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13527/* end confdefs.h. */ 13528int i; 13529_ACEOF 13530if ac_fn_c_try_compile "$LINENO"; then : 13531 xorg_cv_cc_flag_unused_command_line_argument=yes 13532else 13533 xorg_cv_cc_flag_unused_command_line_argument=no 13534fi 13535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13536fi 13537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13538$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13540 CFLAGS="$xorg_testset_save_CFLAGS" 13541fi 13542 13543found="no" 13544 13545 if test $found = "no" ; then 13546 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13548 fi 13549 13550 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13552 fi 13553 13554 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13555 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13557$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13558 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13559 if eval \${$cacheid+:} false; then : 13560 $as_echo_n "(cached) " >&6 13561else 13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13563/* end confdefs.h. */ 13564int i; 13565int 13566main () 13567{ 13568 13569 ; 13570 return 0; 13571} 13572_ACEOF 13573if ac_fn_c_try_link "$LINENO"; then : 13574 eval $cacheid=yes 13575else 13576 eval $cacheid=no 13577fi 13578rm -f core conftest.err conftest.$ac_objext \ 13579 conftest$ac_exeext conftest.$ac_ext 13580fi 13581 13582 13583 CFLAGS="$xorg_testset_save_CFLAGS" 13584 13585 eval supported=\$$cacheid 13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13587$as_echo "$supported" >&6; } 13588 if test "$supported" = "yes" ; then 13589 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13590 found="yes" 13591 fi 13592 fi 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608xorg_testset_save_CFLAGS="$CFLAGS" 13609 13610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13613$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13614if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13615 $as_echo_n "(cached) " >&6 13616else 13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13618/* end confdefs.h. */ 13619int i; 13620_ACEOF 13621if ac_fn_c_try_compile "$LINENO"; then : 13622 xorg_cv_cc_flag_unknown_warning_option=yes 13623else 13624 xorg_cv_cc_flag_unknown_warning_option=no 13625fi 13626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13627fi 13628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13629$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13631 CFLAGS="$xorg_testset_save_CFLAGS" 13632fi 13633 13634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13637 fi 13638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13640$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13641if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13642 $as_echo_n "(cached) " >&6 13643else 13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13645/* end confdefs.h. */ 13646int i; 13647_ACEOF 13648if ac_fn_c_try_compile "$LINENO"; then : 13649 xorg_cv_cc_flag_unused_command_line_argument=yes 13650else 13651 xorg_cv_cc_flag_unused_command_line_argument=no 13652fi 13653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13654fi 13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13656$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13658 CFLAGS="$xorg_testset_save_CFLAGS" 13659fi 13660 13661found="no" 13662 13663 if test $found = "no" ; then 13664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13666 fi 13667 13668 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13670 fi 13671 13672 CFLAGS="$CFLAGS -Wredundant-decls" 13673 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13675$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13676 cacheid=xorg_cv_cc_flag__Wredundant_decls 13677 if eval \${$cacheid+:} false; then : 13678 $as_echo_n "(cached) " >&6 13679else 13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13681/* end confdefs.h. */ 13682int i; 13683int 13684main () 13685{ 13686 13687 ; 13688 return 0; 13689} 13690_ACEOF 13691if ac_fn_c_try_link "$LINENO"; then : 13692 eval $cacheid=yes 13693else 13694 eval $cacheid=no 13695fi 13696rm -f core conftest.err conftest.$ac_objext \ 13697 conftest$ac_exeext conftest.$ac_ext 13698fi 13699 13700 13701 CFLAGS="$xorg_testset_save_CFLAGS" 13702 13703 eval supported=\$$cacheid 13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13705$as_echo "$supported" >&6; } 13706 if test "$supported" = "yes" ; then 13707 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13708 found="yes" 13709 fi 13710 fi 13711 13712 13713 13714# These are currently disabled because they are noisy. They will be enabled 13715# in the future once the codebase is sufficiently modernized to silence 13716# them. For now, I don't want them to drown out the other warnings. 13717# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13718# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13719# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13720 13721# Turn some warnings into errors, so we don't accidently get successful builds 13722# when there are problems that should be fixed. 13723 13724if test "x$SELECTIVE_WERROR" = "xyes" ; then 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738xorg_testset_save_CFLAGS="$CFLAGS" 13739 13740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13745 $as_echo_n "(cached) " >&6 13746else 13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13748/* end confdefs.h. */ 13749int i; 13750_ACEOF 13751if ac_fn_c_try_compile "$LINENO"; then : 13752 xorg_cv_cc_flag_unknown_warning_option=yes 13753else 13754 xorg_cv_cc_flag_unknown_warning_option=no 13755fi 13756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13757fi 13758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13761 CFLAGS="$xorg_testset_save_CFLAGS" 13762fi 13763 13764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13767 fi 13768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13772 $as_echo_n "(cached) " >&6 13773else 13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13775/* end confdefs.h. */ 13776int i; 13777_ACEOF 13778if ac_fn_c_try_compile "$LINENO"; then : 13779 xorg_cv_cc_flag_unused_command_line_argument=yes 13780else 13781 xorg_cv_cc_flag_unused_command_line_argument=no 13782fi 13783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13784fi 13785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13788 CFLAGS="$xorg_testset_save_CFLAGS" 13789fi 13790 13791found="no" 13792 13793 if test $found = "no" ; then 13794 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13796 fi 13797 13798 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13800 fi 13801 13802 CFLAGS="$CFLAGS -Werror=implicit" 13803 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13805$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13806 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 13807 if eval \${$cacheid+:} false; then : 13808 $as_echo_n "(cached) " >&6 13809else 13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13811/* end confdefs.h. */ 13812int i; 13813int 13814main () 13815{ 13816 13817 ; 13818 return 0; 13819} 13820_ACEOF 13821if ac_fn_c_try_link "$LINENO"; then : 13822 eval $cacheid=yes 13823else 13824 eval $cacheid=no 13825fi 13826rm -f core conftest.err conftest.$ac_objext \ 13827 conftest$ac_exeext conftest.$ac_ext 13828fi 13829 13830 13831 CFLAGS="$xorg_testset_save_CFLAGS" 13832 13833 eval supported=\$$cacheid 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13835$as_echo "$supported" >&6; } 13836 if test "$supported" = "yes" ; then 13837 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13838 found="yes" 13839 fi 13840 fi 13841 13842 if test $found = "no" ; then 13843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13845 fi 13846 13847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13849 fi 13850 13851 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13852 13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13854$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13855 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 13856 if eval \${$cacheid+:} false; then : 13857 $as_echo_n "(cached) " >&6 13858else 13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13860/* end confdefs.h. */ 13861int i; 13862int 13863main () 13864{ 13865 13866 ; 13867 return 0; 13868} 13869_ACEOF 13870if ac_fn_c_try_link "$LINENO"; then : 13871 eval $cacheid=yes 13872else 13873 eval $cacheid=no 13874fi 13875rm -f core conftest.err conftest.$ac_objext \ 13876 conftest$ac_exeext conftest.$ac_ext 13877fi 13878 13879 13880 CFLAGS="$xorg_testset_save_CFLAGS" 13881 13882 eval supported=\$$cacheid 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13884$as_echo "$supported" >&6; } 13885 if test "$supported" = "yes" ; then 13886 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13887 found="yes" 13888 fi 13889 fi 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905xorg_testset_save_CFLAGS="$CFLAGS" 13906 13907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13912 $as_echo_n "(cached) " >&6 13913else 13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13915/* end confdefs.h. */ 13916int i; 13917_ACEOF 13918if ac_fn_c_try_compile "$LINENO"; then : 13919 xorg_cv_cc_flag_unknown_warning_option=yes 13920else 13921 xorg_cv_cc_flag_unknown_warning_option=no 13922fi 13923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13924fi 13925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13928 CFLAGS="$xorg_testset_save_CFLAGS" 13929fi 13930 13931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13934 fi 13935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13939 $as_echo_n "(cached) " >&6 13940else 13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13942/* end confdefs.h. */ 13943int i; 13944_ACEOF 13945if ac_fn_c_try_compile "$LINENO"; then : 13946 xorg_cv_cc_flag_unused_command_line_argument=yes 13947else 13948 xorg_cv_cc_flag_unused_command_line_argument=no 13949fi 13950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13951fi 13952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13955 CFLAGS="$xorg_testset_save_CFLAGS" 13956fi 13957 13958found="no" 13959 13960 if test $found = "no" ; then 13961 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13963 fi 13964 13965 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13967 fi 13968 13969 CFLAGS="$CFLAGS -Werror=nonnull" 13970 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 13972$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 13973 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 13974 if eval \${$cacheid+:} false; then : 13975 $as_echo_n "(cached) " >&6 13976else 13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13978/* end confdefs.h. */ 13979int i; 13980int 13981main () 13982{ 13983 13984 ; 13985 return 0; 13986} 13987_ACEOF 13988if ac_fn_c_try_link "$LINENO"; then : 13989 eval $cacheid=yes 13990else 13991 eval $cacheid=no 13992fi 13993rm -f core conftest.err conftest.$ac_objext \ 13994 conftest$ac_exeext conftest.$ac_ext 13995fi 13996 13997 13998 CFLAGS="$xorg_testset_save_CFLAGS" 13999 14000 eval supported=\$$cacheid 14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14002$as_echo "$supported" >&6; } 14003 if test "$supported" = "yes" ; then 14004 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14005 found="yes" 14006 fi 14007 fi 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023xorg_testset_save_CFLAGS="$CFLAGS" 14024 14025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14030 $as_echo_n "(cached) " >&6 14031else 14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14033/* end confdefs.h. */ 14034int i; 14035_ACEOF 14036if ac_fn_c_try_compile "$LINENO"; then : 14037 xorg_cv_cc_flag_unknown_warning_option=yes 14038else 14039 xorg_cv_cc_flag_unknown_warning_option=no 14040fi 14041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14042fi 14043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14046 CFLAGS="$xorg_testset_save_CFLAGS" 14047fi 14048 14049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14052 fi 14053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14057 $as_echo_n "(cached) " >&6 14058else 14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14060/* end confdefs.h. */ 14061int i; 14062_ACEOF 14063if ac_fn_c_try_compile "$LINENO"; then : 14064 xorg_cv_cc_flag_unused_command_line_argument=yes 14065else 14066 xorg_cv_cc_flag_unused_command_line_argument=no 14067fi 14068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14069fi 14070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14073 CFLAGS="$xorg_testset_save_CFLAGS" 14074fi 14075 14076found="no" 14077 14078 if test $found = "no" ; then 14079 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14081 fi 14082 14083 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14085 fi 14086 14087 CFLAGS="$CFLAGS -Werror=init-self" 14088 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14090$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14091 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 14092 if eval \${$cacheid+:} false; then : 14093 $as_echo_n "(cached) " >&6 14094else 14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14096/* end confdefs.h. */ 14097int i; 14098int 14099main () 14100{ 14101 14102 ; 14103 return 0; 14104} 14105_ACEOF 14106if ac_fn_c_try_link "$LINENO"; then : 14107 eval $cacheid=yes 14108else 14109 eval $cacheid=no 14110fi 14111rm -f core conftest.err conftest.$ac_objext \ 14112 conftest$ac_exeext conftest.$ac_ext 14113fi 14114 14115 14116 CFLAGS="$xorg_testset_save_CFLAGS" 14117 14118 eval supported=\$$cacheid 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14120$as_echo "$supported" >&6; } 14121 if test "$supported" = "yes" ; then 14122 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14123 found="yes" 14124 fi 14125 fi 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141xorg_testset_save_CFLAGS="$CFLAGS" 14142 14143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14148 $as_echo_n "(cached) " >&6 14149else 14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14151/* end confdefs.h. */ 14152int i; 14153_ACEOF 14154if ac_fn_c_try_compile "$LINENO"; then : 14155 xorg_cv_cc_flag_unknown_warning_option=yes 14156else 14157 xorg_cv_cc_flag_unknown_warning_option=no 14158fi 14159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14160fi 14161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14164 CFLAGS="$xorg_testset_save_CFLAGS" 14165fi 14166 14167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14170 fi 14171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14175 $as_echo_n "(cached) " >&6 14176else 14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14178/* end confdefs.h. */ 14179int i; 14180_ACEOF 14181if ac_fn_c_try_compile "$LINENO"; then : 14182 xorg_cv_cc_flag_unused_command_line_argument=yes 14183else 14184 xorg_cv_cc_flag_unused_command_line_argument=no 14185fi 14186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14187fi 14188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14191 CFLAGS="$xorg_testset_save_CFLAGS" 14192fi 14193 14194found="no" 14195 14196 if test $found = "no" ; then 14197 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14199 fi 14200 14201 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14203 fi 14204 14205 CFLAGS="$CFLAGS -Werror=main" 14206 14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14208$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14209 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 14210 if eval \${$cacheid+:} false; then : 14211 $as_echo_n "(cached) " >&6 14212else 14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14214/* end confdefs.h. */ 14215int i; 14216int 14217main () 14218{ 14219 14220 ; 14221 return 0; 14222} 14223_ACEOF 14224if ac_fn_c_try_link "$LINENO"; then : 14225 eval $cacheid=yes 14226else 14227 eval $cacheid=no 14228fi 14229rm -f core conftest.err conftest.$ac_objext \ 14230 conftest$ac_exeext conftest.$ac_ext 14231fi 14232 14233 14234 CFLAGS="$xorg_testset_save_CFLAGS" 14235 14236 eval supported=\$$cacheid 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14238$as_echo "$supported" >&6; } 14239 if test "$supported" = "yes" ; then 14240 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14241 found="yes" 14242 fi 14243 fi 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259xorg_testset_save_CFLAGS="$CFLAGS" 14260 14261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14266 $as_echo_n "(cached) " >&6 14267else 14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14269/* end confdefs.h. */ 14270int i; 14271_ACEOF 14272if ac_fn_c_try_compile "$LINENO"; then : 14273 xorg_cv_cc_flag_unknown_warning_option=yes 14274else 14275 xorg_cv_cc_flag_unknown_warning_option=no 14276fi 14277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14278fi 14279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14282 CFLAGS="$xorg_testset_save_CFLAGS" 14283fi 14284 14285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14288 fi 14289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14293 $as_echo_n "(cached) " >&6 14294else 14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14296/* end confdefs.h. */ 14297int i; 14298_ACEOF 14299if ac_fn_c_try_compile "$LINENO"; then : 14300 xorg_cv_cc_flag_unused_command_line_argument=yes 14301else 14302 xorg_cv_cc_flag_unused_command_line_argument=no 14303fi 14304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14305fi 14306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14309 CFLAGS="$xorg_testset_save_CFLAGS" 14310fi 14311 14312found="no" 14313 14314 if test $found = "no" ; then 14315 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14317 fi 14318 14319 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14321 fi 14322 14323 CFLAGS="$CFLAGS -Werror=missing-braces" 14324 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14326$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14327 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 14328 if eval \${$cacheid+:} false; then : 14329 $as_echo_n "(cached) " >&6 14330else 14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14332/* end confdefs.h. */ 14333int i; 14334int 14335main () 14336{ 14337 14338 ; 14339 return 0; 14340} 14341_ACEOF 14342if ac_fn_c_try_link "$LINENO"; then : 14343 eval $cacheid=yes 14344else 14345 eval $cacheid=no 14346fi 14347rm -f core conftest.err conftest.$ac_objext \ 14348 conftest$ac_exeext conftest.$ac_ext 14349fi 14350 14351 14352 CFLAGS="$xorg_testset_save_CFLAGS" 14353 14354 eval supported=\$$cacheid 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14356$as_echo "$supported" >&6; } 14357 if test "$supported" = "yes" ; then 14358 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14359 found="yes" 14360 fi 14361 fi 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377xorg_testset_save_CFLAGS="$CFLAGS" 14378 14379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14384 $as_echo_n "(cached) " >&6 14385else 14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14387/* end confdefs.h. */ 14388int i; 14389_ACEOF 14390if ac_fn_c_try_compile "$LINENO"; then : 14391 xorg_cv_cc_flag_unknown_warning_option=yes 14392else 14393 xorg_cv_cc_flag_unknown_warning_option=no 14394fi 14395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14396fi 14397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14400 CFLAGS="$xorg_testset_save_CFLAGS" 14401fi 14402 14403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14406 fi 14407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14411 $as_echo_n "(cached) " >&6 14412else 14413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14414/* end confdefs.h. */ 14415int i; 14416_ACEOF 14417if ac_fn_c_try_compile "$LINENO"; then : 14418 xorg_cv_cc_flag_unused_command_line_argument=yes 14419else 14420 xorg_cv_cc_flag_unused_command_line_argument=no 14421fi 14422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14423fi 14424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14427 CFLAGS="$xorg_testset_save_CFLAGS" 14428fi 14429 14430found="no" 14431 14432 if test $found = "no" ; then 14433 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14435 fi 14436 14437 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14439 fi 14440 14441 CFLAGS="$CFLAGS -Werror=sequence-point" 14442 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14444$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14445 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 14446 if eval \${$cacheid+:} false; then : 14447 $as_echo_n "(cached) " >&6 14448else 14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14450/* end confdefs.h. */ 14451int i; 14452int 14453main () 14454{ 14455 14456 ; 14457 return 0; 14458} 14459_ACEOF 14460if ac_fn_c_try_link "$LINENO"; then : 14461 eval $cacheid=yes 14462else 14463 eval $cacheid=no 14464fi 14465rm -f core conftest.err conftest.$ac_objext \ 14466 conftest$ac_exeext conftest.$ac_ext 14467fi 14468 14469 14470 CFLAGS="$xorg_testset_save_CFLAGS" 14471 14472 eval supported=\$$cacheid 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14474$as_echo "$supported" >&6; } 14475 if test "$supported" = "yes" ; then 14476 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14477 found="yes" 14478 fi 14479 fi 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495xorg_testset_save_CFLAGS="$CFLAGS" 14496 14497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14500$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14501if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14502 $as_echo_n "(cached) " >&6 14503else 14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14505/* end confdefs.h. */ 14506int i; 14507_ACEOF 14508if ac_fn_c_try_compile "$LINENO"; then : 14509 xorg_cv_cc_flag_unknown_warning_option=yes 14510else 14511 xorg_cv_cc_flag_unknown_warning_option=no 14512fi 14513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14514fi 14515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14516$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14518 CFLAGS="$xorg_testset_save_CFLAGS" 14519fi 14520 14521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14524 fi 14525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14527$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14528if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14529 $as_echo_n "(cached) " >&6 14530else 14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14532/* end confdefs.h. */ 14533int i; 14534_ACEOF 14535if ac_fn_c_try_compile "$LINENO"; then : 14536 xorg_cv_cc_flag_unused_command_line_argument=yes 14537else 14538 xorg_cv_cc_flag_unused_command_line_argument=no 14539fi 14540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14541fi 14542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14543$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14545 CFLAGS="$xorg_testset_save_CFLAGS" 14546fi 14547 14548found="no" 14549 14550 if test $found = "no" ; then 14551 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14553 fi 14554 14555 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14557 fi 14558 14559 CFLAGS="$CFLAGS -Werror=return-type" 14560 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14562$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14563 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 14564 if eval \${$cacheid+:} false; then : 14565 $as_echo_n "(cached) " >&6 14566else 14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14568/* end confdefs.h. */ 14569int i; 14570int 14571main () 14572{ 14573 14574 ; 14575 return 0; 14576} 14577_ACEOF 14578if ac_fn_c_try_link "$LINENO"; then : 14579 eval $cacheid=yes 14580else 14581 eval $cacheid=no 14582fi 14583rm -f core conftest.err conftest.$ac_objext \ 14584 conftest$ac_exeext conftest.$ac_ext 14585fi 14586 14587 14588 CFLAGS="$xorg_testset_save_CFLAGS" 14589 14590 eval supported=\$$cacheid 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14592$as_echo "$supported" >&6; } 14593 if test "$supported" = "yes" ; then 14594 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14595 found="yes" 14596 fi 14597 fi 14598 14599 if test $found = "no" ; then 14600 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14602 fi 14603 14604 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14606 fi 14607 14608 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14609 14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14611$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14612 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 14613 if eval \${$cacheid+:} false; then : 14614 $as_echo_n "(cached) " >&6 14615else 14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14617/* end confdefs.h. */ 14618int i; 14619int 14620main () 14621{ 14622 14623 ; 14624 return 0; 14625} 14626_ACEOF 14627if ac_fn_c_try_link "$LINENO"; then : 14628 eval $cacheid=yes 14629else 14630 eval $cacheid=no 14631fi 14632rm -f core conftest.err conftest.$ac_objext \ 14633 conftest$ac_exeext conftest.$ac_ext 14634fi 14635 14636 14637 CFLAGS="$xorg_testset_save_CFLAGS" 14638 14639 eval supported=\$$cacheid 14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14641$as_echo "$supported" >&6; } 14642 if test "$supported" = "yes" ; then 14643 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14644 found="yes" 14645 fi 14646 fi 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662xorg_testset_save_CFLAGS="$CFLAGS" 14663 14664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14667$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14668if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14669 $as_echo_n "(cached) " >&6 14670else 14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14672/* end confdefs.h. */ 14673int i; 14674_ACEOF 14675if ac_fn_c_try_compile "$LINENO"; then : 14676 xorg_cv_cc_flag_unknown_warning_option=yes 14677else 14678 xorg_cv_cc_flag_unknown_warning_option=no 14679fi 14680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14681fi 14682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14683$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14685 CFLAGS="$xorg_testset_save_CFLAGS" 14686fi 14687 14688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14691 fi 14692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14694$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14695if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14696 $as_echo_n "(cached) " >&6 14697else 14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14699/* end confdefs.h. */ 14700int i; 14701_ACEOF 14702if ac_fn_c_try_compile "$LINENO"; then : 14703 xorg_cv_cc_flag_unused_command_line_argument=yes 14704else 14705 xorg_cv_cc_flag_unused_command_line_argument=no 14706fi 14707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14708fi 14709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14710$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14712 CFLAGS="$xorg_testset_save_CFLAGS" 14713fi 14714 14715found="no" 14716 14717 if test $found = "no" ; then 14718 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14720 fi 14721 14722 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14724 fi 14725 14726 CFLAGS="$CFLAGS -Werror=trigraphs" 14727 14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14729$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14730 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 14731 if eval \${$cacheid+:} false; then : 14732 $as_echo_n "(cached) " >&6 14733else 14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14735/* end confdefs.h. */ 14736int i; 14737int 14738main () 14739{ 14740 14741 ; 14742 return 0; 14743} 14744_ACEOF 14745if ac_fn_c_try_link "$LINENO"; then : 14746 eval $cacheid=yes 14747else 14748 eval $cacheid=no 14749fi 14750rm -f core conftest.err conftest.$ac_objext \ 14751 conftest$ac_exeext conftest.$ac_ext 14752fi 14753 14754 14755 CFLAGS="$xorg_testset_save_CFLAGS" 14756 14757 eval supported=\$$cacheid 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14759$as_echo "$supported" >&6; } 14760 if test "$supported" = "yes" ; then 14761 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14762 found="yes" 14763 fi 14764 fi 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780xorg_testset_save_CFLAGS="$CFLAGS" 14781 14782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14785$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14786if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14787 $as_echo_n "(cached) " >&6 14788else 14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14790/* end confdefs.h. */ 14791int i; 14792_ACEOF 14793if ac_fn_c_try_compile "$LINENO"; then : 14794 xorg_cv_cc_flag_unknown_warning_option=yes 14795else 14796 xorg_cv_cc_flag_unknown_warning_option=no 14797fi 14798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14799fi 14800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14801$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14803 CFLAGS="$xorg_testset_save_CFLAGS" 14804fi 14805 14806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14809 fi 14810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14813if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14814 $as_echo_n "(cached) " >&6 14815else 14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14817/* end confdefs.h. */ 14818int i; 14819_ACEOF 14820if ac_fn_c_try_compile "$LINENO"; then : 14821 xorg_cv_cc_flag_unused_command_line_argument=yes 14822else 14823 xorg_cv_cc_flag_unused_command_line_argument=no 14824fi 14825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14826fi 14827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14828$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14830 CFLAGS="$xorg_testset_save_CFLAGS" 14831fi 14832 14833found="no" 14834 14835 if test $found = "no" ; then 14836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14838 fi 14839 14840 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14842 fi 14843 14844 CFLAGS="$CFLAGS -Werror=array-bounds" 14845 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 14847$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 14848 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 14849 if eval \${$cacheid+:} false; then : 14850 $as_echo_n "(cached) " >&6 14851else 14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14853/* end confdefs.h. */ 14854int i; 14855int 14856main () 14857{ 14858 14859 ; 14860 return 0; 14861} 14862_ACEOF 14863if ac_fn_c_try_link "$LINENO"; then : 14864 eval $cacheid=yes 14865else 14866 eval $cacheid=no 14867fi 14868rm -f core conftest.err conftest.$ac_objext \ 14869 conftest$ac_exeext conftest.$ac_ext 14870fi 14871 14872 14873 CFLAGS="$xorg_testset_save_CFLAGS" 14874 14875 eval supported=\$$cacheid 14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14877$as_echo "$supported" >&6; } 14878 if test "$supported" = "yes" ; then 14879 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 14880 found="yes" 14881 fi 14882 fi 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898xorg_testset_save_CFLAGS="$CFLAGS" 14899 14900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14903$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14904if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14905 $as_echo_n "(cached) " >&6 14906else 14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14908/* end confdefs.h. */ 14909int i; 14910_ACEOF 14911if ac_fn_c_try_compile "$LINENO"; then : 14912 xorg_cv_cc_flag_unknown_warning_option=yes 14913else 14914 xorg_cv_cc_flag_unknown_warning_option=no 14915fi 14916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14917fi 14918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14919$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14921 CFLAGS="$xorg_testset_save_CFLAGS" 14922fi 14923 14924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14927 fi 14928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14930$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14931if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14932 $as_echo_n "(cached) " >&6 14933else 14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14935/* end confdefs.h. */ 14936int i; 14937_ACEOF 14938if ac_fn_c_try_compile "$LINENO"; then : 14939 xorg_cv_cc_flag_unused_command_line_argument=yes 14940else 14941 xorg_cv_cc_flag_unused_command_line_argument=no 14942fi 14943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14944fi 14945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14946$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14948 CFLAGS="$xorg_testset_save_CFLAGS" 14949fi 14950 14951found="no" 14952 14953 if test $found = "no" ; then 14954 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14956 fi 14957 14958 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14960 fi 14961 14962 CFLAGS="$CFLAGS -Werror=write-strings" 14963 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 14965$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 14966 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 14967 if eval \${$cacheid+:} false; then : 14968 $as_echo_n "(cached) " >&6 14969else 14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14971/* end confdefs.h. */ 14972int i; 14973int 14974main () 14975{ 14976 14977 ; 14978 return 0; 14979} 14980_ACEOF 14981if ac_fn_c_try_link "$LINENO"; then : 14982 eval $cacheid=yes 14983else 14984 eval $cacheid=no 14985fi 14986rm -f core conftest.err conftest.$ac_objext \ 14987 conftest$ac_exeext conftest.$ac_ext 14988fi 14989 14990 14991 CFLAGS="$xorg_testset_save_CFLAGS" 14992 14993 eval supported=\$$cacheid 14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14995$as_echo "$supported" >&6; } 14996 if test "$supported" = "yes" ; then 14997 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 14998 found="yes" 14999 fi 15000 fi 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016xorg_testset_save_CFLAGS="$CFLAGS" 15017 15018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15023 $as_echo_n "(cached) " >&6 15024else 15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15026/* end confdefs.h. */ 15027int i; 15028_ACEOF 15029if ac_fn_c_try_compile "$LINENO"; then : 15030 xorg_cv_cc_flag_unknown_warning_option=yes 15031else 15032 xorg_cv_cc_flag_unknown_warning_option=no 15033fi 15034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15035fi 15036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15039 CFLAGS="$xorg_testset_save_CFLAGS" 15040fi 15041 15042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15045 fi 15046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15050 $as_echo_n "(cached) " >&6 15051else 15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15053/* end confdefs.h. */ 15054int i; 15055_ACEOF 15056if ac_fn_c_try_compile "$LINENO"; then : 15057 xorg_cv_cc_flag_unused_command_line_argument=yes 15058else 15059 xorg_cv_cc_flag_unused_command_line_argument=no 15060fi 15061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15062fi 15063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15066 CFLAGS="$xorg_testset_save_CFLAGS" 15067fi 15068 15069found="no" 15070 15071 if test $found = "no" ; then 15072 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15074 fi 15075 15076 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15078 fi 15079 15080 CFLAGS="$CFLAGS -Werror=address" 15081 15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15083$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15084 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 15085 if eval \${$cacheid+:} false; then : 15086 $as_echo_n "(cached) " >&6 15087else 15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15089/* end confdefs.h. */ 15090int i; 15091int 15092main () 15093{ 15094 15095 ; 15096 return 0; 15097} 15098_ACEOF 15099if ac_fn_c_try_link "$LINENO"; then : 15100 eval $cacheid=yes 15101else 15102 eval $cacheid=no 15103fi 15104rm -f core conftest.err conftest.$ac_objext \ 15105 conftest$ac_exeext conftest.$ac_ext 15106fi 15107 15108 15109 CFLAGS="$xorg_testset_save_CFLAGS" 15110 15111 eval supported=\$$cacheid 15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15113$as_echo "$supported" >&6; } 15114 if test "$supported" = "yes" ; then 15115 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15116 found="yes" 15117 fi 15118 fi 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134xorg_testset_save_CFLAGS="$CFLAGS" 15135 15136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15141 $as_echo_n "(cached) " >&6 15142else 15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15144/* end confdefs.h. */ 15145int i; 15146_ACEOF 15147if ac_fn_c_try_compile "$LINENO"; then : 15148 xorg_cv_cc_flag_unknown_warning_option=yes 15149else 15150 xorg_cv_cc_flag_unknown_warning_option=no 15151fi 15152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15153fi 15154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15157 CFLAGS="$xorg_testset_save_CFLAGS" 15158fi 15159 15160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15163 fi 15164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15168 $as_echo_n "(cached) " >&6 15169else 15170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15171/* end confdefs.h. */ 15172int i; 15173_ACEOF 15174if ac_fn_c_try_compile "$LINENO"; then : 15175 xorg_cv_cc_flag_unused_command_line_argument=yes 15176else 15177 xorg_cv_cc_flag_unused_command_line_argument=no 15178fi 15179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15180fi 15181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15184 CFLAGS="$xorg_testset_save_CFLAGS" 15185fi 15186 15187found="no" 15188 15189 if test $found = "no" ; then 15190 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15192 fi 15193 15194 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15196 fi 15197 15198 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15199 15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15201$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15202 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 15203 if eval \${$cacheid+:} false; then : 15204 $as_echo_n "(cached) " >&6 15205else 15206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15207/* end confdefs.h. */ 15208int i; 15209int 15210main () 15211{ 15212 15213 ; 15214 return 0; 15215} 15216_ACEOF 15217if ac_fn_c_try_link "$LINENO"; then : 15218 eval $cacheid=yes 15219else 15220 eval $cacheid=no 15221fi 15222rm -f core conftest.err conftest.$ac_objext \ 15223 conftest$ac_exeext conftest.$ac_ext 15224fi 15225 15226 15227 CFLAGS="$xorg_testset_save_CFLAGS" 15228 15229 eval supported=\$$cacheid 15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15231$as_echo "$supported" >&6; } 15232 if test "$supported" = "yes" ; then 15233 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15234 found="yes" 15235 fi 15236 fi 15237 15238 if test $found = "no" ; then 15239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15241 fi 15242 15243 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15245 fi 15246 15247 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15248 15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15250$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15251 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 15252 if eval \${$cacheid+:} false; then : 15253 $as_echo_n "(cached) " >&6 15254else 15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15256/* end confdefs.h. */ 15257int i; 15258int 15259main () 15260{ 15261 15262 ; 15263 return 0; 15264} 15265_ACEOF 15266if ac_fn_c_try_link "$LINENO"; then : 15267 eval $cacheid=yes 15268else 15269 eval $cacheid=no 15270fi 15271rm -f core conftest.err conftest.$ac_objext \ 15272 conftest$ac_exeext conftest.$ac_ext 15273fi 15274 15275 15276 CFLAGS="$xorg_testset_save_CFLAGS" 15277 15278 eval supported=\$$cacheid 15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15280$as_echo "$supported" >&6; } 15281 if test "$supported" = "yes" ; then 15282 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15283 found="yes" 15284 fi 15285 fi 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301xorg_testset_save_CFLAGS="$CFLAGS" 15302 15303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15306$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15307if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15308 $as_echo_n "(cached) " >&6 15309else 15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15311/* end confdefs.h. */ 15312int i; 15313_ACEOF 15314if ac_fn_c_try_compile "$LINENO"; then : 15315 xorg_cv_cc_flag_unknown_warning_option=yes 15316else 15317 xorg_cv_cc_flag_unknown_warning_option=no 15318fi 15319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15320fi 15321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15322$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15324 CFLAGS="$xorg_testset_save_CFLAGS" 15325fi 15326 15327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15330 fi 15331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15333$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15334if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15335 $as_echo_n "(cached) " >&6 15336else 15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15338/* end confdefs.h. */ 15339int i; 15340_ACEOF 15341if ac_fn_c_try_compile "$LINENO"; then : 15342 xorg_cv_cc_flag_unused_command_line_argument=yes 15343else 15344 xorg_cv_cc_flag_unused_command_line_argument=no 15345fi 15346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15347fi 15348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15349$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15351 CFLAGS="$xorg_testset_save_CFLAGS" 15352fi 15353 15354found="no" 15355 15356 if test $found = "no" ; then 15357 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15359 fi 15360 15361 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15363 fi 15364 15365 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15366 15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15368$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15369 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 15370 if eval \${$cacheid+:} false; then : 15371 $as_echo_n "(cached) " >&6 15372else 15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15374/* end confdefs.h. */ 15375int i; 15376int 15377main () 15378{ 15379 15380 ; 15381 return 0; 15382} 15383_ACEOF 15384if ac_fn_c_try_link "$LINENO"; then : 15385 eval $cacheid=yes 15386else 15387 eval $cacheid=no 15388fi 15389rm -f core conftest.err conftest.$ac_objext \ 15390 conftest$ac_exeext conftest.$ac_ext 15391fi 15392 15393 15394 CFLAGS="$xorg_testset_save_CFLAGS" 15395 15396 eval supported=\$$cacheid 15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15398$as_echo "$supported" >&6; } 15399 if test "$supported" = "yes" ; then 15400 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15401 found="yes" 15402 fi 15403 fi 15404 15405 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15406else 15407{ $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 15408$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;} 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422xorg_testset_save_CFLAGS="$CFLAGS" 15423 15424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15429 $as_echo_n "(cached) " >&6 15430else 15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15432/* end confdefs.h. */ 15433int i; 15434_ACEOF 15435if ac_fn_c_try_compile "$LINENO"; then : 15436 xorg_cv_cc_flag_unknown_warning_option=yes 15437else 15438 xorg_cv_cc_flag_unknown_warning_option=no 15439fi 15440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15441fi 15442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15445 CFLAGS="$xorg_testset_save_CFLAGS" 15446fi 15447 15448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15451 fi 15452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15456 $as_echo_n "(cached) " >&6 15457else 15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15459/* end confdefs.h. */ 15460int i; 15461_ACEOF 15462if ac_fn_c_try_compile "$LINENO"; then : 15463 xorg_cv_cc_flag_unused_command_line_argument=yes 15464else 15465 xorg_cv_cc_flag_unused_command_line_argument=no 15466fi 15467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15468fi 15469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15472 CFLAGS="$xorg_testset_save_CFLAGS" 15473fi 15474 15475found="no" 15476 15477 if test $found = "no" ; then 15478 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15480 fi 15481 15482 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15484 fi 15485 15486 CFLAGS="$CFLAGS -Wimplicit" 15487 15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15489$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15490 cacheid=xorg_cv_cc_flag__Wimplicit 15491 if eval \${$cacheid+:} false; then : 15492 $as_echo_n "(cached) " >&6 15493else 15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15495/* end confdefs.h. */ 15496int i; 15497int 15498main () 15499{ 15500 15501 ; 15502 return 0; 15503} 15504_ACEOF 15505if ac_fn_c_try_link "$LINENO"; then : 15506 eval $cacheid=yes 15507else 15508 eval $cacheid=no 15509fi 15510rm -f core conftest.err conftest.$ac_objext \ 15511 conftest$ac_exeext conftest.$ac_ext 15512fi 15513 15514 15515 CFLAGS="$xorg_testset_save_CFLAGS" 15516 15517 eval supported=\$$cacheid 15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15519$as_echo "$supported" >&6; } 15520 if test "$supported" = "yes" ; then 15521 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15522 found="yes" 15523 fi 15524 fi 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540xorg_testset_save_CFLAGS="$CFLAGS" 15541 15542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15547 $as_echo_n "(cached) " >&6 15548else 15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15550/* end confdefs.h. */ 15551int i; 15552_ACEOF 15553if ac_fn_c_try_compile "$LINENO"; then : 15554 xorg_cv_cc_flag_unknown_warning_option=yes 15555else 15556 xorg_cv_cc_flag_unknown_warning_option=no 15557fi 15558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15559fi 15560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15563 CFLAGS="$xorg_testset_save_CFLAGS" 15564fi 15565 15566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15569 fi 15570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15574 $as_echo_n "(cached) " >&6 15575else 15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15577/* end confdefs.h. */ 15578int i; 15579_ACEOF 15580if ac_fn_c_try_compile "$LINENO"; then : 15581 xorg_cv_cc_flag_unused_command_line_argument=yes 15582else 15583 xorg_cv_cc_flag_unused_command_line_argument=no 15584fi 15585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15586fi 15587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15590 CFLAGS="$xorg_testset_save_CFLAGS" 15591fi 15592 15593found="no" 15594 15595 if test $found = "no" ; then 15596 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15598 fi 15599 15600 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15602 fi 15603 15604 CFLAGS="$CFLAGS -Wnonnull" 15605 15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15607$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15608 cacheid=xorg_cv_cc_flag__Wnonnull 15609 if eval \${$cacheid+:} false; then : 15610 $as_echo_n "(cached) " >&6 15611else 15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15613/* end confdefs.h. */ 15614int i; 15615int 15616main () 15617{ 15618 15619 ; 15620 return 0; 15621} 15622_ACEOF 15623if ac_fn_c_try_link "$LINENO"; then : 15624 eval $cacheid=yes 15625else 15626 eval $cacheid=no 15627fi 15628rm -f core conftest.err conftest.$ac_objext \ 15629 conftest$ac_exeext conftest.$ac_ext 15630fi 15631 15632 15633 CFLAGS="$xorg_testset_save_CFLAGS" 15634 15635 eval supported=\$$cacheid 15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15637$as_echo "$supported" >&6; } 15638 if test "$supported" = "yes" ; then 15639 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15640 found="yes" 15641 fi 15642 fi 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658xorg_testset_save_CFLAGS="$CFLAGS" 15659 15660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15663$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15664if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15665 $as_echo_n "(cached) " >&6 15666else 15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15668/* end confdefs.h. */ 15669int i; 15670_ACEOF 15671if ac_fn_c_try_compile "$LINENO"; then : 15672 xorg_cv_cc_flag_unknown_warning_option=yes 15673else 15674 xorg_cv_cc_flag_unknown_warning_option=no 15675fi 15676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15677fi 15678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15679$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15681 CFLAGS="$xorg_testset_save_CFLAGS" 15682fi 15683 15684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15687 fi 15688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15690$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15691if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15692 $as_echo_n "(cached) " >&6 15693else 15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15695/* end confdefs.h. */ 15696int i; 15697_ACEOF 15698if ac_fn_c_try_compile "$LINENO"; then : 15699 xorg_cv_cc_flag_unused_command_line_argument=yes 15700else 15701 xorg_cv_cc_flag_unused_command_line_argument=no 15702fi 15703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15704fi 15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15706$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15708 CFLAGS="$xorg_testset_save_CFLAGS" 15709fi 15710 15711found="no" 15712 15713 if test $found = "no" ; then 15714 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15716 fi 15717 15718 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15720 fi 15721 15722 CFLAGS="$CFLAGS -Winit-self" 15723 15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15725$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15726 cacheid=xorg_cv_cc_flag__Winit_self 15727 if eval \${$cacheid+:} false; then : 15728 $as_echo_n "(cached) " >&6 15729else 15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15731/* end confdefs.h. */ 15732int i; 15733int 15734main () 15735{ 15736 15737 ; 15738 return 0; 15739} 15740_ACEOF 15741if ac_fn_c_try_link "$LINENO"; then : 15742 eval $cacheid=yes 15743else 15744 eval $cacheid=no 15745fi 15746rm -f core conftest.err conftest.$ac_objext \ 15747 conftest$ac_exeext conftest.$ac_ext 15748fi 15749 15750 15751 CFLAGS="$xorg_testset_save_CFLAGS" 15752 15753 eval supported=\$$cacheid 15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15755$as_echo "$supported" >&6; } 15756 if test "$supported" = "yes" ; then 15757 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15758 found="yes" 15759 fi 15760 fi 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776xorg_testset_save_CFLAGS="$CFLAGS" 15777 15778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15781$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15782if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15783 $as_echo_n "(cached) " >&6 15784else 15785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15786/* end confdefs.h. */ 15787int i; 15788_ACEOF 15789if ac_fn_c_try_compile "$LINENO"; then : 15790 xorg_cv_cc_flag_unknown_warning_option=yes 15791else 15792 xorg_cv_cc_flag_unknown_warning_option=no 15793fi 15794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15795fi 15796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15797$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15799 CFLAGS="$xorg_testset_save_CFLAGS" 15800fi 15801 15802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15805 fi 15806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15808$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15809if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15810 $as_echo_n "(cached) " >&6 15811else 15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15813/* end confdefs.h. */ 15814int i; 15815_ACEOF 15816if ac_fn_c_try_compile "$LINENO"; then : 15817 xorg_cv_cc_flag_unused_command_line_argument=yes 15818else 15819 xorg_cv_cc_flag_unused_command_line_argument=no 15820fi 15821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15822fi 15823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15824$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15826 CFLAGS="$xorg_testset_save_CFLAGS" 15827fi 15828 15829found="no" 15830 15831 if test $found = "no" ; then 15832 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15834 fi 15835 15836 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15838 fi 15839 15840 CFLAGS="$CFLAGS -Wmain" 15841 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 15843$as_echo_n "checking if $CC supports -Wmain... " >&6; } 15844 cacheid=xorg_cv_cc_flag__Wmain 15845 if eval \${$cacheid+:} false; then : 15846 $as_echo_n "(cached) " >&6 15847else 15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15849/* end confdefs.h. */ 15850int i; 15851int 15852main () 15853{ 15854 15855 ; 15856 return 0; 15857} 15858_ACEOF 15859if ac_fn_c_try_link "$LINENO"; then : 15860 eval $cacheid=yes 15861else 15862 eval $cacheid=no 15863fi 15864rm -f core conftest.err conftest.$ac_objext \ 15865 conftest$ac_exeext conftest.$ac_ext 15866fi 15867 15868 15869 CFLAGS="$xorg_testset_save_CFLAGS" 15870 15871 eval supported=\$$cacheid 15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15873$as_echo "$supported" >&6; } 15874 if test "$supported" = "yes" ; then 15875 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 15876 found="yes" 15877 fi 15878 fi 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894xorg_testset_save_CFLAGS="$CFLAGS" 15895 15896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15900if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15901 $as_echo_n "(cached) " >&6 15902else 15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15904/* end confdefs.h. */ 15905int i; 15906_ACEOF 15907if ac_fn_c_try_compile "$LINENO"; then : 15908 xorg_cv_cc_flag_unknown_warning_option=yes 15909else 15910 xorg_cv_cc_flag_unknown_warning_option=no 15911fi 15912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15913fi 15914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15915$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15917 CFLAGS="$xorg_testset_save_CFLAGS" 15918fi 15919 15920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15923 fi 15924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15926$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15927if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15928 $as_echo_n "(cached) " >&6 15929else 15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15931/* end confdefs.h. */ 15932int i; 15933_ACEOF 15934if ac_fn_c_try_compile "$LINENO"; then : 15935 xorg_cv_cc_flag_unused_command_line_argument=yes 15936else 15937 xorg_cv_cc_flag_unused_command_line_argument=no 15938fi 15939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15940fi 15941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15942$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15944 CFLAGS="$xorg_testset_save_CFLAGS" 15945fi 15946 15947found="no" 15948 15949 if test $found = "no" ; then 15950 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15952 fi 15953 15954 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15956 fi 15957 15958 CFLAGS="$CFLAGS -Wmissing-braces" 15959 15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 15961$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 15962 cacheid=xorg_cv_cc_flag__Wmissing_braces 15963 if eval \${$cacheid+:} false; then : 15964 $as_echo_n "(cached) " >&6 15965else 15966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15967/* end confdefs.h. */ 15968int i; 15969int 15970main () 15971{ 15972 15973 ; 15974 return 0; 15975} 15976_ACEOF 15977if ac_fn_c_try_link "$LINENO"; then : 15978 eval $cacheid=yes 15979else 15980 eval $cacheid=no 15981fi 15982rm -f core conftest.err conftest.$ac_objext \ 15983 conftest$ac_exeext conftest.$ac_ext 15984fi 15985 15986 15987 CFLAGS="$xorg_testset_save_CFLAGS" 15988 15989 eval supported=\$$cacheid 15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15991$as_echo "$supported" >&6; } 15992 if test "$supported" = "yes" ; then 15993 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 15994 found="yes" 15995 fi 15996 fi 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012xorg_testset_save_CFLAGS="$CFLAGS" 16013 16014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16019 $as_echo_n "(cached) " >&6 16020else 16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16022/* end confdefs.h. */ 16023int i; 16024_ACEOF 16025if ac_fn_c_try_compile "$LINENO"; then : 16026 xorg_cv_cc_flag_unknown_warning_option=yes 16027else 16028 xorg_cv_cc_flag_unknown_warning_option=no 16029fi 16030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16031fi 16032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16035 CFLAGS="$xorg_testset_save_CFLAGS" 16036fi 16037 16038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16041 fi 16042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16046 $as_echo_n "(cached) " >&6 16047else 16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16049/* end confdefs.h. */ 16050int i; 16051_ACEOF 16052if ac_fn_c_try_compile "$LINENO"; then : 16053 xorg_cv_cc_flag_unused_command_line_argument=yes 16054else 16055 xorg_cv_cc_flag_unused_command_line_argument=no 16056fi 16057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16058fi 16059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16062 CFLAGS="$xorg_testset_save_CFLAGS" 16063fi 16064 16065found="no" 16066 16067 if test $found = "no" ; then 16068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16070 fi 16071 16072 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16074 fi 16075 16076 CFLAGS="$CFLAGS -Wsequence-point" 16077 16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16079$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16080 cacheid=xorg_cv_cc_flag__Wsequence_point 16081 if eval \${$cacheid+:} false; then : 16082 $as_echo_n "(cached) " >&6 16083else 16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16085/* end confdefs.h. */ 16086int i; 16087int 16088main () 16089{ 16090 16091 ; 16092 return 0; 16093} 16094_ACEOF 16095if ac_fn_c_try_link "$LINENO"; then : 16096 eval $cacheid=yes 16097else 16098 eval $cacheid=no 16099fi 16100rm -f core conftest.err conftest.$ac_objext \ 16101 conftest$ac_exeext conftest.$ac_ext 16102fi 16103 16104 16105 CFLAGS="$xorg_testset_save_CFLAGS" 16106 16107 eval supported=\$$cacheid 16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16109$as_echo "$supported" >&6; } 16110 if test "$supported" = "yes" ; then 16111 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16112 found="yes" 16113 fi 16114 fi 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130xorg_testset_save_CFLAGS="$CFLAGS" 16131 16132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16137 $as_echo_n "(cached) " >&6 16138else 16139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16140/* end confdefs.h. */ 16141int i; 16142_ACEOF 16143if ac_fn_c_try_compile "$LINENO"; then : 16144 xorg_cv_cc_flag_unknown_warning_option=yes 16145else 16146 xorg_cv_cc_flag_unknown_warning_option=no 16147fi 16148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16149fi 16150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16153 CFLAGS="$xorg_testset_save_CFLAGS" 16154fi 16155 16156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16159 fi 16160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16164 $as_echo_n "(cached) " >&6 16165else 16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16167/* end confdefs.h. */ 16168int i; 16169_ACEOF 16170if ac_fn_c_try_compile "$LINENO"; then : 16171 xorg_cv_cc_flag_unused_command_line_argument=yes 16172else 16173 xorg_cv_cc_flag_unused_command_line_argument=no 16174fi 16175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16176fi 16177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16180 CFLAGS="$xorg_testset_save_CFLAGS" 16181fi 16182 16183found="no" 16184 16185 if test $found = "no" ; then 16186 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16188 fi 16189 16190 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16192 fi 16193 16194 CFLAGS="$CFLAGS -Wreturn-type" 16195 16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16197$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16198 cacheid=xorg_cv_cc_flag__Wreturn_type 16199 if eval \${$cacheid+:} false; then : 16200 $as_echo_n "(cached) " >&6 16201else 16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16203/* end confdefs.h. */ 16204int i; 16205int 16206main () 16207{ 16208 16209 ; 16210 return 0; 16211} 16212_ACEOF 16213if ac_fn_c_try_link "$LINENO"; then : 16214 eval $cacheid=yes 16215else 16216 eval $cacheid=no 16217fi 16218rm -f core conftest.err conftest.$ac_objext \ 16219 conftest$ac_exeext conftest.$ac_ext 16220fi 16221 16222 16223 CFLAGS="$xorg_testset_save_CFLAGS" 16224 16225 eval supported=\$$cacheid 16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16227$as_echo "$supported" >&6; } 16228 if test "$supported" = "yes" ; then 16229 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16230 found="yes" 16231 fi 16232 fi 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248xorg_testset_save_CFLAGS="$CFLAGS" 16249 16250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16255 $as_echo_n "(cached) " >&6 16256else 16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16258/* end confdefs.h. */ 16259int i; 16260_ACEOF 16261if ac_fn_c_try_compile "$LINENO"; then : 16262 xorg_cv_cc_flag_unknown_warning_option=yes 16263else 16264 xorg_cv_cc_flag_unknown_warning_option=no 16265fi 16266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16267fi 16268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16271 CFLAGS="$xorg_testset_save_CFLAGS" 16272fi 16273 16274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16277 fi 16278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16282 $as_echo_n "(cached) " >&6 16283else 16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16285/* end confdefs.h. */ 16286int i; 16287_ACEOF 16288if ac_fn_c_try_compile "$LINENO"; then : 16289 xorg_cv_cc_flag_unused_command_line_argument=yes 16290else 16291 xorg_cv_cc_flag_unused_command_line_argument=no 16292fi 16293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16294fi 16295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16298 CFLAGS="$xorg_testset_save_CFLAGS" 16299fi 16300 16301found="no" 16302 16303 if test $found = "no" ; then 16304 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16306 fi 16307 16308 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16310 fi 16311 16312 CFLAGS="$CFLAGS -Wtrigraphs" 16313 16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16315$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16316 cacheid=xorg_cv_cc_flag__Wtrigraphs 16317 if eval \${$cacheid+:} false; then : 16318 $as_echo_n "(cached) " >&6 16319else 16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16321/* end confdefs.h. */ 16322int i; 16323int 16324main () 16325{ 16326 16327 ; 16328 return 0; 16329} 16330_ACEOF 16331if ac_fn_c_try_link "$LINENO"; then : 16332 eval $cacheid=yes 16333else 16334 eval $cacheid=no 16335fi 16336rm -f core conftest.err conftest.$ac_objext \ 16337 conftest$ac_exeext conftest.$ac_ext 16338fi 16339 16340 16341 CFLAGS="$xorg_testset_save_CFLAGS" 16342 16343 eval supported=\$$cacheid 16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16345$as_echo "$supported" >&6; } 16346 if test "$supported" = "yes" ; then 16347 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16348 found="yes" 16349 fi 16350 fi 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366xorg_testset_save_CFLAGS="$CFLAGS" 16367 16368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16371$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16372if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16373 $as_echo_n "(cached) " >&6 16374else 16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16376/* end confdefs.h. */ 16377int i; 16378_ACEOF 16379if ac_fn_c_try_compile "$LINENO"; then : 16380 xorg_cv_cc_flag_unknown_warning_option=yes 16381else 16382 xorg_cv_cc_flag_unknown_warning_option=no 16383fi 16384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16385fi 16386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16387$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16389 CFLAGS="$xorg_testset_save_CFLAGS" 16390fi 16391 16392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16395 fi 16396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16398$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16399if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16400 $as_echo_n "(cached) " >&6 16401else 16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16403/* end confdefs.h. */ 16404int i; 16405_ACEOF 16406if ac_fn_c_try_compile "$LINENO"; then : 16407 xorg_cv_cc_flag_unused_command_line_argument=yes 16408else 16409 xorg_cv_cc_flag_unused_command_line_argument=no 16410fi 16411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16412fi 16413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16414$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16416 CFLAGS="$xorg_testset_save_CFLAGS" 16417fi 16418 16419found="no" 16420 16421 if test $found = "no" ; then 16422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16424 fi 16425 16426 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16428 fi 16429 16430 CFLAGS="$CFLAGS -Warray-bounds" 16431 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16433$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16434 cacheid=xorg_cv_cc_flag__Warray_bounds 16435 if eval \${$cacheid+:} false; then : 16436 $as_echo_n "(cached) " >&6 16437else 16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16439/* end confdefs.h. */ 16440int i; 16441int 16442main () 16443{ 16444 16445 ; 16446 return 0; 16447} 16448_ACEOF 16449if ac_fn_c_try_link "$LINENO"; then : 16450 eval $cacheid=yes 16451else 16452 eval $cacheid=no 16453fi 16454rm -f core conftest.err conftest.$ac_objext \ 16455 conftest$ac_exeext conftest.$ac_ext 16456fi 16457 16458 16459 CFLAGS="$xorg_testset_save_CFLAGS" 16460 16461 eval supported=\$$cacheid 16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16463$as_echo "$supported" >&6; } 16464 if test "$supported" = "yes" ; then 16465 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16466 found="yes" 16467 fi 16468 fi 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484xorg_testset_save_CFLAGS="$CFLAGS" 16485 16486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16491 $as_echo_n "(cached) " >&6 16492else 16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16494/* end confdefs.h. */ 16495int i; 16496_ACEOF 16497if ac_fn_c_try_compile "$LINENO"; then : 16498 xorg_cv_cc_flag_unknown_warning_option=yes 16499else 16500 xorg_cv_cc_flag_unknown_warning_option=no 16501fi 16502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16503fi 16504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16507 CFLAGS="$xorg_testset_save_CFLAGS" 16508fi 16509 16510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16513 fi 16514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16518 $as_echo_n "(cached) " >&6 16519else 16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16521/* end confdefs.h. */ 16522int i; 16523_ACEOF 16524if ac_fn_c_try_compile "$LINENO"; then : 16525 xorg_cv_cc_flag_unused_command_line_argument=yes 16526else 16527 xorg_cv_cc_flag_unused_command_line_argument=no 16528fi 16529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16530fi 16531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16534 CFLAGS="$xorg_testset_save_CFLAGS" 16535fi 16536 16537found="no" 16538 16539 if test $found = "no" ; then 16540 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16542 fi 16543 16544 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16546 fi 16547 16548 CFLAGS="$CFLAGS -Wwrite-strings" 16549 16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16551$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16552 cacheid=xorg_cv_cc_flag__Wwrite_strings 16553 if eval \${$cacheid+:} false; then : 16554 $as_echo_n "(cached) " >&6 16555else 16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16557/* end confdefs.h. */ 16558int i; 16559int 16560main () 16561{ 16562 16563 ; 16564 return 0; 16565} 16566_ACEOF 16567if ac_fn_c_try_link "$LINENO"; then : 16568 eval $cacheid=yes 16569else 16570 eval $cacheid=no 16571fi 16572rm -f core conftest.err conftest.$ac_objext \ 16573 conftest$ac_exeext conftest.$ac_ext 16574fi 16575 16576 16577 CFLAGS="$xorg_testset_save_CFLAGS" 16578 16579 eval supported=\$$cacheid 16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16581$as_echo "$supported" >&6; } 16582 if test "$supported" = "yes" ; then 16583 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16584 found="yes" 16585 fi 16586 fi 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602xorg_testset_save_CFLAGS="$CFLAGS" 16603 16604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16609 $as_echo_n "(cached) " >&6 16610else 16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16612/* end confdefs.h. */ 16613int i; 16614_ACEOF 16615if ac_fn_c_try_compile "$LINENO"; then : 16616 xorg_cv_cc_flag_unknown_warning_option=yes 16617else 16618 xorg_cv_cc_flag_unknown_warning_option=no 16619fi 16620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16621fi 16622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16625 CFLAGS="$xorg_testset_save_CFLAGS" 16626fi 16627 16628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16631 fi 16632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16636 $as_echo_n "(cached) " >&6 16637else 16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16639/* end confdefs.h. */ 16640int i; 16641_ACEOF 16642if ac_fn_c_try_compile "$LINENO"; then : 16643 xorg_cv_cc_flag_unused_command_line_argument=yes 16644else 16645 xorg_cv_cc_flag_unused_command_line_argument=no 16646fi 16647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16648fi 16649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16652 CFLAGS="$xorg_testset_save_CFLAGS" 16653fi 16654 16655found="no" 16656 16657 if test $found = "no" ; then 16658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16660 fi 16661 16662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16664 fi 16665 16666 CFLAGS="$CFLAGS -Waddress" 16667 16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16669$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16670 cacheid=xorg_cv_cc_flag__Waddress 16671 if eval \${$cacheid+:} false; then : 16672 $as_echo_n "(cached) " >&6 16673else 16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16675/* end confdefs.h. */ 16676int i; 16677int 16678main () 16679{ 16680 16681 ; 16682 return 0; 16683} 16684_ACEOF 16685if ac_fn_c_try_link "$LINENO"; then : 16686 eval $cacheid=yes 16687else 16688 eval $cacheid=no 16689fi 16690rm -f core conftest.err conftest.$ac_objext \ 16691 conftest$ac_exeext conftest.$ac_ext 16692fi 16693 16694 16695 CFLAGS="$xorg_testset_save_CFLAGS" 16696 16697 eval supported=\$$cacheid 16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16699$as_echo "$supported" >&6; } 16700 if test "$supported" = "yes" ; then 16701 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16702 found="yes" 16703 fi 16704 fi 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720xorg_testset_save_CFLAGS="$CFLAGS" 16721 16722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16727 $as_echo_n "(cached) " >&6 16728else 16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16730/* end confdefs.h. */ 16731int i; 16732_ACEOF 16733if ac_fn_c_try_compile "$LINENO"; then : 16734 xorg_cv_cc_flag_unknown_warning_option=yes 16735else 16736 xorg_cv_cc_flag_unknown_warning_option=no 16737fi 16738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16739fi 16740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16743 CFLAGS="$xorg_testset_save_CFLAGS" 16744fi 16745 16746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16749 fi 16750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16754 $as_echo_n "(cached) " >&6 16755else 16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16757/* end confdefs.h. */ 16758int i; 16759_ACEOF 16760if ac_fn_c_try_compile "$LINENO"; then : 16761 xorg_cv_cc_flag_unused_command_line_argument=yes 16762else 16763 xorg_cv_cc_flag_unused_command_line_argument=no 16764fi 16765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16766fi 16767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16770 CFLAGS="$xorg_testset_save_CFLAGS" 16771fi 16772 16773found="no" 16774 16775 if test $found = "no" ; then 16776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16778 fi 16779 16780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16782 fi 16783 16784 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16785 16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16787$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16788 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16789 if eval \${$cacheid+:} false; then : 16790 $as_echo_n "(cached) " >&6 16791else 16792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16793/* end confdefs.h. */ 16794int i; 16795int 16796main () 16797{ 16798 16799 ; 16800 return 0; 16801} 16802_ACEOF 16803if ac_fn_c_try_link "$LINENO"; then : 16804 eval $cacheid=yes 16805else 16806 eval $cacheid=no 16807fi 16808rm -f core conftest.err conftest.$ac_objext \ 16809 conftest$ac_exeext conftest.$ac_ext 16810fi 16811 16812 16813 CFLAGS="$xorg_testset_save_CFLAGS" 16814 16815 eval supported=\$$cacheid 16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16817$as_echo "$supported" >&6; } 16818 if test "$supported" = "yes" ; then 16819 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16820 found="yes" 16821 fi 16822 fi 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838xorg_testset_save_CFLAGS="$CFLAGS" 16839 16840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16845 $as_echo_n "(cached) " >&6 16846else 16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16848/* end confdefs.h. */ 16849int i; 16850_ACEOF 16851if ac_fn_c_try_compile "$LINENO"; then : 16852 xorg_cv_cc_flag_unknown_warning_option=yes 16853else 16854 xorg_cv_cc_flag_unknown_warning_option=no 16855fi 16856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16857fi 16858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16861 CFLAGS="$xorg_testset_save_CFLAGS" 16862fi 16863 16864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16867 fi 16868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16872 $as_echo_n "(cached) " >&6 16873else 16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16875/* end confdefs.h. */ 16876int i; 16877_ACEOF 16878if ac_fn_c_try_compile "$LINENO"; then : 16879 xorg_cv_cc_flag_unused_command_line_argument=yes 16880else 16881 xorg_cv_cc_flag_unused_command_line_argument=no 16882fi 16883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16884fi 16885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16888 CFLAGS="$xorg_testset_save_CFLAGS" 16889fi 16890 16891found="no" 16892 16893 if test $found = "no" ; then 16894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16896 fi 16897 16898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16900 fi 16901 16902 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 16903 16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 16905$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 16906 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 16907 if eval \${$cacheid+:} false; then : 16908 $as_echo_n "(cached) " >&6 16909else 16910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16911/* end confdefs.h. */ 16912int i; 16913int 16914main () 16915{ 16916 16917 ; 16918 return 0; 16919} 16920_ACEOF 16921if ac_fn_c_try_link "$LINENO"; then : 16922 eval $cacheid=yes 16923else 16924 eval $cacheid=no 16925fi 16926rm -f core conftest.err conftest.$ac_objext \ 16927 conftest$ac_exeext conftest.$ac_ext 16928fi 16929 16930 16931 CFLAGS="$xorg_testset_save_CFLAGS" 16932 16933 eval supported=\$$cacheid 16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16935$as_echo "$supported" >&6; } 16936 if test "$supported" = "yes" ; then 16937 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 16938 found="yes" 16939 fi 16940 fi 16941 16942 16943fi 16944 16945 16946 16947 16948 16949 16950 16951 CWARNFLAGS="$BASE_CFLAGS" 16952 if test "x$GCC" = xyes ; then 16953 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 16954 fi 16955 16956 16957 16958 16959 16960 16961 16962 16963# Check whether --enable-strict-compilation was given. 16964if test "${enable_strict_compilation+set}" = set; then : 16965 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 16966else 16967 STRICT_COMPILE=no 16968fi 16969 16970 16971 16972 16973 16974 16975STRICT_CFLAGS="" 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989xorg_testset_save_CFLAGS="$CFLAGS" 16990 16991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16994$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16995if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16996 $as_echo_n "(cached) " >&6 16997else 16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16999/* end confdefs.h. */ 17000int i; 17001_ACEOF 17002if ac_fn_c_try_compile "$LINENO"; then : 17003 xorg_cv_cc_flag_unknown_warning_option=yes 17004else 17005 xorg_cv_cc_flag_unknown_warning_option=no 17006fi 17007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17008fi 17009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17010$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17012 CFLAGS="$xorg_testset_save_CFLAGS" 17013fi 17014 17015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17018 fi 17019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17021$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17022if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17023 $as_echo_n "(cached) " >&6 17024else 17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17026/* end confdefs.h. */ 17027int i; 17028_ACEOF 17029if ac_fn_c_try_compile "$LINENO"; then : 17030 xorg_cv_cc_flag_unused_command_line_argument=yes 17031else 17032 xorg_cv_cc_flag_unused_command_line_argument=no 17033fi 17034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17035fi 17036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17037$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17039 CFLAGS="$xorg_testset_save_CFLAGS" 17040fi 17041 17042found="no" 17043 17044 if test $found = "no" ; then 17045 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17047 fi 17048 17049 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17051 fi 17052 17053 CFLAGS="$CFLAGS -pedantic" 17054 17055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17056$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17057 cacheid=xorg_cv_cc_flag__pedantic 17058 if eval \${$cacheid+:} false; then : 17059 $as_echo_n "(cached) " >&6 17060else 17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17062/* end confdefs.h. */ 17063int i; 17064int 17065main () 17066{ 17067 17068 ; 17069 return 0; 17070} 17071_ACEOF 17072if ac_fn_c_try_link "$LINENO"; then : 17073 eval $cacheid=yes 17074else 17075 eval $cacheid=no 17076fi 17077rm -f core conftest.err conftest.$ac_objext \ 17078 conftest$ac_exeext conftest.$ac_ext 17079fi 17080 17081 17082 CFLAGS="$xorg_testset_save_CFLAGS" 17083 17084 eval supported=\$$cacheid 17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17086$as_echo "$supported" >&6; } 17087 if test "$supported" = "yes" ; then 17088 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17089 found="yes" 17090 fi 17091 fi 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107xorg_testset_save_CFLAGS="$CFLAGS" 17108 17109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17114 $as_echo_n "(cached) " >&6 17115else 17116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17117/* end confdefs.h. */ 17118int i; 17119_ACEOF 17120if ac_fn_c_try_compile "$LINENO"; then : 17121 xorg_cv_cc_flag_unknown_warning_option=yes 17122else 17123 xorg_cv_cc_flag_unknown_warning_option=no 17124fi 17125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17126fi 17127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17130 CFLAGS="$xorg_testset_save_CFLAGS" 17131fi 17132 17133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17136 fi 17137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17141 $as_echo_n "(cached) " >&6 17142else 17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17144/* end confdefs.h. */ 17145int i; 17146_ACEOF 17147if ac_fn_c_try_compile "$LINENO"; then : 17148 xorg_cv_cc_flag_unused_command_line_argument=yes 17149else 17150 xorg_cv_cc_flag_unused_command_line_argument=no 17151fi 17152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17153fi 17154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17157 CFLAGS="$xorg_testset_save_CFLAGS" 17158fi 17159 17160found="no" 17161 17162 if test $found = "no" ; then 17163 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17165 fi 17166 17167 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17169 fi 17170 17171 CFLAGS="$CFLAGS -Werror" 17172 17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17174$as_echo_n "checking if $CC supports -Werror... " >&6; } 17175 cacheid=xorg_cv_cc_flag__Werror 17176 if eval \${$cacheid+:} false; then : 17177 $as_echo_n "(cached) " >&6 17178else 17179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17180/* end confdefs.h. */ 17181int i; 17182int 17183main () 17184{ 17185 17186 ; 17187 return 0; 17188} 17189_ACEOF 17190if ac_fn_c_try_link "$LINENO"; then : 17191 eval $cacheid=yes 17192else 17193 eval $cacheid=no 17194fi 17195rm -f core conftest.err conftest.$ac_objext \ 17196 conftest$ac_exeext conftest.$ac_ext 17197fi 17198 17199 17200 CFLAGS="$xorg_testset_save_CFLAGS" 17201 17202 eval supported=\$$cacheid 17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17204$as_echo "$supported" >&6; } 17205 if test "$supported" = "yes" ; then 17206 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17207 found="yes" 17208 fi 17209 fi 17210 17211 if test $found = "no" ; then 17212 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17214 fi 17215 17216 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17218 fi 17219 17220 CFLAGS="$CFLAGS -errwarn" 17221 17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17223$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17224 cacheid=xorg_cv_cc_flag__errwarn 17225 if eval \${$cacheid+:} false; then : 17226 $as_echo_n "(cached) " >&6 17227else 17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17229/* end confdefs.h. */ 17230int i; 17231int 17232main () 17233{ 17234 17235 ; 17236 return 0; 17237} 17238_ACEOF 17239if ac_fn_c_try_link "$LINENO"; then : 17240 eval $cacheid=yes 17241else 17242 eval $cacheid=no 17243fi 17244rm -f core conftest.err conftest.$ac_objext \ 17245 conftest$ac_exeext conftest.$ac_ext 17246fi 17247 17248 17249 CFLAGS="$xorg_testset_save_CFLAGS" 17250 17251 eval supported=\$$cacheid 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17253$as_echo "$supported" >&6; } 17254 if test "$supported" = "yes" ; then 17255 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17256 found="yes" 17257 fi 17258 fi 17259 17260 17261 17262# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17263# activate it with -Werror, so we add it here explicitly. 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277xorg_testset_save_CFLAGS="$CFLAGS" 17278 17279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17284 $as_echo_n "(cached) " >&6 17285else 17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17287/* end confdefs.h. */ 17288int i; 17289_ACEOF 17290if ac_fn_c_try_compile "$LINENO"; then : 17291 xorg_cv_cc_flag_unknown_warning_option=yes 17292else 17293 xorg_cv_cc_flag_unknown_warning_option=no 17294fi 17295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17296fi 17297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17300 CFLAGS="$xorg_testset_save_CFLAGS" 17301fi 17302 17303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17306 fi 17307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17311 $as_echo_n "(cached) " >&6 17312else 17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17314/* end confdefs.h. */ 17315int i; 17316_ACEOF 17317if ac_fn_c_try_compile "$LINENO"; then : 17318 xorg_cv_cc_flag_unused_command_line_argument=yes 17319else 17320 xorg_cv_cc_flag_unused_command_line_argument=no 17321fi 17322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17323fi 17324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17327 CFLAGS="$xorg_testset_save_CFLAGS" 17328fi 17329 17330found="no" 17331 17332 if test $found = "no" ; then 17333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17335 fi 17336 17337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17339 fi 17340 17341 CFLAGS="$CFLAGS -Werror=attributes" 17342 17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17344$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17345 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 17346 if eval \${$cacheid+:} false; then : 17347 $as_echo_n "(cached) " >&6 17348else 17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17350/* end confdefs.h. */ 17351int i; 17352int 17353main () 17354{ 17355 17356 ; 17357 return 0; 17358} 17359_ACEOF 17360if ac_fn_c_try_link "$LINENO"; then : 17361 eval $cacheid=yes 17362else 17363 eval $cacheid=no 17364fi 17365rm -f core conftest.err conftest.$ac_objext \ 17366 conftest$ac_exeext conftest.$ac_ext 17367fi 17368 17369 17370 CFLAGS="$xorg_testset_save_CFLAGS" 17371 17372 eval supported=\$$cacheid 17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17374$as_echo "$supported" >&6; } 17375 if test "$supported" = "yes" ; then 17376 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17377 found="yes" 17378 fi 17379 fi 17380 17381 17382 17383if test "x$STRICT_COMPILE" = "xyes"; then 17384 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17385 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17386fi 17387 17388 17389 17390 17391 17392 17393cat >>confdefs.h <<_ACEOF 17394#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17395_ACEOF 17396 17397 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17398 if test "x$PVM" = "x"; then 17399 PVM="0" 17400 fi 17401 17402cat >>confdefs.h <<_ACEOF 17403#define PACKAGE_VERSION_MINOR $PVM 17404_ACEOF 17405 17406 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17407 if test "x$PVP" = "x"; then 17408 PVP="0" 17409 fi 17410 17411cat >>confdefs.h <<_ACEOF 17412#define PACKAGE_VERSION_PATCHLEVEL $PVP 17413_ACEOF 17414 17415 17416 17417CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17418mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17419|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17420echo 'git directory not found: installing possibly empty changelog.' >&2)" 17421 17422 17423 17424 17425macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17426INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17427mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17428|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17429echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17430 17431 17432 17433 17434 17435 17436if test x$APP_MAN_SUFFIX = x ; then 17437 APP_MAN_SUFFIX=1 17438fi 17439if test x$APP_MAN_DIR = x ; then 17440 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17441fi 17442 17443if test x$LIB_MAN_SUFFIX = x ; then 17444 LIB_MAN_SUFFIX=3 17445fi 17446if test x$LIB_MAN_DIR = x ; then 17447 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17448fi 17449 17450if test x$FILE_MAN_SUFFIX = x ; then 17451 case $host_os in 17452 solaris*) FILE_MAN_SUFFIX=4 ;; 17453 *) FILE_MAN_SUFFIX=5 ;; 17454 esac 17455fi 17456if test x$FILE_MAN_DIR = x ; then 17457 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17458fi 17459 17460if test x$MISC_MAN_SUFFIX = x ; then 17461 case $host_os in 17462 solaris*) MISC_MAN_SUFFIX=5 ;; 17463 *) MISC_MAN_SUFFIX=7 ;; 17464 esac 17465fi 17466if test x$MISC_MAN_DIR = x ; then 17467 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17468fi 17469 17470if test x$DRIVER_MAN_SUFFIX = x ; then 17471 case $host_os in 17472 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17473 *) DRIVER_MAN_SUFFIX=4 ;; 17474 esac 17475fi 17476if test x$DRIVER_MAN_DIR = x ; then 17477 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17478fi 17479 17480if test x$ADMIN_MAN_SUFFIX = x ; then 17481 case $host_os in 17482 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17483 *) ADMIN_MAN_SUFFIX=8 ;; 17484 esac 17485fi 17486if test x$ADMIN_MAN_DIR = x ; then 17487 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17488fi 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504XORG_MAN_PAGE="X Version 11" 17505 17506MAN_SUBSTS="\ 17507 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17508 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17509 -e 's|__xservername__|Xorg|g' \ 17510 -e 's|__xconfigfile__|xorg.conf|g' \ 17511 -e 's|__projectroot__|\$(prefix)|g' \ 17512 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17513 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17514 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17515 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17516 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17517 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17518 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17519 17520 17521 17522# Check whether --enable-silent-rules was given. 17523if test "${enable_silent_rules+set}" = set; then : 17524 enableval=$enable_silent_rules; 17525fi 17526 17527case $enable_silent_rules in 17528yes) AM_DEFAULT_VERBOSITY=0;; 17529no) AM_DEFAULT_VERBOSITY=1;; 17530*) AM_DEFAULT_VERBOSITY=0;; 17531esac 17532AM_BACKSLASH='\' 17533 17534 17535 17536# Set library version for Xft.h from package version set in AC_INIT 17537# copied from PACKAGE_VERSION_* settings in XORG_VERSION 17538ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h" 17539 17540 17541cat >>confdefs.h <<_ACEOF 17542#define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17543_ACEOF 17544 17545 17546cat >>confdefs.h <<_ACEOF 17547#define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17548_ACEOF 17549 17550 17551cat >>confdefs.h <<_ACEOF 17552#define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17553_ACEOF 17554 17555 17556XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'` 17557 17558 17559# 17560# Check for Xrender 17561# 17562 17563pkg_failed=no 17564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5 17565$as_echo_n "checking for XRENDER... " >&6; } 17566 17567if test -n "$XRENDER_CFLAGS"; then 17568 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS" 17569 elif test -n "$PKG_CONFIG"; then 17570 if test -n "$PKG_CONFIG" && \ 17571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5 17572 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5 17573 ac_status=$? 17574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17575 test $ac_status = 0; }; then 17576 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11" 2>/dev/null` 17577else 17578 pkg_failed=yes 17579fi 17580 else 17581 pkg_failed=untried 17582fi 17583if test -n "$XRENDER_LIBS"; then 17584 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS" 17585 elif test -n "$PKG_CONFIG"; then 17586 if test -n "$PKG_CONFIG" && \ 17587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11\""; } >&5 17588 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11") 2>&5 17589 ac_status=$? 17590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17591 test $ac_status = 0; }; then 17592 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11" 2>/dev/null` 17593else 17594 pkg_failed=yes 17595fi 17596 else 17597 pkg_failed=untried 17598fi 17599 17600 17601 17602if test $pkg_failed = yes; then 17603 17604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17605 _pkg_short_errors_supported=yes 17606else 17607 _pkg_short_errors_supported=no 17608fi 17609 if test $_pkg_short_errors_supported = yes; then 17610 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender >= 0.8.2 x11" 2>&1` 17611 else 17612 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender >= 0.8.2 x11" 2>&1` 17613 fi 17614 # Put the nasty error message in config.log where it belongs 17615 echo "$XRENDER_PKG_ERRORS" >&5 17616 17617 as_fn_error $? "Package requirements (xrender >= 0.8.2 x11) were not met: 17618 17619$XRENDER_PKG_ERRORS 17620 17621Consider adjusting the PKG_CONFIG_PATH environment variable if you 17622installed software in a non-standard prefix. 17623 17624Alternatively, you may set the environment variables XRENDER_CFLAGS 17625and XRENDER_LIBS to avoid the need to call pkg-config. 17626See the pkg-config man page for more details. 17627" "$LINENO" 5 17628elif test $pkg_failed = untried; then 17629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17631as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17632is in your PATH or set the PKG_CONFIG environment variable to the full 17633path to pkg-config. 17634 17635Alternatively, you may set the environment variables XRENDER_CFLAGS 17636and XRENDER_LIBS to avoid the need to call pkg-config. 17637See the pkg-config man page for more details. 17638 17639To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17640See \`config.log' for more details" "$LINENO" 5; } 17641else 17642 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS 17643 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS 17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17645$as_echo "yes" >&6; } 17646 : 17647fi 17648 17649# Check freetype configuration 17650 17651pkg_failed=no 17652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 17653$as_echo_n "checking for FREETYPE... " >&6; } 17654 17655if test -n "$FREETYPE_CFLAGS"; then 17656 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 17657 elif test -n "$PKG_CONFIG"; then 17658 if test -n "$PKG_CONFIG" && \ 17659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5 17660 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5 17661 ac_status=$? 17662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17663 test $ac_status = 0; }; then 17664 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null` 17665else 17666 pkg_failed=yes 17667fi 17668 else 17669 pkg_failed=untried 17670fi 17671if test -n "$FREETYPE_LIBS"; then 17672 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 17673 elif test -n "$PKG_CONFIG"; then 17674 if test -n "$PKG_CONFIG" && \ 17675 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5 17676 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5 17677 ac_status=$? 17678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17679 test $ac_status = 0; }; then 17680 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null` 17681else 17682 pkg_failed=yes 17683fi 17684 else 17685 pkg_failed=untried 17686fi 17687 17688 17689 17690if test $pkg_failed = yes; then 17691 17692if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17693 _pkg_short_errors_supported=yes 17694else 17695 _pkg_short_errors_supported=no 17696fi 17697 if test $_pkg_short_errors_supported = yes; then 17698 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2 >= 2.1.6" 2>&1` 17699 else 17700 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2 >= 2.1.6" 2>&1` 17701 fi 17702 # Put the nasty error message in config.log where it belongs 17703 echo "$FREETYPE_PKG_ERRORS" >&5 17704 17705 as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met: 17706 17707$FREETYPE_PKG_ERRORS 17708 17709Consider adjusting the PKG_CONFIG_PATH environment variable if you 17710installed software in a non-standard prefix. 17711 17712Alternatively, you may set the environment variables FREETYPE_CFLAGS 17713and FREETYPE_LIBS to avoid the need to call pkg-config. 17714See the pkg-config man page for more details. 17715" "$LINENO" 5 17716elif test $pkg_failed = untried; then 17717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17719as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17720is in your PATH or set the PKG_CONFIG environment variable to the full 17721path to pkg-config. 17722 17723Alternatively, you may set the environment variables FREETYPE_CFLAGS 17724and FREETYPE_LIBS to avoid the need to call pkg-config. 17725See the pkg-config man page for more details. 17726 17727To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17728See \`config.log' for more details" "$LINENO" 5; } 17729else 17730 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 17731 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17733$as_echo "yes" >&6; } 17734 : 17735fi 17736 17737# Check fontconfig configuration 17738 17739pkg_failed=no 17740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 17741$as_echo_n "checking for FONTCONFIG... " >&6; } 17742 17743if test -n "$FONTCONFIG_CFLAGS"; then 17744 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 17745 elif test -n "$PKG_CONFIG"; then 17746 if test -n "$PKG_CONFIG" && \ 17747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5 17748 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5 17749 ac_status=$? 17750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17751 test $ac_status = 0; }; then 17752 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null` 17753else 17754 pkg_failed=yes 17755fi 17756 else 17757 pkg_failed=untried 17758fi 17759if test -n "$FONTCONFIG_LIBS"; then 17760 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 17761 elif test -n "$PKG_CONFIG"; then 17762 if test -n "$PKG_CONFIG" && \ 17763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5 17764 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5 17765 ac_status=$? 17766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17767 test $ac_status = 0; }; then 17768 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null` 17769else 17770 pkg_failed=yes 17771fi 17772 else 17773 pkg_failed=untried 17774fi 17775 17776 17777 17778if test $pkg_failed = yes; then 17779 17780if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17781 _pkg_short_errors_supported=yes 17782else 17783 _pkg_short_errors_supported=no 17784fi 17785 if test $_pkg_short_errors_supported = yes; then 17786 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.5.92" 2>&1` 17787 else 17788 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.5.92" 2>&1` 17789 fi 17790 # Put the nasty error message in config.log where it belongs 17791 echo "$FONTCONFIG_PKG_ERRORS" >&5 17792 17793 as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met: 17794 17795$FONTCONFIG_PKG_ERRORS 17796 17797Consider adjusting the PKG_CONFIG_PATH environment variable if you 17798installed software in a non-standard prefix. 17799 17800Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 17801and FONTCONFIG_LIBS to avoid the need to call pkg-config. 17802See the pkg-config man page for more details. 17803" "$LINENO" 5 17804elif test $pkg_failed = untried; then 17805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17807as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17808is in your PATH or set the PKG_CONFIG environment variable to the full 17809path to pkg-config. 17810 17811Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 17812and FONTCONFIG_LIBS to avoid the need to call pkg-config. 17813See the pkg-config man page for more details. 17814 17815To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17816See \`config.log' for more details" "$LINENO" 5; } 17817else 17818 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 17819 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17821$as_echo "yes" >&6; } 17822 : 17823fi 17824 17825 17826 17827 17828 17829 17830 17831 17832if test "$VERSION" = "" ; then 17833 VERSION=$PACKAGE_VERSION; 17834fi 17835 17836ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile" 17837 17838cat >confcache <<\_ACEOF 17839# This file is a shell script that caches the results of configure 17840# tests run on this system so they can be shared between configure 17841# scripts and configure runs, see configure's option --config-cache. 17842# It is not useful on other systems. If it contains results you don't 17843# want to keep, you may remove or edit it. 17844# 17845# config.status only pays attention to the cache file if you give it 17846# the --recheck option to rerun configure. 17847# 17848# `ac_cv_env_foo' variables (set or unset) will be overridden when 17849# loading this file, other *unset* `ac_cv_foo' will be assigned the 17850# following values. 17851 17852_ACEOF 17853 17854# The following way of writing the cache mishandles newlines in values, 17855# but we know of no workaround that is simple, portable, and efficient. 17856# So, we kill variables containing newlines. 17857# Ultrix sh set writes to stderr and can't be redirected directly, 17858# and sets the high bit in the cache file unless we assign to the vars. 17859( 17860 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17861 eval ac_val=\$$ac_var 17862 case $ac_val in #( 17863 *${as_nl}*) 17864 case $ac_var in #( 17865 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17866$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17867 esac 17868 case $ac_var in #( 17869 _ | IFS | as_nl) ;; #( 17870 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17871 *) { eval $ac_var=; unset $ac_var;} ;; 17872 esac ;; 17873 esac 17874 done 17875 17876 (set) 2>&1 | 17877 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17878 *${as_nl}ac_space=\ *) 17879 # `set' does not quote correctly, so add quotes: double-quote 17880 # substitution turns \\\\ into \\, and sed turns \\ into \. 17881 sed -n \ 17882 "s/'/'\\\\''/g; 17883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17884 ;; #( 17885 *) 17886 # `set' quotes correctly as required by POSIX, so do not add quotes. 17887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17888 ;; 17889 esac | 17890 sort 17891) | 17892 sed ' 17893 /^ac_cv_env_/b end 17894 t clear 17895 :clear 17896 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17897 t end 17898 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17899 :end' >>confcache 17900if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17901 if test -w "$cache_file"; then 17902 if test "x$cache_file" != "x/dev/null"; then 17903 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17904$as_echo "$as_me: updating cache $cache_file" >&6;} 17905 if test ! -f "$cache_file" || test -h "$cache_file"; then 17906 cat confcache >"$cache_file" 17907 else 17908 case $cache_file in #( 17909 */* | ?:*) 17910 mv -f confcache "$cache_file"$$ && 17911 mv -f "$cache_file"$$ "$cache_file" ;; #( 17912 *) 17913 mv -f confcache "$cache_file" ;; 17914 esac 17915 fi 17916 fi 17917 else 17918 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17919$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17920 fi 17921fi 17922rm -f confcache 17923 17924test "x$prefix" = xNONE && prefix=$ac_default_prefix 17925# Let make expand exec_prefix. 17926test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17927 17928DEFS=-DHAVE_CONFIG_H 17929 17930ac_libobjs= 17931ac_ltlibobjs= 17932U= 17933for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17934 # 1. Remove the extension, and $U if already installed. 17935 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17936 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17937 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17938 # will be set to the directory where LIBOBJS objects are built. 17939 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17940 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17941done 17942LIBOBJS=$ac_libobjs 17943 17944LTLIBOBJS=$ac_ltlibobjs 17945 17946 17947 if test -n "$EXEEXT"; then 17948 am__EXEEXT_TRUE= 17949 am__EXEEXT_FALSE='#' 17950else 17951 am__EXEEXT_TRUE='#' 17952 am__EXEEXT_FALSE= 17953fi 17954 17955if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17956 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17957Usually this means the macro was only invoked conditionally." "$LINENO" 5 17958fi 17959if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17960 as_fn_error $? "conditional \"AMDEP\" was never defined. 17961Usually this means the macro was only invoked conditionally." "$LINENO" 5 17962fi 17963if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17964 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17965Usually this means the macro was only invoked conditionally." "$LINENO" 5 17966fi 17967 17968: "${CONFIG_STATUS=./config.status}" 17969ac_write_fail=0 17970ac_clean_files_save=$ac_clean_files 17971ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17972{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17973$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17974as_write_fail=0 17975cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17976#! $SHELL 17977# Generated by $as_me. 17978# Run this file to recreate the current configuration. 17979# Compiler output produced by configure, useful for debugging 17980# configure, is in config.log if it exists. 17981 17982debug=false 17983ac_cs_recheck=false 17984ac_cs_silent=false 17985 17986SHELL=\${CONFIG_SHELL-$SHELL} 17987export SHELL 17988_ASEOF 17989cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17990## -------------------- ## 17991## M4sh Initialization. ## 17992## -------------------- ## 17993 17994# Be more Bourne compatible 17995DUALCASE=1; export DUALCASE # for MKS sh 17996if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17997 emulate sh 17998 NULLCMD=: 17999 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18000 # is contrary to our usage. Disable this feature. 18001 alias -g '${1+"$@"}'='"$@"' 18002 setopt NO_GLOB_SUBST 18003else 18004 case `(set -o) 2>/dev/null` in #( 18005 *posix*) : 18006 set -o posix ;; #( 18007 *) : 18008 ;; 18009esac 18010fi 18011 18012 18013as_nl=' 18014' 18015export as_nl 18016# Printing a long string crashes Solaris 7 /usr/bin/printf. 18017as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18018as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18019as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18020# Prefer a ksh shell builtin over an external printf program on Solaris, 18021# but without wasting forks for bash or zsh. 18022if test -z "$BASH_VERSION$ZSH_VERSION" \ 18023 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18024 as_echo='print -r --' 18025 as_echo_n='print -rn --' 18026elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18027 as_echo='printf %s\n' 18028 as_echo_n='printf %s' 18029else 18030 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18031 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18032 as_echo_n='/usr/ucb/echo -n' 18033 else 18034 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18035 as_echo_n_body='eval 18036 arg=$1; 18037 case $arg in #( 18038 *"$as_nl"*) 18039 expr "X$arg" : "X\\(.*\\)$as_nl"; 18040 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18041 esac; 18042 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18043 ' 18044 export as_echo_n_body 18045 as_echo_n='sh -c $as_echo_n_body as_echo' 18046 fi 18047 export as_echo_body 18048 as_echo='sh -c $as_echo_body as_echo' 18049fi 18050 18051# The user is always right. 18052if test "${PATH_SEPARATOR+set}" != set; then 18053 PATH_SEPARATOR=: 18054 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18055 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18056 PATH_SEPARATOR=';' 18057 } 18058fi 18059 18060 18061# IFS 18062# We need space, tab and new line, in precisely that order. Quoting is 18063# there to prevent editors from complaining about space-tab. 18064# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18065# splitting by setting IFS to empty value.) 18066IFS=" "" $as_nl" 18067 18068# Find who we are. Look in the path if we contain no directory separator. 18069as_myself= 18070case $0 in #(( 18071 *[\\/]* ) as_myself=$0 ;; 18072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18073for as_dir in $PATH 18074do 18075 IFS=$as_save_IFS 18076 test -z "$as_dir" && as_dir=. 18077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18078 done 18079IFS=$as_save_IFS 18080 18081 ;; 18082esac 18083# We did not find ourselves, most probably we were run as `sh COMMAND' 18084# in which case we are not to be found in the path. 18085if test "x$as_myself" = x; then 18086 as_myself=$0 18087fi 18088if test ! -f "$as_myself"; then 18089 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18090 exit 1 18091fi 18092 18093# Unset variables that we do not need and which cause bugs (e.g. in 18094# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18095# suppresses any "Segmentation fault" message there. '((' could 18096# trigger a bug in pdksh 5.2.14. 18097for as_var in BASH_ENV ENV MAIL MAILPATH 18098do eval test x\${$as_var+set} = xset \ 18099 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18100done 18101PS1='$ ' 18102PS2='> ' 18103PS4='+ ' 18104 18105# NLS nuisances. 18106LC_ALL=C 18107export LC_ALL 18108LANGUAGE=C 18109export LANGUAGE 18110 18111# CDPATH. 18112(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18113 18114 18115# as_fn_error STATUS ERROR [LINENO LOG_FD] 18116# ---------------------------------------- 18117# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18118# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18119# script with STATUS, using 1 if that was 0. 18120as_fn_error () 18121{ 18122 as_status=$1; test $as_status -eq 0 && as_status=1 18123 if test "$4"; then 18124 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18125 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18126 fi 18127 $as_echo "$as_me: error: $2" >&2 18128 as_fn_exit $as_status 18129} # as_fn_error 18130 18131 18132# as_fn_set_status STATUS 18133# ----------------------- 18134# Set $? to STATUS, without forking. 18135as_fn_set_status () 18136{ 18137 return $1 18138} # as_fn_set_status 18139 18140# as_fn_exit STATUS 18141# ----------------- 18142# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18143as_fn_exit () 18144{ 18145 set +e 18146 as_fn_set_status $1 18147 exit $1 18148} # as_fn_exit 18149 18150# as_fn_unset VAR 18151# --------------- 18152# Portably unset VAR. 18153as_fn_unset () 18154{ 18155 { eval $1=; unset $1;} 18156} 18157as_unset=as_fn_unset 18158# as_fn_append VAR VALUE 18159# ---------------------- 18160# Append the text in VALUE to the end of the definition contained in VAR. Take 18161# advantage of any shell optimizations that allow amortized linear growth over 18162# repeated appends, instead of the typical quadratic growth present in naive 18163# implementations. 18164if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18165 eval 'as_fn_append () 18166 { 18167 eval $1+=\$2 18168 }' 18169else 18170 as_fn_append () 18171 { 18172 eval $1=\$$1\$2 18173 } 18174fi # as_fn_append 18175 18176# as_fn_arith ARG... 18177# ------------------ 18178# Perform arithmetic evaluation on the ARGs, and store the result in the 18179# global $as_val. Take advantage of shells that can avoid forks. The arguments 18180# must be portable across $(()) and expr. 18181if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18182 eval 'as_fn_arith () 18183 { 18184 as_val=$(( $* )) 18185 }' 18186else 18187 as_fn_arith () 18188 { 18189 as_val=`expr "$@" || test $? -eq 1` 18190 } 18191fi # as_fn_arith 18192 18193 18194if expr a : '\(a\)' >/dev/null 2>&1 && 18195 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18196 as_expr=expr 18197else 18198 as_expr=false 18199fi 18200 18201if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18202 as_basename=basename 18203else 18204 as_basename=false 18205fi 18206 18207if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18208 as_dirname=dirname 18209else 18210 as_dirname=false 18211fi 18212 18213as_me=`$as_basename -- "$0" || 18214$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18215 X"$0" : 'X\(//\)$' \| \ 18216 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18217$as_echo X/"$0" | 18218 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18219 s//\1/ 18220 q 18221 } 18222 /^X\/\(\/\/\)$/{ 18223 s//\1/ 18224 q 18225 } 18226 /^X\/\(\/\).*/{ 18227 s//\1/ 18228 q 18229 } 18230 s/.*/./; q'` 18231 18232# Avoid depending upon Character Ranges. 18233as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18234as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18235as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18236as_cr_digits='0123456789' 18237as_cr_alnum=$as_cr_Letters$as_cr_digits 18238 18239ECHO_C= ECHO_N= ECHO_T= 18240case `echo -n x` in #((((( 18241-n*) 18242 case `echo 'xy\c'` in 18243 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18244 xy) ECHO_C='\c';; 18245 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18246 ECHO_T=' ';; 18247 esac;; 18248*) 18249 ECHO_N='-n';; 18250esac 18251 18252rm -f conf$$ conf$$.exe conf$$.file 18253if test -d conf$$.dir; then 18254 rm -f conf$$.dir/conf$$.file 18255else 18256 rm -f conf$$.dir 18257 mkdir conf$$.dir 2>/dev/null 18258fi 18259if (echo >conf$$.file) 2>/dev/null; then 18260 if ln -s conf$$.file conf$$ 2>/dev/null; then 18261 as_ln_s='ln -s' 18262 # ... but there are two gotchas: 18263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18265 # In both cases, we have to default to `cp -p'. 18266 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18267 as_ln_s='cp -p' 18268 elif ln conf$$.file conf$$ 2>/dev/null; then 18269 as_ln_s=ln 18270 else 18271 as_ln_s='cp -p' 18272 fi 18273else 18274 as_ln_s='cp -p' 18275fi 18276rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18277rmdir conf$$.dir 2>/dev/null 18278 18279 18280# as_fn_mkdir_p 18281# ------------- 18282# Create "$as_dir" as a directory, including parents if necessary. 18283as_fn_mkdir_p () 18284{ 18285 18286 case $as_dir in #( 18287 -*) as_dir=./$as_dir;; 18288 esac 18289 test -d "$as_dir" || eval $as_mkdir_p || { 18290 as_dirs= 18291 while :; do 18292 case $as_dir in #( 18293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18294 *) as_qdir=$as_dir;; 18295 esac 18296 as_dirs="'$as_qdir' $as_dirs" 18297 as_dir=`$as_dirname -- "$as_dir" || 18298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18299 X"$as_dir" : 'X\(//\)[^/]' \| \ 18300 X"$as_dir" : 'X\(//\)$' \| \ 18301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18302$as_echo X"$as_dir" | 18303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18304 s//\1/ 18305 q 18306 } 18307 /^X\(\/\/\)[^/].*/{ 18308 s//\1/ 18309 q 18310 } 18311 /^X\(\/\/\)$/{ 18312 s//\1/ 18313 q 18314 } 18315 /^X\(\/\).*/{ 18316 s//\1/ 18317 q 18318 } 18319 s/.*/./; q'` 18320 test -d "$as_dir" && break 18321 done 18322 test -z "$as_dirs" || eval "mkdir $as_dirs" 18323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18324 18325 18326} # as_fn_mkdir_p 18327if mkdir -p . 2>/dev/null; then 18328 as_mkdir_p='mkdir -p "$as_dir"' 18329else 18330 test -d ./-p && rmdir ./-p 18331 as_mkdir_p=false 18332fi 18333 18334if test -x / >/dev/null 2>&1; then 18335 as_test_x='test -x' 18336else 18337 if ls -dL / >/dev/null 2>&1; then 18338 as_ls_L_option=L 18339 else 18340 as_ls_L_option= 18341 fi 18342 as_test_x=' 18343 eval sh -c '\'' 18344 if test -d "$1"; then 18345 test -d "$1/."; 18346 else 18347 case $1 in #( 18348 -*)set "./$1";; 18349 esac; 18350 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18351 ???[sx]*):;;*)false;;esac;fi 18352 '\'' sh 18353 ' 18354fi 18355as_executable_p=$as_test_x 18356 18357# Sed expression to map a string onto a valid CPP name. 18358as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18359 18360# Sed expression to map a string onto a valid variable name. 18361as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18362 18363 18364exec 6>&1 18365## ----------------------------------- ## 18366## Main body of $CONFIG_STATUS script. ## 18367## ----------------------------------- ## 18368_ASEOF 18369test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18370 18371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18372# Save the log message, to keep $0 and so on meaningful, and to 18373# report actual input values of CONFIG_FILES etc. instead of their 18374# values after options handling. 18375ac_log=" 18376This file was extended by libXft $as_me 2.3.1, which was 18377generated by GNU Autoconf 2.68. Invocation command line was 18378 18379 CONFIG_FILES = $CONFIG_FILES 18380 CONFIG_HEADERS = $CONFIG_HEADERS 18381 CONFIG_LINKS = $CONFIG_LINKS 18382 CONFIG_COMMANDS = $CONFIG_COMMANDS 18383 $ $0 $@ 18384 18385on `(hostname || uname -n) 2>/dev/null | sed 1q` 18386" 18387 18388_ACEOF 18389 18390case $ac_config_files in *" 18391"*) set x $ac_config_files; shift; ac_config_files=$*;; 18392esac 18393 18394case $ac_config_headers in *" 18395"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18396esac 18397 18398 18399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18400# Files that config.status was made for. 18401config_files="$ac_config_files" 18402config_headers="$ac_config_headers" 18403config_commands="$ac_config_commands" 18404 18405_ACEOF 18406 18407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18408ac_cs_usage="\ 18409\`$as_me' instantiates files and other configuration actions 18410from templates according to the current configuration. Unless the files 18411and actions are specified as TAGs, all are instantiated by default. 18412 18413Usage: $0 [OPTION]... [TAG]... 18414 18415 -h, --help print this help, then exit 18416 -V, --version print version number and configuration settings, then exit 18417 --config print configuration, then exit 18418 -q, --quiet, --silent 18419 do not print progress messages 18420 -d, --debug don't remove temporary files 18421 --recheck update $as_me by reconfiguring in the same conditions 18422 --file=FILE[:TEMPLATE] 18423 instantiate the configuration file FILE 18424 --header=FILE[:TEMPLATE] 18425 instantiate the configuration header FILE 18426 18427Configuration files: 18428$config_files 18429 18430Configuration headers: 18431$config_headers 18432 18433Configuration commands: 18434$config_commands 18435 18436Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18437 18438_ACEOF 18439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18440ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18441ac_cs_version="\\ 18442libXft config.status 2.3.1 18443configured by $0, generated by GNU Autoconf 2.68, 18444 with options \\"\$ac_cs_config\\" 18445 18446Copyright (C) 2010 Free Software Foundation, Inc. 18447This config.status script is free software; the Free Software Foundation 18448gives unlimited permission to copy, distribute and modify it." 18449 18450ac_pwd='$ac_pwd' 18451srcdir='$srcdir' 18452INSTALL='$INSTALL' 18453MKDIR_P='$MKDIR_P' 18454AWK='$AWK' 18455test -n "\$AWK" || AWK=awk 18456_ACEOF 18457 18458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18459# The default lists apply if the user does not specify any file. 18460ac_need_defaults=: 18461while test $# != 0 18462do 18463 case $1 in 18464 --*=?*) 18465 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18466 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18467 ac_shift=: 18468 ;; 18469 --*=) 18470 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18471 ac_optarg= 18472 ac_shift=: 18473 ;; 18474 *) 18475 ac_option=$1 18476 ac_optarg=$2 18477 ac_shift=shift 18478 ;; 18479 esac 18480 18481 case $ac_option in 18482 # Handling of the options. 18483 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18484 ac_cs_recheck=: ;; 18485 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18486 $as_echo "$ac_cs_version"; exit ;; 18487 --config | --confi | --conf | --con | --co | --c ) 18488 $as_echo "$ac_cs_config"; exit ;; 18489 --debug | --debu | --deb | --de | --d | -d ) 18490 debug=: ;; 18491 --file | --fil | --fi | --f ) 18492 $ac_shift 18493 case $ac_optarg in 18494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18495 '') as_fn_error $? "missing file argument" ;; 18496 esac 18497 as_fn_append CONFIG_FILES " '$ac_optarg'" 18498 ac_need_defaults=false;; 18499 --header | --heade | --head | --hea ) 18500 $ac_shift 18501 case $ac_optarg in 18502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18503 esac 18504 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18505 ac_need_defaults=false;; 18506 --he | --h) 18507 # Conflict between --help and --header 18508 as_fn_error $? "ambiguous option: \`$1' 18509Try \`$0 --help' for more information.";; 18510 --help | --hel | -h ) 18511 $as_echo "$ac_cs_usage"; exit ;; 18512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18513 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18514 ac_cs_silent=: ;; 18515 18516 # This is an error. 18517 -*) as_fn_error $? "unrecognized option: \`$1' 18518Try \`$0 --help' for more information." ;; 18519 18520 *) as_fn_append ac_config_targets " $1" 18521 ac_need_defaults=false ;; 18522 18523 esac 18524 shift 18525done 18526 18527ac_configure_extra_args= 18528 18529if $ac_cs_silent; then 18530 exec 6>/dev/null 18531 ac_configure_extra_args="$ac_configure_extra_args --silent" 18532fi 18533 18534_ACEOF 18535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18536if \$ac_cs_recheck; then 18537 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18538 shift 18539 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18540 CONFIG_SHELL='$SHELL' 18541 export CONFIG_SHELL 18542 exec "\$@" 18543fi 18544 18545_ACEOF 18546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18547exec 5>>config.log 18548{ 18549 echo 18550 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18551## Running $as_me. ## 18552_ASBOX 18553 $as_echo "$ac_log" 18554} >&5 18555 18556_ACEOF 18557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18558# 18559# INIT-COMMANDS 18560# 18561AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18562 18563 18564# The HP-UX ksh and POSIX shell print the target directory to stdout 18565# if CDPATH is set. 18566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18567 18568sed_quote_subst='$sed_quote_subst' 18569double_quote_subst='$double_quote_subst' 18570delay_variable_subst='$delay_variable_subst' 18571macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18572macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18573enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18574enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18575pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18576enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18577SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18578ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18579PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18580host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18581host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18582host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18583build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18584build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18585build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18586SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18587Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18588GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18589EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18590FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18591LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18592NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18593LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18594max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18595ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18596exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18597lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18598lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18599lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18600lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18601lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18602reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18603reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18604OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18605deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18606file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18607file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18608want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18609DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18610sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18611AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18612AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18613archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18614STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18615RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18616old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18617old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18618old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18619lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18620CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18621CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18622compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18623GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18624lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18625lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18626lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18627lt_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"`' 18628nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18629lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18630objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18631MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18632lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18633lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18634lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18635lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18636lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18637need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18638MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18639DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18640NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18641LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18642OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18643OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18644libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18645shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18646extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18647archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18648enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18649export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18650whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18651compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18652old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18653old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18654archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18655archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18656module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18657module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18658with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18659allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18660no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18661hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18662hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18663hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18664hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18665hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18666hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18667hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18668inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18669link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18670always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18671export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18672exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18673include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18674prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18675postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18676file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18677variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18678need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18679need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18680version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18681runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18682shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18683shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18684libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18685library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18686soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18687install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18688postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18689postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18690finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18691finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18692hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18693sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18694sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18695hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18696enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18697enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18698enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18699old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18700striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18701 18702LTCC='$LTCC' 18703LTCFLAGS='$LTCFLAGS' 18704compiler='$compiler_DEFAULT' 18705 18706# A function that is used when there is no print builtin or printf. 18707func_fallback_echo () 18708{ 18709 eval 'cat <<_LTECHO_EOF 18710\$1 18711_LTECHO_EOF' 18712} 18713 18714# Quote evaled strings. 18715for var in SHELL \ 18716ECHO \ 18717PATH_SEPARATOR \ 18718SED \ 18719GREP \ 18720EGREP \ 18721FGREP \ 18722LD \ 18723NM \ 18724LN_S \ 18725lt_SP2NL \ 18726lt_NL2SP \ 18727reload_flag \ 18728OBJDUMP \ 18729deplibs_check_method \ 18730file_magic_cmd \ 18731file_magic_glob \ 18732want_nocaseglob \ 18733DLLTOOL \ 18734sharedlib_from_linklib_cmd \ 18735AR \ 18736AR_FLAGS \ 18737archiver_list_spec \ 18738STRIP \ 18739RANLIB \ 18740CC \ 18741CFLAGS \ 18742compiler \ 18743lt_cv_sys_global_symbol_pipe \ 18744lt_cv_sys_global_symbol_to_cdecl \ 18745lt_cv_sys_global_symbol_to_c_name_address \ 18746lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18747nm_file_list_spec \ 18748lt_prog_compiler_no_builtin_flag \ 18749lt_prog_compiler_pic \ 18750lt_prog_compiler_wl \ 18751lt_prog_compiler_static \ 18752lt_cv_prog_compiler_c_o \ 18753need_locks \ 18754MANIFEST_TOOL \ 18755DSYMUTIL \ 18756NMEDIT \ 18757LIPO \ 18758OTOOL \ 18759OTOOL64 \ 18760shrext_cmds \ 18761export_dynamic_flag_spec \ 18762whole_archive_flag_spec \ 18763compiler_needs_object \ 18764with_gnu_ld \ 18765allow_undefined_flag \ 18766no_undefined_flag \ 18767hardcode_libdir_flag_spec \ 18768hardcode_libdir_separator \ 18769exclude_expsyms \ 18770include_expsyms \ 18771file_list_spec \ 18772variables_saved_for_relink \ 18773libname_spec \ 18774library_names_spec \ 18775soname_spec \ 18776install_override_mode \ 18777finish_eval \ 18778old_striplib \ 18779striplib; do 18780 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18781 *[\\\\\\\`\\"\\\$]*) 18782 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18783 ;; 18784 *) 18785 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18786 ;; 18787 esac 18788done 18789 18790# Double-quote double-evaled strings. 18791for var in reload_cmds \ 18792old_postinstall_cmds \ 18793old_postuninstall_cmds \ 18794old_archive_cmds \ 18795extract_expsyms_cmds \ 18796old_archive_from_new_cmds \ 18797old_archive_from_expsyms_cmds \ 18798archive_cmds \ 18799archive_expsym_cmds \ 18800module_cmds \ 18801module_expsym_cmds \ 18802export_symbols_cmds \ 18803prelink_cmds \ 18804postlink_cmds \ 18805postinstall_cmds \ 18806postuninstall_cmds \ 18807finish_cmds \ 18808sys_lib_search_path_spec \ 18809sys_lib_dlsearch_path_spec; do 18810 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18811 *[\\\\\\\`\\"\\\$]*) 18812 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18813 ;; 18814 *) 18815 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18816 ;; 18817 esac 18818done 18819 18820ac_aux_dir='$ac_aux_dir' 18821xsi_shell='$xsi_shell' 18822lt_shell_append='$lt_shell_append' 18823 18824# See if we are running on zsh, and set the options which allow our 18825# commands through without removal of \ escapes INIT. 18826if test -n "\${ZSH_VERSION+set}" ; then 18827 setopt NO_GLOB_SUBST 18828fi 18829 18830 18831 PACKAGE='$PACKAGE' 18832 VERSION='$VERSION' 18833 TIMESTAMP='$TIMESTAMP' 18834 RM='$RM' 18835 ofile='$ofile' 18836 18837 18838 18839 18840_ACEOF 18841 18842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18843 18844# Handling of arguments. 18845for ac_config_target in $ac_config_targets 18846do 18847 case $ac_config_target in 18848 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18849 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18850 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18851 "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;; 18852 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18853 "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;; 18854 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18855 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 18856 18857 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18858 esac 18859done 18860 18861 18862# If the user did not use the arguments to specify the items to instantiate, 18863# then the envvar interface is used. Set only those that are not. 18864# We use the long form for the default assignment because of an extremely 18865# bizarre bug on SunOS 4.1.3. 18866if $ac_need_defaults; then 18867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18870fi 18871 18872# Have a temporary directory for convenience. Make it in the build tree 18873# simply because there is no reason against having it here, and in addition, 18874# creating and moving files from /tmp can sometimes cause problems. 18875# Hook for its removal unless debugging. 18876# Note that there is a small window in which the directory will not be cleaned: 18877# after its creation but before its name has been assigned to `$tmp'. 18878$debug || 18879{ 18880 tmp= ac_tmp= 18881 trap 'exit_status=$? 18882 : "${ac_tmp:=$tmp}" 18883 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18884' 0 18885 trap 'as_fn_exit 1' 1 2 13 15 18886} 18887# Create a (secure) tmp directory for tmp files. 18888 18889{ 18890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18891 test -d "$tmp" 18892} || 18893{ 18894 tmp=./conf$$-$RANDOM 18895 (umask 077 && mkdir "$tmp") 18896} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18897ac_tmp=$tmp 18898 18899# Set up the scripts for CONFIG_FILES section. 18900# No need to generate them if there are no CONFIG_FILES. 18901# This happens for instance with `./config.status config.h'. 18902if test -n "$CONFIG_FILES"; then 18903 18904 18905ac_cr=`echo X | tr X '\015'` 18906# On cygwin, bash can eat \r inside `` if the user requested igncr. 18907# But we know of no other shell where ac_cr would be empty at this 18908# point, so we can use a bashism as a fallback. 18909if test "x$ac_cr" = x; then 18910 eval ac_cr=\$\'\\r\' 18911fi 18912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18914 ac_cs_awk_cr='\\r' 18915else 18916 ac_cs_awk_cr=$ac_cr 18917fi 18918 18919echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18920_ACEOF 18921 18922 18923{ 18924 echo "cat >conf$$subs.awk <<_ACEOF" && 18925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18926 echo "_ACEOF" 18927} >conf$$subs.sh || 18928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18929ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18930ac_delim='%!_!# ' 18931for ac_last_try in false false false false false :; do 18932 . ./conf$$subs.sh || 18933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18934 18935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18936 if test $ac_delim_n = $ac_delim_num; then 18937 break 18938 elif $ac_last_try; then 18939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18940 else 18941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18942 fi 18943done 18944rm -f conf$$subs.sh 18945 18946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18947cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18948_ACEOF 18949sed -n ' 18950h 18951s/^/S["/; s/!.*/"]=/ 18952p 18953g 18954s/^[^!]*!// 18955:repl 18956t repl 18957s/'"$ac_delim"'$// 18958t delim 18959:nl 18960h 18961s/\(.\{148\}\)..*/\1/ 18962t more1 18963s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18964p 18965n 18966b repl 18967:more1 18968s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18969p 18970g 18971s/.\{148\}// 18972t nl 18973:delim 18974h 18975s/\(.\{148\}\)..*/\1/ 18976t more2 18977s/["\\]/\\&/g; s/^/"/; s/$/"/ 18978p 18979b 18980:more2 18981s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18982p 18983g 18984s/.\{148\}// 18985t delim 18986' <conf$$subs.awk | sed ' 18987/^[^""]/{ 18988 N 18989 s/\n// 18990} 18991' >>$CONFIG_STATUS || ac_write_fail=1 18992rm -f conf$$subs.awk 18993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18994_ACAWK 18995cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18996 for (key in S) S_is_set[key] = 1 18997 FS = "" 18998 18999} 19000{ 19001 line = $ 0 19002 nfields = split(line, field, "@") 19003 substed = 0 19004 len = length(field[1]) 19005 for (i = 2; i < nfields; i++) { 19006 key = field[i] 19007 keylen = length(key) 19008 if (S_is_set[key]) { 19009 value = S[key] 19010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19011 len += length(value) + length(field[++i]) 19012 substed = 1 19013 } else 19014 len += 1 + keylen 19015 } 19016 19017 print line 19018} 19019 19020_ACAWK 19021_ACEOF 19022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19023if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19025else 19026 cat 19027fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19028 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19029_ACEOF 19030 19031# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19032# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19033# trailing colons and then remove the whole line if VPATH becomes empty 19034# (actually we leave an empty line to preserve line numbers). 19035if test "x$srcdir" = x.; then 19036 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19037h 19038s/// 19039s/^/:/ 19040s/[ ]*$/:/ 19041s/:\$(srcdir):/:/g 19042s/:\${srcdir}:/:/g 19043s/:@srcdir@:/:/g 19044s/^:*// 19045s/:*$// 19046x 19047s/\(=[ ]*\).*/\1/ 19048G 19049s/\n// 19050s/^[^=]*=[ ]*$// 19051}' 19052fi 19053 19054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19055fi # test -n "$CONFIG_FILES" 19056 19057# Set up the scripts for CONFIG_HEADERS section. 19058# No need to generate them if there are no CONFIG_HEADERS. 19059# This happens for instance with `./config.status Makefile'. 19060if test -n "$CONFIG_HEADERS"; then 19061cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19062BEGIN { 19063_ACEOF 19064 19065# Transform confdefs.h into an awk script `defines.awk', embedded as 19066# here-document in config.status, that substitutes the proper values into 19067# config.h.in to produce config.h. 19068 19069# Create a delimiter string that does not exist in confdefs.h, to ease 19070# handling of long lines. 19071ac_delim='%!_!# ' 19072for ac_last_try in false false :; do 19073 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19074 if test -z "$ac_tt"; then 19075 break 19076 elif $ac_last_try; then 19077 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19078 else 19079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19080 fi 19081done 19082 19083# For the awk script, D is an array of macro values keyed by name, 19084# likewise P contains macro parameters if any. Preserve backslash 19085# newline sequences. 19086 19087ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19088sed -n ' 19089s/.\{148\}/&'"$ac_delim"'/g 19090t rset 19091:rset 19092s/^[ ]*#[ ]*define[ ][ ]*/ / 19093t def 19094d 19095:def 19096s/\\$// 19097t bsnl 19098s/["\\]/\\&/g 19099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19100D["\1"]=" \3"/p 19101s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19102d 19103:bsnl 19104s/["\\]/\\&/g 19105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19106D["\1"]=" \3\\\\\\n"\\/p 19107t cont 19108s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19109t cont 19110d 19111:cont 19112n 19113s/.\{148\}/&'"$ac_delim"'/g 19114t clear 19115:clear 19116s/\\$// 19117t bsnlc 19118s/["\\]/\\&/g; s/^/"/; s/$/"/p 19119d 19120:bsnlc 19121s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19122b cont 19123' <confdefs.h | sed ' 19124s/'"$ac_delim"'/"\\\ 19125"/g' >>$CONFIG_STATUS || ac_write_fail=1 19126 19127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19128 for (key in D) D_is_set[key] = 1 19129 FS = "" 19130} 19131/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19132 line = \$ 0 19133 split(line, arg, " ") 19134 if (arg[1] == "#") { 19135 defundef = arg[2] 19136 mac1 = arg[3] 19137 } else { 19138 defundef = substr(arg[1], 2) 19139 mac1 = arg[2] 19140 } 19141 split(mac1, mac2, "(") #) 19142 macro = mac2[1] 19143 prefix = substr(line, 1, index(line, defundef) - 1) 19144 if (D_is_set[macro]) { 19145 # Preserve the white space surrounding the "#". 19146 print prefix "define", macro P[macro] D[macro] 19147 next 19148 } else { 19149 # Replace #undef with comments. This is necessary, for example, 19150 # in the case of _POSIX_SOURCE, which is predefined and required 19151 # on some systems where configure will not decide to define it. 19152 if (defundef == "undef") { 19153 print "/*", prefix defundef, macro, "*/" 19154 next 19155 } 19156 } 19157} 19158{ print } 19159_ACAWK 19160_ACEOF 19161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19162 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19163fi # test -n "$CONFIG_HEADERS" 19164 19165 19166eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19167shift 19168for ac_tag 19169do 19170 case $ac_tag in 19171 :[FHLC]) ac_mode=$ac_tag; continue;; 19172 esac 19173 case $ac_mode$ac_tag in 19174 :[FHL]*:*);; 19175 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19176 :[FH]-) ac_tag=-:-;; 19177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19178 esac 19179 ac_save_IFS=$IFS 19180 IFS=: 19181 set x $ac_tag 19182 IFS=$ac_save_IFS 19183 shift 19184 ac_file=$1 19185 shift 19186 19187 case $ac_mode in 19188 :L) ac_source=$1;; 19189 :[FH]) 19190 ac_file_inputs= 19191 for ac_f 19192 do 19193 case $ac_f in 19194 -) ac_f="$ac_tmp/stdin";; 19195 *) # Look for the file first in the build tree, then in the source tree 19196 # (if the path is not absolute). The absolute path cannot be DOS-style, 19197 # because $ac_f cannot contain `:'. 19198 test -f "$ac_f" || 19199 case $ac_f in 19200 [\\/$]*) false;; 19201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19202 esac || 19203 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19204 esac 19205 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19206 as_fn_append ac_file_inputs " '$ac_f'" 19207 done 19208 19209 # Let's still pretend it is `configure' which instantiates (i.e., don't 19210 # use $as_me), people would be surprised to read: 19211 # /* config.h. Generated by config.status. */ 19212 configure_input='Generated from '` 19213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19214 `' by configure.' 19215 if test x"$ac_file" != x-; then 19216 configure_input="$ac_file. $configure_input" 19217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19218$as_echo "$as_me: creating $ac_file" >&6;} 19219 fi 19220 # Neutralize special characters interpreted by sed in replacement strings. 19221 case $configure_input in #( 19222 *\&* | *\|* | *\\* ) 19223 ac_sed_conf_input=`$as_echo "$configure_input" | 19224 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19225 *) ac_sed_conf_input=$configure_input;; 19226 esac 19227 19228 case $ac_tag in 19229 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19231 esac 19232 ;; 19233 esac 19234 19235 ac_dir=`$as_dirname -- "$ac_file" || 19236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19237 X"$ac_file" : 'X\(//\)[^/]' \| \ 19238 X"$ac_file" : 'X\(//\)$' \| \ 19239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19240$as_echo X"$ac_file" | 19241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19242 s//\1/ 19243 q 19244 } 19245 /^X\(\/\/\)[^/].*/{ 19246 s//\1/ 19247 q 19248 } 19249 /^X\(\/\/\)$/{ 19250 s//\1/ 19251 q 19252 } 19253 /^X\(\/\).*/{ 19254 s//\1/ 19255 q 19256 } 19257 s/.*/./; q'` 19258 as_dir="$ac_dir"; as_fn_mkdir_p 19259 ac_builddir=. 19260 19261case "$ac_dir" in 19262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19263*) 19264 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19265 # A ".." for each directory in $ac_dir_suffix. 19266 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19267 case $ac_top_builddir_sub in 19268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19270 esac ;; 19271esac 19272ac_abs_top_builddir=$ac_pwd 19273ac_abs_builddir=$ac_pwd$ac_dir_suffix 19274# for backward compatibility: 19275ac_top_builddir=$ac_top_build_prefix 19276 19277case $srcdir in 19278 .) # We are building in place. 19279 ac_srcdir=. 19280 ac_top_srcdir=$ac_top_builddir_sub 19281 ac_abs_top_srcdir=$ac_pwd ;; 19282 [\\/]* | ?:[\\/]* ) # Absolute name. 19283 ac_srcdir=$srcdir$ac_dir_suffix; 19284 ac_top_srcdir=$srcdir 19285 ac_abs_top_srcdir=$srcdir ;; 19286 *) # Relative name. 19287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19288 ac_top_srcdir=$ac_top_build_prefix$srcdir 19289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19290esac 19291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19292 19293 19294 case $ac_mode in 19295 :F) 19296 # 19297 # CONFIG_FILE 19298 # 19299 19300 case $INSTALL in 19301 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19302 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19303 esac 19304 ac_MKDIR_P=$MKDIR_P 19305 case $MKDIR_P in 19306 [\\/$]* | ?:[\\/]* ) ;; 19307 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19308 esac 19309_ACEOF 19310 19311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19312# If the template does not know about datarootdir, expand it. 19313# FIXME: This hack should be removed a few years after 2.60. 19314ac_datarootdir_hack=; ac_datarootdir_seen= 19315ac_sed_dataroot=' 19316/datarootdir/ { 19317 p 19318 q 19319} 19320/@datadir@/p 19321/@docdir@/p 19322/@infodir@/p 19323/@localedir@/p 19324/@mandir@/p' 19325case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19326*datarootdir*) ac_datarootdir_seen=yes;; 19327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19329$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19330_ACEOF 19331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19332 ac_datarootdir_hack=' 19333 s&@datadir@&$datadir&g 19334 s&@docdir@&$docdir&g 19335 s&@infodir@&$infodir&g 19336 s&@localedir@&$localedir&g 19337 s&@mandir@&$mandir&g 19338 s&\\\${datarootdir}&$datarootdir&g' ;; 19339esac 19340_ACEOF 19341 19342# Neutralize VPATH when `$srcdir' = `.'. 19343# Shell code in configure.ac might set extrasub. 19344# FIXME: do we really want to maintain this feature? 19345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19346ac_sed_extra="$ac_vpsub 19347$extrasub 19348_ACEOF 19349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19350:t 19351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19352s|@configure_input@|$ac_sed_conf_input|;t t 19353s&@top_builddir@&$ac_top_builddir_sub&;t t 19354s&@top_build_prefix@&$ac_top_build_prefix&;t t 19355s&@srcdir@&$ac_srcdir&;t t 19356s&@abs_srcdir@&$ac_abs_srcdir&;t t 19357s&@top_srcdir@&$ac_top_srcdir&;t t 19358s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19359s&@builddir@&$ac_builddir&;t t 19360s&@abs_builddir@&$ac_abs_builddir&;t t 19361s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19362s&@INSTALL@&$ac_INSTALL&;t t 19363s&@MKDIR_P@&$ac_MKDIR_P&;t t 19364$ac_datarootdir_hack 19365" 19366eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19367 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19368 19369test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19370 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19372 "$ac_tmp/out"`; test -z "$ac_out"; } && 19373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19374which seems to be undefined. Please make sure it is defined" >&5 19375$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19376which seems to be undefined. Please make sure it is defined" >&2;} 19377 19378 rm -f "$ac_tmp/stdin" 19379 case $ac_file in 19380 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19381 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19382 esac \ 19383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19384 ;; 19385 :H) 19386 # 19387 # CONFIG_HEADER 19388 # 19389 if test x"$ac_file" != x-; then 19390 { 19391 $as_echo "/* $configure_input */" \ 19392 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19393 } >"$ac_tmp/config.h" \ 19394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19395 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19397$as_echo "$as_me: $ac_file is unchanged" >&6;} 19398 else 19399 rm -f "$ac_file" 19400 mv "$ac_tmp/config.h" "$ac_file" \ 19401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19402 fi 19403 else 19404 $as_echo "/* $configure_input */" \ 19405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19406 || as_fn_error $? "could not create -" "$LINENO" 5 19407 fi 19408# Compute "$ac_file"'s index in $config_headers. 19409_am_arg="$ac_file" 19410_am_stamp_count=1 19411for _am_header in $config_headers :; do 19412 case $_am_header in 19413 $_am_arg | $_am_arg:* ) 19414 break ;; 19415 * ) 19416 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19417 esac 19418done 19419echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19420$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19421 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19422 X"$_am_arg" : 'X\(//\)$' \| \ 19423 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19424$as_echo X"$_am_arg" | 19425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19426 s//\1/ 19427 q 19428 } 19429 /^X\(\/\/\)[^/].*/{ 19430 s//\1/ 19431 q 19432 } 19433 /^X\(\/\/\)$/{ 19434 s//\1/ 19435 q 19436 } 19437 /^X\(\/\).*/{ 19438 s//\1/ 19439 q 19440 } 19441 s/.*/./; q'`/stamp-h$_am_stamp_count 19442 ;; 19443 19444 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19445$as_echo "$as_me: executing $ac_file commands" >&6;} 19446 ;; 19447 esac 19448 19449 19450 case $ac_file$ac_mode in 19451 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19452 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19453 # are listed without --file. Let's play safe and only enable the eval 19454 # if we detect the quoting. 19455 case $CONFIG_FILES in 19456 *\'*) eval set x "$CONFIG_FILES" ;; 19457 *) set x $CONFIG_FILES ;; 19458 esac 19459 shift 19460 for mf 19461 do 19462 # Strip MF so we end up with the name of the file. 19463 mf=`echo "$mf" | sed -e 's/:.*$//'` 19464 # Check whether this is an Automake generated Makefile or not. 19465 # We used to match only the files named `Makefile.in', but 19466 # some people rename them; so instead we look at the file content. 19467 # Grep'ing the first line is not enough: some people post-process 19468 # each Makefile.in and add a new line on top of each file to say so. 19469 # Grep'ing the whole file is not good either: AIX grep has a line 19470 # limit of 2048, but all sed's we know have understand at least 4000. 19471 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19472 dirpart=`$as_dirname -- "$mf" || 19473$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19474 X"$mf" : 'X\(//\)[^/]' \| \ 19475 X"$mf" : 'X\(//\)$' \| \ 19476 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19477$as_echo X"$mf" | 19478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19479 s//\1/ 19480 q 19481 } 19482 /^X\(\/\/\)[^/].*/{ 19483 s//\1/ 19484 q 19485 } 19486 /^X\(\/\/\)$/{ 19487 s//\1/ 19488 q 19489 } 19490 /^X\(\/\).*/{ 19491 s//\1/ 19492 q 19493 } 19494 s/.*/./; q'` 19495 else 19496 continue 19497 fi 19498 # Extract the definition of DEPDIR, am__include, and am__quote 19499 # from the Makefile without running `make'. 19500 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19501 test -z "$DEPDIR" && continue 19502 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19503 test -z "am__include" && continue 19504 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19505 # When using ansi2knr, U may be empty or an underscore; expand it 19506 U=`sed -n 's/^U = //p' < "$mf"` 19507 # Find all dependency output files, they are included files with 19508 # $(DEPDIR) in their names. We invoke sed twice because it is the 19509 # simplest approach to changing $(DEPDIR) to its actual value in the 19510 # expansion. 19511 for file in `sed -n " 19512 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19513 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19514 # Make sure the directory exists. 19515 test -f "$dirpart/$file" && continue 19516 fdir=`$as_dirname -- "$file" || 19517$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19518 X"$file" : 'X\(//\)[^/]' \| \ 19519 X"$file" : 'X\(//\)$' \| \ 19520 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19521$as_echo X"$file" | 19522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19523 s//\1/ 19524 q 19525 } 19526 /^X\(\/\/\)[^/].*/{ 19527 s//\1/ 19528 q 19529 } 19530 /^X\(\/\/\)$/{ 19531 s//\1/ 19532 q 19533 } 19534 /^X\(\/\).*/{ 19535 s//\1/ 19536 q 19537 } 19538 s/.*/./; q'` 19539 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19540 # echo "creating $dirpart/$file" 19541 echo '# dummy' > "$dirpart/$file" 19542 done 19543 done 19544} 19545 ;; 19546 "libtool":C) 19547 19548 # See if we are running on zsh, and set the options which allow our 19549 # commands through without removal of \ escapes. 19550 if test -n "${ZSH_VERSION+set}" ; then 19551 setopt NO_GLOB_SUBST 19552 fi 19553 19554 cfgfile="${ofile}T" 19555 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19556 $RM "$cfgfile" 19557 19558 cat <<_LT_EOF >> "$cfgfile" 19559#! $SHELL 19560 19561# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19562# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19563# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19564# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19565# 19566# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19567# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19568# Foundation, Inc. 19569# Written by Gordon Matzigkeit, 1996 19570# 19571# This file is part of GNU Libtool. 19572# 19573# GNU Libtool is free software; you can redistribute it and/or 19574# modify it under the terms of the GNU General Public License as 19575# published by the Free Software Foundation; either version 2 of 19576# the License, or (at your option) any later version. 19577# 19578# As a special exception to the GNU General Public License, 19579# if you distribute this file as part of a program or library that 19580# is built using GNU Libtool, you may include this file under the 19581# same distribution terms that you use for the rest of that program. 19582# 19583# GNU Libtool is distributed in the hope that it will be useful, 19584# but WITHOUT ANY WARRANTY; without even the implied warranty of 19585# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19586# GNU General Public License for more details. 19587# 19588# You should have received a copy of the GNU General Public License 19589# along with GNU Libtool; see the file COPYING. If not, a copy 19590# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19591# obtained by writing to the Free Software Foundation, Inc., 19592# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19593 19594 19595# The names of the tagged configurations supported by this script. 19596available_tags="" 19597 19598# ### BEGIN LIBTOOL CONFIG 19599 19600# Which release of libtool.m4 was used? 19601macro_version=$macro_version 19602macro_revision=$macro_revision 19603 19604# Whether or not to build shared libraries. 19605build_libtool_libs=$enable_shared 19606 19607# Whether or not to build static libraries. 19608build_old_libs=$enable_static 19609 19610# What type of objects to build. 19611pic_mode=$pic_mode 19612 19613# Whether or not to optimize for fast installation. 19614fast_install=$enable_fast_install 19615 19616# Shell to use when invoking shell scripts. 19617SHELL=$lt_SHELL 19618 19619# An echo program that protects backslashes. 19620ECHO=$lt_ECHO 19621 19622# The PATH separator for the build system. 19623PATH_SEPARATOR=$lt_PATH_SEPARATOR 19624 19625# The host system. 19626host_alias=$host_alias 19627host=$host 19628host_os=$host_os 19629 19630# The build system. 19631build_alias=$build_alias 19632build=$build 19633build_os=$build_os 19634 19635# A sed program that does not truncate output. 19636SED=$lt_SED 19637 19638# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19639Xsed="\$SED -e 1s/^X//" 19640 19641# A grep program that handles long lines. 19642GREP=$lt_GREP 19643 19644# An ERE matcher. 19645EGREP=$lt_EGREP 19646 19647# A literal string matcher. 19648FGREP=$lt_FGREP 19649 19650# A BSD- or MS-compatible name lister. 19651NM=$lt_NM 19652 19653# Whether we need soft or hard links. 19654LN_S=$lt_LN_S 19655 19656# What is the maximum length of a command? 19657max_cmd_len=$max_cmd_len 19658 19659# Object file suffix (normally "o"). 19660objext=$ac_objext 19661 19662# Executable file suffix (normally ""). 19663exeext=$exeext 19664 19665# whether the shell understands "unset". 19666lt_unset=$lt_unset 19667 19668# turn spaces into newlines. 19669SP2NL=$lt_lt_SP2NL 19670 19671# turn newlines into spaces. 19672NL2SP=$lt_lt_NL2SP 19673 19674# convert \$build file names to \$host format. 19675to_host_file_cmd=$lt_cv_to_host_file_cmd 19676 19677# convert \$build files to toolchain format. 19678to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19679 19680# An object symbol dumper. 19681OBJDUMP=$lt_OBJDUMP 19682 19683# Method to check whether dependent libraries are shared objects. 19684deplibs_check_method=$lt_deplibs_check_method 19685 19686# Command to use when deplibs_check_method = "file_magic". 19687file_magic_cmd=$lt_file_magic_cmd 19688 19689# How to find potential files when deplibs_check_method = "file_magic". 19690file_magic_glob=$lt_file_magic_glob 19691 19692# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19693want_nocaseglob=$lt_want_nocaseglob 19694 19695# DLL creation program. 19696DLLTOOL=$lt_DLLTOOL 19697 19698# Command to associate shared and link libraries. 19699sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19700 19701# The archiver. 19702AR=$lt_AR 19703 19704# Flags to create an archive. 19705AR_FLAGS=$lt_AR_FLAGS 19706 19707# How to feed a file listing to the archiver. 19708archiver_list_spec=$lt_archiver_list_spec 19709 19710# A symbol stripping program. 19711STRIP=$lt_STRIP 19712 19713# Commands used to install an old-style archive. 19714RANLIB=$lt_RANLIB 19715old_postinstall_cmds=$lt_old_postinstall_cmds 19716old_postuninstall_cmds=$lt_old_postuninstall_cmds 19717 19718# Whether to use a lock for old archive extraction. 19719lock_old_archive_extraction=$lock_old_archive_extraction 19720 19721# A C compiler. 19722LTCC=$lt_CC 19723 19724# LTCC compiler flags. 19725LTCFLAGS=$lt_CFLAGS 19726 19727# Take the output of nm and produce a listing of raw symbols and C names. 19728global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19729 19730# Transform the output of nm in a proper C declaration. 19731global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19732 19733# Transform the output of nm in a C name address pair. 19734global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19735 19736# Transform the output of nm in a C name address pair when lib prefix is needed. 19737global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19738 19739# Specify filename containing input files for \$NM. 19740nm_file_list_spec=$lt_nm_file_list_spec 19741 19742# The root where to search for dependent libraries,and in which our libraries should be installed. 19743lt_sysroot=$lt_sysroot 19744 19745# The name of the directory that contains temporary libtool files. 19746objdir=$objdir 19747 19748# Used to examine libraries when file_magic_cmd begins with "file". 19749MAGIC_CMD=$MAGIC_CMD 19750 19751# Must we lock files when doing compilation? 19752need_locks=$lt_need_locks 19753 19754# Manifest tool. 19755MANIFEST_TOOL=$lt_MANIFEST_TOOL 19756 19757# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19758DSYMUTIL=$lt_DSYMUTIL 19759 19760# Tool to change global to local symbols on Mac OS X. 19761NMEDIT=$lt_NMEDIT 19762 19763# Tool to manipulate fat objects and archives on Mac OS X. 19764LIPO=$lt_LIPO 19765 19766# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19767OTOOL=$lt_OTOOL 19768 19769# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19770OTOOL64=$lt_OTOOL64 19771 19772# Old archive suffix (normally "a"). 19773libext=$libext 19774 19775# Shared library suffix (normally ".so"). 19776shrext_cmds=$lt_shrext_cmds 19777 19778# The commands to extract the exported symbol list from a shared archive. 19779extract_expsyms_cmds=$lt_extract_expsyms_cmds 19780 19781# Variables whose values should be saved in libtool wrapper scripts and 19782# restored at link time. 19783variables_saved_for_relink=$lt_variables_saved_for_relink 19784 19785# Do we need the "lib" prefix for modules? 19786need_lib_prefix=$need_lib_prefix 19787 19788# Do we need a version for libraries? 19789need_version=$need_version 19790 19791# Library versioning type. 19792version_type=$version_type 19793 19794# Shared library runtime path variable. 19795runpath_var=$runpath_var 19796 19797# Shared library path variable. 19798shlibpath_var=$shlibpath_var 19799 19800# Is shlibpath searched before the hard-coded library search path? 19801shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19802 19803# Format of library name prefix. 19804libname_spec=$lt_libname_spec 19805 19806# List of archive names. First name is the real one, the rest are links. 19807# The last name is the one that the linker finds with -lNAME 19808library_names_spec=$lt_library_names_spec 19809 19810# The coded name of the library, if different from the real name. 19811soname_spec=$lt_soname_spec 19812 19813# Permission mode override for installation of shared libraries. 19814install_override_mode=$lt_install_override_mode 19815 19816# Command to use after installation of a shared archive. 19817postinstall_cmds=$lt_postinstall_cmds 19818 19819# Command to use after uninstallation of a shared archive. 19820postuninstall_cmds=$lt_postuninstall_cmds 19821 19822# Commands used to finish a libtool library installation in a directory. 19823finish_cmds=$lt_finish_cmds 19824 19825# As "finish_cmds", except a single script fragment to be evaled but 19826# not shown. 19827finish_eval=$lt_finish_eval 19828 19829# Whether we should hardcode library paths into libraries. 19830hardcode_into_libs=$hardcode_into_libs 19831 19832# Compile-time system search path for libraries. 19833sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19834 19835# Run-time system search path for libraries. 19836sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19837 19838# Whether dlopen is supported. 19839dlopen_support=$enable_dlopen 19840 19841# Whether dlopen of programs is supported. 19842dlopen_self=$enable_dlopen_self 19843 19844# Whether dlopen of statically linked programs is supported. 19845dlopen_self_static=$enable_dlopen_self_static 19846 19847# Commands to strip libraries. 19848old_striplib=$lt_old_striplib 19849striplib=$lt_striplib 19850 19851 19852# The linker used to build libraries. 19853LD=$lt_LD 19854 19855# How to create reloadable object files. 19856reload_flag=$lt_reload_flag 19857reload_cmds=$lt_reload_cmds 19858 19859# Commands used to build an old-style archive. 19860old_archive_cmds=$lt_old_archive_cmds 19861 19862# A language specific compiler. 19863CC=$lt_compiler 19864 19865# Is the compiler the GNU compiler? 19866with_gcc=$GCC 19867 19868# Compiler flag to turn off builtin functions. 19869no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19870 19871# Additional compiler flags for building library objects. 19872pic_flag=$lt_lt_prog_compiler_pic 19873 19874# How to pass a linker flag through the compiler. 19875wl=$lt_lt_prog_compiler_wl 19876 19877# Compiler flag to prevent dynamic linking. 19878link_static_flag=$lt_lt_prog_compiler_static 19879 19880# Does compiler simultaneously support -c and -o options? 19881compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19882 19883# Whether or not to add -lc for building shared libraries. 19884build_libtool_need_lc=$archive_cmds_need_lc 19885 19886# Whether or not to disallow shared libs when runtime libs are static. 19887allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19888 19889# Compiler flag to allow reflexive dlopens. 19890export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19891 19892# Compiler flag to generate shared objects directly from archives. 19893whole_archive_flag_spec=$lt_whole_archive_flag_spec 19894 19895# Whether the compiler copes with passing no objects directly. 19896compiler_needs_object=$lt_compiler_needs_object 19897 19898# Create an old-style archive from a shared archive. 19899old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19900 19901# Create a temporary old-style archive to link instead of a shared archive. 19902old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19903 19904# Commands used to build a shared archive. 19905archive_cmds=$lt_archive_cmds 19906archive_expsym_cmds=$lt_archive_expsym_cmds 19907 19908# Commands used to build a loadable module if different from building 19909# a shared archive. 19910module_cmds=$lt_module_cmds 19911module_expsym_cmds=$lt_module_expsym_cmds 19912 19913# Whether we are building with GNU ld or not. 19914with_gnu_ld=$lt_with_gnu_ld 19915 19916# Flag that allows shared libraries with undefined symbols to be built. 19917allow_undefined_flag=$lt_allow_undefined_flag 19918 19919# Flag that enforces no undefined symbols. 19920no_undefined_flag=$lt_no_undefined_flag 19921 19922# Flag to hardcode \$libdir into a binary during linking. 19923# This must work even if \$libdir does not exist 19924hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19925 19926# Whether we need a single "-rpath" flag with a separated argument. 19927hardcode_libdir_separator=$lt_hardcode_libdir_separator 19928 19929# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19930# DIR into the resulting binary. 19931hardcode_direct=$hardcode_direct 19932 19933# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19934# DIR into the resulting binary and the resulting library dependency is 19935# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19936# library is relocated. 19937hardcode_direct_absolute=$hardcode_direct_absolute 19938 19939# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19940# into the resulting binary. 19941hardcode_minus_L=$hardcode_minus_L 19942 19943# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19944# into the resulting binary. 19945hardcode_shlibpath_var=$hardcode_shlibpath_var 19946 19947# Set to "yes" if building a shared library automatically hardcodes DIR 19948# into the library and all subsequent libraries and executables linked 19949# against it. 19950hardcode_automatic=$hardcode_automatic 19951 19952# Set to yes if linker adds runtime paths of dependent libraries 19953# to runtime path list. 19954inherit_rpath=$inherit_rpath 19955 19956# Whether libtool must link a program against all its dependency libraries. 19957link_all_deplibs=$link_all_deplibs 19958 19959# Set to "yes" if exported symbols are required. 19960always_export_symbols=$always_export_symbols 19961 19962# The commands to list exported symbols. 19963export_symbols_cmds=$lt_export_symbols_cmds 19964 19965# Symbols that should not be listed in the preloaded symbols. 19966exclude_expsyms=$lt_exclude_expsyms 19967 19968# Symbols that must always be exported. 19969include_expsyms=$lt_include_expsyms 19970 19971# Commands necessary for linking programs (against libraries) with templates. 19972prelink_cmds=$lt_prelink_cmds 19973 19974# Commands necessary for finishing linking programs. 19975postlink_cmds=$lt_postlink_cmds 19976 19977# Specify filename containing input files. 19978file_list_spec=$lt_file_list_spec 19979 19980# How to hardcode a shared library path into an executable. 19981hardcode_action=$hardcode_action 19982 19983# ### END LIBTOOL CONFIG 19984 19985_LT_EOF 19986 19987 case $host_os in 19988 aix3*) 19989 cat <<\_LT_EOF >> "$cfgfile" 19990# AIX sometimes has problems with the GCC collect2 program. For some 19991# reason, if we set the COLLECT_NAMES environment variable, the problems 19992# vanish in a puff of smoke. 19993if test "X${COLLECT_NAMES+set}" != Xset; then 19994 COLLECT_NAMES= 19995 export COLLECT_NAMES 19996fi 19997_LT_EOF 19998 ;; 19999 esac 20000 20001 20002ltmain="$ac_aux_dir/ltmain.sh" 20003 20004 20005 # We use sed instead of cat because bash on DJGPP gets confused if 20006 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20007 # text mode, it properly converts lines to CR/LF. This bash problem 20008 # is reportedly fixed, but why not run on old versions too? 20009 sed '$q' "$ltmain" >> "$cfgfile" \ 20010 || (rm -f "$cfgfile"; exit 1) 20011 20012 if test x"$xsi_shell" = xyes; then 20013 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20014func_dirname ()\ 20015{\ 20016\ case ${1} in\ 20017\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20018\ * ) func_dirname_result="${3}" ;;\ 20019\ esac\ 20020} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20021 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20023test 0 -eq $? || _lt_function_replace_fail=: 20024 20025 20026 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20027func_basename ()\ 20028{\ 20029\ func_basename_result="${1##*/}"\ 20030} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20031 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20033test 0 -eq $? || _lt_function_replace_fail=: 20034 20035 20036 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20037func_dirname_and_basename ()\ 20038{\ 20039\ case ${1} in\ 20040\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20041\ * ) func_dirname_result="${3}" ;;\ 20042\ esac\ 20043\ func_basename_result="${1##*/}"\ 20044} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20045 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20046 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20047test 0 -eq $? || _lt_function_replace_fail=: 20048 20049 20050 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20051func_stripname ()\ 20052{\ 20053\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20054\ # positional parameters, so assign one to ordinary parameter first.\ 20055\ func_stripname_result=${3}\ 20056\ func_stripname_result=${func_stripname_result#"${1}"}\ 20057\ func_stripname_result=${func_stripname_result%"${2}"}\ 20058} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20059 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20060 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20061test 0 -eq $? || _lt_function_replace_fail=: 20062 20063 20064 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20065func_split_long_opt ()\ 20066{\ 20067\ func_split_long_opt_name=${1%%=*}\ 20068\ func_split_long_opt_arg=${1#*=}\ 20069} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20070 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20072test 0 -eq $? || _lt_function_replace_fail=: 20073 20074 20075 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20076func_split_short_opt ()\ 20077{\ 20078\ func_split_short_opt_arg=${1#??}\ 20079\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20080} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20081 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20083test 0 -eq $? || _lt_function_replace_fail=: 20084 20085 20086 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20087func_lo2o ()\ 20088{\ 20089\ case ${1} in\ 20090\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20091\ *) func_lo2o_result=${1} ;;\ 20092\ esac\ 20093} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20094 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20096test 0 -eq $? || _lt_function_replace_fail=: 20097 20098 20099 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20100func_xform ()\ 20101{\ 20102 func_xform_result=${1%.*}.lo\ 20103} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20104 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20105 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20106test 0 -eq $? || _lt_function_replace_fail=: 20107 20108 20109 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20110func_arith ()\ 20111{\ 20112 func_arith_result=$(( $* ))\ 20113} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20114 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20116test 0 -eq $? || _lt_function_replace_fail=: 20117 20118 20119 sed -e '/^func_len ()$/,/^} # func_len /c\ 20120func_len ()\ 20121{\ 20122 func_len_result=${#1}\ 20123} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20124 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20125 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20126test 0 -eq $? || _lt_function_replace_fail=: 20127 20128fi 20129 20130if test x"$lt_shell_append" = xyes; then 20131 sed -e '/^func_append ()$/,/^} # func_append /c\ 20132func_append ()\ 20133{\ 20134 eval "${1}+=\\${2}"\ 20135} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20136 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20137 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20138test 0 -eq $? || _lt_function_replace_fail=: 20139 20140 20141 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20142func_append_quoted ()\ 20143{\ 20144\ func_quote_for_eval "${2}"\ 20145\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20146} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20147 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20149test 0 -eq $? || _lt_function_replace_fail=: 20150 20151 20152 # Save a `func_append' function call where possible by direct use of '+=' 20153 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20154 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20156 test 0 -eq $? || _lt_function_replace_fail=: 20157else 20158 # Save a `func_append' function call even when '+=' is not available 20159 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20160 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20161 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20162 test 0 -eq $? || _lt_function_replace_fail=: 20163fi 20164 20165if test x"$_lt_function_replace_fail" = x":"; then 20166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20167$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20168fi 20169 20170 20171 mv -f "$cfgfile" "$ofile" || 20172 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20173 chmod +x "$ofile" 20174 20175 ;; 20176 20177 esac 20178done # for ac_tag 20179 20180 20181as_fn_exit 0 20182_ACEOF 20183ac_clean_files=$ac_clean_files_save 20184 20185test $ac_write_fail = 0 || 20186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20187 20188 20189# configure is writing to config.log, and then calls config.status. 20190# config.status does its own redirection, appending to config.log. 20191# Unfortunately, on DOS this fails, as config.log is still kept open 20192# by configure, so config.status won't be able to write to it; its 20193# output is simply discarded. So we exec the FD to /dev/null, 20194# effectively closing config.log, so it can be properly (re)opened and 20195# appended to by config.status. When coming back to configure, we 20196# need to make the FD available again. 20197if test "$no_create" != yes; then 20198 ac_cs_success=: 20199 ac_config_status_args= 20200 test "$silent" = yes && 20201 ac_config_status_args="$ac_config_status_args --quiet" 20202 exec 5>/dev/null 20203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20204 exec 5>>config.log 20205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20206 # would make configure fail if this is the last instruction. 20207 $ac_cs_success || as_fn_exit 1 20208fi 20209if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20211$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20212fi 20213 20214