configure revision a33c354d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXpresent 1.0.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='libXpresent' 624PACKAGE_TARNAME='libXpresent' 625PACKAGE_VERSION='1.0.1' 626PACKAGE_STRING='libXpresent 1.0.1' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/issues' 628PACKAGE_URL='' 629 630ac_unique_file="Makefile.am" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667PRESENTEXT_LIBS 668PRESENTEXT_CFLAGS 669PRESENTEXT_VERSION 670MAN_SUBSTS 671XORG_MAN_PAGE 672ADMIN_MAN_DIR 673DRIVER_MAN_DIR 674MISC_MAN_DIR 675FILE_MAN_DIR 676LIB_MAN_DIR 677APP_MAN_DIR 678ADMIN_MAN_SUFFIX 679DRIVER_MAN_SUFFIX 680MISC_MAN_SUFFIX 681FILE_MAN_SUFFIX 682LIB_MAN_SUFFIX 683APP_MAN_SUFFIX 684INSTALL_CMD 685PKG_CONFIG_LIBDIR 686PKG_CONFIG_PATH 687PKG_CONFIG 688CHANGELOG_CMD 689STRICT_CFLAGS 690CWARNFLAGS 691BASE_CFLAGS 692LT_SYS_LIBRARY_PATH 693OTOOL64 694OTOOL 695LIPO 696NMEDIT 697DSYMUTIL 698MANIFEST_TOOL 699RANLIB 700ac_ct_AR 701AR 702DLLTOOL 703OBJDUMP 704FILECMD 705LN_S 706NM 707ac_ct_DUMPBIN 708DUMPBIN 709LD 710FGREP 711EGREP 712GREP 713SED 714am__fastdepCC_FALSE 715am__fastdepCC_TRUE 716CCDEPMODE 717am__nodep 718AMDEPBACKSLASH 719AMDEP_FALSE 720AMDEP_TRUE 721am__include 722DEPDIR 723OBJEXT 724EXEEXT 725ac_ct_CC 726CPPFLAGS 727LDFLAGS 728CFLAGS 729CC 730host_os 731host_vendor 732host_cpu 733host 734build_os 735build_vendor 736build_cpu 737build 738LIBTOOL 739AM_BACKSLASH 740AM_DEFAULT_VERBOSITY 741AM_DEFAULT_V 742AM_V 743CSCOPE 744ETAGS 745CTAGS 746am__untar 747am__tar 748AMTAR 749am__leading_dot 750SET_MAKE 751AWK 752mkdir_p 753MKDIR_P 754INSTALL_STRIP_PROGRAM 755STRIP 756install_sh 757MAKEINFO 758AUTOHEADER 759AUTOMAKE 760AUTOCONF 761ACLOCAL 762VERSION 763PACKAGE 764CYGPATH_W 765am__isrc 766INSTALL_DATA 767INSTALL_SCRIPT 768INSTALL_PROGRAM 769target_alias 770host_alias 771build_alias 772LIBS 773ECHO_T 774ECHO_N 775ECHO_C 776DEFS 777mandir 778localedir 779libdir 780psdir 781pdfdir 782dvidir 783htmldir 784infodir 785docdir 786oldincludedir 787includedir 788runstatedir 789localstatedir 790sharedstatedir 791sysconfdir 792datadir 793datarootdir 794libexecdir 795sbindir 796bindir 797program_transform_name 798prefix 799exec_prefix 800PACKAGE_URL 801PACKAGE_BUGREPORT 802PACKAGE_STRING 803PACKAGE_VERSION 804PACKAGE_TARNAME 805PACKAGE_NAME 806PATH_SEPARATOR 807SHELL 808am__quote' 809ac_subst_files='' 810ac_user_opts=' 811enable_option_checking 812enable_silent_rules 813enable_shared 814enable_static 815with_pic 816enable_fast_install 817with_aix_soname 818enable_dependency_tracking 819with_gnu_ld 820with_sysroot 821enable_libtool_lock 822enable_selective_werror 823enable_strict_compilation 824' 825 ac_precious_vars='build_alias 826host_alias 827target_alias 828CC 829CFLAGS 830LDFLAGS 831LIBS 832CPPFLAGS 833LT_SYS_LIBRARY_PATH 834PKG_CONFIG 835PKG_CONFIG_PATH 836PKG_CONFIG_LIBDIR 837PRESENTEXT_CFLAGS 838PRESENTEXT_LIBS' 839 840 841# Initialize some variables set by options. 842ac_init_help= 843ac_init_version=false 844ac_unrecognized_opts= 845ac_unrecognized_sep= 846# The variables have the same names as the options, with 847# dashes changed to underlines. 848cache_file=/dev/null 849exec_prefix=NONE 850no_create= 851no_recursion= 852prefix=NONE 853program_prefix=NONE 854program_suffix=NONE 855program_transform_name=s,x,x, 856silent= 857site= 858srcdir= 859verbose= 860x_includes=NONE 861x_libraries=NONE 862 863# Installation directory options. 864# These are left unexpanded so users can "make install exec_prefix=/foo" 865# and all the variables that are supposed to be based on exec_prefix 866# by default will actually change. 867# Use braces instead of parens because sh, perl, etc. also accept them. 868# (The list follows the same order as the GNU Coding Standards.) 869bindir='${exec_prefix}/bin' 870sbindir='${exec_prefix}/sbin' 871libexecdir='${exec_prefix}/libexec' 872datarootdir='${prefix}/share' 873datadir='${datarootdir}' 874sysconfdir='${prefix}/etc' 875sharedstatedir='${prefix}/com' 876localstatedir='${prefix}/var' 877runstatedir='${localstatedir}/run' 878includedir='${prefix}/include' 879oldincludedir='/usr/include' 880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 881infodir='${datarootdir}/info' 882htmldir='${docdir}' 883dvidir='${docdir}' 884pdfdir='${docdir}' 885psdir='${docdir}' 886libdir='${exec_prefix}/lib' 887localedir='${datarootdir}/locale' 888mandir='${datarootdir}/man' 889 890ac_prev= 891ac_dashdash= 892for ac_option 893do 894 # If the previous option needs an argument, assign it. 895 if test -n "$ac_prev"; then 896 eval $ac_prev=\$ac_option 897 ac_prev= 898 continue 899 fi 900 901 case $ac_option in 902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 903 *=) ac_optarg= ;; 904 *) ac_optarg=yes ;; 905 esac 906 907 case $ac_dashdash$ac_option in 908 --) 909 ac_dashdash=yes ;; 910 911 -bindir | --bindir | --bindi | --bind | --bin | --bi) 912 ac_prev=bindir ;; 913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 914 bindir=$ac_optarg ;; 915 916 -build | --build | --buil | --bui | --bu) 917 ac_prev=build_alias ;; 918 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 919 build_alias=$ac_optarg ;; 920 921 -cache-file | --cache-file | --cache-fil | --cache-fi \ 922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 923 ac_prev=cache_file ;; 924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 926 cache_file=$ac_optarg ;; 927 928 --config-cache | -C) 929 cache_file=config.cache ;; 930 931 -datadir | --datadir | --datadi | --datad) 932 ac_prev=datadir ;; 933 -datadir=* | --datadir=* | --datadi=* | --datad=*) 934 datadir=$ac_optarg ;; 935 936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 937 | --dataroo | --dataro | --datar) 938 ac_prev=datarootdir ;; 939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 941 datarootdir=$ac_optarg ;; 942 943 -disable-* | --disable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: \`$ac_useropt'" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952"enable_$ac_useropt" 953"*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=no ;; 958 959 -docdir | --docdir | --docdi | --doc | --do) 960 ac_prev=docdir ;; 961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 962 docdir=$ac_optarg ;; 963 964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 965 ac_prev=dvidir ;; 966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 967 dvidir=$ac_optarg ;; 968 969 -enable-* | --enable-*) 970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 971 # Reject names that are not valid shell variable names. 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 as_fn_error $? "invalid feature name: \`$ac_useropt'" 974 ac_useropt_orig=$ac_useropt 975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 976 case $ac_user_opts in 977 *" 978"enable_$ac_useropt" 979"*) ;; 980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 981 ac_unrecognized_sep=', ';; 982 esac 983 eval enable_$ac_useropt=\$ac_optarg ;; 984 985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 987 | --exec | --exe | --ex) 988 ac_prev=exec_prefix ;; 989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 991 | --exec=* | --exe=* | --ex=*) 992 exec_prefix=$ac_optarg ;; 993 994 -gas | --gas | --ga | --g) 995 # Obsolete; use --with-gas. 996 with_gas=yes ;; 997 998 -help | --help | --hel | --he | -h) 999 ac_init_help=long ;; 1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1001 ac_init_help=recursive ;; 1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1003 ac_init_help=short ;; 1004 1005 -host | --host | --hos | --ho) 1006 ac_prev=host_alias ;; 1007 -host=* | --host=* | --hos=* | --ho=*) 1008 host_alias=$ac_optarg ;; 1009 1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1011 ac_prev=htmldir ;; 1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1013 | --ht=*) 1014 htmldir=$ac_optarg ;; 1015 1016 -includedir | --includedir | --includedi | --included | --include \ 1017 | --includ | --inclu | --incl | --inc) 1018 ac_prev=includedir ;; 1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1020 | --includ=* | --inclu=* | --incl=* | --inc=*) 1021 includedir=$ac_optarg ;; 1022 1023 -infodir | --infodir | --infodi | --infod | --info | --inf) 1024 ac_prev=infodir ;; 1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1026 infodir=$ac_optarg ;; 1027 1028 -libdir | --libdir | --libdi | --libd) 1029 ac_prev=libdir ;; 1030 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1031 libdir=$ac_optarg ;; 1032 1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1034 | --libexe | --libex | --libe) 1035 ac_prev=libexecdir ;; 1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1037 | --libexe=* | --libex=* | --libe=*) 1038 libexecdir=$ac_optarg ;; 1039 1040 -localedir | --localedir | --localedi | --localed | --locale) 1041 ac_prev=localedir ;; 1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1043 localedir=$ac_optarg ;; 1044 1045 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1046 | --localstate | --localstat | --localsta | --localst | --locals) 1047 ac_prev=localstatedir ;; 1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1050 localstatedir=$ac_optarg ;; 1051 1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1053 ac_prev=mandir ;; 1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1055 mandir=$ac_optarg ;; 1056 1057 -nfp | --nfp | --nf) 1058 # Obsolete; use --without-fp. 1059 with_fp=no ;; 1060 1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1062 | --no-cr | --no-c | -n) 1063 no_create=yes ;; 1064 1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1067 no_recursion=yes ;; 1068 1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1071 | --oldin | --oldi | --old | --ol | --o) 1072 ac_prev=oldincludedir ;; 1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1076 oldincludedir=$ac_optarg ;; 1077 1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1079 ac_prev=prefix ;; 1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1081 prefix=$ac_optarg ;; 1082 1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1084 | --program-pre | --program-pr | --program-p) 1085 ac_prev=program_prefix ;; 1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1088 program_prefix=$ac_optarg ;; 1089 1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1091 | --program-suf | --program-su | --program-s) 1092 ac_prev=program_suffix ;; 1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1095 program_suffix=$ac_optarg ;; 1096 1097 -program-transform-name | --program-transform-name \ 1098 | --program-transform-nam | --program-transform-na \ 1099 | --program-transform-n | --program-transform- \ 1100 | --program-transform | --program-transfor \ 1101 | --program-transfo | --program-transf \ 1102 | --program-trans | --program-tran \ 1103 | --progr-tra | --program-tr | --program-t) 1104 ac_prev=program_transform_name ;; 1105 -program-transform-name=* | --program-transform-name=* \ 1106 | --program-transform-nam=* | --program-transform-na=* \ 1107 | --program-transform-n=* | --program-transform-=* \ 1108 | --program-transform=* | --program-transfor=* \ 1109 | --program-transfo=* | --program-transf=* \ 1110 | --program-trans=* | --program-tran=* \ 1111 | --progr-tra=* | --program-tr=* | --program-t=*) 1112 program_transform_name=$ac_optarg ;; 1113 1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1115 ac_prev=pdfdir ;; 1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1117 pdfdir=$ac_optarg ;; 1118 1119 -psdir | --psdir | --psdi | --psd | --ps) 1120 ac_prev=psdir ;; 1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1122 psdir=$ac_optarg ;; 1123 1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1125 | -silent | --silent | --silen | --sile | --sil) 1126 silent=yes ;; 1127 1128 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1129 | --runstate | --runstat | --runsta | --runst | --runs \ 1130 | --run | --ru | --r) 1131 ac_prev=runstatedir ;; 1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1134 | --run=* | --ru=* | --r=*) 1135 runstatedir=$ac_optarg ;; 1136 1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1138 ac_prev=sbindir ;; 1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1140 | --sbi=* | --sb=*) 1141 sbindir=$ac_optarg ;; 1142 1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1145 | --sharedst | --shareds | --shared | --share | --shar \ 1146 | --sha | --sh) 1147 ac_prev=sharedstatedir ;; 1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1151 | --sha=* | --sh=*) 1152 sharedstatedir=$ac_optarg ;; 1153 1154 -site | --site | --sit) 1155 ac_prev=site ;; 1156 -site=* | --site=* | --sit=*) 1157 site=$ac_optarg ;; 1158 1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1160 ac_prev=srcdir ;; 1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1162 srcdir=$ac_optarg ;; 1163 1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1165 | --syscon | --sysco | --sysc | --sys | --sy) 1166 ac_prev=sysconfdir ;; 1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1169 sysconfdir=$ac_optarg ;; 1170 1171 -target | --target | --targe | --targ | --tar | --ta | --t) 1172 ac_prev=target_alias ;; 1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1174 target_alias=$ac_optarg ;; 1175 1176 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1177 verbose=yes ;; 1178 1179 -version | --version | --versio | --versi | --vers | -V) 1180 ac_init_version=: ;; 1181 1182 -with-* | --with-*) 1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1184 # Reject names that are not valid shell variable names. 1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1186 as_fn_error $? "invalid package name: \`$ac_useropt'" 1187 ac_useropt_orig=$ac_useropt 1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1189 case $ac_user_opts in 1190 *" 1191"with_$ac_useropt" 1192"*) ;; 1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1194 ac_unrecognized_sep=', ';; 1195 esac 1196 eval with_$ac_useropt=\$ac_optarg ;; 1197 1198 -without-* | --without-*) 1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1200 # Reject names that are not valid shell variable names. 1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1202 as_fn_error $? "invalid package name: \`$ac_useropt'" 1203 ac_useropt_orig=$ac_useropt 1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1205 case $ac_user_opts in 1206 *" 1207"with_$ac_useropt" 1208"*) ;; 1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1210 ac_unrecognized_sep=', ';; 1211 esac 1212 eval with_$ac_useropt=no ;; 1213 1214 --x) 1215 # Obsolete; use --with-x. 1216 with_x=yes ;; 1217 1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1219 | --x-incl | --x-inc | --x-in | --x-i) 1220 ac_prev=x_includes ;; 1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1223 x_includes=$ac_optarg ;; 1224 1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1227 ac_prev=x_libraries ;; 1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1230 x_libraries=$ac_optarg ;; 1231 1232 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1233Try \`$0 --help' for more information" 1234 ;; 1235 1236 *=*) 1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1238 # Reject names that are not valid shell variable names. 1239 case $ac_envvar in #( 1240 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1241 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1242 esac 1243 eval $ac_envvar=\$ac_optarg 1244 export $ac_envvar ;; 1245 1246 *) 1247 # FIXME: should be removed in autoconf 3.0. 1248 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1250 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1252 ;; 1253 1254 esac 1255done 1256 1257if test -n "$ac_prev"; then 1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1259 as_fn_error $? "missing argument to $ac_option" 1260fi 1261 1262if test -n "$ac_unrecognized_opts"; then 1263 case $enable_option_checking in 1264 no) ;; 1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1266 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1267 esac 1268fi 1269 1270# Check all directory arguments for consistency. 1271for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1272 datadir sysconfdir sharedstatedir localstatedir includedir \ 1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1274 libdir localedir mandir runstatedir 1275do 1276 eval ac_val=\$$ac_var 1277 # Remove trailing slashes. 1278 case $ac_val in 1279 */ ) 1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1281 eval $ac_var=\$ac_val;; 1282 esac 1283 # Be sure to have absolute directory names. 1284 case $ac_val in 1285 [\\/$]* | ?:[\\/]* ) continue;; 1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1287 esac 1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1289done 1290 1291# There might be people who depend on the old broken behavior: `$host' 1292# used to hold the argument of --host etc. 1293# FIXME: To remove some day. 1294build=$build_alias 1295host=$host_alias 1296target=$target_alias 1297 1298# FIXME: To remove some day. 1299if test "x$host_alias" != x; then 1300 if test "x$build_alias" = x; then 1301 cross_compiling=maybe 1302 elif test "x$build_alias" != "x$host_alias"; then 1303 cross_compiling=yes 1304 fi 1305fi 1306 1307ac_tool_prefix= 1308test -n "$host_alias" && ac_tool_prefix=$host_alias- 1309 1310test "$silent" = yes && exec 6>/dev/null 1311 1312 1313ac_pwd=`pwd` && test -n "$ac_pwd" && 1314ac_ls_di=`ls -di .` && 1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1316 as_fn_error $? "working directory cannot be determined" 1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1318 as_fn_error $? "pwd does not report name of working directory" 1319 1320 1321# Find the source files, if location was not specified. 1322if test -z "$srcdir"; then 1323 ac_srcdir_defaulted=yes 1324 # Try the directory containing this script, then the parent directory. 1325 ac_confdir=`$as_dirname -- "$as_myself" || 1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1327 X"$as_myself" : 'X\(//\)[^/]' \| \ 1328 X"$as_myself" : 'X\(//\)$' \| \ 1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1330printf "%s\n" X"$as_myself" | 1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1332 s//\1/ 1333 q 1334 } 1335 /^X\(\/\/\)[^/].*/{ 1336 s//\1/ 1337 q 1338 } 1339 /^X\(\/\/\)$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\).*/{ 1344 s//\1/ 1345 q 1346 } 1347 s/.*/./; q'` 1348 srcdir=$ac_confdir 1349 if test ! -r "$srcdir/$ac_unique_file"; then 1350 srcdir=.. 1351 fi 1352else 1353 ac_srcdir_defaulted=no 1354fi 1355if test ! -r "$srcdir/$ac_unique_file"; then 1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1358fi 1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1360ac_abs_confdir=`( 1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1362 pwd)` 1363# When building in place, set srcdir=. 1364if test "$ac_abs_confdir" = "$ac_pwd"; then 1365 srcdir=. 1366fi 1367# Remove unnecessary trailing slashes from srcdir. 1368# Double slashes in file names in object file debugging info 1369# mess up M-x gdb in Emacs. 1370case $srcdir in 1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1372esac 1373for ac_var in $ac_precious_vars; do 1374 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1375 eval ac_env_${ac_var}_value=\$${ac_var} 1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1377 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1378done 1379 1380# 1381# Report the --help message. 1382# 1383if test "$ac_init_help" = "long"; then 1384 # Omit some internal or obsolete options to make the list less imposing. 1385 # This message is too long to be a string in the A/UX 3.1 sh. 1386 cat <<_ACEOF 1387\`configure' configures libXpresent 1.0.1 to adapt to many kinds of systems. 1388 1389Usage: $0 [OPTION]... [VAR=VALUE]... 1390 1391To assign environment variables (e.g., CC, CFLAGS...), specify them as 1392VAR=VALUE. See below for descriptions of some of the useful variables. 1393 1394Defaults for the options are specified in brackets. 1395 1396Configuration: 1397 -h, --help display this help and exit 1398 --help=short display options specific to this package 1399 --help=recursive display the short help of all the included packages 1400 -V, --version display version information and exit 1401 -q, --quiet, --silent do not print \`checking ...' messages 1402 --cache-file=FILE cache test results in FILE [disabled] 1403 -C, --config-cache alias for \`--cache-file=config.cache' 1404 -n, --no-create do not create output files 1405 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1406 1407Installation directories: 1408 --prefix=PREFIX install architecture-independent files in PREFIX 1409 [$ac_default_prefix] 1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1411 [PREFIX] 1412 1413By default, \`make install' will install all the files in 1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1415an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1416for instance \`--prefix=\$HOME'. 1417 1418For better control, use the options below. 1419 1420Fine tuning of the installation directories: 1421 --bindir=DIR user executables [EPREFIX/bin] 1422 --sbindir=DIR system admin executables [EPREFIX/sbin] 1423 --libexecdir=DIR program executables [EPREFIX/libexec] 1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1428 --libdir=DIR object code libraries [EPREFIX/lib] 1429 --includedir=DIR C header files [PREFIX/include] 1430 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1433 --infodir=DIR info documentation [DATAROOTDIR/info] 1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1435 --mandir=DIR man documentation [DATAROOTDIR/man] 1436 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpresent] 1437 --htmldir=DIR html documentation [DOCDIR] 1438 --dvidir=DIR dvi documentation [DOCDIR] 1439 --pdfdir=DIR pdf documentation [DOCDIR] 1440 --psdir=DIR ps documentation [DOCDIR] 1441_ACEOF 1442 1443 cat <<\_ACEOF 1444 1445Program names: 1446 --program-prefix=PREFIX prepend PREFIX to installed program names 1447 --program-suffix=SUFFIX append SUFFIX to installed program names 1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1449 1450System types: 1451 --build=BUILD configure for building on BUILD [guessed] 1452 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1453_ACEOF 1454fi 1455 1456if test -n "$ac_init_help"; then 1457 case $ac_init_help in 1458 short | recursive ) echo "Configuration of libXpresent 1.0.1:";; 1459 esac 1460 cat <<\_ACEOF 1461 1462Optional Features: 1463 --disable-option-checking ignore unrecognized --enable/--with options 1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1466 --enable-silent-rules less verbose build output (undo: "make V=1") 1467 --disable-silent-rules verbose build output (undo: "make V=0") 1468 --enable-shared[=PKGS] build shared libraries [default=yes] 1469 --enable-static[=PKGS] build static libraries [default=yes] 1470 --enable-fast-install[=PKGS] 1471 optimize for fast installation [default=yes] 1472 --enable-dependency-tracking 1473 do not reject slow dependency extractors 1474 --disable-dependency-tracking 1475 speeds up one-time build 1476 --disable-libtool-lock avoid locking (might break parallel builds) 1477 --disable-selective-werror 1478 Turn off selective compiler errors. (default: 1479 enabled) 1480 --enable-strict-compilation 1481 Enable all warnings from compiler and make them 1482 errors (default: disabled) 1483 1484Optional Packages: 1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --with-aix-soname=aix|svr4|both 1490 shared library versioning (aka "SONAME") variant to 1491 provide on AIX, [default=aix]. 1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1493 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1494 compiler's sysroot if not specified). 1495 1496Some influential environment variables: 1497 CC C compiler command 1498 CFLAGS C compiler flags 1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1500 nonstandard directory <lib dir> 1501 LIBS libraries to pass to the linker, e.g. -l<library> 1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1503 you have headers in a nonstandard directory <include dir> 1504 LT_SYS_LIBRARY_PATH 1505 User-defined run-time library search path. 1506 PKG_CONFIG path to pkg-config utility 1507 PKG_CONFIG_PATH 1508 directories to add to pkg-config's search path 1509 PKG_CONFIG_LIBDIR 1510 path overriding pkg-config's built-in search path 1511 PRESENTEXT_CFLAGS 1512 C compiler flags for PRESENTEXT, overriding pkg-config 1513 PRESENTEXT_LIBS 1514 linker flags for PRESENTEXT, overriding pkg-config 1515 1516Use these variables to override the choices made by `configure' or to help 1517it to find libraries and programs with nonstandard names/locations. 1518 1519Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/issues>. 1520_ACEOF 1521ac_status=$? 1522fi 1523 1524if test "$ac_init_help" = "recursive"; then 1525 # If there are subdirs, report their specific --help. 1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1527 test -d "$ac_dir" || 1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1529 continue 1530 ac_builddir=. 1531 1532case "$ac_dir" in 1533.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1534*) 1535 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1536 # A ".." for each directory in $ac_dir_suffix. 1537 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1538 case $ac_top_builddir_sub in 1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1541 esac ;; 1542esac 1543ac_abs_top_builddir=$ac_pwd 1544ac_abs_builddir=$ac_pwd$ac_dir_suffix 1545# for backward compatibility: 1546ac_top_builddir=$ac_top_build_prefix 1547 1548case $srcdir in 1549 .) # We are building in place. 1550 ac_srcdir=. 1551 ac_top_srcdir=$ac_top_builddir_sub 1552 ac_abs_top_srcdir=$ac_pwd ;; 1553 [\\/]* | ?:[\\/]* ) # Absolute name. 1554 ac_srcdir=$srcdir$ac_dir_suffix; 1555 ac_top_srcdir=$srcdir 1556 ac_abs_top_srcdir=$srcdir ;; 1557 *) # Relative name. 1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1559 ac_top_srcdir=$ac_top_build_prefix$srcdir 1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1561esac 1562ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1563 1564 cd "$ac_dir" || { ac_status=$?; continue; } 1565 # Check for configure.gnu first; this name is used for a wrapper for 1566 # Metaconfig's "Configure" on case-insensitive file systems. 1567 if test -f "$ac_srcdir/configure.gnu"; then 1568 echo && 1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1570 elif test -f "$ac_srcdir/configure"; then 1571 echo && 1572 $SHELL "$ac_srcdir/configure" --help=recursive 1573 else 1574 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1575 fi || ac_status=$? 1576 cd "$ac_pwd" || { ac_status=$?; break; } 1577 done 1578fi 1579 1580test -n "$ac_init_help" && exit $ac_status 1581if $ac_init_version; then 1582 cat <<\_ACEOF 1583libXpresent configure 1.0.1 1584generated by GNU Autoconf 2.71 1585 1586Copyright (C) 2021 Free Software Foundation, Inc. 1587This configure script is free software; the Free Software Foundation 1588gives unlimited permission to copy, distribute and modify it. 1589_ACEOF 1590 exit 1591fi 1592 1593## ------------------------ ## 1594## Autoconf initialization. ## 1595## ------------------------ ## 1596 1597# ac_fn_c_try_compile LINENO 1598# -------------------------- 1599# Try to compile conftest.$ac_ext, and return whether this succeeded. 1600ac_fn_c_try_compile () 1601{ 1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1603 rm -f conftest.$ac_objext conftest.beam 1604 if { { ac_try="$ac_compile" 1605case "(($ac_try" in 1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1607 *) ac_try_echo=$ac_try;; 1608esac 1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1610printf "%s\n" "$ac_try_echo"; } >&5 1611 (eval "$ac_compile") 2>conftest.err 1612 ac_status=$? 1613 if test -s conftest.err; then 1614 grep -v '^ *+' conftest.err >conftest.er1 1615 cat conftest.er1 >&5 1616 mv -f conftest.er1 conftest.err 1617 fi 1618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1619 test $ac_status = 0; } && { 1620 test -z "$ac_c_werror_flag" || 1621 test ! -s conftest.err 1622 } && test -s conftest.$ac_objext 1623then : 1624 ac_retval=0 1625else $as_nop 1626 printf "%s\n" "$as_me: failed program was:" >&5 1627sed 's/^/| /' conftest.$ac_ext >&5 1628 1629 ac_retval=1 1630fi 1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1632 as_fn_set_status $ac_retval 1633 1634} # ac_fn_c_try_compile 1635 1636# ac_fn_c_try_link LINENO 1637# ----------------------- 1638# Try to link conftest.$ac_ext, and return whether this succeeded. 1639ac_fn_c_try_link () 1640{ 1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1642 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1643 if { { ac_try="$ac_link" 1644case "(($ac_try" in 1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1646 *) ac_try_echo=$ac_try;; 1647esac 1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1649printf "%s\n" "$ac_try_echo"; } >&5 1650 (eval "$ac_link") 2>conftest.err 1651 ac_status=$? 1652 if test -s conftest.err; then 1653 grep -v '^ *+' conftest.err >conftest.er1 1654 cat conftest.er1 >&5 1655 mv -f conftest.er1 conftest.err 1656 fi 1657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } && { 1659 test -z "$ac_c_werror_flag" || 1660 test ! -s conftest.err 1661 } && test -s conftest$ac_exeext && { 1662 test "$cross_compiling" = yes || 1663 test -x conftest$ac_exeext 1664 } 1665then : 1666 ac_retval=0 1667else $as_nop 1668 printf "%s\n" "$as_me: failed program was:" >&5 1669sed 's/^/| /' conftest.$ac_ext >&5 1670 1671 ac_retval=1 1672fi 1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1675 # interfere with the next link command; also delete a directory that is 1676 # left behind by Apple's compiler. We do this before executing the actions. 1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1679 as_fn_set_status $ac_retval 1680 1681} # ac_fn_c_try_link 1682 1683# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1684# ------------------------------------------------------- 1685# Tests whether HEADER exists and can be compiled using the include files in 1686# INCLUDES, setting the cache variable VAR accordingly. 1687ac_fn_c_check_header_compile () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1691printf %s "checking for $2... " >&6; } 1692if eval test \${$3+y} 1693then : 1694 printf %s "(cached) " >&6 1695else $as_nop 1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1697/* end confdefs.h. */ 1698$4 1699#include <$2> 1700_ACEOF 1701if ac_fn_c_try_compile "$LINENO" 1702then : 1703 eval "$3=yes" 1704else $as_nop 1705 eval "$3=no" 1706fi 1707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1708fi 1709eval ac_res=\$$3 1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1711printf "%s\n" "$ac_res" >&6; } 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 1714} # ac_fn_c_check_header_compile 1715 1716# ac_fn_c_check_func LINENO FUNC VAR 1717# ---------------------------------- 1718# Tests whether FUNC exists, setting the cache variable VAR accordingly 1719ac_fn_c_check_func () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1723printf %s "checking for $2... " >&6; } 1724if eval test \${$3+y} 1725then : 1726 printf %s "(cached) " >&6 1727else $as_nop 1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1729/* end confdefs.h. */ 1730/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1732#define $2 innocuous_$2 1733 1734/* System header to define __stub macros and hopefully few prototypes, 1735 which can conflict with char $2 (); below. */ 1736 1737#include <limits.h> 1738#undef $2 1739 1740/* Override any GCC internal prototype to avoid an error. 1741 Use char because int might match the return type of a GCC 1742 builtin and then its argument prototype would still apply. */ 1743#ifdef __cplusplus 1744extern "C" 1745#endif 1746char $2 (); 1747/* The GNU C library defines this for functions which it implements 1748 to always fail with ENOSYS. Some functions are actually named 1749 something starting with __ and the normal name is an alias. */ 1750#if defined __stub_$2 || defined __stub___$2 1751choke me 1752#endif 1753 1754int 1755main (void) 1756{ 1757return $2 (); 1758 ; 1759 return 0; 1760} 1761_ACEOF 1762if ac_fn_c_try_link "$LINENO" 1763then : 1764 eval "$3=yes" 1765else $as_nop 1766 eval "$3=no" 1767fi 1768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1769 conftest$ac_exeext conftest.$ac_ext 1770fi 1771eval ac_res=\$$3 1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1773printf "%s\n" "$ac_res" >&6; } 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1775 1776} # ac_fn_c_check_func 1777 1778# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1779# ------------------------------------------------------------------ 1780# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1781# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1782ac_fn_check_decl () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 as_decl_name=`echo $2|sed 's/ *(.*//'` 1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1787printf %s "checking whether $as_decl_name is declared... " >&6; } 1788if eval test \${$3+y} 1789then : 1790 printf %s "(cached) " >&6 1791else $as_nop 1792 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1793 eval ac_save_FLAGS=\$$6 1794 as_fn_append $6 " $5" 1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1796/* end confdefs.h. */ 1797$4 1798int 1799main (void) 1800{ 1801#ifndef $as_decl_name 1802#ifdef __cplusplus 1803 (void) $as_decl_use; 1804#else 1805 (void) $as_decl_name; 1806#endif 1807#endif 1808 1809 ; 1810 return 0; 1811} 1812_ACEOF 1813if ac_fn_c_try_compile "$LINENO" 1814then : 1815 eval "$3=yes" 1816else $as_nop 1817 eval "$3=no" 1818fi 1819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1820 eval $6=\$ac_save_FLAGS 1821 1822fi 1823eval ac_res=\$$3 1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1825printf "%s\n" "$ac_res" >&6; } 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 1828} # ac_fn_check_decl 1829ac_configure_args_raw= 1830for ac_arg 1831do 1832 case $ac_arg in 1833 *\'*) 1834 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1835 esac 1836 as_fn_append ac_configure_args_raw " '$ac_arg'" 1837done 1838 1839case $ac_configure_args_raw in 1840 *$as_nl*) 1841 ac_safe_unquote= ;; 1842 *) 1843 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1844 ac_unsafe_a="$ac_unsafe_z#~" 1845 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1846 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1847esac 1848 1849cat >config.log <<_ACEOF 1850This file contains any messages produced by compilers while 1851running configure, to aid debugging if configure makes a mistake. 1852 1853It was created by libXpresent $as_me 1.0.1, which was 1854generated by GNU Autoconf 2.71. Invocation command line was 1855 1856 $ $0$ac_configure_args_raw 1857 1858_ACEOF 1859exec 5>>config.log 1860{ 1861cat <<_ASUNAME 1862## --------- ## 1863## Platform. ## 1864## --------- ## 1865 1866hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1867uname -m = `(uname -m) 2>/dev/null || echo unknown` 1868uname -r = `(uname -r) 2>/dev/null || echo unknown` 1869uname -s = `(uname -s) 2>/dev/null || echo unknown` 1870uname -v = `(uname -v) 2>/dev/null || echo unknown` 1871 1872/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1873/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1874 1875/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1876/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1877/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1878/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1879/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1880/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1881/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1882 1883_ASUNAME 1884 1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1886for as_dir in $PATH 1887do 1888 IFS=$as_save_IFS 1889 case $as_dir in #((( 1890 '') as_dir=./ ;; 1891 */) ;; 1892 *) as_dir=$as_dir/ ;; 1893 esac 1894 printf "%s\n" "PATH: $as_dir" 1895 done 1896IFS=$as_save_IFS 1897 1898} >&5 1899 1900cat >&5 <<_ACEOF 1901 1902 1903## ----------- ## 1904## Core tests. ## 1905## ----------- ## 1906 1907_ACEOF 1908 1909 1910# Keep a trace of the command line. 1911# Strip out --no-create and --no-recursion so they do not pile up. 1912# Strip out --silent because we don't want to record it for future runs. 1913# Also quote any args containing shell meta-characters. 1914# Make two passes to allow for proper duplicate-argument suppression. 1915ac_configure_args= 1916ac_configure_args0= 1917ac_configure_args1= 1918ac_must_keep_next=false 1919for ac_pass in 1 2 1920do 1921 for ac_arg 1922 do 1923 case $ac_arg in 1924 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1926 | -silent | --silent | --silen | --sile | --sil) 1927 continue ;; 1928 *\'*) 1929 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1930 esac 1931 case $ac_pass in 1932 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1933 2) 1934 as_fn_append ac_configure_args1 " '$ac_arg'" 1935 if test $ac_must_keep_next = true; then 1936 ac_must_keep_next=false # Got value, back to normal. 1937 else 1938 case $ac_arg in 1939 *=* | --config-cache | -C | -disable-* | --disable-* \ 1940 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1941 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1942 | -with-* | --with-* | -without-* | --without-* | --x) 1943 case "$ac_configure_args0 " in 1944 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1945 esac 1946 ;; 1947 -* ) ac_must_keep_next=true ;; 1948 esac 1949 fi 1950 as_fn_append ac_configure_args " '$ac_arg'" 1951 ;; 1952 esac 1953 done 1954done 1955{ ac_configure_args0=; unset ac_configure_args0;} 1956{ ac_configure_args1=; unset ac_configure_args1;} 1957 1958# When interrupted or exit'd, cleanup temporary files, and complete 1959# config.log. We remove comments because anyway the quotes in there 1960# would cause problems or look ugly. 1961# WARNING: Use '\'' to represent an apostrophe within the trap. 1962# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1963trap 'exit_status=$? 1964 # Sanitize IFS. 1965 IFS=" "" $as_nl" 1966 # Save into config.log some information that might help in debugging. 1967 { 1968 echo 1969 1970 printf "%s\n" "## ---------------- ## 1971## Cache variables. ## 1972## ---------------- ##" 1973 echo 1974 # The following way of writing the cache mishandles newlines in values, 1975( 1976 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1977 eval ac_val=\$$ac_var 1978 case $ac_val in #( 1979 *${as_nl}*) 1980 case $ac_var in #( 1981 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1982printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1983 esac 1984 case $ac_var in #( 1985 _ | IFS | as_nl) ;; #( 1986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1987 *) { eval $ac_var=; unset $ac_var;} ;; 1988 esac ;; 1989 esac 1990 done 1991 (set) 2>&1 | 1992 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1993 *${as_nl}ac_space=\ *) 1994 sed -n \ 1995 "s/'\''/'\''\\\\'\'''\''/g; 1996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1997 ;; #( 1998 *) 1999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2000 ;; 2001 esac | 2002 sort 2003) 2004 echo 2005 2006 printf "%s\n" "## ----------------- ## 2007## Output variables. ## 2008## ----------------- ##" 2009 echo 2010 for ac_var in $ac_subst_vars 2011 do 2012 eval ac_val=\$$ac_var 2013 case $ac_val in 2014 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2015 esac 2016 printf "%s\n" "$ac_var='\''$ac_val'\''" 2017 done | sort 2018 echo 2019 2020 if test -n "$ac_subst_files"; then 2021 printf "%s\n" "## ------------------- ## 2022## File substitutions. ## 2023## ------------------- ##" 2024 echo 2025 for ac_var in $ac_subst_files 2026 do 2027 eval ac_val=\$$ac_var 2028 case $ac_val in 2029 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2030 esac 2031 printf "%s\n" "$ac_var='\''$ac_val'\''" 2032 done | sort 2033 echo 2034 fi 2035 2036 if test -s confdefs.h; then 2037 printf "%s\n" "## ----------- ## 2038## confdefs.h. ## 2039## ----------- ##" 2040 echo 2041 cat confdefs.h 2042 echo 2043 fi 2044 test "$ac_signal" != 0 && 2045 printf "%s\n" "$as_me: caught signal $ac_signal" 2046 printf "%s\n" "$as_me: exit $exit_status" 2047 } >&5 2048 rm -f core *.core core.conftest.* && 2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2050 exit $exit_status 2051' 0 2052for ac_signal in 1 2 13 15; do 2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2054done 2055ac_signal=0 2056 2057# confdefs.h avoids OS command line length limits that DEFS can exceed. 2058rm -f -r conftest* confdefs.h 2059 2060printf "%s\n" "/* confdefs.h */" > confdefs.h 2061 2062# Predefined preprocessor variables. 2063 2064printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2065 2066printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2067 2068printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2069 2070printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2071 2072printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2073 2074printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2075 2076 2077# Let the site file select an alternate cache file if it wants to. 2078# Prefer an explicitly selected file to automatically selected ones. 2079if test -n "$CONFIG_SITE"; then 2080 ac_site_files="$CONFIG_SITE" 2081elif test "x$prefix" != xNONE; then 2082 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2083else 2084 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2085fi 2086 2087for ac_site_file in $ac_site_files 2088do 2089 case $ac_site_file in #( 2090 */*) : 2091 ;; #( 2092 *) : 2093 ac_site_file=./$ac_site_file ;; 2094esac 2095 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2097printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2098 sed 's/^/| /' "$ac_site_file" >&5 2099 . "$ac_site_file" \ 2100 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2101printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2102as_fn_error $? "failed to load site script $ac_site_file 2103See \`config.log' for more details" "$LINENO" 5; } 2104 fi 2105done 2106 2107if test -r "$cache_file"; then 2108 # Some versions of bash will fail to source /dev/null (special files 2109 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2110 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2112printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2113 case $cache_file in 2114 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2115 *) . "./$cache_file";; 2116 esac 2117 fi 2118else 2119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2120printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2121 >$cache_file 2122fi 2123 2124# Test code for whether the C compiler supports C89 (global declarations) 2125ac_c_conftest_c89_globals=' 2126/* Does the compiler advertise C89 conformance? 2127 Do not test the value of __STDC__, because some compilers set it to 0 2128 while being otherwise adequately conformant. */ 2129#if !defined __STDC__ 2130# error "Compiler does not advertise C89 conformance" 2131#endif 2132 2133#include <stddef.h> 2134#include <stdarg.h> 2135struct stat; 2136/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2137struct buf { int x; }; 2138struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2139static char *e (p, i) 2140 char **p; 2141 int i; 2142{ 2143 return p[i]; 2144} 2145static char *f (char * (*g) (char **, int), char **p, ...) 2146{ 2147 char *s; 2148 va_list v; 2149 va_start (v,p); 2150 s = g (p, va_arg (v,int)); 2151 va_end (v); 2152 return s; 2153} 2154 2155/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2156 function prototypes and stuff, but not \xHH hex character constants. 2157 These do not provoke an error unfortunately, instead are silently treated 2158 as an "x". The following induces an error, until -std is added to get 2159 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2160 array size at least. It is necessary to write \x00 == 0 to get something 2161 that is true only with -std. */ 2162int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2163 2164/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2165 inside strings and character constants. */ 2166#define FOO(x) '\''x'\'' 2167int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2168 2169int test (int i, double x); 2170struct s1 {int (*f) (int a);}; 2171struct s2 {int (*f) (double a);}; 2172int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2173 int, int);' 2174 2175# Test code for whether the C compiler supports C89 (body of main). 2176ac_c_conftest_c89_main=' 2177ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2178' 2179 2180# Test code for whether the C compiler supports C99 (global declarations) 2181ac_c_conftest_c99_globals=' 2182// Does the compiler advertise C99 conformance? 2183#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2184# error "Compiler does not advertise C99 conformance" 2185#endif 2186 2187#include <stdbool.h> 2188extern int puts (const char *); 2189extern int printf (const char *, ...); 2190extern int dprintf (int, const char *, ...); 2191extern void *malloc (size_t); 2192 2193// Check varargs macros. These examples are taken from C99 6.10.3.5. 2194// dprintf is used instead of fprintf to avoid needing to declare 2195// FILE and stderr. 2196#define debug(...) dprintf (2, __VA_ARGS__) 2197#define showlist(...) puts (#__VA_ARGS__) 2198#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2199static void 2200test_varargs_macros (void) 2201{ 2202 int x = 1234; 2203 int y = 5678; 2204 debug ("Flag"); 2205 debug ("X = %d\n", x); 2206 showlist (The first, second, and third items.); 2207 report (x>y, "x is %d but y is %d", x, y); 2208} 2209 2210// Check long long types. 2211#define BIG64 18446744073709551615ull 2212#define BIG32 4294967295ul 2213#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2214#if !BIG_OK 2215 #error "your preprocessor is broken" 2216#endif 2217#if BIG_OK 2218#else 2219 #error "your preprocessor is broken" 2220#endif 2221static long long int bignum = -9223372036854775807LL; 2222static unsigned long long int ubignum = BIG64; 2223 2224struct incomplete_array 2225{ 2226 int datasize; 2227 double data[]; 2228}; 2229 2230struct named_init { 2231 int number; 2232 const wchar_t *name; 2233 double average; 2234}; 2235 2236typedef const char *ccp; 2237 2238static inline int 2239test_restrict (ccp restrict text) 2240{ 2241 // See if C++-style comments work. 2242 // Iterate through items via the restricted pointer. 2243 // Also check for declarations in for loops. 2244 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2245 continue; 2246 return 0; 2247} 2248 2249// Check varargs and va_copy. 2250static bool 2251test_varargs (const char *format, ...) 2252{ 2253 va_list args; 2254 va_start (args, format); 2255 va_list args_copy; 2256 va_copy (args_copy, args); 2257 2258 const char *str = ""; 2259 int number = 0; 2260 float fnumber = 0; 2261 2262 while (*format) 2263 { 2264 switch (*format++) 2265 { 2266 case '\''s'\'': // string 2267 str = va_arg (args_copy, const char *); 2268 break; 2269 case '\''d'\'': // int 2270 number = va_arg (args_copy, int); 2271 break; 2272 case '\''f'\'': // float 2273 fnumber = va_arg (args_copy, double); 2274 break; 2275 default: 2276 break; 2277 } 2278 } 2279 va_end (args_copy); 2280 va_end (args); 2281 2282 return *str && number && fnumber; 2283} 2284' 2285 2286# Test code for whether the C compiler supports C99 (body of main). 2287ac_c_conftest_c99_main=' 2288 // Check bool. 2289 _Bool success = false; 2290 success |= (argc != 0); 2291 2292 // Check restrict. 2293 if (test_restrict ("String literal") == 0) 2294 success = true; 2295 char *restrict newvar = "Another string"; 2296 2297 // Check varargs. 2298 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2299 test_varargs_macros (); 2300 2301 // Check flexible array members. 2302 struct incomplete_array *ia = 2303 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2304 ia->datasize = 10; 2305 for (int i = 0; i < ia->datasize; ++i) 2306 ia->data[i] = i * 1.234; 2307 2308 // Check named initializers. 2309 struct named_init ni = { 2310 .number = 34, 2311 .name = L"Test wide string", 2312 .average = 543.34343, 2313 }; 2314 2315 ni.number = 58; 2316 2317 int dynamic_array[ni.number]; 2318 dynamic_array[0] = argv[0][0]; 2319 dynamic_array[ni.number - 1] = 543; 2320 2321 // work around unused variable warnings 2322 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2323 || dynamic_array[ni.number - 1] != 543); 2324' 2325 2326# Test code for whether the C compiler supports C11 (global declarations) 2327ac_c_conftest_c11_globals=' 2328// Does the compiler advertise C11 conformance? 2329#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2330# error "Compiler does not advertise C11 conformance" 2331#endif 2332 2333// Check _Alignas. 2334char _Alignas (double) aligned_as_double; 2335char _Alignas (0) no_special_alignment; 2336extern char aligned_as_int; 2337char _Alignas (0) _Alignas (int) aligned_as_int; 2338 2339// Check _Alignof. 2340enum 2341{ 2342 int_alignment = _Alignof (int), 2343 int_array_alignment = _Alignof (int[100]), 2344 char_alignment = _Alignof (char) 2345}; 2346_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2347 2348// Check _Noreturn. 2349int _Noreturn does_not_return (void) { for (;;) continue; } 2350 2351// Check _Static_assert. 2352struct test_static_assert 2353{ 2354 int x; 2355 _Static_assert (sizeof (int) <= sizeof (long int), 2356 "_Static_assert does not work in struct"); 2357 long int y; 2358}; 2359 2360// Check UTF-8 literals. 2361#define u8 syntax error! 2362char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2363 2364// Check duplicate typedefs. 2365typedef long *long_ptr; 2366typedef long int *long_ptr; 2367typedef long_ptr long_ptr; 2368 2369// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2370struct anonymous 2371{ 2372 union { 2373 struct { int i; int j; }; 2374 struct { int k; long int l; } w; 2375 }; 2376 int m; 2377} v1; 2378' 2379 2380# Test code for whether the C compiler supports C11 (body of main). 2381ac_c_conftest_c11_main=' 2382 _Static_assert ((offsetof (struct anonymous, i) 2383 == offsetof (struct anonymous, w.k)), 2384 "Anonymous union alignment botch"); 2385 v1.i = 2; 2386 v1.w.k = 5; 2387 ok |= v1.i != 5; 2388' 2389 2390# Test code for whether the C compiler supports C11 (complete). 2391ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2392${ac_c_conftest_c99_globals} 2393${ac_c_conftest_c11_globals} 2394 2395int 2396main (int argc, char **argv) 2397{ 2398 int ok = 0; 2399 ${ac_c_conftest_c89_main} 2400 ${ac_c_conftest_c99_main} 2401 ${ac_c_conftest_c11_main} 2402 return ok; 2403} 2404" 2405 2406# Test code for whether the C compiler supports C99 (complete). 2407ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2408${ac_c_conftest_c99_globals} 2409 2410int 2411main (int argc, char **argv) 2412{ 2413 int ok = 0; 2414 ${ac_c_conftest_c89_main} 2415 ${ac_c_conftest_c99_main} 2416 return ok; 2417} 2418" 2419 2420# Test code for whether the C compiler supports C89 (complete). 2421ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2422 2423int 2424main (int argc, char **argv) 2425{ 2426 int ok = 0; 2427 ${ac_c_conftest_c89_main} 2428 return ok; 2429} 2430" 2431 2432as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2433as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2434as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2435as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2436as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2437as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2438as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2439as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2440as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2441 2442# Auxiliary files required by this configure script. 2443ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2444 2445# Locations in which to look for auxiliary files. 2446ac_aux_dir_candidates="${srcdir}/." 2447 2448# Search for a directory containing all of the required auxiliary files, 2449# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2450# If we don't find one directory that contains all the files we need, 2451# we report the set of missing files from the *first* directory in 2452# $ac_aux_dir_candidates and give up. 2453ac_missing_aux_files="" 2454ac_first_candidate=: 2455printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2457as_found=false 2458for as_dir in $ac_aux_dir_candidates 2459do 2460 IFS=$as_save_IFS 2461 case $as_dir in #((( 2462 '') as_dir=./ ;; 2463 */) ;; 2464 *) as_dir=$as_dir/ ;; 2465 esac 2466 as_found=: 2467 2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2469 ac_aux_dir_found=yes 2470 ac_install_sh= 2471 for ac_aux in $ac_aux_files 2472 do 2473 # As a special case, if "install-sh" is required, that requirement 2474 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2475 # and $ac_install_sh is set appropriately for whichever one is found. 2476 if test x"$ac_aux" = x"install-sh" 2477 then 2478 if test -f "${as_dir}install-sh"; then 2479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2480 ac_install_sh="${as_dir}install-sh -c" 2481 elif test -f "${as_dir}install.sh"; then 2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2483 ac_install_sh="${as_dir}install.sh -c" 2484 elif test -f "${as_dir}shtool"; then 2485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2486 ac_install_sh="${as_dir}shtool install -c" 2487 else 2488 ac_aux_dir_found=no 2489 if $ac_first_candidate; then 2490 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2491 else 2492 break 2493 fi 2494 fi 2495 else 2496 if test -f "${as_dir}${ac_aux}"; then 2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2498 else 2499 ac_aux_dir_found=no 2500 if $ac_first_candidate; then 2501 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2502 else 2503 break 2504 fi 2505 fi 2506 fi 2507 done 2508 if test "$ac_aux_dir_found" = yes; then 2509 ac_aux_dir="$as_dir" 2510 break 2511 fi 2512 ac_first_candidate=false 2513 2514 as_found=false 2515done 2516IFS=$as_save_IFS 2517if $as_found 2518then : 2519 2520else $as_nop 2521 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2522fi 2523 2524 2525# These three variables are undocumented and unsupported, 2526# and are intended to be withdrawn in a future Autoconf release. 2527# They can cause serious problems if a builder's source tree is in a directory 2528# whose full name contains unusual characters. 2529if test -f "${ac_aux_dir}config.guess"; then 2530 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2531fi 2532if test -f "${ac_aux_dir}config.sub"; then 2533 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2534fi 2535if test -f "$ac_aux_dir/configure"; then 2536 ac_configure="$SHELL ${ac_aux_dir}configure" 2537fi 2538 2539# Check that the precious variables saved in the cache have kept the same 2540# value. 2541ac_cache_corrupted=false 2542for ac_var in $ac_precious_vars; do 2543 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2544 eval ac_new_set=\$ac_env_${ac_var}_set 2545 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2546 eval ac_new_val=\$ac_env_${ac_var}_value 2547 case $ac_old_set,$ac_new_set in 2548 set,) 2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2550printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2551 ac_cache_corrupted=: ;; 2552 ,set) 2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2554printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2555 ac_cache_corrupted=: ;; 2556 ,);; 2557 *) 2558 if test "x$ac_old_val" != "x$ac_new_val"; then 2559 # differences in whitespace do not lead to failure. 2560 ac_old_val_w=`echo x $ac_old_val` 2561 ac_new_val_w=`echo x $ac_new_val` 2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2564printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2565 ac_cache_corrupted=: 2566 else 2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2568printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2569 eval $ac_var=\$ac_old_val 2570 fi 2571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2572printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2574printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2575 fi;; 2576 esac 2577 # Pass precious variables to config.status. 2578 if test "$ac_new_set" = set; then 2579 case $ac_new_val in 2580 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2581 *) ac_arg=$ac_var=$ac_new_val ;; 2582 esac 2583 case " $ac_configure_args " in 2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2585 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2586 esac 2587 fi 2588done 2589if $ac_cache_corrupted; then 2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2591printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2593printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2594 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2595 and start over" "$LINENO" 5 2596fi 2597## -------------------- ## 2598## Main body of script. ## 2599## -------------------- ## 2600 2601ac_ext=c 2602ac_cpp='$CPP $CPPFLAGS' 2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2605ac_compiler_gnu=$ac_cv_c_compiler_gnu 2606 2607 2608 2609ac_config_headers="$ac_config_headers config.h" 2610 2611 2612 2613 2614# Initialize Automake 2615am__api_version='1.16' 2616 2617 2618 2619 # Find a good install program. We prefer a C program (faster), 2620# so one script is as good as another. But avoid the broken or 2621# incompatible versions: 2622# SysV /etc/install, /usr/sbin/install 2623# SunOS /usr/etc/install 2624# IRIX /sbin/install 2625# AIX /bin/install 2626# AmigaOS /C/install, which installs bootblocks on floppy discs 2627# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2628# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2629# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2630# OS/2's system install, which has a completely different semantic 2631# ./install, which can be erroneously created by make from ./install.sh. 2632# Reject install programs that cannot install multiple files. 2633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2634printf %s "checking for a BSD-compatible install... " >&6; } 2635if test -z "$INSTALL"; then 2636if test ${ac_cv_path_install+y} 2637then : 2638 printf %s "(cached) " >&6 2639else $as_nop 2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2641for as_dir in $PATH 2642do 2643 IFS=$as_save_IFS 2644 case $as_dir in #((( 2645 '') as_dir=./ ;; 2646 */) ;; 2647 *) as_dir=$as_dir/ ;; 2648 esac 2649 # Account for fact that we put trailing slashes in our PATH walk. 2650case $as_dir in #(( 2651 ./ | /[cC]/* | \ 2652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2653 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2654 /usr/ucb/* ) ;; 2655 *) 2656 # OSF1 and SCO ODT 3.0 have their own names for install. 2657 # Don't use installbsd from OSF since it installs stuff as root 2658 # by default. 2659 for ac_prog in ginstall scoinst install; do 2660 for ac_exec_ext in '' $ac_executable_extensions; do 2661 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2662 if test $ac_prog = install && 2663 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2664 # AIX install. It has an incompatible calling convention. 2665 : 2666 elif test $ac_prog = install && 2667 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2668 # program-specific install script used by HP pwplus--don't use. 2669 : 2670 else 2671 rm -rf conftest.one conftest.two conftest.dir 2672 echo one > conftest.one 2673 echo two > conftest.two 2674 mkdir conftest.dir 2675 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2676 test -s conftest.one && test -s conftest.two && 2677 test -s conftest.dir/conftest.one && 2678 test -s conftest.dir/conftest.two 2679 then 2680 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2681 break 3 2682 fi 2683 fi 2684 fi 2685 done 2686 done 2687 ;; 2688esac 2689 2690 done 2691IFS=$as_save_IFS 2692 2693rm -rf conftest.one conftest.two conftest.dir 2694 2695fi 2696 if test ${ac_cv_path_install+y}; then 2697 INSTALL=$ac_cv_path_install 2698 else 2699 # As a last resort, use the slow shell script. Don't cache a 2700 # value for INSTALL within a source directory, because that will 2701 # break other packages using the cache if that directory is 2702 # removed, or if the value is a relative name. 2703 INSTALL=$ac_install_sh 2704 fi 2705fi 2706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2707printf "%s\n" "$INSTALL" >&6; } 2708 2709# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2710# It thinks the first close brace ends the variable substitution. 2711test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2712 2713test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2714 2715test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2716 2717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2718printf %s "checking whether build environment is sane... " >&6; } 2719# Reject unsafe characters in $srcdir or the absolute working directory 2720# name. Accept space and tab only in the latter. 2721am_lf=' 2722' 2723case `pwd` in 2724 *[\\\"\#\$\&\'\`$am_lf]*) 2725 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2726esac 2727case $srcdir in 2728 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2729 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2730esac 2731 2732# Do 'set' in a subshell so we don't clobber the current shell's 2733# arguments. Must try -L first in case configure is actually a 2734# symlink; some systems play weird games with the mod time of symlinks 2735# (eg FreeBSD returns the mod time of the symlink's containing 2736# directory). 2737if ( 2738 am_has_slept=no 2739 for am_try in 1 2; do 2740 echo "timestamp, slept: $am_has_slept" > conftest.file 2741 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2742 if test "$*" = "X"; then 2743 # -L didn't work. 2744 set X `ls -t "$srcdir/configure" conftest.file` 2745 fi 2746 if test "$*" != "X $srcdir/configure conftest.file" \ 2747 && test "$*" != "X conftest.file $srcdir/configure"; then 2748 2749 # If neither matched, then we have a broken ls. This can happen 2750 # if, for instance, CONFIG_SHELL is bash and it inherits a 2751 # broken ls alias from the environment. This has actually 2752 # happened. Such a system could not be considered "sane". 2753 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2754 alias in your environment" "$LINENO" 5 2755 fi 2756 if test "$2" = conftest.file || test $am_try -eq 2; then 2757 break 2758 fi 2759 # Just in case. 2760 sleep 1 2761 am_has_slept=yes 2762 done 2763 test "$2" = conftest.file 2764 ) 2765then 2766 # Ok. 2767 : 2768else 2769 as_fn_error $? "newly created file is older than distributed files! 2770Check your system clock" "$LINENO" 5 2771fi 2772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2773printf "%s\n" "yes" >&6; } 2774# If we didn't sleep, we still need to ensure time stamps of config.status and 2775# generated files are strictly newer. 2776am_sleep_pid= 2777if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2778 ( sleep 1 ) & 2779 am_sleep_pid=$! 2780fi 2781 2782rm -f conftest.file 2783 2784test "$program_prefix" != NONE && 2785 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2786# Use a double $ so make ignores it. 2787test "$program_suffix" != NONE && 2788 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2789# Double any \ or $. 2790# By default was `s,x,x', remove it if useless. 2791ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2792program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2793 2794 2795# Expand $ac_aux_dir to an absolute path. 2796am_aux_dir=`cd "$ac_aux_dir" && pwd` 2797 2798 2799 if test x"${MISSING+set}" != xset; then 2800 MISSING="\${SHELL} '$am_aux_dir/missing'" 2801fi 2802# Use eval to expand $SHELL 2803if eval "$MISSING --is-lightweight"; then 2804 am_missing_run="$MISSING " 2805else 2806 am_missing_run= 2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2808printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2809fi 2810 2811if test x"${install_sh+set}" != xset; then 2812 case $am_aux_dir in 2813 *\ * | *\ *) 2814 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2815 *) 2816 install_sh="\${SHELL} $am_aux_dir/install-sh" 2817 esac 2818fi 2819 2820# Installed binaries are usually stripped using 'strip' when the user 2821# run "make install-strip". However 'strip' might not be the right 2822# tool to use in cross-compilation environments, therefore Automake 2823# will honor the 'STRIP' environment variable to overrule this program. 2824if test "$cross_compiling" != no; then 2825 if test -n "$ac_tool_prefix"; then 2826 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2827set dummy ${ac_tool_prefix}strip; ac_word=$2 2828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2829printf %s "checking for $ac_word... " >&6; } 2830if test ${ac_cv_prog_STRIP+y} 2831then : 2832 printf %s "(cached) " >&6 2833else $as_nop 2834 if test -n "$STRIP"; then 2835 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2836else 2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2838for as_dir in $PATH 2839do 2840 IFS=$as_save_IFS 2841 case $as_dir in #((( 2842 '') as_dir=./ ;; 2843 */) ;; 2844 *) as_dir=$as_dir/ ;; 2845 esac 2846 for ac_exec_ext in '' $ac_executable_extensions; do 2847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2848 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2850 break 2 2851 fi 2852done 2853 done 2854IFS=$as_save_IFS 2855 2856fi 2857fi 2858STRIP=$ac_cv_prog_STRIP 2859if test -n "$STRIP"; then 2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2861printf "%s\n" "$STRIP" >&6; } 2862else 2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2864printf "%s\n" "no" >&6; } 2865fi 2866 2867 2868fi 2869if test -z "$ac_cv_prog_STRIP"; then 2870 ac_ct_STRIP=$STRIP 2871 # Extract the first word of "strip", so it can be a program name with args. 2872set dummy strip; ac_word=$2 2873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2874printf %s "checking for $ac_word... " >&6; } 2875if test ${ac_cv_prog_ac_ct_STRIP+y} 2876then : 2877 printf %s "(cached) " >&6 2878else $as_nop 2879 if test -n "$ac_ct_STRIP"; then 2880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2881else 2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2883for as_dir in $PATH 2884do 2885 IFS=$as_save_IFS 2886 case $as_dir in #((( 2887 '') as_dir=./ ;; 2888 */) ;; 2889 *) as_dir=$as_dir/ ;; 2890 esac 2891 for ac_exec_ext in '' $ac_executable_extensions; do 2892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2893 ac_cv_prog_ac_ct_STRIP="strip" 2894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2895 break 2 2896 fi 2897done 2898 done 2899IFS=$as_save_IFS 2900 2901fi 2902fi 2903ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2904if test -n "$ac_ct_STRIP"; then 2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2906printf "%s\n" "$ac_ct_STRIP" >&6; } 2907else 2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2909printf "%s\n" "no" >&6; } 2910fi 2911 2912 if test "x$ac_ct_STRIP" = x; then 2913 STRIP=":" 2914 else 2915 case $cross_compiling:$ac_tool_warned in 2916yes:) 2917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2918printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2919ac_tool_warned=yes ;; 2920esac 2921 STRIP=$ac_ct_STRIP 2922 fi 2923else 2924 STRIP="$ac_cv_prog_STRIP" 2925fi 2926 2927fi 2928INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2929 2930 2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2932printf %s "checking for a race-free mkdir -p... " >&6; } 2933if test -z "$MKDIR_P"; then 2934 if test ${ac_cv_path_mkdir+y} 2935then : 2936 printf %s "(cached) " >&6 2937else $as_nop 2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2940do 2941 IFS=$as_save_IFS 2942 case $as_dir in #((( 2943 '') as_dir=./ ;; 2944 */) ;; 2945 *) as_dir=$as_dir/ ;; 2946 esac 2947 for ac_prog in mkdir gmkdir; do 2948 for ac_exec_ext in '' $ac_executable_extensions; do 2949 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2950 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2951 'mkdir ('*'coreutils) '* | \ 2952 'BusyBox '* | \ 2953 'mkdir (fileutils) '4.1*) 2954 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2955 break 3;; 2956 esac 2957 done 2958 done 2959 done 2960IFS=$as_save_IFS 2961 2962fi 2963 2964 test -d ./--version && rmdir ./--version 2965 if test ${ac_cv_path_mkdir+y}; then 2966 MKDIR_P="$ac_cv_path_mkdir -p" 2967 else 2968 # As a last resort, use the slow shell script. Don't cache a 2969 # value for MKDIR_P within a source directory, because that will 2970 # break other packages using the cache if that directory is 2971 # removed, or if the value is a relative name. 2972 MKDIR_P="$ac_install_sh -d" 2973 fi 2974fi 2975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2976printf "%s\n" "$MKDIR_P" >&6; } 2977 2978for ac_prog in gawk mawk nawk awk 2979do 2980 # Extract the first word of "$ac_prog", so it can be a program name with args. 2981set dummy $ac_prog; ac_word=$2 2982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2983printf %s "checking for $ac_word... " >&6; } 2984if test ${ac_cv_prog_AWK+y} 2985then : 2986 printf %s "(cached) " >&6 2987else $as_nop 2988 if test -n "$AWK"; then 2989 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2990else 2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2992for as_dir in $PATH 2993do 2994 IFS=$as_save_IFS 2995 case $as_dir in #((( 2996 '') as_dir=./ ;; 2997 */) ;; 2998 *) as_dir=$as_dir/ ;; 2999 esac 3000 for ac_exec_ext in '' $ac_executable_extensions; do 3001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3002 ac_cv_prog_AWK="$ac_prog" 3003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3004 break 2 3005 fi 3006done 3007 done 3008IFS=$as_save_IFS 3009 3010fi 3011fi 3012AWK=$ac_cv_prog_AWK 3013if test -n "$AWK"; then 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3015printf "%s\n" "$AWK" >&6; } 3016else 3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3018printf "%s\n" "no" >&6; } 3019fi 3020 3021 3022 test -n "$AWK" && break 3023done 3024 3025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3026printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3027set x ${MAKE-make} 3028ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3029if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3030then : 3031 printf %s "(cached) " >&6 3032else $as_nop 3033 cat >conftest.make <<\_ACEOF 3034SHELL = /bin/sh 3035all: 3036 @echo '@@@%%%=$(MAKE)=@@@%%%' 3037_ACEOF 3038# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3039case `${MAKE-make} -f conftest.make 2>/dev/null` in 3040 *@@@%%%=?*=@@@%%%*) 3041 eval ac_cv_prog_make_${ac_make}_set=yes;; 3042 *) 3043 eval ac_cv_prog_make_${ac_make}_set=no;; 3044esac 3045rm -f conftest.make 3046fi 3047if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3049printf "%s\n" "yes" >&6; } 3050 SET_MAKE= 3051else 3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3053printf "%s\n" "no" >&6; } 3054 SET_MAKE="MAKE=${MAKE-make}" 3055fi 3056 3057rm -rf .tst 2>/dev/null 3058mkdir .tst 2>/dev/null 3059if test -d .tst; then 3060 am__leading_dot=. 3061else 3062 am__leading_dot=_ 3063fi 3064rmdir .tst 2>/dev/null 3065 3066# Check whether --enable-silent-rules was given. 3067if test ${enable_silent_rules+y} 3068then : 3069 enableval=$enable_silent_rules; 3070fi 3071 3072case $enable_silent_rules in # ((( 3073 yes) AM_DEFAULT_VERBOSITY=0;; 3074 no) AM_DEFAULT_VERBOSITY=1;; 3075 *) AM_DEFAULT_VERBOSITY=1;; 3076esac 3077am_make=${MAKE-make} 3078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3079printf %s "checking whether $am_make supports nested variables... " >&6; } 3080if test ${am_cv_make_support_nested_variables+y} 3081then : 3082 printf %s "(cached) " >&6 3083else $as_nop 3084 if printf "%s\n" 'TRUE=$(BAR$(V)) 3085BAR0=false 3086BAR1=true 3087V=1 3088am__doit: 3089 @$(TRUE) 3090.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3091 am_cv_make_support_nested_variables=yes 3092else 3093 am_cv_make_support_nested_variables=no 3094fi 3095fi 3096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3097printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3098if test $am_cv_make_support_nested_variables = yes; then 3099 AM_V='$(V)' 3100 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3101else 3102 AM_V=$AM_DEFAULT_VERBOSITY 3103 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3104fi 3105AM_BACKSLASH='\' 3106 3107if test "`cd $srcdir && pwd`" != "`pwd`"; then 3108 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3109 # is not polluted with repeated "-I." 3110 am__isrc=' -I$(srcdir)' 3111 # test to see if srcdir already configured 3112 if test -f $srcdir/config.status; then 3113 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3114 fi 3115fi 3116 3117# test whether we have cygpath 3118if test -z "$CYGPATH_W"; then 3119 if (cygpath --version) >/dev/null 2>/dev/null; then 3120 CYGPATH_W='cygpath -w' 3121 else 3122 CYGPATH_W=echo 3123 fi 3124fi 3125 3126 3127# Define the identity of the package. 3128 PACKAGE='libXpresent' 3129 VERSION='1.0.1' 3130 3131 3132printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3133 3134 3135printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3136 3137# Some tools Automake needs. 3138 3139ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3140 3141 3142AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3143 3144 3145AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3146 3147 3148AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3149 3150 3151MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3152 3153# For better backward compatibility. To be removed once Automake 1.9.x 3154# dies out for good. For more background, see: 3155# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3156# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3157mkdir_p='$(MKDIR_P)' 3158 3159# We need awk for the "check" target (and possibly the TAP driver). The 3160# system "awk" is bad on some platforms. 3161# Always define AMTAR for backward compatibility. Yes, it's still used 3162# in the wild :-( We should find a proper way to deprecate it ... 3163AMTAR='$${TAR-tar}' 3164 3165 3166# We'll loop over all known methods to create a tar archive until one works. 3167_am_tools='gnutar pax cpio none' 3168 3169am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3170 3171 3172 3173 3174 3175# Variables for tags utilities; see am/tags.am 3176if test -z "$CTAGS"; then 3177 CTAGS=ctags 3178fi 3179 3180if test -z "$ETAGS"; then 3181 ETAGS=etags 3182fi 3183 3184if test -z "$CSCOPE"; then 3185 CSCOPE=cscope 3186fi 3187 3188 3189 3190# POSIX will say in a future version that running "rm -f" with no argument 3191# is OK; and we want to be able to make that assumption in our Makefile 3192# recipes. So use an aggressive probe to check that the usage we want is 3193# actually supported "in the wild" to an acceptable degree. 3194# See automake bug#10828. 3195# To make any issue more visible, cause the running configure to be aborted 3196# by default if the 'rm' program in use doesn't match our expectations; the 3197# user can still override this though. 3198if rm -f && rm -fr && rm -rf; then : OK; else 3199 cat >&2 <<'END' 3200Oops! 3201 3202Your 'rm' program seems unable to run without file operands specified 3203on the command line, even when the '-f' option is present. This is contrary 3204to the behaviour of most rm programs out there, and not conforming with 3205the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3206 3207Please tell bug-automake@gnu.org about your system, including the value 3208of your $PATH and any error possibly output before this message. This 3209can help us improve future automake versions. 3210 3211END 3212 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3213 echo 'Configuration will proceed anyway, since you have set the' >&2 3214 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3215 echo >&2 3216 else 3217 cat >&2 <<'END' 3218Aborting the configuration process, to ensure you take notice of the issue. 3219 3220You can download and install GNU coreutils to get an 'rm' implementation 3221that behaves properly: <https://www.gnu.org/software/coreutils/>. 3222 3223If you want to complete the configuration process using your problematic 3224'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3225to "yes", and re-run configure. 3226 3227END 3228 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3229 fi 3230fi 3231 3232 3233# Initialize libtool 3234case `pwd` in 3235 *\ * | *\ *) 3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3237printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3238esac 3239 3240 3241 3242macro_version='2.4.7' 3243macro_revision='2.4.7' 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258ltmain=$ac_aux_dir/ltmain.sh 3259 3260 3261 3262 # Make sure we can run config.sub. 3263$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3264 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3265 3266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3267printf %s "checking build system type... " >&6; } 3268if test ${ac_cv_build+y} 3269then : 3270 printf %s "(cached) " >&6 3271else $as_nop 3272 ac_build_alias=$build_alias 3273test "x$ac_build_alias" = x && 3274 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3275test "x$ac_build_alias" = x && 3276 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3277ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3278 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3279 3280fi 3281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3282printf "%s\n" "$ac_cv_build" >&6; } 3283case $ac_cv_build in 3284*-*-*) ;; 3285*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3286esac 3287build=$ac_cv_build 3288ac_save_IFS=$IFS; IFS='-' 3289set x $ac_cv_build 3290shift 3291build_cpu=$1 3292build_vendor=$2 3293shift; shift 3294# Remember, the first character of IFS is used to create $*, 3295# except with old shells: 3296build_os=$* 3297IFS=$ac_save_IFS 3298case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3299 3300 3301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3302printf %s "checking host system type... " >&6; } 3303if test ${ac_cv_host+y} 3304then : 3305 printf %s "(cached) " >&6 3306else $as_nop 3307 if test "x$host_alias" = x; then 3308 ac_cv_host=$ac_cv_build 3309else 3310 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3311 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3312fi 3313 3314fi 3315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3316printf "%s\n" "$ac_cv_host" >&6; } 3317case $ac_cv_host in 3318*-*-*) ;; 3319*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3320esac 3321host=$ac_cv_host 3322ac_save_IFS=$IFS; IFS='-' 3323set x $ac_cv_host 3324shift 3325host_cpu=$1 3326host_vendor=$2 3327shift; shift 3328# Remember, the first character of IFS is used to create $*, 3329# except with old shells: 3330host_os=$* 3331IFS=$ac_save_IFS 3332case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3333 3334 3335# Backslashify metacharacters that are still active within 3336# double-quoted strings. 3337sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3338 3339# Same as above, but do not quote variable references. 3340double_quote_subst='s/\(["`\\]\)/\\\1/g' 3341 3342# Sed substitution to delay expansion of an escaped shell variable in a 3343# double_quote_subst'ed string. 3344delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3345 3346# Sed substitution to delay expansion of an escaped single quote. 3347delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3348 3349# Sed substitution to avoid accidental globbing in evaled expressions 3350no_glob_subst='s/\*/\\\*/g' 3351 3352ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3353ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3354ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3355 3356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3357printf %s "checking how to print strings... " >&6; } 3358# Test print first, because it will be a builtin if present. 3359if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3360 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3361 ECHO='print -r --' 3362elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3363 ECHO='printf %s\n' 3364else 3365 # Use this function as a fallback that always works. 3366 func_fallback_echo () 3367 { 3368 eval 'cat <<_LTECHO_EOF 3369$1 3370_LTECHO_EOF' 3371 } 3372 ECHO='func_fallback_echo' 3373fi 3374 3375# func_echo_all arg... 3376# Invoke $ECHO with all args, space-separated. 3377func_echo_all () 3378{ 3379 $ECHO "" 3380} 3381 3382case $ECHO in 3383 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3384printf "%s\n" "printf" >&6; } ;; 3385 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3386printf "%s\n" "print -r" >&6; } ;; 3387 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3388printf "%s\n" "cat" >&6; } ;; 3389esac 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413DEPDIR="${am__leading_dot}deps" 3414 3415ac_config_commands="$ac_config_commands depfiles" 3416 3417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3418printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3419cat > confinc.mk << 'END' 3420am__doit: 3421 @echo this is the am__doit target >confinc.out 3422.PHONY: am__doit 3423END 3424am__include="#" 3425am__quote= 3426# BSD make does it like this. 3427echo '.include "confinc.mk" # ignored' > confmf.BSD 3428# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3429echo 'include confinc.mk # ignored' > confmf.GNU 3430_am_result=no 3431for s in GNU BSD; do 3432 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3433 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3434 ac_status=$? 3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3436 (exit $ac_status); } 3437 case $?:`cat confinc.out 2>/dev/null` in #( 3438 '0:this is the am__doit target') : 3439 case $s in #( 3440 BSD) : 3441 am__include='.include' am__quote='"' ;; #( 3442 *) : 3443 am__include='include' am__quote='' ;; 3444esac ;; #( 3445 *) : 3446 ;; 3447esac 3448 if test "$am__include" != "#"; then 3449 _am_result="yes ($s style)" 3450 break 3451 fi 3452done 3453rm -f confinc.* confmf.* 3454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3455printf "%s\n" "${_am_result}" >&6; } 3456 3457# Check whether --enable-dependency-tracking was given. 3458if test ${enable_dependency_tracking+y} 3459then : 3460 enableval=$enable_dependency_tracking; 3461fi 3462 3463if test "x$enable_dependency_tracking" != xno; then 3464 am_depcomp="$ac_aux_dir/depcomp" 3465 AMDEPBACKSLASH='\' 3466 am__nodep='_no' 3467fi 3468 if test "x$enable_dependency_tracking" != xno; then 3469 AMDEP_TRUE= 3470 AMDEP_FALSE='#' 3471else 3472 AMDEP_TRUE='#' 3473 AMDEP_FALSE= 3474fi 3475 3476 3477ac_ext=c 3478ac_cpp='$CPP $CPPFLAGS' 3479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3481ac_compiler_gnu=$ac_cv_c_compiler_gnu 3482if test -n "$ac_tool_prefix"; then 3483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3484set dummy ${ac_tool_prefix}gcc; ac_word=$2 3485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3486printf %s "checking for $ac_word... " >&6; } 3487if test ${ac_cv_prog_CC+y} 3488then : 3489 printf %s "(cached) " >&6 3490else $as_nop 3491 if test -n "$CC"; then 3492 ac_cv_prog_CC="$CC" # Let the user override the test. 3493else 3494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3495for as_dir in $PATH 3496do 3497 IFS=$as_save_IFS 3498 case $as_dir in #((( 3499 '') as_dir=./ ;; 3500 */) ;; 3501 *) as_dir=$as_dir/ ;; 3502 esac 3503 for ac_exec_ext in '' $ac_executable_extensions; do 3504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3505 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3507 break 2 3508 fi 3509done 3510 done 3511IFS=$as_save_IFS 3512 3513fi 3514fi 3515CC=$ac_cv_prog_CC 3516if test -n "$CC"; then 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3518printf "%s\n" "$CC" >&6; } 3519else 3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3521printf "%s\n" "no" >&6; } 3522fi 3523 3524 3525fi 3526if test -z "$ac_cv_prog_CC"; then 3527 ac_ct_CC=$CC 3528 # Extract the first word of "gcc", so it can be a program name with args. 3529set dummy gcc; ac_word=$2 3530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3531printf %s "checking for $ac_word... " >&6; } 3532if test ${ac_cv_prog_ac_ct_CC+y} 3533then : 3534 printf %s "(cached) " >&6 3535else $as_nop 3536 if test -n "$ac_ct_CC"; then 3537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3538else 3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3540for as_dir in $PATH 3541do 3542 IFS=$as_save_IFS 3543 case $as_dir in #((( 3544 '') as_dir=./ ;; 3545 */) ;; 3546 *) as_dir=$as_dir/ ;; 3547 esac 3548 for ac_exec_ext in '' $ac_executable_extensions; do 3549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3550 ac_cv_prog_ac_ct_CC="gcc" 3551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3552 break 2 3553 fi 3554done 3555 done 3556IFS=$as_save_IFS 3557 3558fi 3559fi 3560ac_ct_CC=$ac_cv_prog_ac_ct_CC 3561if test -n "$ac_ct_CC"; then 3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3563printf "%s\n" "$ac_ct_CC" >&6; } 3564else 3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3566printf "%s\n" "no" >&6; } 3567fi 3568 3569 if test "x$ac_ct_CC" = x; then 3570 CC="" 3571 else 3572 case $cross_compiling:$ac_tool_warned in 3573yes:) 3574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3575printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3576ac_tool_warned=yes ;; 3577esac 3578 CC=$ac_ct_CC 3579 fi 3580else 3581 CC="$ac_cv_prog_CC" 3582fi 3583 3584if test -z "$CC"; then 3585 if test -n "$ac_tool_prefix"; then 3586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3587set dummy ${ac_tool_prefix}cc; ac_word=$2 3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3589printf %s "checking for $ac_word... " >&6; } 3590if test ${ac_cv_prog_CC+y} 3591then : 3592 printf %s "(cached) " >&6 3593else $as_nop 3594 if test -n "$CC"; then 3595 ac_cv_prog_CC="$CC" # Let the user override the test. 3596else 3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3598for as_dir in $PATH 3599do 3600 IFS=$as_save_IFS 3601 case $as_dir in #((( 3602 '') as_dir=./ ;; 3603 */) ;; 3604 *) as_dir=$as_dir/ ;; 3605 esac 3606 for ac_exec_ext in '' $ac_executable_extensions; do 3607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3608 ac_cv_prog_CC="${ac_tool_prefix}cc" 3609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3610 break 2 3611 fi 3612done 3613 done 3614IFS=$as_save_IFS 3615 3616fi 3617fi 3618CC=$ac_cv_prog_CC 3619if test -n "$CC"; then 3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3621printf "%s\n" "$CC" >&6; } 3622else 3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3624printf "%s\n" "no" >&6; } 3625fi 3626 3627 3628 fi 3629fi 3630if test -z "$CC"; then 3631 # Extract the first word of "cc", so it can be a program name with args. 3632set dummy cc; ac_word=$2 3633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3634printf %s "checking for $ac_word... " >&6; } 3635if test ${ac_cv_prog_CC+y} 3636then : 3637 printf %s "(cached) " >&6 3638else $as_nop 3639 if test -n "$CC"; then 3640 ac_cv_prog_CC="$CC" # Let the user override the test. 3641else 3642 ac_prog_rejected=no 3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3644for as_dir in $PATH 3645do 3646 IFS=$as_save_IFS 3647 case $as_dir in #((( 3648 '') as_dir=./ ;; 3649 */) ;; 3650 *) as_dir=$as_dir/ ;; 3651 esac 3652 for ac_exec_ext in '' $ac_executable_extensions; do 3653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3654 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3655 ac_prog_rejected=yes 3656 continue 3657 fi 3658 ac_cv_prog_CC="cc" 3659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3660 break 2 3661 fi 3662done 3663 done 3664IFS=$as_save_IFS 3665 3666if test $ac_prog_rejected = yes; then 3667 # We found a bogon in the path, so make sure we never use it. 3668 set dummy $ac_cv_prog_CC 3669 shift 3670 if test $# != 0; then 3671 # We chose a different compiler from the bogus one. 3672 # However, it has the same basename, so the bogon will be chosen 3673 # first if we set CC to just the basename; use the full file name. 3674 shift 3675 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3676 fi 3677fi 3678fi 3679fi 3680CC=$ac_cv_prog_CC 3681if test -n "$CC"; then 3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3683printf "%s\n" "$CC" >&6; } 3684else 3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3686printf "%s\n" "no" >&6; } 3687fi 3688 3689 3690fi 3691if test -z "$CC"; then 3692 if test -n "$ac_tool_prefix"; then 3693 for ac_prog in cl.exe 3694 do 3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3696set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3698printf %s "checking for $ac_word... " >&6; } 3699if test ${ac_cv_prog_CC+y} 3700then : 3701 printf %s "(cached) " >&6 3702else $as_nop 3703 if test -n "$CC"; then 3704 ac_cv_prog_CC="$CC" # Let the user override the test. 3705else 3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3707for as_dir in $PATH 3708do 3709 IFS=$as_save_IFS 3710 case $as_dir in #((( 3711 '') as_dir=./ ;; 3712 */) ;; 3713 *) as_dir=$as_dir/ ;; 3714 esac 3715 for ac_exec_ext in '' $ac_executable_extensions; do 3716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3719 break 2 3720 fi 3721done 3722 done 3723IFS=$as_save_IFS 3724 3725fi 3726fi 3727CC=$ac_cv_prog_CC 3728if test -n "$CC"; then 3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3730printf "%s\n" "$CC" >&6; } 3731else 3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3733printf "%s\n" "no" >&6; } 3734fi 3735 3736 3737 test -n "$CC" && break 3738 done 3739fi 3740if test -z "$CC"; then 3741 ac_ct_CC=$CC 3742 for ac_prog in cl.exe 3743do 3744 # Extract the first word of "$ac_prog", so it can be a program name with args. 3745set dummy $ac_prog; ac_word=$2 3746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3747printf %s "checking for $ac_word... " >&6; } 3748if test ${ac_cv_prog_ac_ct_CC+y} 3749then : 3750 printf %s "(cached) " >&6 3751else $as_nop 3752 if test -n "$ac_ct_CC"; then 3753 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3754else 3755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3756for as_dir in $PATH 3757do 3758 IFS=$as_save_IFS 3759 case $as_dir in #((( 3760 '') as_dir=./ ;; 3761 */) ;; 3762 *) as_dir=$as_dir/ ;; 3763 esac 3764 for ac_exec_ext in '' $ac_executable_extensions; do 3765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3766 ac_cv_prog_ac_ct_CC="$ac_prog" 3767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3768 break 2 3769 fi 3770done 3771 done 3772IFS=$as_save_IFS 3773 3774fi 3775fi 3776ac_ct_CC=$ac_cv_prog_ac_ct_CC 3777if test -n "$ac_ct_CC"; then 3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3779printf "%s\n" "$ac_ct_CC" >&6; } 3780else 3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3782printf "%s\n" "no" >&6; } 3783fi 3784 3785 3786 test -n "$ac_ct_CC" && break 3787done 3788 3789 if test "x$ac_ct_CC" = x; then 3790 CC="" 3791 else 3792 case $cross_compiling:$ac_tool_warned in 3793yes:) 3794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3795printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3796ac_tool_warned=yes ;; 3797esac 3798 CC=$ac_ct_CC 3799 fi 3800fi 3801 3802fi 3803if test -z "$CC"; then 3804 if test -n "$ac_tool_prefix"; then 3805 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3806set dummy ${ac_tool_prefix}clang; ac_word=$2 3807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3808printf %s "checking for $ac_word... " >&6; } 3809if test ${ac_cv_prog_CC+y} 3810then : 3811 printf %s "(cached) " >&6 3812else $as_nop 3813 if test -n "$CC"; then 3814 ac_cv_prog_CC="$CC" # Let the user override the test. 3815else 3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3817for as_dir in $PATH 3818do 3819 IFS=$as_save_IFS 3820 case $as_dir in #((( 3821 '') as_dir=./ ;; 3822 */) ;; 3823 *) as_dir=$as_dir/ ;; 3824 esac 3825 for ac_exec_ext in '' $ac_executable_extensions; do 3826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3827 ac_cv_prog_CC="${ac_tool_prefix}clang" 3828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3829 break 2 3830 fi 3831done 3832 done 3833IFS=$as_save_IFS 3834 3835fi 3836fi 3837CC=$ac_cv_prog_CC 3838if test -n "$CC"; then 3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3840printf "%s\n" "$CC" >&6; } 3841else 3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3843printf "%s\n" "no" >&6; } 3844fi 3845 3846 3847fi 3848if test -z "$ac_cv_prog_CC"; then 3849 ac_ct_CC=$CC 3850 # Extract the first word of "clang", so it can be a program name with args. 3851set dummy clang; ac_word=$2 3852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3853printf %s "checking for $ac_word... " >&6; } 3854if test ${ac_cv_prog_ac_ct_CC+y} 3855then : 3856 printf %s "(cached) " >&6 3857else $as_nop 3858 if test -n "$ac_ct_CC"; then 3859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3860else 3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3862for as_dir in $PATH 3863do 3864 IFS=$as_save_IFS 3865 case $as_dir in #((( 3866 '') as_dir=./ ;; 3867 */) ;; 3868 *) as_dir=$as_dir/ ;; 3869 esac 3870 for ac_exec_ext in '' $ac_executable_extensions; do 3871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3872 ac_cv_prog_ac_ct_CC="clang" 3873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3874 break 2 3875 fi 3876done 3877 done 3878IFS=$as_save_IFS 3879 3880fi 3881fi 3882ac_ct_CC=$ac_cv_prog_ac_ct_CC 3883if test -n "$ac_ct_CC"; then 3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3885printf "%s\n" "$ac_ct_CC" >&6; } 3886else 3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3888printf "%s\n" "no" >&6; } 3889fi 3890 3891 if test "x$ac_ct_CC" = x; then 3892 CC="" 3893 else 3894 case $cross_compiling:$ac_tool_warned in 3895yes:) 3896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3897printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3898ac_tool_warned=yes ;; 3899esac 3900 CC=$ac_ct_CC 3901 fi 3902else 3903 CC="$ac_cv_prog_CC" 3904fi 3905 3906fi 3907 3908 3909test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3910printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3911as_fn_error $? "no acceptable C compiler found in \$PATH 3912See \`config.log' for more details" "$LINENO" 5; } 3913 3914# Provide some information about the compiler. 3915printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3916set X $ac_compile 3917ac_compiler=$2 3918for ac_option in --version -v -V -qversion -version; do 3919 { { ac_try="$ac_compiler $ac_option >&5" 3920case "(($ac_try" in 3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3922 *) ac_try_echo=$ac_try;; 3923esac 3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3925printf "%s\n" "$ac_try_echo"; } >&5 3926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3927 ac_status=$? 3928 if test -s conftest.err; then 3929 sed '10a\ 3930... rest of stderr output deleted ... 3931 10q' conftest.err >conftest.er1 3932 cat conftest.er1 >&5 3933 fi 3934 rm -f conftest.er1 conftest.err 3935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3936 test $ac_status = 0; } 3937done 3938 3939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940/* end confdefs.h. */ 3941 3942int 3943main (void) 3944{ 3945 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950ac_clean_files_save=$ac_clean_files 3951ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3952# Try to create an executable without -o first, disregard a.out. 3953# It will help us diagnose broken compilers, and finding out an intuition 3954# of exeext. 3955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3956printf %s "checking whether the C compiler works... " >&6; } 3957ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3958 3959# The possible output files: 3960ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3961 3962ac_rmfiles= 3963for ac_file in $ac_files 3964do 3965 case $ac_file in 3966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3967 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3968 esac 3969done 3970rm -f $ac_rmfiles 3971 3972if { { ac_try="$ac_link_default" 3973case "(($ac_try" in 3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3975 *) ac_try_echo=$ac_try;; 3976esac 3977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3978printf "%s\n" "$ac_try_echo"; } >&5 3979 (eval "$ac_link_default") 2>&5 3980 ac_status=$? 3981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3982 test $ac_status = 0; } 3983then : 3984 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3985# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3986# in a Makefile. We should not override ac_cv_exeext if it was cached, 3987# so that the user can short-circuit this test for compilers unknown to 3988# Autoconf. 3989for ac_file in $ac_files '' 3990do 3991 test -f "$ac_file" || continue 3992 case $ac_file in 3993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3994 ;; 3995 [ab].out ) 3996 # We found the default executable, but exeext='' is most 3997 # certainly right. 3998 break;; 3999 *.* ) 4000 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4001 then :; else 4002 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4003 fi 4004 # We set ac_cv_exeext here because the later test for it is not 4005 # safe: cross compilers may not add the suffix if given an `-o' 4006 # argument, so we may need to know it at that point already. 4007 # Even if this section looks crufty: it has the advantage of 4008 # actually working. 4009 break;; 4010 * ) 4011 break;; 4012 esac 4013done 4014test "$ac_cv_exeext" = no && ac_cv_exeext= 4015 4016else $as_nop 4017 ac_file='' 4018fi 4019if test -z "$ac_file" 4020then : 4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4022printf "%s\n" "no" >&6; } 4023printf "%s\n" "$as_me: failed program was:" >&5 4024sed 's/^/| /' conftest.$ac_ext >&5 4025 4026{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4027printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4028as_fn_error 77 "C compiler cannot create executables 4029See \`config.log' for more details" "$LINENO" 5; } 4030else $as_nop 4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4032printf "%s\n" "yes" >&6; } 4033fi 4034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4035printf %s "checking for C compiler default output file name... " >&6; } 4036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4037printf "%s\n" "$ac_file" >&6; } 4038ac_exeext=$ac_cv_exeext 4039 4040rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4041ac_clean_files=$ac_clean_files_save 4042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4043printf %s "checking for suffix of executables... " >&6; } 4044if { { ac_try="$ac_link" 4045case "(($ac_try" in 4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4047 *) ac_try_echo=$ac_try;; 4048esac 4049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4050printf "%s\n" "$ac_try_echo"; } >&5 4051 (eval "$ac_link") 2>&5 4052 ac_status=$? 4053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4054 test $ac_status = 0; } 4055then : 4056 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4057# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4058# work properly (i.e., refer to `conftest.exe'), while it won't with 4059# `rm'. 4060for ac_file in conftest.exe conftest conftest.*; do 4061 test -f "$ac_file" || continue 4062 case $ac_file in 4063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4064 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4065 break;; 4066 * ) break;; 4067 esac 4068done 4069else $as_nop 4070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4071printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4072as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4073See \`config.log' for more details" "$LINENO" 5; } 4074fi 4075rm -f conftest conftest$ac_cv_exeext 4076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4077printf "%s\n" "$ac_cv_exeext" >&6; } 4078 4079rm -f conftest.$ac_ext 4080EXEEXT=$ac_cv_exeext 4081ac_exeext=$EXEEXT 4082cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4083/* end confdefs.h. */ 4084#include <stdio.h> 4085int 4086main (void) 4087{ 4088FILE *f = fopen ("conftest.out", "w"); 4089 return ferror (f) || fclose (f) != 0; 4090 4091 ; 4092 return 0; 4093} 4094_ACEOF 4095ac_clean_files="$ac_clean_files conftest.out" 4096# Check that the compiler produces executables we can run. If not, either 4097# the compiler is broken, or we cross compile. 4098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4099printf %s "checking whether we are cross compiling... " >&6; } 4100if test "$cross_compiling" != yes; then 4101 { { ac_try="$ac_link" 4102case "(($ac_try" in 4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4104 *) ac_try_echo=$ac_try;; 4105esac 4106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4107printf "%s\n" "$ac_try_echo"; } >&5 4108 (eval "$ac_link") 2>&5 4109 ac_status=$? 4110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4111 test $ac_status = 0; } 4112 if { ac_try='./conftest$ac_cv_exeext' 4113 { { case "(($ac_try" in 4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4115 *) ac_try_echo=$ac_try;; 4116esac 4117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4118printf "%s\n" "$ac_try_echo"; } >&5 4119 (eval "$ac_try") 2>&5 4120 ac_status=$? 4121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4122 test $ac_status = 0; }; }; then 4123 cross_compiling=no 4124 else 4125 if test "$cross_compiling" = maybe; then 4126 cross_compiling=yes 4127 else 4128 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4129printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4130as_fn_error 77 "cannot run C compiled programs. 4131If you meant to cross compile, use \`--host'. 4132See \`config.log' for more details" "$LINENO" 5; } 4133 fi 4134 fi 4135fi 4136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4137printf "%s\n" "$cross_compiling" >&6; } 4138 4139rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4140ac_clean_files=$ac_clean_files_save 4141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4142printf %s "checking for suffix of object files... " >&6; } 4143if test ${ac_cv_objext+y} 4144then : 4145 printf %s "(cached) " >&6 4146else $as_nop 4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4148/* end confdefs.h. */ 4149 4150int 4151main (void) 4152{ 4153 4154 ; 4155 return 0; 4156} 4157_ACEOF 4158rm -f conftest.o conftest.obj 4159if { { ac_try="$ac_compile" 4160case "(($ac_try" in 4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4162 *) ac_try_echo=$ac_try;; 4163esac 4164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4165printf "%s\n" "$ac_try_echo"; } >&5 4166 (eval "$ac_compile") 2>&5 4167 ac_status=$? 4168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4169 test $ac_status = 0; } 4170then : 4171 for ac_file in conftest.o conftest.obj conftest.*; do 4172 test -f "$ac_file" || continue; 4173 case $ac_file in 4174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4176 break;; 4177 esac 4178done 4179else $as_nop 4180 printf "%s\n" "$as_me: failed program was:" >&5 4181sed 's/^/| /' conftest.$ac_ext >&5 4182 4183{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4184printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4185as_fn_error $? "cannot compute suffix of object files: cannot compile 4186See \`config.log' for more details" "$LINENO" 5; } 4187fi 4188rm -f conftest.$ac_cv_objext conftest.$ac_ext 4189fi 4190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4191printf "%s\n" "$ac_cv_objext" >&6; } 4192OBJEXT=$ac_cv_objext 4193ac_objext=$OBJEXT 4194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4195printf %s "checking whether the compiler supports GNU C... " >&6; } 4196if test ${ac_cv_c_compiler_gnu+y} 4197then : 4198 printf %s "(cached) " >&6 4199else $as_nop 4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4201/* end confdefs.h. */ 4202 4203int 4204main (void) 4205{ 4206#ifndef __GNUC__ 4207 choke me 4208#endif 4209 4210 ; 4211 return 0; 4212} 4213_ACEOF 4214if ac_fn_c_try_compile "$LINENO" 4215then : 4216 ac_compiler_gnu=yes 4217else $as_nop 4218 ac_compiler_gnu=no 4219fi 4220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4221ac_cv_c_compiler_gnu=$ac_compiler_gnu 4222 4223fi 4224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4225printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4226ac_compiler_gnu=$ac_cv_c_compiler_gnu 4227 4228if test $ac_compiler_gnu = yes; then 4229 GCC=yes 4230else 4231 GCC= 4232fi 4233ac_test_CFLAGS=${CFLAGS+y} 4234ac_save_CFLAGS=$CFLAGS 4235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4236printf %s "checking whether $CC accepts -g... " >&6; } 4237if test ${ac_cv_prog_cc_g+y} 4238then : 4239 printf %s "(cached) " >&6 4240else $as_nop 4241 ac_save_c_werror_flag=$ac_c_werror_flag 4242 ac_c_werror_flag=yes 4243 ac_cv_prog_cc_g=no 4244 CFLAGS="-g" 4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246/* end confdefs.h. */ 4247 4248int 4249main (void) 4250{ 4251 4252 ; 4253 return 0; 4254} 4255_ACEOF 4256if ac_fn_c_try_compile "$LINENO" 4257then : 4258 ac_cv_prog_cc_g=yes 4259else $as_nop 4260 CFLAGS="" 4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4262/* end confdefs.h. */ 4263 4264int 4265main (void) 4266{ 4267 4268 ; 4269 return 0; 4270} 4271_ACEOF 4272if ac_fn_c_try_compile "$LINENO" 4273then : 4274 4275else $as_nop 4276 ac_c_werror_flag=$ac_save_c_werror_flag 4277 CFLAGS="-g" 4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4279/* end confdefs.h. */ 4280 4281int 4282main (void) 4283{ 4284 4285 ; 4286 return 0; 4287} 4288_ACEOF 4289if ac_fn_c_try_compile "$LINENO" 4290then : 4291 ac_cv_prog_cc_g=yes 4292fi 4293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4294fi 4295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4296fi 4297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4298 ac_c_werror_flag=$ac_save_c_werror_flag 4299fi 4300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4301printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4302if test $ac_test_CFLAGS; then 4303 CFLAGS=$ac_save_CFLAGS 4304elif test $ac_cv_prog_cc_g = yes; then 4305 if test "$GCC" = yes; then 4306 CFLAGS="-g -O2" 4307 else 4308 CFLAGS="-g" 4309 fi 4310else 4311 if test "$GCC" = yes; then 4312 CFLAGS="-O2" 4313 else 4314 CFLAGS= 4315 fi 4316fi 4317ac_prog_cc_stdc=no 4318if test x$ac_prog_cc_stdc = xno 4319then : 4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4321printf %s "checking for $CC option to enable C11 features... " >&6; } 4322if test ${ac_cv_prog_cc_c11+y} 4323then : 4324 printf %s "(cached) " >&6 4325else $as_nop 4326 ac_cv_prog_cc_c11=no 4327ac_save_CC=$CC 4328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4329/* end confdefs.h. */ 4330$ac_c_conftest_c11_program 4331_ACEOF 4332for ac_arg in '' -std=gnu11 4333do 4334 CC="$ac_save_CC $ac_arg" 4335 if ac_fn_c_try_compile "$LINENO" 4336then : 4337 ac_cv_prog_cc_c11=$ac_arg 4338fi 4339rm -f core conftest.err conftest.$ac_objext conftest.beam 4340 test "x$ac_cv_prog_cc_c11" != "xno" && break 4341done 4342rm -f conftest.$ac_ext 4343CC=$ac_save_CC 4344fi 4345 4346if test "x$ac_cv_prog_cc_c11" = xno 4347then : 4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4349printf "%s\n" "unsupported" >&6; } 4350else $as_nop 4351 if test "x$ac_cv_prog_cc_c11" = x 4352then : 4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4354printf "%s\n" "none needed" >&6; } 4355else $as_nop 4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4357printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4358 CC="$CC $ac_cv_prog_cc_c11" 4359fi 4360 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4361 ac_prog_cc_stdc=c11 4362fi 4363fi 4364if test x$ac_prog_cc_stdc = xno 4365then : 4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4367printf %s "checking for $CC option to enable C99 features... " >&6; } 4368if test ${ac_cv_prog_cc_c99+y} 4369then : 4370 printf %s "(cached) " >&6 4371else $as_nop 4372 ac_cv_prog_cc_c99=no 4373ac_save_CC=$CC 4374cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4375/* end confdefs.h. */ 4376$ac_c_conftest_c99_program 4377_ACEOF 4378for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4379do 4380 CC="$ac_save_CC $ac_arg" 4381 if ac_fn_c_try_compile "$LINENO" 4382then : 4383 ac_cv_prog_cc_c99=$ac_arg 4384fi 4385rm -f core conftest.err conftest.$ac_objext conftest.beam 4386 test "x$ac_cv_prog_cc_c99" != "xno" && break 4387done 4388rm -f conftest.$ac_ext 4389CC=$ac_save_CC 4390fi 4391 4392if test "x$ac_cv_prog_cc_c99" = xno 4393then : 4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4395printf "%s\n" "unsupported" >&6; } 4396else $as_nop 4397 if test "x$ac_cv_prog_cc_c99" = x 4398then : 4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4400printf "%s\n" "none needed" >&6; } 4401else $as_nop 4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4403printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4404 CC="$CC $ac_cv_prog_cc_c99" 4405fi 4406 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4407 ac_prog_cc_stdc=c99 4408fi 4409fi 4410if test x$ac_prog_cc_stdc = xno 4411then : 4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4413printf %s "checking for $CC option to enable C89 features... " >&6; } 4414if test ${ac_cv_prog_cc_c89+y} 4415then : 4416 printf %s "(cached) " >&6 4417else $as_nop 4418 ac_cv_prog_cc_c89=no 4419ac_save_CC=$CC 4420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4421/* end confdefs.h. */ 4422$ac_c_conftest_c89_program 4423_ACEOF 4424for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4425do 4426 CC="$ac_save_CC $ac_arg" 4427 if ac_fn_c_try_compile "$LINENO" 4428then : 4429 ac_cv_prog_cc_c89=$ac_arg 4430fi 4431rm -f core conftest.err conftest.$ac_objext conftest.beam 4432 test "x$ac_cv_prog_cc_c89" != "xno" && break 4433done 4434rm -f conftest.$ac_ext 4435CC=$ac_save_CC 4436fi 4437 4438if test "x$ac_cv_prog_cc_c89" = xno 4439then : 4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4441printf "%s\n" "unsupported" >&6; } 4442else $as_nop 4443 if test "x$ac_cv_prog_cc_c89" = x 4444then : 4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4446printf "%s\n" "none needed" >&6; } 4447else $as_nop 4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4449printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4450 CC="$CC $ac_cv_prog_cc_c89" 4451fi 4452 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4453 ac_prog_cc_stdc=c89 4454fi 4455fi 4456 4457ac_ext=c 4458ac_cpp='$CPP $CPPFLAGS' 4459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4461ac_compiler_gnu=$ac_cv_c_compiler_gnu 4462 4463 4464 ac_ext=c 4465ac_cpp='$CPP $CPPFLAGS' 4466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4468ac_compiler_gnu=$ac_cv_c_compiler_gnu 4469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4470printf %s "checking whether $CC understands -c and -o together... " >&6; } 4471if test ${am_cv_prog_cc_c_o+y} 4472then : 4473 printf %s "(cached) " >&6 4474else $as_nop 4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4476/* end confdefs.h. */ 4477 4478int 4479main (void) 4480{ 4481 4482 ; 4483 return 0; 4484} 4485_ACEOF 4486 # Make sure it works both with $CC and with simple cc. 4487 # Following AC_PROG_CC_C_O, we do the test twice because some 4488 # compilers refuse to overwrite an existing .o file with -o, 4489 # though they will create one. 4490 am_cv_prog_cc_c_o=yes 4491 for am_i in 1 2; do 4492 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4493 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4494 ac_status=$? 4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4496 (exit $ac_status); } \ 4497 && test -f conftest2.$ac_objext; then 4498 : OK 4499 else 4500 am_cv_prog_cc_c_o=no 4501 break 4502 fi 4503 done 4504 rm -f core conftest* 4505 unset am_i 4506fi 4507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4508printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4509if test "$am_cv_prog_cc_c_o" != yes; then 4510 # Losing compiler, so override with the script. 4511 # FIXME: It is wrong to rewrite CC. 4512 # But if we don't then we get into trouble of one sort or another. 4513 # A longer-term fix would be to have automake use am__CC in this case, 4514 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4515 CC="$am_aux_dir/compile $CC" 4516fi 4517ac_ext=c 4518ac_cpp='$CPP $CPPFLAGS' 4519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4521ac_compiler_gnu=$ac_cv_c_compiler_gnu 4522 4523 4524depcc="$CC" am_compiler_list= 4525 4526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4527printf %s "checking dependency style of $depcc... " >&6; } 4528if test ${am_cv_CC_dependencies_compiler_type+y} 4529then : 4530 printf %s "(cached) " >&6 4531else $as_nop 4532 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4533 # We make a subdir and do the tests there. Otherwise we can end up 4534 # making bogus files that we don't know about and never remove. For 4535 # instance it was reported that on HP-UX the gcc test will end up 4536 # making a dummy file named 'D' -- because '-MD' means "put the output 4537 # in D". 4538 rm -rf conftest.dir 4539 mkdir conftest.dir 4540 # Copy depcomp to subdir because otherwise we won't find it if we're 4541 # using a relative directory. 4542 cp "$am_depcomp" conftest.dir 4543 cd conftest.dir 4544 # We will build objects and dependencies in a subdirectory because 4545 # it helps to detect inapplicable dependency modes. For instance 4546 # both Tru64's cc and ICC support -MD to output dependencies as a 4547 # side effect of compilation, but ICC will put the dependencies in 4548 # the current directory while Tru64 will put them in the object 4549 # directory. 4550 mkdir sub 4551 4552 am_cv_CC_dependencies_compiler_type=none 4553 if test "$am_compiler_list" = ""; then 4554 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4555 fi 4556 am__universal=false 4557 case " $depcc " in #( 4558 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4559 esac 4560 4561 for depmode in $am_compiler_list; do 4562 # Setup a source with many dependencies, because some compilers 4563 # like to wrap large dependency lists on column 80 (with \), and 4564 # we should not choose a depcomp mode which is confused by this. 4565 # 4566 # We need to recreate these files for each test, as the compiler may 4567 # overwrite some of them when testing with obscure command lines. 4568 # This happens at least with the AIX C compiler. 4569 : > sub/conftest.c 4570 for i in 1 2 3 4 5 6; do 4571 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4572 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4573 # Solaris 10 /bin/sh. 4574 echo '/* dummy */' > sub/conftst$i.h 4575 done 4576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4577 4578 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4579 # mode. It turns out that the SunPro C++ compiler does not properly 4580 # handle '-M -o', and we need to detect this. Also, some Intel 4581 # versions had trouble with output in subdirs. 4582 am__obj=sub/conftest.${OBJEXT-o} 4583 am__minus_obj="-o $am__obj" 4584 case $depmode in 4585 gcc) 4586 # This depmode causes a compiler race in universal mode. 4587 test "$am__universal" = false || continue 4588 ;; 4589 nosideeffect) 4590 # After this tag, mechanisms are not by side-effect, so they'll 4591 # only be used when explicitly requested. 4592 if test "x$enable_dependency_tracking" = xyes; then 4593 continue 4594 else 4595 break 4596 fi 4597 ;; 4598 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4599 # This compiler won't grok '-c -o', but also, the minuso test has 4600 # not run yet. These depmodes are late enough in the game, and 4601 # so weak that their functioning should not be impacted. 4602 am__obj=conftest.${OBJEXT-o} 4603 am__minus_obj= 4604 ;; 4605 none) break ;; 4606 esac 4607 if depmode=$depmode \ 4608 source=sub/conftest.c object=$am__obj \ 4609 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4610 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4611 >/dev/null 2>conftest.err && 4612 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4613 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4614 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4615 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4616 # icc doesn't choke on unknown options, it will just issue warnings 4617 # or remarks (even with -Werror). So we grep stderr for any message 4618 # that says an option was ignored or not supported. 4619 # When given -MP, icc 7.0 and 7.1 complain thusly: 4620 # icc: Command line warning: ignoring option '-M'; no argument required 4621 # The diagnosis changed in icc 8.0: 4622 # icc: Command line remark: option '-MP' not supported 4623 if (grep 'ignoring option' conftest.err || 4624 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4625 am_cv_CC_dependencies_compiler_type=$depmode 4626 break 4627 fi 4628 fi 4629 done 4630 4631 cd .. 4632 rm -rf conftest.dir 4633else 4634 am_cv_CC_dependencies_compiler_type=none 4635fi 4636 4637fi 4638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4639printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4640CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4641 4642 if 4643 test "x$enable_dependency_tracking" != xno \ 4644 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4645 am__fastdepCC_TRUE= 4646 am__fastdepCC_FALSE='#' 4647else 4648 am__fastdepCC_TRUE='#' 4649 am__fastdepCC_FALSE= 4650fi 4651 4652 4653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4654printf %s "checking for a sed that does not truncate output... " >&6; } 4655if test ${ac_cv_path_SED+y} 4656then : 4657 printf %s "(cached) " >&6 4658else $as_nop 4659 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4660 for ac_i in 1 2 3 4 5 6 7; do 4661 ac_script="$ac_script$as_nl$ac_script" 4662 done 4663 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4664 { ac_script=; unset ac_script;} 4665 if test -z "$SED"; then 4666 ac_path_SED_found=false 4667 # Loop through the user's path and test for each of PROGNAME-LIST 4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4669for as_dir in $PATH 4670do 4671 IFS=$as_save_IFS 4672 case $as_dir in #((( 4673 '') as_dir=./ ;; 4674 */) ;; 4675 *) as_dir=$as_dir/ ;; 4676 esac 4677 for ac_prog in sed gsed 4678 do 4679 for ac_exec_ext in '' $ac_executable_extensions; do 4680 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4681 as_fn_executable_p "$ac_path_SED" || continue 4682# Check for GNU ac_path_SED and select it if it is found. 4683 # Check for GNU $ac_path_SED 4684case `"$ac_path_SED" --version 2>&1` in 4685*GNU*) 4686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4687*) 4688 ac_count=0 4689 printf %s 0123456789 >"conftest.in" 4690 while : 4691 do 4692 cat "conftest.in" "conftest.in" >"conftest.tmp" 4693 mv "conftest.tmp" "conftest.in" 4694 cp "conftest.in" "conftest.nl" 4695 printf "%s\n" '' >> "conftest.nl" 4696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4698 as_fn_arith $ac_count + 1 && ac_count=$as_val 4699 if test $ac_count -gt ${ac_path_SED_max-0}; then 4700 # Best one so far, save it but keep looking for a better one 4701 ac_cv_path_SED="$ac_path_SED" 4702 ac_path_SED_max=$ac_count 4703 fi 4704 # 10*(2^10) chars as input seems more than enough 4705 test $ac_count -gt 10 && break 4706 done 4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4708esac 4709 4710 $ac_path_SED_found && break 3 4711 done 4712 done 4713 done 4714IFS=$as_save_IFS 4715 if test -z "$ac_cv_path_SED"; then 4716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4717 fi 4718else 4719 ac_cv_path_SED=$SED 4720fi 4721 4722fi 4723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4724printf "%s\n" "$ac_cv_path_SED" >&6; } 4725 SED="$ac_cv_path_SED" 4726 rm -f conftest.sed 4727 4728test -z "$SED" && SED=sed 4729Xsed="$SED -e 1s/^X//" 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4742printf %s "checking for grep that handles long lines and -e... " >&6; } 4743if test ${ac_cv_path_GREP+y} 4744then : 4745 printf %s "(cached) " >&6 4746else $as_nop 4747 if test -z "$GREP"; then 4748 ac_path_GREP_found=false 4749 # Loop through the user's path and test for each of PROGNAME-LIST 4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4751for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4752do 4753 IFS=$as_save_IFS 4754 case $as_dir in #((( 4755 '') as_dir=./ ;; 4756 */) ;; 4757 *) as_dir=$as_dir/ ;; 4758 esac 4759 for ac_prog in grep ggrep 4760 do 4761 for ac_exec_ext in '' $ac_executable_extensions; do 4762 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4763 as_fn_executable_p "$ac_path_GREP" || continue 4764# Check for GNU ac_path_GREP and select it if it is found. 4765 # Check for GNU $ac_path_GREP 4766case `"$ac_path_GREP" --version 2>&1` in 4767*GNU*) 4768 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4769*) 4770 ac_count=0 4771 printf %s 0123456789 >"conftest.in" 4772 while : 4773 do 4774 cat "conftest.in" "conftest.in" >"conftest.tmp" 4775 mv "conftest.tmp" "conftest.in" 4776 cp "conftest.in" "conftest.nl" 4777 printf "%s\n" 'GREP' >> "conftest.nl" 4778 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4780 as_fn_arith $ac_count + 1 && ac_count=$as_val 4781 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4782 # Best one so far, save it but keep looking for a better one 4783 ac_cv_path_GREP="$ac_path_GREP" 4784 ac_path_GREP_max=$ac_count 4785 fi 4786 # 10*(2^10) chars as input seems more than enough 4787 test $ac_count -gt 10 && break 4788 done 4789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4790esac 4791 4792 $ac_path_GREP_found && break 3 4793 done 4794 done 4795 done 4796IFS=$as_save_IFS 4797 if test -z "$ac_cv_path_GREP"; then 4798 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4799 fi 4800else 4801 ac_cv_path_GREP=$GREP 4802fi 4803 4804fi 4805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4806printf "%s\n" "$ac_cv_path_GREP" >&6; } 4807 GREP="$ac_cv_path_GREP" 4808 4809 4810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4811printf %s "checking for egrep... " >&6; } 4812if test ${ac_cv_path_EGREP+y} 4813then : 4814 printf %s "(cached) " >&6 4815else $as_nop 4816 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4817 then ac_cv_path_EGREP="$GREP -E" 4818 else 4819 if test -z "$EGREP"; then 4820 ac_path_EGREP_found=false 4821 # Loop through the user's path and test for each of PROGNAME-LIST 4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4823for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4824do 4825 IFS=$as_save_IFS 4826 case $as_dir in #((( 4827 '') as_dir=./ ;; 4828 */) ;; 4829 *) as_dir=$as_dir/ ;; 4830 esac 4831 for ac_prog in egrep 4832 do 4833 for ac_exec_ext in '' $ac_executable_extensions; do 4834 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4835 as_fn_executable_p "$ac_path_EGREP" || continue 4836# Check for GNU ac_path_EGREP and select it if it is found. 4837 # Check for GNU $ac_path_EGREP 4838case `"$ac_path_EGREP" --version 2>&1` in 4839*GNU*) 4840 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4841*) 4842 ac_count=0 4843 printf %s 0123456789 >"conftest.in" 4844 while : 4845 do 4846 cat "conftest.in" "conftest.in" >"conftest.tmp" 4847 mv "conftest.tmp" "conftest.in" 4848 cp "conftest.in" "conftest.nl" 4849 printf "%s\n" 'EGREP' >> "conftest.nl" 4850 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4852 as_fn_arith $ac_count + 1 && ac_count=$as_val 4853 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4854 # Best one so far, save it but keep looking for a better one 4855 ac_cv_path_EGREP="$ac_path_EGREP" 4856 ac_path_EGREP_max=$ac_count 4857 fi 4858 # 10*(2^10) chars as input seems more than enough 4859 test $ac_count -gt 10 && break 4860 done 4861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4862esac 4863 4864 $ac_path_EGREP_found && break 3 4865 done 4866 done 4867 done 4868IFS=$as_save_IFS 4869 if test -z "$ac_cv_path_EGREP"; then 4870 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4871 fi 4872else 4873 ac_cv_path_EGREP=$EGREP 4874fi 4875 4876 fi 4877fi 4878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4879printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4880 EGREP="$ac_cv_path_EGREP" 4881 4882 4883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4884printf %s "checking for fgrep... " >&6; } 4885if test ${ac_cv_path_FGREP+y} 4886then : 4887 printf %s "(cached) " >&6 4888else $as_nop 4889 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4890 then ac_cv_path_FGREP="$GREP -F" 4891 else 4892 if test -z "$FGREP"; then 4893 ac_path_FGREP_found=false 4894 # Loop through the user's path and test for each of PROGNAME-LIST 4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4896for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4897do 4898 IFS=$as_save_IFS 4899 case $as_dir in #((( 4900 '') as_dir=./ ;; 4901 */) ;; 4902 *) as_dir=$as_dir/ ;; 4903 esac 4904 for ac_prog in fgrep 4905 do 4906 for ac_exec_ext in '' $ac_executable_extensions; do 4907 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4908 as_fn_executable_p "$ac_path_FGREP" || continue 4909# Check for GNU ac_path_FGREP and select it if it is found. 4910 # Check for GNU $ac_path_FGREP 4911case `"$ac_path_FGREP" --version 2>&1` in 4912*GNU*) 4913 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4914*) 4915 ac_count=0 4916 printf %s 0123456789 >"conftest.in" 4917 while : 4918 do 4919 cat "conftest.in" "conftest.in" >"conftest.tmp" 4920 mv "conftest.tmp" "conftest.in" 4921 cp "conftest.in" "conftest.nl" 4922 printf "%s\n" 'FGREP' >> "conftest.nl" 4923 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4925 as_fn_arith $ac_count + 1 && ac_count=$as_val 4926 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4927 # Best one so far, save it but keep looking for a better one 4928 ac_cv_path_FGREP="$ac_path_FGREP" 4929 ac_path_FGREP_max=$ac_count 4930 fi 4931 # 10*(2^10) chars as input seems more than enough 4932 test $ac_count -gt 10 && break 4933 done 4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4935esac 4936 4937 $ac_path_FGREP_found && break 3 4938 done 4939 done 4940 done 4941IFS=$as_save_IFS 4942 if test -z "$ac_cv_path_FGREP"; then 4943 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4944 fi 4945else 4946 ac_cv_path_FGREP=$FGREP 4947fi 4948 4949 fi 4950fi 4951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4952printf "%s\n" "$ac_cv_path_FGREP" >&6; } 4953 FGREP="$ac_cv_path_FGREP" 4954 4955 4956test -z "$GREP" && GREP=grep 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976# Check whether --with-gnu-ld was given. 4977if test ${with_gnu_ld+y} 4978then : 4979 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4980else $as_nop 4981 with_gnu_ld=no 4982fi 4983 4984ac_prog=ld 4985if test yes = "$GCC"; then 4986 # Check if gcc -print-prog-name=ld gives a path. 4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4988printf %s "checking for ld used by $CC... " >&6; } 4989 case $host in 4990 *-*-mingw*) 4991 # gcc leaves a trailing carriage return, which upsets mingw 4992 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4993 *) 4994 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4995 esac 4996 case $ac_prog in 4997 # Accept absolute paths. 4998 [\\/]* | ?:[\\/]*) 4999 re_direlt='/[^/][^/]*/\.\./' 5000 # Canonicalize the pathname of ld 5001 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5002 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5003 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5004 done 5005 test -z "$LD" && LD=$ac_prog 5006 ;; 5007 "") 5008 # If it fails, then pretend we aren't using GCC. 5009 ac_prog=ld 5010 ;; 5011 *) 5012 # If it is relative, then search for the first ld in PATH. 5013 with_gnu_ld=unknown 5014 ;; 5015 esac 5016elif test yes = "$with_gnu_ld"; then 5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5018printf %s "checking for GNU ld... " >&6; } 5019else 5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5021printf %s "checking for non-GNU ld... " >&6; } 5022fi 5023if test ${lt_cv_path_LD+y} 5024then : 5025 printf %s "(cached) " >&6 5026else $as_nop 5027 if test -z "$LD"; then 5028 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5029 for ac_dir in $PATH; do 5030 IFS=$lt_save_ifs 5031 test -z "$ac_dir" && ac_dir=. 5032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5033 lt_cv_path_LD=$ac_dir/$ac_prog 5034 # Check to see if the program is GNU ld. I'd rather use --version, 5035 # but apparently some variants of GNU ld only accept -v. 5036 # Break only if it was the GNU/non-GNU ld that we prefer. 5037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5038 *GNU* | *'with BFD'*) 5039 test no != "$with_gnu_ld" && break 5040 ;; 5041 *) 5042 test yes != "$with_gnu_ld" && break 5043 ;; 5044 esac 5045 fi 5046 done 5047 IFS=$lt_save_ifs 5048else 5049 lt_cv_path_LD=$LD # Let the user override the test with a path. 5050fi 5051fi 5052 5053LD=$lt_cv_path_LD 5054if test -n "$LD"; then 5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5056printf "%s\n" "$LD" >&6; } 5057else 5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5059printf "%s\n" "no" >&6; } 5060fi 5061test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5063printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5064if test ${lt_cv_prog_gnu_ld+y} 5065then : 5066 printf %s "(cached) " >&6 5067else $as_nop 5068 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5069case `$LD -v 2>&1 </dev/null` in 5070*GNU* | *'with BFD'*) 5071 lt_cv_prog_gnu_ld=yes 5072 ;; 5073*) 5074 lt_cv_prog_gnu_ld=no 5075 ;; 5076esac 5077fi 5078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5079printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5080with_gnu_ld=$lt_cv_prog_gnu_ld 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5091printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5092if test ${lt_cv_path_NM+y} 5093then : 5094 printf %s "(cached) " >&6 5095else $as_nop 5096 if test -n "$NM"; then 5097 # Let the user override the test. 5098 lt_cv_path_NM=$NM 5099else 5100 lt_nm_to_check=${ac_tool_prefix}nm 5101 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5102 lt_nm_to_check="$lt_nm_to_check nm" 5103 fi 5104 for lt_tmp_nm in $lt_nm_to_check; do 5105 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5106 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5107 IFS=$lt_save_ifs 5108 test -z "$ac_dir" && ac_dir=. 5109 tmp_nm=$ac_dir/$lt_tmp_nm 5110 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5111 # Check to see if the nm accepts a BSD-compat flag. 5112 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5113 # nm: unknown option "B" ignored 5114 # Tru64's nm complains that /dev/null is an invalid object file 5115 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5116 case $build_os in 5117 mingw*) lt_bad_file=conftest.nm/nofile ;; 5118 *) lt_bad_file=/dev/null ;; 5119 esac 5120 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5121 *$lt_bad_file* | *'Invalid file or object type'*) 5122 lt_cv_path_NM="$tmp_nm -B" 5123 break 2 5124 ;; 5125 *) 5126 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5127 */dev/null*) 5128 lt_cv_path_NM="$tmp_nm -p" 5129 break 2 5130 ;; 5131 *) 5132 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5133 continue # so that we can try to find one that supports BSD flags 5134 ;; 5135 esac 5136 ;; 5137 esac 5138 fi 5139 done 5140 IFS=$lt_save_ifs 5141 done 5142 : ${lt_cv_path_NM=no} 5143fi 5144fi 5145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5146printf "%s\n" "$lt_cv_path_NM" >&6; } 5147if test no != "$lt_cv_path_NM"; then 5148 NM=$lt_cv_path_NM 5149else 5150 # Didn't find any BSD compatible name lister, look for dumpbin. 5151 if test -n "$DUMPBIN"; then : 5152 # Let the user override the test. 5153 else 5154 if test -n "$ac_tool_prefix"; then 5155 for ac_prog in dumpbin "link -dump" 5156 do 5157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5158set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5160printf %s "checking for $ac_word... " >&6; } 5161if test ${ac_cv_prog_DUMPBIN+y} 5162then : 5163 printf %s "(cached) " >&6 5164else $as_nop 5165 if test -n "$DUMPBIN"; then 5166 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5167else 5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5169for as_dir in $PATH 5170do 5171 IFS=$as_save_IFS 5172 case $as_dir in #((( 5173 '') as_dir=./ ;; 5174 */) ;; 5175 *) as_dir=$as_dir/ ;; 5176 esac 5177 for ac_exec_ext in '' $ac_executable_extensions; do 5178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5179 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5181 break 2 5182 fi 5183done 5184 done 5185IFS=$as_save_IFS 5186 5187fi 5188fi 5189DUMPBIN=$ac_cv_prog_DUMPBIN 5190if test -n "$DUMPBIN"; then 5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5192printf "%s\n" "$DUMPBIN" >&6; } 5193else 5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5195printf "%s\n" "no" >&6; } 5196fi 5197 5198 5199 test -n "$DUMPBIN" && break 5200 done 5201fi 5202if test -z "$DUMPBIN"; then 5203 ac_ct_DUMPBIN=$DUMPBIN 5204 for ac_prog in dumpbin "link -dump" 5205do 5206 # Extract the first word of "$ac_prog", so it can be a program name with args. 5207set dummy $ac_prog; ac_word=$2 5208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5209printf %s "checking for $ac_word... " >&6; } 5210if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5211then : 5212 printf %s "(cached) " >&6 5213else $as_nop 5214 if test -n "$ac_ct_DUMPBIN"; then 5215 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5216else 5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5218for as_dir in $PATH 5219do 5220 IFS=$as_save_IFS 5221 case $as_dir in #((( 5222 '') as_dir=./ ;; 5223 */) ;; 5224 *) as_dir=$as_dir/ ;; 5225 esac 5226 for ac_exec_ext in '' $ac_executable_extensions; do 5227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5228 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5230 break 2 5231 fi 5232done 5233 done 5234IFS=$as_save_IFS 5235 5236fi 5237fi 5238ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5239if test -n "$ac_ct_DUMPBIN"; then 5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5241printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5242else 5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5244printf "%s\n" "no" >&6; } 5245fi 5246 5247 5248 test -n "$ac_ct_DUMPBIN" && break 5249done 5250 5251 if test "x$ac_ct_DUMPBIN" = x; then 5252 DUMPBIN=":" 5253 else 5254 case $cross_compiling:$ac_tool_warned in 5255yes:) 5256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5257printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5258ac_tool_warned=yes ;; 5259esac 5260 DUMPBIN=$ac_ct_DUMPBIN 5261 fi 5262fi 5263 5264 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5265 *COFF*) 5266 DUMPBIN="$DUMPBIN -symbols -headers" 5267 ;; 5268 *) 5269 DUMPBIN=: 5270 ;; 5271 esac 5272 fi 5273 5274 if test : != "$DUMPBIN"; then 5275 NM=$DUMPBIN 5276 fi 5277fi 5278test -z "$NM" && NM=nm 5279 5280 5281 5282 5283 5284 5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5286printf %s "checking the name lister ($NM) interface... " >&6; } 5287if test ${lt_cv_nm_interface+y} 5288then : 5289 printf %s "(cached) " >&6 5290else $as_nop 5291 lt_cv_nm_interface="BSD nm" 5292 echo "int some_variable = 0;" > conftest.$ac_ext 5293 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5294 (eval "$ac_compile" 2>conftest.err) 5295 cat conftest.err >&5 5296 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5297 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5298 cat conftest.err >&5 5299 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5300 cat conftest.out >&5 5301 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5302 lt_cv_nm_interface="MS dumpbin" 5303 fi 5304 rm -f conftest* 5305fi 5306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5307printf "%s\n" "$lt_cv_nm_interface" >&6; } 5308 5309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5310printf %s "checking whether ln -s works... " >&6; } 5311LN_S=$as_ln_s 5312if test "$LN_S" = "ln -s"; then 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5314printf "%s\n" "yes" >&6; } 5315else 5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5317printf "%s\n" "no, using $LN_S" >&6; } 5318fi 5319 5320# find the maximum length of command line arguments 5321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5322printf %s "checking the maximum length of command line arguments... " >&6; } 5323if test ${lt_cv_sys_max_cmd_len+y} 5324then : 5325 printf %s "(cached) " >&6 5326else $as_nop 5327 i=0 5328 teststring=ABCD 5329 5330 case $build_os in 5331 msdosdjgpp*) 5332 # On DJGPP, this test can blow up pretty badly due to problems in libc 5333 # (any single argument exceeding 2000 bytes causes a buffer overrun 5334 # during glob expansion). Even if it were fixed, the result of this 5335 # check would be larger than it should be. 5336 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5337 ;; 5338 5339 gnu*) 5340 # Under GNU Hurd, this test is not required because there is 5341 # no limit to the length of command line arguments. 5342 # Libtool will interpret -1 as no limit whatsoever 5343 lt_cv_sys_max_cmd_len=-1; 5344 ;; 5345 5346 cygwin* | mingw* | cegcc*) 5347 # On Win9x/ME, this test blows up -- it succeeds, but takes 5348 # about 5 minutes as the teststring grows exponentially. 5349 # Worse, since 9x/ME are not pre-emptively multitasking, 5350 # you end up with a "frozen" computer, even though with patience 5351 # the test eventually succeeds (with a max line length of 256k). 5352 # Instead, let's just punt: use the minimum linelength reported by 5353 # all of the supported platforms: 8192 (on NT/2K/XP). 5354 lt_cv_sys_max_cmd_len=8192; 5355 ;; 5356 5357 mint*) 5358 # On MiNT this can take a long time and run out of memory. 5359 lt_cv_sys_max_cmd_len=8192; 5360 ;; 5361 5362 amigaos*) 5363 # On AmigaOS with pdksh, this test takes hours, literally. 5364 # So we just punt and use a minimum line length of 8192. 5365 lt_cv_sys_max_cmd_len=8192; 5366 ;; 5367 5368 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5369 # This has been around since 386BSD, at least. Likely further. 5370 if test -x /sbin/sysctl; then 5371 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5372 elif test -x /usr/sbin/sysctl; then 5373 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5374 else 5375 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5376 fi 5377 # And add a safety zone 5378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5380 ;; 5381 5382 interix*) 5383 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5384 lt_cv_sys_max_cmd_len=196608 5385 ;; 5386 5387 os2*) 5388 # The test takes a long time on OS/2. 5389 lt_cv_sys_max_cmd_len=8192 5390 ;; 5391 5392 osf*) 5393 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5394 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5395 # nice to cause kernel panics so lets avoid the loop below. 5396 # First set a reasonable default. 5397 lt_cv_sys_max_cmd_len=16384 5398 # 5399 if test -x /sbin/sysconfig; then 5400 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5401 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5402 esac 5403 fi 5404 ;; 5405 sco3.2v5*) 5406 lt_cv_sys_max_cmd_len=102400 5407 ;; 5408 sysv5* | sco5v6* | sysv4.2uw2*) 5409 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5410 if test -n "$kargmax"; then 5411 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5412 else 5413 lt_cv_sys_max_cmd_len=32768 5414 fi 5415 ;; 5416 *) 5417 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5418 if test -n "$lt_cv_sys_max_cmd_len" && \ 5419 test undefined != "$lt_cv_sys_max_cmd_len"; then 5420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5422 else 5423 # Make teststring a little bigger before we do anything with it. 5424 # a 1K string should be a reasonable start. 5425 for i in 1 2 3 4 5 6 7 8; do 5426 teststring=$teststring$teststring 5427 done 5428 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5429 # If test is not a shell built-in, we'll probably end up computing a 5430 # maximum length that is only half of the actual maximum length, but 5431 # we can't tell. 5432 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5433 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5434 test 17 != "$i" # 1/2 MB should be enough 5435 do 5436 i=`expr $i + 1` 5437 teststring=$teststring$teststring 5438 done 5439 # Only check the string length outside the loop. 5440 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5441 teststring= 5442 # Add a significant safety factor because C++ compilers can tack on 5443 # massive amounts of additional arguments before passing them to the 5444 # linker. It appears as though 1/2 is a usable value. 5445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5446 fi 5447 ;; 5448 esac 5449 5450fi 5451 5452if test -n "$lt_cv_sys_max_cmd_len"; then 5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5454printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5455else 5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5457printf "%s\n" "none" >&6; } 5458fi 5459max_cmd_len=$lt_cv_sys_max_cmd_len 5460 5461 5462 5463 5464 5465 5466: ${CP="cp -f"} 5467: ${MV="mv -f"} 5468: ${RM="rm -f"} 5469 5470if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5471 lt_unset=unset 5472else 5473 lt_unset=false 5474fi 5475 5476 5477 5478 5479 5480# test EBCDIC or ASCII 5481case `echo X|tr X '\101'` in 5482 A) # ASCII based system 5483 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5484 lt_SP2NL='tr \040 \012' 5485 lt_NL2SP='tr \015\012 \040\040' 5486 ;; 5487 *) # EBCDIC based system 5488 lt_SP2NL='tr \100 \n' 5489 lt_NL2SP='tr \r\n \100\100' 5490 ;; 5491esac 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5502printf %s "checking how to convert $build file names to $host format... " >&6; } 5503if test ${lt_cv_to_host_file_cmd+y} 5504then : 5505 printf %s "(cached) " >&6 5506else $as_nop 5507 case $host in 5508 *-*-mingw* ) 5509 case $build in 5510 *-*-mingw* ) # actually msys 5511 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5512 ;; 5513 *-*-cygwin* ) 5514 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5515 ;; 5516 * ) # otherwise, assume *nix 5517 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5518 ;; 5519 esac 5520 ;; 5521 *-*-cygwin* ) 5522 case $build in 5523 *-*-mingw* ) # actually msys 5524 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5525 ;; 5526 *-*-cygwin* ) 5527 lt_cv_to_host_file_cmd=func_convert_file_noop 5528 ;; 5529 * ) # otherwise, assume *nix 5530 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5531 ;; 5532 esac 5533 ;; 5534 * ) # unhandled hosts (and "normal" native builds) 5535 lt_cv_to_host_file_cmd=func_convert_file_noop 5536 ;; 5537esac 5538 5539fi 5540 5541to_host_file_cmd=$lt_cv_to_host_file_cmd 5542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5543printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5544 5545 5546 5547 5548 5549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5550printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5551if test ${lt_cv_to_tool_file_cmd+y} 5552then : 5553 printf %s "(cached) " >&6 5554else $as_nop 5555 #assume ordinary cross tools, or native build. 5556lt_cv_to_tool_file_cmd=func_convert_file_noop 5557case $host in 5558 *-*-mingw* ) 5559 case $build in 5560 *-*-mingw* ) # actually msys 5561 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5562 ;; 5563 esac 5564 ;; 5565esac 5566 5567fi 5568 5569to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5571printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5572 5573 5574 5575 5576 5577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5578printf %s "checking for $LD option to reload object files... " >&6; } 5579if test ${lt_cv_ld_reload_flag+y} 5580then : 5581 printf %s "(cached) " >&6 5582else $as_nop 5583 lt_cv_ld_reload_flag='-r' 5584fi 5585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5586printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5587reload_flag=$lt_cv_ld_reload_flag 5588case $reload_flag in 5589"" | " "*) ;; 5590*) reload_flag=" $reload_flag" ;; 5591esac 5592reload_cmds='$LD$reload_flag -o $output$reload_objs' 5593case $host_os in 5594 cygwin* | mingw* | pw32* | cegcc*) 5595 if test yes != "$GCC"; then 5596 reload_cmds=false 5597 fi 5598 ;; 5599 darwin*) 5600 if test yes = "$GCC"; then 5601 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5602 else 5603 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5604 fi 5605 ;; 5606esac 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616if test -n "$ac_tool_prefix"; then 5617 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5618set dummy ${ac_tool_prefix}file; ac_word=$2 5619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5620printf %s "checking for $ac_word... " >&6; } 5621if test ${ac_cv_prog_FILECMD+y} 5622then : 5623 printf %s "(cached) " >&6 5624else $as_nop 5625 if test -n "$FILECMD"; then 5626 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5627else 5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5629for as_dir in $PATH 5630do 5631 IFS=$as_save_IFS 5632 case $as_dir in #((( 5633 '') as_dir=./ ;; 5634 */) ;; 5635 *) as_dir=$as_dir/ ;; 5636 esac 5637 for ac_exec_ext in '' $ac_executable_extensions; do 5638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5639 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5641 break 2 5642 fi 5643done 5644 done 5645IFS=$as_save_IFS 5646 5647fi 5648fi 5649FILECMD=$ac_cv_prog_FILECMD 5650if test -n "$FILECMD"; then 5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5652printf "%s\n" "$FILECMD" >&6; } 5653else 5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5655printf "%s\n" "no" >&6; } 5656fi 5657 5658 5659fi 5660if test -z "$ac_cv_prog_FILECMD"; then 5661 ac_ct_FILECMD=$FILECMD 5662 # Extract the first word of "file", so it can be a program name with args. 5663set dummy file; ac_word=$2 5664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5665printf %s "checking for $ac_word... " >&6; } 5666if test ${ac_cv_prog_ac_ct_FILECMD+y} 5667then : 5668 printf %s "(cached) " >&6 5669else $as_nop 5670 if test -n "$ac_ct_FILECMD"; then 5671 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5672else 5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5674for as_dir in $PATH 5675do 5676 IFS=$as_save_IFS 5677 case $as_dir in #((( 5678 '') as_dir=./ ;; 5679 */) ;; 5680 *) as_dir=$as_dir/ ;; 5681 esac 5682 for ac_exec_ext in '' $ac_executable_extensions; do 5683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5684 ac_cv_prog_ac_ct_FILECMD="file" 5685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5686 break 2 5687 fi 5688done 5689 done 5690IFS=$as_save_IFS 5691 5692fi 5693fi 5694ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5695if test -n "$ac_ct_FILECMD"; then 5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5697printf "%s\n" "$ac_ct_FILECMD" >&6; } 5698else 5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5700printf "%s\n" "no" >&6; } 5701fi 5702 5703 if test "x$ac_ct_FILECMD" = x; then 5704 FILECMD=":" 5705 else 5706 case $cross_compiling:$ac_tool_warned in 5707yes:) 5708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5709printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5710ac_tool_warned=yes ;; 5711esac 5712 FILECMD=$ac_ct_FILECMD 5713 fi 5714else 5715 FILECMD="$ac_cv_prog_FILECMD" 5716fi 5717 5718 5719 5720 5721 5722 5723 5724if test -n "$ac_tool_prefix"; then 5725 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5726set dummy ${ac_tool_prefix}objdump; ac_word=$2 5727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5728printf %s "checking for $ac_word... " >&6; } 5729if test ${ac_cv_prog_OBJDUMP+y} 5730then : 5731 printf %s "(cached) " >&6 5732else $as_nop 5733 if test -n "$OBJDUMP"; then 5734 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5735else 5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5737for as_dir in $PATH 5738do 5739 IFS=$as_save_IFS 5740 case $as_dir in #((( 5741 '') as_dir=./ ;; 5742 */) ;; 5743 *) as_dir=$as_dir/ ;; 5744 esac 5745 for ac_exec_ext in '' $ac_executable_extensions; do 5746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5747 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5749 break 2 5750 fi 5751done 5752 done 5753IFS=$as_save_IFS 5754 5755fi 5756fi 5757OBJDUMP=$ac_cv_prog_OBJDUMP 5758if test -n "$OBJDUMP"; then 5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5760printf "%s\n" "$OBJDUMP" >&6; } 5761else 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5763printf "%s\n" "no" >&6; } 5764fi 5765 5766 5767fi 5768if test -z "$ac_cv_prog_OBJDUMP"; then 5769 ac_ct_OBJDUMP=$OBJDUMP 5770 # Extract the first word of "objdump", so it can be a program name with args. 5771set dummy objdump; ac_word=$2 5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5773printf %s "checking for $ac_word... " >&6; } 5774if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5775then : 5776 printf %s "(cached) " >&6 5777else $as_nop 5778 if test -n "$ac_ct_OBJDUMP"; then 5779 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5780else 5781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5782for as_dir in $PATH 5783do 5784 IFS=$as_save_IFS 5785 case $as_dir in #((( 5786 '') as_dir=./ ;; 5787 */) ;; 5788 *) as_dir=$as_dir/ ;; 5789 esac 5790 for ac_exec_ext in '' $ac_executable_extensions; do 5791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5792 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5794 break 2 5795 fi 5796done 5797 done 5798IFS=$as_save_IFS 5799 5800fi 5801fi 5802ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5803if test -n "$ac_ct_OBJDUMP"; then 5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5805printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5806else 5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5808printf "%s\n" "no" >&6; } 5809fi 5810 5811 if test "x$ac_ct_OBJDUMP" = x; then 5812 OBJDUMP="false" 5813 else 5814 case $cross_compiling:$ac_tool_warned in 5815yes:) 5816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5817printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5818ac_tool_warned=yes ;; 5819esac 5820 OBJDUMP=$ac_ct_OBJDUMP 5821 fi 5822else 5823 OBJDUMP="$ac_cv_prog_OBJDUMP" 5824fi 5825 5826test -z "$OBJDUMP" && OBJDUMP=objdump 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5837printf %s "checking how to recognize dependent libraries... " >&6; } 5838if test ${lt_cv_deplibs_check_method+y} 5839then : 5840 printf %s "(cached) " >&6 5841else $as_nop 5842 lt_cv_file_magic_cmd='$MAGIC_CMD' 5843lt_cv_file_magic_test_file= 5844lt_cv_deplibs_check_method='unknown' 5845# Need to set the preceding variable on all platforms that support 5846# interlibrary dependencies. 5847# 'none' -- dependencies not supported. 5848# 'unknown' -- same as none, but documents that we really don't know. 5849# 'pass_all' -- all dependencies passed with no checks. 5850# 'test_compile' -- check by making test program. 5851# 'file_magic [[regex]]' -- check by looking for files in library path 5852# that responds to the $file_magic_cmd with a given extended regex. 5853# If you have 'file' or equivalent on your system and you're not sure 5854# whether 'pass_all' will *always* work, you probably want this one. 5855 5856case $host_os in 5857aix[4-9]*) 5858 lt_cv_deplibs_check_method=pass_all 5859 ;; 5860 5861beos*) 5862 lt_cv_deplibs_check_method=pass_all 5863 ;; 5864 5865bsdi[45]*) 5866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5867 lt_cv_file_magic_cmd='$FILECMD -L' 5868 lt_cv_file_magic_test_file=/shlib/libc.so 5869 ;; 5870 5871cygwin*) 5872 # func_win32_libid is a shell function defined in ltmain.sh 5873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5874 lt_cv_file_magic_cmd='func_win32_libid' 5875 ;; 5876 5877mingw* | pw32*) 5878 # Base MSYS/MinGW do not provide the 'file' command needed by 5879 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5880 # unless we find 'file', for example because we are cross-compiling. 5881 if ( file / ) >/dev/null 2>&1; then 5882 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5883 lt_cv_file_magic_cmd='func_win32_libid' 5884 else 5885 # Keep this pattern in sync with the one in func_win32_libid. 5886 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5887 lt_cv_file_magic_cmd='$OBJDUMP -f' 5888 fi 5889 ;; 5890 5891cegcc*) 5892 # use the weaker test based on 'objdump'. See mingw*. 5893 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5894 lt_cv_file_magic_cmd='$OBJDUMP -f' 5895 ;; 5896 5897darwin* | rhapsody*) 5898 lt_cv_deplibs_check_method=pass_all 5899 ;; 5900 5901freebsd* | dragonfly* | midnightbsd*) 5902 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5903 case $host_cpu in 5904 i*86 ) 5905 # Not sure whether the presence of OpenBSD here was a mistake. 5906 # Let's accept both of them until this is cleared up. 5907 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5908 lt_cv_file_magic_cmd=$FILECMD 5909 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5910 ;; 5911 esac 5912 else 5913 lt_cv_deplibs_check_method=pass_all 5914 fi 5915 ;; 5916 5917haiku*) 5918 lt_cv_deplibs_check_method=pass_all 5919 ;; 5920 5921hpux10.20* | hpux11*) 5922 lt_cv_file_magic_cmd=$FILECMD 5923 case $host_cpu in 5924 ia64*) 5925 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5926 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5927 ;; 5928 hppa*64*) 5929 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]' 5930 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5931 ;; 5932 *) 5933 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5934 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5935 ;; 5936 esac 5937 ;; 5938 5939interix[3-9]*) 5940 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5942 ;; 5943 5944irix5* | irix6* | nonstopux*) 5945 case $LD in 5946 *-32|*"-32 ") libmagic=32-bit;; 5947 *-n32|*"-n32 ") libmagic=N32;; 5948 *-64|*"-64 ") libmagic=64-bit;; 5949 *) libmagic=never-match;; 5950 esac 5951 lt_cv_deplibs_check_method=pass_all 5952 ;; 5953 5954# This must be glibc/ELF. 5955linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5956 lt_cv_deplibs_check_method=pass_all 5957 ;; 5958 5959netbsd*) 5960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5962 else 5963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5964 fi 5965 ;; 5966 5967newos6*) 5968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5969 lt_cv_file_magic_cmd=$FILECMD 5970 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5971 ;; 5972 5973*nto* | *qnx*) 5974 lt_cv_deplibs_check_method=pass_all 5975 ;; 5976 5977openbsd* | bitrig*) 5978 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5980 else 5981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5982 fi 5983 ;; 5984 5985osf3* | osf4* | osf5*) 5986 lt_cv_deplibs_check_method=pass_all 5987 ;; 5988 5989rdos*) 5990 lt_cv_deplibs_check_method=pass_all 5991 ;; 5992 5993solaris*) 5994 lt_cv_deplibs_check_method=pass_all 5995 ;; 5996 5997sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5998 lt_cv_deplibs_check_method=pass_all 5999 ;; 6000 6001sysv4 | sysv4.3*) 6002 case $host_vendor in 6003 motorola) 6004 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]' 6005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6006 ;; 6007 ncr) 6008 lt_cv_deplibs_check_method=pass_all 6009 ;; 6010 sequent) 6011 lt_cv_file_magic_cmd='/bin/file' 6012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6013 ;; 6014 sni) 6015 lt_cv_file_magic_cmd='/bin/file' 6016 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6017 lt_cv_file_magic_test_file=/lib/libc.so 6018 ;; 6019 siemens) 6020 lt_cv_deplibs_check_method=pass_all 6021 ;; 6022 pc) 6023 lt_cv_deplibs_check_method=pass_all 6024 ;; 6025 esac 6026 ;; 6027 6028tpf*) 6029 lt_cv_deplibs_check_method=pass_all 6030 ;; 6031os2*) 6032 lt_cv_deplibs_check_method=pass_all 6033 ;; 6034esac 6035 6036fi 6037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6038printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6039 6040file_magic_glob= 6041want_nocaseglob=no 6042if test "$build" = "$host"; then 6043 case $host_os in 6044 mingw* | pw32*) 6045 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6046 want_nocaseglob=yes 6047 else 6048 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6049 fi 6050 ;; 6051 esac 6052fi 6053 6054file_magic_cmd=$lt_cv_file_magic_cmd 6055deplibs_check_method=$lt_cv_deplibs_check_method 6056test -z "$deplibs_check_method" && deplibs_check_method=unknown 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079if test -n "$ac_tool_prefix"; then 6080 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6081set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6083printf %s "checking for $ac_word... " >&6; } 6084if test ${ac_cv_prog_DLLTOOL+y} 6085then : 6086 printf %s "(cached) " >&6 6087else $as_nop 6088 if test -n "$DLLTOOL"; then 6089 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6090else 6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6092for as_dir in $PATH 6093do 6094 IFS=$as_save_IFS 6095 case $as_dir in #((( 6096 '') as_dir=./ ;; 6097 */) ;; 6098 *) as_dir=$as_dir/ ;; 6099 esac 6100 for ac_exec_ext in '' $ac_executable_extensions; do 6101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6102 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6104 break 2 6105 fi 6106done 6107 done 6108IFS=$as_save_IFS 6109 6110fi 6111fi 6112DLLTOOL=$ac_cv_prog_DLLTOOL 6113if test -n "$DLLTOOL"; then 6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6115printf "%s\n" "$DLLTOOL" >&6; } 6116else 6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6118printf "%s\n" "no" >&6; } 6119fi 6120 6121 6122fi 6123if test -z "$ac_cv_prog_DLLTOOL"; then 6124 ac_ct_DLLTOOL=$DLLTOOL 6125 # Extract the first word of "dlltool", so it can be a program name with args. 6126set dummy dlltool; ac_word=$2 6127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6128printf %s "checking for $ac_word... " >&6; } 6129if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6130then : 6131 printf %s "(cached) " >&6 6132else $as_nop 6133 if test -n "$ac_ct_DLLTOOL"; then 6134 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6135else 6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6137for as_dir in $PATH 6138do 6139 IFS=$as_save_IFS 6140 case $as_dir in #((( 6141 '') as_dir=./ ;; 6142 */) ;; 6143 *) as_dir=$as_dir/ ;; 6144 esac 6145 for ac_exec_ext in '' $ac_executable_extensions; do 6146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6147 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6149 break 2 6150 fi 6151done 6152 done 6153IFS=$as_save_IFS 6154 6155fi 6156fi 6157ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6158if test -n "$ac_ct_DLLTOOL"; then 6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6160printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6161else 6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6163printf "%s\n" "no" >&6; } 6164fi 6165 6166 if test "x$ac_ct_DLLTOOL" = x; then 6167 DLLTOOL="false" 6168 else 6169 case $cross_compiling:$ac_tool_warned in 6170yes:) 6171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6172printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6173ac_tool_warned=yes ;; 6174esac 6175 DLLTOOL=$ac_ct_DLLTOOL 6176 fi 6177else 6178 DLLTOOL="$ac_cv_prog_DLLTOOL" 6179fi 6180 6181test -z "$DLLTOOL" && DLLTOOL=dlltool 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6193printf %s "checking how to associate runtime and link libraries... " >&6; } 6194if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6195then : 6196 printf %s "(cached) " >&6 6197else $as_nop 6198 lt_cv_sharedlib_from_linklib_cmd='unknown' 6199 6200case $host_os in 6201cygwin* | mingw* | pw32* | cegcc*) 6202 # two different shell functions defined in ltmain.sh; 6203 # decide which one to use based on capabilities of $DLLTOOL 6204 case `$DLLTOOL --help 2>&1` in 6205 *--identify-strict*) 6206 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6207 ;; 6208 *) 6209 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6210 ;; 6211 esac 6212 ;; 6213*) 6214 # fallback: assume linklib IS sharedlib 6215 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6216 ;; 6217esac 6218 6219fi 6220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6221printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6222sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6223test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6224 6225 6226 6227 6228 6229 6230 6231 6232if test -n "$ac_tool_prefix"; then 6233 for ac_prog in ar 6234 do 6235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6236set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6238printf %s "checking for $ac_word... " >&6; } 6239if test ${ac_cv_prog_AR+y} 6240then : 6241 printf %s "(cached) " >&6 6242else $as_nop 6243 if test -n "$AR"; then 6244 ac_cv_prog_AR="$AR" # Let the user override the test. 6245else 6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6247for as_dir in $PATH 6248do 6249 IFS=$as_save_IFS 6250 case $as_dir in #((( 6251 '') as_dir=./ ;; 6252 */) ;; 6253 *) as_dir=$as_dir/ ;; 6254 esac 6255 for ac_exec_ext in '' $ac_executable_extensions; do 6256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6257 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6259 break 2 6260 fi 6261done 6262 done 6263IFS=$as_save_IFS 6264 6265fi 6266fi 6267AR=$ac_cv_prog_AR 6268if test -n "$AR"; then 6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6270printf "%s\n" "$AR" >&6; } 6271else 6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6273printf "%s\n" "no" >&6; } 6274fi 6275 6276 6277 test -n "$AR" && break 6278 done 6279fi 6280if test -z "$AR"; then 6281 ac_ct_AR=$AR 6282 for ac_prog in ar 6283do 6284 # Extract the first word of "$ac_prog", so it can be a program name with args. 6285set dummy $ac_prog; ac_word=$2 6286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6287printf %s "checking for $ac_word... " >&6; } 6288if test ${ac_cv_prog_ac_ct_AR+y} 6289then : 6290 printf %s "(cached) " >&6 6291else $as_nop 6292 if test -n "$ac_ct_AR"; then 6293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6294else 6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6296for as_dir in $PATH 6297do 6298 IFS=$as_save_IFS 6299 case $as_dir in #((( 6300 '') as_dir=./ ;; 6301 */) ;; 6302 *) as_dir=$as_dir/ ;; 6303 esac 6304 for ac_exec_ext in '' $ac_executable_extensions; do 6305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6306 ac_cv_prog_ac_ct_AR="$ac_prog" 6307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6308 break 2 6309 fi 6310done 6311 done 6312IFS=$as_save_IFS 6313 6314fi 6315fi 6316ac_ct_AR=$ac_cv_prog_ac_ct_AR 6317if test -n "$ac_ct_AR"; then 6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6319printf "%s\n" "$ac_ct_AR" >&6; } 6320else 6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6322printf "%s\n" "no" >&6; } 6323fi 6324 6325 6326 test -n "$ac_ct_AR" && break 6327done 6328 6329 if test "x$ac_ct_AR" = x; then 6330 AR="false" 6331 else 6332 case $cross_compiling:$ac_tool_warned in 6333yes:) 6334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6335printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6336ac_tool_warned=yes ;; 6337esac 6338 AR=$ac_ct_AR 6339 fi 6340fi 6341 6342: ${AR=ar} 6343 6344 6345 6346 6347 6348 6349# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6350# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6351# higher priority because thats what people were doing historically (setting 6352# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6353# variable obsoleted/removed. 6354 6355test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6356lt_ar_flags=$AR_FLAGS 6357 6358 6359 6360 6361 6362 6363# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6364# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6365 6366 6367 6368 6369 6370 6371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6372printf %s "checking for archiver @FILE support... " >&6; } 6373if test ${lt_cv_ar_at_file+y} 6374then : 6375 printf %s "(cached) " >&6 6376else $as_nop 6377 lt_cv_ar_at_file=no 6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6379/* end confdefs.h. */ 6380 6381int 6382main (void) 6383{ 6384 6385 ; 6386 return 0; 6387} 6388_ACEOF 6389if ac_fn_c_try_compile "$LINENO" 6390then : 6391 echo conftest.$ac_objext > conftest.lst 6392 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6394 (eval $lt_ar_try) 2>&5 6395 ac_status=$? 6396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6397 test $ac_status = 0; } 6398 if test 0 -eq "$ac_status"; then 6399 # Ensure the archiver fails upon bogus file names. 6400 rm -f conftest.$ac_objext libconftest.a 6401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6402 (eval $lt_ar_try) 2>&5 6403 ac_status=$? 6404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6405 test $ac_status = 0; } 6406 if test 0 -ne "$ac_status"; then 6407 lt_cv_ar_at_file=@ 6408 fi 6409 fi 6410 rm -f conftest.* libconftest.a 6411 6412fi 6413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6414 6415fi 6416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6417printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6418 6419if test no = "$lt_cv_ar_at_file"; then 6420 archiver_list_spec= 6421else 6422 archiver_list_spec=$lt_cv_ar_at_file 6423fi 6424 6425 6426 6427 6428 6429 6430 6431if test -n "$ac_tool_prefix"; then 6432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6433set dummy ${ac_tool_prefix}strip; ac_word=$2 6434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6435printf %s "checking for $ac_word... " >&6; } 6436if test ${ac_cv_prog_STRIP+y} 6437then : 6438 printf %s "(cached) " >&6 6439else $as_nop 6440 if test -n "$STRIP"; then 6441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6442else 6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6444for as_dir in $PATH 6445do 6446 IFS=$as_save_IFS 6447 case $as_dir in #((( 6448 '') as_dir=./ ;; 6449 */) ;; 6450 *) as_dir=$as_dir/ ;; 6451 esac 6452 for ac_exec_ext in '' $ac_executable_extensions; do 6453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6454 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6456 break 2 6457 fi 6458done 6459 done 6460IFS=$as_save_IFS 6461 6462fi 6463fi 6464STRIP=$ac_cv_prog_STRIP 6465if test -n "$STRIP"; then 6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6467printf "%s\n" "$STRIP" >&6; } 6468else 6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6470printf "%s\n" "no" >&6; } 6471fi 6472 6473 6474fi 6475if test -z "$ac_cv_prog_STRIP"; then 6476 ac_ct_STRIP=$STRIP 6477 # Extract the first word of "strip", so it can be a program name with args. 6478set dummy strip; ac_word=$2 6479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6480printf %s "checking for $ac_word... " >&6; } 6481if test ${ac_cv_prog_ac_ct_STRIP+y} 6482then : 6483 printf %s "(cached) " >&6 6484else $as_nop 6485 if test -n "$ac_ct_STRIP"; then 6486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6487else 6488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6489for as_dir in $PATH 6490do 6491 IFS=$as_save_IFS 6492 case $as_dir in #((( 6493 '') as_dir=./ ;; 6494 */) ;; 6495 *) as_dir=$as_dir/ ;; 6496 esac 6497 for ac_exec_ext in '' $ac_executable_extensions; do 6498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6499 ac_cv_prog_ac_ct_STRIP="strip" 6500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6501 break 2 6502 fi 6503done 6504 done 6505IFS=$as_save_IFS 6506 6507fi 6508fi 6509ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6510if test -n "$ac_ct_STRIP"; then 6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6512printf "%s\n" "$ac_ct_STRIP" >&6; } 6513else 6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6515printf "%s\n" "no" >&6; } 6516fi 6517 6518 if test "x$ac_ct_STRIP" = x; then 6519 STRIP=":" 6520 else 6521 case $cross_compiling:$ac_tool_warned in 6522yes:) 6523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6524printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6525ac_tool_warned=yes ;; 6526esac 6527 STRIP=$ac_ct_STRIP 6528 fi 6529else 6530 STRIP="$ac_cv_prog_STRIP" 6531fi 6532 6533test -z "$STRIP" && STRIP=: 6534 6535 6536 6537 6538 6539 6540if test -n "$ac_tool_prefix"; then 6541 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6542set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6544printf %s "checking for $ac_word... " >&6; } 6545if test ${ac_cv_prog_RANLIB+y} 6546then : 6547 printf %s "(cached) " >&6 6548else $as_nop 6549 if test -n "$RANLIB"; then 6550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6551else 6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6553for as_dir in $PATH 6554do 6555 IFS=$as_save_IFS 6556 case $as_dir in #((( 6557 '') as_dir=./ ;; 6558 */) ;; 6559 *) as_dir=$as_dir/ ;; 6560 esac 6561 for ac_exec_ext in '' $ac_executable_extensions; do 6562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6563 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6565 break 2 6566 fi 6567done 6568 done 6569IFS=$as_save_IFS 6570 6571fi 6572fi 6573RANLIB=$ac_cv_prog_RANLIB 6574if test -n "$RANLIB"; then 6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6576printf "%s\n" "$RANLIB" >&6; } 6577else 6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6579printf "%s\n" "no" >&6; } 6580fi 6581 6582 6583fi 6584if test -z "$ac_cv_prog_RANLIB"; then 6585 ac_ct_RANLIB=$RANLIB 6586 # Extract the first word of "ranlib", so it can be a program name with args. 6587set dummy ranlib; ac_word=$2 6588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6589printf %s "checking for $ac_word... " >&6; } 6590if test ${ac_cv_prog_ac_ct_RANLIB+y} 6591then : 6592 printf %s "(cached) " >&6 6593else $as_nop 6594 if test -n "$ac_ct_RANLIB"; then 6595 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6596else 6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6598for as_dir in $PATH 6599do 6600 IFS=$as_save_IFS 6601 case $as_dir in #((( 6602 '') as_dir=./ ;; 6603 */) ;; 6604 *) as_dir=$as_dir/ ;; 6605 esac 6606 for ac_exec_ext in '' $ac_executable_extensions; do 6607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6608 ac_cv_prog_ac_ct_RANLIB="ranlib" 6609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6610 break 2 6611 fi 6612done 6613 done 6614IFS=$as_save_IFS 6615 6616fi 6617fi 6618ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6619if test -n "$ac_ct_RANLIB"; then 6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6621printf "%s\n" "$ac_ct_RANLIB" >&6; } 6622else 6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6624printf "%s\n" "no" >&6; } 6625fi 6626 6627 if test "x$ac_ct_RANLIB" = x; then 6628 RANLIB=":" 6629 else 6630 case $cross_compiling:$ac_tool_warned in 6631yes:) 6632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6633printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6634ac_tool_warned=yes ;; 6635esac 6636 RANLIB=$ac_ct_RANLIB 6637 fi 6638else 6639 RANLIB="$ac_cv_prog_RANLIB" 6640fi 6641 6642test -z "$RANLIB" && RANLIB=: 6643 6644 6645 6646 6647 6648 6649# Determine commands to create old-style static archives. 6650old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6651old_postinstall_cmds='chmod 644 $oldlib' 6652old_postuninstall_cmds= 6653 6654if test -n "$RANLIB"; then 6655 case $host_os in 6656 bitrig* | openbsd*) 6657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6658 ;; 6659 *) 6660 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6661 ;; 6662 esac 6663 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6664fi 6665 6666case $host_os in 6667 darwin*) 6668 lock_old_archive_extraction=yes ;; 6669 *) 6670 lock_old_archive_extraction=no ;; 6671esac 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711# If no C compiler was specified, use CC. 6712LTCC=${LTCC-"$CC"} 6713 6714# If no C compiler flags were specified, use CFLAGS. 6715LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6716 6717# Allow CC to be a program name with arguments. 6718compiler=$CC 6719 6720 6721# Check for command to grab the raw symbol name followed by C symbol from nm. 6722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6723printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6724if test ${lt_cv_sys_global_symbol_pipe+y} 6725then : 6726 printf %s "(cached) " >&6 6727else $as_nop 6728 6729# These are sane defaults that work on at least a few old systems. 6730# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6731 6732# Character class describing NM global symbol codes. 6733symcode='[BCDEGRST]' 6734 6735# Regexp to match symbols that can be accessed directly from C. 6736sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6737 6738# Define system-specific variables. 6739case $host_os in 6740aix*) 6741 symcode='[BCDT]' 6742 ;; 6743cygwin* | mingw* | pw32* | cegcc*) 6744 symcode='[ABCDGISTW]' 6745 ;; 6746hpux*) 6747 if test ia64 = "$host_cpu"; then 6748 symcode='[ABCDEGRST]' 6749 fi 6750 ;; 6751irix* | nonstopux*) 6752 symcode='[BCDEGRST]' 6753 ;; 6754osf*) 6755 symcode='[BCDEGQRST]' 6756 ;; 6757solaris*) 6758 symcode='[BDRT]' 6759 ;; 6760sco3.2v5*) 6761 symcode='[DT]' 6762 ;; 6763sysv4.2uw2*) 6764 symcode='[DT]' 6765 ;; 6766sysv5* | sco5v6* | unixware* | OpenUNIX*) 6767 symcode='[ABDT]' 6768 ;; 6769sysv4) 6770 symcode='[DFNSTU]' 6771 ;; 6772esac 6773 6774# If we're using GNU nm, then use its standard symbol codes. 6775case `$NM -V 2>&1` in 6776*GNU* | *'with BFD'*) 6777 symcode='[ABCDGIRSTW]' ;; 6778esac 6779 6780if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6781 # Gets list of data symbols to import. 6782 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6783 # Adjust the below global symbol transforms to fixup imported variables. 6784 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6785 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6786 lt_c_name_lib_hook="\ 6787 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6788 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6789else 6790 # Disable hooks by default. 6791 lt_cv_sys_global_symbol_to_import= 6792 lt_cdecl_hook= 6793 lt_c_name_hook= 6794 lt_c_name_lib_hook= 6795fi 6796 6797# Transform an extracted symbol line into a proper C declaration. 6798# Some systems (esp. on ia64) link data and code symbols differently, 6799# so use this general approach. 6800lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6801$lt_cdecl_hook\ 6802" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6803" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6804 6805# Transform an extracted symbol line into symbol name and symbol address 6806lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6807$lt_c_name_hook\ 6808" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6809" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6810 6811# Transform an extracted symbol line into symbol name with lib prefix and 6812# symbol address. 6813lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6814$lt_c_name_lib_hook\ 6815" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6816" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6817" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6818 6819# Handle CRLF in mingw tool chain 6820opt_cr= 6821case $build_os in 6822mingw*) 6823 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6824 ;; 6825esac 6826 6827# Try without a prefix underscore, then with it. 6828for ac_symprfx in "" "_"; do 6829 6830 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6831 symxfrm="\\1 $ac_symprfx\\2 \\2" 6832 6833 # Write the raw and C identifiers. 6834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6835 # Fake it for dumpbin and say T for any non-static function, 6836 # D for any global variable and I for any imported variable. 6837 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6838 # which start with @ or ?. 6839 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6840" {last_section=section; section=\$ 3};"\ 6841" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6842" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6843" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6844" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6845" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6846" \$ 0!~/External *\|/{next};"\ 6847" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6848" {if(hide[section]) next};"\ 6849" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6850" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6851" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6852" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6853" ' prfx=^$ac_symprfx" 6854 else 6855 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6856 fi 6857 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6858 6859 # Check to see that the pipe works correctly. 6860 pipe_works=no 6861 6862 rm -f conftest* 6863 cat > conftest.$ac_ext <<_LT_EOF 6864#ifdef __cplusplus 6865extern "C" { 6866#endif 6867char nm_test_var; 6868void nm_test_func(void); 6869void nm_test_func(void){} 6870#ifdef __cplusplus 6871} 6872#endif 6873int main(){nm_test_var='a';nm_test_func();return(0);} 6874_LT_EOF 6875 6876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6877 (eval $ac_compile) 2>&5 6878 ac_status=$? 6879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6880 test $ac_status = 0; }; then 6881 # Now try to grab the symbols. 6882 nlist=conftest.nm 6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6884 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6885 ac_status=$? 6886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6887 test $ac_status = 0; } && test -s "$nlist"; then 6888 # Try sorting and uniquifying the output. 6889 if sort "$nlist" | uniq > "$nlist"T; then 6890 mv -f "$nlist"T "$nlist" 6891 else 6892 rm -f "$nlist"T 6893 fi 6894 6895 # Make sure that we snagged all the symbols we need. 6896 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6897 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6898 cat <<_LT_EOF > conftest.$ac_ext 6899/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6900#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6901/* DATA imports from DLLs on WIN32 can't be const, because runtime 6902 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6903# define LT_DLSYM_CONST 6904#elif defined __osf__ 6905/* This system does not cope well with relocations in const data. */ 6906# define LT_DLSYM_CONST 6907#else 6908# define LT_DLSYM_CONST const 6909#endif 6910 6911#ifdef __cplusplus 6912extern "C" { 6913#endif 6914 6915_LT_EOF 6916 # Now generate the symbol file. 6917 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6918 6919 cat <<_LT_EOF >> conftest.$ac_ext 6920 6921/* The mapping between symbol names and symbols. */ 6922LT_DLSYM_CONST struct { 6923 const char *name; 6924 void *address; 6925} 6926lt__PROGRAM__LTX_preloaded_symbols[] = 6927{ 6928 { "@PROGRAM@", (void *) 0 }, 6929_LT_EOF 6930 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6931 cat <<\_LT_EOF >> conftest.$ac_ext 6932 {0, (void *) 0} 6933}; 6934 6935/* This works around a problem in FreeBSD linker */ 6936#ifdef FREEBSD_WORKAROUND 6937static const void *lt_preloaded_setup() { 6938 return lt__PROGRAM__LTX_preloaded_symbols; 6939} 6940#endif 6941 6942#ifdef __cplusplus 6943} 6944#endif 6945_LT_EOF 6946 # Now try linking the two files. 6947 mv conftest.$ac_objext conftstm.$ac_objext 6948 lt_globsym_save_LIBS=$LIBS 6949 lt_globsym_save_CFLAGS=$CFLAGS 6950 LIBS=conftstm.$ac_objext 6951 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6953 (eval $ac_link) 2>&5 6954 ac_status=$? 6955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6956 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6957 pipe_works=yes 6958 fi 6959 LIBS=$lt_globsym_save_LIBS 6960 CFLAGS=$lt_globsym_save_CFLAGS 6961 else 6962 echo "cannot find nm_test_func in $nlist" >&5 6963 fi 6964 else 6965 echo "cannot find nm_test_var in $nlist" >&5 6966 fi 6967 else 6968 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6969 fi 6970 else 6971 echo "$progname: failed program was:" >&5 6972 cat conftest.$ac_ext >&5 6973 fi 6974 rm -rf conftest* conftst* 6975 6976 # Do not use the global_symbol_pipe unless it works. 6977 if test yes = "$pipe_works"; then 6978 break 6979 else 6980 lt_cv_sys_global_symbol_pipe= 6981 fi 6982done 6983 6984fi 6985 6986if test -z "$lt_cv_sys_global_symbol_pipe"; then 6987 lt_cv_sys_global_symbol_to_cdecl= 6988fi 6989if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6991printf "%s\n" "failed" >&6; } 6992else 6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6994printf "%s\n" "ok" >&6; } 6995fi 6996 6997# Response file support. 6998if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6999 nm_file_list_spec='@' 7000elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7001 nm_file_list_spec='@' 7002fi 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7041printf %s "checking for sysroot... " >&6; } 7042 7043# Check whether --with-sysroot was given. 7044if test ${with_sysroot+y} 7045then : 7046 withval=$with_sysroot; 7047else $as_nop 7048 with_sysroot=no 7049fi 7050 7051 7052lt_sysroot= 7053case $with_sysroot in #( 7054 yes) 7055 if test yes = "$GCC"; then 7056 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7057 fi 7058 ;; #( 7059 /*) 7060 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7061 ;; #( 7062 no|'') 7063 ;; #( 7064 *) 7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7066printf "%s\n" "$with_sysroot" >&6; } 7067 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7068 ;; 7069esac 7070 7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7072printf "%s\n" "${lt_sysroot:-no}" >&6; } 7073 7074 7075 7076 7077 7078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7079printf %s "checking for a working dd... " >&6; } 7080if test ${ac_cv_path_lt_DD+y} 7081then : 7082 printf %s "(cached) " >&6 7083else $as_nop 7084 printf 0123456789abcdef0123456789abcdef >conftest.i 7085cat conftest.i conftest.i >conftest2.i 7086: ${lt_DD:=$DD} 7087if test -z "$lt_DD"; then 7088 ac_path_lt_DD_found=false 7089 # Loop through the user's path and test for each of PROGNAME-LIST 7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7091for as_dir in $PATH 7092do 7093 IFS=$as_save_IFS 7094 case $as_dir in #((( 7095 '') as_dir=./ ;; 7096 */) ;; 7097 *) as_dir=$as_dir/ ;; 7098 esac 7099 for ac_prog in dd 7100 do 7101 for ac_exec_ext in '' $ac_executable_extensions; do 7102 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7103 as_fn_executable_p "$ac_path_lt_DD" || continue 7104if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7105 cmp -s conftest.i conftest.out \ 7106 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7107fi 7108 $ac_path_lt_DD_found && break 3 7109 done 7110 done 7111 done 7112IFS=$as_save_IFS 7113 if test -z "$ac_cv_path_lt_DD"; then 7114 : 7115 fi 7116else 7117 ac_cv_path_lt_DD=$lt_DD 7118fi 7119 7120rm -f conftest.i conftest2.i conftest.out 7121fi 7122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7123printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7124 7125 7126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7127printf %s "checking how to truncate binary pipes... " >&6; } 7128if test ${lt_cv_truncate_bin+y} 7129then : 7130 printf %s "(cached) " >&6 7131else $as_nop 7132 printf 0123456789abcdef0123456789abcdef >conftest.i 7133cat conftest.i conftest.i >conftest2.i 7134lt_cv_truncate_bin= 7135if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7136 cmp -s conftest.i conftest.out \ 7137 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7138fi 7139rm -f conftest.i conftest2.i conftest.out 7140test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7141fi 7142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7143printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7144 7145 7146 7147 7148 7149 7150 7151# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7152func_cc_basename () 7153{ 7154 for cc_temp in $*""; do 7155 case $cc_temp in 7156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7158 \-*) ;; 7159 *) break;; 7160 esac 7161 done 7162 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7163} 7164 7165# Check whether --enable-libtool-lock was given. 7166if test ${enable_libtool_lock+y} 7167then : 7168 enableval=$enable_libtool_lock; 7169fi 7170 7171test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7172 7173# Some flags need to be propagated to the compiler or linker for good 7174# libtool support. 7175case $host in 7176ia64-*-hpux*) 7177 # Find out what ABI is being produced by ac_compile, and set mode 7178 # options accordingly. 7179 echo 'int i;' > conftest.$ac_ext 7180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7181 (eval $ac_compile) 2>&5 7182 ac_status=$? 7183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7184 test $ac_status = 0; }; then 7185 case `$FILECMD conftest.$ac_objext` in 7186 *ELF-32*) 7187 HPUX_IA64_MODE=32 7188 ;; 7189 *ELF-64*) 7190 HPUX_IA64_MODE=64 7191 ;; 7192 esac 7193 fi 7194 rm -rf conftest* 7195 ;; 7196*-*-irix6*) 7197 # Find out what ABI is being produced by ac_compile, and set linker 7198 # options accordingly. 7199 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7201 (eval $ac_compile) 2>&5 7202 ac_status=$? 7203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7204 test $ac_status = 0; }; then 7205 if test yes = "$lt_cv_prog_gnu_ld"; then 7206 case `$FILECMD conftest.$ac_objext` in 7207 *32-bit*) 7208 LD="${LD-ld} -melf32bsmip" 7209 ;; 7210 *N32*) 7211 LD="${LD-ld} -melf32bmipn32" 7212 ;; 7213 *64-bit*) 7214 LD="${LD-ld} -melf64bmip" 7215 ;; 7216 esac 7217 else 7218 case `$FILECMD conftest.$ac_objext` in 7219 *32-bit*) 7220 LD="${LD-ld} -32" 7221 ;; 7222 *N32*) 7223 LD="${LD-ld} -n32" 7224 ;; 7225 *64-bit*) 7226 LD="${LD-ld} -64" 7227 ;; 7228 esac 7229 fi 7230 fi 7231 rm -rf conftest* 7232 ;; 7233 7234mips64*-*linux*) 7235 # Find out what ABI is being produced by ac_compile, and set linker 7236 # options accordingly. 7237 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7239 (eval $ac_compile) 2>&5 7240 ac_status=$? 7241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7242 test $ac_status = 0; }; then 7243 emul=elf 7244 case `$FILECMD conftest.$ac_objext` in 7245 *32-bit*) 7246 emul="${emul}32" 7247 ;; 7248 *64-bit*) 7249 emul="${emul}64" 7250 ;; 7251 esac 7252 case `$FILECMD conftest.$ac_objext` in 7253 *MSB*) 7254 emul="${emul}btsmip" 7255 ;; 7256 *LSB*) 7257 emul="${emul}ltsmip" 7258 ;; 7259 esac 7260 case `$FILECMD conftest.$ac_objext` in 7261 *N32*) 7262 emul="${emul}n32" 7263 ;; 7264 esac 7265 LD="${LD-ld} -m $emul" 7266 fi 7267 rm -rf conftest* 7268 ;; 7269 7270x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7271s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7272 # Find out what ABI is being produced by ac_compile, and set linker 7273 # options accordingly. Note that the listed cases only cover the 7274 # situations where additional linker options are needed (such as when 7275 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7276 # vice versa); the common cases where no linker options are needed do 7277 # not appear in the list. 7278 echo 'int i;' > conftest.$ac_ext 7279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7280 (eval $ac_compile) 2>&5 7281 ac_status=$? 7282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7283 test $ac_status = 0; }; then 7284 case `$FILECMD conftest.o` in 7285 *32-bit*) 7286 case $host in 7287 x86_64-*kfreebsd*-gnu) 7288 LD="${LD-ld} -m elf_i386_fbsd" 7289 ;; 7290 x86_64-*linux*) 7291 case `$FILECMD conftest.o` in 7292 *x86-64*) 7293 LD="${LD-ld} -m elf32_x86_64" 7294 ;; 7295 *) 7296 LD="${LD-ld} -m elf_i386" 7297 ;; 7298 esac 7299 ;; 7300 powerpc64le-*linux*) 7301 LD="${LD-ld} -m elf32lppclinux" 7302 ;; 7303 powerpc64-*linux*) 7304 LD="${LD-ld} -m elf32ppclinux" 7305 ;; 7306 s390x-*linux*) 7307 LD="${LD-ld} -m elf_s390" 7308 ;; 7309 sparc64-*linux*) 7310 LD="${LD-ld} -m elf32_sparc" 7311 ;; 7312 esac 7313 ;; 7314 *64-bit*) 7315 case $host in 7316 x86_64-*kfreebsd*-gnu) 7317 LD="${LD-ld} -m elf_x86_64_fbsd" 7318 ;; 7319 x86_64-*linux*) 7320 LD="${LD-ld} -m elf_x86_64" 7321 ;; 7322 powerpcle-*linux*) 7323 LD="${LD-ld} -m elf64lppc" 7324 ;; 7325 powerpc-*linux*) 7326 LD="${LD-ld} -m elf64ppc" 7327 ;; 7328 s390*-*linux*|s390*-*tpf*) 7329 LD="${LD-ld} -m elf64_s390" 7330 ;; 7331 sparc*-*linux*) 7332 LD="${LD-ld} -m elf64_sparc" 7333 ;; 7334 esac 7335 ;; 7336 esac 7337 fi 7338 rm -rf conftest* 7339 ;; 7340 7341*-*-sco3.2v5*) 7342 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7343 SAVE_CFLAGS=$CFLAGS 7344 CFLAGS="$CFLAGS -belf" 7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7346printf %s "checking whether the C compiler needs -belf... " >&6; } 7347if test ${lt_cv_cc_needs_belf+y} 7348then : 7349 printf %s "(cached) " >&6 7350else $as_nop 7351 ac_ext=c 7352ac_cpp='$CPP $CPPFLAGS' 7353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7355ac_compiler_gnu=$ac_cv_c_compiler_gnu 7356 7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7358/* end confdefs.h. */ 7359 7360int 7361main (void) 7362{ 7363 7364 ; 7365 return 0; 7366} 7367_ACEOF 7368if ac_fn_c_try_link "$LINENO" 7369then : 7370 lt_cv_cc_needs_belf=yes 7371else $as_nop 7372 lt_cv_cc_needs_belf=no 7373fi 7374rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7375 conftest$ac_exeext conftest.$ac_ext 7376 ac_ext=c 7377ac_cpp='$CPP $CPPFLAGS' 7378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7380ac_compiler_gnu=$ac_cv_c_compiler_gnu 7381 7382fi 7383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7384printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7385 if test yes != "$lt_cv_cc_needs_belf"; then 7386 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7387 CFLAGS=$SAVE_CFLAGS 7388 fi 7389 ;; 7390*-*solaris*) 7391 # Find out what ABI is being produced by ac_compile, and set linker 7392 # options accordingly. 7393 echo 'int i;' > conftest.$ac_ext 7394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7395 (eval $ac_compile) 2>&5 7396 ac_status=$? 7397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7398 test $ac_status = 0; }; then 7399 case `$FILECMD conftest.o` in 7400 *64-bit*) 7401 case $lt_cv_prog_gnu_ld in 7402 yes*) 7403 case $host in 7404 i?86-*-solaris*|x86_64-*-solaris*) 7405 LD="${LD-ld} -m elf_x86_64" 7406 ;; 7407 sparc*-*-solaris*) 7408 LD="${LD-ld} -m elf64_sparc" 7409 ;; 7410 esac 7411 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7412 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7413 LD=${LD-ld}_sol2 7414 fi 7415 ;; 7416 *) 7417 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7418 LD="${LD-ld} -64" 7419 fi 7420 ;; 7421 esac 7422 ;; 7423 esac 7424 fi 7425 rm -rf conftest* 7426 ;; 7427esac 7428 7429need_locks=$enable_libtool_lock 7430 7431if test -n "$ac_tool_prefix"; then 7432 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7433set dummy ${ac_tool_prefix}mt; ac_word=$2 7434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7435printf %s "checking for $ac_word... " >&6; } 7436if test ${ac_cv_prog_MANIFEST_TOOL+y} 7437then : 7438 printf %s "(cached) " >&6 7439else $as_nop 7440 if test -n "$MANIFEST_TOOL"; then 7441 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7442else 7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7444for as_dir in $PATH 7445do 7446 IFS=$as_save_IFS 7447 case $as_dir in #((( 7448 '') as_dir=./ ;; 7449 */) ;; 7450 *) as_dir=$as_dir/ ;; 7451 esac 7452 for ac_exec_ext in '' $ac_executable_extensions; do 7453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7454 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7456 break 2 7457 fi 7458done 7459 done 7460IFS=$as_save_IFS 7461 7462fi 7463fi 7464MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7465if test -n "$MANIFEST_TOOL"; then 7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7467printf "%s\n" "$MANIFEST_TOOL" >&6; } 7468else 7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7470printf "%s\n" "no" >&6; } 7471fi 7472 7473 7474fi 7475if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7476 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7477 # Extract the first word of "mt", so it can be a program name with args. 7478set dummy mt; ac_word=$2 7479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7480printf %s "checking for $ac_word... " >&6; } 7481if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7482then : 7483 printf %s "(cached) " >&6 7484else $as_nop 7485 if test -n "$ac_ct_MANIFEST_TOOL"; then 7486 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7487else 7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7489for as_dir in $PATH 7490do 7491 IFS=$as_save_IFS 7492 case $as_dir in #((( 7493 '') as_dir=./ ;; 7494 */) ;; 7495 *) as_dir=$as_dir/ ;; 7496 esac 7497 for ac_exec_ext in '' $ac_executable_extensions; do 7498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7499 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7501 break 2 7502 fi 7503done 7504 done 7505IFS=$as_save_IFS 7506 7507fi 7508fi 7509ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7510if test -n "$ac_ct_MANIFEST_TOOL"; then 7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7512printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7513else 7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7515printf "%s\n" "no" >&6; } 7516fi 7517 7518 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7519 MANIFEST_TOOL=":" 7520 else 7521 case $cross_compiling:$ac_tool_warned in 7522yes:) 7523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7524printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7525ac_tool_warned=yes ;; 7526esac 7527 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7528 fi 7529else 7530 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7531fi 7532 7533test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7535printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7536if test ${lt_cv_path_mainfest_tool+y} 7537then : 7538 printf %s "(cached) " >&6 7539else $as_nop 7540 lt_cv_path_mainfest_tool=no 7541 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7542 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7543 cat conftest.err >&5 7544 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7545 lt_cv_path_mainfest_tool=yes 7546 fi 7547 rm -f conftest* 7548fi 7549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7550printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7551if test yes != "$lt_cv_path_mainfest_tool"; then 7552 MANIFEST_TOOL=: 7553fi 7554 7555 7556 7557 7558 7559 7560 case $host_os in 7561 rhapsody* | darwin*) 7562 if test -n "$ac_tool_prefix"; then 7563 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7564set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7566printf %s "checking for $ac_word... " >&6; } 7567if test ${ac_cv_prog_DSYMUTIL+y} 7568then : 7569 printf %s "(cached) " >&6 7570else $as_nop 7571 if test -n "$DSYMUTIL"; then 7572 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7573else 7574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7575for as_dir in $PATH 7576do 7577 IFS=$as_save_IFS 7578 case $as_dir in #((( 7579 '') as_dir=./ ;; 7580 */) ;; 7581 *) as_dir=$as_dir/ ;; 7582 esac 7583 for ac_exec_ext in '' $ac_executable_extensions; do 7584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7585 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7587 break 2 7588 fi 7589done 7590 done 7591IFS=$as_save_IFS 7592 7593fi 7594fi 7595DSYMUTIL=$ac_cv_prog_DSYMUTIL 7596if test -n "$DSYMUTIL"; then 7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7598printf "%s\n" "$DSYMUTIL" >&6; } 7599else 7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7601printf "%s\n" "no" >&6; } 7602fi 7603 7604 7605fi 7606if test -z "$ac_cv_prog_DSYMUTIL"; then 7607 ac_ct_DSYMUTIL=$DSYMUTIL 7608 # Extract the first word of "dsymutil", so it can be a program name with args. 7609set dummy dsymutil; ac_word=$2 7610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7611printf %s "checking for $ac_word... " >&6; } 7612if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7613then : 7614 printf %s "(cached) " >&6 7615else $as_nop 7616 if test -n "$ac_ct_DSYMUTIL"; then 7617 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7618else 7619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7620for as_dir in $PATH 7621do 7622 IFS=$as_save_IFS 7623 case $as_dir in #((( 7624 '') as_dir=./ ;; 7625 */) ;; 7626 *) as_dir=$as_dir/ ;; 7627 esac 7628 for ac_exec_ext in '' $ac_executable_extensions; do 7629 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7630 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7632 break 2 7633 fi 7634done 7635 done 7636IFS=$as_save_IFS 7637 7638fi 7639fi 7640ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7641if test -n "$ac_ct_DSYMUTIL"; then 7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7643printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7644else 7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7646printf "%s\n" "no" >&6; } 7647fi 7648 7649 if test "x$ac_ct_DSYMUTIL" = x; then 7650 DSYMUTIL=":" 7651 else 7652 case $cross_compiling:$ac_tool_warned in 7653yes:) 7654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7655printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7656ac_tool_warned=yes ;; 7657esac 7658 DSYMUTIL=$ac_ct_DSYMUTIL 7659 fi 7660else 7661 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7662fi 7663 7664 if test -n "$ac_tool_prefix"; then 7665 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7666set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7668printf %s "checking for $ac_word... " >&6; } 7669if test ${ac_cv_prog_NMEDIT+y} 7670then : 7671 printf %s "(cached) " >&6 7672else $as_nop 7673 if test -n "$NMEDIT"; then 7674 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7675else 7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7677for as_dir in $PATH 7678do 7679 IFS=$as_save_IFS 7680 case $as_dir in #((( 7681 '') as_dir=./ ;; 7682 */) ;; 7683 *) as_dir=$as_dir/ ;; 7684 esac 7685 for ac_exec_ext in '' $ac_executable_extensions; do 7686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7687 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7689 break 2 7690 fi 7691done 7692 done 7693IFS=$as_save_IFS 7694 7695fi 7696fi 7697NMEDIT=$ac_cv_prog_NMEDIT 7698if test -n "$NMEDIT"; then 7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7700printf "%s\n" "$NMEDIT" >&6; } 7701else 7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7703printf "%s\n" "no" >&6; } 7704fi 7705 7706 7707fi 7708if test -z "$ac_cv_prog_NMEDIT"; then 7709 ac_ct_NMEDIT=$NMEDIT 7710 # Extract the first word of "nmedit", so it can be a program name with args. 7711set dummy nmedit; ac_word=$2 7712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7713printf %s "checking for $ac_word... " >&6; } 7714if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7715then : 7716 printf %s "(cached) " >&6 7717else $as_nop 7718 if test -n "$ac_ct_NMEDIT"; then 7719 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7720else 7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7722for as_dir in $PATH 7723do 7724 IFS=$as_save_IFS 7725 case $as_dir in #((( 7726 '') as_dir=./ ;; 7727 */) ;; 7728 *) as_dir=$as_dir/ ;; 7729 esac 7730 for ac_exec_ext in '' $ac_executable_extensions; do 7731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7732 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7734 break 2 7735 fi 7736done 7737 done 7738IFS=$as_save_IFS 7739 7740fi 7741fi 7742ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7743if test -n "$ac_ct_NMEDIT"; then 7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7745printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7746else 7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7748printf "%s\n" "no" >&6; } 7749fi 7750 7751 if test "x$ac_ct_NMEDIT" = x; then 7752 NMEDIT=":" 7753 else 7754 case $cross_compiling:$ac_tool_warned in 7755yes:) 7756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7757printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7758ac_tool_warned=yes ;; 7759esac 7760 NMEDIT=$ac_ct_NMEDIT 7761 fi 7762else 7763 NMEDIT="$ac_cv_prog_NMEDIT" 7764fi 7765 7766 if test -n "$ac_tool_prefix"; then 7767 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7768set dummy ${ac_tool_prefix}lipo; ac_word=$2 7769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7770printf %s "checking for $ac_word... " >&6; } 7771if test ${ac_cv_prog_LIPO+y} 7772then : 7773 printf %s "(cached) " >&6 7774else $as_nop 7775 if test -n "$LIPO"; then 7776 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7777else 7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7779for as_dir in $PATH 7780do 7781 IFS=$as_save_IFS 7782 case $as_dir in #((( 7783 '') as_dir=./ ;; 7784 */) ;; 7785 *) as_dir=$as_dir/ ;; 7786 esac 7787 for ac_exec_ext in '' $ac_executable_extensions; do 7788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7789 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7791 break 2 7792 fi 7793done 7794 done 7795IFS=$as_save_IFS 7796 7797fi 7798fi 7799LIPO=$ac_cv_prog_LIPO 7800if test -n "$LIPO"; then 7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7802printf "%s\n" "$LIPO" >&6; } 7803else 7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7805printf "%s\n" "no" >&6; } 7806fi 7807 7808 7809fi 7810if test -z "$ac_cv_prog_LIPO"; then 7811 ac_ct_LIPO=$LIPO 7812 # Extract the first word of "lipo", so it can be a program name with args. 7813set dummy lipo; ac_word=$2 7814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7815printf %s "checking for $ac_word... " >&6; } 7816if test ${ac_cv_prog_ac_ct_LIPO+y} 7817then : 7818 printf %s "(cached) " >&6 7819else $as_nop 7820 if test -n "$ac_ct_LIPO"; then 7821 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7822else 7823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7824for as_dir in $PATH 7825do 7826 IFS=$as_save_IFS 7827 case $as_dir in #((( 7828 '') as_dir=./ ;; 7829 */) ;; 7830 *) as_dir=$as_dir/ ;; 7831 esac 7832 for ac_exec_ext in '' $ac_executable_extensions; do 7833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7834 ac_cv_prog_ac_ct_LIPO="lipo" 7835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7836 break 2 7837 fi 7838done 7839 done 7840IFS=$as_save_IFS 7841 7842fi 7843fi 7844ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7845if test -n "$ac_ct_LIPO"; then 7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7847printf "%s\n" "$ac_ct_LIPO" >&6; } 7848else 7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7850printf "%s\n" "no" >&6; } 7851fi 7852 7853 if test "x$ac_ct_LIPO" = x; then 7854 LIPO=":" 7855 else 7856 case $cross_compiling:$ac_tool_warned in 7857yes:) 7858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7859printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7860ac_tool_warned=yes ;; 7861esac 7862 LIPO=$ac_ct_LIPO 7863 fi 7864else 7865 LIPO="$ac_cv_prog_LIPO" 7866fi 7867 7868 if test -n "$ac_tool_prefix"; then 7869 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7870set dummy ${ac_tool_prefix}otool; ac_word=$2 7871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7872printf %s "checking for $ac_word... " >&6; } 7873if test ${ac_cv_prog_OTOOL+y} 7874then : 7875 printf %s "(cached) " >&6 7876else $as_nop 7877 if test -n "$OTOOL"; then 7878 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7879else 7880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7881for as_dir in $PATH 7882do 7883 IFS=$as_save_IFS 7884 case $as_dir in #((( 7885 '') as_dir=./ ;; 7886 */) ;; 7887 *) as_dir=$as_dir/ ;; 7888 esac 7889 for ac_exec_ext in '' $ac_executable_extensions; do 7890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7891 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7893 break 2 7894 fi 7895done 7896 done 7897IFS=$as_save_IFS 7898 7899fi 7900fi 7901OTOOL=$ac_cv_prog_OTOOL 7902if test -n "$OTOOL"; then 7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7904printf "%s\n" "$OTOOL" >&6; } 7905else 7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7907printf "%s\n" "no" >&6; } 7908fi 7909 7910 7911fi 7912if test -z "$ac_cv_prog_OTOOL"; then 7913 ac_ct_OTOOL=$OTOOL 7914 # Extract the first word of "otool", so it can be a program name with args. 7915set dummy otool; ac_word=$2 7916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7917printf %s "checking for $ac_word... " >&6; } 7918if test ${ac_cv_prog_ac_ct_OTOOL+y} 7919then : 7920 printf %s "(cached) " >&6 7921else $as_nop 7922 if test -n "$ac_ct_OTOOL"; then 7923 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7924else 7925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7926for as_dir in $PATH 7927do 7928 IFS=$as_save_IFS 7929 case $as_dir in #((( 7930 '') as_dir=./ ;; 7931 */) ;; 7932 *) as_dir=$as_dir/ ;; 7933 esac 7934 for ac_exec_ext in '' $ac_executable_extensions; do 7935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7936 ac_cv_prog_ac_ct_OTOOL="otool" 7937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7938 break 2 7939 fi 7940done 7941 done 7942IFS=$as_save_IFS 7943 7944fi 7945fi 7946ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7947if test -n "$ac_ct_OTOOL"; then 7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7949printf "%s\n" "$ac_ct_OTOOL" >&6; } 7950else 7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7952printf "%s\n" "no" >&6; } 7953fi 7954 7955 if test "x$ac_ct_OTOOL" = x; then 7956 OTOOL=":" 7957 else 7958 case $cross_compiling:$ac_tool_warned in 7959yes:) 7960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7961printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7962ac_tool_warned=yes ;; 7963esac 7964 OTOOL=$ac_ct_OTOOL 7965 fi 7966else 7967 OTOOL="$ac_cv_prog_OTOOL" 7968fi 7969 7970 if test -n "$ac_tool_prefix"; then 7971 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7972set dummy ${ac_tool_prefix}otool64; ac_word=$2 7973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7974printf %s "checking for $ac_word... " >&6; } 7975if test ${ac_cv_prog_OTOOL64+y} 7976then : 7977 printf %s "(cached) " >&6 7978else $as_nop 7979 if test -n "$OTOOL64"; then 7980 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7981else 7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7983for as_dir in $PATH 7984do 7985 IFS=$as_save_IFS 7986 case $as_dir in #((( 7987 '') as_dir=./ ;; 7988 */) ;; 7989 *) as_dir=$as_dir/ ;; 7990 esac 7991 for ac_exec_ext in '' $ac_executable_extensions; do 7992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7993 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7995 break 2 7996 fi 7997done 7998 done 7999IFS=$as_save_IFS 8000 8001fi 8002fi 8003OTOOL64=$ac_cv_prog_OTOOL64 8004if test -n "$OTOOL64"; then 8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8006printf "%s\n" "$OTOOL64" >&6; } 8007else 8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8009printf "%s\n" "no" >&6; } 8010fi 8011 8012 8013fi 8014if test -z "$ac_cv_prog_OTOOL64"; then 8015 ac_ct_OTOOL64=$OTOOL64 8016 # Extract the first word of "otool64", so it can be a program name with args. 8017set dummy otool64; ac_word=$2 8018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8019printf %s "checking for $ac_word... " >&6; } 8020if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8021then : 8022 printf %s "(cached) " >&6 8023else $as_nop 8024 if test -n "$ac_ct_OTOOL64"; then 8025 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8026else 8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8028for as_dir in $PATH 8029do 8030 IFS=$as_save_IFS 8031 case $as_dir in #((( 8032 '') as_dir=./ ;; 8033 */) ;; 8034 *) as_dir=$as_dir/ ;; 8035 esac 8036 for ac_exec_ext in '' $ac_executable_extensions; do 8037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8038 ac_cv_prog_ac_ct_OTOOL64="otool64" 8039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8040 break 2 8041 fi 8042done 8043 done 8044IFS=$as_save_IFS 8045 8046fi 8047fi 8048ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8049if test -n "$ac_ct_OTOOL64"; then 8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8051printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8052else 8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8054printf "%s\n" "no" >&6; } 8055fi 8056 8057 if test "x$ac_ct_OTOOL64" = x; then 8058 OTOOL64=":" 8059 else 8060 case $cross_compiling:$ac_tool_warned in 8061yes:) 8062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8063printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8064ac_tool_warned=yes ;; 8065esac 8066 OTOOL64=$ac_ct_OTOOL64 8067 fi 8068else 8069 OTOOL64="$ac_cv_prog_OTOOL64" 8070fi 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8099printf %s "checking for -single_module linker flag... " >&6; } 8100if test ${lt_cv_apple_cc_single_mod+y} 8101then : 8102 printf %s "(cached) " >&6 8103else $as_nop 8104 lt_cv_apple_cc_single_mod=no 8105 if test -z "$LT_MULTI_MODULE"; then 8106 # By default we will add the -single_module flag. You can override 8107 # by either setting the environment variable LT_MULTI_MODULE 8108 # non-empty at configure time, or by adding -multi_module to the 8109 # link flags. 8110 rm -rf libconftest.dylib* 8111 echo "int foo(void){return 1;}" > conftest.c 8112 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8113-dynamiclib -Wl,-single_module conftest.c" >&5 8114 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8115 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8116 _lt_result=$? 8117 # If there is a non-empty error log, and "single_module" 8118 # appears in it, assume the flag caused a linker warning 8119 if test -s conftest.err && $GREP single_module conftest.err; then 8120 cat conftest.err >&5 8121 # Otherwise, if the output was created with a 0 exit code from 8122 # the compiler, it worked. 8123 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8124 lt_cv_apple_cc_single_mod=yes 8125 else 8126 cat conftest.err >&5 8127 fi 8128 rm -rf libconftest.dylib* 8129 rm -f conftest.* 8130 fi 8131fi 8132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8133printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8134 8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8136printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8137if test ${lt_cv_ld_exported_symbols_list+y} 8138then : 8139 printf %s "(cached) " >&6 8140else $as_nop 8141 lt_cv_ld_exported_symbols_list=no 8142 save_LDFLAGS=$LDFLAGS 8143 echo "_main" > conftest.sym 8144 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146/* end confdefs.h. */ 8147 8148int 8149main (void) 8150{ 8151 8152 ; 8153 return 0; 8154} 8155_ACEOF 8156if ac_fn_c_try_link "$LINENO" 8157then : 8158 lt_cv_ld_exported_symbols_list=yes 8159else $as_nop 8160 lt_cv_ld_exported_symbols_list=no 8161fi 8162rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8163 conftest$ac_exeext conftest.$ac_ext 8164 LDFLAGS=$save_LDFLAGS 8165 8166fi 8167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8168printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8169 8170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8171printf %s "checking for -force_load linker flag... " >&6; } 8172if test ${lt_cv_ld_force_load+y} 8173then : 8174 printf %s "(cached) " >&6 8175else $as_nop 8176 lt_cv_ld_force_load=no 8177 cat > conftest.c << _LT_EOF 8178int forced_loaded() { return 2;} 8179_LT_EOF 8180 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8181 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8182 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8183 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8184 echo "$RANLIB libconftest.a" >&5 8185 $RANLIB libconftest.a 2>&5 8186 cat > conftest.c << _LT_EOF 8187int main() { return 0;} 8188_LT_EOF 8189 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8190 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8191 _lt_result=$? 8192 if test -s conftest.err && $GREP force_load conftest.err; then 8193 cat conftest.err >&5 8194 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8195 lt_cv_ld_force_load=yes 8196 else 8197 cat conftest.err >&5 8198 fi 8199 rm -f conftest.err libconftest.a conftest conftest.c 8200 rm -rf conftest.dSYM 8201 8202fi 8203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8204printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8205 case $host_os in 8206 rhapsody* | darwin1.[012]) 8207 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8208 darwin1.*) 8209 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8210 darwin*) 8211 case $MACOSX_DEPLOYMENT_TARGET,$host in 8212 10.[012],*|,*powerpc*-darwin[5-8]*) 8213 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8214 *) 8215 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8216 esac 8217 ;; 8218 esac 8219 if test yes = "$lt_cv_apple_cc_single_mod"; then 8220 _lt_dar_single_mod='$single_module' 8221 fi 8222 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8223 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8224 else 8225 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8226 fi 8227 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8228 _lt_dsymutil='~$DSYMUTIL $lib || :' 8229 else 8230 _lt_dsymutil= 8231 fi 8232 ;; 8233 esac 8234 8235# func_munge_path_list VARIABLE PATH 8236# ----------------------------------- 8237# VARIABLE is name of variable containing _space_ separated list of 8238# directories to be munged by the contents of PATH, which is string 8239# having a format: 8240# "DIR[:DIR]:" 8241# string "DIR[ DIR]" will be prepended to VARIABLE 8242# ":DIR[:DIR]" 8243# string "DIR[ DIR]" will be appended to VARIABLE 8244# "DIRP[:DIRP]::[DIRA:]DIRA" 8245# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8246# "DIRA[ DIRA]" will be appended to VARIABLE 8247# "DIR[:DIR]" 8248# VARIABLE will be replaced by "DIR[ DIR]" 8249func_munge_path_list () 8250{ 8251 case x$2 in 8252 x) 8253 ;; 8254 *:) 8255 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8256 ;; 8257 x:*) 8258 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8259 ;; 8260 *::*) 8261 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8262 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8263 ;; 8264 *) 8265 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8266 ;; 8267 esac 8268} 8269 8270ac_header= ac_cache= 8271for ac_item in $ac_header_c_list 8272do 8273 if test $ac_cache; then 8274 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8275 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8276 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8277 fi 8278 ac_header= ac_cache= 8279 elif test $ac_header; then 8280 ac_cache=$ac_item 8281 else 8282 ac_header=$ac_item 8283 fi 8284done 8285 8286 8287 8288 8289 8290 8291 8292 8293if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8294then : 8295 8296printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8297 8298fi 8299ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8300" 8301if test "x$ac_cv_header_dlfcn_h" = xyes 8302then : 8303 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8304 8305fi 8306 8307 8308 8309 8310 8311# Set options 8312 8313 8314 8315 enable_dlopen=no 8316 8317 8318 enable_win32_dll=no 8319 8320 8321 # Check whether --enable-shared was given. 8322if test ${enable_shared+y} 8323then : 8324 enableval=$enable_shared; p=${PACKAGE-default} 8325 case $enableval in 8326 yes) enable_shared=yes ;; 8327 no) enable_shared=no ;; 8328 *) 8329 enable_shared=no 8330 # Look at the argument we got. We use all the common list separators. 8331 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8332 for pkg in $enableval; do 8333 IFS=$lt_save_ifs 8334 if test "X$pkg" = "X$p"; then 8335 enable_shared=yes 8336 fi 8337 done 8338 IFS=$lt_save_ifs 8339 ;; 8340 esac 8341else $as_nop 8342 enable_shared=yes 8343fi 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 # Check whether --enable-static was given. 8354if test ${enable_static+y} 8355then : 8356 enableval=$enable_static; p=${PACKAGE-default} 8357 case $enableval in 8358 yes) enable_static=yes ;; 8359 no) enable_static=no ;; 8360 *) 8361 enable_static=no 8362 # Look at the argument we got. We use all the common list separators. 8363 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8364 for pkg in $enableval; do 8365 IFS=$lt_save_ifs 8366 if test "X$pkg" = "X$p"; then 8367 enable_static=yes 8368 fi 8369 done 8370 IFS=$lt_save_ifs 8371 ;; 8372 esac 8373else $as_nop 8374 enable_static=yes 8375fi 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386# Check whether --with-pic was given. 8387if test ${with_pic+y} 8388then : 8389 withval=$with_pic; lt_p=${PACKAGE-default} 8390 case $withval in 8391 yes|no) pic_mode=$withval ;; 8392 *) 8393 pic_mode=default 8394 # Look at the argument we got. We use all the common list separators. 8395 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8396 for lt_pkg in $withval; do 8397 IFS=$lt_save_ifs 8398 if test "X$lt_pkg" = "X$lt_p"; then 8399 pic_mode=yes 8400 fi 8401 done 8402 IFS=$lt_save_ifs 8403 ;; 8404 esac 8405else $as_nop 8406 pic_mode=default 8407fi 8408 8409 8410 8411 8412 8413 8414 8415 8416 # Check whether --enable-fast-install was given. 8417if test ${enable_fast_install+y} 8418then : 8419 enableval=$enable_fast_install; p=${PACKAGE-default} 8420 case $enableval in 8421 yes) enable_fast_install=yes ;; 8422 no) enable_fast_install=no ;; 8423 *) 8424 enable_fast_install=no 8425 # Look at the argument we got. We use all the common list separators. 8426 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8427 for pkg in $enableval; do 8428 IFS=$lt_save_ifs 8429 if test "X$pkg" = "X$p"; then 8430 enable_fast_install=yes 8431 fi 8432 done 8433 IFS=$lt_save_ifs 8434 ;; 8435 esac 8436else $as_nop 8437 enable_fast_install=yes 8438fi 8439 8440 8441 8442 8443 8444 8445 8446 8447 shared_archive_member_spec= 8448case $host,$enable_shared in 8449power*-*-aix[5-9]*,yes) 8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8451printf %s "checking which variant of shared library versioning to provide... " >&6; } 8452 8453# Check whether --with-aix-soname was given. 8454if test ${with_aix_soname+y} 8455then : 8456 withval=$with_aix_soname; case $withval in 8457 aix|svr4|both) 8458 ;; 8459 *) 8460 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8461 ;; 8462 esac 8463 lt_cv_with_aix_soname=$with_aix_soname 8464else $as_nop 8465 if test ${lt_cv_with_aix_soname+y} 8466then : 8467 printf %s "(cached) " >&6 8468else $as_nop 8469 lt_cv_with_aix_soname=aix 8470fi 8471 8472 with_aix_soname=$lt_cv_with_aix_soname 8473fi 8474 8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8476printf "%s\n" "$with_aix_soname" >&6; } 8477 if test aix != "$with_aix_soname"; then 8478 # For the AIX way of multilib, we name the shared archive member 8479 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8480 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8481 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8482 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8483 if test 64 = "${OBJECT_MODE-32}"; then 8484 shared_archive_member_spec=shr_64 8485 else 8486 shared_archive_member_spec=shr 8487 fi 8488 fi 8489 ;; 8490*) 8491 with_aix_soname=aix 8492 ;; 8493esac 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504# This can be used to rebuild libtool when needed 8505LIBTOOL_DEPS=$ltmain 8506 8507# Always use our own libtool. 8508LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539test -z "$LN_S" && LN_S="ln -s" 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554if test -n "${ZSH_VERSION+set}"; then 8555 setopt NO_GLOB_SUBST 8556fi 8557 8558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8559printf %s "checking for objdir... " >&6; } 8560if test ${lt_cv_objdir+y} 8561then : 8562 printf %s "(cached) " >&6 8563else $as_nop 8564 rm -f .libs 2>/dev/null 8565mkdir .libs 2>/dev/null 8566if test -d .libs; then 8567 lt_cv_objdir=.libs 8568else 8569 # MS-DOS does not allow filenames that begin with a dot. 8570 lt_cv_objdir=_libs 8571fi 8572rmdir .libs 2>/dev/null 8573fi 8574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8575printf "%s\n" "$lt_cv_objdir" >&6; } 8576objdir=$lt_cv_objdir 8577 8578 8579 8580 8581 8582printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8583 8584 8585 8586 8587case $host_os in 8588aix3*) 8589 # AIX sometimes has problems with the GCC collect2 program. For some 8590 # reason, if we set the COLLECT_NAMES environment variable, the problems 8591 # vanish in a puff of smoke. 8592 if test set != "${COLLECT_NAMES+set}"; then 8593 COLLECT_NAMES= 8594 export COLLECT_NAMES 8595 fi 8596 ;; 8597esac 8598 8599# Global variables: 8600ofile=libtool 8601can_build_shared=yes 8602 8603# All known linkers require a '.a' archive for static linking (except MSVC and 8604# ICC, which need '.lib'). 8605libext=a 8606 8607with_gnu_ld=$lt_cv_prog_gnu_ld 8608 8609old_CC=$CC 8610old_CFLAGS=$CFLAGS 8611 8612# Set sane defaults for various variables 8613test -z "$CC" && CC=cc 8614test -z "$LTCC" && LTCC=$CC 8615test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8616test -z "$LD" && LD=ld 8617test -z "$ac_objext" && ac_objext=o 8618 8619func_cc_basename $compiler 8620cc_basename=$func_cc_basename_result 8621 8622 8623# Only perform the check for file, if the check method requires it 8624test -z "$MAGIC_CMD" && MAGIC_CMD=file 8625case $deplibs_check_method in 8626file_magic*) 8627 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8629printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8630if test ${lt_cv_path_MAGIC_CMD+y} 8631then : 8632 printf %s "(cached) " >&6 8633else $as_nop 8634 case $MAGIC_CMD in 8635[\\/*] | ?:[\\/]*) 8636 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8637 ;; 8638*) 8639 lt_save_MAGIC_CMD=$MAGIC_CMD 8640 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8642 for ac_dir in $ac_dummy; do 8643 IFS=$lt_save_ifs 8644 test -z "$ac_dir" && ac_dir=. 8645 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8646 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8647 if test -n "$file_magic_test_file"; then 8648 case $deplibs_check_method in 8649 "file_magic "*) 8650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8651 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8653 $EGREP "$file_magic_regex" > /dev/null; then 8654 : 8655 else 8656 cat <<_LT_EOF 1>&2 8657 8658*** Warning: the command libtool uses to detect shared libraries, 8659*** $file_magic_cmd, produces output that libtool cannot recognize. 8660*** The result is that libtool may fail to recognize shared libraries 8661*** as such. This will affect the creation of libtool libraries that 8662*** depend on shared libraries, but programs linked with such libtool 8663*** libraries will work regardless of this problem. Nevertheless, you 8664*** may want to report the problem to your system manager and/or to 8665*** bug-libtool@gnu.org 8666 8667_LT_EOF 8668 fi ;; 8669 esac 8670 fi 8671 break 8672 fi 8673 done 8674 IFS=$lt_save_ifs 8675 MAGIC_CMD=$lt_save_MAGIC_CMD 8676 ;; 8677esac 8678fi 8679 8680MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8681if test -n "$MAGIC_CMD"; then 8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8683printf "%s\n" "$MAGIC_CMD" >&6; } 8684else 8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8686printf "%s\n" "no" >&6; } 8687fi 8688 8689 8690 8691 8692 8693if test -z "$lt_cv_path_MAGIC_CMD"; then 8694 if test -n "$ac_tool_prefix"; then 8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8696printf %s "checking for file... " >&6; } 8697if test ${lt_cv_path_MAGIC_CMD+y} 8698then : 8699 printf %s "(cached) " >&6 8700else $as_nop 8701 case $MAGIC_CMD in 8702[\\/*] | ?:[\\/]*) 8703 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8704 ;; 8705*) 8706 lt_save_MAGIC_CMD=$MAGIC_CMD 8707 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8708 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8709 for ac_dir in $ac_dummy; do 8710 IFS=$lt_save_ifs 8711 test -z "$ac_dir" && ac_dir=. 8712 if test -f "$ac_dir/file"; then 8713 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8714 if test -n "$file_magic_test_file"; then 8715 case $deplibs_check_method in 8716 "file_magic "*) 8717 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8718 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8720 $EGREP "$file_magic_regex" > /dev/null; then 8721 : 8722 else 8723 cat <<_LT_EOF 1>&2 8724 8725*** Warning: the command libtool uses to detect shared libraries, 8726*** $file_magic_cmd, produces output that libtool cannot recognize. 8727*** The result is that libtool may fail to recognize shared libraries 8728*** as such. This will affect the creation of libtool libraries that 8729*** depend on shared libraries, but programs linked with such libtool 8730*** libraries will work regardless of this problem. Nevertheless, you 8731*** may want to report the problem to your system manager and/or to 8732*** bug-libtool@gnu.org 8733 8734_LT_EOF 8735 fi ;; 8736 esac 8737 fi 8738 break 8739 fi 8740 done 8741 IFS=$lt_save_ifs 8742 MAGIC_CMD=$lt_save_MAGIC_CMD 8743 ;; 8744esac 8745fi 8746 8747MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8748if test -n "$MAGIC_CMD"; then 8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8750printf "%s\n" "$MAGIC_CMD" >&6; } 8751else 8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8753printf "%s\n" "no" >&6; } 8754fi 8755 8756 8757 else 8758 MAGIC_CMD=: 8759 fi 8760fi 8761 8762 fi 8763 ;; 8764esac 8765 8766# Use C for the default configuration in the libtool script 8767 8768lt_save_CC=$CC 8769ac_ext=c 8770ac_cpp='$CPP $CPPFLAGS' 8771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8773ac_compiler_gnu=$ac_cv_c_compiler_gnu 8774 8775 8776# Source file extension for C test sources. 8777ac_ext=c 8778 8779# Object file extension for compiled C test sources. 8780objext=o 8781objext=$objext 8782 8783# Code to be used in simple compile tests 8784lt_simple_compile_test_code="int some_variable = 0;" 8785 8786# Code to be used in simple link tests 8787lt_simple_link_test_code='int main(){return(0);}' 8788 8789 8790 8791 8792 8793 8794 8795# If no C compiler was specified, use CC. 8796LTCC=${LTCC-"$CC"} 8797 8798# If no C compiler flags were specified, use CFLAGS. 8799LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8800 8801# Allow CC to be a program name with arguments. 8802compiler=$CC 8803 8804# Save the default compiler, since it gets overwritten when the other 8805# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8806compiler_DEFAULT=$CC 8807 8808# save warnings/boilerplate of simple test code 8809ac_outfile=conftest.$ac_objext 8810echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8811eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8812_lt_compiler_boilerplate=`cat conftest.err` 8813$RM conftest* 8814 8815ac_outfile=conftest.$ac_objext 8816echo "$lt_simple_link_test_code" >conftest.$ac_ext 8817eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8818_lt_linker_boilerplate=`cat conftest.err` 8819$RM -r conftest* 8820 8821 8822## CAVEAT EMPTOR: 8823## There is no encapsulation within the following macros, do not change 8824## the running order or otherwise move them around unless you know exactly 8825## what you are doing... 8826if test -n "$compiler"; then 8827 8828lt_prog_compiler_no_builtin_flag= 8829 8830if test yes = "$GCC"; then 8831 case $cc_basename in 8832 nvcc*) 8833 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8834 *) 8835 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8836 esac 8837 8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8839printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8840if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8841then : 8842 printf %s "(cached) " >&6 8843else $as_nop 8844 lt_cv_prog_compiler_rtti_exceptions=no 8845 ac_outfile=conftest.$ac_objext 8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8847 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8848 # Insert the option either (1) after the last *FLAGS variable, or 8849 # (2) before a word containing "conftest.", or (3) at the end. 8850 # Note that $ac_compile itself does not contain backslashes and begins 8851 # with a dollar sign (not a hyphen), so the echo should work correctly. 8852 # The option is referenced via a variable to avoid confusing sed. 8853 lt_compile=`echo "$ac_compile" | $SED \ 8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8856 -e 's:$: $lt_compiler_flag:'` 8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8858 (eval "$lt_compile" 2>conftest.err) 8859 ac_status=$? 8860 cat conftest.err >&5 8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8862 if (exit $ac_status) && test -s "$ac_outfile"; then 8863 # The compiler can only warn and ignore the option if not recognized 8864 # So say no if there are warnings other than the usual output. 8865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8867 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8868 lt_cv_prog_compiler_rtti_exceptions=yes 8869 fi 8870 fi 8871 $RM conftest* 8872 8873fi 8874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8875printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8876 8877if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8878 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8879else 8880 : 8881fi 8882 8883fi 8884 8885 8886 8887 8888 8889 8890 lt_prog_compiler_wl= 8891lt_prog_compiler_pic= 8892lt_prog_compiler_static= 8893 8894 8895 if test yes = "$GCC"; then 8896 lt_prog_compiler_wl='-Wl,' 8897 lt_prog_compiler_static='-static' 8898 8899 case $host_os in 8900 aix*) 8901 # All AIX code is PIC. 8902 if test ia64 = "$host_cpu"; then 8903 # AIX 5 now supports IA64 processor 8904 lt_prog_compiler_static='-Bstatic' 8905 fi 8906 lt_prog_compiler_pic='-fPIC' 8907 ;; 8908 8909 amigaos*) 8910 case $host_cpu in 8911 powerpc) 8912 # see comment about AmigaOS4 .so support 8913 lt_prog_compiler_pic='-fPIC' 8914 ;; 8915 m68k) 8916 # FIXME: we need at least 68020 code to build shared libraries, but 8917 # adding the '-m68020' flag to GCC prevents building anything better, 8918 # like '-m68040'. 8919 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8920 ;; 8921 esac 8922 ;; 8923 8924 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8925 # PIC is the default for these OSes. 8926 ;; 8927 8928 mingw* | cygwin* | pw32* | os2* | cegcc*) 8929 # This hack is so that the source file can tell whether it is being 8930 # built for inclusion in a dll (and should export symbols for example). 8931 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8932 # (--disable-auto-import) libraries 8933 lt_prog_compiler_pic='-DDLL_EXPORT' 8934 case $host_os in 8935 os2*) 8936 lt_prog_compiler_static='$wl-static' 8937 ;; 8938 esac 8939 ;; 8940 8941 darwin* | rhapsody*) 8942 # PIC is the default on this platform 8943 # Common symbols not allowed in MH_DYLIB files 8944 lt_prog_compiler_pic='-fno-common' 8945 ;; 8946 8947 haiku*) 8948 # PIC is the default for Haiku. 8949 # The "-static" flag exists, but is broken. 8950 lt_prog_compiler_static= 8951 ;; 8952 8953 hpux*) 8954 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8955 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8956 # sets the default TLS model and affects inlining. 8957 case $host_cpu in 8958 hppa*64*) 8959 # +Z the default 8960 ;; 8961 *) 8962 lt_prog_compiler_pic='-fPIC' 8963 ;; 8964 esac 8965 ;; 8966 8967 interix[3-9]*) 8968 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8969 # Instead, we relocate shared libraries at runtime. 8970 ;; 8971 8972 msdosdjgpp*) 8973 # Just because we use GCC doesn't mean we suddenly get shared libraries 8974 # on systems that don't support them. 8975 lt_prog_compiler_can_build_shared=no 8976 enable_shared=no 8977 ;; 8978 8979 *nto* | *qnx*) 8980 # QNX uses GNU C++, but need to define -shared option too, otherwise 8981 # it will coredump. 8982 lt_prog_compiler_pic='-fPIC -shared' 8983 ;; 8984 8985 sysv4*MP*) 8986 if test -d /usr/nec; then 8987 lt_prog_compiler_pic=-Kconform_pic 8988 fi 8989 ;; 8990 8991 *) 8992 lt_prog_compiler_pic='-fPIC' 8993 ;; 8994 esac 8995 8996 case $cc_basename in 8997 nvcc*) # Cuda Compiler Driver 2.2 8998 lt_prog_compiler_wl='-Xlinker ' 8999 if test -n "$lt_prog_compiler_pic"; then 9000 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9001 fi 9002 ;; 9003 esac 9004 else 9005 # PORTME Check for flag to pass linker flags through the system compiler. 9006 case $host_os in 9007 aix*) 9008 lt_prog_compiler_wl='-Wl,' 9009 if test ia64 = "$host_cpu"; then 9010 # AIX 5 now supports IA64 processor 9011 lt_prog_compiler_static='-Bstatic' 9012 else 9013 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9014 fi 9015 ;; 9016 9017 darwin* | rhapsody*) 9018 # PIC is the default on this platform 9019 # Common symbols not allowed in MH_DYLIB files 9020 lt_prog_compiler_pic='-fno-common' 9021 case $cc_basename in 9022 nagfor*) 9023 # NAG Fortran compiler 9024 lt_prog_compiler_wl='-Wl,-Wl,,' 9025 lt_prog_compiler_pic='-PIC' 9026 lt_prog_compiler_static='-Bstatic' 9027 ;; 9028 esac 9029 ;; 9030 9031 mingw* | cygwin* | pw32* | os2* | cegcc*) 9032 # This hack is so that the source file can tell whether it is being 9033 # built for inclusion in a dll (and should export symbols for example). 9034 lt_prog_compiler_pic='-DDLL_EXPORT' 9035 case $host_os in 9036 os2*) 9037 lt_prog_compiler_static='$wl-static' 9038 ;; 9039 esac 9040 ;; 9041 9042 hpux9* | hpux10* | hpux11*) 9043 lt_prog_compiler_wl='-Wl,' 9044 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9045 # not for PA HP-UX. 9046 case $host_cpu in 9047 hppa*64*|ia64*) 9048 # +Z the default 9049 ;; 9050 *) 9051 lt_prog_compiler_pic='+Z' 9052 ;; 9053 esac 9054 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9055 lt_prog_compiler_static='$wl-a ${wl}archive' 9056 ;; 9057 9058 irix5* | irix6* | nonstopux*) 9059 lt_prog_compiler_wl='-Wl,' 9060 # PIC (with -KPIC) is the default. 9061 lt_prog_compiler_static='-non_shared' 9062 ;; 9063 9064 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9065 case $cc_basename in 9066 # old Intel for x86_64, which still supported -KPIC. 9067 ecc*) 9068 lt_prog_compiler_wl='-Wl,' 9069 lt_prog_compiler_pic='-KPIC' 9070 lt_prog_compiler_static='-static' 9071 ;; 9072 # icc used to be incompatible with GCC. 9073 # ICC 10 doesn't accept -KPIC any more. 9074 icc* | ifort*) 9075 lt_prog_compiler_wl='-Wl,' 9076 lt_prog_compiler_pic='-fPIC' 9077 lt_prog_compiler_static='-static' 9078 ;; 9079 # Lahey Fortran 8.1. 9080 lf95*) 9081 lt_prog_compiler_wl='-Wl,' 9082 lt_prog_compiler_pic='--shared' 9083 lt_prog_compiler_static='--static' 9084 ;; 9085 nagfor*) 9086 # NAG Fortran compiler 9087 lt_prog_compiler_wl='-Wl,-Wl,,' 9088 lt_prog_compiler_pic='-PIC' 9089 lt_prog_compiler_static='-Bstatic' 9090 ;; 9091 tcc*) 9092 # Fabrice Bellard et al's Tiny C Compiler 9093 lt_prog_compiler_wl='-Wl,' 9094 lt_prog_compiler_pic='-fPIC' 9095 lt_prog_compiler_static='-static' 9096 ;; 9097 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9098 # Portland Group compilers (*not* the Pentium gcc compiler, 9099 # which looks to be a dead project) 9100 lt_prog_compiler_wl='-Wl,' 9101 lt_prog_compiler_pic='-fpic' 9102 lt_prog_compiler_static='-Bstatic' 9103 ;; 9104 ccc*) 9105 lt_prog_compiler_wl='-Wl,' 9106 # All Alpha code is PIC. 9107 lt_prog_compiler_static='-non_shared' 9108 ;; 9109 xl* | bgxl* | bgf* | mpixl*) 9110 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9111 lt_prog_compiler_wl='-Wl,' 9112 lt_prog_compiler_pic='-qpic' 9113 lt_prog_compiler_static='-qstaticlink' 9114 ;; 9115 *) 9116 case `$CC -V 2>&1 | $SED 5q` in 9117 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9118 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9119 lt_prog_compiler_pic='-KPIC' 9120 lt_prog_compiler_static='-Bstatic' 9121 lt_prog_compiler_wl='' 9122 ;; 9123 *Sun\ F* | *Sun*Fortran*) 9124 lt_prog_compiler_pic='-KPIC' 9125 lt_prog_compiler_static='-Bstatic' 9126 lt_prog_compiler_wl='-Qoption ld ' 9127 ;; 9128 *Sun\ C*) 9129 # Sun C 5.9 9130 lt_prog_compiler_pic='-KPIC' 9131 lt_prog_compiler_static='-Bstatic' 9132 lt_prog_compiler_wl='-Wl,' 9133 ;; 9134 *Intel*\ [CF]*Compiler*) 9135 lt_prog_compiler_wl='-Wl,' 9136 lt_prog_compiler_pic='-fPIC' 9137 lt_prog_compiler_static='-static' 9138 ;; 9139 *Portland\ Group*) 9140 lt_prog_compiler_wl='-Wl,' 9141 lt_prog_compiler_pic='-fpic' 9142 lt_prog_compiler_static='-Bstatic' 9143 ;; 9144 esac 9145 ;; 9146 esac 9147 ;; 9148 9149 newsos6) 9150 lt_prog_compiler_pic='-KPIC' 9151 lt_prog_compiler_static='-Bstatic' 9152 ;; 9153 9154 *nto* | *qnx*) 9155 # QNX uses GNU C++, but need to define -shared option too, otherwise 9156 # it will coredump. 9157 lt_prog_compiler_pic='-fPIC -shared' 9158 ;; 9159 9160 osf3* | osf4* | osf5*) 9161 lt_prog_compiler_wl='-Wl,' 9162 # All OSF/1 code is PIC. 9163 lt_prog_compiler_static='-non_shared' 9164 ;; 9165 9166 rdos*) 9167 lt_prog_compiler_static='-non_shared' 9168 ;; 9169 9170 solaris*) 9171 lt_prog_compiler_pic='-KPIC' 9172 lt_prog_compiler_static='-Bstatic' 9173 case $cc_basename in 9174 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9175 lt_prog_compiler_wl='-Qoption ld ';; 9176 *) 9177 lt_prog_compiler_wl='-Wl,';; 9178 esac 9179 ;; 9180 9181 sunos4*) 9182 lt_prog_compiler_wl='-Qoption ld ' 9183 lt_prog_compiler_pic='-PIC' 9184 lt_prog_compiler_static='-Bstatic' 9185 ;; 9186 9187 sysv4 | sysv4.2uw2* | sysv4.3*) 9188 lt_prog_compiler_wl='-Wl,' 9189 lt_prog_compiler_pic='-KPIC' 9190 lt_prog_compiler_static='-Bstatic' 9191 ;; 9192 9193 sysv4*MP*) 9194 if test -d /usr/nec; then 9195 lt_prog_compiler_pic='-Kconform_pic' 9196 lt_prog_compiler_static='-Bstatic' 9197 fi 9198 ;; 9199 9200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9201 lt_prog_compiler_wl='-Wl,' 9202 lt_prog_compiler_pic='-KPIC' 9203 lt_prog_compiler_static='-Bstatic' 9204 ;; 9205 9206 unicos*) 9207 lt_prog_compiler_wl='-Wl,' 9208 lt_prog_compiler_can_build_shared=no 9209 ;; 9210 9211 uts4*) 9212 lt_prog_compiler_pic='-pic' 9213 lt_prog_compiler_static='-Bstatic' 9214 ;; 9215 9216 *) 9217 lt_prog_compiler_can_build_shared=no 9218 ;; 9219 esac 9220 fi 9221 9222case $host_os in 9223 # For platforms that do not support PIC, -DPIC is meaningless: 9224 *djgpp*) 9225 lt_prog_compiler_pic= 9226 ;; 9227 *) 9228 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9229 ;; 9230esac 9231 9232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9233printf %s "checking for $compiler option to produce PIC... " >&6; } 9234if test ${lt_cv_prog_compiler_pic+y} 9235then : 9236 printf %s "(cached) " >&6 9237else $as_nop 9238 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9239fi 9240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9241printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9242lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9243 9244# 9245# Check to make sure the PIC flag actually works. 9246# 9247if test -n "$lt_prog_compiler_pic"; then 9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9249printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9250if test ${lt_cv_prog_compiler_pic_works+y} 9251then : 9252 printf %s "(cached) " >&6 9253else $as_nop 9254 lt_cv_prog_compiler_pic_works=no 9255 ac_outfile=conftest.$ac_objext 9256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9257 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9258 # Insert the option either (1) after the last *FLAGS variable, or 9259 # (2) before a word containing "conftest.", or (3) at the end. 9260 # Note that $ac_compile itself does not contain backslashes and begins 9261 # with a dollar sign (not a hyphen), so the echo should work correctly. 9262 # The option is referenced via a variable to avoid confusing sed. 9263 lt_compile=`echo "$ac_compile" | $SED \ 9264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9266 -e 's:$: $lt_compiler_flag:'` 9267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9268 (eval "$lt_compile" 2>conftest.err) 9269 ac_status=$? 9270 cat conftest.err >&5 9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9272 if (exit $ac_status) && test -s "$ac_outfile"; then 9273 # The compiler can only warn and ignore the option if not recognized 9274 # So say no if there are warnings other than the usual output. 9275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9278 lt_cv_prog_compiler_pic_works=yes 9279 fi 9280 fi 9281 $RM conftest* 9282 9283fi 9284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9285printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9286 9287if test yes = "$lt_cv_prog_compiler_pic_works"; then 9288 case $lt_prog_compiler_pic in 9289 "" | " "*) ;; 9290 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9291 esac 9292else 9293 lt_prog_compiler_pic= 9294 lt_prog_compiler_can_build_shared=no 9295fi 9296 9297fi 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309# 9310# Check to make sure the static flag actually works. 9311# 9312wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9314printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9315if test ${lt_cv_prog_compiler_static_works+y} 9316then : 9317 printf %s "(cached) " >&6 9318else $as_nop 9319 lt_cv_prog_compiler_static_works=no 9320 save_LDFLAGS=$LDFLAGS 9321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9322 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9324 # The linker can only warn and ignore the option if not recognized 9325 # So say no if there are warnings 9326 if test -s conftest.err; then 9327 # Append any errors to the config.log. 9328 cat conftest.err 1>&5 9329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9331 if diff conftest.exp conftest.er2 >/dev/null; then 9332 lt_cv_prog_compiler_static_works=yes 9333 fi 9334 else 9335 lt_cv_prog_compiler_static_works=yes 9336 fi 9337 fi 9338 $RM -r conftest* 9339 LDFLAGS=$save_LDFLAGS 9340 9341fi 9342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9343printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9344 9345if test yes = "$lt_cv_prog_compiler_static_works"; then 9346 : 9347else 9348 lt_prog_compiler_static= 9349fi 9350 9351 9352 9353 9354 9355 9356 9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9358printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9359if test ${lt_cv_prog_compiler_c_o+y} 9360then : 9361 printf %s "(cached) " >&6 9362else $as_nop 9363 lt_cv_prog_compiler_c_o=no 9364 $RM -r conftest 2>/dev/null 9365 mkdir conftest 9366 cd conftest 9367 mkdir out 9368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9369 9370 lt_compiler_flag="-o out/conftest2.$ac_objext" 9371 # Insert the option either (1) after the last *FLAGS variable, or 9372 # (2) before a word containing "conftest.", or (3) at the end. 9373 # Note that $ac_compile itself does not contain backslashes and begins 9374 # with a dollar sign (not a hyphen), so the echo should work correctly. 9375 lt_compile=`echo "$ac_compile" | $SED \ 9376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9378 -e 's:$: $lt_compiler_flag:'` 9379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9380 (eval "$lt_compile" 2>out/conftest.err) 9381 ac_status=$? 9382 cat out/conftest.err >&5 9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9384 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9385 then 9386 # The compiler can only warn and ignore the option if not recognized 9387 # So say no if there are warnings 9388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9389 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9390 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9391 lt_cv_prog_compiler_c_o=yes 9392 fi 9393 fi 9394 chmod u+w . 2>&5 9395 $RM conftest* 9396 # SGI C++ compiler will create directory out/ii_files/ for 9397 # template instantiation 9398 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9399 $RM out/* && rmdir out 9400 cd .. 9401 $RM -r conftest 9402 $RM conftest* 9403 9404fi 9405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9406printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9407 9408 9409 9410 9411 9412 9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9414printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9415if test ${lt_cv_prog_compiler_c_o+y} 9416then : 9417 printf %s "(cached) " >&6 9418else $as_nop 9419 lt_cv_prog_compiler_c_o=no 9420 $RM -r conftest 2>/dev/null 9421 mkdir conftest 9422 cd conftest 9423 mkdir out 9424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9425 9426 lt_compiler_flag="-o out/conftest2.$ac_objext" 9427 # Insert the option either (1) after the last *FLAGS variable, or 9428 # (2) before a word containing "conftest.", or (3) at the end. 9429 # Note that $ac_compile itself does not contain backslashes and begins 9430 # with a dollar sign (not a hyphen), so the echo should work correctly. 9431 lt_compile=`echo "$ac_compile" | $SED \ 9432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9434 -e 's:$: $lt_compiler_flag:'` 9435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9436 (eval "$lt_compile" 2>out/conftest.err) 9437 ac_status=$? 9438 cat out/conftest.err >&5 9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9440 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9441 then 9442 # The compiler can only warn and ignore the option if not recognized 9443 # So say no if there are warnings 9444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9447 lt_cv_prog_compiler_c_o=yes 9448 fi 9449 fi 9450 chmod u+w . 2>&5 9451 $RM conftest* 9452 # SGI C++ compiler will create directory out/ii_files/ for 9453 # template instantiation 9454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9455 $RM out/* && rmdir out 9456 cd .. 9457 $RM -r conftest 9458 $RM conftest* 9459 9460fi 9461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9462printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9463 9464 9465 9466 9467hard_links=nottested 9468if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9469 # do not overwrite the value of need_locks provided by the user 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9471printf %s "checking if we can lock with hard links... " >&6; } 9472 hard_links=yes 9473 $RM conftest* 9474 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9475 touch conftest.a 9476 ln conftest.a conftest.b 2>&5 || hard_links=no 9477 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9479printf "%s\n" "$hard_links" >&6; } 9480 if test no = "$hard_links"; then 9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9482printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9483 need_locks=warn 9484 fi 9485else 9486 need_locks=no 9487fi 9488 9489 9490 9491 9492 9493 9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9495printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9496 9497 runpath_var= 9498 allow_undefined_flag= 9499 always_export_symbols=no 9500 archive_cmds= 9501 archive_expsym_cmds= 9502 compiler_needs_object=no 9503 enable_shared_with_static_runtimes=no 9504 export_dynamic_flag_spec= 9505 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9506 hardcode_automatic=no 9507 hardcode_direct=no 9508 hardcode_direct_absolute=no 9509 hardcode_libdir_flag_spec= 9510 hardcode_libdir_separator= 9511 hardcode_minus_L=no 9512 hardcode_shlibpath_var=unsupported 9513 inherit_rpath=no 9514 link_all_deplibs=unknown 9515 module_cmds= 9516 module_expsym_cmds= 9517 old_archive_from_new_cmds= 9518 old_archive_from_expsyms_cmds= 9519 thread_safe_flag_spec= 9520 whole_archive_flag_spec= 9521 # include_expsyms should be a list of space-separated symbols to be *always* 9522 # included in the symbol list 9523 include_expsyms= 9524 # exclude_expsyms can be an extended regexp of symbols to exclude 9525 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9526 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9527 # as well as any symbol that contains 'd'. 9528 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9530 # platforms (ab)use it in PIC code, but their linkers get confused if 9531 # the symbol is explicitly referenced. Since portable code cannot 9532 # rely on this symbol name, it's probably fine to never include it in 9533 # preloaded symbol tables. 9534 # Exclude shared library initialization/finalization symbols. 9535 extract_expsyms_cmds= 9536 9537 case $host_os in 9538 cygwin* | mingw* | pw32* | cegcc*) 9539 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9540 # When not using gcc, we currently assume that we are using 9541 # Microsoft Visual C++ or Intel C++ Compiler. 9542 if test yes != "$GCC"; then 9543 with_gnu_ld=no 9544 fi 9545 ;; 9546 interix*) 9547 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9548 with_gnu_ld=yes 9549 ;; 9550 openbsd* | bitrig*) 9551 with_gnu_ld=no 9552 ;; 9553 esac 9554 9555 ld_shlibs=yes 9556 9557 # On some targets, GNU ld is compatible enough with the native linker 9558 # that we're better off using the native interface for both. 9559 lt_use_gnu_ld_interface=no 9560 if test yes = "$with_gnu_ld"; then 9561 case $host_os in 9562 aix*) 9563 # The AIX port of GNU ld has always aspired to compatibility 9564 # with the native linker. However, as the warning in the GNU ld 9565 # block says, versions before 2.19.5* couldn't really create working 9566 # shared libraries, regardless of the interface used. 9567 case `$LD -v 2>&1` in 9568 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9569 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9570 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9571 *) 9572 lt_use_gnu_ld_interface=yes 9573 ;; 9574 esac 9575 ;; 9576 *) 9577 lt_use_gnu_ld_interface=yes 9578 ;; 9579 esac 9580 fi 9581 9582 if test yes = "$lt_use_gnu_ld_interface"; then 9583 # If archive_cmds runs LD, not CC, wlarc should be empty 9584 wlarc='$wl' 9585 9586 # Set some defaults for GNU ld with shared library support. These 9587 # are reset later if shared libraries are not supported. Putting them 9588 # here allows them to be overridden if necessary. 9589 runpath_var=LD_RUN_PATH 9590 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9591 export_dynamic_flag_spec='$wl--export-dynamic' 9592 # ancient GNU ld didn't support --whole-archive et. al. 9593 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9594 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9595 else 9596 whole_archive_flag_spec= 9597 fi 9598 supports_anon_versioning=no 9599 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9600 *GNU\ gold*) supports_anon_versioning=yes ;; 9601 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9602 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9603 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9604 *\ 2.11.*) ;; # other 2.11 versions 9605 *) supports_anon_versioning=yes ;; 9606 esac 9607 9608 # See if GNU ld supports shared libraries. 9609 case $host_os in 9610 aix[3-9]*) 9611 # On AIX/PPC, the GNU linker is very broken 9612 if test ia64 != "$host_cpu"; then 9613 ld_shlibs=no 9614 cat <<_LT_EOF 1>&2 9615 9616*** Warning: the GNU linker, at least up to release 2.19, is reported 9617*** to be unable to reliably create shared libraries on AIX. 9618*** Therefore, libtool is disabling shared libraries support. If you 9619*** really care for shared libraries, you may want to install binutils 9620*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9621*** You will then need to restart the configuration process. 9622 9623_LT_EOF 9624 fi 9625 ;; 9626 9627 amigaos*) 9628 case $host_cpu in 9629 powerpc) 9630 # see comment about AmigaOS4 .so support 9631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9632 archive_expsym_cmds='' 9633 ;; 9634 m68k) 9635 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)' 9636 hardcode_libdir_flag_spec='-L$libdir' 9637 hardcode_minus_L=yes 9638 ;; 9639 esac 9640 ;; 9641 9642 beos*) 9643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9644 allow_undefined_flag=unsupported 9645 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9646 # support --undefined. This deserves some investigation. FIXME 9647 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9648 else 9649 ld_shlibs=no 9650 fi 9651 ;; 9652 9653 cygwin* | mingw* | pw32* | cegcc*) 9654 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9655 # as there is no search path for DLLs. 9656 hardcode_libdir_flag_spec='-L$libdir' 9657 export_dynamic_flag_spec='$wl--export-all-symbols' 9658 allow_undefined_flag=unsupported 9659 always_export_symbols=no 9660 enable_shared_with_static_runtimes=yes 9661 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' 9662 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9663 9664 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9666 # If the export-symbols file already is a .def file, use it as 9667 # is; otherwise, prepend EXPORTS... 9668 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9669 cp $export_symbols $output_objdir/$soname.def; 9670 else 9671 echo EXPORTS > $output_objdir/$soname.def; 9672 cat $export_symbols >> $output_objdir/$soname.def; 9673 fi~ 9674 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9675 else 9676 ld_shlibs=no 9677 fi 9678 ;; 9679 9680 haiku*) 9681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9682 link_all_deplibs=yes 9683 ;; 9684 9685 os2*) 9686 hardcode_libdir_flag_spec='-L$libdir' 9687 hardcode_minus_L=yes 9688 allow_undefined_flag=unsupported 9689 shrext_cmds=.dll 9690 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9691 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9692 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9693 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9694 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9695 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9696 emximp -o $lib $output_objdir/$libname.def' 9697 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9698 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9699 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9700 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9701 prefix_cmds="$SED"~ 9702 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9703 prefix_cmds="$prefix_cmds -e 1d"; 9704 fi~ 9705 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9706 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9707 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9708 emximp -o $lib $output_objdir/$libname.def' 9709 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9710 enable_shared_with_static_runtimes=yes 9711 file_list_spec='@' 9712 ;; 9713 9714 interix[3-9]*) 9715 hardcode_direct=no 9716 hardcode_shlibpath_var=no 9717 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9718 export_dynamic_flag_spec='$wl-E' 9719 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9720 # Instead, shared libraries are loaded at an image base (0x10000000 by 9721 # default) and relocated if they conflict, which is a slow very memory 9722 # consuming and fragmenting process. To avoid this, we pick a random, 9723 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9724 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9725 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9726 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' 9727 ;; 9728 9729 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9730 tmp_diet=no 9731 if test linux-dietlibc = "$host_os"; then 9732 case $cc_basename in 9733 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9734 esac 9735 fi 9736 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9737 && test no = "$tmp_diet" 9738 then 9739 tmp_addflag=' $pic_flag' 9740 tmp_sharedflag='-shared' 9741 case $cc_basename,$host_cpu in 9742 pgcc*) # Portland Group C compiler 9743 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' 9744 tmp_addflag=' $pic_flag' 9745 ;; 9746 pgf77* | pgf90* | pgf95* | pgfortran*) 9747 # Portland Group f77 and f90 compilers 9748 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' 9749 tmp_addflag=' $pic_flag -Mnomain' ;; 9750 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9751 tmp_addflag=' -i_dynamic' ;; 9752 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9753 tmp_addflag=' -i_dynamic -nofor_main' ;; 9754 ifc* | ifort*) # Intel Fortran compiler 9755 tmp_addflag=' -nofor_main' ;; 9756 lf95*) # Lahey Fortran 8.1 9757 whole_archive_flag_spec= 9758 tmp_sharedflag='--shared' ;; 9759 nagfor*) # NAGFOR 5.3 9760 tmp_sharedflag='-Wl,-shared' ;; 9761 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9762 tmp_sharedflag='-qmkshrobj' 9763 tmp_addflag= ;; 9764 nvcc*) # Cuda Compiler Driver 2.2 9765 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' 9766 compiler_needs_object=yes 9767 ;; 9768 esac 9769 case `$CC -V 2>&1 | $SED 5q` in 9770 *Sun\ C*) # Sun C 5.9 9771 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' 9772 compiler_needs_object=yes 9773 tmp_sharedflag='-G' ;; 9774 *Sun\ F*) # Sun Fortran 8.3 9775 tmp_sharedflag='-G' ;; 9776 esac 9777 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9778 9779 if test yes = "$supports_anon_versioning"; then 9780 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9781 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9782 echo "local: *; };" >> $output_objdir/$libname.ver~ 9783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9784 fi 9785 9786 case $cc_basename in 9787 tcc*) 9788 export_dynamic_flag_spec='-rdynamic' 9789 ;; 9790 xlf* | bgf* | bgxlf* | mpixlf*) 9791 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9792 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9793 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9794 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9795 if test yes = "$supports_anon_versioning"; then 9796 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9797 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9798 echo "local: *; };" >> $output_objdir/$libname.ver~ 9799 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9800 fi 9801 ;; 9802 esac 9803 else 9804 ld_shlibs=no 9805 fi 9806 ;; 9807 9808 netbsd*) 9809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9810 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9811 wlarc= 9812 else 9813 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9814 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9815 fi 9816 ;; 9817 9818 solaris*) 9819 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9820 ld_shlibs=no 9821 cat <<_LT_EOF 1>&2 9822 9823*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9824*** create shared libraries on Solaris systems. Therefore, libtool 9825*** is disabling shared libraries support. We urge you to upgrade GNU 9826*** binutils to release 2.9.1 or newer. Another option is to modify 9827*** your PATH or compiler configuration so that the native linker is 9828*** used, and then restart. 9829 9830_LT_EOF 9831 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9832 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9833 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9834 else 9835 ld_shlibs=no 9836 fi 9837 ;; 9838 9839 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9840 case `$LD -v 2>&1` in 9841 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9842 ld_shlibs=no 9843 cat <<_LT_EOF 1>&2 9844 9845*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9846*** reliably create shared libraries on SCO systems. Therefore, libtool 9847*** is disabling shared libraries support. We urge you to upgrade GNU 9848*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9849*** your PATH or compiler configuration so that the native linker is 9850*** used, and then restart. 9851 9852_LT_EOF 9853 ;; 9854 *) 9855 # For security reasons, it is highly recommended that you always 9856 # use absolute paths for naming shared libraries, and exclude the 9857 # DT_RUNPATH tag from executables and libraries. But doing so 9858 # requires that you compile everything twice, which is a pain. 9859 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9860 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9862 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9863 else 9864 ld_shlibs=no 9865 fi 9866 ;; 9867 esac 9868 ;; 9869 9870 sunos4*) 9871 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9872 wlarc= 9873 hardcode_direct=yes 9874 hardcode_shlibpath_var=no 9875 ;; 9876 9877 *) 9878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9880 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9881 else 9882 ld_shlibs=no 9883 fi 9884 ;; 9885 esac 9886 9887 if test no = "$ld_shlibs"; then 9888 runpath_var= 9889 hardcode_libdir_flag_spec= 9890 export_dynamic_flag_spec= 9891 whole_archive_flag_spec= 9892 fi 9893 else 9894 # PORTME fill in a description of your system's linker (not GNU ld) 9895 case $host_os in 9896 aix3*) 9897 allow_undefined_flag=unsupported 9898 always_export_symbols=yes 9899 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' 9900 # Note: this linker hardcodes the directories in LIBPATH if there 9901 # are no directories specified by -L. 9902 hardcode_minus_L=yes 9903 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9904 # Neither direct hardcoding nor static linking is supported with a 9905 # broken collect2. 9906 hardcode_direct=unsupported 9907 fi 9908 ;; 9909 9910 aix[4-9]*) 9911 if test ia64 = "$host_cpu"; then 9912 # On IA64, the linker does run time linking by default, so we don't 9913 # have to do anything special. 9914 aix_use_runtimelinking=no 9915 exp_sym_flag='-Bexport' 9916 no_entry_flag= 9917 else 9918 # If we're using GNU nm, then we don't want the "-C" option. 9919 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9920 # Without the "-l" option, or with the "-B" option, AIX nm treats 9921 # weak defined symbols like other global defined symbols, whereas 9922 # GNU nm marks them as "W". 9923 # While the 'weak' keyword is ignored in the Export File, we need 9924 # it in the Import File for the 'aix-soname' feature, so we have 9925 # to replace the "-B" option with "-P" for AIX nm. 9926 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9927 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9928 else 9929 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9930 fi 9931 aix_use_runtimelinking=no 9932 9933 # Test if we are trying to use run time linking or normal 9934 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9935 # have runtime linking enabled, and use it for executables. 9936 # For shared libraries, we enable/disable runtime linking 9937 # depending on the kind of the shared library created - 9938 # when "with_aix_soname,aix_use_runtimelinking" is: 9939 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9940 # "aix,yes" lib.so shared, rtl:yes, for executables 9941 # lib.a static archive 9942 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9943 # lib.a(lib.so.V) shared, rtl:no, for executables 9944 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9945 # lib.a(lib.so.V) shared, rtl:no 9946 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9947 # lib.a static archive 9948 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9949 for ld_flag in $LDFLAGS; do 9950 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9951 aix_use_runtimelinking=yes 9952 break 9953 fi 9954 done 9955 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9956 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9957 # so we don't have lib.a shared libs to link our executables. 9958 # We have to force runtime linking in this case. 9959 aix_use_runtimelinking=yes 9960 LDFLAGS="$LDFLAGS -Wl,-brtl" 9961 fi 9962 ;; 9963 esac 9964 9965 exp_sym_flag='-bexport' 9966 no_entry_flag='-bnoentry' 9967 fi 9968 9969 # When large executables or shared objects are built, AIX ld can 9970 # have problems creating the table of contents. If linking a library 9971 # or program results in "error TOC overflow" add -mminimal-toc to 9972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9974 9975 archive_cmds='' 9976 hardcode_direct=yes 9977 hardcode_direct_absolute=yes 9978 hardcode_libdir_separator=':' 9979 link_all_deplibs=yes 9980 file_list_spec='$wl-f,' 9981 case $with_aix_soname,$aix_use_runtimelinking in 9982 aix,*) ;; # traditional, no import file 9983 svr4,* | *,yes) # use import file 9984 # The Import File defines what to hardcode. 9985 hardcode_direct=no 9986 hardcode_direct_absolute=no 9987 ;; 9988 esac 9989 9990 if test yes = "$GCC"; then 9991 case $host_os in aix4.[012]|aix4.[012].*) 9992 # We only want to do this on AIX 4.2 and lower, the check 9993 # below for broken collect2 doesn't work under 4.3+ 9994 collect2name=`$CC -print-prog-name=collect2` 9995 if test -f "$collect2name" && 9996 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9997 then 9998 # We have reworked collect2 9999 : 10000 else 10001 # We have old collect2 10002 hardcode_direct=unsupported 10003 # It fails to find uninstalled libraries when the uninstalled 10004 # path is not listed in the libpath. Setting hardcode_minus_L 10005 # to unsupported forces relinking 10006 hardcode_minus_L=yes 10007 hardcode_libdir_flag_spec='-L$libdir' 10008 hardcode_libdir_separator= 10009 fi 10010 ;; 10011 esac 10012 shared_flag='-shared' 10013 if test yes = "$aix_use_runtimelinking"; then 10014 shared_flag="$shared_flag "'$wl-G' 10015 fi 10016 # Need to ensure runtime linking is disabled for the traditional 10017 # shared library, or the linker may eventually find shared libraries 10018 # /with/ Import File - we do not want to mix them. 10019 shared_flag_aix='-shared' 10020 shared_flag_svr4='-shared $wl-G' 10021 else 10022 # not using gcc 10023 if test ia64 = "$host_cpu"; then 10024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10025 # chokes on -Wl,-G. The following line is correct: 10026 shared_flag='-G' 10027 else 10028 if test yes = "$aix_use_runtimelinking"; then 10029 shared_flag='$wl-G' 10030 else 10031 shared_flag='$wl-bM:SRE' 10032 fi 10033 shared_flag_aix='$wl-bM:SRE' 10034 shared_flag_svr4='$wl-G' 10035 fi 10036 fi 10037 10038 export_dynamic_flag_spec='$wl-bexpall' 10039 # It seems that -bexpall does not export symbols beginning with 10040 # underscore (_), so it is better to generate a list of symbols to export. 10041 always_export_symbols=yes 10042 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10043 # Warning - without using the other runtime loading flags (-brtl), 10044 # -berok will link without error, but may produce a broken library. 10045 allow_undefined_flag='-berok' 10046 # Determine the default libpath from the value encoded in an 10047 # empty executable. 10048 if test set = "${lt_cv_aix_libpath+set}"; then 10049 aix_libpath=$lt_cv_aix_libpath 10050else 10051 if test ${lt_cv_aix_libpath_+y} 10052then : 10053 printf %s "(cached) " >&6 10054else $as_nop 10055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10056/* end confdefs.h. */ 10057 10058int 10059main (void) 10060{ 10061 10062 ; 10063 return 0; 10064} 10065_ACEOF 10066if ac_fn_c_try_link "$LINENO" 10067then : 10068 10069 lt_aix_libpath_sed=' 10070 /Import File Strings/,/^$/ { 10071 /^0/ { 10072 s/^0 *\([^ ]*\) *$/\1/ 10073 p 10074 } 10075 }' 10076 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10077 # Check for a 64-bit object if we didn't find anything. 10078 if test -z "$lt_cv_aix_libpath_"; then 10079 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10080 fi 10081fi 10082rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10083 conftest$ac_exeext conftest.$ac_ext 10084 if test -z "$lt_cv_aix_libpath_"; then 10085 lt_cv_aix_libpath_=/usr/lib:/lib 10086 fi 10087 10088fi 10089 10090 aix_libpath=$lt_cv_aix_libpath_ 10091fi 10092 10093 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10094 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10095 else 10096 if test ia64 = "$host_cpu"; then 10097 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10098 allow_undefined_flag="-z nodefs" 10099 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" 10100 else 10101 # Determine the default libpath from the value encoded in an 10102 # empty executable. 10103 if test set = "${lt_cv_aix_libpath+set}"; then 10104 aix_libpath=$lt_cv_aix_libpath 10105else 10106 if test ${lt_cv_aix_libpath_+y} 10107then : 10108 printf %s "(cached) " >&6 10109else $as_nop 10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10111/* end confdefs.h. */ 10112 10113int 10114main (void) 10115{ 10116 10117 ; 10118 return 0; 10119} 10120_ACEOF 10121if ac_fn_c_try_link "$LINENO" 10122then : 10123 10124 lt_aix_libpath_sed=' 10125 /Import File Strings/,/^$/ { 10126 /^0/ { 10127 s/^0 *\([^ ]*\) *$/\1/ 10128 p 10129 } 10130 }' 10131 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10132 # Check for a 64-bit object if we didn't find anything. 10133 if test -z "$lt_cv_aix_libpath_"; then 10134 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10135 fi 10136fi 10137rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10138 conftest$ac_exeext conftest.$ac_ext 10139 if test -z "$lt_cv_aix_libpath_"; then 10140 lt_cv_aix_libpath_=/usr/lib:/lib 10141 fi 10142 10143fi 10144 10145 aix_libpath=$lt_cv_aix_libpath_ 10146fi 10147 10148 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10149 # Warning - without using the other run time loading flags, 10150 # -berok will link without error, but may produce a broken library. 10151 no_undefined_flag=' $wl-bernotok' 10152 allow_undefined_flag=' $wl-berok' 10153 if test yes = "$with_gnu_ld"; then 10154 # We only use this code for GNU lds that support --whole-archive. 10155 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10156 else 10157 # Exported symbols can be pulled into shared objects from archives 10158 whole_archive_flag_spec='$convenience' 10159 fi 10160 archive_cmds_need_lc=yes 10161 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10162 # -brtl affects multiple linker settings, -berok does not and is overridden later 10163 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10164 if test svr4 != "$with_aix_soname"; then 10165 # This is similar to how AIX traditionally builds its shared libraries. 10166 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10167 fi 10168 if test aix != "$with_aix_soname"; then 10169 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10170 else 10171 # used by -dlpreopen to get the symbols 10172 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10173 fi 10174 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10175 fi 10176 fi 10177 ;; 10178 10179 amigaos*) 10180 case $host_cpu in 10181 powerpc) 10182 # see comment about AmigaOS4 .so support 10183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10184 archive_expsym_cmds='' 10185 ;; 10186 m68k) 10187 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)' 10188 hardcode_libdir_flag_spec='-L$libdir' 10189 hardcode_minus_L=yes 10190 ;; 10191 esac 10192 ;; 10193 10194 bsdi[45]*) 10195 export_dynamic_flag_spec=-rdynamic 10196 ;; 10197 10198 cygwin* | mingw* | pw32* | cegcc*) 10199 # When not using gcc, we currently assume that we are using 10200 # Microsoft Visual C++ or Intel C++ Compiler. 10201 # hardcode_libdir_flag_spec is actually meaningless, as there is 10202 # no search path for DLLs. 10203 case $cc_basename in 10204 cl* | icl*) 10205 # Native MSVC or ICC 10206 hardcode_libdir_flag_spec=' ' 10207 allow_undefined_flag=unsupported 10208 always_export_symbols=yes 10209 file_list_spec='@' 10210 # Tell ltmain to make .lib files, not .a files. 10211 libext=lib 10212 # Tell ltmain to make .dll files, not .so files. 10213 shrext_cmds=.dll 10214 # FIXME: Setting linknames here is a bad hack. 10215 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10216 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10217 cp "$export_symbols" "$output_objdir/$soname.def"; 10218 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10219 else 10220 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10221 fi~ 10222 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10223 linknames=' 10224 # The linker will not automatically build a static lib if we build a DLL. 10225 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10226 enable_shared_with_static_runtimes=yes 10227 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10229 # Don't use ranlib 10230 old_postinstall_cmds='chmod 644 $oldlib' 10231 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10232 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10233 case $lt_outputfile in 10234 *.exe|*.EXE) ;; 10235 *) 10236 lt_outputfile=$lt_outputfile.exe 10237 lt_tool_outputfile=$lt_tool_outputfile.exe 10238 ;; 10239 esac~ 10240 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10241 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10242 $RM "$lt_outputfile.manifest"; 10243 fi' 10244 ;; 10245 *) 10246 # Assume MSVC and ICC wrapper 10247 hardcode_libdir_flag_spec=' ' 10248 allow_undefined_flag=unsupported 10249 # Tell ltmain to make .lib files, not .a files. 10250 libext=lib 10251 # Tell ltmain to make .dll files, not .so files. 10252 shrext_cmds=.dll 10253 # FIXME: Setting linknames here is a bad hack. 10254 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10255 # The linker will automatically build a .lib file if we build a DLL. 10256 old_archive_from_new_cmds='true' 10257 # FIXME: Should let the user specify the lib program. 10258 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10259 enable_shared_with_static_runtimes=yes 10260 ;; 10261 esac 10262 ;; 10263 10264 darwin* | rhapsody*) 10265 10266 10267 archive_cmds_need_lc=no 10268 hardcode_direct=no 10269 hardcode_automatic=yes 10270 hardcode_shlibpath_var=unsupported 10271 if test yes = "$lt_cv_ld_force_load"; then 10272 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\"`' 10273 10274 else 10275 whole_archive_flag_spec='' 10276 fi 10277 link_all_deplibs=yes 10278 allow_undefined_flag=$_lt_dar_allow_undefined 10279 case $cc_basename in 10280 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10281 *) _lt_dar_can_shared=$GCC ;; 10282 esac 10283 if test yes = "$_lt_dar_can_shared"; then 10284 output_verbose_link_cmd=func_echo_all 10285 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10286 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10287 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" 10288 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" 10289 10290 else 10291 ld_shlibs=no 10292 fi 10293 10294 ;; 10295 10296 dgux*) 10297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10298 hardcode_libdir_flag_spec='-L$libdir' 10299 hardcode_shlibpath_var=no 10300 ;; 10301 10302 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10303 # support. Future versions do this automatically, but an explicit c++rt0.o 10304 # does not break anything, and helps significantly (at the cost of a little 10305 # extra space). 10306 freebsd2.2*) 10307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10308 hardcode_libdir_flag_spec='-R$libdir' 10309 hardcode_direct=yes 10310 hardcode_shlibpath_var=no 10311 ;; 10312 10313 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10314 freebsd2.*) 10315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10316 hardcode_direct=yes 10317 hardcode_minus_L=yes 10318 hardcode_shlibpath_var=no 10319 ;; 10320 10321 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10322 freebsd* | dragonfly* | midnightbsd*) 10323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10324 hardcode_libdir_flag_spec='-R$libdir' 10325 hardcode_direct=yes 10326 hardcode_shlibpath_var=no 10327 ;; 10328 10329 hpux9*) 10330 if test yes = "$GCC"; then 10331 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10332 else 10333 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10334 fi 10335 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10336 hardcode_libdir_separator=: 10337 hardcode_direct=yes 10338 10339 # hardcode_minus_L: Not really in the search PATH, 10340 # but as the default location of the library. 10341 hardcode_minus_L=yes 10342 export_dynamic_flag_spec='$wl-E' 10343 ;; 10344 10345 hpux10*) 10346 if test yes,no = "$GCC,$with_gnu_ld"; then 10347 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10348 else 10349 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10350 fi 10351 if test no = "$with_gnu_ld"; then 10352 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10353 hardcode_libdir_separator=: 10354 hardcode_direct=yes 10355 hardcode_direct_absolute=yes 10356 export_dynamic_flag_spec='$wl-E' 10357 # hardcode_minus_L: Not really in the search PATH, 10358 # but as the default location of the library. 10359 hardcode_minus_L=yes 10360 fi 10361 ;; 10362 10363 hpux11*) 10364 if test yes,no = "$GCC,$with_gnu_ld"; then 10365 case $host_cpu in 10366 hppa*64*) 10367 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10368 ;; 10369 ia64*) 10370 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10371 ;; 10372 *) 10373 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10374 ;; 10375 esac 10376 else 10377 case $host_cpu in 10378 hppa*64*) 10379 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10380 ;; 10381 ia64*) 10382 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10383 ;; 10384 *) 10385 10386 # Older versions of the 11.00 compiler do not understand -b yet 10387 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10389printf %s "checking if $CC understands -b... " >&6; } 10390if test ${lt_cv_prog_compiler__b+y} 10391then : 10392 printf %s "(cached) " >&6 10393else $as_nop 10394 lt_cv_prog_compiler__b=no 10395 save_LDFLAGS=$LDFLAGS 10396 LDFLAGS="$LDFLAGS -b" 10397 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10399 # The linker can only warn and ignore the option if not recognized 10400 # So say no if there are warnings 10401 if test -s conftest.err; then 10402 # Append any errors to the config.log. 10403 cat conftest.err 1>&5 10404 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10406 if diff conftest.exp conftest.er2 >/dev/null; then 10407 lt_cv_prog_compiler__b=yes 10408 fi 10409 else 10410 lt_cv_prog_compiler__b=yes 10411 fi 10412 fi 10413 $RM -r conftest* 10414 LDFLAGS=$save_LDFLAGS 10415 10416fi 10417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10418printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10419 10420if test yes = "$lt_cv_prog_compiler__b"; then 10421 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10422else 10423 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10424fi 10425 10426 ;; 10427 esac 10428 fi 10429 if test no = "$with_gnu_ld"; then 10430 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10431 hardcode_libdir_separator=: 10432 10433 case $host_cpu in 10434 hppa*64*|ia64*) 10435 hardcode_direct=no 10436 hardcode_shlibpath_var=no 10437 ;; 10438 *) 10439 hardcode_direct=yes 10440 hardcode_direct_absolute=yes 10441 export_dynamic_flag_spec='$wl-E' 10442 10443 # hardcode_minus_L: Not really in the search PATH, 10444 # but as the default location of the library. 10445 hardcode_minus_L=yes 10446 ;; 10447 esac 10448 fi 10449 ;; 10450 10451 irix5* | irix6* | nonstopux*) 10452 if test yes = "$GCC"; then 10453 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' 10454 # Try to use the -exported_symbol ld option, if it does not 10455 # work, assume that -exports_file does not work either and 10456 # implicitly export all symbols. 10457 # This should be the same for all languages, so no per-tag cache variable. 10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10459printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10460if test ${lt_cv_irix_exported_symbol+y} 10461then : 10462 printf %s "(cached) " >&6 10463else $as_nop 10464 save_LDFLAGS=$LDFLAGS 10465 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10467/* end confdefs.h. */ 10468int foo (void) { return 0; } 10469_ACEOF 10470if ac_fn_c_try_link "$LINENO" 10471then : 10472 lt_cv_irix_exported_symbol=yes 10473else $as_nop 10474 lt_cv_irix_exported_symbol=no 10475fi 10476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10477 conftest$ac_exeext conftest.$ac_ext 10478 LDFLAGS=$save_LDFLAGS 10479fi 10480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10481printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10482 if test yes = "$lt_cv_irix_exported_symbol"; then 10483 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' 10484 fi 10485 else 10486 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' 10487 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' 10488 fi 10489 archive_cmds_need_lc='no' 10490 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10491 hardcode_libdir_separator=: 10492 inherit_rpath=yes 10493 link_all_deplibs=yes 10494 ;; 10495 10496 linux*) 10497 case $cc_basename in 10498 tcc*) 10499 # Fabrice Bellard et al's Tiny C Compiler 10500 ld_shlibs=yes 10501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10502 ;; 10503 esac 10504 ;; 10505 10506 netbsd*) 10507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10509 else 10510 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10511 fi 10512 hardcode_libdir_flag_spec='-R$libdir' 10513 hardcode_direct=yes 10514 hardcode_shlibpath_var=no 10515 ;; 10516 10517 newsos6) 10518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10519 hardcode_direct=yes 10520 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10521 hardcode_libdir_separator=: 10522 hardcode_shlibpath_var=no 10523 ;; 10524 10525 *nto* | *qnx*) 10526 ;; 10527 10528 openbsd* | bitrig*) 10529 if test -f /usr/libexec/ld.so; then 10530 hardcode_direct=yes 10531 hardcode_shlibpath_var=no 10532 hardcode_direct_absolute=yes 10533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10535 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10536 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10537 export_dynamic_flag_spec='$wl-E' 10538 else 10539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10540 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10541 fi 10542 else 10543 ld_shlibs=no 10544 fi 10545 ;; 10546 10547 os2*) 10548 hardcode_libdir_flag_spec='-L$libdir' 10549 hardcode_minus_L=yes 10550 allow_undefined_flag=unsupported 10551 shrext_cmds=.dll 10552 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10553 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10554 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10555 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10556 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10557 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10558 emximp -o $lib $output_objdir/$libname.def' 10559 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10560 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10561 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10562 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10563 prefix_cmds="$SED"~ 10564 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10565 prefix_cmds="$prefix_cmds -e 1d"; 10566 fi~ 10567 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10568 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10569 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10570 emximp -o $lib $output_objdir/$libname.def' 10571 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10572 enable_shared_with_static_runtimes=yes 10573 file_list_spec='@' 10574 ;; 10575 10576 osf3*) 10577 if test yes = "$GCC"; then 10578 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10579 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' 10580 else 10581 allow_undefined_flag=' -expect_unresolved \*' 10582 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' 10583 fi 10584 archive_cmds_need_lc='no' 10585 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10586 hardcode_libdir_separator=: 10587 ;; 10588 10589 osf4* | osf5*) # as osf3* with the addition of -msym flag 10590 if test yes = "$GCC"; then 10591 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10592 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' 10593 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10594 else 10595 allow_undefined_flag=' -expect_unresolved \*' 10596 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' 10597 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~ 10598 $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' 10599 10600 # Both c and cxx compiler support -rpath directly 10601 hardcode_libdir_flag_spec='-rpath $libdir' 10602 fi 10603 archive_cmds_need_lc='no' 10604 hardcode_libdir_separator=: 10605 ;; 10606 10607 solaris*) 10608 no_undefined_flag=' -z defs' 10609 if test yes = "$GCC"; then 10610 wlarc='$wl' 10611 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10613 $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' 10614 else 10615 case `$CC -V 2>&1` in 10616 *"Compilers 5.0"*) 10617 wlarc='' 10618 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10620 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10621 ;; 10622 *) 10623 wlarc='$wl' 10624 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10626 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10627 ;; 10628 esac 10629 fi 10630 hardcode_libdir_flag_spec='-R$libdir' 10631 hardcode_shlibpath_var=no 10632 case $host_os in 10633 solaris2.[0-5] | solaris2.[0-5].*) ;; 10634 *) 10635 # The compiler driver will combine and reorder linker options, 10636 # but understands '-z linker_flag'. GCC discards it without '$wl', 10637 # but is careful enough not to reorder. 10638 # Supported since Solaris 2.6 (maybe 2.5.1?) 10639 if test yes = "$GCC"; then 10640 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10641 else 10642 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10643 fi 10644 ;; 10645 esac 10646 link_all_deplibs=yes 10647 ;; 10648 10649 sunos4*) 10650 if test sequent = "$host_vendor"; then 10651 # Use $CC to link under sequent, because it throws in some extra .o 10652 # files that make .init and .fini sections work. 10653 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10654 else 10655 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10656 fi 10657 hardcode_libdir_flag_spec='-L$libdir' 10658 hardcode_direct=yes 10659 hardcode_minus_L=yes 10660 hardcode_shlibpath_var=no 10661 ;; 10662 10663 sysv4) 10664 case $host_vendor in 10665 sni) 10666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10667 hardcode_direct=yes # is this really true??? 10668 ;; 10669 siemens) 10670 ## LD is ld it makes a PLAMLIB 10671 ## CC just makes a GrossModule. 10672 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10673 reload_cmds='$CC -r -o $output$reload_objs' 10674 hardcode_direct=no 10675 ;; 10676 motorola) 10677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10678 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10679 ;; 10680 esac 10681 runpath_var='LD_RUN_PATH' 10682 hardcode_shlibpath_var=no 10683 ;; 10684 10685 sysv4.3*) 10686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10687 hardcode_shlibpath_var=no 10688 export_dynamic_flag_spec='-Bexport' 10689 ;; 10690 10691 sysv4*MP*) 10692 if test -d /usr/nec; then 10693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10694 hardcode_shlibpath_var=no 10695 runpath_var=LD_RUN_PATH 10696 hardcode_runpath_var=yes 10697 ld_shlibs=yes 10698 fi 10699 ;; 10700 10701 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10702 no_undefined_flag='$wl-z,text' 10703 archive_cmds_need_lc=no 10704 hardcode_shlibpath_var=no 10705 runpath_var='LD_RUN_PATH' 10706 10707 if test yes = "$GCC"; then 10708 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10709 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10710 else 10711 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10712 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10713 fi 10714 ;; 10715 10716 sysv5* | sco3.2v5* | sco5v6*) 10717 # Note: We CANNOT use -z defs as we might desire, because we do not 10718 # link with -lc, and that would cause any symbols used from libc to 10719 # always be unresolved, which means just about no library would 10720 # ever link correctly. If we're not using GNU ld we use -z text 10721 # though, which does catch some bad symbols but isn't as heavy-handed 10722 # as -z defs. 10723 no_undefined_flag='$wl-z,text' 10724 allow_undefined_flag='$wl-z,nodefs' 10725 archive_cmds_need_lc=no 10726 hardcode_shlibpath_var=no 10727 hardcode_libdir_flag_spec='$wl-R,$libdir' 10728 hardcode_libdir_separator=':' 10729 link_all_deplibs=yes 10730 export_dynamic_flag_spec='$wl-Bexport' 10731 runpath_var='LD_RUN_PATH' 10732 10733 if test yes = "$GCC"; then 10734 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10735 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10736 else 10737 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10738 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10739 fi 10740 ;; 10741 10742 uts4*) 10743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10744 hardcode_libdir_flag_spec='-L$libdir' 10745 hardcode_shlibpath_var=no 10746 ;; 10747 10748 *) 10749 ld_shlibs=no 10750 ;; 10751 esac 10752 10753 if test sni = "$host_vendor"; then 10754 case $host in 10755 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10756 export_dynamic_flag_spec='$wl-Blargedynsym' 10757 ;; 10758 esac 10759 fi 10760 fi 10761 10762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10763printf "%s\n" "$ld_shlibs" >&6; } 10764test no = "$ld_shlibs" && can_build_shared=no 10765 10766with_gnu_ld=$with_gnu_ld 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782# 10783# Do we need to explicitly link libc? 10784# 10785case "x$archive_cmds_need_lc" in 10786x|xyes) 10787 # Assume -lc should be added 10788 archive_cmds_need_lc=yes 10789 10790 if test yes,yes = "$GCC,$enable_shared"; then 10791 case $archive_cmds in 10792 *'~'*) 10793 # FIXME: we may have to deal with multi-command sequences. 10794 ;; 10795 '$CC '*) 10796 # Test whether the compiler implicitly links with -lc since on some 10797 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10798 # to ld, don't add -lc before -lgcc. 10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10800printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10801if test ${lt_cv_archive_cmds_need_lc+y} 10802then : 10803 printf %s "(cached) " >&6 10804else $as_nop 10805 $RM conftest* 10806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10807 10808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10809 (eval $ac_compile) 2>&5 10810 ac_status=$? 10811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10812 test $ac_status = 0; } 2>conftest.err; then 10813 soname=conftest 10814 lib=conftest 10815 libobjs=conftest.$ac_objext 10816 deplibs= 10817 wl=$lt_prog_compiler_wl 10818 pic_flag=$lt_prog_compiler_pic 10819 compiler_flags=-v 10820 linker_flags=-v 10821 verstring= 10822 output_objdir=. 10823 libname=conftest 10824 lt_save_allow_undefined_flag=$allow_undefined_flag 10825 allow_undefined_flag= 10826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10827 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10828 ac_status=$? 10829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10830 test $ac_status = 0; } 10831 then 10832 lt_cv_archive_cmds_need_lc=no 10833 else 10834 lt_cv_archive_cmds_need_lc=yes 10835 fi 10836 allow_undefined_flag=$lt_save_allow_undefined_flag 10837 else 10838 cat conftest.err 1>&5 10839 fi 10840 $RM conftest* 10841 10842fi 10843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10844printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10845 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10846 ;; 10847 esac 10848 fi 10849 ;; 10850esac 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11004printf %s "checking dynamic linker characteristics... " >&6; } 11005 11006if test yes = "$GCC"; then 11007 case $host_os in 11008 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11009 *) lt_awk_arg='/^libraries:/' ;; 11010 esac 11011 case $host_os in 11012 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11013 *) lt_sed_strip_eq='s|=/|/|g' ;; 11014 esac 11015 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11016 case $lt_search_path_spec in 11017 *\;*) 11018 # if the path contains ";" then we assume it to be the separator 11019 # otherwise default to the standard path separator (i.e. ":") - it is 11020 # assumed that no part of a normal pathname contains ";" but that should 11021 # okay in the real world where ";" in dirpaths is itself problematic. 11022 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11023 ;; 11024 *) 11025 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11026 ;; 11027 esac 11028 # Ok, now we have the path, separated by spaces, we can step through it 11029 # and add multilib dir if necessary... 11030 lt_tmp_lt_search_path_spec= 11031 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11032 # ...but if some path component already ends with the multilib dir we assume 11033 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11034 case "$lt_multi_os_dir; $lt_search_path_spec " in 11035 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11036 lt_multi_os_dir= 11037 ;; 11038 esac 11039 for lt_sys_path in $lt_search_path_spec; do 11040 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11041 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11042 elif test -n "$lt_multi_os_dir"; then 11043 test -d "$lt_sys_path" && \ 11044 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11045 fi 11046 done 11047 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11048BEGIN {RS = " "; FS = "/|\n";} { 11049 lt_foo = ""; 11050 lt_count = 0; 11051 for (lt_i = NF; lt_i > 0; lt_i--) { 11052 if ($lt_i != "" && $lt_i != ".") { 11053 if ($lt_i == "..") { 11054 lt_count++; 11055 } else { 11056 if (lt_count == 0) { 11057 lt_foo = "/" $lt_i lt_foo; 11058 } else { 11059 lt_count--; 11060 } 11061 } 11062 } 11063 } 11064 if (lt_foo != "") { lt_freq[lt_foo]++; } 11065 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11066}'` 11067 # AWK program above erroneously prepends '/' to C:/dos/paths 11068 # for these hosts. 11069 case $host_os in 11070 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11071 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11072 esac 11073 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11074else 11075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11076fi 11077library_names_spec= 11078libname_spec='lib$name' 11079soname_spec= 11080shrext_cmds=.so 11081postinstall_cmds= 11082postuninstall_cmds= 11083finish_cmds= 11084finish_eval= 11085shlibpath_var= 11086shlibpath_overrides_runpath=unknown 11087version_type=none 11088dynamic_linker="$host_os ld.so" 11089sys_lib_dlsearch_path_spec="/lib /usr/lib" 11090need_lib_prefix=unknown 11091hardcode_into_libs=no 11092 11093# when you set need_version to no, make sure it does not cause -set_version 11094# flags to be left without arguments 11095need_version=unknown 11096 11097 11098 11099case $host_os in 11100aix3*) 11101 version_type=linux # correct to gnu/linux during the next big refactor 11102 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11103 shlibpath_var=LIBPATH 11104 11105 # AIX 3 has no versioning support, so we append a major version to the name. 11106 soname_spec='$libname$release$shared_ext$major' 11107 ;; 11108 11109aix[4-9]*) 11110 version_type=linux # correct to gnu/linux during the next big refactor 11111 need_lib_prefix=no 11112 need_version=no 11113 hardcode_into_libs=yes 11114 if test ia64 = "$host_cpu"; then 11115 # AIX 5 supports IA64 11116 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11117 shlibpath_var=LD_LIBRARY_PATH 11118 else 11119 # With GCC up to 2.95.x, collect2 would create an import file 11120 # for dependence libraries. The import file would start with 11121 # the line '#! .'. This would cause the generated library to 11122 # depend on '.', always an invalid library. This was fixed in 11123 # development snapshots of GCC prior to 3.0. 11124 case $host_os in 11125 aix4 | aix4.[01] | aix4.[01].*) 11126 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11127 echo ' yes ' 11128 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11129 : 11130 else 11131 can_build_shared=no 11132 fi 11133 ;; 11134 esac 11135 # Using Import Files as archive members, it is possible to support 11136 # filename-based versioning of shared library archives on AIX. While 11137 # this would work for both with and without runtime linking, it will 11138 # prevent static linking of such archives. So we do filename-based 11139 # shared library versioning with .so extension only, which is used 11140 # when both runtime linking and shared linking is enabled. 11141 # Unfortunately, runtime linking may impact performance, so we do 11142 # not want this to be the default eventually. Also, we use the 11143 # versioned .so libs for executables only if there is the -brtl 11144 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11145 # To allow for filename-based versioning support, we need to create 11146 # libNAME.so.V as an archive file, containing: 11147 # *) an Import File, referring to the versioned filename of the 11148 # archive as well as the shared archive member, telling the 11149 # bitwidth (32 or 64) of that shared object, and providing the 11150 # list of exported symbols of that shared object, eventually 11151 # decorated with the 'weak' keyword 11152 # *) the shared object with the F_LOADONLY flag set, to really avoid 11153 # it being seen by the linker. 11154 # At run time we better use the real file rather than another symlink, 11155 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11156 11157 case $with_aix_soname,$aix_use_runtimelinking in 11158 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11159 # soname into executable. Probably we can add versioning support to 11160 # collect2, so additional links can be useful in future. 11161 aix,yes) # traditional libtool 11162 dynamic_linker='AIX unversionable lib.so' 11163 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11164 # instead of lib<name>.a to let people know that these are not 11165 # typical AIX shared libraries. 11166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11167 ;; 11168 aix,no) # traditional AIX only 11169 dynamic_linker='AIX lib.a(lib.so.V)' 11170 # We preserve .a as extension for shared libraries through AIX4.2 11171 # and later when we are not doing run time linking. 11172 library_names_spec='$libname$release.a $libname.a' 11173 soname_spec='$libname$release$shared_ext$major' 11174 ;; 11175 svr4,*) # full svr4 only 11176 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11177 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11178 # We do not specify a path in Import Files, so LIBPATH fires. 11179 shlibpath_overrides_runpath=yes 11180 ;; 11181 *,yes) # both, prefer svr4 11182 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11183 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11184 # unpreferred sharedlib libNAME.a needs extra handling 11185 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11186 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11187 # We do not specify a path in Import Files, so LIBPATH fires. 11188 shlibpath_overrides_runpath=yes 11189 ;; 11190 *,no) # both, prefer aix 11191 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11192 library_names_spec='$libname$release.a $libname.a' 11193 soname_spec='$libname$release$shared_ext$major' 11194 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11195 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11196 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11197 ;; 11198 esac 11199 shlibpath_var=LIBPATH 11200 fi 11201 ;; 11202 11203amigaos*) 11204 case $host_cpu in 11205 powerpc) 11206 # Since July 2007 AmigaOS4 officially supports .so libraries. 11207 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11209 ;; 11210 m68k) 11211 library_names_spec='$libname.ixlibrary $libname.a' 11212 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11213 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11214 ;; 11215 esac 11216 ;; 11217 11218beos*) 11219 library_names_spec='$libname$shared_ext' 11220 dynamic_linker="$host_os ld.so" 11221 shlibpath_var=LIBRARY_PATH 11222 ;; 11223 11224bsdi[45]*) 11225 version_type=linux # correct to gnu/linux during the next big refactor 11226 need_version=no 11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11228 soname_spec='$libname$release$shared_ext$major' 11229 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11230 shlibpath_var=LD_LIBRARY_PATH 11231 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11232 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11233 # the default ld.so.conf also contains /usr/contrib/lib and 11234 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11235 # libtool to hard-code these into programs 11236 ;; 11237 11238cygwin* | mingw* | pw32* | cegcc*) 11239 version_type=windows 11240 shrext_cmds=.dll 11241 need_version=no 11242 need_lib_prefix=no 11243 11244 case $GCC,$cc_basename in 11245 yes,*) 11246 # gcc 11247 library_names_spec='$libname.dll.a' 11248 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11249 postinstall_cmds='base_file=`basename \$file`~ 11250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11251 dldir=$destdir/`dirname \$dlpath`~ 11252 test -d \$dldir || mkdir -p \$dldir~ 11253 $install_prog $dir/$dlname \$dldir/$dlname~ 11254 chmod a+x \$dldir/$dlname~ 11255 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11256 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11257 fi' 11258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11259 dlpath=$dir/\$dldll~ 11260 $RM \$dlpath' 11261 shlibpath_overrides_runpath=yes 11262 11263 case $host_os in 11264 cygwin*) 11265 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11266 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11267 11268 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11269 ;; 11270 mingw* | cegcc*) 11271 # MinGW DLLs use traditional 'lib' prefix 11272 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11273 ;; 11274 pw32*) 11275 # pw32 DLLs use 'pw' prefix rather than 'lib' 11276 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11277 ;; 11278 esac 11279 dynamic_linker='Win32 ld.exe' 11280 ;; 11281 11282 *,cl* | *,icl*) 11283 # Native MSVC or ICC 11284 libname_spec='$name' 11285 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11286 library_names_spec='$libname.dll.lib' 11287 11288 case $build_os in 11289 mingw*) 11290 sys_lib_search_path_spec= 11291 lt_save_ifs=$IFS 11292 IFS=';' 11293 for lt_path in $LIB 11294 do 11295 IFS=$lt_save_ifs 11296 # Let DOS variable expansion print the short 8.3 style file name. 11297 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11298 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11299 done 11300 IFS=$lt_save_ifs 11301 # Convert to MSYS style. 11302 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11303 ;; 11304 cygwin*) 11305 # Convert to unix form, then to dos form, then back to unix form 11306 # but this time dos style (no spaces!) so that the unix form looks 11307 # like /cygdrive/c/PROGRA~1:/cygdr... 11308 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11309 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11310 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11311 ;; 11312 *) 11313 sys_lib_search_path_spec=$LIB 11314 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11315 # It is most probably a Windows format PATH. 11316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11317 else 11318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11319 fi 11320 # FIXME: find the short name or the path components, as spaces are 11321 # common. (e.g. "Program Files" -> "PROGRA~1") 11322 ;; 11323 esac 11324 11325 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11326 postinstall_cmds='base_file=`basename \$file`~ 11327 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11328 dldir=$destdir/`dirname \$dlpath`~ 11329 test -d \$dldir || mkdir -p \$dldir~ 11330 $install_prog $dir/$dlname \$dldir/$dlname' 11331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11332 dlpath=$dir/\$dldll~ 11333 $RM \$dlpath' 11334 shlibpath_overrides_runpath=yes 11335 dynamic_linker='Win32 link.exe' 11336 ;; 11337 11338 *) 11339 # Assume MSVC and ICC wrapper 11340 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11341 dynamic_linker='Win32 ld.exe' 11342 ;; 11343 esac 11344 # FIXME: first we should search . and the directory the executable is in 11345 shlibpath_var=PATH 11346 ;; 11347 11348darwin* | rhapsody*) 11349 dynamic_linker="$host_os dyld" 11350 version_type=darwin 11351 need_lib_prefix=no 11352 need_version=no 11353 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11354 soname_spec='$libname$release$major$shared_ext' 11355 shlibpath_overrides_runpath=yes 11356 shlibpath_var=DYLD_LIBRARY_PATH 11357 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11358 11359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11361 ;; 11362 11363dgux*) 11364 version_type=linux # correct to gnu/linux during the next big refactor 11365 need_lib_prefix=no 11366 need_version=no 11367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11368 soname_spec='$libname$release$shared_ext$major' 11369 shlibpath_var=LD_LIBRARY_PATH 11370 ;; 11371 11372freebsd* | dragonfly* | midnightbsd*) 11373 # DragonFly does not have aout. When/if they implement a new 11374 # versioning mechanism, adjust this. 11375 if test -x /usr/bin/objformat; then 11376 objformat=`/usr/bin/objformat` 11377 else 11378 case $host_os in 11379 freebsd[23].*) objformat=aout ;; 11380 *) objformat=elf ;; 11381 esac 11382 fi 11383 version_type=freebsd-$objformat 11384 case $version_type in 11385 freebsd-elf*) 11386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11387 soname_spec='$libname$release$shared_ext$major' 11388 need_version=no 11389 need_lib_prefix=no 11390 ;; 11391 freebsd-*) 11392 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11393 need_version=yes 11394 ;; 11395 esac 11396 shlibpath_var=LD_LIBRARY_PATH 11397 case $host_os in 11398 freebsd2.*) 11399 shlibpath_overrides_runpath=yes 11400 ;; 11401 freebsd3.[01]* | freebsdelf3.[01]*) 11402 shlibpath_overrides_runpath=yes 11403 hardcode_into_libs=yes 11404 ;; 11405 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11406 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11407 shlibpath_overrides_runpath=no 11408 hardcode_into_libs=yes 11409 ;; 11410 *) # from 4.6 on, and DragonFly 11411 shlibpath_overrides_runpath=yes 11412 hardcode_into_libs=yes 11413 ;; 11414 esac 11415 ;; 11416 11417haiku*) 11418 version_type=linux # correct to gnu/linux during the next big refactor 11419 need_lib_prefix=no 11420 need_version=no 11421 dynamic_linker="$host_os runtime_loader" 11422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11423 soname_spec='$libname$release$shared_ext$major' 11424 shlibpath_var=LIBRARY_PATH 11425 shlibpath_overrides_runpath=no 11426 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11427 hardcode_into_libs=yes 11428 ;; 11429 11430hpux9* | hpux10* | hpux11*) 11431 # Give a soname corresponding to the major version so that dld.sl refuses to 11432 # link against other versions. 11433 version_type=sunos 11434 need_lib_prefix=no 11435 need_version=no 11436 case $host_cpu in 11437 ia64*) 11438 shrext_cmds='.so' 11439 hardcode_into_libs=yes 11440 dynamic_linker="$host_os dld.so" 11441 shlibpath_var=LD_LIBRARY_PATH 11442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11444 soname_spec='$libname$release$shared_ext$major' 11445 if test 32 = "$HPUX_IA64_MODE"; then 11446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11447 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11448 else 11449 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11450 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11451 fi 11452 ;; 11453 hppa*64*) 11454 shrext_cmds='.sl' 11455 hardcode_into_libs=yes 11456 dynamic_linker="$host_os dld.sl" 11457 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11460 soname_spec='$libname$release$shared_ext$major' 11461 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11463 ;; 11464 *) 11465 shrext_cmds='.sl' 11466 dynamic_linker="$host_os dld.sl" 11467 shlibpath_var=SHLIB_PATH 11468 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11470 soname_spec='$libname$release$shared_ext$major' 11471 ;; 11472 esac 11473 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11474 postinstall_cmds='chmod 555 $lib' 11475 # or fails outright, so override atomically: 11476 install_override_mode=555 11477 ;; 11478 11479interix[3-9]*) 11480 version_type=linux # correct to gnu/linux during the next big refactor 11481 need_lib_prefix=no 11482 need_version=no 11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11484 soname_spec='$libname$release$shared_ext$major' 11485 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11486 shlibpath_var=LD_LIBRARY_PATH 11487 shlibpath_overrides_runpath=no 11488 hardcode_into_libs=yes 11489 ;; 11490 11491irix5* | irix6* | nonstopux*) 11492 case $host_os in 11493 nonstopux*) version_type=nonstopux ;; 11494 *) 11495 if test yes = "$lt_cv_prog_gnu_ld"; then 11496 version_type=linux # correct to gnu/linux during the next big refactor 11497 else 11498 version_type=irix 11499 fi ;; 11500 esac 11501 need_lib_prefix=no 11502 need_version=no 11503 soname_spec='$libname$release$shared_ext$major' 11504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11505 case $host_os in 11506 irix5* | nonstopux*) 11507 libsuff= shlibsuff= 11508 ;; 11509 *) 11510 case $LD in # libtool.m4 will add one of these switches to LD 11511 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11512 libsuff= shlibsuff= libmagic=32-bit;; 11513 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11514 libsuff=32 shlibsuff=N32 libmagic=N32;; 11515 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11516 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11517 *) libsuff= shlibsuff= libmagic=never-match;; 11518 esac 11519 ;; 11520 esac 11521 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11522 shlibpath_overrides_runpath=no 11523 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11524 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11525 hardcode_into_libs=yes 11526 ;; 11527 11528# No shared lib support for Linux oldld, aout, or coff. 11529linux*oldld* | linux*aout* | linux*coff*) 11530 dynamic_linker=no 11531 ;; 11532 11533linux*android*) 11534 version_type=none # Android doesn't support versioned libraries. 11535 need_lib_prefix=no 11536 need_version=no 11537 library_names_spec='$libname$release$shared_ext' 11538 soname_spec='$libname$release$shared_ext' 11539 finish_cmds= 11540 shlibpath_var=LD_LIBRARY_PATH 11541 shlibpath_overrides_runpath=yes 11542 11543 # This implies no fast_install, which is unacceptable. 11544 # Some rework will be needed to allow for fast_install 11545 # before this can be enabled. 11546 hardcode_into_libs=yes 11547 11548 dynamic_linker='Android linker' 11549 # Don't embed -rpath directories since the linker doesn't support them. 11550 hardcode_libdir_flag_spec='-L$libdir' 11551 ;; 11552 11553# This must be glibc/ELF. 11554linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11555 version_type=linux # correct to gnu/linux during the next big refactor 11556 need_lib_prefix=no 11557 need_version=no 11558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11559 soname_spec='$libname$release$shared_ext$major' 11560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11561 shlibpath_var=LD_LIBRARY_PATH 11562 shlibpath_overrides_runpath=no 11563 11564 # Some binutils ld are patched to set DT_RUNPATH 11565 if test ${lt_cv_shlibpath_overrides_runpath+y} 11566then : 11567 printf %s "(cached) " >&6 11568else $as_nop 11569 lt_cv_shlibpath_overrides_runpath=no 11570 save_LDFLAGS=$LDFLAGS 11571 save_libdir=$libdir 11572 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11573 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11575/* end confdefs.h. */ 11576 11577int 11578main (void) 11579{ 11580 11581 ; 11582 return 0; 11583} 11584_ACEOF 11585if ac_fn_c_try_link "$LINENO" 11586then : 11587 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11588then : 11589 lt_cv_shlibpath_overrides_runpath=yes 11590fi 11591fi 11592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11593 conftest$ac_exeext conftest.$ac_ext 11594 LDFLAGS=$save_LDFLAGS 11595 libdir=$save_libdir 11596 11597fi 11598 11599 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11600 11601 # This implies no fast_install, which is unacceptable. 11602 # Some rework will be needed to allow for fast_install 11603 # before this can be enabled. 11604 hardcode_into_libs=yes 11605 11606 # Ideally, we could use ldconfig to report *all* directores which are 11607 # searched for libraries, however this is still not possible. Aside from not 11608 # being certain /sbin/ldconfig is available, command 11609 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11610 # even though it is searched at run-time. Try to do the best guess by 11611 # appending ld.so.conf contents (and includes) to the search path. 11612 if test -f /etc/ld.so.conf; then 11613 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' ' '` 11614 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11615 fi 11616 11617 # We used to test for /lib/ld.so.1 and disable shared libraries on 11618 # powerpc, because MkLinux only supported shared libraries with the 11619 # GNU dynamic linker. Since this was broken with cross compilers, 11620 # most powerpc-linux boxes support dynamic linking these days and 11621 # people can always --disable-shared, the test was removed, and we 11622 # assume the GNU/Linux dynamic linker is in use. 11623 dynamic_linker='GNU/Linux ld.so' 11624 ;; 11625 11626netbsd*) 11627 version_type=sunos 11628 need_lib_prefix=no 11629 need_version=no 11630 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11631 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11632 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11633 dynamic_linker='NetBSD (a.out) ld.so' 11634 else 11635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11636 soname_spec='$libname$release$shared_ext$major' 11637 dynamic_linker='NetBSD ld.elf_so' 11638 fi 11639 shlibpath_var=LD_LIBRARY_PATH 11640 shlibpath_overrides_runpath=yes 11641 hardcode_into_libs=yes 11642 ;; 11643 11644newsos6) 11645 version_type=linux # correct to gnu/linux during the next big refactor 11646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11647 shlibpath_var=LD_LIBRARY_PATH 11648 shlibpath_overrides_runpath=yes 11649 ;; 11650 11651*nto* | *qnx*) 11652 version_type=qnx 11653 need_lib_prefix=no 11654 need_version=no 11655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11656 soname_spec='$libname$release$shared_ext$major' 11657 shlibpath_var=LD_LIBRARY_PATH 11658 shlibpath_overrides_runpath=no 11659 hardcode_into_libs=yes 11660 dynamic_linker='ldqnx.so' 11661 ;; 11662 11663openbsd* | bitrig*) 11664 version_type=sunos 11665 sys_lib_dlsearch_path_spec=/usr/lib 11666 need_lib_prefix=no 11667 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11668 need_version=no 11669 else 11670 need_version=yes 11671 fi 11672 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11673 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11674 shlibpath_var=LD_LIBRARY_PATH 11675 shlibpath_overrides_runpath=yes 11676 ;; 11677 11678os2*) 11679 libname_spec='$name' 11680 version_type=windows 11681 shrext_cmds=.dll 11682 need_version=no 11683 need_lib_prefix=no 11684 # OS/2 can only load a DLL with a base name of 8 characters or less. 11685 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11686 v=$($ECHO $release$versuffix | tr -d .-); 11687 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11688 $ECHO $n$v`$shared_ext' 11689 library_names_spec='${libname}_dll.$libext' 11690 dynamic_linker='OS/2 ld.exe' 11691 shlibpath_var=BEGINLIBPATH 11692 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11694 postinstall_cmds='base_file=`basename \$file`~ 11695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11696 dldir=$destdir/`dirname \$dlpath`~ 11697 test -d \$dldir || mkdir -p \$dldir~ 11698 $install_prog $dir/$dlname \$dldir/$dlname~ 11699 chmod a+x \$dldir/$dlname~ 11700 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11701 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11702 fi' 11703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11704 dlpath=$dir/\$dldll~ 11705 $RM \$dlpath' 11706 ;; 11707 11708osf3* | osf4* | osf5*) 11709 version_type=osf 11710 need_lib_prefix=no 11711 need_version=no 11712 soname_spec='$libname$release$shared_ext$major' 11713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11714 shlibpath_var=LD_LIBRARY_PATH 11715 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11716 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11717 ;; 11718 11719rdos*) 11720 dynamic_linker=no 11721 ;; 11722 11723solaris*) 11724 version_type=linux # correct to gnu/linux during the next big refactor 11725 need_lib_prefix=no 11726 need_version=no 11727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11728 soname_spec='$libname$release$shared_ext$major' 11729 shlibpath_var=LD_LIBRARY_PATH 11730 shlibpath_overrides_runpath=yes 11731 hardcode_into_libs=yes 11732 # ldd complains unless libraries are executable 11733 postinstall_cmds='chmod +x $lib' 11734 ;; 11735 11736sunos4*) 11737 version_type=sunos 11738 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11739 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11740 shlibpath_var=LD_LIBRARY_PATH 11741 shlibpath_overrides_runpath=yes 11742 if test yes = "$with_gnu_ld"; then 11743 need_lib_prefix=no 11744 fi 11745 need_version=yes 11746 ;; 11747 11748sysv4 | sysv4.3*) 11749 version_type=linux # correct to gnu/linux during the next big refactor 11750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11751 soname_spec='$libname$release$shared_ext$major' 11752 shlibpath_var=LD_LIBRARY_PATH 11753 case $host_vendor in 11754 sni) 11755 shlibpath_overrides_runpath=no 11756 need_lib_prefix=no 11757 runpath_var=LD_RUN_PATH 11758 ;; 11759 siemens) 11760 need_lib_prefix=no 11761 ;; 11762 motorola) 11763 need_lib_prefix=no 11764 need_version=no 11765 shlibpath_overrides_runpath=no 11766 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11767 ;; 11768 esac 11769 ;; 11770 11771sysv4*MP*) 11772 if test -d /usr/nec; then 11773 version_type=linux # correct to gnu/linux during the next big refactor 11774 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11775 soname_spec='$libname$shared_ext.$major' 11776 shlibpath_var=LD_LIBRARY_PATH 11777 fi 11778 ;; 11779 11780sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11781 version_type=sco 11782 need_lib_prefix=no 11783 need_version=no 11784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11785 soname_spec='$libname$release$shared_ext$major' 11786 shlibpath_var=LD_LIBRARY_PATH 11787 shlibpath_overrides_runpath=yes 11788 hardcode_into_libs=yes 11789 if test yes = "$with_gnu_ld"; then 11790 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11791 else 11792 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11793 case $host_os in 11794 sco3.2v5*) 11795 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11796 ;; 11797 esac 11798 fi 11799 sys_lib_dlsearch_path_spec='/usr/lib' 11800 ;; 11801 11802tpf*) 11803 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11804 version_type=linux # correct to gnu/linux during the next big refactor 11805 need_lib_prefix=no 11806 need_version=no 11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11808 shlibpath_var=LD_LIBRARY_PATH 11809 shlibpath_overrides_runpath=no 11810 hardcode_into_libs=yes 11811 ;; 11812 11813uts4*) 11814 version_type=linux # correct to gnu/linux during the next big refactor 11815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11816 soname_spec='$libname$release$shared_ext$major' 11817 shlibpath_var=LD_LIBRARY_PATH 11818 ;; 11819 11820*) 11821 dynamic_linker=no 11822 ;; 11823esac 11824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11825printf "%s\n" "$dynamic_linker" >&6; } 11826test no = "$dynamic_linker" && can_build_shared=no 11827 11828variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11829if test yes = "$GCC"; then 11830 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11831fi 11832 11833if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11834 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11835fi 11836 11837if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11838 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11839fi 11840 11841# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11842configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11843 11844# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11845func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11846 11847# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11848configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11947printf %s "checking how to hardcode library paths into programs... " >&6; } 11948hardcode_action= 11949if test -n "$hardcode_libdir_flag_spec" || 11950 test -n "$runpath_var" || 11951 test yes = "$hardcode_automatic"; then 11952 11953 # We can hardcode non-existent directories. 11954 if test no != "$hardcode_direct" && 11955 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11956 # have to relink, otherwise we might link with an installed library 11957 # when we should be linking with a yet-to-be-installed one 11958 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11959 test no != "$hardcode_minus_L"; then 11960 # Linking always hardcodes the temporary library directory. 11961 hardcode_action=relink 11962 else 11963 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11964 hardcode_action=immediate 11965 fi 11966else 11967 # We cannot hardcode anything, or else we can only hardcode existing 11968 # directories. 11969 hardcode_action=unsupported 11970fi 11971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11972printf "%s\n" "$hardcode_action" >&6; } 11973 11974if test relink = "$hardcode_action" || 11975 test yes = "$inherit_rpath"; then 11976 # Fast installation is not supported 11977 enable_fast_install=no 11978elif test yes = "$shlibpath_overrides_runpath" || 11979 test no = "$enable_shared"; then 11980 # Fast installation is not necessary 11981 enable_fast_install=needless 11982fi 11983 11984 11985 11986 11987 11988 11989 if test yes != "$enable_dlopen"; then 11990 enable_dlopen=unknown 11991 enable_dlopen_self=unknown 11992 enable_dlopen_self_static=unknown 11993else 11994 lt_cv_dlopen=no 11995 lt_cv_dlopen_libs= 11996 11997 case $host_os in 11998 beos*) 11999 lt_cv_dlopen=load_add_on 12000 lt_cv_dlopen_libs= 12001 lt_cv_dlopen_self=yes 12002 ;; 12003 12004 mingw* | pw32* | cegcc*) 12005 lt_cv_dlopen=LoadLibrary 12006 lt_cv_dlopen_libs= 12007 ;; 12008 12009 cygwin*) 12010 lt_cv_dlopen=dlopen 12011 lt_cv_dlopen_libs= 12012 ;; 12013 12014 darwin*) 12015 # if libdl is installed we need to link against it 12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12017printf %s "checking for dlopen in -ldl... " >&6; } 12018if test ${ac_cv_lib_dl_dlopen+y} 12019then : 12020 printf %s "(cached) " >&6 12021else $as_nop 12022 ac_check_lib_save_LIBS=$LIBS 12023LIBS="-ldl $LIBS" 12024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12025/* end confdefs.h. */ 12026 12027/* Override any GCC internal prototype to avoid an error. 12028 Use char because int might match the return type of a GCC 12029 builtin and then its argument prototype would still apply. */ 12030char dlopen (); 12031int 12032main (void) 12033{ 12034return dlopen (); 12035 ; 12036 return 0; 12037} 12038_ACEOF 12039if ac_fn_c_try_link "$LINENO" 12040then : 12041 ac_cv_lib_dl_dlopen=yes 12042else $as_nop 12043 ac_cv_lib_dl_dlopen=no 12044fi 12045rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12046 conftest$ac_exeext conftest.$ac_ext 12047LIBS=$ac_check_lib_save_LIBS 12048fi 12049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12050printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12051if test "x$ac_cv_lib_dl_dlopen" = xyes 12052then : 12053 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12054else $as_nop 12055 12056 lt_cv_dlopen=dyld 12057 lt_cv_dlopen_libs= 12058 lt_cv_dlopen_self=yes 12059 12060fi 12061 12062 ;; 12063 12064 tpf*) 12065 # Don't try to run any link tests for TPF. We know it's impossible 12066 # because TPF is a cross-compiler, and we know how we open DSOs. 12067 lt_cv_dlopen=dlopen 12068 lt_cv_dlopen_libs= 12069 lt_cv_dlopen_self=no 12070 ;; 12071 12072 *) 12073 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12074if test "x$ac_cv_func_shl_load" = xyes 12075then : 12076 lt_cv_dlopen=shl_load 12077else $as_nop 12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12079printf %s "checking for shl_load in -ldld... " >&6; } 12080if test ${ac_cv_lib_dld_shl_load+y} 12081then : 12082 printf %s "(cached) " >&6 12083else $as_nop 12084 ac_check_lib_save_LIBS=$LIBS 12085LIBS="-ldld $LIBS" 12086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12087/* end confdefs.h. */ 12088 12089/* Override any GCC internal prototype to avoid an error. 12090 Use char because int might match the return type of a GCC 12091 builtin and then its argument prototype would still apply. */ 12092char shl_load (); 12093int 12094main (void) 12095{ 12096return shl_load (); 12097 ; 12098 return 0; 12099} 12100_ACEOF 12101if ac_fn_c_try_link "$LINENO" 12102then : 12103 ac_cv_lib_dld_shl_load=yes 12104else $as_nop 12105 ac_cv_lib_dld_shl_load=no 12106fi 12107rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12108 conftest$ac_exeext conftest.$ac_ext 12109LIBS=$ac_check_lib_save_LIBS 12110fi 12111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12112printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12113if test "x$ac_cv_lib_dld_shl_load" = xyes 12114then : 12115 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12116else $as_nop 12117 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12118if test "x$ac_cv_func_dlopen" = xyes 12119then : 12120 lt_cv_dlopen=dlopen 12121else $as_nop 12122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12123printf %s "checking for dlopen in -ldl... " >&6; } 12124if test ${ac_cv_lib_dl_dlopen+y} 12125then : 12126 printf %s "(cached) " >&6 12127else $as_nop 12128 ac_check_lib_save_LIBS=$LIBS 12129LIBS="-ldl $LIBS" 12130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12131/* end confdefs.h. */ 12132 12133/* Override any GCC internal prototype to avoid an error. 12134 Use char because int might match the return type of a GCC 12135 builtin and then its argument prototype would still apply. */ 12136char dlopen (); 12137int 12138main (void) 12139{ 12140return dlopen (); 12141 ; 12142 return 0; 12143} 12144_ACEOF 12145if ac_fn_c_try_link "$LINENO" 12146then : 12147 ac_cv_lib_dl_dlopen=yes 12148else $as_nop 12149 ac_cv_lib_dl_dlopen=no 12150fi 12151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12152 conftest$ac_exeext conftest.$ac_ext 12153LIBS=$ac_check_lib_save_LIBS 12154fi 12155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12156printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12157if test "x$ac_cv_lib_dl_dlopen" = xyes 12158then : 12159 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12160else $as_nop 12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12162printf %s "checking for dlopen in -lsvld... " >&6; } 12163if test ${ac_cv_lib_svld_dlopen+y} 12164then : 12165 printf %s "(cached) " >&6 12166else $as_nop 12167 ac_check_lib_save_LIBS=$LIBS 12168LIBS="-lsvld $LIBS" 12169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12170/* end confdefs.h. */ 12171 12172/* Override any GCC internal prototype to avoid an error. 12173 Use char because int might match the return type of a GCC 12174 builtin and then its argument prototype would still apply. */ 12175char dlopen (); 12176int 12177main (void) 12178{ 12179return dlopen (); 12180 ; 12181 return 0; 12182} 12183_ACEOF 12184if ac_fn_c_try_link "$LINENO" 12185then : 12186 ac_cv_lib_svld_dlopen=yes 12187else $as_nop 12188 ac_cv_lib_svld_dlopen=no 12189fi 12190rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12191 conftest$ac_exeext conftest.$ac_ext 12192LIBS=$ac_check_lib_save_LIBS 12193fi 12194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12195printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12196if test "x$ac_cv_lib_svld_dlopen" = xyes 12197then : 12198 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12199else $as_nop 12200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12201printf %s "checking for dld_link in -ldld... " >&6; } 12202if test ${ac_cv_lib_dld_dld_link+y} 12203then : 12204 printf %s "(cached) " >&6 12205else $as_nop 12206 ac_check_lib_save_LIBS=$LIBS 12207LIBS="-ldld $LIBS" 12208cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12209/* end confdefs.h. */ 12210 12211/* Override any GCC internal prototype to avoid an error. 12212 Use char because int might match the return type of a GCC 12213 builtin and then its argument prototype would still apply. */ 12214char dld_link (); 12215int 12216main (void) 12217{ 12218return dld_link (); 12219 ; 12220 return 0; 12221} 12222_ACEOF 12223if ac_fn_c_try_link "$LINENO" 12224then : 12225 ac_cv_lib_dld_dld_link=yes 12226else $as_nop 12227 ac_cv_lib_dld_dld_link=no 12228fi 12229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12230 conftest$ac_exeext conftest.$ac_ext 12231LIBS=$ac_check_lib_save_LIBS 12232fi 12233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12234printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12235if test "x$ac_cv_lib_dld_dld_link" = xyes 12236then : 12237 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12238fi 12239 12240 12241fi 12242 12243 12244fi 12245 12246 12247fi 12248 12249 12250fi 12251 12252 12253fi 12254 12255 ;; 12256 esac 12257 12258 if test no = "$lt_cv_dlopen"; then 12259 enable_dlopen=no 12260 else 12261 enable_dlopen=yes 12262 fi 12263 12264 case $lt_cv_dlopen in 12265 dlopen) 12266 save_CPPFLAGS=$CPPFLAGS 12267 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12268 12269 save_LDFLAGS=$LDFLAGS 12270 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12271 12272 save_LIBS=$LIBS 12273 LIBS="$lt_cv_dlopen_libs $LIBS" 12274 12275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12276printf %s "checking whether a program can dlopen itself... " >&6; } 12277if test ${lt_cv_dlopen_self+y} 12278then : 12279 printf %s "(cached) " >&6 12280else $as_nop 12281 if test yes = "$cross_compiling"; then : 12282 lt_cv_dlopen_self=cross 12283else 12284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12285 lt_status=$lt_dlunknown 12286 cat > conftest.$ac_ext <<_LT_EOF 12287#line $LINENO "configure" 12288#include "confdefs.h" 12289 12290#if HAVE_DLFCN_H 12291#include <dlfcn.h> 12292#endif 12293 12294#include <stdio.h> 12295 12296#ifdef RTLD_GLOBAL 12297# define LT_DLGLOBAL RTLD_GLOBAL 12298#else 12299# ifdef DL_GLOBAL 12300# define LT_DLGLOBAL DL_GLOBAL 12301# else 12302# define LT_DLGLOBAL 0 12303# endif 12304#endif 12305 12306/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12307 find out it does not work in some platform. */ 12308#ifndef LT_DLLAZY_OR_NOW 12309# ifdef RTLD_LAZY 12310# define LT_DLLAZY_OR_NOW RTLD_LAZY 12311# else 12312# ifdef DL_LAZY 12313# define LT_DLLAZY_OR_NOW DL_LAZY 12314# else 12315# ifdef RTLD_NOW 12316# define LT_DLLAZY_OR_NOW RTLD_NOW 12317# else 12318# ifdef DL_NOW 12319# define LT_DLLAZY_OR_NOW DL_NOW 12320# else 12321# define LT_DLLAZY_OR_NOW 0 12322# endif 12323# endif 12324# endif 12325# endif 12326#endif 12327 12328/* When -fvisibility=hidden is used, assume the code has been annotated 12329 correspondingly for the symbols needed. */ 12330#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12331int fnord () __attribute__((visibility("default"))); 12332#endif 12333 12334int fnord () { return 42; } 12335int main () 12336{ 12337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12338 int status = $lt_dlunknown; 12339 12340 if (self) 12341 { 12342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12343 else 12344 { 12345 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12346 else puts (dlerror ()); 12347 } 12348 /* dlclose (self); */ 12349 } 12350 else 12351 puts (dlerror ()); 12352 12353 return status; 12354} 12355_LT_EOF 12356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12357 (eval $ac_link) 2>&5 12358 ac_status=$? 12359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12360 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12361 (./conftest; exit; ) >&5 2>/dev/null 12362 lt_status=$? 12363 case x$lt_status in 12364 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12365 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12366 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12367 esac 12368 else : 12369 # compilation failed 12370 lt_cv_dlopen_self=no 12371 fi 12372fi 12373rm -fr conftest* 12374 12375 12376fi 12377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12378printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12379 12380 if test yes = "$lt_cv_dlopen_self"; then 12381 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12383printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12384if test ${lt_cv_dlopen_self_static+y} 12385then : 12386 printf %s "(cached) " >&6 12387else $as_nop 12388 if test yes = "$cross_compiling"; then : 12389 lt_cv_dlopen_self_static=cross 12390else 12391 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12392 lt_status=$lt_dlunknown 12393 cat > conftest.$ac_ext <<_LT_EOF 12394#line $LINENO "configure" 12395#include "confdefs.h" 12396 12397#if HAVE_DLFCN_H 12398#include <dlfcn.h> 12399#endif 12400 12401#include <stdio.h> 12402 12403#ifdef RTLD_GLOBAL 12404# define LT_DLGLOBAL RTLD_GLOBAL 12405#else 12406# ifdef DL_GLOBAL 12407# define LT_DLGLOBAL DL_GLOBAL 12408# else 12409# define LT_DLGLOBAL 0 12410# endif 12411#endif 12412 12413/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12414 find out it does not work in some platform. */ 12415#ifndef LT_DLLAZY_OR_NOW 12416# ifdef RTLD_LAZY 12417# define LT_DLLAZY_OR_NOW RTLD_LAZY 12418# else 12419# ifdef DL_LAZY 12420# define LT_DLLAZY_OR_NOW DL_LAZY 12421# else 12422# ifdef RTLD_NOW 12423# define LT_DLLAZY_OR_NOW RTLD_NOW 12424# else 12425# ifdef DL_NOW 12426# define LT_DLLAZY_OR_NOW DL_NOW 12427# else 12428# define LT_DLLAZY_OR_NOW 0 12429# endif 12430# endif 12431# endif 12432# endif 12433#endif 12434 12435/* When -fvisibility=hidden is used, assume the code has been annotated 12436 correspondingly for the symbols needed. */ 12437#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12438int fnord () __attribute__((visibility("default"))); 12439#endif 12440 12441int fnord () { return 42; } 12442int main () 12443{ 12444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12445 int status = $lt_dlunknown; 12446 12447 if (self) 12448 { 12449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12450 else 12451 { 12452 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12453 else puts (dlerror ()); 12454 } 12455 /* dlclose (self); */ 12456 } 12457 else 12458 puts (dlerror ()); 12459 12460 return status; 12461} 12462_LT_EOF 12463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12464 (eval $ac_link) 2>&5 12465 ac_status=$? 12466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12467 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12468 (./conftest; exit; ) >&5 2>/dev/null 12469 lt_status=$? 12470 case x$lt_status in 12471 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12472 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12473 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12474 esac 12475 else : 12476 # compilation failed 12477 lt_cv_dlopen_self_static=no 12478 fi 12479fi 12480rm -fr conftest* 12481 12482 12483fi 12484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12485printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12486 fi 12487 12488 CPPFLAGS=$save_CPPFLAGS 12489 LDFLAGS=$save_LDFLAGS 12490 LIBS=$save_LIBS 12491 ;; 12492 esac 12493 12494 case $lt_cv_dlopen_self in 12495 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12496 *) enable_dlopen_self=unknown ;; 12497 esac 12498 12499 case $lt_cv_dlopen_self_static in 12500 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12501 *) enable_dlopen_self_static=unknown ;; 12502 esac 12503fi 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521striplib= 12522old_striplib= 12523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12524printf %s "checking whether stripping libraries is possible... " >&6; } 12525if test -z "$STRIP"; then 12526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12527printf "%s\n" "no" >&6; } 12528else 12529 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12530 old_striplib="$STRIP --strip-debug" 12531 striplib="$STRIP --strip-unneeded" 12532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12533printf "%s\n" "yes" >&6; } 12534 else 12535 case $host_os in 12536 darwin*) 12537 # FIXME - insert some real tests, host_os isn't really good enough 12538 striplib="$STRIP -x" 12539 old_striplib="$STRIP -S" 12540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12541printf "%s\n" "yes" >&6; } 12542 ;; 12543 freebsd*) 12544 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12545 old_striplib="$STRIP --strip-debug" 12546 striplib="$STRIP --strip-unneeded" 12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12548printf "%s\n" "yes" >&6; } 12549 else 12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12551printf "%s\n" "no" >&6; } 12552 fi 12553 ;; 12554 *) 12555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12556printf "%s\n" "no" >&6; } 12557 ;; 12558 esac 12559 fi 12560fi 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 # Report what library types will actually be built 12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12575printf %s "checking if libtool supports shared libraries... " >&6; } 12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12577printf "%s\n" "$can_build_shared" >&6; } 12578 12579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12580printf %s "checking whether to build shared libraries... " >&6; } 12581 test no = "$can_build_shared" && enable_shared=no 12582 12583 # On AIX, shared libraries and static libraries use the same namespace, and 12584 # are all built from PIC. 12585 case $host_os in 12586 aix3*) 12587 test yes = "$enable_shared" && enable_static=no 12588 if test -n "$RANLIB"; then 12589 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12590 postinstall_cmds='$RANLIB $lib' 12591 fi 12592 ;; 12593 12594 aix[4-9]*) 12595 if test ia64 != "$host_cpu"; then 12596 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12597 yes,aix,yes) ;; # shared object as lib.so file only 12598 yes,svr4,*) ;; # shared object as lib.so archive member only 12599 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12600 esac 12601 fi 12602 ;; 12603 esac 12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12605printf "%s\n" "$enable_shared" >&6; } 12606 12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12608printf %s "checking whether to build static libraries... " >&6; } 12609 # Make sure either enable_shared or enable_static is yes. 12610 test yes = "$enable_shared" || enable_static=yes 12611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12612printf "%s\n" "$enable_static" >&6; } 12613 12614 12615 12616 12617fi 12618ac_ext=c 12619ac_cpp='$CPP $CPPFLAGS' 12620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12622ac_compiler_gnu=$ac_cv_c_compiler_gnu 12623 12624CC=$lt_save_CC 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 ac_config_commands="$ac_config_commands libtool" 12641 12642 12643 12644 12645# Only expand once: 12646 12647 12648 12649# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12663printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12664if test ${ac_cv_c_undeclared_builtin_options+y} 12665then : 12666 printf %s "(cached) " >&6 12667else $as_nop 12668 ac_save_CFLAGS=$CFLAGS 12669 ac_cv_c_undeclared_builtin_options='cannot detect' 12670 for ac_arg in '' -fno-builtin; do 12671 CFLAGS="$ac_save_CFLAGS $ac_arg" 12672 # This test program should *not* compile successfully. 12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12674/* end confdefs.h. */ 12675 12676int 12677main (void) 12678{ 12679(void) strchr; 12680 ; 12681 return 0; 12682} 12683_ACEOF 12684if ac_fn_c_try_compile "$LINENO" 12685then : 12686 12687else $as_nop 12688 # This test program should compile successfully. 12689 # No library function is consistently available on 12690 # freestanding implementations, so test against a dummy 12691 # declaration. Include always-available headers on the 12692 # off chance that they somehow elicit warnings. 12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12694/* end confdefs.h. */ 12695#include <float.h> 12696#include <limits.h> 12697#include <stdarg.h> 12698#include <stddef.h> 12699extern void ac_decl (int, char *); 12700 12701int 12702main (void) 12703{ 12704(void) ac_decl (0, (char *) 0); 12705 (void) ac_decl; 12706 12707 ; 12708 return 0; 12709} 12710_ACEOF 12711if ac_fn_c_try_compile "$LINENO" 12712then : 12713 if test x"$ac_arg" = x 12714then : 12715 ac_cv_c_undeclared_builtin_options='none needed' 12716else $as_nop 12717 ac_cv_c_undeclared_builtin_options=$ac_arg 12718fi 12719 break 12720fi 12721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12722fi 12723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12724 done 12725 CFLAGS=$ac_save_CFLAGS 12726 12727fi 12728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12729printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12730 case $ac_cv_c_undeclared_builtin_options in #( 12731 'cannot detect') : 12732 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12733printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12734as_fn_error $? "cannot make $CC report undeclared builtins 12735See \`config.log' for more details" "$LINENO" 5; } ;; #( 12736 'none needed') : 12737 ac_c_undeclared_builtin_options='' ;; #( 12738 *) : 12739 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12740esac 12741 12742 12743 12744 12745 12746ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12747if test "x$ac_cv_have_decl___clang__" = xyes 12748then : 12749 CLANGCC="yes" 12750else $as_nop 12751 CLANGCC="no" 12752fi 12753ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12754if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12755then : 12756 INTELCC="yes" 12757else $as_nop 12758 INTELCC="no" 12759fi 12760ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12761if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12762then : 12763 SUNCC="yes" 12764else $as_nop 12765 SUNCC="no" 12766fi 12767 12768 12769 12770 12771 12772 12773 12774 12775if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12776 if test -n "$ac_tool_prefix"; then 12777 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12778set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12780printf %s "checking for $ac_word... " >&6; } 12781if test ${ac_cv_path_PKG_CONFIG+y} 12782then : 12783 printf %s "(cached) " >&6 12784else $as_nop 12785 case $PKG_CONFIG in 12786 [\\/]* | ?:[\\/]*) 12787 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12788 ;; 12789 *) 12790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12791for as_dir in $PATH 12792do 12793 IFS=$as_save_IFS 12794 case $as_dir in #((( 12795 '') as_dir=./ ;; 12796 */) ;; 12797 *) as_dir=$as_dir/ ;; 12798 esac 12799 for ac_exec_ext in '' $ac_executable_extensions; do 12800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12801 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12803 break 2 12804 fi 12805done 12806 done 12807IFS=$as_save_IFS 12808 12809 ;; 12810esac 12811fi 12812PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12813if test -n "$PKG_CONFIG"; then 12814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12815printf "%s\n" "$PKG_CONFIG" >&6; } 12816else 12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12818printf "%s\n" "no" >&6; } 12819fi 12820 12821 12822fi 12823if test -z "$ac_cv_path_PKG_CONFIG"; then 12824 ac_pt_PKG_CONFIG=$PKG_CONFIG 12825 # Extract the first word of "pkg-config", so it can be a program name with args. 12826set dummy pkg-config; ac_word=$2 12827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12828printf %s "checking for $ac_word... " >&6; } 12829if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12830then : 12831 printf %s "(cached) " >&6 12832else $as_nop 12833 case $ac_pt_PKG_CONFIG in 12834 [\\/]* | ?:[\\/]*) 12835 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12836 ;; 12837 *) 12838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12839for as_dir in $PATH 12840do 12841 IFS=$as_save_IFS 12842 case $as_dir in #((( 12843 '') as_dir=./ ;; 12844 */) ;; 12845 *) as_dir=$as_dir/ ;; 12846 esac 12847 for ac_exec_ext in '' $ac_executable_extensions; do 12848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12849 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12851 break 2 12852 fi 12853done 12854 done 12855IFS=$as_save_IFS 12856 12857 ;; 12858esac 12859fi 12860ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12861if test -n "$ac_pt_PKG_CONFIG"; then 12862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12863printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12864else 12865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12866printf "%s\n" "no" >&6; } 12867fi 12868 12869 if test "x$ac_pt_PKG_CONFIG" = x; then 12870 PKG_CONFIG="" 12871 else 12872 case $cross_compiling:$ac_tool_warned in 12873yes:) 12874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12875printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12876ac_tool_warned=yes ;; 12877esac 12878 PKG_CONFIG=$ac_pt_PKG_CONFIG 12879 fi 12880else 12881 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12882fi 12883 12884fi 12885if test -n "$PKG_CONFIG"; then 12886 _pkg_min_version=0.9.0 12887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12888printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12889 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12891printf "%s\n" "yes" >&6; } 12892 else 12893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12894printf "%s\n" "no" >&6; } 12895 PKG_CONFIG="" 12896 fi 12897fi 12898 12899 12900 12901 12902 12903# Check whether --enable-selective-werror was given. 12904if test ${enable_selective_werror+y} 12905then : 12906 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12907else $as_nop 12908 SELECTIVE_WERROR=yes 12909fi 12910 12911 12912 12913 12914 12915# -v is too short to test reliably with XORG_TESTSET_CFLAG 12916if test "x$SUNCC" = "xyes"; then 12917 BASE_CFLAGS="-v" 12918else 12919 BASE_CFLAGS="" 12920fi 12921 12922# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936xorg_testset_save_CFLAGS="$CFLAGS" 12937 12938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12942if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12943then : 12944 printf %s "(cached) " >&6 12945else $as_nop 12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12947/* end confdefs.h. */ 12948int i; 12949_ACEOF 12950if ac_fn_c_try_compile "$LINENO" 12951then : 12952 xorg_cv_cc_flag_unknown_warning_option=yes 12953else $as_nop 12954 xorg_cv_cc_flag_unknown_warning_option=no 12955fi 12956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12957fi 12958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12959printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12961 CFLAGS="$xorg_testset_save_CFLAGS" 12962fi 12963 12964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12967 fi 12968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12970printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12971if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12972then : 12973 printf %s "(cached) " >&6 12974else $as_nop 12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12976/* end confdefs.h. */ 12977int i; 12978_ACEOF 12979if ac_fn_c_try_compile "$LINENO" 12980then : 12981 xorg_cv_cc_flag_unused_command_line_argument=yes 12982else $as_nop 12983 xorg_cv_cc_flag_unused_command_line_argument=no 12984fi 12985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12986fi 12987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12988printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12990 CFLAGS="$xorg_testset_save_CFLAGS" 12991fi 12992 12993found="no" 12994 12995 if test $found = "no" ; then 12996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12998 fi 12999 13000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13002 fi 13003 13004 CFLAGS="$CFLAGS -Wall" 13005 13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13007printf %s "checking if $CC supports -Wall... " >&6; } 13008 cacheid=xorg_cv_cc_flag__Wall 13009 if eval test \${$cacheid+y} 13010then : 13011 printf %s "(cached) " >&6 13012else $as_nop 13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13014/* end confdefs.h. */ 13015int i; 13016int 13017main (void) 13018{ 13019 13020 ; 13021 return 0; 13022} 13023_ACEOF 13024if ac_fn_c_try_link "$LINENO" 13025then : 13026 eval $cacheid=yes 13027else $as_nop 13028 eval $cacheid=no 13029fi 13030rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13031 conftest$ac_exeext conftest.$ac_ext 13032fi 13033 13034 13035 CFLAGS="$xorg_testset_save_CFLAGS" 13036 13037 eval supported=\$$cacheid 13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13039printf "%s\n" "$supported" >&6; } 13040 if test "$supported" = "yes" ; then 13041 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13042 found="yes" 13043 fi 13044 fi 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060xorg_testset_save_CFLAGS="$CFLAGS" 13061 13062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13065printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13066if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13067then : 13068 printf %s "(cached) " >&6 13069else $as_nop 13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13071/* end confdefs.h. */ 13072int i; 13073_ACEOF 13074if ac_fn_c_try_compile "$LINENO" 13075then : 13076 xorg_cv_cc_flag_unknown_warning_option=yes 13077else $as_nop 13078 xorg_cv_cc_flag_unknown_warning_option=no 13079fi 13080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13081fi 13082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13083printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13085 CFLAGS="$xorg_testset_save_CFLAGS" 13086fi 13087 13088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13091 fi 13092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13094printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13095if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13096then : 13097 printf %s "(cached) " >&6 13098else $as_nop 13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13100/* end confdefs.h. */ 13101int i; 13102_ACEOF 13103if ac_fn_c_try_compile "$LINENO" 13104then : 13105 xorg_cv_cc_flag_unused_command_line_argument=yes 13106else $as_nop 13107 xorg_cv_cc_flag_unused_command_line_argument=no 13108fi 13109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13110fi 13111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13112printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13114 CFLAGS="$xorg_testset_save_CFLAGS" 13115fi 13116 13117found="no" 13118 13119 if test $found = "no" ; then 13120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13122 fi 13123 13124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13126 fi 13127 13128 CFLAGS="$CFLAGS -Wpointer-arith" 13129 13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13131printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13132 cacheid=xorg_cv_cc_flag__Wpointer_arith 13133 if eval test \${$cacheid+y} 13134then : 13135 printf %s "(cached) " >&6 13136else $as_nop 13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13138/* end confdefs.h. */ 13139int i; 13140int 13141main (void) 13142{ 13143 13144 ; 13145 return 0; 13146} 13147_ACEOF 13148if ac_fn_c_try_link "$LINENO" 13149then : 13150 eval $cacheid=yes 13151else $as_nop 13152 eval $cacheid=no 13153fi 13154rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13155 conftest$ac_exeext conftest.$ac_ext 13156fi 13157 13158 13159 CFLAGS="$xorg_testset_save_CFLAGS" 13160 13161 eval supported=\$$cacheid 13162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13163printf "%s\n" "$supported" >&6; } 13164 if test "$supported" = "yes" ; then 13165 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13166 found="yes" 13167 fi 13168 fi 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184xorg_testset_save_CFLAGS="$CFLAGS" 13185 13186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13189printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13190if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13191then : 13192 printf %s "(cached) " >&6 13193else $as_nop 13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13195/* end confdefs.h. */ 13196int i; 13197_ACEOF 13198if ac_fn_c_try_compile "$LINENO" 13199then : 13200 xorg_cv_cc_flag_unknown_warning_option=yes 13201else $as_nop 13202 xorg_cv_cc_flag_unknown_warning_option=no 13203fi 13204rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13205fi 13206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13207printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13209 CFLAGS="$xorg_testset_save_CFLAGS" 13210fi 13211 13212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13215 fi 13216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13218printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13219if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13220then : 13221 printf %s "(cached) " >&6 13222else $as_nop 13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13224/* end confdefs.h. */ 13225int i; 13226_ACEOF 13227if ac_fn_c_try_compile "$LINENO" 13228then : 13229 xorg_cv_cc_flag_unused_command_line_argument=yes 13230else $as_nop 13231 xorg_cv_cc_flag_unused_command_line_argument=no 13232fi 13233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13234fi 13235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13236printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13238 CFLAGS="$xorg_testset_save_CFLAGS" 13239fi 13240 13241found="no" 13242 13243 if test $found = "no" ; then 13244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13246 fi 13247 13248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13250 fi 13251 13252 CFLAGS="$CFLAGS -Wmissing-declarations" 13253 13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13255printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13256 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13257 if eval test \${$cacheid+y} 13258then : 13259 printf %s "(cached) " >&6 13260else $as_nop 13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13262/* end confdefs.h. */ 13263int i; 13264int 13265main (void) 13266{ 13267 13268 ; 13269 return 0; 13270} 13271_ACEOF 13272if ac_fn_c_try_link "$LINENO" 13273then : 13274 eval $cacheid=yes 13275else $as_nop 13276 eval $cacheid=no 13277fi 13278rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13279 conftest$ac_exeext conftest.$ac_ext 13280fi 13281 13282 13283 CFLAGS="$xorg_testset_save_CFLAGS" 13284 13285 eval supported=\$$cacheid 13286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13287printf "%s\n" "$supported" >&6; } 13288 if test "$supported" = "yes" ; then 13289 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13290 found="yes" 13291 fi 13292 fi 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308xorg_testset_save_CFLAGS="$CFLAGS" 13309 13310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13313printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13314if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13315then : 13316 printf %s "(cached) " >&6 13317else $as_nop 13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13319/* end confdefs.h. */ 13320int i; 13321_ACEOF 13322if ac_fn_c_try_compile "$LINENO" 13323then : 13324 xorg_cv_cc_flag_unknown_warning_option=yes 13325else $as_nop 13326 xorg_cv_cc_flag_unknown_warning_option=no 13327fi 13328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13329fi 13330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13333 CFLAGS="$xorg_testset_save_CFLAGS" 13334fi 13335 13336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13339 fi 13340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13343if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13344then : 13345 printf %s "(cached) " >&6 13346else $as_nop 13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13348/* end confdefs.h. */ 13349int i; 13350_ACEOF 13351if ac_fn_c_try_compile "$LINENO" 13352then : 13353 xorg_cv_cc_flag_unused_command_line_argument=yes 13354else $as_nop 13355 xorg_cv_cc_flag_unused_command_line_argument=no 13356fi 13357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13358fi 13359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13360printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13362 CFLAGS="$xorg_testset_save_CFLAGS" 13363fi 13364 13365found="no" 13366 13367 if test $found = "no" ; then 13368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13370 fi 13371 13372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13374 fi 13375 13376 CFLAGS="$CFLAGS -Wformat=2" 13377 13378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13379printf %s "checking if $CC supports -Wformat=2... " >&6; } 13380 cacheid=xorg_cv_cc_flag__Wformat_2 13381 if eval test \${$cacheid+y} 13382then : 13383 printf %s "(cached) " >&6 13384else $as_nop 13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13386/* end confdefs.h. */ 13387int i; 13388int 13389main (void) 13390{ 13391 13392 ; 13393 return 0; 13394} 13395_ACEOF 13396if ac_fn_c_try_link "$LINENO" 13397then : 13398 eval $cacheid=yes 13399else $as_nop 13400 eval $cacheid=no 13401fi 13402rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13403 conftest$ac_exeext conftest.$ac_ext 13404fi 13405 13406 13407 CFLAGS="$xorg_testset_save_CFLAGS" 13408 13409 eval supported=\$$cacheid 13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13411printf "%s\n" "$supported" >&6; } 13412 if test "$supported" = "yes" ; then 13413 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13414 found="yes" 13415 fi 13416 fi 13417 13418 if test $found = "no" ; then 13419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13421 fi 13422 13423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13425 fi 13426 13427 CFLAGS="$CFLAGS -Wformat" 13428 13429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13430printf %s "checking if $CC supports -Wformat... " >&6; } 13431 cacheid=xorg_cv_cc_flag__Wformat 13432 if eval test \${$cacheid+y} 13433then : 13434 printf %s "(cached) " >&6 13435else $as_nop 13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13437/* end confdefs.h. */ 13438int i; 13439int 13440main (void) 13441{ 13442 13443 ; 13444 return 0; 13445} 13446_ACEOF 13447if ac_fn_c_try_link "$LINENO" 13448then : 13449 eval $cacheid=yes 13450else $as_nop 13451 eval $cacheid=no 13452fi 13453rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13454 conftest$ac_exeext conftest.$ac_ext 13455fi 13456 13457 13458 CFLAGS="$xorg_testset_save_CFLAGS" 13459 13460 eval supported=\$$cacheid 13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13462printf "%s\n" "$supported" >&6; } 13463 if test "$supported" = "yes" ; then 13464 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13465 found="yes" 13466 fi 13467 fi 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485xorg_testset_save_CFLAGS="$CFLAGS" 13486 13487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13490printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13491if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13492then : 13493 printf %s "(cached) " >&6 13494else $as_nop 13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13496/* end confdefs.h. */ 13497int i; 13498_ACEOF 13499if ac_fn_c_try_compile "$LINENO" 13500then : 13501 xorg_cv_cc_flag_unknown_warning_option=yes 13502else $as_nop 13503 xorg_cv_cc_flag_unknown_warning_option=no 13504fi 13505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13506fi 13507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13508printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13510 CFLAGS="$xorg_testset_save_CFLAGS" 13511fi 13512 13513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13516 fi 13517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13519printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13520if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13521then : 13522 printf %s "(cached) " >&6 13523else $as_nop 13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13525/* end confdefs.h. */ 13526int i; 13527_ACEOF 13528if ac_fn_c_try_compile "$LINENO" 13529then : 13530 xorg_cv_cc_flag_unused_command_line_argument=yes 13531else $as_nop 13532 xorg_cv_cc_flag_unused_command_line_argument=no 13533fi 13534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13535fi 13536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13537printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13539 CFLAGS="$xorg_testset_save_CFLAGS" 13540fi 13541 13542found="no" 13543 13544 if test $found = "no" ; then 13545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13547 fi 13548 13549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13551 fi 13552 13553 CFLAGS="$CFLAGS -Wstrict-prototypes" 13554 13555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13556printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13557 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13558 if eval test \${$cacheid+y} 13559then : 13560 printf %s "(cached) " >&6 13561else $as_nop 13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13563/* end confdefs.h. */ 13564int i; 13565int 13566main (void) 13567{ 13568 13569 ; 13570 return 0; 13571} 13572_ACEOF 13573if ac_fn_c_try_link "$LINENO" 13574then : 13575 eval $cacheid=yes 13576else $as_nop 13577 eval $cacheid=no 13578fi 13579rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13580 conftest$ac_exeext conftest.$ac_ext 13581fi 13582 13583 13584 CFLAGS="$xorg_testset_save_CFLAGS" 13585 13586 eval supported=\$$cacheid 13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13588printf "%s\n" "$supported" >&6; } 13589 if test "$supported" = "yes" ; then 13590 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13591 found="yes" 13592 fi 13593 fi 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609xorg_testset_save_CFLAGS="$CFLAGS" 13610 13611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13614printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13615if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13616then : 13617 printf %s "(cached) " >&6 13618else $as_nop 13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13620/* end confdefs.h. */ 13621int i; 13622_ACEOF 13623if ac_fn_c_try_compile "$LINENO" 13624then : 13625 xorg_cv_cc_flag_unknown_warning_option=yes 13626else $as_nop 13627 xorg_cv_cc_flag_unknown_warning_option=no 13628fi 13629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13630fi 13631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13632printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13634 CFLAGS="$xorg_testset_save_CFLAGS" 13635fi 13636 13637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13640 fi 13641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13643printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13644if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13645then : 13646 printf %s "(cached) " >&6 13647else $as_nop 13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13649/* end confdefs.h. */ 13650int i; 13651_ACEOF 13652if ac_fn_c_try_compile "$LINENO" 13653then : 13654 xorg_cv_cc_flag_unused_command_line_argument=yes 13655else $as_nop 13656 xorg_cv_cc_flag_unused_command_line_argument=no 13657fi 13658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13659fi 13660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13661printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13663 CFLAGS="$xorg_testset_save_CFLAGS" 13664fi 13665 13666found="no" 13667 13668 if test $found = "no" ; then 13669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13671 fi 13672 13673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13675 fi 13676 13677 CFLAGS="$CFLAGS -Wmissing-prototypes" 13678 13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13680printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13681 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13682 if eval test \${$cacheid+y} 13683then : 13684 printf %s "(cached) " >&6 13685else $as_nop 13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13687/* end confdefs.h. */ 13688int i; 13689int 13690main (void) 13691{ 13692 13693 ; 13694 return 0; 13695} 13696_ACEOF 13697if ac_fn_c_try_link "$LINENO" 13698then : 13699 eval $cacheid=yes 13700else $as_nop 13701 eval $cacheid=no 13702fi 13703rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13704 conftest$ac_exeext conftest.$ac_ext 13705fi 13706 13707 13708 CFLAGS="$xorg_testset_save_CFLAGS" 13709 13710 eval supported=\$$cacheid 13711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13712printf "%s\n" "$supported" >&6; } 13713 if test "$supported" = "yes" ; then 13714 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13715 found="yes" 13716 fi 13717 fi 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733xorg_testset_save_CFLAGS="$CFLAGS" 13734 13735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13738printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13739if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13740then : 13741 printf %s "(cached) " >&6 13742else $as_nop 13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13744/* end confdefs.h. */ 13745int i; 13746_ACEOF 13747if ac_fn_c_try_compile "$LINENO" 13748then : 13749 xorg_cv_cc_flag_unknown_warning_option=yes 13750else $as_nop 13751 xorg_cv_cc_flag_unknown_warning_option=no 13752fi 13753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13754fi 13755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13756printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13758 CFLAGS="$xorg_testset_save_CFLAGS" 13759fi 13760 13761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13764 fi 13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13767printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13768if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13769then : 13770 printf %s "(cached) " >&6 13771else $as_nop 13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13773/* end confdefs.h. */ 13774int i; 13775_ACEOF 13776if ac_fn_c_try_compile "$LINENO" 13777then : 13778 xorg_cv_cc_flag_unused_command_line_argument=yes 13779else $as_nop 13780 xorg_cv_cc_flag_unused_command_line_argument=no 13781fi 13782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13783fi 13784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13785printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13787 CFLAGS="$xorg_testset_save_CFLAGS" 13788fi 13789 13790found="no" 13791 13792 if test $found = "no" ; then 13793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13795 fi 13796 13797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13799 fi 13800 13801 CFLAGS="$CFLAGS -Wnested-externs" 13802 13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13804printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13805 cacheid=xorg_cv_cc_flag__Wnested_externs 13806 if eval test \${$cacheid+y} 13807then : 13808 printf %s "(cached) " >&6 13809else $as_nop 13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13811/* end confdefs.h. */ 13812int i; 13813int 13814main (void) 13815{ 13816 13817 ; 13818 return 0; 13819} 13820_ACEOF 13821if ac_fn_c_try_link "$LINENO" 13822then : 13823 eval $cacheid=yes 13824else $as_nop 13825 eval $cacheid=no 13826fi 13827rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13828 conftest$ac_exeext conftest.$ac_ext 13829fi 13830 13831 13832 CFLAGS="$xorg_testset_save_CFLAGS" 13833 13834 eval supported=\$$cacheid 13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13836printf "%s\n" "$supported" >&6; } 13837 if test "$supported" = "yes" ; then 13838 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13839 found="yes" 13840 fi 13841 fi 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857xorg_testset_save_CFLAGS="$CFLAGS" 13858 13859if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13862printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13863if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13864then : 13865 printf %s "(cached) " >&6 13866else $as_nop 13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13868/* end confdefs.h. */ 13869int i; 13870_ACEOF 13871if ac_fn_c_try_compile "$LINENO" 13872then : 13873 xorg_cv_cc_flag_unknown_warning_option=yes 13874else $as_nop 13875 xorg_cv_cc_flag_unknown_warning_option=no 13876fi 13877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13878fi 13879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13880printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13882 CFLAGS="$xorg_testset_save_CFLAGS" 13883fi 13884 13885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13888 fi 13889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13891printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13892if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13893then : 13894 printf %s "(cached) " >&6 13895else $as_nop 13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13897/* end confdefs.h. */ 13898int i; 13899_ACEOF 13900if ac_fn_c_try_compile "$LINENO" 13901then : 13902 xorg_cv_cc_flag_unused_command_line_argument=yes 13903else $as_nop 13904 xorg_cv_cc_flag_unused_command_line_argument=no 13905fi 13906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13907fi 13908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13909printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13910 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13911 CFLAGS="$xorg_testset_save_CFLAGS" 13912fi 13913 13914found="no" 13915 13916 if test $found = "no" ; then 13917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13919 fi 13920 13921 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13923 fi 13924 13925 CFLAGS="$CFLAGS -Wbad-function-cast" 13926 13927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13928printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13929 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13930 if eval test \${$cacheid+y} 13931then : 13932 printf %s "(cached) " >&6 13933else $as_nop 13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13935/* end confdefs.h. */ 13936int i; 13937int 13938main (void) 13939{ 13940 13941 ; 13942 return 0; 13943} 13944_ACEOF 13945if ac_fn_c_try_link "$LINENO" 13946then : 13947 eval $cacheid=yes 13948else $as_nop 13949 eval $cacheid=no 13950fi 13951rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13952 conftest$ac_exeext conftest.$ac_ext 13953fi 13954 13955 13956 CFLAGS="$xorg_testset_save_CFLAGS" 13957 13958 eval supported=\$$cacheid 13959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13960printf "%s\n" "$supported" >&6; } 13961 if test "$supported" = "yes" ; then 13962 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13963 found="yes" 13964 fi 13965 fi 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981xorg_testset_save_CFLAGS="$CFLAGS" 13982 13983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13986printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13987if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13988then : 13989 printf %s "(cached) " >&6 13990else $as_nop 13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13992/* end confdefs.h. */ 13993int i; 13994_ACEOF 13995if ac_fn_c_try_compile "$LINENO" 13996then : 13997 xorg_cv_cc_flag_unknown_warning_option=yes 13998else $as_nop 13999 xorg_cv_cc_flag_unknown_warning_option=no 14000fi 14001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14002fi 14003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14004printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14006 CFLAGS="$xorg_testset_save_CFLAGS" 14007fi 14008 14009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14012 fi 14013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14015printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14016if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14017then : 14018 printf %s "(cached) " >&6 14019else $as_nop 14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14021/* end confdefs.h. */ 14022int i; 14023_ACEOF 14024if ac_fn_c_try_compile "$LINENO" 14025then : 14026 xorg_cv_cc_flag_unused_command_line_argument=yes 14027else $as_nop 14028 xorg_cv_cc_flag_unused_command_line_argument=no 14029fi 14030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14031fi 14032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14033printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14034 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14035 CFLAGS="$xorg_testset_save_CFLAGS" 14036fi 14037 14038found="no" 14039 14040 if test $found = "no" ; then 14041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14043 fi 14044 14045 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14047 fi 14048 14049 CFLAGS="$CFLAGS -Wold-style-definition" 14050 14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14052printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14053 cacheid=xorg_cv_cc_flag__Wold_style_definition 14054 if eval test \${$cacheid+y} 14055then : 14056 printf %s "(cached) " >&6 14057else $as_nop 14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14059/* end confdefs.h. */ 14060int i; 14061int 14062main (void) 14063{ 14064 14065 ; 14066 return 0; 14067} 14068_ACEOF 14069if ac_fn_c_try_link "$LINENO" 14070then : 14071 eval $cacheid=yes 14072else $as_nop 14073 eval $cacheid=no 14074fi 14075rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14076 conftest$ac_exeext conftest.$ac_ext 14077fi 14078 14079 14080 CFLAGS="$xorg_testset_save_CFLAGS" 14081 14082 eval supported=\$$cacheid 14083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14084printf "%s\n" "$supported" >&6; } 14085 if test "$supported" = "yes" ; then 14086 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14087 found="yes" 14088 fi 14089 fi 14090 14091 if test $found = "no" ; then 14092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14094 fi 14095 14096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14098 fi 14099 14100 CFLAGS="$CFLAGS -fd" 14101 14102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14103printf %s "checking if $CC supports -fd... " >&6; } 14104 cacheid=xorg_cv_cc_flag__fd 14105 if eval test \${$cacheid+y} 14106then : 14107 printf %s "(cached) " >&6 14108else $as_nop 14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14110/* end confdefs.h. */ 14111int i; 14112int 14113main (void) 14114{ 14115 14116 ; 14117 return 0; 14118} 14119_ACEOF 14120if ac_fn_c_try_link "$LINENO" 14121then : 14122 eval $cacheid=yes 14123else $as_nop 14124 eval $cacheid=no 14125fi 14126rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14127 conftest$ac_exeext conftest.$ac_ext 14128fi 14129 14130 14131 CFLAGS="$xorg_testset_save_CFLAGS" 14132 14133 eval supported=\$$cacheid 14134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14135printf "%s\n" "$supported" >&6; } 14136 if test "$supported" = "yes" ; then 14137 BASE_CFLAGS="$BASE_CFLAGS -fd" 14138 found="yes" 14139 fi 14140 fi 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156xorg_testset_save_CFLAGS="$CFLAGS" 14157 14158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14161printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14162if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14163then : 14164 printf %s "(cached) " >&6 14165else $as_nop 14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14167/* end confdefs.h. */ 14168int i; 14169_ACEOF 14170if ac_fn_c_try_compile "$LINENO" 14171then : 14172 xorg_cv_cc_flag_unknown_warning_option=yes 14173else $as_nop 14174 xorg_cv_cc_flag_unknown_warning_option=no 14175fi 14176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14177fi 14178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14179printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14181 CFLAGS="$xorg_testset_save_CFLAGS" 14182fi 14183 14184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14187 fi 14188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14190printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14191if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14192then : 14193 printf %s "(cached) " >&6 14194else $as_nop 14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14196/* end confdefs.h. */ 14197int i; 14198_ACEOF 14199if ac_fn_c_try_compile "$LINENO" 14200then : 14201 xorg_cv_cc_flag_unused_command_line_argument=yes 14202else $as_nop 14203 xorg_cv_cc_flag_unused_command_line_argument=no 14204fi 14205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14206fi 14207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14208printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14210 CFLAGS="$xorg_testset_save_CFLAGS" 14211fi 14212 14213found="no" 14214 14215 if test $found = "no" ; then 14216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14218 fi 14219 14220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14222 fi 14223 14224 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14225 14226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14227printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14228 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14229 if eval test \${$cacheid+y} 14230then : 14231 printf %s "(cached) " >&6 14232else $as_nop 14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14234/* end confdefs.h. */ 14235int i; 14236int 14237main (void) 14238{ 14239 14240 ; 14241 return 0; 14242} 14243_ACEOF 14244if ac_fn_c_try_link "$LINENO" 14245then : 14246 eval $cacheid=yes 14247else $as_nop 14248 eval $cacheid=no 14249fi 14250rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14251 conftest$ac_exeext conftest.$ac_ext 14252fi 14253 14254 14255 CFLAGS="$xorg_testset_save_CFLAGS" 14256 14257 eval supported=\$$cacheid 14258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14259printf "%s\n" "$supported" >&6; } 14260 if test "$supported" = "yes" ; then 14261 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14262 found="yes" 14263 fi 14264 fi 14265 14266 14267 14268 14269 14270# This chunk adds additional warnings that could catch undesired effects. 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284xorg_testset_save_CFLAGS="$CFLAGS" 14285 14286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14289printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14290if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14291then : 14292 printf %s "(cached) " >&6 14293else $as_nop 14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14295/* end confdefs.h. */ 14296int i; 14297_ACEOF 14298if ac_fn_c_try_compile "$LINENO" 14299then : 14300 xorg_cv_cc_flag_unknown_warning_option=yes 14301else $as_nop 14302 xorg_cv_cc_flag_unknown_warning_option=no 14303fi 14304rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14305fi 14306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14307printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14309 CFLAGS="$xorg_testset_save_CFLAGS" 14310fi 14311 14312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14315 fi 14316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14318printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14319if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14320then : 14321 printf %s "(cached) " >&6 14322else $as_nop 14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14324/* end confdefs.h. */ 14325int i; 14326_ACEOF 14327if ac_fn_c_try_compile "$LINENO" 14328then : 14329 xorg_cv_cc_flag_unused_command_line_argument=yes 14330else $as_nop 14331 xorg_cv_cc_flag_unused_command_line_argument=no 14332fi 14333rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14334fi 14335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14336printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14338 CFLAGS="$xorg_testset_save_CFLAGS" 14339fi 14340 14341found="no" 14342 14343 if test $found = "no" ; then 14344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14346 fi 14347 14348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14350 fi 14351 14352 CFLAGS="$CFLAGS -Wunused" 14353 14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14355printf %s "checking if $CC supports -Wunused... " >&6; } 14356 cacheid=xorg_cv_cc_flag__Wunused 14357 if eval test \${$cacheid+y} 14358then : 14359 printf %s "(cached) " >&6 14360else $as_nop 14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14362/* end confdefs.h. */ 14363int i; 14364int 14365main (void) 14366{ 14367 14368 ; 14369 return 0; 14370} 14371_ACEOF 14372if ac_fn_c_try_link "$LINENO" 14373then : 14374 eval $cacheid=yes 14375else $as_nop 14376 eval $cacheid=no 14377fi 14378rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14379 conftest$ac_exeext conftest.$ac_ext 14380fi 14381 14382 14383 CFLAGS="$xorg_testset_save_CFLAGS" 14384 14385 eval supported=\$$cacheid 14386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14387printf "%s\n" "$supported" >&6; } 14388 if test "$supported" = "yes" ; then 14389 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14390 found="yes" 14391 fi 14392 fi 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408xorg_testset_save_CFLAGS="$CFLAGS" 14409 14410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14413printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14414if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14415then : 14416 printf %s "(cached) " >&6 14417else $as_nop 14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14419/* end confdefs.h. */ 14420int i; 14421_ACEOF 14422if ac_fn_c_try_compile "$LINENO" 14423then : 14424 xorg_cv_cc_flag_unknown_warning_option=yes 14425else $as_nop 14426 xorg_cv_cc_flag_unknown_warning_option=no 14427fi 14428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14429fi 14430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14431printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14433 CFLAGS="$xorg_testset_save_CFLAGS" 14434fi 14435 14436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14439 fi 14440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14442printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14443if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14444then : 14445 printf %s "(cached) " >&6 14446else $as_nop 14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14448/* end confdefs.h. */ 14449int i; 14450_ACEOF 14451if ac_fn_c_try_compile "$LINENO" 14452then : 14453 xorg_cv_cc_flag_unused_command_line_argument=yes 14454else $as_nop 14455 xorg_cv_cc_flag_unused_command_line_argument=no 14456fi 14457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14458fi 14459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14460printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14462 CFLAGS="$xorg_testset_save_CFLAGS" 14463fi 14464 14465found="no" 14466 14467 if test $found = "no" ; then 14468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14470 fi 14471 14472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14474 fi 14475 14476 CFLAGS="$CFLAGS -Wuninitialized" 14477 14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14479printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14480 cacheid=xorg_cv_cc_flag__Wuninitialized 14481 if eval test \${$cacheid+y} 14482then : 14483 printf %s "(cached) " >&6 14484else $as_nop 14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14486/* end confdefs.h. */ 14487int i; 14488int 14489main (void) 14490{ 14491 14492 ; 14493 return 0; 14494} 14495_ACEOF 14496if ac_fn_c_try_link "$LINENO" 14497then : 14498 eval $cacheid=yes 14499else $as_nop 14500 eval $cacheid=no 14501fi 14502rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14503 conftest$ac_exeext conftest.$ac_ext 14504fi 14505 14506 14507 CFLAGS="$xorg_testset_save_CFLAGS" 14508 14509 eval supported=\$$cacheid 14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14511printf "%s\n" "$supported" >&6; } 14512 if test "$supported" = "yes" ; then 14513 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14514 found="yes" 14515 fi 14516 fi 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532xorg_testset_save_CFLAGS="$CFLAGS" 14533 14534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14538if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14539then : 14540 printf %s "(cached) " >&6 14541else $as_nop 14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14543/* end confdefs.h. */ 14544int i; 14545_ACEOF 14546if ac_fn_c_try_compile "$LINENO" 14547then : 14548 xorg_cv_cc_flag_unknown_warning_option=yes 14549else $as_nop 14550 xorg_cv_cc_flag_unknown_warning_option=no 14551fi 14552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14553fi 14554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14557 CFLAGS="$xorg_testset_save_CFLAGS" 14558fi 14559 14560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14563 fi 14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14567if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14568then : 14569 printf %s "(cached) " >&6 14570else $as_nop 14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14572/* end confdefs.h. */ 14573int i; 14574_ACEOF 14575if ac_fn_c_try_compile "$LINENO" 14576then : 14577 xorg_cv_cc_flag_unused_command_line_argument=yes 14578else $as_nop 14579 xorg_cv_cc_flag_unused_command_line_argument=no 14580fi 14581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14582fi 14583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14586 CFLAGS="$xorg_testset_save_CFLAGS" 14587fi 14588 14589found="no" 14590 14591 if test $found = "no" ; then 14592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14594 fi 14595 14596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14598 fi 14599 14600 CFLAGS="$CFLAGS -Wshadow" 14601 14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14603printf %s "checking if $CC supports -Wshadow... " >&6; } 14604 cacheid=xorg_cv_cc_flag__Wshadow 14605 if eval test \${$cacheid+y} 14606then : 14607 printf %s "(cached) " >&6 14608else $as_nop 14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14610/* end confdefs.h. */ 14611int i; 14612int 14613main (void) 14614{ 14615 14616 ; 14617 return 0; 14618} 14619_ACEOF 14620if ac_fn_c_try_link "$LINENO" 14621then : 14622 eval $cacheid=yes 14623else $as_nop 14624 eval $cacheid=no 14625fi 14626rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14627 conftest$ac_exeext conftest.$ac_ext 14628fi 14629 14630 14631 CFLAGS="$xorg_testset_save_CFLAGS" 14632 14633 eval supported=\$$cacheid 14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14635printf "%s\n" "$supported" >&6; } 14636 if test "$supported" = "yes" ; then 14637 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14638 found="yes" 14639 fi 14640 fi 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656xorg_testset_save_CFLAGS="$CFLAGS" 14657 14658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14661printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14662if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14663then : 14664 printf %s "(cached) " >&6 14665else $as_nop 14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14667/* end confdefs.h. */ 14668int i; 14669_ACEOF 14670if ac_fn_c_try_compile "$LINENO" 14671then : 14672 xorg_cv_cc_flag_unknown_warning_option=yes 14673else $as_nop 14674 xorg_cv_cc_flag_unknown_warning_option=no 14675fi 14676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14677fi 14678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14679printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14681 CFLAGS="$xorg_testset_save_CFLAGS" 14682fi 14683 14684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14687 fi 14688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14690printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14691if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14692then : 14693 printf %s "(cached) " >&6 14694else $as_nop 14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14696/* end confdefs.h. */ 14697int i; 14698_ACEOF 14699if ac_fn_c_try_compile "$LINENO" 14700then : 14701 xorg_cv_cc_flag_unused_command_line_argument=yes 14702else $as_nop 14703 xorg_cv_cc_flag_unused_command_line_argument=no 14704fi 14705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14706fi 14707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14708printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14710 CFLAGS="$xorg_testset_save_CFLAGS" 14711fi 14712 14713found="no" 14714 14715 if test $found = "no" ; then 14716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14718 fi 14719 14720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14722 fi 14723 14724 CFLAGS="$CFLAGS -Wmissing-noreturn" 14725 14726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14727printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14728 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14729 if eval test \${$cacheid+y} 14730then : 14731 printf %s "(cached) " >&6 14732else $as_nop 14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14734/* end confdefs.h. */ 14735int i; 14736int 14737main (void) 14738{ 14739 14740 ; 14741 return 0; 14742} 14743_ACEOF 14744if ac_fn_c_try_link "$LINENO" 14745then : 14746 eval $cacheid=yes 14747else $as_nop 14748 eval $cacheid=no 14749fi 14750rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14751 conftest$ac_exeext conftest.$ac_ext 14752fi 14753 14754 14755 CFLAGS="$xorg_testset_save_CFLAGS" 14756 14757 eval supported=\$$cacheid 14758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14759printf "%s\n" "$supported" >&6; } 14760 if test "$supported" = "yes" ; then 14761 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14785printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14786if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14787then : 14788 printf %s "(cached) " >&6 14789else $as_nop 14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14791/* end confdefs.h. */ 14792int i; 14793_ACEOF 14794if ac_fn_c_try_compile "$LINENO" 14795then : 14796 xorg_cv_cc_flag_unknown_warning_option=yes 14797else $as_nop 14798 xorg_cv_cc_flag_unknown_warning_option=no 14799fi 14800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14801fi 14802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14803printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14805 CFLAGS="$xorg_testset_save_CFLAGS" 14806fi 14807 14808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14811 fi 14812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14814printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14815if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14816then : 14817 printf %s "(cached) " >&6 14818else $as_nop 14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14820/* end confdefs.h. */ 14821int i; 14822_ACEOF 14823if ac_fn_c_try_compile "$LINENO" 14824then : 14825 xorg_cv_cc_flag_unused_command_line_argument=yes 14826else $as_nop 14827 xorg_cv_cc_flag_unused_command_line_argument=no 14828fi 14829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14830fi 14831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14832printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14834 CFLAGS="$xorg_testset_save_CFLAGS" 14835fi 14836 14837found="no" 14838 14839 if test $found = "no" ; then 14840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14842 fi 14843 14844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14846 fi 14847 14848 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14849 14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14851printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14852 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14853 if eval test \${$cacheid+y} 14854then : 14855 printf %s "(cached) " >&6 14856else $as_nop 14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14858/* end confdefs.h. */ 14859int i; 14860int 14861main (void) 14862{ 14863 14864 ; 14865 return 0; 14866} 14867_ACEOF 14868if ac_fn_c_try_link "$LINENO" 14869then : 14870 eval $cacheid=yes 14871else $as_nop 14872 eval $cacheid=no 14873fi 14874rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14875 conftest$ac_exeext conftest.$ac_ext 14876fi 14877 14878 14879 CFLAGS="$xorg_testset_save_CFLAGS" 14880 14881 eval supported=\$$cacheid 14882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14883printf "%s\n" "$supported" >&6; } 14884 if test "$supported" = "yes" ; then 14885 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14886 found="yes" 14887 fi 14888 fi 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904xorg_testset_save_CFLAGS="$CFLAGS" 14905 14906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14909printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14910if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14911then : 14912 printf %s "(cached) " >&6 14913else $as_nop 14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14915/* end confdefs.h. */ 14916int i; 14917_ACEOF 14918if ac_fn_c_try_compile "$LINENO" 14919then : 14920 xorg_cv_cc_flag_unknown_warning_option=yes 14921else $as_nop 14922 xorg_cv_cc_flag_unknown_warning_option=no 14923fi 14924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14925fi 14926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14927printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14929 CFLAGS="$xorg_testset_save_CFLAGS" 14930fi 14931 14932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14935 fi 14936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14938printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14939if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14940then : 14941 printf %s "(cached) " >&6 14942else $as_nop 14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14944/* end confdefs.h. */ 14945int i; 14946_ACEOF 14947if ac_fn_c_try_compile "$LINENO" 14948then : 14949 xorg_cv_cc_flag_unused_command_line_argument=yes 14950else $as_nop 14951 xorg_cv_cc_flag_unused_command_line_argument=no 14952fi 14953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14954fi 14955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14956printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14958 CFLAGS="$xorg_testset_save_CFLAGS" 14959fi 14960 14961found="no" 14962 14963 if test $found = "no" ; then 14964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14966 fi 14967 14968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14970 fi 14971 14972 CFLAGS="$CFLAGS -Wredundant-decls" 14973 14974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14975printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 14976 cacheid=xorg_cv_cc_flag__Wredundant_decls 14977 if eval test \${$cacheid+y} 14978then : 14979 printf %s "(cached) " >&6 14980else $as_nop 14981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14982/* end confdefs.h. */ 14983int i; 14984int 14985main (void) 14986{ 14987 14988 ; 14989 return 0; 14990} 14991_ACEOF 14992if ac_fn_c_try_link "$LINENO" 14993then : 14994 eval $cacheid=yes 14995else $as_nop 14996 eval $cacheid=no 14997fi 14998rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14999 conftest$ac_exeext conftest.$ac_ext 15000fi 15001 15002 15003 CFLAGS="$xorg_testset_save_CFLAGS" 15004 15005 eval supported=\$$cacheid 15006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15007printf "%s\n" "$supported" >&6; } 15008 if test "$supported" = "yes" ; then 15009 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15010 found="yes" 15011 fi 15012 fi 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028xorg_testset_save_CFLAGS="$CFLAGS" 15029 15030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15033printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15034if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15035then : 15036 printf %s "(cached) " >&6 15037else $as_nop 15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15039/* end confdefs.h. */ 15040int i; 15041_ACEOF 15042if ac_fn_c_try_compile "$LINENO" 15043then : 15044 xorg_cv_cc_flag_unknown_warning_option=yes 15045else $as_nop 15046 xorg_cv_cc_flag_unknown_warning_option=no 15047fi 15048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15049fi 15050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15051printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15053 CFLAGS="$xorg_testset_save_CFLAGS" 15054fi 15055 15056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15059 fi 15060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15062printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15063if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15064then : 15065 printf %s "(cached) " >&6 15066else $as_nop 15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15068/* end confdefs.h. */ 15069int i; 15070_ACEOF 15071if ac_fn_c_try_compile "$LINENO" 15072then : 15073 xorg_cv_cc_flag_unused_command_line_argument=yes 15074else $as_nop 15075 xorg_cv_cc_flag_unused_command_line_argument=no 15076fi 15077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15078fi 15079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15080printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15082 CFLAGS="$xorg_testset_save_CFLAGS" 15083fi 15084 15085found="no" 15086 15087 if test $found = "no" ; then 15088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15090 fi 15091 15092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15094 fi 15095 15096 CFLAGS="$CFLAGS -Wlogical-op" 15097 15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15099printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15100 cacheid=xorg_cv_cc_flag__Wlogical_op 15101 if eval test \${$cacheid+y} 15102then : 15103 printf %s "(cached) " >&6 15104else $as_nop 15105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15106/* end confdefs.h. */ 15107int i; 15108int 15109main (void) 15110{ 15111 15112 ; 15113 return 0; 15114} 15115_ACEOF 15116if ac_fn_c_try_link "$LINENO" 15117then : 15118 eval $cacheid=yes 15119else $as_nop 15120 eval $cacheid=no 15121fi 15122rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15123 conftest$ac_exeext conftest.$ac_ext 15124fi 15125 15126 15127 CFLAGS="$xorg_testset_save_CFLAGS" 15128 15129 eval supported=\$$cacheid 15130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15131printf "%s\n" "$supported" >&6; } 15132 if test "$supported" = "yes" ; then 15133 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15134 found="yes" 15135 fi 15136 fi 15137 15138 15139 15140# These are currently disabled because they are noisy. They will be enabled 15141# in the future once the codebase is sufficiently modernized to silence 15142# them. For now, I don't want them to drown out the other warnings. 15143# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15144# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15145# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15146 15147# Turn some warnings into errors, so we don't accidently get successful builds 15148# when there are problems that should be fixed. 15149 15150if test "x$SELECTIVE_WERROR" = "xyes" ; then 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164xorg_testset_save_CFLAGS="$CFLAGS" 15165 15166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15169printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15170if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15171then : 15172 printf %s "(cached) " >&6 15173else $as_nop 15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15175/* end confdefs.h. */ 15176int i; 15177_ACEOF 15178if ac_fn_c_try_compile "$LINENO" 15179then : 15180 xorg_cv_cc_flag_unknown_warning_option=yes 15181else $as_nop 15182 xorg_cv_cc_flag_unknown_warning_option=no 15183fi 15184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15185fi 15186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15189 CFLAGS="$xorg_testset_save_CFLAGS" 15190fi 15191 15192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15195 fi 15196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15199if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15200then : 15201 printf %s "(cached) " >&6 15202else $as_nop 15203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15204/* end confdefs.h. */ 15205int i; 15206_ACEOF 15207if ac_fn_c_try_compile "$LINENO" 15208then : 15209 xorg_cv_cc_flag_unused_command_line_argument=yes 15210else $as_nop 15211 xorg_cv_cc_flag_unused_command_line_argument=no 15212fi 15213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15214fi 15215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15218 CFLAGS="$xorg_testset_save_CFLAGS" 15219fi 15220 15221found="no" 15222 15223 if test $found = "no" ; then 15224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15226 fi 15227 15228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15230 fi 15231 15232 CFLAGS="$CFLAGS -Werror=implicit" 15233 15234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15235printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15236 cacheid=xorg_cv_cc_flag__Werror_implicit 15237 if eval test \${$cacheid+y} 15238then : 15239 printf %s "(cached) " >&6 15240else $as_nop 15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15242/* end confdefs.h. */ 15243int i; 15244int 15245main (void) 15246{ 15247 15248 ; 15249 return 0; 15250} 15251_ACEOF 15252if ac_fn_c_try_link "$LINENO" 15253then : 15254 eval $cacheid=yes 15255else $as_nop 15256 eval $cacheid=no 15257fi 15258rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15259 conftest$ac_exeext conftest.$ac_ext 15260fi 15261 15262 15263 CFLAGS="$xorg_testset_save_CFLAGS" 15264 15265 eval supported=\$$cacheid 15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15267printf "%s\n" "$supported" >&6; } 15268 if test "$supported" = "yes" ; then 15269 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15270 found="yes" 15271 fi 15272 fi 15273 15274 if test $found = "no" ; then 15275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15277 fi 15278 15279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15281 fi 15282 15283 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15284 15285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15286printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15287 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15288 if eval test \${$cacheid+y} 15289then : 15290 printf %s "(cached) " >&6 15291else $as_nop 15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15293/* end confdefs.h. */ 15294int i; 15295int 15296main (void) 15297{ 15298 15299 ; 15300 return 0; 15301} 15302_ACEOF 15303if ac_fn_c_try_link "$LINENO" 15304then : 15305 eval $cacheid=yes 15306else $as_nop 15307 eval $cacheid=no 15308fi 15309rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15310 conftest$ac_exeext conftest.$ac_ext 15311fi 15312 15313 15314 CFLAGS="$xorg_testset_save_CFLAGS" 15315 15316 eval supported=\$$cacheid 15317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15318printf "%s\n" "$supported" >&6; } 15319 if test "$supported" = "yes" ; then 15320 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15321 found="yes" 15322 fi 15323 fi 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339xorg_testset_save_CFLAGS="$CFLAGS" 15340 15341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15344printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15345if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15346then : 15347 printf %s "(cached) " >&6 15348else $as_nop 15349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15350/* end confdefs.h. */ 15351int i; 15352_ACEOF 15353if ac_fn_c_try_compile "$LINENO" 15354then : 15355 xorg_cv_cc_flag_unknown_warning_option=yes 15356else $as_nop 15357 xorg_cv_cc_flag_unknown_warning_option=no 15358fi 15359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15360fi 15361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15362printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15364 CFLAGS="$xorg_testset_save_CFLAGS" 15365fi 15366 15367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15370 fi 15371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15373printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15374if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15375then : 15376 printf %s "(cached) " >&6 15377else $as_nop 15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15379/* end confdefs.h. */ 15380int i; 15381_ACEOF 15382if ac_fn_c_try_compile "$LINENO" 15383then : 15384 xorg_cv_cc_flag_unused_command_line_argument=yes 15385else $as_nop 15386 xorg_cv_cc_flag_unused_command_line_argument=no 15387fi 15388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15389fi 15390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15391printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15393 CFLAGS="$xorg_testset_save_CFLAGS" 15394fi 15395 15396found="no" 15397 15398 if test $found = "no" ; then 15399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15401 fi 15402 15403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15405 fi 15406 15407 CFLAGS="$CFLAGS -Werror=nonnull" 15408 15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15410printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15411 cacheid=xorg_cv_cc_flag__Werror_nonnull 15412 if eval test \${$cacheid+y} 15413then : 15414 printf %s "(cached) " >&6 15415else $as_nop 15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15417/* end confdefs.h. */ 15418int i; 15419int 15420main (void) 15421{ 15422 15423 ; 15424 return 0; 15425} 15426_ACEOF 15427if ac_fn_c_try_link "$LINENO" 15428then : 15429 eval $cacheid=yes 15430else $as_nop 15431 eval $cacheid=no 15432fi 15433rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15434 conftest$ac_exeext conftest.$ac_ext 15435fi 15436 15437 15438 CFLAGS="$xorg_testset_save_CFLAGS" 15439 15440 eval supported=\$$cacheid 15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15442printf "%s\n" "$supported" >&6; } 15443 if test "$supported" = "yes" ; then 15444 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15445 found="yes" 15446 fi 15447 fi 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463xorg_testset_save_CFLAGS="$CFLAGS" 15464 15465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15468printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15469if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15470then : 15471 printf %s "(cached) " >&6 15472else $as_nop 15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15474/* end confdefs.h. */ 15475int i; 15476_ACEOF 15477if ac_fn_c_try_compile "$LINENO" 15478then : 15479 xorg_cv_cc_flag_unknown_warning_option=yes 15480else $as_nop 15481 xorg_cv_cc_flag_unknown_warning_option=no 15482fi 15483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15484fi 15485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15486printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15488 CFLAGS="$xorg_testset_save_CFLAGS" 15489fi 15490 15491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15494 fi 15495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15497printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15498if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15499then : 15500 printf %s "(cached) " >&6 15501else $as_nop 15502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15503/* end confdefs.h. */ 15504int i; 15505_ACEOF 15506if ac_fn_c_try_compile "$LINENO" 15507then : 15508 xorg_cv_cc_flag_unused_command_line_argument=yes 15509else $as_nop 15510 xorg_cv_cc_flag_unused_command_line_argument=no 15511fi 15512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15513fi 15514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15515printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15517 CFLAGS="$xorg_testset_save_CFLAGS" 15518fi 15519 15520found="no" 15521 15522 if test $found = "no" ; then 15523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15525 fi 15526 15527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15529 fi 15530 15531 CFLAGS="$CFLAGS -Werror=init-self" 15532 15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15534printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15535 cacheid=xorg_cv_cc_flag__Werror_init_self 15536 if eval test \${$cacheid+y} 15537then : 15538 printf %s "(cached) " >&6 15539else $as_nop 15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15541/* end confdefs.h. */ 15542int i; 15543int 15544main (void) 15545{ 15546 15547 ; 15548 return 0; 15549} 15550_ACEOF 15551if ac_fn_c_try_link "$LINENO" 15552then : 15553 eval $cacheid=yes 15554else $as_nop 15555 eval $cacheid=no 15556fi 15557rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15558 conftest$ac_exeext conftest.$ac_ext 15559fi 15560 15561 15562 CFLAGS="$xorg_testset_save_CFLAGS" 15563 15564 eval supported=\$$cacheid 15565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15566printf "%s\n" "$supported" >&6; } 15567 if test "$supported" = "yes" ; then 15568 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15569 found="yes" 15570 fi 15571 fi 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587xorg_testset_save_CFLAGS="$CFLAGS" 15588 15589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15592printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15593if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15594then : 15595 printf %s "(cached) " >&6 15596else $as_nop 15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15598/* end confdefs.h. */ 15599int i; 15600_ACEOF 15601if ac_fn_c_try_compile "$LINENO" 15602then : 15603 xorg_cv_cc_flag_unknown_warning_option=yes 15604else $as_nop 15605 xorg_cv_cc_flag_unknown_warning_option=no 15606fi 15607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15608fi 15609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15610printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15612 CFLAGS="$xorg_testset_save_CFLAGS" 15613fi 15614 15615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15618 fi 15619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15621printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15622if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15623then : 15624 printf %s "(cached) " >&6 15625else $as_nop 15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15627/* end confdefs.h. */ 15628int i; 15629_ACEOF 15630if ac_fn_c_try_compile "$LINENO" 15631then : 15632 xorg_cv_cc_flag_unused_command_line_argument=yes 15633else $as_nop 15634 xorg_cv_cc_flag_unused_command_line_argument=no 15635fi 15636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15637fi 15638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15639printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15641 CFLAGS="$xorg_testset_save_CFLAGS" 15642fi 15643 15644found="no" 15645 15646 if test $found = "no" ; then 15647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15649 fi 15650 15651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15653 fi 15654 15655 CFLAGS="$CFLAGS -Werror=main" 15656 15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15658printf %s "checking if $CC supports -Werror=main... " >&6; } 15659 cacheid=xorg_cv_cc_flag__Werror_main 15660 if eval test \${$cacheid+y} 15661then : 15662 printf %s "(cached) " >&6 15663else $as_nop 15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15665/* end confdefs.h. */ 15666int i; 15667int 15668main (void) 15669{ 15670 15671 ; 15672 return 0; 15673} 15674_ACEOF 15675if ac_fn_c_try_link "$LINENO" 15676then : 15677 eval $cacheid=yes 15678else $as_nop 15679 eval $cacheid=no 15680fi 15681rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15682 conftest$ac_exeext conftest.$ac_ext 15683fi 15684 15685 15686 CFLAGS="$xorg_testset_save_CFLAGS" 15687 15688 eval supported=\$$cacheid 15689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15690printf "%s\n" "$supported" >&6; } 15691 if test "$supported" = "yes" ; then 15692 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15693 found="yes" 15694 fi 15695 fi 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711xorg_testset_save_CFLAGS="$CFLAGS" 15712 15713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15716printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15717if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15718then : 15719 printf %s "(cached) " >&6 15720else $as_nop 15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15722/* end confdefs.h. */ 15723int i; 15724_ACEOF 15725if ac_fn_c_try_compile "$LINENO" 15726then : 15727 xorg_cv_cc_flag_unknown_warning_option=yes 15728else $as_nop 15729 xorg_cv_cc_flag_unknown_warning_option=no 15730fi 15731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15732fi 15733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15734printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15736 CFLAGS="$xorg_testset_save_CFLAGS" 15737fi 15738 15739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15742 fi 15743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15745printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15746if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15747then : 15748 printf %s "(cached) " >&6 15749else $as_nop 15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15751/* end confdefs.h. */ 15752int i; 15753_ACEOF 15754if ac_fn_c_try_compile "$LINENO" 15755then : 15756 xorg_cv_cc_flag_unused_command_line_argument=yes 15757else $as_nop 15758 xorg_cv_cc_flag_unused_command_line_argument=no 15759fi 15760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15761fi 15762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15763printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15765 CFLAGS="$xorg_testset_save_CFLAGS" 15766fi 15767 15768found="no" 15769 15770 if test $found = "no" ; then 15771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15773 fi 15774 15775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15777 fi 15778 15779 CFLAGS="$CFLAGS -Werror=missing-braces" 15780 15781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15782printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15783 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15784 if eval test \${$cacheid+y} 15785then : 15786 printf %s "(cached) " >&6 15787else $as_nop 15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15789/* end confdefs.h. */ 15790int i; 15791int 15792main (void) 15793{ 15794 15795 ; 15796 return 0; 15797} 15798_ACEOF 15799if ac_fn_c_try_link "$LINENO" 15800then : 15801 eval $cacheid=yes 15802else $as_nop 15803 eval $cacheid=no 15804fi 15805rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15806 conftest$ac_exeext conftest.$ac_ext 15807fi 15808 15809 15810 CFLAGS="$xorg_testset_save_CFLAGS" 15811 15812 eval supported=\$$cacheid 15813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15814printf "%s\n" "$supported" >&6; } 15815 if test "$supported" = "yes" ; then 15816 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15817 found="yes" 15818 fi 15819 fi 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835xorg_testset_save_CFLAGS="$CFLAGS" 15836 15837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15840printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15841if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15842then : 15843 printf %s "(cached) " >&6 15844else $as_nop 15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15846/* end confdefs.h. */ 15847int i; 15848_ACEOF 15849if ac_fn_c_try_compile "$LINENO" 15850then : 15851 xorg_cv_cc_flag_unknown_warning_option=yes 15852else $as_nop 15853 xorg_cv_cc_flag_unknown_warning_option=no 15854fi 15855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15856fi 15857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15860 CFLAGS="$xorg_testset_save_CFLAGS" 15861fi 15862 15863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15866 fi 15867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15870if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15871then : 15872 printf %s "(cached) " >&6 15873else $as_nop 15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15875/* end confdefs.h. */ 15876int i; 15877_ACEOF 15878if ac_fn_c_try_compile "$LINENO" 15879then : 15880 xorg_cv_cc_flag_unused_command_line_argument=yes 15881else $as_nop 15882 xorg_cv_cc_flag_unused_command_line_argument=no 15883fi 15884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15885fi 15886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15889 CFLAGS="$xorg_testset_save_CFLAGS" 15890fi 15891 15892found="no" 15893 15894 if test $found = "no" ; then 15895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15897 fi 15898 15899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15901 fi 15902 15903 CFLAGS="$CFLAGS -Werror=sequence-point" 15904 15905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15906printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15907 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15908 if eval test \${$cacheid+y} 15909then : 15910 printf %s "(cached) " >&6 15911else $as_nop 15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15913/* end confdefs.h. */ 15914int i; 15915int 15916main (void) 15917{ 15918 15919 ; 15920 return 0; 15921} 15922_ACEOF 15923if ac_fn_c_try_link "$LINENO" 15924then : 15925 eval $cacheid=yes 15926else $as_nop 15927 eval $cacheid=no 15928fi 15929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15930 conftest$ac_exeext conftest.$ac_ext 15931fi 15932 15933 15934 CFLAGS="$xorg_testset_save_CFLAGS" 15935 15936 eval supported=\$$cacheid 15937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15938printf "%s\n" "$supported" >&6; } 15939 if test "$supported" = "yes" ; then 15940 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15941 found="yes" 15942 fi 15943 fi 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959xorg_testset_save_CFLAGS="$CFLAGS" 15960 15961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15965if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15966then : 15967 printf %s "(cached) " >&6 15968else $as_nop 15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15970/* end confdefs.h. */ 15971int i; 15972_ACEOF 15973if ac_fn_c_try_compile "$LINENO" 15974then : 15975 xorg_cv_cc_flag_unknown_warning_option=yes 15976else $as_nop 15977 xorg_cv_cc_flag_unknown_warning_option=no 15978fi 15979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15980fi 15981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15984 CFLAGS="$xorg_testset_save_CFLAGS" 15985fi 15986 15987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15990 fi 15991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15994if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15995then : 15996 printf %s "(cached) " >&6 15997else $as_nop 15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15999/* end confdefs.h. */ 16000int i; 16001_ACEOF 16002if ac_fn_c_try_compile "$LINENO" 16003then : 16004 xorg_cv_cc_flag_unused_command_line_argument=yes 16005else $as_nop 16006 xorg_cv_cc_flag_unused_command_line_argument=no 16007fi 16008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16009fi 16010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16013 CFLAGS="$xorg_testset_save_CFLAGS" 16014fi 16015 16016found="no" 16017 16018 if test $found = "no" ; then 16019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16021 fi 16022 16023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16025 fi 16026 16027 CFLAGS="$CFLAGS -Werror=return-type" 16028 16029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16030printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16031 cacheid=xorg_cv_cc_flag__Werror_return_type 16032 if eval test \${$cacheid+y} 16033then : 16034 printf %s "(cached) " >&6 16035else $as_nop 16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16037/* end confdefs.h. */ 16038int i; 16039int 16040main (void) 16041{ 16042 16043 ; 16044 return 0; 16045} 16046_ACEOF 16047if ac_fn_c_try_link "$LINENO" 16048then : 16049 eval $cacheid=yes 16050else $as_nop 16051 eval $cacheid=no 16052fi 16053rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16054 conftest$ac_exeext conftest.$ac_ext 16055fi 16056 16057 16058 CFLAGS="$xorg_testset_save_CFLAGS" 16059 16060 eval supported=\$$cacheid 16061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16062printf "%s\n" "$supported" >&6; } 16063 if test "$supported" = "yes" ; then 16064 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16065 found="yes" 16066 fi 16067 fi 16068 16069 if test $found = "no" ; then 16070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16072 fi 16073 16074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16076 fi 16077 16078 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16079 16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16081printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16082 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16083 if eval test \${$cacheid+y} 16084then : 16085 printf %s "(cached) " >&6 16086else $as_nop 16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16088/* end confdefs.h. */ 16089int i; 16090int 16091main (void) 16092{ 16093 16094 ; 16095 return 0; 16096} 16097_ACEOF 16098if ac_fn_c_try_link "$LINENO" 16099then : 16100 eval $cacheid=yes 16101else $as_nop 16102 eval $cacheid=no 16103fi 16104rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16105 conftest$ac_exeext conftest.$ac_ext 16106fi 16107 16108 16109 CFLAGS="$xorg_testset_save_CFLAGS" 16110 16111 eval supported=\$$cacheid 16112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16113printf "%s\n" "$supported" >&6; } 16114 if test "$supported" = "yes" ; then 16115 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16116 found="yes" 16117 fi 16118 fi 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134xorg_testset_save_CFLAGS="$CFLAGS" 16135 16136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16140if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16141then : 16142 printf %s "(cached) " >&6 16143else $as_nop 16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16145/* end confdefs.h. */ 16146int i; 16147_ACEOF 16148if ac_fn_c_try_compile "$LINENO" 16149then : 16150 xorg_cv_cc_flag_unknown_warning_option=yes 16151else $as_nop 16152 xorg_cv_cc_flag_unknown_warning_option=no 16153fi 16154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16155fi 16156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16159 CFLAGS="$xorg_testset_save_CFLAGS" 16160fi 16161 16162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16165 fi 16166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16169if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16170then : 16171 printf %s "(cached) " >&6 16172else $as_nop 16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16174/* end confdefs.h. */ 16175int i; 16176_ACEOF 16177if ac_fn_c_try_compile "$LINENO" 16178then : 16179 xorg_cv_cc_flag_unused_command_line_argument=yes 16180else $as_nop 16181 xorg_cv_cc_flag_unused_command_line_argument=no 16182fi 16183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16184fi 16185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16186printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16188 CFLAGS="$xorg_testset_save_CFLAGS" 16189fi 16190 16191found="no" 16192 16193 if test $found = "no" ; then 16194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16196 fi 16197 16198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16200 fi 16201 16202 CFLAGS="$CFLAGS -Werror=trigraphs" 16203 16204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16205printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16206 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16207 if eval test \${$cacheid+y} 16208then : 16209 printf %s "(cached) " >&6 16210else $as_nop 16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16212/* end confdefs.h. */ 16213int i; 16214int 16215main (void) 16216{ 16217 16218 ; 16219 return 0; 16220} 16221_ACEOF 16222if ac_fn_c_try_link "$LINENO" 16223then : 16224 eval $cacheid=yes 16225else $as_nop 16226 eval $cacheid=no 16227fi 16228rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16229 conftest$ac_exeext conftest.$ac_ext 16230fi 16231 16232 16233 CFLAGS="$xorg_testset_save_CFLAGS" 16234 16235 eval supported=\$$cacheid 16236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16237printf "%s\n" "$supported" >&6; } 16238 if test "$supported" = "yes" ; then 16239 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16240 found="yes" 16241 fi 16242 fi 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258xorg_testset_save_CFLAGS="$CFLAGS" 16259 16260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16263printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16264if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16265then : 16266 printf %s "(cached) " >&6 16267else $as_nop 16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16269/* end confdefs.h. */ 16270int i; 16271_ACEOF 16272if ac_fn_c_try_compile "$LINENO" 16273then : 16274 xorg_cv_cc_flag_unknown_warning_option=yes 16275else $as_nop 16276 xorg_cv_cc_flag_unknown_warning_option=no 16277fi 16278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16279fi 16280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16283 CFLAGS="$xorg_testset_save_CFLAGS" 16284fi 16285 16286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16289 fi 16290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16293if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16294then : 16295 printf %s "(cached) " >&6 16296else $as_nop 16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16298/* end confdefs.h. */ 16299int i; 16300_ACEOF 16301if ac_fn_c_try_compile "$LINENO" 16302then : 16303 xorg_cv_cc_flag_unused_command_line_argument=yes 16304else $as_nop 16305 xorg_cv_cc_flag_unused_command_line_argument=no 16306fi 16307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16308fi 16309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16310printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16312 CFLAGS="$xorg_testset_save_CFLAGS" 16313fi 16314 16315found="no" 16316 16317 if test $found = "no" ; then 16318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16320 fi 16321 16322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16324 fi 16325 16326 CFLAGS="$CFLAGS -Werror=array-bounds" 16327 16328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16329printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16330 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16331 if eval test \${$cacheid+y} 16332then : 16333 printf %s "(cached) " >&6 16334else $as_nop 16335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16336/* end confdefs.h. */ 16337int i; 16338int 16339main (void) 16340{ 16341 16342 ; 16343 return 0; 16344} 16345_ACEOF 16346if ac_fn_c_try_link "$LINENO" 16347then : 16348 eval $cacheid=yes 16349else $as_nop 16350 eval $cacheid=no 16351fi 16352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16353 conftest$ac_exeext conftest.$ac_ext 16354fi 16355 16356 16357 CFLAGS="$xorg_testset_save_CFLAGS" 16358 16359 eval supported=\$$cacheid 16360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16361printf "%s\n" "$supported" >&6; } 16362 if test "$supported" = "yes" ; then 16363 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16364 found="yes" 16365 fi 16366 fi 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382xorg_testset_save_CFLAGS="$CFLAGS" 16383 16384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16387printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16388if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16389then : 16390 printf %s "(cached) " >&6 16391else $as_nop 16392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16393/* end confdefs.h. */ 16394int i; 16395_ACEOF 16396if ac_fn_c_try_compile "$LINENO" 16397then : 16398 xorg_cv_cc_flag_unknown_warning_option=yes 16399else $as_nop 16400 xorg_cv_cc_flag_unknown_warning_option=no 16401fi 16402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16403fi 16404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16405printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16407 CFLAGS="$xorg_testset_save_CFLAGS" 16408fi 16409 16410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16413 fi 16414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16416printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16417if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16418then : 16419 printf %s "(cached) " >&6 16420else $as_nop 16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16422/* end confdefs.h. */ 16423int i; 16424_ACEOF 16425if ac_fn_c_try_compile "$LINENO" 16426then : 16427 xorg_cv_cc_flag_unused_command_line_argument=yes 16428else $as_nop 16429 xorg_cv_cc_flag_unused_command_line_argument=no 16430fi 16431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16432fi 16433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16434printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16436 CFLAGS="$xorg_testset_save_CFLAGS" 16437fi 16438 16439found="no" 16440 16441 if test $found = "no" ; then 16442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16444 fi 16445 16446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16448 fi 16449 16450 CFLAGS="$CFLAGS -Werror=write-strings" 16451 16452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16453printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16454 cacheid=xorg_cv_cc_flag__Werror_write_strings 16455 if eval test \${$cacheid+y} 16456then : 16457 printf %s "(cached) " >&6 16458else $as_nop 16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16460/* end confdefs.h. */ 16461int i; 16462int 16463main (void) 16464{ 16465 16466 ; 16467 return 0; 16468} 16469_ACEOF 16470if ac_fn_c_try_link "$LINENO" 16471then : 16472 eval $cacheid=yes 16473else $as_nop 16474 eval $cacheid=no 16475fi 16476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16477 conftest$ac_exeext conftest.$ac_ext 16478fi 16479 16480 16481 CFLAGS="$xorg_testset_save_CFLAGS" 16482 16483 eval supported=\$$cacheid 16484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16485printf "%s\n" "$supported" >&6; } 16486 if test "$supported" = "yes" ; then 16487 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16488 found="yes" 16489 fi 16490 fi 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506xorg_testset_save_CFLAGS="$CFLAGS" 16507 16508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16512if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16513then : 16514 printf %s "(cached) " >&6 16515else $as_nop 16516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16517/* end confdefs.h. */ 16518int i; 16519_ACEOF 16520if ac_fn_c_try_compile "$LINENO" 16521then : 16522 xorg_cv_cc_flag_unknown_warning_option=yes 16523else $as_nop 16524 xorg_cv_cc_flag_unknown_warning_option=no 16525fi 16526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16527fi 16528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16529printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16531 CFLAGS="$xorg_testset_save_CFLAGS" 16532fi 16533 16534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16537 fi 16538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16540printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16541if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16542then : 16543 printf %s "(cached) " >&6 16544else $as_nop 16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16546/* end confdefs.h. */ 16547int i; 16548_ACEOF 16549if ac_fn_c_try_compile "$LINENO" 16550then : 16551 xorg_cv_cc_flag_unused_command_line_argument=yes 16552else $as_nop 16553 xorg_cv_cc_flag_unused_command_line_argument=no 16554fi 16555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16556fi 16557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16558printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16560 CFLAGS="$xorg_testset_save_CFLAGS" 16561fi 16562 16563found="no" 16564 16565 if test $found = "no" ; then 16566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16568 fi 16569 16570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16572 fi 16573 16574 CFLAGS="$CFLAGS -Werror=address" 16575 16576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16577printf %s "checking if $CC supports -Werror=address... " >&6; } 16578 cacheid=xorg_cv_cc_flag__Werror_address 16579 if eval test \${$cacheid+y} 16580then : 16581 printf %s "(cached) " >&6 16582else $as_nop 16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16584/* end confdefs.h. */ 16585int i; 16586int 16587main (void) 16588{ 16589 16590 ; 16591 return 0; 16592} 16593_ACEOF 16594if ac_fn_c_try_link "$LINENO" 16595then : 16596 eval $cacheid=yes 16597else $as_nop 16598 eval $cacheid=no 16599fi 16600rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16601 conftest$ac_exeext conftest.$ac_ext 16602fi 16603 16604 16605 CFLAGS="$xorg_testset_save_CFLAGS" 16606 16607 eval supported=\$$cacheid 16608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16609printf "%s\n" "$supported" >&6; } 16610 if test "$supported" = "yes" ; then 16611 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16612 found="yes" 16613 fi 16614 fi 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630xorg_testset_save_CFLAGS="$CFLAGS" 16631 16632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16635printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16636if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16637then : 16638 printf %s "(cached) " >&6 16639else $as_nop 16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16641/* end confdefs.h. */ 16642int i; 16643_ACEOF 16644if ac_fn_c_try_compile "$LINENO" 16645then : 16646 xorg_cv_cc_flag_unknown_warning_option=yes 16647else $as_nop 16648 xorg_cv_cc_flag_unknown_warning_option=no 16649fi 16650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16651fi 16652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16653printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16655 CFLAGS="$xorg_testset_save_CFLAGS" 16656fi 16657 16658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16661 fi 16662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16664printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16665if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16666then : 16667 printf %s "(cached) " >&6 16668else $as_nop 16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16670/* end confdefs.h. */ 16671int i; 16672_ACEOF 16673if ac_fn_c_try_compile "$LINENO" 16674then : 16675 xorg_cv_cc_flag_unused_command_line_argument=yes 16676else $as_nop 16677 xorg_cv_cc_flag_unused_command_line_argument=no 16678fi 16679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16680fi 16681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16682printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16684 CFLAGS="$xorg_testset_save_CFLAGS" 16685fi 16686 16687found="no" 16688 16689 if test $found = "no" ; then 16690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16692 fi 16693 16694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16696 fi 16697 16698 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16699 16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16701printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16702 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16703 if eval test \${$cacheid+y} 16704then : 16705 printf %s "(cached) " >&6 16706else $as_nop 16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16708/* end confdefs.h. */ 16709int i; 16710int 16711main (void) 16712{ 16713 16714 ; 16715 return 0; 16716} 16717_ACEOF 16718if ac_fn_c_try_link "$LINENO" 16719then : 16720 eval $cacheid=yes 16721else $as_nop 16722 eval $cacheid=no 16723fi 16724rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16725 conftest$ac_exeext conftest.$ac_ext 16726fi 16727 16728 16729 CFLAGS="$xorg_testset_save_CFLAGS" 16730 16731 eval supported=\$$cacheid 16732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16733printf "%s\n" "$supported" >&6; } 16734 if test "$supported" = "yes" ; then 16735 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16736 found="yes" 16737 fi 16738 fi 16739 16740 if test $found = "no" ; then 16741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16743 fi 16744 16745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16747 fi 16748 16749 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16750 16751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16752printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16753 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16754 if eval test \${$cacheid+y} 16755then : 16756 printf %s "(cached) " >&6 16757else $as_nop 16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16759/* end confdefs.h. */ 16760int i; 16761int 16762main (void) 16763{ 16764 16765 ; 16766 return 0; 16767} 16768_ACEOF 16769if ac_fn_c_try_link "$LINENO" 16770then : 16771 eval $cacheid=yes 16772else $as_nop 16773 eval $cacheid=no 16774fi 16775rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16776 conftest$ac_exeext conftest.$ac_ext 16777fi 16778 16779 16780 CFLAGS="$xorg_testset_save_CFLAGS" 16781 16782 eval supported=\$$cacheid 16783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16784printf "%s\n" "$supported" >&6; } 16785 if test "$supported" = "yes" ; then 16786 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16787 found="yes" 16788 fi 16789 fi 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805xorg_testset_save_CFLAGS="$CFLAGS" 16806 16807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16810printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16811if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16812then : 16813 printf %s "(cached) " >&6 16814else $as_nop 16815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16816/* end confdefs.h. */ 16817int i; 16818_ACEOF 16819if ac_fn_c_try_compile "$LINENO" 16820then : 16821 xorg_cv_cc_flag_unknown_warning_option=yes 16822else $as_nop 16823 xorg_cv_cc_flag_unknown_warning_option=no 16824fi 16825rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16826fi 16827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16828printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16830 CFLAGS="$xorg_testset_save_CFLAGS" 16831fi 16832 16833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16836 fi 16837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16839printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16840if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16841then : 16842 printf %s "(cached) " >&6 16843else $as_nop 16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16845/* end confdefs.h. */ 16846int i; 16847_ACEOF 16848if ac_fn_c_try_compile "$LINENO" 16849then : 16850 xorg_cv_cc_flag_unused_command_line_argument=yes 16851else $as_nop 16852 xorg_cv_cc_flag_unused_command_line_argument=no 16853fi 16854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16855fi 16856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16857printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16859 CFLAGS="$xorg_testset_save_CFLAGS" 16860fi 16861 16862found="no" 16863 16864 if test $found = "no" ; then 16865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16867 fi 16868 16869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16871 fi 16872 16873 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16874 16875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16876printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16877 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16878 if eval test \${$cacheid+y} 16879then : 16880 printf %s "(cached) " >&6 16881else $as_nop 16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16883/* end confdefs.h. */ 16884int i; 16885int 16886main (void) 16887{ 16888 16889 ; 16890 return 0; 16891} 16892_ACEOF 16893if ac_fn_c_try_link "$LINENO" 16894then : 16895 eval $cacheid=yes 16896else $as_nop 16897 eval $cacheid=no 16898fi 16899rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16900 conftest$ac_exeext conftest.$ac_ext 16901fi 16902 16903 16904 CFLAGS="$xorg_testset_save_CFLAGS" 16905 16906 eval supported=\$$cacheid 16907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16908printf "%s\n" "$supported" >&6; } 16909 if test "$supported" = "yes" ; then 16910 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16911 found="yes" 16912 fi 16913 fi 16914 16915 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16916else 16917{ printf "%s\n" "$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 16918printf "%s\n" "$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;} 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932xorg_testset_save_CFLAGS="$CFLAGS" 16933 16934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16937printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16938if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16939then : 16940 printf %s "(cached) " >&6 16941else $as_nop 16942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16943/* end confdefs.h. */ 16944int i; 16945_ACEOF 16946if ac_fn_c_try_compile "$LINENO" 16947then : 16948 xorg_cv_cc_flag_unknown_warning_option=yes 16949else $as_nop 16950 xorg_cv_cc_flag_unknown_warning_option=no 16951fi 16952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16953fi 16954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16955printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16957 CFLAGS="$xorg_testset_save_CFLAGS" 16958fi 16959 16960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16963 fi 16964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16966printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16967if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16968then : 16969 printf %s "(cached) " >&6 16970else $as_nop 16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16972/* end confdefs.h. */ 16973int i; 16974_ACEOF 16975if ac_fn_c_try_compile "$LINENO" 16976then : 16977 xorg_cv_cc_flag_unused_command_line_argument=yes 16978else $as_nop 16979 xorg_cv_cc_flag_unused_command_line_argument=no 16980fi 16981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16982fi 16983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16984printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16986 CFLAGS="$xorg_testset_save_CFLAGS" 16987fi 16988 16989found="no" 16990 16991 if test $found = "no" ; then 16992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16994 fi 16995 16996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16998 fi 16999 17000 CFLAGS="$CFLAGS -Wimplicit" 17001 17002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17003printf %s "checking if $CC supports -Wimplicit... " >&6; } 17004 cacheid=xorg_cv_cc_flag__Wimplicit 17005 if eval test \${$cacheid+y} 17006then : 17007 printf %s "(cached) " >&6 17008else $as_nop 17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17010/* end confdefs.h. */ 17011int i; 17012int 17013main (void) 17014{ 17015 17016 ; 17017 return 0; 17018} 17019_ACEOF 17020if ac_fn_c_try_link "$LINENO" 17021then : 17022 eval $cacheid=yes 17023else $as_nop 17024 eval $cacheid=no 17025fi 17026rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17027 conftest$ac_exeext conftest.$ac_ext 17028fi 17029 17030 17031 CFLAGS="$xorg_testset_save_CFLAGS" 17032 17033 eval supported=\$$cacheid 17034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17035printf "%s\n" "$supported" >&6; } 17036 if test "$supported" = "yes" ; then 17037 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17038 found="yes" 17039 fi 17040 fi 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056xorg_testset_save_CFLAGS="$CFLAGS" 17057 17058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17061printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17062if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17063then : 17064 printf %s "(cached) " >&6 17065else $as_nop 17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17067/* end confdefs.h. */ 17068int i; 17069_ACEOF 17070if ac_fn_c_try_compile "$LINENO" 17071then : 17072 xorg_cv_cc_flag_unknown_warning_option=yes 17073else $as_nop 17074 xorg_cv_cc_flag_unknown_warning_option=no 17075fi 17076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17077fi 17078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17079printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17081 CFLAGS="$xorg_testset_save_CFLAGS" 17082fi 17083 17084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17087 fi 17088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17090printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17091if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17092then : 17093 printf %s "(cached) " >&6 17094else $as_nop 17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17096/* end confdefs.h. */ 17097int i; 17098_ACEOF 17099if ac_fn_c_try_compile "$LINENO" 17100then : 17101 xorg_cv_cc_flag_unused_command_line_argument=yes 17102else $as_nop 17103 xorg_cv_cc_flag_unused_command_line_argument=no 17104fi 17105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17106fi 17107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17108printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17110 CFLAGS="$xorg_testset_save_CFLAGS" 17111fi 17112 17113found="no" 17114 17115 if test $found = "no" ; then 17116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17118 fi 17119 17120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17122 fi 17123 17124 CFLAGS="$CFLAGS -Wnonnull" 17125 17126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17127printf %s "checking if $CC supports -Wnonnull... " >&6; } 17128 cacheid=xorg_cv_cc_flag__Wnonnull 17129 if eval test \${$cacheid+y} 17130then : 17131 printf %s "(cached) " >&6 17132else $as_nop 17133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17134/* end confdefs.h. */ 17135int i; 17136int 17137main (void) 17138{ 17139 17140 ; 17141 return 0; 17142} 17143_ACEOF 17144if ac_fn_c_try_link "$LINENO" 17145then : 17146 eval $cacheid=yes 17147else $as_nop 17148 eval $cacheid=no 17149fi 17150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17151 conftest$ac_exeext conftest.$ac_ext 17152fi 17153 17154 17155 CFLAGS="$xorg_testset_save_CFLAGS" 17156 17157 eval supported=\$$cacheid 17158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17159printf "%s\n" "$supported" >&6; } 17160 if test "$supported" = "yes" ; then 17161 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17162 found="yes" 17163 fi 17164 fi 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180xorg_testset_save_CFLAGS="$CFLAGS" 17181 17182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17186if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17187then : 17188 printf %s "(cached) " >&6 17189else $as_nop 17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17191/* end confdefs.h. */ 17192int i; 17193_ACEOF 17194if ac_fn_c_try_compile "$LINENO" 17195then : 17196 xorg_cv_cc_flag_unknown_warning_option=yes 17197else $as_nop 17198 xorg_cv_cc_flag_unknown_warning_option=no 17199fi 17200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17201fi 17202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17205 CFLAGS="$xorg_testset_save_CFLAGS" 17206fi 17207 17208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17211 fi 17212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17215if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17216then : 17217 printf %s "(cached) " >&6 17218else $as_nop 17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17220/* end confdefs.h. */ 17221int i; 17222_ACEOF 17223if ac_fn_c_try_compile "$LINENO" 17224then : 17225 xorg_cv_cc_flag_unused_command_line_argument=yes 17226else $as_nop 17227 xorg_cv_cc_flag_unused_command_line_argument=no 17228fi 17229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17230fi 17231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17234 CFLAGS="$xorg_testset_save_CFLAGS" 17235fi 17236 17237found="no" 17238 17239 if test $found = "no" ; then 17240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17242 fi 17243 17244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17246 fi 17247 17248 CFLAGS="$CFLAGS -Winit-self" 17249 17250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17251printf %s "checking if $CC supports -Winit-self... " >&6; } 17252 cacheid=xorg_cv_cc_flag__Winit_self 17253 if eval test \${$cacheid+y} 17254then : 17255 printf %s "(cached) " >&6 17256else $as_nop 17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17258/* end confdefs.h. */ 17259int i; 17260int 17261main (void) 17262{ 17263 17264 ; 17265 return 0; 17266} 17267_ACEOF 17268if ac_fn_c_try_link "$LINENO" 17269then : 17270 eval $cacheid=yes 17271else $as_nop 17272 eval $cacheid=no 17273fi 17274rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17275 conftest$ac_exeext conftest.$ac_ext 17276fi 17277 17278 17279 CFLAGS="$xorg_testset_save_CFLAGS" 17280 17281 eval supported=\$$cacheid 17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17283printf "%s\n" "$supported" >&6; } 17284 if test "$supported" = "yes" ; then 17285 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17286 found="yes" 17287 fi 17288 fi 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304xorg_testset_save_CFLAGS="$CFLAGS" 17305 17306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17309printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17310if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17311then : 17312 printf %s "(cached) " >&6 17313else $as_nop 17314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17315/* end confdefs.h. */ 17316int i; 17317_ACEOF 17318if ac_fn_c_try_compile "$LINENO" 17319then : 17320 xorg_cv_cc_flag_unknown_warning_option=yes 17321else $as_nop 17322 xorg_cv_cc_flag_unknown_warning_option=no 17323fi 17324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17325fi 17326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17329 CFLAGS="$xorg_testset_save_CFLAGS" 17330fi 17331 17332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17335 fi 17336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17339if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17340then : 17341 printf %s "(cached) " >&6 17342else $as_nop 17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17344/* end confdefs.h. */ 17345int i; 17346_ACEOF 17347if ac_fn_c_try_compile "$LINENO" 17348then : 17349 xorg_cv_cc_flag_unused_command_line_argument=yes 17350else $as_nop 17351 xorg_cv_cc_flag_unused_command_line_argument=no 17352fi 17353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17354fi 17355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17358 CFLAGS="$xorg_testset_save_CFLAGS" 17359fi 17360 17361found="no" 17362 17363 if test $found = "no" ; then 17364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17366 fi 17367 17368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17370 fi 17371 17372 CFLAGS="$CFLAGS -Wmain" 17373 17374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17375printf %s "checking if $CC supports -Wmain... " >&6; } 17376 cacheid=xorg_cv_cc_flag__Wmain 17377 if eval test \${$cacheid+y} 17378then : 17379 printf %s "(cached) " >&6 17380else $as_nop 17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17382/* end confdefs.h. */ 17383int i; 17384int 17385main (void) 17386{ 17387 17388 ; 17389 return 0; 17390} 17391_ACEOF 17392if ac_fn_c_try_link "$LINENO" 17393then : 17394 eval $cacheid=yes 17395else $as_nop 17396 eval $cacheid=no 17397fi 17398rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17399 conftest$ac_exeext conftest.$ac_ext 17400fi 17401 17402 17403 CFLAGS="$xorg_testset_save_CFLAGS" 17404 17405 eval supported=\$$cacheid 17406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17407printf "%s\n" "$supported" >&6; } 17408 if test "$supported" = "yes" ; then 17409 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17410 found="yes" 17411 fi 17412 fi 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428xorg_testset_save_CFLAGS="$CFLAGS" 17429 17430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17433printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17434if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17435then : 17436 printf %s "(cached) " >&6 17437else $as_nop 17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17439/* end confdefs.h. */ 17440int i; 17441_ACEOF 17442if ac_fn_c_try_compile "$LINENO" 17443then : 17444 xorg_cv_cc_flag_unknown_warning_option=yes 17445else $as_nop 17446 xorg_cv_cc_flag_unknown_warning_option=no 17447fi 17448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17449fi 17450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17451printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17453 CFLAGS="$xorg_testset_save_CFLAGS" 17454fi 17455 17456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17459 fi 17460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17462printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17463if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17464then : 17465 printf %s "(cached) " >&6 17466else $as_nop 17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17468/* end confdefs.h. */ 17469int i; 17470_ACEOF 17471if ac_fn_c_try_compile "$LINENO" 17472then : 17473 xorg_cv_cc_flag_unused_command_line_argument=yes 17474else $as_nop 17475 xorg_cv_cc_flag_unused_command_line_argument=no 17476fi 17477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17478fi 17479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17480printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17482 CFLAGS="$xorg_testset_save_CFLAGS" 17483fi 17484 17485found="no" 17486 17487 if test $found = "no" ; then 17488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17490 fi 17491 17492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17494 fi 17495 17496 CFLAGS="$CFLAGS -Wmissing-braces" 17497 17498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17499printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17500 cacheid=xorg_cv_cc_flag__Wmissing_braces 17501 if eval test \${$cacheid+y} 17502then : 17503 printf %s "(cached) " >&6 17504else $as_nop 17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17506/* end confdefs.h. */ 17507int i; 17508int 17509main (void) 17510{ 17511 17512 ; 17513 return 0; 17514} 17515_ACEOF 17516if ac_fn_c_try_link "$LINENO" 17517then : 17518 eval $cacheid=yes 17519else $as_nop 17520 eval $cacheid=no 17521fi 17522rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17523 conftest$ac_exeext conftest.$ac_ext 17524fi 17525 17526 17527 CFLAGS="$xorg_testset_save_CFLAGS" 17528 17529 eval supported=\$$cacheid 17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17531printf "%s\n" "$supported" >&6; } 17532 if test "$supported" = "yes" ; then 17533 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17534 found="yes" 17535 fi 17536 fi 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552xorg_testset_save_CFLAGS="$CFLAGS" 17553 17554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17557printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17558if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17559then : 17560 printf %s "(cached) " >&6 17561else $as_nop 17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17563/* end confdefs.h. */ 17564int i; 17565_ACEOF 17566if ac_fn_c_try_compile "$LINENO" 17567then : 17568 xorg_cv_cc_flag_unknown_warning_option=yes 17569else $as_nop 17570 xorg_cv_cc_flag_unknown_warning_option=no 17571fi 17572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17573fi 17574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17575printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17577 CFLAGS="$xorg_testset_save_CFLAGS" 17578fi 17579 17580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17583 fi 17584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17586printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17587if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17588then : 17589 printf %s "(cached) " >&6 17590else $as_nop 17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17592/* end confdefs.h. */ 17593int i; 17594_ACEOF 17595if ac_fn_c_try_compile "$LINENO" 17596then : 17597 xorg_cv_cc_flag_unused_command_line_argument=yes 17598else $as_nop 17599 xorg_cv_cc_flag_unused_command_line_argument=no 17600fi 17601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17602fi 17603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17604printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17606 CFLAGS="$xorg_testset_save_CFLAGS" 17607fi 17608 17609found="no" 17610 17611 if test $found = "no" ; then 17612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17614 fi 17615 17616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17618 fi 17619 17620 CFLAGS="$CFLAGS -Wsequence-point" 17621 17622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17623printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17624 cacheid=xorg_cv_cc_flag__Wsequence_point 17625 if eval test \${$cacheid+y} 17626then : 17627 printf %s "(cached) " >&6 17628else $as_nop 17629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17630/* end confdefs.h. */ 17631int i; 17632int 17633main (void) 17634{ 17635 17636 ; 17637 return 0; 17638} 17639_ACEOF 17640if ac_fn_c_try_link "$LINENO" 17641then : 17642 eval $cacheid=yes 17643else $as_nop 17644 eval $cacheid=no 17645fi 17646rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17647 conftest$ac_exeext conftest.$ac_ext 17648fi 17649 17650 17651 CFLAGS="$xorg_testset_save_CFLAGS" 17652 17653 eval supported=\$$cacheid 17654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17655printf "%s\n" "$supported" >&6; } 17656 if test "$supported" = "yes" ; then 17657 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17658 found="yes" 17659 fi 17660 fi 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676xorg_testset_save_CFLAGS="$CFLAGS" 17677 17678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17682if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17683then : 17684 printf %s "(cached) " >&6 17685else $as_nop 17686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17687/* end confdefs.h. */ 17688int i; 17689_ACEOF 17690if ac_fn_c_try_compile "$LINENO" 17691then : 17692 xorg_cv_cc_flag_unknown_warning_option=yes 17693else $as_nop 17694 xorg_cv_cc_flag_unknown_warning_option=no 17695fi 17696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17697fi 17698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17699printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17701 CFLAGS="$xorg_testset_save_CFLAGS" 17702fi 17703 17704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17707 fi 17708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17710printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17711if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17712then : 17713 printf %s "(cached) " >&6 17714else $as_nop 17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17716/* end confdefs.h. */ 17717int i; 17718_ACEOF 17719if ac_fn_c_try_compile "$LINENO" 17720then : 17721 xorg_cv_cc_flag_unused_command_line_argument=yes 17722else $as_nop 17723 xorg_cv_cc_flag_unused_command_line_argument=no 17724fi 17725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17726fi 17727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17728printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17730 CFLAGS="$xorg_testset_save_CFLAGS" 17731fi 17732 17733found="no" 17734 17735 if test $found = "no" ; then 17736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17738 fi 17739 17740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17742 fi 17743 17744 CFLAGS="$CFLAGS -Wreturn-type" 17745 17746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17747printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17748 cacheid=xorg_cv_cc_flag__Wreturn_type 17749 if eval test \${$cacheid+y} 17750then : 17751 printf %s "(cached) " >&6 17752else $as_nop 17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17754/* end confdefs.h. */ 17755int i; 17756int 17757main (void) 17758{ 17759 17760 ; 17761 return 0; 17762} 17763_ACEOF 17764if ac_fn_c_try_link "$LINENO" 17765then : 17766 eval $cacheid=yes 17767else $as_nop 17768 eval $cacheid=no 17769fi 17770rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17771 conftest$ac_exeext conftest.$ac_ext 17772fi 17773 17774 17775 CFLAGS="$xorg_testset_save_CFLAGS" 17776 17777 eval supported=\$$cacheid 17778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17779printf "%s\n" "$supported" >&6; } 17780 if test "$supported" = "yes" ; then 17781 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17782 found="yes" 17783 fi 17784 fi 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800xorg_testset_save_CFLAGS="$CFLAGS" 17801 17802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17805printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17806if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17807then : 17808 printf %s "(cached) " >&6 17809else $as_nop 17810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17811/* end confdefs.h. */ 17812int i; 17813_ACEOF 17814if ac_fn_c_try_compile "$LINENO" 17815then : 17816 xorg_cv_cc_flag_unknown_warning_option=yes 17817else $as_nop 17818 xorg_cv_cc_flag_unknown_warning_option=no 17819fi 17820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17821fi 17822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17823printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17825 CFLAGS="$xorg_testset_save_CFLAGS" 17826fi 17827 17828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17831 fi 17832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17834printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17835if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17836then : 17837 printf %s "(cached) " >&6 17838else $as_nop 17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17840/* end confdefs.h. */ 17841int i; 17842_ACEOF 17843if ac_fn_c_try_compile "$LINENO" 17844then : 17845 xorg_cv_cc_flag_unused_command_line_argument=yes 17846else $as_nop 17847 xorg_cv_cc_flag_unused_command_line_argument=no 17848fi 17849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17850fi 17851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17852printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17854 CFLAGS="$xorg_testset_save_CFLAGS" 17855fi 17856 17857found="no" 17858 17859 if test $found = "no" ; then 17860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17862 fi 17863 17864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17866 fi 17867 17868 CFLAGS="$CFLAGS -Wtrigraphs" 17869 17870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17871printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17872 cacheid=xorg_cv_cc_flag__Wtrigraphs 17873 if eval test \${$cacheid+y} 17874then : 17875 printf %s "(cached) " >&6 17876else $as_nop 17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17878/* end confdefs.h. */ 17879int i; 17880int 17881main (void) 17882{ 17883 17884 ; 17885 return 0; 17886} 17887_ACEOF 17888if ac_fn_c_try_link "$LINENO" 17889then : 17890 eval $cacheid=yes 17891else $as_nop 17892 eval $cacheid=no 17893fi 17894rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17895 conftest$ac_exeext conftest.$ac_ext 17896fi 17897 17898 17899 CFLAGS="$xorg_testset_save_CFLAGS" 17900 17901 eval supported=\$$cacheid 17902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17903printf "%s\n" "$supported" >&6; } 17904 if test "$supported" = "yes" ; then 17905 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17906 found="yes" 17907 fi 17908 fi 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924xorg_testset_save_CFLAGS="$CFLAGS" 17925 17926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17929printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17930if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17931then : 17932 printf %s "(cached) " >&6 17933else $as_nop 17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17935/* end confdefs.h. */ 17936int i; 17937_ACEOF 17938if ac_fn_c_try_compile "$LINENO" 17939then : 17940 xorg_cv_cc_flag_unknown_warning_option=yes 17941else $as_nop 17942 xorg_cv_cc_flag_unknown_warning_option=no 17943fi 17944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17945fi 17946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17947printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17949 CFLAGS="$xorg_testset_save_CFLAGS" 17950fi 17951 17952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17955 fi 17956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17958printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17959if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17960then : 17961 printf %s "(cached) " >&6 17962else $as_nop 17963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17964/* end confdefs.h. */ 17965int i; 17966_ACEOF 17967if ac_fn_c_try_compile "$LINENO" 17968then : 17969 xorg_cv_cc_flag_unused_command_line_argument=yes 17970else $as_nop 17971 xorg_cv_cc_flag_unused_command_line_argument=no 17972fi 17973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17974fi 17975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17976printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17978 CFLAGS="$xorg_testset_save_CFLAGS" 17979fi 17980 17981found="no" 17982 17983 if test $found = "no" ; then 17984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17986 fi 17987 17988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17990 fi 17991 17992 CFLAGS="$CFLAGS -Warray-bounds" 17993 17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17995printf %s "checking if $CC supports -Warray-bounds... " >&6; } 17996 cacheid=xorg_cv_cc_flag__Warray_bounds 17997 if eval test \${$cacheid+y} 17998then : 17999 printf %s "(cached) " >&6 18000else $as_nop 18001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18002/* end confdefs.h. */ 18003int i; 18004int 18005main (void) 18006{ 18007 18008 ; 18009 return 0; 18010} 18011_ACEOF 18012if ac_fn_c_try_link "$LINENO" 18013then : 18014 eval $cacheid=yes 18015else $as_nop 18016 eval $cacheid=no 18017fi 18018rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18019 conftest$ac_exeext conftest.$ac_ext 18020fi 18021 18022 18023 CFLAGS="$xorg_testset_save_CFLAGS" 18024 18025 eval supported=\$$cacheid 18026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18027printf "%s\n" "$supported" >&6; } 18028 if test "$supported" = "yes" ; then 18029 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18030 found="yes" 18031 fi 18032 fi 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048xorg_testset_save_CFLAGS="$CFLAGS" 18049 18050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18053printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18054if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18055then : 18056 printf %s "(cached) " >&6 18057else $as_nop 18058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18059/* end confdefs.h. */ 18060int i; 18061_ACEOF 18062if ac_fn_c_try_compile "$LINENO" 18063then : 18064 xorg_cv_cc_flag_unknown_warning_option=yes 18065else $as_nop 18066 xorg_cv_cc_flag_unknown_warning_option=no 18067fi 18068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18069fi 18070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18073 CFLAGS="$xorg_testset_save_CFLAGS" 18074fi 18075 18076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18079 fi 18080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18083if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18084then : 18085 printf %s "(cached) " >&6 18086else $as_nop 18087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18088/* end confdefs.h. */ 18089int i; 18090_ACEOF 18091if ac_fn_c_try_compile "$LINENO" 18092then : 18093 xorg_cv_cc_flag_unused_command_line_argument=yes 18094else $as_nop 18095 xorg_cv_cc_flag_unused_command_line_argument=no 18096fi 18097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18098fi 18099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18100printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18102 CFLAGS="$xorg_testset_save_CFLAGS" 18103fi 18104 18105found="no" 18106 18107 if test $found = "no" ; then 18108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18110 fi 18111 18112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18114 fi 18115 18116 CFLAGS="$CFLAGS -Wwrite-strings" 18117 18118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18119printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18120 cacheid=xorg_cv_cc_flag__Wwrite_strings 18121 if eval test \${$cacheid+y} 18122then : 18123 printf %s "(cached) " >&6 18124else $as_nop 18125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18126/* end confdefs.h. */ 18127int i; 18128int 18129main (void) 18130{ 18131 18132 ; 18133 return 0; 18134} 18135_ACEOF 18136if ac_fn_c_try_link "$LINENO" 18137then : 18138 eval $cacheid=yes 18139else $as_nop 18140 eval $cacheid=no 18141fi 18142rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18143 conftest$ac_exeext conftest.$ac_ext 18144fi 18145 18146 18147 CFLAGS="$xorg_testset_save_CFLAGS" 18148 18149 eval supported=\$$cacheid 18150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18151printf "%s\n" "$supported" >&6; } 18152 if test "$supported" = "yes" ; then 18153 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18154 found="yes" 18155 fi 18156 fi 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172xorg_testset_save_CFLAGS="$CFLAGS" 18173 18174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18178if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18179then : 18180 printf %s "(cached) " >&6 18181else $as_nop 18182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18183/* end confdefs.h. */ 18184int i; 18185_ACEOF 18186if ac_fn_c_try_compile "$LINENO" 18187then : 18188 xorg_cv_cc_flag_unknown_warning_option=yes 18189else $as_nop 18190 xorg_cv_cc_flag_unknown_warning_option=no 18191fi 18192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18193fi 18194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18197 CFLAGS="$xorg_testset_save_CFLAGS" 18198fi 18199 18200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18203 fi 18204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18207if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18208then : 18209 printf %s "(cached) " >&6 18210else $as_nop 18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18212/* end confdefs.h. */ 18213int i; 18214_ACEOF 18215if ac_fn_c_try_compile "$LINENO" 18216then : 18217 xorg_cv_cc_flag_unused_command_line_argument=yes 18218else $as_nop 18219 xorg_cv_cc_flag_unused_command_line_argument=no 18220fi 18221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18222fi 18223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18226 CFLAGS="$xorg_testset_save_CFLAGS" 18227fi 18228 18229found="no" 18230 18231 if test $found = "no" ; then 18232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18234 fi 18235 18236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18238 fi 18239 18240 CFLAGS="$CFLAGS -Waddress" 18241 18242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18243printf %s "checking if $CC supports -Waddress... " >&6; } 18244 cacheid=xorg_cv_cc_flag__Waddress 18245 if eval test \${$cacheid+y} 18246then : 18247 printf %s "(cached) " >&6 18248else $as_nop 18249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18250/* end confdefs.h. */ 18251int i; 18252int 18253main (void) 18254{ 18255 18256 ; 18257 return 0; 18258} 18259_ACEOF 18260if ac_fn_c_try_link "$LINENO" 18261then : 18262 eval $cacheid=yes 18263else $as_nop 18264 eval $cacheid=no 18265fi 18266rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18267 conftest$ac_exeext conftest.$ac_ext 18268fi 18269 18270 18271 CFLAGS="$xorg_testset_save_CFLAGS" 18272 18273 eval supported=\$$cacheid 18274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18275printf "%s\n" "$supported" >&6; } 18276 if test "$supported" = "yes" ; then 18277 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18278 found="yes" 18279 fi 18280 fi 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296xorg_testset_save_CFLAGS="$CFLAGS" 18297 18298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18302if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18303then : 18304 printf %s "(cached) " >&6 18305else $as_nop 18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18307/* end confdefs.h. */ 18308int i; 18309_ACEOF 18310if ac_fn_c_try_compile "$LINENO" 18311then : 18312 xorg_cv_cc_flag_unknown_warning_option=yes 18313else $as_nop 18314 xorg_cv_cc_flag_unknown_warning_option=no 18315fi 18316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18317fi 18318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18321 CFLAGS="$xorg_testset_save_CFLAGS" 18322fi 18323 18324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18327 fi 18328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18331if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18332then : 18333 printf %s "(cached) " >&6 18334else $as_nop 18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18336/* end confdefs.h. */ 18337int i; 18338_ACEOF 18339if ac_fn_c_try_compile "$LINENO" 18340then : 18341 xorg_cv_cc_flag_unused_command_line_argument=yes 18342else $as_nop 18343 xorg_cv_cc_flag_unused_command_line_argument=no 18344fi 18345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18346fi 18347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18350 CFLAGS="$xorg_testset_save_CFLAGS" 18351fi 18352 18353found="no" 18354 18355 if test $found = "no" ; then 18356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18358 fi 18359 18360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18362 fi 18363 18364 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18365 18366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18367printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18368 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18369 if eval test \${$cacheid+y} 18370then : 18371 printf %s "(cached) " >&6 18372else $as_nop 18373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18374/* end confdefs.h. */ 18375int i; 18376int 18377main (void) 18378{ 18379 18380 ; 18381 return 0; 18382} 18383_ACEOF 18384if ac_fn_c_try_link "$LINENO" 18385then : 18386 eval $cacheid=yes 18387else $as_nop 18388 eval $cacheid=no 18389fi 18390rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18391 conftest$ac_exeext conftest.$ac_ext 18392fi 18393 18394 18395 CFLAGS="$xorg_testset_save_CFLAGS" 18396 18397 eval supported=\$$cacheid 18398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18399printf "%s\n" "$supported" >&6; } 18400 if test "$supported" = "yes" ; then 18401 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18402 found="yes" 18403 fi 18404 fi 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420xorg_testset_save_CFLAGS="$CFLAGS" 18421 18422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18426if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18427then : 18428 printf %s "(cached) " >&6 18429else $as_nop 18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18431/* end confdefs.h. */ 18432int i; 18433_ACEOF 18434if ac_fn_c_try_compile "$LINENO" 18435then : 18436 xorg_cv_cc_flag_unknown_warning_option=yes 18437else $as_nop 18438 xorg_cv_cc_flag_unknown_warning_option=no 18439fi 18440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18441fi 18442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18445 CFLAGS="$xorg_testset_save_CFLAGS" 18446fi 18447 18448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18451 fi 18452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18455if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18456then : 18457 printf %s "(cached) " >&6 18458else $as_nop 18459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18460/* end confdefs.h. */ 18461int i; 18462_ACEOF 18463if ac_fn_c_try_compile "$LINENO" 18464then : 18465 xorg_cv_cc_flag_unused_command_line_argument=yes 18466else $as_nop 18467 xorg_cv_cc_flag_unused_command_line_argument=no 18468fi 18469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18470fi 18471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18474 CFLAGS="$xorg_testset_save_CFLAGS" 18475fi 18476 18477found="no" 18478 18479 if test $found = "no" ; then 18480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18482 fi 18483 18484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18486 fi 18487 18488 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18489 18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18491printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18492 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18493 if eval test \${$cacheid+y} 18494then : 18495 printf %s "(cached) " >&6 18496else $as_nop 18497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18498/* end confdefs.h. */ 18499int i; 18500int 18501main (void) 18502{ 18503 18504 ; 18505 return 0; 18506} 18507_ACEOF 18508if ac_fn_c_try_link "$LINENO" 18509then : 18510 eval $cacheid=yes 18511else $as_nop 18512 eval $cacheid=no 18513fi 18514rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18515 conftest$ac_exeext conftest.$ac_ext 18516fi 18517 18518 18519 CFLAGS="$xorg_testset_save_CFLAGS" 18520 18521 eval supported=\$$cacheid 18522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18523printf "%s\n" "$supported" >&6; } 18524 if test "$supported" = "yes" ; then 18525 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18526 found="yes" 18527 fi 18528 fi 18529 18530 18531fi 18532 18533 18534 18535 18536 18537 18538 18539 CWARNFLAGS="$BASE_CFLAGS" 18540 if test "x$GCC" = xyes ; then 18541 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18542 fi 18543 18544 18545 18546 18547 18548 18549 18550 18551# Check whether --enable-strict-compilation was given. 18552if test ${enable_strict_compilation+y} 18553then : 18554 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18555else $as_nop 18556 STRICT_COMPILE=no 18557fi 18558 18559 18560 18561 18562 18563 18564STRICT_CFLAGS="" 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578xorg_testset_save_CFLAGS="$CFLAGS" 18579 18580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18583printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18584if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18585then : 18586 printf %s "(cached) " >&6 18587else $as_nop 18588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18589/* end confdefs.h. */ 18590int i; 18591_ACEOF 18592if ac_fn_c_try_compile "$LINENO" 18593then : 18594 xorg_cv_cc_flag_unknown_warning_option=yes 18595else $as_nop 18596 xorg_cv_cc_flag_unknown_warning_option=no 18597fi 18598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18599fi 18600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18601printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18603 CFLAGS="$xorg_testset_save_CFLAGS" 18604fi 18605 18606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18609 fi 18610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18612printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18613if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18614then : 18615 printf %s "(cached) " >&6 18616else $as_nop 18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18618/* end confdefs.h. */ 18619int i; 18620_ACEOF 18621if ac_fn_c_try_compile "$LINENO" 18622then : 18623 xorg_cv_cc_flag_unused_command_line_argument=yes 18624else $as_nop 18625 xorg_cv_cc_flag_unused_command_line_argument=no 18626fi 18627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18628fi 18629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18632 CFLAGS="$xorg_testset_save_CFLAGS" 18633fi 18634 18635found="no" 18636 18637 if test $found = "no" ; then 18638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18640 fi 18641 18642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18644 fi 18645 18646 CFLAGS="$CFLAGS -pedantic" 18647 18648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18649printf %s "checking if $CC supports -pedantic... " >&6; } 18650 cacheid=xorg_cv_cc_flag__pedantic 18651 if eval test \${$cacheid+y} 18652then : 18653 printf %s "(cached) " >&6 18654else $as_nop 18655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18656/* end confdefs.h. */ 18657int i; 18658int 18659main (void) 18660{ 18661 18662 ; 18663 return 0; 18664} 18665_ACEOF 18666if ac_fn_c_try_link "$LINENO" 18667then : 18668 eval $cacheid=yes 18669else $as_nop 18670 eval $cacheid=no 18671fi 18672rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18673 conftest$ac_exeext conftest.$ac_ext 18674fi 18675 18676 18677 CFLAGS="$xorg_testset_save_CFLAGS" 18678 18679 eval supported=\$$cacheid 18680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18681printf "%s\n" "$supported" >&6; } 18682 if test "$supported" = "yes" ; then 18683 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18684 found="yes" 18685 fi 18686 fi 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702xorg_testset_save_CFLAGS="$CFLAGS" 18703 18704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18707printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18708if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18709then : 18710 printf %s "(cached) " >&6 18711else $as_nop 18712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18713/* end confdefs.h. */ 18714int i; 18715_ACEOF 18716if ac_fn_c_try_compile "$LINENO" 18717then : 18718 xorg_cv_cc_flag_unknown_warning_option=yes 18719else $as_nop 18720 xorg_cv_cc_flag_unknown_warning_option=no 18721fi 18722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18723fi 18724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18725printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18727 CFLAGS="$xorg_testset_save_CFLAGS" 18728fi 18729 18730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18733 fi 18734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18736printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18737if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18738then : 18739 printf %s "(cached) " >&6 18740else $as_nop 18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18742/* end confdefs.h. */ 18743int i; 18744_ACEOF 18745if ac_fn_c_try_compile "$LINENO" 18746then : 18747 xorg_cv_cc_flag_unused_command_line_argument=yes 18748else $as_nop 18749 xorg_cv_cc_flag_unused_command_line_argument=no 18750fi 18751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18752fi 18753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18754printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18756 CFLAGS="$xorg_testset_save_CFLAGS" 18757fi 18758 18759found="no" 18760 18761 if test $found = "no" ; then 18762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18764 fi 18765 18766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18768 fi 18769 18770 CFLAGS="$CFLAGS -Werror" 18771 18772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18773printf %s "checking if $CC supports -Werror... " >&6; } 18774 cacheid=xorg_cv_cc_flag__Werror 18775 if eval test \${$cacheid+y} 18776then : 18777 printf %s "(cached) " >&6 18778else $as_nop 18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18780/* end confdefs.h. */ 18781int i; 18782int 18783main (void) 18784{ 18785 18786 ; 18787 return 0; 18788} 18789_ACEOF 18790if ac_fn_c_try_link "$LINENO" 18791then : 18792 eval $cacheid=yes 18793else $as_nop 18794 eval $cacheid=no 18795fi 18796rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18797 conftest$ac_exeext conftest.$ac_ext 18798fi 18799 18800 18801 CFLAGS="$xorg_testset_save_CFLAGS" 18802 18803 eval supported=\$$cacheid 18804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18805printf "%s\n" "$supported" >&6; } 18806 if test "$supported" = "yes" ; then 18807 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18808 found="yes" 18809 fi 18810 fi 18811 18812 if test $found = "no" ; then 18813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18815 fi 18816 18817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18819 fi 18820 18821 CFLAGS="$CFLAGS -errwarn" 18822 18823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18824printf %s "checking if $CC supports -errwarn... " >&6; } 18825 cacheid=xorg_cv_cc_flag__errwarn 18826 if eval test \${$cacheid+y} 18827then : 18828 printf %s "(cached) " >&6 18829else $as_nop 18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18831/* end confdefs.h. */ 18832int i; 18833int 18834main (void) 18835{ 18836 18837 ; 18838 return 0; 18839} 18840_ACEOF 18841if ac_fn_c_try_link "$LINENO" 18842then : 18843 eval $cacheid=yes 18844else $as_nop 18845 eval $cacheid=no 18846fi 18847rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18848 conftest$ac_exeext conftest.$ac_ext 18849fi 18850 18851 18852 CFLAGS="$xorg_testset_save_CFLAGS" 18853 18854 eval supported=\$$cacheid 18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18856printf "%s\n" "$supported" >&6; } 18857 if test "$supported" = "yes" ; then 18858 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18859 found="yes" 18860 fi 18861 fi 18862 18863 18864 18865# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18866# activate it with -Werror, so we add it here explicitly. 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880xorg_testset_save_CFLAGS="$CFLAGS" 18881 18882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18885printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18886if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18887then : 18888 printf %s "(cached) " >&6 18889else $as_nop 18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18891/* end confdefs.h. */ 18892int i; 18893_ACEOF 18894if ac_fn_c_try_compile "$LINENO" 18895then : 18896 xorg_cv_cc_flag_unknown_warning_option=yes 18897else $as_nop 18898 xorg_cv_cc_flag_unknown_warning_option=no 18899fi 18900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18901fi 18902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18903printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18905 CFLAGS="$xorg_testset_save_CFLAGS" 18906fi 18907 18908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18911 fi 18912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18914printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18915if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18916then : 18917 printf %s "(cached) " >&6 18918else $as_nop 18919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18920/* end confdefs.h. */ 18921int i; 18922_ACEOF 18923if ac_fn_c_try_compile "$LINENO" 18924then : 18925 xorg_cv_cc_flag_unused_command_line_argument=yes 18926else $as_nop 18927 xorg_cv_cc_flag_unused_command_line_argument=no 18928fi 18929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18930fi 18931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18932printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18934 CFLAGS="$xorg_testset_save_CFLAGS" 18935fi 18936 18937found="no" 18938 18939 if test $found = "no" ; then 18940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18942 fi 18943 18944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18946 fi 18947 18948 CFLAGS="$CFLAGS -Werror=attributes" 18949 18950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18951printf %s "checking if $CC supports -Werror=attributes... " >&6; } 18952 cacheid=xorg_cv_cc_flag__Werror_attributes 18953 if eval test \${$cacheid+y} 18954then : 18955 printf %s "(cached) " >&6 18956else $as_nop 18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18958/* end confdefs.h. */ 18959int i; 18960int 18961main (void) 18962{ 18963 18964 ; 18965 return 0; 18966} 18967_ACEOF 18968if ac_fn_c_try_link "$LINENO" 18969then : 18970 eval $cacheid=yes 18971else $as_nop 18972 eval $cacheid=no 18973fi 18974rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18975 conftest$ac_exeext conftest.$ac_ext 18976fi 18977 18978 18979 CFLAGS="$xorg_testset_save_CFLAGS" 18980 18981 eval supported=\$$cacheid 18982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18983printf "%s\n" "$supported" >&6; } 18984 if test "$supported" = "yes" ; then 18985 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18986 found="yes" 18987 fi 18988 fi 18989 18990 18991 18992if test "x$STRICT_COMPILE" = "xyes"; then 18993 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18994 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18995fi 18996 18997 18998 18999 19000 19001 19002cat >>confdefs.h <<_ACEOF 19003#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19004_ACEOF 19005 19006 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19007 if test "x$PVM" = "x"; then 19008 PVM="0" 19009 fi 19010 19011printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19012 19013 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19014 if test "x$PVP" = "x"; then 19015 PVP="0" 19016 fi 19017 19018printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19019 19020 19021 19022CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19023mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19024|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19025touch \$(top_srcdir)/ChangeLog; \ 19026echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19027 19028 19029 19030 19031macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19032INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19033mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19034|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19035touch \$(top_srcdir)/INSTALL; \ 19036echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19037 19038 19039 19040 19041 19042 19043case $host_os in 19044 solaris*) 19045 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19046 # check for a man page file found in later versions that use 19047 # traditional section numbers instead 19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19049printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19050if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19051then : 19052 printf %s "(cached) " >&6 19053else $as_nop 19054 test "$cross_compiling" = yes && 19055 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19056if test -r "/usr/share/man/man7/attributes.7"; then 19057 ac_cv_file__usr_share_man_man7_attributes_7=yes 19058else 19059 ac_cv_file__usr_share_man_man7_attributes_7=no 19060fi 19061fi 19062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19063printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19064if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19065then : 19066 SYSV_MAN_SECTIONS=false 19067else $as_nop 19068 SYSV_MAN_SECTIONS=true 19069fi 19070 19071 ;; 19072 *) SYSV_MAN_SECTIONS=false ;; 19073esac 19074 19075if test x$APP_MAN_SUFFIX = x ; then 19076 APP_MAN_SUFFIX=1 19077fi 19078if test x$APP_MAN_DIR = x ; then 19079 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19080fi 19081 19082if test x$LIB_MAN_SUFFIX = x ; then 19083 LIB_MAN_SUFFIX=3 19084fi 19085if test x$LIB_MAN_DIR = x ; then 19086 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19087fi 19088 19089if test x$FILE_MAN_SUFFIX = x ; then 19090 case $SYSV_MAN_SECTIONS in 19091 true) FILE_MAN_SUFFIX=4 ;; 19092 *) FILE_MAN_SUFFIX=5 ;; 19093 esac 19094fi 19095if test x$FILE_MAN_DIR = x ; then 19096 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19097fi 19098 19099if test x$MISC_MAN_SUFFIX = x ; then 19100 case $SYSV_MAN_SECTIONS in 19101 true) MISC_MAN_SUFFIX=5 ;; 19102 *) MISC_MAN_SUFFIX=7 ;; 19103 esac 19104fi 19105if test x$MISC_MAN_DIR = x ; then 19106 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19107fi 19108 19109if test x$DRIVER_MAN_SUFFIX = x ; then 19110 case $SYSV_MAN_SECTIONS in 19111 true) DRIVER_MAN_SUFFIX=7 ;; 19112 *) DRIVER_MAN_SUFFIX=4 ;; 19113 esac 19114fi 19115if test x$DRIVER_MAN_DIR = x ; then 19116 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19117fi 19118 19119if test x$ADMIN_MAN_SUFFIX = x ; then 19120 case $SYSV_MAN_SECTIONS in 19121 true) ADMIN_MAN_SUFFIX=1m ;; 19122 *) ADMIN_MAN_SUFFIX=8 ;; 19123 esac 19124fi 19125if test x$ADMIN_MAN_DIR = x ; then 19126 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19127fi 19128 19129 19130 19131 19132 19133 19134 19135 19136 19137 19138 19139 19140 19141 19142 19143XORG_MAN_PAGE="X Version 11" 19144 19145MAN_SUBSTS="\ 19146 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19147 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19148 -e 's|__xservername__|Xorg|g' \ 19149 -e 's|__xconfigfile__|xorg.conf|g' \ 19150 -e 's|__projectroot__|\$(prefix)|g' \ 19151 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19152 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19153 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19154 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19155 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19156 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19157 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19158 19159 19160 19161# Check whether --enable-silent-rules was given. 19162if test ${enable_silent_rules+y} 19163then : 19164 enableval=$enable_silent_rules; 19165fi 19166 19167case $enable_silent_rules in # ((( 19168 yes) AM_DEFAULT_VERBOSITY=0;; 19169 no) AM_DEFAULT_VERBOSITY=1;; 19170 *) AM_DEFAULT_VERBOSITY=0;; 19171esac 19172am_make=${MAKE-make} 19173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19174printf %s "checking whether $am_make supports nested variables... " >&6; } 19175if test ${am_cv_make_support_nested_variables+y} 19176then : 19177 printf %s "(cached) " >&6 19178else $as_nop 19179 if printf "%s\n" 'TRUE=$(BAR$(V)) 19180BAR0=false 19181BAR1=true 19182V=1 19183am__doit: 19184 @$(TRUE) 19185.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19186 am_cv_make_support_nested_variables=yes 19187else 19188 am_cv_make_support_nested_variables=no 19189fi 19190fi 19191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19192printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19193if test $am_cv_make_support_nested_variables = yes; then 19194 AM_V='$(V)' 19195 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19196else 19197 AM_V=$AM_DEFAULT_VERBOSITY 19198 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19199fi 19200AM_BACKSLASH='\' 19201 19202 19203 19204# Check presentext configuration, strip extra digits from package version to 19205# find the required protocol version 19206PRESENTEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 19207 19208 19209# Obtain compiler/linker options for dependencies 19210 19211pkg_failed=no 19212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PRESENTEXT" >&5 19213printf %s "checking for PRESENTEXT... " >&6; } 19214 19215if test -n "$PRESENTEXT_CFLAGS"; then 19216 pkg_cv_PRESENTEXT_CFLAGS="$PRESENTEXT_CFLAGS" 19217 elif test -n "$PKG_CONFIG"; then 19218 if test -n "$PKG_CONFIG" && \ 19219 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto presentproto >= \$PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr\""; } >&5 19220 ($PKG_CONFIG --exists --print-errors "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr") 2>&5 19221 ac_status=$? 19222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19223 test $ac_status = 0; }; then 19224 pkg_cv_PRESENTEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr" 2>/dev/null` 19225 test "x$?" != "x0" && pkg_failed=yes 19226else 19227 pkg_failed=yes 19228fi 19229 else 19230 pkg_failed=untried 19231fi 19232if test -n "$PRESENTEXT_LIBS"; then 19233 pkg_cv_PRESENTEXT_LIBS="$PRESENTEXT_LIBS" 19234 elif test -n "$PKG_CONFIG"; then 19235 if test -n "$PKG_CONFIG" && \ 19236 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto presentproto >= \$PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr\""; } >&5 19237 ($PKG_CONFIG --exists --print-errors "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr") 2>&5 19238 ac_status=$? 19239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19240 test $ac_status = 0; }; then 19241 pkg_cv_PRESENTEXT_LIBS=`$PKG_CONFIG --libs "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr" 2>/dev/null` 19242 test "x$?" != "x0" && pkg_failed=yes 19243else 19244 pkg_failed=yes 19245fi 19246 else 19247 pkg_failed=untried 19248fi 19249 19250 19251 19252if test $pkg_failed = yes; then 19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19254printf "%s\n" "no" >&6; } 19255 19256if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19257 _pkg_short_errors_supported=yes 19258else 19259 _pkg_short_errors_supported=no 19260fi 19261 if test $_pkg_short_errors_supported = yes; then 19262 PRESENTEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr" 2>&1` 19263 else 19264 PRESENTEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr" 2>&1` 19265 fi 19266 # Put the nasty error message in config.log where it belongs 19267 echo "$PRESENTEXT_PKG_ERRORS" >&5 19268 19269 as_fn_error $? "Package requirements (xproto presentproto >= $PRESENTEXT_VERSION xextproto x11 xext xfixes xrandr) were not met: 19270 19271$PRESENTEXT_PKG_ERRORS 19272 19273Consider adjusting the PKG_CONFIG_PATH environment variable if you 19274installed software in a non-standard prefix. 19275 19276Alternatively, you may set the environment variables PRESENTEXT_CFLAGS 19277and PRESENTEXT_LIBS to avoid the need to call pkg-config. 19278See the pkg-config man page for more details." "$LINENO" 5 19279elif test $pkg_failed = untried; then 19280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19281printf "%s\n" "no" >&6; } 19282 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19283printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19284as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19285is in your PATH or set the PKG_CONFIG environment variable to the full 19286path to pkg-config. 19287 19288Alternatively, you may set the environment variables PRESENTEXT_CFLAGS 19289and PRESENTEXT_LIBS to avoid the need to call pkg-config. 19290See the pkg-config man page for more details. 19291 19292To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19293See \`config.log' for more details" "$LINENO" 5; } 19294else 19295 PRESENTEXT_CFLAGS=$pkg_cv_PRESENTEXT_CFLAGS 19296 PRESENTEXT_LIBS=$pkg_cv_PRESENTEXT_LIBS 19297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19298printf "%s\n" "yes" >&6; } 19299 19300fi 19301 19302ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xpresent.pc" 19303 19304cat >confcache <<\_ACEOF 19305# This file is a shell script that caches the results of configure 19306# tests run on this system so they can be shared between configure 19307# scripts and configure runs, see configure's option --config-cache. 19308# It is not useful on other systems. If it contains results you don't 19309# want to keep, you may remove or edit it. 19310# 19311# config.status only pays attention to the cache file if you give it 19312# the --recheck option to rerun configure. 19313# 19314# `ac_cv_env_foo' variables (set or unset) will be overridden when 19315# loading this file, other *unset* `ac_cv_foo' will be assigned the 19316# following values. 19317 19318_ACEOF 19319 19320# The following way of writing the cache mishandles newlines in values, 19321# but we know of no workaround that is simple, portable, and efficient. 19322# So, we kill variables containing newlines. 19323# Ultrix sh set writes to stderr and can't be redirected directly, 19324# and sets the high bit in the cache file unless we assign to the vars. 19325( 19326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19327 eval ac_val=\$$ac_var 19328 case $ac_val in #( 19329 *${as_nl}*) 19330 case $ac_var in #( 19331 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19332printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19333 esac 19334 case $ac_var in #( 19335 _ | IFS | as_nl) ;; #( 19336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19337 *) { eval $ac_var=; unset $ac_var;} ;; 19338 esac ;; 19339 esac 19340 done 19341 19342 (set) 2>&1 | 19343 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19344 *${as_nl}ac_space=\ *) 19345 # `set' does not quote correctly, so add quotes: double-quote 19346 # substitution turns \\\\ into \\, and sed turns \\ into \. 19347 sed -n \ 19348 "s/'/'\\\\''/g; 19349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19350 ;; #( 19351 *) 19352 # `set' quotes correctly as required by POSIX, so do not add quotes. 19353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19354 ;; 19355 esac | 19356 sort 19357) | 19358 sed ' 19359 /^ac_cv_env_/b end 19360 t clear 19361 :clear 19362 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19363 t end 19364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19365 :end' >>confcache 19366if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19367 if test -w "$cache_file"; then 19368 if test "x$cache_file" != "x/dev/null"; then 19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19370printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19371 if test ! -f "$cache_file" || test -h "$cache_file"; then 19372 cat confcache >"$cache_file" 19373 else 19374 case $cache_file in #( 19375 */* | ?:*) 19376 mv -f confcache "$cache_file"$$ && 19377 mv -f "$cache_file"$$ "$cache_file" ;; #( 19378 *) 19379 mv -f confcache "$cache_file" ;; 19380 esac 19381 fi 19382 fi 19383 else 19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19385printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19386 fi 19387fi 19388rm -f confcache 19389 19390test "x$prefix" = xNONE && prefix=$ac_default_prefix 19391# Let make expand exec_prefix. 19392test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19393 19394DEFS=-DHAVE_CONFIG_H 19395 19396ac_libobjs= 19397ac_ltlibobjs= 19398U= 19399for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19400 # 1. Remove the extension, and $U if already installed. 19401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19402 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19404 # will be set to the directory where LIBOBJS objects are built. 19405 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19406 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19407done 19408LIBOBJS=$ac_libobjs 19409 19410LTLIBOBJS=$ac_ltlibobjs 19411 19412 19413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19414printf %s "checking that generated files are newer than configure... " >&6; } 19415 if test -n "$am_sleep_pid"; then 19416 # Hide warnings about reused PIDs. 19417 wait $am_sleep_pid 2>/dev/null 19418 fi 19419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19420printf "%s\n" "done" >&6; } 19421 if test -n "$EXEEXT"; then 19422 am__EXEEXT_TRUE= 19423 am__EXEEXT_FALSE='#' 19424else 19425 am__EXEEXT_TRUE='#' 19426 am__EXEEXT_FALSE= 19427fi 19428 19429if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19430 as_fn_error $? "conditional \"AMDEP\" was never defined. 19431Usually this means the macro was only invoked conditionally." "$LINENO" 5 19432fi 19433if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19434 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19435Usually this means the macro was only invoked conditionally." "$LINENO" 5 19436fi 19437 19438: "${CONFIG_STATUS=./config.status}" 19439ac_write_fail=0 19440ac_clean_files_save=$ac_clean_files 19441ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19443printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19444as_write_fail=0 19445cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19446#! $SHELL 19447# Generated by $as_me. 19448# Run this file to recreate the current configuration. 19449# Compiler output produced by configure, useful for debugging 19450# configure, is in config.log if it exists. 19451 19452debug=false 19453ac_cs_recheck=false 19454ac_cs_silent=false 19455 19456SHELL=\${CONFIG_SHELL-$SHELL} 19457export SHELL 19458_ASEOF 19459cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19460## -------------------- ## 19461## M4sh Initialization. ## 19462## -------------------- ## 19463 19464# Be more Bourne compatible 19465DUALCASE=1; export DUALCASE # for MKS sh 19466as_nop=: 19467if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19468then : 19469 emulate sh 19470 NULLCMD=: 19471 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19472 # is contrary to our usage. Disable this feature. 19473 alias -g '${1+"$@"}'='"$@"' 19474 setopt NO_GLOB_SUBST 19475else $as_nop 19476 case `(set -o) 2>/dev/null` in #( 19477 *posix*) : 19478 set -o posix ;; #( 19479 *) : 19480 ;; 19481esac 19482fi 19483 19484 19485 19486# Reset variables that may have inherited troublesome values from 19487# the environment. 19488 19489# IFS needs to be set, to space, tab, and newline, in precisely that order. 19490# (If _AS_PATH_WALK were called with IFS unset, it would have the 19491# side effect of setting IFS to empty, thus disabling word splitting.) 19492# Quoting is to prevent editors from complaining about space-tab. 19493as_nl=' 19494' 19495export as_nl 19496IFS=" "" $as_nl" 19497 19498PS1='$ ' 19499PS2='> ' 19500PS4='+ ' 19501 19502# Ensure predictable behavior from utilities with locale-dependent output. 19503LC_ALL=C 19504export LC_ALL 19505LANGUAGE=C 19506export LANGUAGE 19507 19508# We cannot yet rely on "unset" to work, but we need these variables 19509# to be unset--not just set to an empty or harmless value--now, to 19510# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19511# also avoids known problems related to "unset" and subshell syntax 19512# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19513for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19514do eval test \${$as_var+y} \ 19515 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19516done 19517 19518# Ensure that fds 0, 1, and 2 are open. 19519if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19520if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19521if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19522 19523# The user is always right. 19524if ${PATH_SEPARATOR+false} :; then 19525 PATH_SEPARATOR=: 19526 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19527 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19528 PATH_SEPARATOR=';' 19529 } 19530fi 19531 19532 19533# Find who we are. Look in the path if we contain no directory separator. 19534as_myself= 19535case $0 in #(( 19536 *[\\/]* ) as_myself=$0 ;; 19537 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19538for as_dir in $PATH 19539do 19540 IFS=$as_save_IFS 19541 case $as_dir in #((( 19542 '') as_dir=./ ;; 19543 */) ;; 19544 *) as_dir=$as_dir/ ;; 19545 esac 19546 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19547 done 19548IFS=$as_save_IFS 19549 19550 ;; 19551esac 19552# We did not find ourselves, most probably we were run as `sh COMMAND' 19553# in which case we are not to be found in the path. 19554if test "x$as_myself" = x; then 19555 as_myself=$0 19556fi 19557if test ! -f "$as_myself"; then 19558 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19559 exit 1 19560fi 19561 19562 19563 19564# as_fn_error STATUS ERROR [LINENO LOG_FD] 19565# ---------------------------------------- 19566# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19567# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19568# script with STATUS, using 1 if that was 0. 19569as_fn_error () 19570{ 19571 as_status=$1; test $as_status -eq 0 && as_status=1 19572 if test "$4"; then 19573 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19575 fi 19576 printf "%s\n" "$as_me: error: $2" >&2 19577 as_fn_exit $as_status 19578} # as_fn_error 19579 19580 19581 19582# as_fn_set_status STATUS 19583# ----------------------- 19584# Set $? to STATUS, without forking. 19585as_fn_set_status () 19586{ 19587 return $1 19588} # as_fn_set_status 19589 19590# as_fn_exit STATUS 19591# ----------------- 19592# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19593as_fn_exit () 19594{ 19595 set +e 19596 as_fn_set_status $1 19597 exit $1 19598} # as_fn_exit 19599 19600# as_fn_unset VAR 19601# --------------- 19602# Portably unset VAR. 19603as_fn_unset () 19604{ 19605 { eval $1=; unset $1;} 19606} 19607as_unset=as_fn_unset 19608 19609# as_fn_append VAR VALUE 19610# ---------------------- 19611# Append the text in VALUE to the end of the definition contained in VAR. Take 19612# advantage of any shell optimizations that allow amortized linear growth over 19613# repeated appends, instead of the typical quadratic growth present in naive 19614# implementations. 19615if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19616then : 19617 eval 'as_fn_append () 19618 { 19619 eval $1+=\$2 19620 }' 19621else $as_nop 19622 as_fn_append () 19623 { 19624 eval $1=\$$1\$2 19625 } 19626fi # as_fn_append 19627 19628# as_fn_arith ARG... 19629# ------------------ 19630# Perform arithmetic evaluation on the ARGs, and store the result in the 19631# global $as_val. Take advantage of shells that can avoid forks. The arguments 19632# must be portable across $(()) and expr. 19633if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19634then : 19635 eval 'as_fn_arith () 19636 { 19637 as_val=$(( $* )) 19638 }' 19639else $as_nop 19640 as_fn_arith () 19641 { 19642 as_val=`expr "$@" || test $? -eq 1` 19643 } 19644fi # as_fn_arith 19645 19646 19647if expr a : '\(a\)' >/dev/null 2>&1 && 19648 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19649 as_expr=expr 19650else 19651 as_expr=false 19652fi 19653 19654if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19655 as_basename=basename 19656else 19657 as_basename=false 19658fi 19659 19660if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19661 as_dirname=dirname 19662else 19663 as_dirname=false 19664fi 19665 19666as_me=`$as_basename -- "$0" || 19667$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19668 X"$0" : 'X\(//\)$' \| \ 19669 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19670printf "%s\n" X/"$0" | 19671 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19672 s//\1/ 19673 q 19674 } 19675 /^X\/\(\/\/\)$/{ 19676 s//\1/ 19677 q 19678 } 19679 /^X\/\(\/\).*/{ 19680 s//\1/ 19681 q 19682 } 19683 s/.*/./; q'` 19684 19685# Avoid depending upon Character Ranges. 19686as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19687as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19688as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19689as_cr_digits='0123456789' 19690as_cr_alnum=$as_cr_Letters$as_cr_digits 19691 19692 19693# Determine whether it's possible to make 'echo' print without a newline. 19694# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19695# for compatibility with existing Makefiles. 19696ECHO_C= ECHO_N= ECHO_T= 19697case `echo -n x` in #((((( 19698-n*) 19699 case `echo 'xy\c'` in 19700 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19701 xy) ECHO_C='\c';; 19702 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19703 ECHO_T=' ';; 19704 esac;; 19705*) 19706 ECHO_N='-n';; 19707esac 19708 19709# For backward compatibility with old third-party macros, we provide 19710# the shell variables $as_echo and $as_echo_n. New code should use 19711# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19712as_echo='printf %s\n' 19713as_echo_n='printf %s' 19714 19715rm -f conf$$ conf$$.exe conf$$.file 19716if test -d conf$$.dir; then 19717 rm -f conf$$.dir/conf$$.file 19718else 19719 rm -f conf$$.dir 19720 mkdir conf$$.dir 2>/dev/null 19721fi 19722if (echo >conf$$.file) 2>/dev/null; then 19723 if ln -s conf$$.file conf$$ 2>/dev/null; then 19724 as_ln_s='ln -s' 19725 # ... but there are two gotchas: 19726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19728 # In both cases, we have to default to `cp -pR'. 19729 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19730 as_ln_s='cp -pR' 19731 elif ln conf$$.file conf$$ 2>/dev/null; then 19732 as_ln_s=ln 19733 else 19734 as_ln_s='cp -pR' 19735 fi 19736else 19737 as_ln_s='cp -pR' 19738fi 19739rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19740rmdir conf$$.dir 2>/dev/null 19741 19742 19743# as_fn_mkdir_p 19744# ------------- 19745# Create "$as_dir" as a directory, including parents if necessary. 19746as_fn_mkdir_p () 19747{ 19748 19749 case $as_dir in #( 19750 -*) as_dir=./$as_dir;; 19751 esac 19752 test -d "$as_dir" || eval $as_mkdir_p || { 19753 as_dirs= 19754 while :; do 19755 case $as_dir in #( 19756 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19757 *) as_qdir=$as_dir;; 19758 esac 19759 as_dirs="'$as_qdir' $as_dirs" 19760 as_dir=`$as_dirname -- "$as_dir" || 19761$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19762 X"$as_dir" : 'X\(//\)[^/]' \| \ 19763 X"$as_dir" : 'X\(//\)$' \| \ 19764 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19765printf "%s\n" X"$as_dir" | 19766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19767 s//\1/ 19768 q 19769 } 19770 /^X\(\/\/\)[^/].*/{ 19771 s//\1/ 19772 q 19773 } 19774 /^X\(\/\/\)$/{ 19775 s//\1/ 19776 q 19777 } 19778 /^X\(\/\).*/{ 19779 s//\1/ 19780 q 19781 } 19782 s/.*/./; q'` 19783 test -d "$as_dir" && break 19784 done 19785 test -z "$as_dirs" || eval "mkdir $as_dirs" 19786 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19787 19788 19789} # as_fn_mkdir_p 19790if mkdir -p . 2>/dev/null; then 19791 as_mkdir_p='mkdir -p "$as_dir"' 19792else 19793 test -d ./-p && rmdir ./-p 19794 as_mkdir_p=false 19795fi 19796 19797 19798# as_fn_executable_p FILE 19799# ----------------------- 19800# Test if FILE is an executable regular file. 19801as_fn_executable_p () 19802{ 19803 test -f "$1" && test -x "$1" 19804} # as_fn_executable_p 19805as_test_x='test -x' 19806as_executable_p=as_fn_executable_p 19807 19808# Sed expression to map a string onto a valid CPP name. 19809as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19810 19811# Sed expression to map a string onto a valid variable name. 19812as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19813 19814 19815exec 6>&1 19816## ----------------------------------- ## 19817## Main body of $CONFIG_STATUS script. ## 19818## ----------------------------------- ## 19819_ASEOF 19820test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19821 19822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19823# Save the log message, to keep $0 and so on meaningful, and to 19824# report actual input values of CONFIG_FILES etc. instead of their 19825# values after options handling. 19826ac_log=" 19827This file was extended by libXpresent $as_me 1.0.1, which was 19828generated by GNU Autoconf 2.71. Invocation command line was 19829 19830 CONFIG_FILES = $CONFIG_FILES 19831 CONFIG_HEADERS = $CONFIG_HEADERS 19832 CONFIG_LINKS = $CONFIG_LINKS 19833 CONFIG_COMMANDS = $CONFIG_COMMANDS 19834 $ $0 $@ 19835 19836on `(hostname || uname -n) 2>/dev/null | sed 1q` 19837" 19838 19839_ACEOF 19840 19841case $ac_config_files in *" 19842"*) set x $ac_config_files; shift; ac_config_files=$*;; 19843esac 19844 19845case $ac_config_headers in *" 19846"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19847esac 19848 19849 19850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19851# Files that config.status was made for. 19852config_files="$ac_config_files" 19853config_headers="$ac_config_headers" 19854config_commands="$ac_config_commands" 19855 19856_ACEOF 19857 19858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19859ac_cs_usage="\ 19860\`$as_me' instantiates files and other configuration actions 19861from templates according to the current configuration. Unless the files 19862and actions are specified as TAGs, all are instantiated by default. 19863 19864Usage: $0 [OPTION]... [TAG]... 19865 19866 -h, --help print this help, then exit 19867 -V, --version print version number and configuration settings, then exit 19868 --config print configuration, then exit 19869 -q, --quiet, --silent 19870 do not print progress messages 19871 -d, --debug don't remove temporary files 19872 --recheck update $as_me by reconfiguring in the same conditions 19873 --file=FILE[:TEMPLATE] 19874 instantiate the configuration file FILE 19875 --header=FILE[:TEMPLATE] 19876 instantiate the configuration header FILE 19877 19878Configuration files: 19879$config_files 19880 19881Configuration headers: 19882$config_headers 19883 19884Configuration commands: 19885$config_commands 19886 19887Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpresent/-/issues>." 19888 19889_ACEOF 19890ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 19891ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 19892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19893ac_cs_config='$ac_cs_config_escaped' 19894ac_cs_version="\\ 19895libXpresent config.status 1.0.1 19896configured by $0, generated by GNU Autoconf 2.71, 19897 with options \\"\$ac_cs_config\\" 19898 19899Copyright (C) 2021 Free Software Foundation, Inc. 19900This config.status script is free software; the Free Software Foundation 19901gives unlimited permission to copy, distribute and modify it." 19902 19903ac_pwd='$ac_pwd' 19904srcdir='$srcdir' 19905INSTALL='$INSTALL' 19906MKDIR_P='$MKDIR_P' 19907AWK='$AWK' 19908test -n "\$AWK" || AWK=awk 19909_ACEOF 19910 19911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19912# The default lists apply if the user does not specify any file. 19913ac_need_defaults=: 19914while test $# != 0 19915do 19916 case $1 in 19917 --*=?*) 19918 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19919 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19920 ac_shift=: 19921 ;; 19922 --*=) 19923 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19924 ac_optarg= 19925 ac_shift=: 19926 ;; 19927 *) 19928 ac_option=$1 19929 ac_optarg=$2 19930 ac_shift=shift 19931 ;; 19932 esac 19933 19934 case $ac_option in 19935 # Handling of the options. 19936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19937 ac_cs_recheck=: ;; 19938 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19939 printf "%s\n" "$ac_cs_version"; exit ;; 19940 --config | --confi | --conf | --con | --co | --c ) 19941 printf "%s\n" "$ac_cs_config"; exit ;; 19942 --debug | --debu | --deb | --de | --d | -d ) 19943 debug=: ;; 19944 --file | --fil | --fi | --f ) 19945 $ac_shift 19946 case $ac_optarg in 19947 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19948 '') as_fn_error $? "missing file argument" ;; 19949 esac 19950 as_fn_append CONFIG_FILES " '$ac_optarg'" 19951 ac_need_defaults=false;; 19952 --header | --heade | --head | --hea ) 19953 $ac_shift 19954 case $ac_optarg in 19955 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19956 esac 19957 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19958 ac_need_defaults=false;; 19959 --he | --h) 19960 # Conflict between --help and --header 19961 as_fn_error $? "ambiguous option: \`$1' 19962Try \`$0 --help' for more information.";; 19963 --help | --hel | -h ) 19964 printf "%s\n" "$ac_cs_usage"; exit ;; 19965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19966 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19967 ac_cs_silent=: ;; 19968 19969 # This is an error. 19970 -*) as_fn_error $? "unrecognized option: \`$1' 19971Try \`$0 --help' for more information." ;; 19972 19973 *) as_fn_append ac_config_targets " $1" 19974 ac_need_defaults=false ;; 19975 19976 esac 19977 shift 19978done 19979 19980ac_configure_extra_args= 19981 19982if $ac_cs_silent; then 19983 exec 6>/dev/null 19984 ac_configure_extra_args="$ac_configure_extra_args --silent" 19985fi 19986 19987_ACEOF 19988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19989if \$ac_cs_recheck; then 19990 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19991 shift 19992 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 19993 CONFIG_SHELL='$SHELL' 19994 export CONFIG_SHELL 19995 exec "\$@" 19996fi 19997 19998_ACEOF 19999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20000exec 5>>config.log 20001{ 20002 echo 20003 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20004## Running $as_me. ## 20005_ASBOX 20006 printf "%s\n" "$ac_log" 20007} >&5 20008 20009_ACEOF 20010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20011# 20012# INIT-COMMANDS 20013# 20014AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20015 20016 20017# The HP-UX ksh and POSIX shell print the target directory to stdout 20018# if CDPATH is set. 20019(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20020 20021sed_quote_subst='$sed_quote_subst' 20022double_quote_subst='$double_quote_subst' 20023delay_variable_subst='$delay_variable_subst' 20024macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20025macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20026enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20027enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20028pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20029enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20030shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20031SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20032ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20033PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20034host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20035host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20036host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20037build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20038build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20039build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20040SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20041Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20042GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20043EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20044FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20045LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20046NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20047LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20048max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20049ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20050exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20051lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20052lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20053lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20054lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20055lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20056reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20057reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20058FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20059OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20060deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20061file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20062file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20063want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20064DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20065sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20066AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20067lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20068AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20069archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20070STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20071RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20072old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20073old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20074old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20075lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20076CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20077CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20078compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20079GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20080lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20081lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20082lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20083lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20084lt_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"`' 20085lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20086nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20087lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20088lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20089objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20090MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20091lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20092lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20093lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20094lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20095lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20096need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20097MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20098DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20099NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20100LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20101OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20102OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20103libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20104shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20105extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20106archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20107enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20108export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20109whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20110compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20111old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20112old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20113archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20114archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20115module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20116module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20117with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20118allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20119no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20120hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20121hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20122hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20123hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20124hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20125hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20126hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20127inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20128link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20129always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20130export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20131exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20132include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20133prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20134postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20135file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20136variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20137need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20138need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20139version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20140runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20141shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20142shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20143libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20144library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20145soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20146install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20147postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20148postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20149finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20150finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20151hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20152sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20153configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20154configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20155hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20156enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20157enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20158enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20159old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20160striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20161 20162LTCC='$LTCC' 20163LTCFLAGS='$LTCFLAGS' 20164compiler='$compiler_DEFAULT' 20165 20166# A function that is used when there is no print builtin or printf. 20167func_fallback_echo () 20168{ 20169 eval 'cat <<_LTECHO_EOF 20170\$1 20171_LTECHO_EOF' 20172} 20173 20174# Quote evaled strings. 20175for var in SHELL \ 20176ECHO \ 20177PATH_SEPARATOR \ 20178SED \ 20179GREP \ 20180EGREP \ 20181FGREP \ 20182LD \ 20183NM \ 20184LN_S \ 20185lt_SP2NL \ 20186lt_NL2SP \ 20187reload_flag \ 20188FILECMD \ 20189OBJDUMP \ 20190deplibs_check_method \ 20191file_magic_cmd \ 20192file_magic_glob \ 20193want_nocaseglob \ 20194DLLTOOL \ 20195sharedlib_from_linklib_cmd \ 20196AR \ 20197archiver_list_spec \ 20198STRIP \ 20199RANLIB \ 20200CC \ 20201CFLAGS \ 20202compiler \ 20203lt_cv_sys_global_symbol_pipe \ 20204lt_cv_sys_global_symbol_to_cdecl \ 20205lt_cv_sys_global_symbol_to_import \ 20206lt_cv_sys_global_symbol_to_c_name_address \ 20207lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20208lt_cv_nm_interface \ 20209nm_file_list_spec \ 20210lt_cv_truncate_bin \ 20211lt_prog_compiler_no_builtin_flag \ 20212lt_prog_compiler_pic \ 20213lt_prog_compiler_wl \ 20214lt_prog_compiler_static \ 20215lt_cv_prog_compiler_c_o \ 20216need_locks \ 20217MANIFEST_TOOL \ 20218DSYMUTIL \ 20219NMEDIT \ 20220LIPO \ 20221OTOOL \ 20222OTOOL64 \ 20223shrext_cmds \ 20224export_dynamic_flag_spec \ 20225whole_archive_flag_spec \ 20226compiler_needs_object \ 20227with_gnu_ld \ 20228allow_undefined_flag \ 20229no_undefined_flag \ 20230hardcode_libdir_flag_spec \ 20231hardcode_libdir_separator \ 20232exclude_expsyms \ 20233include_expsyms \ 20234file_list_spec \ 20235variables_saved_for_relink \ 20236libname_spec \ 20237library_names_spec \ 20238soname_spec \ 20239install_override_mode \ 20240finish_eval \ 20241old_striplib \ 20242striplib; do 20243 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20244 *[\\\\\\\`\\"\\\$]*) 20245 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20246 ;; 20247 *) 20248 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20249 ;; 20250 esac 20251done 20252 20253# Double-quote double-evaled strings. 20254for var in reload_cmds \ 20255old_postinstall_cmds \ 20256old_postuninstall_cmds \ 20257old_archive_cmds \ 20258extract_expsyms_cmds \ 20259old_archive_from_new_cmds \ 20260old_archive_from_expsyms_cmds \ 20261archive_cmds \ 20262archive_expsym_cmds \ 20263module_cmds \ 20264module_expsym_cmds \ 20265export_symbols_cmds \ 20266prelink_cmds \ 20267postlink_cmds \ 20268postinstall_cmds \ 20269postuninstall_cmds \ 20270finish_cmds \ 20271sys_lib_search_path_spec \ 20272configure_time_dlsearch_path \ 20273configure_time_lt_sys_library_path; do 20274 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20275 *[\\\\\\\`\\"\\\$]*) 20276 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20277 ;; 20278 *) 20279 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20280 ;; 20281 esac 20282done 20283 20284ac_aux_dir='$ac_aux_dir' 20285 20286# See if we are running on zsh, and set the options that allow our 20287# commands through without removal of \ escapes INIT. 20288if test -n "\${ZSH_VERSION+set}"; then 20289 setopt NO_GLOB_SUBST 20290fi 20291 20292 20293 PACKAGE='$PACKAGE' 20294 VERSION='$VERSION' 20295 RM='$RM' 20296 ofile='$ofile' 20297 20298 20299 20300 20301_ACEOF 20302 20303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20304 20305# Handling of arguments. 20306for ac_config_target in $ac_config_targets 20307do 20308 case $ac_config_target in 20309 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20310 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20311 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20312 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20313 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20314 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20315 "xpresent.pc") CONFIG_FILES="$CONFIG_FILES xpresent.pc" ;; 20316 20317 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20318 esac 20319done 20320 20321 20322# If the user did not use the arguments to specify the items to instantiate, 20323# then the envvar interface is used. Set only those that are not. 20324# We use the long form for the default assignment because of an extremely 20325# bizarre bug on SunOS 4.1.3. 20326if $ac_need_defaults; then 20327 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20328 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20329 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20330fi 20331 20332# Have a temporary directory for convenience. Make it in the build tree 20333# simply because there is no reason against having it here, and in addition, 20334# creating and moving files from /tmp can sometimes cause problems. 20335# Hook for its removal unless debugging. 20336# Note that there is a small window in which the directory will not be cleaned: 20337# after its creation but before its name has been assigned to `$tmp'. 20338$debug || 20339{ 20340 tmp= ac_tmp= 20341 trap 'exit_status=$? 20342 : "${ac_tmp:=$tmp}" 20343 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20344' 0 20345 trap 'as_fn_exit 1' 1 2 13 15 20346} 20347# Create a (secure) tmp directory for tmp files. 20348 20349{ 20350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20351 test -d "$tmp" 20352} || 20353{ 20354 tmp=./conf$$-$RANDOM 20355 (umask 077 && mkdir "$tmp") 20356} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20357ac_tmp=$tmp 20358 20359# Set up the scripts for CONFIG_FILES section. 20360# No need to generate them if there are no CONFIG_FILES. 20361# This happens for instance with `./config.status config.h'. 20362if test -n "$CONFIG_FILES"; then 20363 20364 20365ac_cr=`echo X | tr X '\015'` 20366# On cygwin, bash can eat \r inside `` if the user requested igncr. 20367# But we know of no other shell where ac_cr would be empty at this 20368# point, so we can use a bashism as a fallback. 20369if test "x$ac_cr" = x; then 20370 eval ac_cr=\$\'\\r\' 20371fi 20372ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20373if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20374 ac_cs_awk_cr='\\r' 20375else 20376 ac_cs_awk_cr=$ac_cr 20377fi 20378 20379echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20380_ACEOF 20381 20382 20383{ 20384 echo "cat >conf$$subs.awk <<_ACEOF" && 20385 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20386 echo "_ACEOF" 20387} >conf$$subs.sh || 20388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20389ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20390ac_delim='%!_!# ' 20391for ac_last_try in false false false false false :; do 20392 . ./conf$$subs.sh || 20393 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20394 20395 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20396 if test $ac_delim_n = $ac_delim_num; then 20397 break 20398 elif $ac_last_try; then 20399 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20400 else 20401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20402 fi 20403done 20404rm -f conf$$subs.sh 20405 20406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20407cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20408_ACEOF 20409sed -n ' 20410h 20411s/^/S["/; s/!.*/"]=/ 20412p 20413g 20414s/^[^!]*!// 20415:repl 20416t repl 20417s/'"$ac_delim"'$// 20418t delim 20419:nl 20420h 20421s/\(.\{148\}\)..*/\1/ 20422t more1 20423s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20424p 20425n 20426b repl 20427:more1 20428s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20429p 20430g 20431s/.\{148\}// 20432t nl 20433:delim 20434h 20435s/\(.\{148\}\)..*/\1/ 20436t more2 20437s/["\\]/\\&/g; s/^/"/; s/$/"/ 20438p 20439b 20440:more2 20441s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20442p 20443g 20444s/.\{148\}// 20445t delim 20446' <conf$$subs.awk | sed ' 20447/^[^""]/{ 20448 N 20449 s/\n// 20450} 20451' >>$CONFIG_STATUS || ac_write_fail=1 20452rm -f conf$$subs.awk 20453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20454_ACAWK 20455cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20456 for (key in S) S_is_set[key] = 1 20457 FS = "" 20458 20459} 20460{ 20461 line = $ 0 20462 nfields = split(line, field, "@") 20463 substed = 0 20464 len = length(field[1]) 20465 for (i = 2; i < nfields; i++) { 20466 key = field[i] 20467 keylen = length(key) 20468 if (S_is_set[key]) { 20469 value = S[key] 20470 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20471 len += length(value) + length(field[++i]) 20472 substed = 1 20473 } else 20474 len += 1 + keylen 20475 } 20476 20477 print line 20478} 20479 20480_ACAWK 20481_ACEOF 20482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20483if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20485else 20486 cat 20487fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20488 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20489_ACEOF 20490 20491# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20492# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20493# trailing colons and then remove the whole line if VPATH becomes empty 20494# (actually we leave an empty line to preserve line numbers). 20495if test "x$srcdir" = x.; then 20496 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20497h 20498s/// 20499s/^/:/ 20500s/[ ]*$/:/ 20501s/:\$(srcdir):/:/g 20502s/:\${srcdir}:/:/g 20503s/:@srcdir@:/:/g 20504s/^:*// 20505s/:*$// 20506x 20507s/\(=[ ]*\).*/\1/ 20508G 20509s/\n// 20510s/^[^=]*=[ ]*$// 20511}' 20512fi 20513 20514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20515fi # test -n "$CONFIG_FILES" 20516 20517# Set up the scripts for CONFIG_HEADERS section. 20518# No need to generate them if there are no CONFIG_HEADERS. 20519# This happens for instance with `./config.status Makefile'. 20520if test -n "$CONFIG_HEADERS"; then 20521cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20522BEGIN { 20523_ACEOF 20524 20525# Transform confdefs.h into an awk script `defines.awk', embedded as 20526# here-document in config.status, that substitutes the proper values into 20527# config.h.in to produce config.h. 20528 20529# Create a delimiter string that does not exist in confdefs.h, to ease 20530# handling of long lines. 20531ac_delim='%!_!# ' 20532for ac_last_try in false false :; do 20533 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20534 if test -z "$ac_tt"; then 20535 break 20536 elif $ac_last_try; then 20537 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20538 else 20539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20540 fi 20541done 20542 20543# For the awk script, D is an array of macro values keyed by name, 20544# likewise P contains macro parameters if any. Preserve backslash 20545# newline sequences. 20546 20547ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20548sed -n ' 20549s/.\{148\}/&'"$ac_delim"'/g 20550t rset 20551:rset 20552s/^[ ]*#[ ]*define[ ][ ]*/ / 20553t def 20554d 20555:def 20556s/\\$// 20557t bsnl 20558s/["\\]/\\&/g 20559s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20560D["\1"]=" \3"/p 20561s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20562d 20563:bsnl 20564s/["\\]/\\&/g 20565s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20566D["\1"]=" \3\\\\\\n"\\/p 20567t cont 20568s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20569t cont 20570d 20571:cont 20572n 20573s/.\{148\}/&'"$ac_delim"'/g 20574t clear 20575:clear 20576s/\\$// 20577t bsnlc 20578s/["\\]/\\&/g; s/^/"/; s/$/"/p 20579d 20580:bsnlc 20581s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20582b cont 20583' <confdefs.h | sed ' 20584s/'"$ac_delim"'/"\\\ 20585"/g' >>$CONFIG_STATUS || ac_write_fail=1 20586 20587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20588 for (key in D) D_is_set[key] = 1 20589 FS = "" 20590} 20591/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20592 line = \$ 0 20593 split(line, arg, " ") 20594 if (arg[1] == "#") { 20595 defundef = arg[2] 20596 mac1 = arg[3] 20597 } else { 20598 defundef = substr(arg[1], 2) 20599 mac1 = arg[2] 20600 } 20601 split(mac1, mac2, "(") #) 20602 macro = mac2[1] 20603 prefix = substr(line, 1, index(line, defundef) - 1) 20604 if (D_is_set[macro]) { 20605 # Preserve the white space surrounding the "#". 20606 print prefix "define", macro P[macro] D[macro] 20607 next 20608 } else { 20609 # Replace #undef with comments. This is necessary, for example, 20610 # in the case of _POSIX_SOURCE, which is predefined and required 20611 # on some systems where configure will not decide to define it. 20612 if (defundef == "undef") { 20613 print "/*", prefix defundef, macro, "*/" 20614 next 20615 } 20616 } 20617} 20618{ print } 20619_ACAWK 20620_ACEOF 20621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20622 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20623fi # test -n "$CONFIG_HEADERS" 20624 20625 20626eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20627shift 20628for ac_tag 20629do 20630 case $ac_tag in 20631 :[FHLC]) ac_mode=$ac_tag; continue;; 20632 esac 20633 case $ac_mode$ac_tag in 20634 :[FHL]*:*);; 20635 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20636 :[FH]-) ac_tag=-:-;; 20637 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20638 esac 20639 ac_save_IFS=$IFS 20640 IFS=: 20641 set x $ac_tag 20642 IFS=$ac_save_IFS 20643 shift 20644 ac_file=$1 20645 shift 20646 20647 case $ac_mode in 20648 :L) ac_source=$1;; 20649 :[FH]) 20650 ac_file_inputs= 20651 for ac_f 20652 do 20653 case $ac_f in 20654 -) ac_f="$ac_tmp/stdin";; 20655 *) # Look for the file first in the build tree, then in the source tree 20656 # (if the path is not absolute). The absolute path cannot be DOS-style, 20657 # because $ac_f cannot contain `:'. 20658 test -f "$ac_f" || 20659 case $ac_f in 20660 [\\/$]*) false;; 20661 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20662 esac || 20663 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20664 esac 20665 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20666 as_fn_append ac_file_inputs " '$ac_f'" 20667 done 20668 20669 # Let's still pretend it is `configure' which instantiates (i.e., don't 20670 # use $as_me), people would be surprised to read: 20671 # /* config.h. Generated by config.status. */ 20672 configure_input='Generated from '` 20673 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20674 `' by configure.' 20675 if test x"$ac_file" != x-; then 20676 configure_input="$ac_file. $configure_input" 20677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20678printf "%s\n" "$as_me: creating $ac_file" >&6;} 20679 fi 20680 # Neutralize special characters interpreted by sed in replacement strings. 20681 case $configure_input in #( 20682 *\&* | *\|* | *\\* ) 20683 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20684 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20685 *) ac_sed_conf_input=$configure_input;; 20686 esac 20687 20688 case $ac_tag in 20689 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20691 esac 20692 ;; 20693 esac 20694 20695 ac_dir=`$as_dirname -- "$ac_file" || 20696$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20697 X"$ac_file" : 'X\(//\)[^/]' \| \ 20698 X"$ac_file" : 'X\(//\)$' \| \ 20699 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20700printf "%s\n" X"$ac_file" | 20701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20702 s//\1/ 20703 q 20704 } 20705 /^X\(\/\/\)[^/].*/{ 20706 s//\1/ 20707 q 20708 } 20709 /^X\(\/\/\)$/{ 20710 s//\1/ 20711 q 20712 } 20713 /^X\(\/\).*/{ 20714 s//\1/ 20715 q 20716 } 20717 s/.*/./; q'` 20718 as_dir="$ac_dir"; as_fn_mkdir_p 20719 ac_builddir=. 20720 20721case "$ac_dir" in 20722.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20723*) 20724 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20725 # A ".." for each directory in $ac_dir_suffix. 20726 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20727 case $ac_top_builddir_sub in 20728 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20729 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20730 esac ;; 20731esac 20732ac_abs_top_builddir=$ac_pwd 20733ac_abs_builddir=$ac_pwd$ac_dir_suffix 20734# for backward compatibility: 20735ac_top_builddir=$ac_top_build_prefix 20736 20737case $srcdir in 20738 .) # We are building in place. 20739 ac_srcdir=. 20740 ac_top_srcdir=$ac_top_builddir_sub 20741 ac_abs_top_srcdir=$ac_pwd ;; 20742 [\\/]* | ?:[\\/]* ) # Absolute name. 20743 ac_srcdir=$srcdir$ac_dir_suffix; 20744 ac_top_srcdir=$srcdir 20745 ac_abs_top_srcdir=$srcdir ;; 20746 *) # Relative name. 20747 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20748 ac_top_srcdir=$ac_top_build_prefix$srcdir 20749 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20750esac 20751ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20752 20753 20754 case $ac_mode in 20755 :F) 20756 # 20757 # CONFIG_FILE 20758 # 20759 20760 case $INSTALL in 20761 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20762 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20763 esac 20764 ac_MKDIR_P=$MKDIR_P 20765 case $MKDIR_P in 20766 [\\/$]* | ?:[\\/]* ) ;; 20767 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20768 esac 20769_ACEOF 20770 20771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20772# If the template does not know about datarootdir, expand it. 20773# FIXME: This hack should be removed a few years after 2.60. 20774ac_datarootdir_hack=; ac_datarootdir_seen= 20775ac_sed_dataroot=' 20776/datarootdir/ { 20777 p 20778 q 20779} 20780/@datadir@/p 20781/@docdir@/p 20782/@infodir@/p 20783/@localedir@/p 20784/@mandir@/p' 20785case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20786*datarootdir*) ac_datarootdir_seen=yes;; 20787*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20789printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20790_ACEOF 20791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20792 ac_datarootdir_hack=' 20793 s&@datadir@&$datadir&g 20794 s&@docdir@&$docdir&g 20795 s&@infodir@&$infodir&g 20796 s&@localedir@&$localedir&g 20797 s&@mandir@&$mandir&g 20798 s&\\\${datarootdir}&$datarootdir&g' ;; 20799esac 20800_ACEOF 20801 20802# Neutralize VPATH when `$srcdir' = `.'. 20803# Shell code in configure.ac might set extrasub. 20804# FIXME: do we really want to maintain this feature? 20805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20806ac_sed_extra="$ac_vpsub 20807$extrasub 20808_ACEOF 20809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20810:t 20811/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20812s|@configure_input@|$ac_sed_conf_input|;t t 20813s&@top_builddir@&$ac_top_builddir_sub&;t t 20814s&@top_build_prefix@&$ac_top_build_prefix&;t t 20815s&@srcdir@&$ac_srcdir&;t t 20816s&@abs_srcdir@&$ac_abs_srcdir&;t t 20817s&@top_srcdir@&$ac_top_srcdir&;t t 20818s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20819s&@builddir@&$ac_builddir&;t t 20820s&@abs_builddir@&$ac_abs_builddir&;t t 20821s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20822s&@INSTALL@&$ac_INSTALL&;t t 20823s&@MKDIR_P@&$ac_MKDIR_P&;t t 20824$ac_datarootdir_hack 20825" 20826eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20827 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20828 20829test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20830 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20831 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20832 "$ac_tmp/out"`; test -z "$ac_out"; } && 20833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20834which seems to be undefined. Please make sure it is defined" >&5 20835printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20836which seems to be undefined. Please make sure it is defined" >&2;} 20837 20838 rm -f "$ac_tmp/stdin" 20839 case $ac_file in 20840 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20841 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20842 esac \ 20843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20844 ;; 20845 :H) 20846 # 20847 # CONFIG_HEADER 20848 # 20849 if test x"$ac_file" != x-; then 20850 { 20851 printf "%s\n" "/* $configure_input */" >&1 \ 20852 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20853 } >"$ac_tmp/config.h" \ 20854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20855 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20857printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 20858 else 20859 rm -f "$ac_file" 20860 mv "$ac_tmp/config.h" "$ac_file" \ 20861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20862 fi 20863 else 20864 printf "%s\n" "/* $configure_input */" >&1 \ 20865 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20866 || as_fn_error $? "could not create -" "$LINENO" 5 20867 fi 20868# Compute "$ac_file"'s index in $config_headers. 20869_am_arg="$ac_file" 20870_am_stamp_count=1 20871for _am_header in $config_headers :; do 20872 case $_am_header in 20873 $_am_arg | $_am_arg:* ) 20874 break ;; 20875 * ) 20876 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20877 esac 20878done 20879echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20880$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20881 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20882 X"$_am_arg" : 'X\(//\)$' \| \ 20883 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20884printf "%s\n" X"$_am_arg" | 20885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20886 s//\1/ 20887 q 20888 } 20889 /^X\(\/\/\)[^/].*/{ 20890 s//\1/ 20891 q 20892 } 20893 /^X\(\/\/\)$/{ 20894 s//\1/ 20895 q 20896 } 20897 /^X\(\/\).*/{ 20898 s//\1/ 20899 q 20900 } 20901 s/.*/./; q'`/stamp-h$_am_stamp_count 20902 ;; 20903 20904 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20905printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 20906 ;; 20907 esac 20908 20909 20910 case $ac_file$ac_mode in 20911 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20912 # Older Autoconf quotes --file arguments for eval, but not when files 20913 # are listed without --file. Let's play safe and only enable the eval 20914 # if we detect the quoting. 20915 # TODO: see whether this extra hack can be removed once we start 20916 # requiring Autoconf 2.70 or later. 20917 case $CONFIG_FILES in #( 20918 *\'*) : 20919 eval set x "$CONFIG_FILES" ;; #( 20920 *) : 20921 set x $CONFIG_FILES ;; #( 20922 *) : 20923 ;; 20924esac 20925 shift 20926 # Used to flag and report bootstrapping failures. 20927 am_rc=0 20928 for am_mf 20929 do 20930 # Strip MF so we end up with the name of the file. 20931 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 20932 # Check whether this is an Automake generated Makefile which includes 20933 # dependency-tracking related rules and includes. 20934 # Grep'ing the whole file directly is not great: AIX grep has a line 20935 # limit of 2048, but all sed's we know have understand at least 4000. 20936 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20937 || continue 20938 am_dirpart=`$as_dirname -- "$am_mf" || 20939$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20940 X"$am_mf" : 'X\(//\)[^/]' \| \ 20941 X"$am_mf" : 'X\(//\)$' \| \ 20942 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20943printf "%s\n" X"$am_mf" | 20944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20945 s//\1/ 20946 q 20947 } 20948 /^X\(\/\/\)[^/].*/{ 20949 s//\1/ 20950 q 20951 } 20952 /^X\(\/\/\)$/{ 20953 s//\1/ 20954 q 20955 } 20956 /^X\(\/\).*/{ 20957 s//\1/ 20958 q 20959 } 20960 s/.*/./; q'` 20961 am_filepart=`$as_basename -- "$am_mf" || 20962$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20963 X"$am_mf" : 'X\(//\)$' \| \ 20964 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20965printf "%s\n" X/"$am_mf" | 20966 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20967 s//\1/ 20968 q 20969 } 20970 /^X\/\(\/\/\)$/{ 20971 s//\1/ 20972 q 20973 } 20974 /^X\/\(\/\).*/{ 20975 s//\1/ 20976 q 20977 } 20978 s/.*/./; q'` 20979 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20980 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20981 | $MAKE -f - am--depfiles" >&5 20982 (cd "$am_dirpart" \ 20983 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20984 | $MAKE -f - am--depfiles) >&5 2>&5 20985 ac_status=$? 20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20987 (exit $ac_status); } || am_rc=$? 20988 done 20989 if test $am_rc -ne 0; then 20990 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20991printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20992as_fn_error $? "Something went wrong bootstrapping makefile fragments 20993 for automatic dependency tracking. If GNU make was not used, consider 20994 re-running the configure script with MAKE=\"gmake\" (or whatever is 20995 necessary). You can also try re-running configure with the 20996 '--disable-dependency-tracking' option to at least be able to build 20997 the package (albeit without support for automatic dependency tracking). 20998See \`config.log' for more details" "$LINENO" 5; } 20999 fi 21000 { am_dirpart=; unset am_dirpart;} 21001 { am_filepart=; unset am_filepart;} 21002 { am_mf=; unset am_mf;} 21003 { am_rc=; unset am_rc;} 21004 rm -f conftest-deps.mk 21005} 21006 ;; 21007 "libtool":C) 21008 21009 # See if we are running on zsh, and set the options that allow our 21010 # commands through without removal of \ escapes. 21011 if test -n "${ZSH_VERSION+set}"; then 21012 setopt NO_GLOB_SUBST 21013 fi 21014 21015 cfgfile=${ofile}T 21016 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21017 $RM "$cfgfile" 21018 21019 cat <<_LT_EOF >> "$cfgfile" 21020#! $SHELL 21021# Generated automatically by $as_me ($PACKAGE) $VERSION 21022# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21023# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21024 21025# Provide generalized library-building support services. 21026# Written by Gordon Matzigkeit, 1996 21027 21028# Copyright (C) 2014 Free Software Foundation, Inc. 21029# This is free software; see the source for copying conditions. There is NO 21030# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21031 21032# GNU Libtool is free software; you can redistribute it and/or modify 21033# it under the terms of the GNU General Public License as published by 21034# the Free Software Foundation; either version 2 of of the License, or 21035# (at your option) any later version. 21036# 21037# As a special exception to the GNU General Public License, if you 21038# distribute this file as part of a program or library that is built 21039# using GNU Libtool, you may include this file under the same 21040# distribution terms that you use for the rest of that program. 21041# 21042# GNU Libtool is distributed in the hope that it will be useful, but 21043# WITHOUT ANY WARRANTY; without even the implied warranty of 21044# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21045# GNU General Public License for more details. 21046# 21047# You should have received a copy of the GNU General Public License 21048# along with this program. If not, see <http://www.gnu.org/licenses/>. 21049 21050 21051# The names of the tagged configurations supported by this script. 21052available_tags='' 21053 21054# Configured defaults for sys_lib_dlsearch_path munging. 21055: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21056 21057# ### BEGIN LIBTOOL CONFIG 21058 21059# Which release of libtool.m4 was used? 21060macro_version=$macro_version 21061macro_revision=$macro_revision 21062 21063# Whether or not to build shared libraries. 21064build_libtool_libs=$enable_shared 21065 21066# Whether or not to build static libraries. 21067build_old_libs=$enable_static 21068 21069# What type of objects to build. 21070pic_mode=$pic_mode 21071 21072# Whether or not to optimize for fast installation. 21073fast_install=$enable_fast_install 21074 21075# Shared archive member basename,for filename based shared library versioning on AIX. 21076shared_archive_member_spec=$shared_archive_member_spec 21077 21078# Shell to use when invoking shell scripts. 21079SHELL=$lt_SHELL 21080 21081# An echo program that protects backslashes. 21082ECHO=$lt_ECHO 21083 21084# The PATH separator for the build system. 21085PATH_SEPARATOR=$lt_PATH_SEPARATOR 21086 21087# The host system. 21088host_alias=$host_alias 21089host=$host 21090host_os=$host_os 21091 21092# The build system. 21093build_alias=$build_alias 21094build=$build 21095build_os=$build_os 21096 21097# A sed program that does not truncate output. 21098SED=$lt_SED 21099 21100# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21101Xsed="\$SED -e 1s/^X//" 21102 21103# A grep program that handles long lines. 21104GREP=$lt_GREP 21105 21106# An ERE matcher. 21107EGREP=$lt_EGREP 21108 21109# A literal string matcher. 21110FGREP=$lt_FGREP 21111 21112# A BSD- or MS-compatible name lister. 21113NM=$lt_NM 21114 21115# Whether we need soft or hard links. 21116LN_S=$lt_LN_S 21117 21118# What is the maximum length of a command? 21119max_cmd_len=$max_cmd_len 21120 21121# Object file suffix (normally "o"). 21122objext=$ac_objext 21123 21124# Executable file suffix (normally ""). 21125exeext=$exeext 21126 21127# whether the shell understands "unset". 21128lt_unset=$lt_unset 21129 21130# turn spaces into newlines. 21131SP2NL=$lt_lt_SP2NL 21132 21133# turn newlines into spaces. 21134NL2SP=$lt_lt_NL2SP 21135 21136# convert \$build file names to \$host format. 21137to_host_file_cmd=$lt_cv_to_host_file_cmd 21138 21139# convert \$build files to toolchain format. 21140to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21141 21142# A file(cmd) program that detects file types. 21143FILECMD=$lt_FILECMD 21144 21145# An object symbol dumper. 21146OBJDUMP=$lt_OBJDUMP 21147 21148# Method to check whether dependent libraries are shared objects. 21149deplibs_check_method=$lt_deplibs_check_method 21150 21151# Command to use when deplibs_check_method = "file_magic". 21152file_magic_cmd=$lt_file_magic_cmd 21153 21154# How to find potential files when deplibs_check_method = "file_magic". 21155file_magic_glob=$lt_file_magic_glob 21156 21157# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21158want_nocaseglob=$lt_want_nocaseglob 21159 21160# DLL creation program. 21161DLLTOOL=$lt_DLLTOOL 21162 21163# Command to associate shared and link libraries. 21164sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21165 21166# The archiver. 21167AR=$lt_AR 21168 21169# Flags to create an archive (by configure). 21170lt_ar_flags=$lt_ar_flags 21171 21172# Flags to create an archive. 21173AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21174 21175# How to feed a file listing to the archiver. 21176archiver_list_spec=$lt_archiver_list_spec 21177 21178# A symbol stripping program. 21179STRIP=$lt_STRIP 21180 21181# Commands used to install an old-style archive. 21182RANLIB=$lt_RANLIB 21183old_postinstall_cmds=$lt_old_postinstall_cmds 21184old_postuninstall_cmds=$lt_old_postuninstall_cmds 21185 21186# Whether to use a lock for old archive extraction. 21187lock_old_archive_extraction=$lock_old_archive_extraction 21188 21189# A C compiler. 21190LTCC=$lt_CC 21191 21192# LTCC compiler flags. 21193LTCFLAGS=$lt_CFLAGS 21194 21195# Take the output of nm and produce a listing of raw symbols and C names. 21196global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21197 21198# Transform the output of nm in a proper C declaration. 21199global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21200 21201# Transform the output of nm into a list of symbols to manually relocate. 21202global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21203 21204# Transform the output of nm in a C name address pair. 21205global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21206 21207# Transform the output of nm in a C name address pair when lib prefix is needed. 21208global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21209 21210# The name lister interface. 21211nm_interface=$lt_lt_cv_nm_interface 21212 21213# Specify filename containing input files for \$NM. 21214nm_file_list_spec=$lt_nm_file_list_spec 21215 21216# The root where to search for dependent libraries,and where our libraries should be installed. 21217lt_sysroot=$lt_sysroot 21218 21219# Command to truncate a binary pipe. 21220lt_truncate_bin=$lt_lt_cv_truncate_bin 21221 21222# The name of the directory that contains temporary libtool files. 21223objdir=$objdir 21224 21225# Used to examine libraries when file_magic_cmd begins with "file". 21226MAGIC_CMD=$MAGIC_CMD 21227 21228# Must we lock files when doing compilation? 21229need_locks=$lt_need_locks 21230 21231# Manifest tool. 21232MANIFEST_TOOL=$lt_MANIFEST_TOOL 21233 21234# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21235DSYMUTIL=$lt_DSYMUTIL 21236 21237# Tool to change global to local symbols on Mac OS X. 21238NMEDIT=$lt_NMEDIT 21239 21240# Tool to manipulate fat objects and archives on Mac OS X. 21241LIPO=$lt_LIPO 21242 21243# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21244OTOOL=$lt_OTOOL 21245 21246# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21247OTOOL64=$lt_OTOOL64 21248 21249# Old archive suffix (normally "a"). 21250libext=$libext 21251 21252# Shared library suffix (normally ".so"). 21253shrext_cmds=$lt_shrext_cmds 21254 21255# The commands to extract the exported symbol list from a shared archive. 21256extract_expsyms_cmds=$lt_extract_expsyms_cmds 21257 21258# Variables whose values should be saved in libtool wrapper scripts and 21259# restored at link time. 21260variables_saved_for_relink=$lt_variables_saved_for_relink 21261 21262# Do we need the "lib" prefix for modules? 21263need_lib_prefix=$need_lib_prefix 21264 21265# Do we need a version for libraries? 21266need_version=$need_version 21267 21268# Library versioning type. 21269version_type=$version_type 21270 21271# Shared library runtime path variable. 21272runpath_var=$runpath_var 21273 21274# Shared library path variable. 21275shlibpath_var=$shlibpath_var 21276 21277# Is shlibpath searched before the hard-coded library search path? 21278shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21279 21280# Format of library name prefix. 21281libname_spec=$lt_libname_spec 21282 21283# List of archive names. First name is the real one, the rest are links. 21284# The last name is the one that the linker finds with -lNAME 21285library_names_spec=$lt_library_names_spec 21286 21287# The coded name of the library, if different from the real name. 21288soname_spec=$lt_soname_spec 21289 21290# Permission mode override for installation of shared libraries. 21291install_override_mode=$lt_install_override_mode 21292 21293# Command to use after installation of a shared archive. 21294postinstall_cmds=$lt_postinstall_cmds 21295 21296# Command to use after uninstallation of a shared archive. 21297postuninstall_cmds=$lt_postuninstall_cmds 21298 21299# Commands used to finish a libtool library installation in a directory. 21300finish_cmds=$lt_finish_cmds 21301 21302# As "finish_cmds", except a single script fragment to be evaled but 21303# not shown. 21304finish_eval=$lt_finish_eval 21305 21306# Whether we should hardcode library paths into libraries. 21307hardcode_into_libs=$hardcode_into_libs 21308 21309# Compile-time system search path for libraries. 21310sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21311 21312# Detected run-time system search path for libraries. 21313sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21314 21315# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21316configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21317 21318# Whether dlopen is supported. 21319dlopen_support=$enable_dlopen 21320 21321# Whether dlopen of programs is supported. 21322dlopen_self=$enable_dlopen_self 21323 21324# Whether dlopen of statically linked programs is supported. 21325dlopen_self_static=$enable_dlopen_self_static 21326 21327# Commands to strip libraries. 21328old_striplib=$lt_old_striplib 21329striplib=$lt_striplib 21330 21331 21332# The linker used to build libraries. 21333LD=$lt_LD 21334 21335# How to create reloadable object files. 21336reload_flag=$lt_reload_flag 21337reload_cmds=$lt_reload_cmds 21338 21339# Commands used to build an old-style archive. 21340old_archive_cmds=$lt_old_archive_cmds 21341 21342# A language specific compiler. 21343CC=$lt_compiler 21344 21345# Is the compiler the GNU compiler? 21346with_gcc=$GCC 21347 21348# Compiler flag to turn off builtin functions. 21349no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21350 21351# Additional compiler flags for building library objects. 21352pic_flag=$lt_lt_prog_compiler_pic 21353 21354# How to pass a linker flag through the compiler. 21355wl=$lt_lt_prog_compiler_wl 21356 21357# Compiler flag to prevent dynamic linking. 21358link_static_flag=$lt_lt_prog_compiler_static 21359 21360# Does compiler simultaneously support -c and -o options? 21361compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21362 21363# Whether or not to add -lc for building shared libraries. 21364build_libtool_need_lc=$archive_cmds_need_lc 21365 21366# Whether or not to disallow shared libs when runtime libs are static. 21367allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21368 21369# Compiler flag to allow reflexive dlopens. 21370export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21371 21372# Compiler flag to generate shared objects directly from archives. 21373whole_archive_flag_spec=$lt_whole_archive_flag_spec 21374 21375# Whether the compiler copes with passing no objects directly. 21376compiler_needs_object=$lt_compiler_needs_object 21377 21378# Create an old-style archive from a shared archive. 21379old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21380 21381# Create a temporary old-style archive to link instead of a shared archive. 21382old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21383 21384# Commands used to build a shared archive. 21385archive_cmds=$lt_archive_cmds 21386archive_expsym_cmds=$lt_archive_expsym_cmds 21387 21388# Commands used to build a loadable module if different from building 21389# a shared archive. 21390module_cmds=$lt_module_cmds 21391module_expsym_cmds=$lt_module_expsym_cmds 21392 21393# Whether we are building with GNU ld or not. 21394with_gnu_ld=$lt_with_gnu_ld 21395 21396# Flag that allows shared libraries with undefined symbols to be built. 21397allow_undefined_flag=$lt_allow_undefined_flag 21398 21399# Flag that enforces no undefined symbols. 21400no_undefined_flag=$lt_no_undefined_flag 21401 21402# Flag to hardcode \$libdir into a binary during linking. 21403# This must work even if \$libdir does not exist 21404hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21405 21406# Whether we need a single "-rpath" flag with a separated argument. 21407hardcode_libdir_separator=$lt_hardcode_libdir_separator 21408 21409# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21410# DIR into the resulting binary. 21411hardcode_direct=$hardcode_direct 21412 21413# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21414# DIR into the resulting binary and the resulting library dependency is 21415# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21416# library is relocated. 21417hardcode_direct_absolute=$hardcode_direct_absolute 21418 21419# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21420# into the resulting binary. 21421hardcode_minus_L=$hardcode_minus_L 21422 21423# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21424# into the resulting binary. 21425hardcode_shlibpath_var=$hardcode_shlibpath_var 21426 21427# Set to "yes" if building a shared library automatically hardcodes DIR 21428# into the library and all subsequent libraries and executables linked 21429# against it. 21430hardcode_automatic=$hardcode_automatic 21431 21432# Set to yes if linker adds runtime paths of dependent libraries 21433# to runtime path list. 21434inherit_rpath=$inherit_rpath 21435 21436# Whether libtool must link a program against all its dependency libraries. 21437link_all_deplibs=$link_all_deplibs 21438 21439# Set to "yes" if exported symbols are required. 21440always_export_symbols=$always_export_symbols 21441 21442# The commands to list exported symbols. 21443export_symbols_cmds=$lt_export_symbols_cmds 21444 21445# Symbols that should not be listed in the preloaded symbols. 21446exclude_expsyms=$lt_exclude_expsyms 21447 21448# Symbols that must always be exported. 21449include_expsyms=$lt_include_expsyms 21450 21451# Commands necessary for linking programs (against libraries) with templates. 21452prelink_cmds=$lt_prelink_cmds 21453 21454# Commands necessary for finishing linking programs. 21455postlink_cmds=$lt_postlink_cmds 21456 21457# Specify filename containing input files. 21458file_list_spec=$lt_file_list_spec 21459 21460# How to hardcode a shared library path into an executable. 21461hardcode_action=$hardcode_action 21462 21463# ### END LIBTOOL CONFIG 21464 21465_LT_EOF 21466 21467 cat <<'_LT_EOF' >> "$cfgfile" 21468 21469# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21470 21471# func_munge_path_list VARIABLE PATH 21472# ----------------------------------- 21473# VARIABLE is name of variable containing _space_ separated list of 21474# directories to be munged by the contents of PATH, which is string 21475# having a format: 21476# "DIR[:DIR]:" 21477# string "DIR[ DIR]" will be prepended to VARIABLE 21478# ":DIR[:DIR]" 21479# string "DIR[ DIR]" will be appended to VARIABLE 21480# "DIRP[:DIRP]::[DIRA:]DIRA" 21481# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21482# "DIRA[ DIRA]" will be appended to VARIABLE 21483# "DIR[:DIR]" 21484# VARIABLE will be replaced by "DIR[ DIR]" 21485func_munge_path_list () 21486{ 21487 case x$2 in 21488 x) 21489 ;; 21490 *:) 21491 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21492 ;; 21493 x:*) 21494 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21495 ;; 21496 *::*) 21497 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21498 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21499 ;; 21500 *) 21501 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21502 ;; 21503 esac 21504} 21505 21506 21507# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21508func_cc_basename () 21509{ 21510 for cc_temp in $*""; do 21511 case $cc_temp in 21512 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21513 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21514 \-*) ;; 21515 *) break;; 21516 esac 21517 done 21518 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21519} 21520 21521 21522# ### END FUNCTIONS SHARED WITH CONFIGURE 21523 21524_LT_EOF 21525 21526 case $host_os in 21527 aix3*) 21528 cat <<\_LT_EOF >> "$cfgfile" 21529# AIX sometimes has problems with the GCC collect2 program. For some 21530# reason, if we set the COLLECT_NAMES environment variable, the problems 21531# vanish in a puff of smoke. 21532if test set != "${COLLECT_NAMES+set}"; then 21533 COLLECT_NAMES= 21534 export COLLECT_NAMES 21535fi 21536_LT_EOF 21537 ;; 21538 esac 21539 21540 21541 21542ltmain=$ac_aux_dir/ltmain.sh 21543 21544 21545 # We use sed instead of cat because bash on DJGPP gets confused if 21546 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21547 # text mode, it properly converts lines to CR/LF. This bash problem 21548 # is reportedly fixed, but why not run on old versions too? 21549 $SED '$q' "$ltmain" >> "$cfgfile" \ 21550 || (rm -f "$cfgfile"; exit 1) 21551 21552 mv -f "$cfgfile" "$ofile" || 21553 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21554 chmod +x "$ofile" 21555 21556 ;; 21557 21558 esac 21559done # for ac_tag 21560 21561 21562as_fn_exit 0 21563_ACEOF 21564ac_clean_files=$ac_clean_files_save 21565 21566test $ac_write_fail = 0 || 21567 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21568 21569 21570# configure is writing to config.log, and then calls config.status. 21571# config.status does its own redirection, appending to config.log. 21572# Unfortunately, on DOS this fails, as config.log is still kept open 21573# by configure, so config.status won't be able to write to it; its 21574# output is simply discarded. So we exec the FD to /dev/null, 21575# effectively closing config.log, so it can be properly (re)opened and 21576# appended to by config.status. When coming back to configure, we 21577# need to make the FD available again. 21578if test "$no_create" != yes; then 21579 ac_cs_success=: 21580 ac_config_status_args= 21581 test "$silent" = yes && 21582 ac_config_status_args="$ac_config_status_args --quiet" 21583 exec 5>/dev/null 21584 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21585 exec 5>>config.log 21586 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21587 # would make configure fail if this is the last instruction. 21588 $ac_cs_success || as_fn_exit 1 21589fi 21590if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21592printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21593fi 21594 21595 21596