1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for Freeciv 2.6.6. 4# 5# Report bugs to <https://osdn.net/projects/freeciv/ticket/>. 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 186test \$(( 1 + 1 )) = 2 || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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://osdn.net/projects/freeciv/ticket/ about your 280$0: system, including any error possibly output before this 281$0: message. Then install a modern shell, or manually run 282$0: the script under such a shell if you do have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306 307# as_fn_set_status STATUS 308# ----------------------- 309# Set $? to STATUS, without forking. 310as_fn_set_status () 311{ 312 return $1 313} # as_fn_set_status 314 315# as_fn_exit STATUS 316# ----------------- 317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 318as_fn_exit () 319{ 320 set +e 321 as_fn_set_status $1 322 exit $1 323} # as_fn_exit 324# as_fn_nop 325# --------- 326# Do nothing but, unlike ":", preserve the value of $?. 327as_fn_nop () 328{ 329 return $? 330} 331as_nop=as_fn_nop 332 333# as_fn_mkdir_p 334# ------------- 335# Create "$as_dir" as a directory, including parents if necessary. 336as_fn_mkdir_p () 337{ 338 339 case $as_dir in #( 340 -*) as_dir=./$as_dir;; 341 esac 342 test -d "$as_dir" || eval $as_mkdir_p || { 343 as_dirs= 344 while :; do 345 case $as_dir in #( 346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 347 *) as_qdir=$as_dir;; 348 esac 349 as_dirs="'$as_qdir' $as_dirs" 350 as_dir=`$as_dirname -- "$as_dir" || 351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 352 X"$as_dir" : 'X\(//\)[^/]' \| \ 353 X"$as_dir" : 'X\(//\)$' \| \ 354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 355printf "%s\n" X"$as_dir" | 356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)[^/].*/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\/\)$/{ 365 s//\1/ 366 q 367 } 368 /^X\(\/\).*/{ 369 s//\1/ 370 q 371 } 372 s/.*/./; q'` 373 test -d "$as_dir" && break 374 done 375 test -z "$as_dirs" || eval "mkdir $as_dirs" 376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 377 378 379} # as_fn_mkdir_p 380 381# as_fn_executable_p FILE 382# ----------------------- 383# Test if FILE is an executable regular file. 384as_fn_executable_p () 385{ 386 test -f "$1" && test -x "$1" 387} # as_fn_executable_p 388# as_fn_append VAR VALUE 389# ---------------------- 390# Append the text in VALUE to the end of the definition contained in VAR. Take 391# advantage of any shell optimizations that allow amortized linear growth over 392# repeated appends, instead of the typical quadratic growth present in naive 393# implementations. 394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 395then : 396 eval 'as_fn_append () 397 { 398 eval $1+=\$2 399 }' 400else $as_nop 401 as_fn_append () 402 { 403 eval $1=\$$1\$2 404 } 405fi # as_fn_append 406 407# as_fn_arith ARG... 408# ------------------ 409# Perform arithmetic evaluation on the ARGs, and store the result in the 410# global $as_val. Take advantage of shells that can avoid forks. The arguments 411# must be portable across $(()) and expr. 412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 413then : 414 eval 'as_fn_arith () 415 { 416 as_val=$(( $* )) 417 }' 418else $as_nop 419 as_fn_arith () 420 { 421 as_val=`expr "$@" || test $? -eq 1` 422 } 423fi # as_fn_arith 424 425# as_fn_nop 426# --------- 427# Do nothing but, unlike ":", preserve the value of $?. 428as_fn_nop () 429{ 430 return $? 431} 432as_nop=as_fn_nop 433 434# as_fn_error STATUS ERROR [LINENO LOG_FD] 435# ---------------------------------------- 436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 438# script with STATUS, using 1 if that was 0. 439as_fn_error () 440{ 441 as_status=$1; test $as_status -eq 0 && as_status=1 442 if test "$4"; then 443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 445 fi 446 printf "%s\n" "$as_me: error: $2" >&2 447 as_fn_exit $as_status 448} # as_fn_error 449 450if expr a : '\(a\)' >/dev/null 2>&1 && 451 test "X`expr 00001 : '.*\(...\)'`" = X001; then 452 as_expr=expr 453else 454 as_expr=false 455fi 456 457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 458 as_basename=basename 459else 460 as_basename=false 461fi 462 463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 464 as_dirname=dirname 465else 466 as_dirname=false 467fi 468 469as_me=`$as_basename -- "$0" || 470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 471 X"$0" : 'X\(//\)$' \| \ 472 X"$0" : 'X\(/\)' \| . 2>/dev/null || 473printf "%s\n" X/"$0" | 474 sed '/^.*\/\([^/][^/]*\)\/*$/{ 475 s//\1/ 476 q 477 } 478 /^X\/\(\/\/\)$/{ 479 s//\1/ 480 q 481 } 482 /^X\/\(\/\).*/{ 483 s//\1/ 484 q 485 } 486 s/.*/./; q'` 487 488# Avoid depending upon Character Ranges. 489as_cr_letters='abcdefghijklmnopqrstuvwxyz' 490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 491as_cr_Letters=$as_cr_letters$as_cr_LETTERS 492as_cr_digits='0123456789' 493as_cr_alnum=$as_cr_Letters$as_cr_digits 494 495 496 as_lineno_1=$LINENO as_lineno_1a=$LINENO 497 as_lineno_2=$LINENO as_lineno_2a=$LINENO 498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 501 sed -n ' 502 p 503 /[$]LINENO/= 504 ' <$as_myself | 505 sed ' 506 s/[$]LINENO.*/&-/ 507 t lineno 508 b 509 :lineno 510 N 511 :loop 512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 513 t loop 514 s/-\n.*// 515 ' >$as_me.lineno && 516 chmod +x "$as_me.lineno" || 517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 518 519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 520 # already done that, so ensure we don't try to do so again and fall 521 # in an infinite loop. This has already happened in practice. 522 _as_can_reexec=no; export _as_can_reexec 523 # Don't try to exec as it changes $[0], causing all sort of problems 524 # (the dirname of $[0] is not the place where we might find the 525 # original and so on. Autoconf is especially sensitive to this). 526 . "./$as_me.lineno" 527 # Exit status is that of the last command. 528 exit 529} 530 531 532# Determine whether it's possible to make 'echo' print without a newline. 533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 534# for compatibility with existing Makefiles. 535ECHO_C= ECHO_N= ECHO_T= 536case `echo -n x` in #((((( 537-n*) 538 case `echo 'xy\c'` in 539 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 540 xy) ECHO_C='\c';; 541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 542 ECHO_T=' ';; 543 esac;; 544*) 545 ECHO_N='-n';; 546esac 547 548# For backward compatibility with old third-party macros, we provide 549# the shell variables $as_echo and $as_echo_n. New code should use 550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 551as_echo='printf %s\n' 552as_echo_n='printf %s' 553 554 555rm -f conf$$ conf$$.exe conf$$.file 556if test -d conf$$.dir; then 557 rm -f conf$$.dir/conf$$.file 558else 559 rm -f conf$$.dir 560 mkdir conf$$.dir 2>/dev/null 561fi 562if (echo >conf$$.file) 2>/dev/null; then 563 if ln -s conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s='ln -s' 565 # ... but there are two gotchas: 566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 568 # In both cases, we have to default to `cp -pR'. 569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 570 as_ln_s='cp -pR' 571 elif ln conf$$.file conf$$ 2>/dev/null; then 572 as_ln_s=ln 573 else 574 as_ln_s='cp -pR' 575 fi 576else 577 as_ln_s='cp -pR' 578fi 579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 580rmdir conf$$.dir 2>/dev/null 581 582if mkdir -p . 2>/dev/null; then 583 as_mkdir_p='mkdir -p "$as_dir"' 584else 585 test -d ./-p && rmdir ./-p 586 as_mkdir_p=false 587fi 588 589as_test_x='test -x' 590as_executable_p=as_fn_executable_p 591 592# Sed expression to map a string onto a valid CPP name. 593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 594 595# Sed expression to map a string onto a valid variable name. 596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 597 598SHELL=${CONFIG_SHELL-/bin/sh} 599 600 601test -n "$DJDIR" || exec 7<&0 </dev/null 602exec 6>&1 603 604# Name of the host. 605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 606# so uname gets run too. 607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 608 609# 610# Initializations. 611# 612ac_default_prefix=/usr/local 613ac_clean_files= 614ac_config_libobj_dir=. 615LIBOBJS= 616cross_compiling=no 617subdirs= 618MFLAGS= 619MAKEFLAGS= 620 621# Identity of this package. 622PACKAGE_NAME='Freeciv' 623PACKAGE_TARNAME='freeciv' 624PACKAGE_VERSION='2.6.6' 625PACKAGE_STRING='Freeciv 2.6.6' 626PACKAGE_BUGREPORT='https://osdn.net/projects/freeciv/ticket/' 627PACKAGE_URL='' 628 629ac_unique_file="common/game.c" 630# Factoring default headers for most tests. 631ac_includes_default="\ 632#include <stddef.h> 633#ifdef HAVE_STDIO_H 634# include <stdio.h> 635#endif 636#ifdef HAVE_STDLIB_H 637# include <stdlib.h> 638#endif 639#ifdef HAVE_STRING_H 640# include <string.h> 641#endif 642#ifdef HAVE_INTTYPES_H 643# include <inttypes.h> 644#endif 645#ifdef HAVE_STDINT_H 646# include <stdint.h> 647#endif 648#ifdef HAVE_STRINGS_H 649# include <strings.h> 650#endif 651#ifdef HAVE_SYS_TYPES_H 652# include <sys/types.h> 653#endif 654#ifdef HAVE_SYS_STAT_H 655# include <sys/stat.h> 656#endif 657#ifdef HAVE_UNISTD_H 658# include <unistd.h> 659#endif" 660 661ac_header_c_list= 662gt_needs= 663ac_func_c_list= 664ac_subst_vars='am__EXEEXT_FALSE 665am__EXEEXT_TRUE 666LTLIBOBJS 667LIBOBJS 668CONFIGURE_DEPENDENCIES 669SYS_TOLUA_CMD_FALSE 670SYS_TOLUA_CMD_TRUE 671TOLUA_LIBS 672TOLUA_CFLAGS 673TOLUA 674LUASQL_AS_DEPENDENCY 675LUASQL_LIBS 676LUASQL_CFLAGS 677SYS_LUA_FALSE 678SYS_LUA_TRUE 679REPLACE_WCTOMB 680REPLACE_UNSETENV 681REPLACE_STRTOULL 682REPLACE_STRTOUL 683REPLACE_STRTOLL 684REPLACE_STRTOLD 685REPLACE_STRTOL 686REPLACE_STRTOD 687REPLACE_SETSTATE 688REPLACE_SETENV 689REPLACE_REALPATH 690REPLACE_REALLOC 691REPLACE_RANDOM_R 692REPLACE_RANDOM 693REPLACE_QSORT_R 694REPLACE_PUTENV 695REPLACE_PTSNAME_R 696REPLACE_PTSNAME 697REPLACE_POSIX_MEMALIGN 698REPLACE_MKSTEMP 699REPLACE_MBTOWC 700REPLACE_MALLOC 701REPLACE_INITSTATE 702REPLACE_FREE 703REPLACE_CANONICALIZE_FILE_NAME 704REPLACE_CALLOC 705REPLACE_ALIGNED_ALLOC 706HAVE_DECL_UNSETENV 707HAVE_UNLOCKPT 708HAVE_SYS_LOADAVG_H 709HAVE_STRUCT_RANDOM_DATA 710HAVE_STRTOULL 711HAVE_STRTOUL 712HAVE_STRTOLL 713HAVE_STRTOLD 714HAVE_STRTOL 715HAVE_STRTOD 716HAVE_DECL_SETSTATE 717HAVE_SETSTATE 718HAVE_DECL_SETENV 719HAVE_SETENV 720HAVE_SECURE_GETENV 721HAVE_RPMATCH 722HAVE_REALPATH 723HAVE_REALLOCARRAY 724HAVE_RANDOM_R 725HAVE_RANDOM_H 726HAVE_RANDOM 727HAVE_QSORT_R 728HAVE_PTSNAME_R 729HAVE_PTSNAME 730HAVE_POSIX_OPENPT 731HAVE_POSIX_MEMALIGN 732HAVE_MKSTEMPS 733HAVE_MKSTEMP 734HAVE_MKOSTEMPS 735HAVE_MKOSTEMP 736HAVE_MKDTEMP 737HAVE_MBTOWC 738HAVE_DECL_INITSTATE 739HAVE_INITSTATE 740HAVE_GRANTPT 741HAVE_GETSUBOPT 742HAVE_DECL_GETLOADAVG 743HAVE_DECL_GCVT 744HAVE_DECL_FCVT 745HAVE_DECL_ECVT 746HAVE_CANONICALIZE_FILE_NAME 747HAVE_ATOLL 748HAVE_ALIGNED_ALLOC 749HAVE__EXIT 750LUA_LIBS 751LUA_CFLAGS 752SRV_LIB_LIBS 753SERVER_LIBS 754CLIENT_LIBS 755MINGW_FALSE 756MINGW_TRUE 757CLIENT_GUI_STUB_FALSE 758CLIENT_GUI_STUB_TRUE 759CLIENT_GUI_QT_FALSE 760CLIENT_GUI_QT_TRUE 761CLIENT_GUI_XAW_FALSE 762CLIENT_GUI_XAW_TRUE 763CLIENT_GUI_GTK_3_0_FALSE 764CLIENT_GUI_GTK_3_0_TRUE 765CLIENT_GUI_GTK_3_22_FALSE 766CLIENT_GUI_GTK_3_22_TRUE 767CLIENT_GUI_GTK_2_0_FALSE 768CLIENT_GUI_GTK_2_0_TRUE 769CLIENT_GUI_SDL2_FALSE 770CLIENT_GUI_SDL2_TRUE 771CLIENT_GUI_SDL_FALSE 772CLIENT_GUI_SDL_TRUE 773AUDIO_SDL_FALSE 774AUDIO_SDL_TRUE 775HOST_DIR_SEPARATOR 776HOST_PATH_SEPARATOR 777VERSION_LABEL 778SOUND_LIBS 779SOUND_CFLAGS 780ruledit_libs 781ruledit_cxxflags 782ruledit_cppflags 783mp_qt_libs 784mp_qt_cxxflags 785mp_qt_cppflags 786mp_gtk3_ldflags 787mp_gtk3_libs 788mp_gtk3_cflags 789mp_gtk2_ldflags 790mp_gtk2_libs 791mp_gtk2_cflags 792mp_cli_ldflags 793mp_cli_libs 794mp_cli_cflags 795gui_stub_ldflags 796gui_stub_libs 797gui_stub_cflags 798gui_qt_ldflags 799gui_qt_libs 800gui_qt_cxxflags 801gui_qt_cflags 802gui_qt_cppflags 803gui_xaw_ldflags 804gui_xaw_libs 805gui_xaw_cflags 806gui_sdl2_ldflags 807gui_sdl2_libs 808gui_sdl2_cflags 809gui_sdl_ldflags 810gui_sdl_libs 811gui_sdl_cflags 812gui_gtk3_ldflags 813gui_gtk3_libs 814gui_gtk3_cflags 815gui_gtk3_22_ldflags 816gui_gtk3_22_libs 817gui_gtk3_22_cflags 818gui_gtk2_ldflags 819gui_gtk2_libs 820gui_gtk2_cflags 821RULEDIT_FALSE 822RULEDIT_TRUE 823MODINST_CLI_FALSE 824MODINST_CLI_TRUE 825MODINST_QT_FALSE 826MODINST_QT_TRUE 827MODINST_GTK2_FALSE 828MODINST_GTK2_TRUE 829MODINST_GTK3_FALSE 830MODINST_GTK3_TRUE 831MODINST_FALSE 832MODINST_TRUE 833GTHREAD_GTK2_LIBS 834GTHREAD_GTK2_CFLAGS 835GTHREAD_GTK3_LIBS 836GTHREAD_GTK3_CFLAGS 837GTK3MP_LIBS 838GTK3MP_CFLAGS 839FCMANUAL_FALSE 840FCMANUAL_TRUE 841CLIENT_FALSE 842CLIENT_TRUE 843PNG_LIBS 844PNG_CFLAGS 845X_EXTRA_LIBS 846X_LIBS 847X_PRE_LIBS 848X_CFLAGS 849XMKMF 850FT2_LIBS 851FT2_CFLAGS 852QTPATHS 853GTK2_LIBS 854GTK2_CFLAGS 855GTK3_22_LIBS 856GTK3_22_CFLAGS 857GTK3_LIBS 858GTK3_CFLAGS 859SDLMIXER_LIBS 860SDLMIXER_CFLAGS 861SDL_LIBS 862SDL_CFLAGS 863SDL_CONFIG 864SDL2MIXER_LIBS 865SDL2MIXER_CFLAGS 866SDL2_CONFIG 867SDL2_LIBS 868SDL2_CFLAGS 869SDL2_FRAMEWORK 870COMMON_LIBS 871UTILITY_LIBS 872UTILITY_CFLAGS 873GZIP 874WINDRES 875LIBXML2_LIBS 876LIBXML2_CFLAGS 877CURL_LIBS 878CURL_CFLAGS 879POSUB 880LTLIBINTL 881LIBINTL 882INTLLIBS 883INTL_MACOSX_LIBS 884XGETTEXT_EXTRA_OPTIONS 885MSGMERGE_FOR_MSGFMT_OPTION 886MSGMERGE 887XGETTEXT_015 888XGETTEXT 889GMSGFMT_015 890GMSGFMT 891MSGFMT 892GETTEXT_MACRO_VERSION 893USE_NLS 894LTLIBICONV 895LIBICONV 896UNAME 897CXXCPP 898am__fastdepCXX_FALSE 899am__fastdepCXX_TRUE 900CXXDEPMODE 901ac_ct_CXX 902CXXFLAGS 903CXX 904LT_SYS_LIBRARY_PATH 905OTOOL64 906OTOOL 907LIPO 908NMEDIT 909DSYMUTIL 910MANIFEST_TOOL 911RANLIB 912DLLTOOL 913OBJDUMP 914NM 915ac_ct_DUMPBIN 916DUMPBIN 917LD 918FGREP 919EGREP 920GREP 921LIBTOOL 922ac_ct_AR 923AR 924LN_S 925CPP 926AI_MOD_DEFAULT_NEEDED_FALSE 927AI_MOD_DEFAULT_NEEDED_TRUE 928AI_MOD_STATIC_STUB_FALSE 929AI_MOD_STATIC_STUB_TRUE 930AI_MOD_STATIC_THREADED_FALSE 931AI_MOD_STATIC_THREADED_TRUE 932AI_MOD_STATIC_CLASSIC_FALSE 933AI_MOD_STATIC_CLASSIC_TRUE 934EXP_AI_MODULES_FALSE 935EXP_AI_MODULES_TRUE 936AI_MODULES_FALSE 937AI_MODULES_TRUE 938aimoduledir 939MAKE_CLIENT_INCLUDE_FALSE 940MAKE_CLIENT_INCLUDE_TRUE 941MAKE_DATA_FALSE 942MAKE_DATA_TRUE 943GITREV_FALSE 944GITREV_TRUE 945FREECIV_WEB_FALSE 946FREECIV_WEB_TRUE 947MAPIMG_WAND_LIBS 948MAPIMG_WAND_CFLAGS 949WAND_LIBS 950WAND_CFLAGS 951PKG_CONFIG_LIBDIR 952PKG_CONFIG_PATH 953PKG_CONFIG 954APPDATADIR 955DESKTOPDIR 956SERVER_FALSE 957SERVER_TRUE 958FCDB_DB_FALSE 959FCDB_DB_TRUE 960FCDB_SQLITE3_FALSE 961FCDB_SQLITE3_TRUE 962FCDB_SQLITE3_CFLAGS 963sqlite3_ldflags 964sqlite3_cflags 965FCDB_POSTGRES_FALSE 966FCDB_POSTGRES_TRUE 967FCDB_POSTGRES_CFLAGS 968postgresql_ldflags 969postgresql_cflags 970POSTGRESQL_VERSION 971PG_CONFIG 972FCDB_MYSQL_FALSE 973FCDB_MYSQL_TRUE 974FCDB_MYSQL_CFLAGS 975mysql_ldflags 976mysql_cflags 977MYSQL_VERSION 978MYSQL_CONFIG 979SED 980AM_BACKSLASH 981AM_DEFAULT_VERBOSITY 982AM_DEFAULT_V 983AM_V 984CSCOPE 985ETAGS 986CTAGS 987am__fastdepCC_FALSE 988am__fastdepCC_TRUE 989CCDEPMODE 990am__nodep 991AMDEPBACKSLASH 992AMDEP_FALSE 993AMDEP_TRUE 994am__include 995DEPDIR 996am__untar 997am__tar 998AMTAR 999am__leading_dot 1000SET_MAKE 1001AWK 1002mkdir_p 1003MKDIR_P 1004INSTALL_STRIP_PROGRAM 1005STRIP 1006install_sh 1007MAKEINFO 1008AUTOHEADER 1009AUTOMAKE 1010AUTOCONF 1011ACLOCAL 1012VERSION 1013PACKAGE 1014CYGPATH_W 1015am__isrc 1016INSTALL_DATA 1017INSTALL_SCRIPT 1018INSTALL_PROGRAM 1019DATASUBDIR 1020NETWORK_CAPSTRING_OPTIONAL 1021NETWORK_CAPSTRING_MANDATORY 1022MINOR_VERSION 1023MAJOR_VERSION 1024FREECIV_LABEL_FORCE 1025MAIL_ADDRESS 1026WIKI_URL 1027BUG_URL 1028OBJEXT 1029EXEEXT 1030ac_ct_CC 1031CPPFLAGS 1032LDFLAGS 1033CFLAGS 1034CC 1035host_os 1036host_vendor 1037host_cpu 1038host 1039build_os 1040build_vendor 1041build_cpu 1042build 1043target_alias 1044host_alias 1045build_alias 1046LIBS 1047ECHO_T 1048ECHO_N 1049ECHO_C 1050DEFS 1051mandir 1052localedir 1053libdir 1054psdir 1055pdfdir 1056dvidir 1057htmldir 1058infodir 1059docdir 1060oldincludedir 1061includedir 1062runstatedir 1063localstatedir 1064sharedstatedir 1065sysconfdir 1066datadir 1067datarootdir 1068libexecdir 1069sbindir 1070bindir 1071program_transform_name 1072prefix 1073exec_prefix 1074PACKAGE_URL 1075PACKAGE_BUGREPORT 1076PACKAGE_STRING 1077PACKAGE_VERSION 1078PACKAGE_TARNAME 1079PACKAGE_NAME 1080PATH_SEPARATOR 1081SHELL 1082MOCCMD 1083am__quote' 1084ac_subst_files='' 1085ac_user_opts=' 1086enable_option_checking 1087enable_dependency_tracking 1088enable_silent_rules 1089enable_fcdb 1090with_mysql_prefix 1091with_postgres_prefix 1092with_sqlite3_prefix 1093enable_server 1094enable_ipv6 1095with_readline 1096with_followtag 1097with_modlist 1098with_desktopdir 1099with_appdatadir 1100enable_patient_connect 1101enable_mapimg 1102with_magickwand 1103enable_testmatic 1104enable_client 1105with_xaw 1106with_xaw3d 1107enable_gitrev 1108enable_make_data 1109enable_make_include 1110with_efence 1111enable_aimodules 1112enable_ai_static 1113with_default_ai 1114with_ai_lib 1115enable_shared 1116enable_static 1117with_pic 1118enable_fast_install 1119with_aix_soname 1120with_gnu_ld 1121with_sysroot 1122enable_libtool_lock 1123enable_rpath 1124with_libiconv_prefix 1125enable_nls 1126with_libintl_prefix 1127enable_xml_registry 1128enable_debug 1129enable_gprof 1130with_libbz2 1131with_liblzma 1132enable_crosser 1133with_cacert_path 1134enable_sdl_mixer 1135with_sdl2_prefix 1136with_sdl2_exec_prefix 1137enable_sdl2test 1138enable_sdl2framework 1139with_sdl_prefix 1140with_sdl_exec_prefix 1141enable_sdltest 1142enable_gtktest 1143with_qt5_framework_bin 1144with_qt5_includes 1145with_qt5_libs 1146with_x 1147with_x_funcproto 1148with_xpm_prefix 1149with_xpm_lib 1150with_xpm_include 1151enable_freeciv_manual 1152enable_fcmp 1153enable_ruledit 1154enable_sys_lua 1155enable_sys_tolua_cmd 1156with_missinglist 1157' 1158 ac_precious_vars='MOCCMD 1159build_alias 1160host_alias 1161target_alias 1162CC 1163CFLAGS 1164LDFLAGS 1165LIBS 1166CPPFLAGS 1167FREECIV_LABEL_FORCE 1168PKG_CONFIG 1169PKG_CONFIG_PATH 1170PKG_CONFIG_LIBDIR 1171WAND_CFLAGS 1172WAND_LIBS 1173CPP 1174LT_SYS_LIBRARY_PATH 1175CXX 1176CXXFLAGS 1177CCC 1178CXXCPP 1179CURL_CFLAGS 1180CURL_LIBS 1181LIBXML2_CFLAGS 1182LIBXML2_LIBS 1183SDL2_FRAMEWORK 1184SDL2_CFLAGS 1185SDL2_LIBS 1186SDL2MIXER_CFLAGS 1187SDL2MIXER_LIBS 1188SDLMIXER_CFLAGS 1189SDLMIXER_LIBS 1190GTK3_CFLAGS 1191GTK3_LIBS 1192GTK3_22_CFLAGS 1193GTK3_22_LIBS 1194FT2_CFLAGS 1195FT2_LIBS 1196XMKMF 1197PNG_CFLAGS 1198PNG_LIBS 1199GTK3MP_CFLAGS 1200GTK3MP_LIBS 1201GTHREAD_GTK3_CFLAGS 1202GTHREAD_GTK3_LIBS 1203GTHREAD_GTK2_CFLAGS 1204GTHREAD_GTK2_LIBS 1205LUA_CFLAGS 1206LUA_LIBS' 1207 1208 1209# Initialize some variables set by options. 1210ac_init_help= 1211ac_init_version=false 1212ac_unrecognized_opts= 1213ac_unrecognized_sep= 1214# The variables have the same names as the options, with 1215# dashes changed to underlines. 1216cache_file=/dev/null 1217exec_prefix=NONE 1218no_create= 1219no_recursion= 1220prefix=NONE 1221program_prefix=NONE 1222program_suffix=NONE 1223program_transform_name=s,x,x, 1224silent= 1225site= 1226srcdir= 1227verbose= 1228x_includes=NONE 1229x_libraries=NONE 1230 1231# Installation directory options. 1232# These are left unexpanded so users can "make install exec_prefix=/foo" 1233# and all the variables that are supposed to be based on exec_prefix 1234# by default will actually change. 1235# Use braces instead of parens because sh, perl, etc. also accept them. 1236# (The list follows the same order as the GNU Coding Standards.) 1237bindir='${exec_prefix}/bin' 1238sbindir='${exec_prefix}/sbin' 1239libexecdir='${exec_prefix}/libexec' 1240datarootdir='${prefix}/share' 1241datadir='${datarootdir}' 1242sysconfdir='${prefix}/etc' 1243sharedstatedir='${prefix}/com' 1244localstatedir='${prefix}/var' 1245runstatedir='${localstatedir}/run' 1246includedir='${prefix}/include' 1247oldincludedir='/usr/include' 1248docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1249infodir='${datarootdir}/info' 1250htmldir='${docdir}' 1251dvidir='${docdir}' 1252pdfdir='${docdir}' 1253psdir='${docdir}' 1254libdir='${exec_prefix}/lib' 1255localedir='${datarootdir}/locale' 1256mandir='${datarootdir}/man' 1257 1258ac_prev= 1259ac_dashdash= 1260for ac_option 1261do 1262 # If the previous option needs an argument, assign it. 1263 if test -n "$ac_prev"; then 1264 eval $ac_prev=\$ac_option 1265 ac_prev= 1266 continue 1267 fi 1268 1269 case $ac_option in 1270 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1271 *=) ac_optarg= ;; 1272 *) ac_optarg=yes ;; 1273 esac 1274 1275 case $ac_dashdash$ac_option in 1276 --) 1277 ac_dashdash=yes ;; 1278 1279 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1280 ac_prev=bindir ;; 1281 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1282 bindir=$ac_optarg ;; 1283 1284 -build | --build | --buil | --bui | --bu) 1285 ac_prev=build_alias ;; 1286 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1287 build_alias=$ac_optarg ;; 1288 1289 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1290 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1291 ac_prev=cache_file ;; 1292 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1293 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1294 cache_file=$ac_optarg ;; 1295 1296 --config-cache | -C) 1297 cache_file=config.cache ;; 1298 1299 -datadir | --datadir | --datadi | --datad) 1300 ac_prev=datadir ;; 1301 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1302 datadir=$ac_optarg ;; 1303 1304 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1305 | --dataroo | --dataro | --datar) 1306 ac_prev=datarootdir ;; 1307 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1308 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1309 datarootdir=$ac_optarg ;; 1310 1311 -disable-* | --disable-*) 1312 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1313 # Reject names that are not valid shell variable names. 1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1315 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1316 ac_useropt_orig=$ac_useropt 1317 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1318 case $ac_user_opts in 1319 *" 1320"enable_$ac_useropt" 1321"*) ;; 1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1323 ac_unrecognized_sep=', ';; 1324 esac 1325 eval enable_$ac_useropt=no ;; 1326 1327 -docdir | --docdir | --docdi | --doc | --do) 1328 ac_prev=docdir ;; 1329 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1330 docdir=$ac_optarg ;; 1331 1332 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1333 ac_prev=dvidir ;; 1334 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1335 dvidir=$ac_optarg ;; 1336 1337 -enable-* | --enable-*) 1338 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1339 # Reject names that are not valid shell variable names. 1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1341 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1342 ac_useropt_orig=$ac_useropt 1343 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1344 case $ac_user_opts in 1345 *" 1346"enable_$ac_useropt" 1347"*) ;; 1348 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1349 ac_unrecognized_sep=', ';; 1350 esac 1351 eval enable_$ac_useropt=\$ac_optarg ;; 1352 1353 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1354 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1355 | --exec | --exe | --ex) 1356 ac_prev=exec_prefix ;; 1357 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1358 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1359 | --exec=* | --exe=* | --ex=*) 1360 exec_prefix=$ac_optarg ;; 1361 1362 -gas | --gas | --ga | --g) 1363 # Obsolete; use --with-gas. 1364 with_gas=yes ;; 1365 1366 -help | --help | --hel | --he | -h) 1367 ac_init_help=long ;; 1368 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1369 ac_init_help=recursive ;; 1370 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1371 ac_init_help=short ;; 1372 1373 -host | --host | --hos | --ho) 1374 ac_prev=host_alias ;; 1375 -host=* | --host=* | --hos=* | --ho=*) 1376 host_alias=$ac_optarg ;; 1377 1378 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1379 ac_prev=htmldir ;; 1380 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1381 | --ht=*) 1382 htmldir=$ac_optarg ;; 1383 1384 -includedir | --includedir | --includedi | --included | --include \ 1385 | --includ | --inclu | --incl | --inc) 1386 ac_prev=includedir ;; 1387 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1388 | --includ=* | --inclu=* | --incl=* | --inc=*) 1389 includedir=$ac_optarg ;; 1390 1391 -infodir | --infodir | --infodi | --infod | --info | --inf) 1392 ac_prev=infodir ;; 1393 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1394 infodir=$ac_optarg ;; 1395 1396 -libdir | --libdir | --libdi | --libd) 1397 ac_prev=libdir ;; 1398 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1399 libdir=$ac_optarg ;; 1400 1401 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1402 | --libexe | --libex | --libe) 1403 ac_prev=libexecdir ;; 1404 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1405 | --libexe=* | --libex=* | --libe=*) 1406 libexecdir=$ac_optarg ;; 1407 1408 -localedir | --localedir | --localedi | --localed | --locale) 1409 ac_prev=localedir ;; 1410 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1411 localedir=$ac_optarg ;; 1412 1413 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1414 | --localstate | --localstat | --localsta | --localst | --locals) 1415 ac_prev=localstatedir ;; 1416 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1417 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1418 localstatedir=$ac_optarg ;; 1419 1420 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1421 ac_prev=mandir ;; 1422 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1423 mandir=$ac_optarg ;; 1424 1425 -nfp | --nfp | --nf) 1426 # Obsolete; use --without-fp. 1427 with_fp=no ;; 1428 1429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1430 | --no-cr | --no-c | -n) 1431 no_create=yes ;; 1432 1433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1435 no_recursion=yes ;; 1436 1437 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1438 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1439 | --oldin | --oldi | --old | --ol | --o) 1440 ac_prev=oldincludedir ;; 1441 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1442 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1443 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1444 oldincludedir=$ac_optarg ;; 1445 1446 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1447 ac_prev=prefix ;; 1448 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1449 prefix=$ac_optarg ;; 1450 1451 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1452 | --program-pre | --program-pr | --program-p) 1453 ac_prev=program_prefix ;; 1454 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1455 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1456 program_prefix=$ac_optarg ;; 1457 1458 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1459 | --program-suf | --program-su | --program-s) 1460 ac_prev=program_suffix ;; 1461 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1462 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1463 program_suffix=$ac_optarg ;; 1464 1465 -program-transform-name | --program-transform-name \ 1466 | --program-transform-nam | --program-transform-na \ 1467 | --program-transform-n | --program-transform- \ 1468 | --program-transform | --program-transfor \ 1469 | --program-transfo | --program-transf \ 1470 | --program-trans | --program-tran \ 1471 | --progr-tra | --program-tr | --program-t) 1472 ac_prev=program_transform_name ;; 1473 -program-transform-name=* | --program-transform-name=* \ 1474 | --program-transform-nam=* | --program-transform-na=* \ 1475 | --program-transform-n=* | --program-transform-=* \ 1476 | --program-transform=* | --program-transfor=* \ 1477 | --program-transfo=* | --program-transf=* \ 1478 | --program-trans=* | --program-tran=* \ 1479 | --progr-tra=* | --program-tr=* | --program-t=*) 1480 program_transform_name=$ac_optarg ;; 1481 1482 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1483 ac_prev=pdfdir ;; 1484 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1485 pdfdir=$ac_optarg ;; 1486 1487 -psdir | --psdir | --psdi | --psd | --ps) 1488 ac_prev=psdir ;; 1489 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1490 psdir=$ac_optarg ;; 1491 1492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1493 | -silent | --silent | --silen | --sile | --sil) 1494 silent=yes ;; 1495 1496 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1497 | --runstate | --runstat | --runsta | --runst | --runs \ 1498 | --run | --ru | --r) 1499 ac_prev=runstatedir ;; 1500 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1501 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1502 | --run=* | --ru=* | --r=*) 1503 runstatedir=$ac_optarg ;; 1504 1505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1506 ac_prev=sbindir ;; 1507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1508 | --sbi=* | --sb=*) 1509 sbindir=$ac_optarg ;; 1510 1511 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1513 | --sharedst | --shareds | --shared | --share | --shar \ 1514 | --sha | --sh) 1515 ac_prev=sharedstatedir ;; 1516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1519 | --sha=* | --sh=*) 1520 sharedstatedir=$ac_optarg ;; 1521 1522 -site | --site | --sit) 1523 ac_prev=site ;; 1524 -site=* | --site=* | --sit=*) 1525 site=$ac_optarg ;; 1526 1527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1528 ac_prev=srcdir ;; 1529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1530 srcdir=$ac_optarg ;; 1531 1532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1533 | --syscon | --sysco | --sysc | --sys | --sy) 1534 ac_prev=sysconfdir ;; 1535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1537 sysconfdir=$ac_optarg ;; 1538 1539 -target | --target | --targe | --targ | --tar | --ta | --t) 1540 ac_prev=target_alias ;; 1541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1542 target_alias=$ac_optarg ;; 1543 1544 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1545 verbose=yes ;; 1546 1547 -version | --version | --versio | --versi | --vers | -V) 1548 ac_init_version=: ;; 1549 1550 -with-* | --with-*) 1551 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1552 # Reject names that are not valid shell variable names. 1553 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1554 as_fn_error $? "invalid package name: \`$ac_useropt'" 1555 ac_useropt_orig=$ac_useropt 1556 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1557 case $ac_user_opts in 1558 *" 1559"with_$ac_useropt" 1560"*) ;; 1561 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1562 ac_unrecognized_sep=', ';; 1563 esac 1564 eval with_$ac_useropt=\$ac_optarg ;; 1565 1566 -without-* | --without-*) 1567 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1568 # Reject names that are not valid shell variable names. 1569 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1570 as_fn_error $? "invalid package name: \`$ac_useropt'" 1571 ac_useropt_orig=$ac_useropt 1572 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1573 case $ac_user_opts in 1574 *" 1575"with_$ac_useropt" 1576"*) ;; 1577 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1578 ac_unrecognized_sep=', ';; 1579 esac 1580 eval with_$ac_useropt=no ;; 1581 1582 --x) 1583 # Obsolete; use --with-x. 1584 with_x=yes ;; 1585 1586 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1587 | --x-incl | --x-inc | --x-in | --x-i) 1588 ac_prev=x_includes ;; 1589 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1590 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1591 x_includes=$ac_optarg ;; 1592 1593 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1594 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1595 ac_prev=x_libraries ;; 1596 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1597 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1598 x_libraries=$ac_optarg ;; 1599 1600 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1601Try \`$0 --help' for more information" 1602 ;; 1603 1604 *=*) 1605 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1606 # Reject names that are not valid shell variable names. 1607 case $ac_envvar in #( 1608 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1609 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1610 esac 1611 eval $ac_envvar=\$ac_optarg 1612 export $ac_envvar ;; 1613 1614 *) 1615 # FIXME: should be removed in autoconf 3.0. 1616 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1617 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1618 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1619 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1620 ;; 1621 1622 esac 1623done 1624 1625if test -n "$ac_prev"; then 1626 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1627 as_fn_error $? "missing argument to $ac_option" 1628fi 1629 1630if test -n "$ac_unrecognized_opts"; then 1631 case $enable_option_checking in 1632 no) ;; 1633 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1634 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1635 esac 1636fi 1637 1638# Check all directory arguments for consistency. 1639for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1640 datadir sysconfdir sharedstatedir localstatedir includedir \ 1641 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1642 libdir localedir mandir runstatedir 1643do 1644 eval ac_val=\$$ac_var 1645 # Remove trailing slashes. 1646 case $ac_val in 1647 */ ) 1648 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1649 eval $ac_var=\$ac_val;; 1650 esac 1651 # Be sure to have absolute directory names. 1652 case $ac_val in 1653 [\\/$]* | ?:[\\/]* ) continue;; 1654 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1655 esac 1656 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1657done 1658 1659# There might be people who depend on the old broken behavior: `$host' 1660# used to hold the argument of --host etc. 1661# FIXME: To remove some day. 1662build=$build_alias 1663host=$host_alias 1664target=$target_alias 1665 1666# FIXME: To remove some day. 1667if test "x$host_alias" != x; then 1668 if test "x$build_alias" = x; then 1669 cross_compiling=maybe 1670 elif test "x$build_alias" != "x$host_alias"; then 1671 cross_compiling=yes 1672 fi 1673fi 1674 1675ac_tool_prefix= 1676test -n "$host_alias" && ac_tool_prefix=$host_alias- 1677 1678test "$silent" = yes && exec 6>/dev/null 1679 1680 1681ac_pwd=`pwd` && test -n "$ac_pwd" && 1682ac_ls_di=`ls -di .` && 1683ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1684 as_fn_error $? "working directory cannot be determined" 1685test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1686 as_fn_error $? "pwd does not report name of working directory" 1687 1688 1689# Find the source files, if location was not specified. 1690if test -z "$srcdir"; then 1691 ac_srcdir_defaulted=yes 1692 # Try the directory containing this script, then the parent directory. 1693 ac_confdir=`$as_dirname -- "$as_myself" || 1694$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1695 X"$as_myself" : 'X\(//\)[^/]' \| \ 1696 X"$as_myself" : 'X\(//\)$' \| \ 1697 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1698printf "%s\n" X"$as_myself" | 1699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1700 s//\1/ 1701 q 1702 } 1703 /^X\(\/\/\)[^/].*/{ 1704 s//\1/ 1705 q 1706 } 1707 /^X\(\/\/\)$/{ 1708 s//\1/ 1709 q 1710 } 1711 /^X\(\/\).*/{ 1712 s//\1/ 1713 q 1714 } 1715 s/.*/./; q'` 1716 srcdir=$ac_confdir 1717 if test ! -r "$srcdir/$ac_unique_file"; then 1718 srcdir=.. 1719 fi 1720else 1721 ac_srcdir_defaulted=no 1722fi 1723if test ! -r "$srcdir/$ac_unique_file"; then 1724 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1725 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1726fi 1727ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1728ac_abs_confdir=`( 1729 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1730 pwd)` 1731# When building in place, set srcdir=. 1732if test "$ac_abs_confdir" = "$ac_pwd"; then 1733 srcdir=. 1734fi 1735# Remove unnecessary trailing slashes from srcdir. 1736# Double slashes in file names in object file debugging info 1737# mess up M-x gdb in Emacs. 1738case $srcdir in 1739*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1740esac 1741for ac_var in $ac_precious_vars; do 1742 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1743 eval ac_env_${ac_var}_value=\$${ac_var} 1744 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1745 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1746done 1747 1748# 1749# Report the --help message. 1750# 1751if test "$ac_init_help" = "long"; then 1752 # Omit some internal or obsolete options to make the list less imposing. 1753 # This message is too long to be a string in the A/UX 3.1 sh. 1754 cat <<_ACEOF 1755\`configure' configures Freeciv 2.6.6 to adapt to many kinds of systems. 1756 1757Usage: $0 [OPTION]... [VAR=VALUE]... 1758 1759To assign environment variables (e.g., CC, CFLAGS...), specify them as 1760VAR=VALUE. See below for descriptions of some of the useful variables. 1761 1762Defaults for the options are specified in brackets. 1763 1764Configuration: 1765 -h, --help display this help and exit 1766 --help=short display options specific to this package 1767 --help=recursive display the short help of all the included packages 1768 -V, --version display version information and exit 1769 -q, --quiet, --silent do not print \`checking ...' messages 1770 --cache-file=FILE cache test results in FILE [disabled] 1771 -C, --config-cache alias for \`--cache-file=config.cache' 1772 -n, --no-create do not create output files 1773 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1774 1775Installation directories: 1776 --prefix=PREFIX install architecture-independent files in PREFIX 1777 [$ac_default_prefix] 1778 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1779 [PREFIX] 1780 1781By default, \`make install' will install all the files in 1782\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1783an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1784for instance \`--prefix=\$HOME'. 1785 1786For better control, use the options below. 1787 1788Fine tuning of the installation directories: 1789 --bindir=DIR user executables [EPREFIX/bin] 1790 --sbindir=DIR system admin executables [EPREFIX/sbin] 1791 --libexecdir=DIR program executables [EPREFIX/libexec] 1792 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1793 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1794 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1795 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1796 --libdir=DIR object code libraries [EPREFIX/lib] 1797 --includedir=DIR C header files [PREFIX/include] 1798 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1799 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1800 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1801 --infodir=DIR info documentation [DATAROOTDIR/info] 1802 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1803 --mandir=DIR man documentation [DATAROOTDIR/man] 1804 --docdir=DIR documentation root [DATAROOTDIR/doc/freeciv] 1805 --htmldir=DIR html documentation [DOCDIR] 1806 --dvidir=DIR dvi documentation [DOCDIR] 1807 --pdfdir=DIR pdf documentation [DOCDIR] 1808 --psdir=DIR ps documentation [DOCDIR] 1809_ACEOF 1810 1811 cat <<\_ACEOF 1812 1813Program names: 1814 --program-prefix=PREFIX prepend PREFIX to installed program names 1815 --program-suffix=SUFFIX append SUFFIX to installed program names 1816 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1817 1818X features: 1819 --x-includes=DIR X include files are in DIR 1820 --x-libraries=DIR X library files are in DIR 1821 1822System types: 1823 --build=BUILD configure for building on BUILD [guessed] 1824 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1825_ACEOF 1826fi 1827 1828if test -n "$ac_init_help"; then 1829 case $ac_init_help in 1830 short | recursive ) echo "Configuration of Freeciv 2.6.6:";; 1831 esac 1832 cat <<\_ACEOF 1833 1834Optional Features: 1835 --disable-option-checking ignore unrecognized --enable/--with options 1836 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1837 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1838 --enable-dependency-tracking 1839 do not reject slow dependency extractors 1840 --disable-dependency-tracking 1841 speeds up one-time build 1842 --enable-silent-rules less verbose build output (undo: "make V=1") 1843 --disable-silent-rules verbose build output (undo: "make V=0") 1844 --enable-fcdb=no/all/mysql/postgres/sqlite3 1845 database backends [no](no, or list) 1846 --disable-server do not compile the server 1847 --enable-ipv6=yes/no/test 1848 use IPv6 [test] 1849 --enable-patient-connect=yes/no 1850 enable client to be very patient in connecting 1851 spawned server 1852 --enable-mapimg=no/auto/magickwand 1853 additional map image toolkits to compile [auto](no, 1854 or list) 1855 --enable-testmatic Produce logging useful in freeciv testing 1856 integration 1857 --enable-client=auto/all/gtk2/gtk3/gtk3.22/sdl/sdl2/xaw/qt/stub 1858 clients to compile [auto](list for multiple) 1859 --enable-gitrev get git revision to version information 1860 --disable-make-data do not recurse make into data directories 1861 --enable-make-include force make to recurse into include directory 1862 --enable-aimodules=yes/no/experimental 1863 support for ai modules [no] 1864 --enable-ai-static statically link listed modules to server 1865 --enable-shared[=PKGS] build shared libraries [default=no] 1866 --enable-static[=PKGS] build static libraries [default=yes] 1867 --enable-fast-install[=PKGS] 1868 optimize for fast installation [default=yes] 1869 --disable-libtool-lock avoid locking (might break parallel builds) 1870 --disable-rpath do not hardcode runtime library paths 1871 --disable-nls do not use Native Language Support 1872 --enable-xml-registry build xml-backend for registry (WIP) 1873 --enable-debug=no/some/yes/checks 1874 turn on debugging [[default=some]] 1875 --enable-gprof turn on profiling [[default=no]] 1876 --enable-crosser build version to be used with crosser environment 1877 --enable-sdl-mixer=no/sdl/sdl2 1878 use the SDL mixer [sdl2] 1879 --disable-sdl2test Do not try to compile and run a test SDL2 program 1880 --disable-sdl2framework Do not search for SDL2.framework 1881 --disable-sdltest Do not try to compile and run a test SDL program 1882 --disable-gtktest do not try to compile and run a test GTK+ program 1883 --enable-freeciv-manual=no/yes/wiki/html 1884 build freeciv-manual [wiki] 1885 --enable-fcmp=no/yes/gtk2/gtk3/qt/cli/all/auto 1886 build freeciv-modpack-program [auto] 1887 --enable-ruledit build freeciv-ruledit (WIP) 1888 --enable-sys-lua use lua from system instead of one from freeciv tree 1889 [test] 1890 --enable-sys-tolua-cmd use tolua command from build system instead of one 1891 from freeciv tree [true_when_cross-compiling] 1892 1893Optional Packages: 1894 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1895 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1896 --with-mysql-prefix=PFX Prefix where MySql is installed (optional) 1897 --with-postgres-prefix=PFX 1898 Prefix where PostgreSQL is installed (optional) 1899 --with-sqlite3-prefix=PFX 1900 Prefix where SQLite3 is installed (optional) 1901 --with-readline support fancy command line editing 1902 --with-followtag version tag to follow 1903 --with-modlist default modlist URL 1904 --with-desktopdir install desktop files to given dir 1905 --with-appdatadir install appdata files to given dir 1906 --with-magickwand=DIR Imagemagick installation directory (optional) 1907 --with-xaw use the Xaw widget set for the xaw client 1908 --with-xaw3d use the Xaw3d widget set for the xaw client 1909 --with-efence use Electric Fence, malloc debugger 1910 --with-default-ai default ai type [first_static] 1911 --with-ai-lib build in default AI code [if_needed] 1912 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1913 both] 1914 --with-aix-soname=aix|svr4|both 1915 shared library versioning (aka "SONAME") variant to 1916 provide on AIX, [default=aix]. 1917 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1918 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1919 compiler's sysroot if not specified). 1920 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1921 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1922 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1923 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1924 --without-libintl-prefix don't search for libintl in includedir and libdir 1925 --with-libbz2 support bzip2 compressed files [if_possible] 1926 --with-liblzma support xz compressed files [if_possible] 1927 --with-cacert-path path to ca cert bundle 1928 --with-sdl2-prefix=PFX Prefix where SDL2 is installed (optional) 1929 --with-sdl2-exec-prefix=PFX 1930 Exec prefix where SDL2 is installed (optional) 1931 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1932 --with-sdl-exec-prefix=PFX 1933 Exec prefix where SDL is installed (optional) 1934 --with-qt5-framework-bin 1935 path to binares of Qt5 framework (MacOS X, 1936 autodetected if wasn't specified) 1937 --with-qt5-includes path to Qt5 includes 1938 --with-qt5-libs path to Qt5 libraries 1939 --with-x use the X Window System 1940 --with-x-funcproto=DEFS Xfuncproto control definitions are DEFS (e.g.: 1941 --with-x-funcproto='FUNCPROTO=15 NARROWPROTO' 1942 --with-xpm-prefix=DIR Xpm files are in DIR/lib and DIR/include, or use the 1943 following to set them separately 1944 --with-xpm-lib=DIR Xpm library is in DIR 1945 --with-xpm-include=DIR Xpm header file is in DIR (that is, DIR/X11/xpm.h) 1946 --with-missinglist list missing features after configure 1947 1948Some influential environment variables: 1949 MOCCMD QT 5 moc command (autodetected it if not set) 1950 CC C compiler command 1951 CFLAGS C compiler flags 1952 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1953 nonstandard directory <lib dir> 1954 LIBS libraries to pass to the linker, e.g. -l<library> 1955 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1956 you have headers in a nonstandard directory <include dir> 1957 FREECIV_LABEL_FORCE 1958 Forced version label format 1959 PKG_CONFIG path to pkg-config utility 1960 PKG_CONFIG_PATH 1961 directories to add to pkg-config's search path 1962 PKG_CONFIG_LIBDIR 1963 path overriding pkg-config's built-in search path 1964 WAND_CFLAGS C compiler flags for WAND, overriding pkg-config 1965 WAND_LIBS linker flags for WAND, overriding pkg-config 1966 CPP C preprocessor 1967 LT_SYS_LIBRARY_PATH 1968 User-defined run-time library search path. 1969 CXX C++ compiler command 1970 CXXFLAGS C++ compiler flags 1971 CXXCPP C++ preprocessor 1972 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config 1973 CURL_LIBS linker flags for CURL, overriding pkg-config 1974 LIBXML2_CFLAGS 1975 C compiler flags for LIBXML2, overriding pkg-config 1976 LIBXML2_LIBS 1977 linker flags for LIBXML2, overriding pkg-config 1978 SDL2_FRAMEWORK 1979 Path to SDL2.framework 1980 SDL2_CFLAGS C compiler flags for SDL2, overriding pkg-config 1981 SDL2_LIBS linker flags for SDL2, overriding pkg-config 1982 SDL2MIXER_CFLAGS 1983 C compiler flags for SDL2MIXER, overriding pkg-config 1984 SDL2MIXER_LIBS 1985 linker flags for SDL2MIXER, overriding pkg-config 1986 SDLMIXER_CFLAGS 1987 C compiler flags for SDLMIXER, overriding pkg-config 1988 SDLMIXER_LIBS 1989 linker flags for SDLMIXER, overriding pkg-config 1990 GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config 1991 GTK3_LIBS linker flags for GTK3, overriding pkg-config 1992 GTK3_22_CFLAGS 1993 C compiler flags for GTK3_22, overriding pkg-config 1994 GTK3_22_LIBS 1995 linker flags for GTK3_22, overriding pkg-config 1996 FT2_CFLAGS C compiler flags for FT2, overriding pkg-config 1997 FT2_LIBS linker flags for FT2, overriding pkg-config 1998 XMKMF Path to xmkmf, Makefile generator for X Window System 1999 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2000 PNG_LIBS linker flags for PNG, overriding pkg-config 2001 GTK3MP_CFLAGS 2002 C compiler flags for GTK3MP, overriding pkg-config 2003 GTK3MP_LIBS linker flags for GTK3MP, overriding pkg-config 2004 GTHREAD_GTK3_CFLAGS 2005 C compiler flags for GTHREAD_GTK3, overriding pkg-config 2006 GTHREAD_GTK3_LIBS 2007 linker flags for GTHREAD_GTK3, overriding pkg-config 2008 GTHREAD_GTK2_CFLAGS 2009 C compiler flags for GTHREAD_GTK2, overriding pkg-config 2010 GTHREAD_GTK2_LIBS 2011 linker flags for GTHREAD_GTK2, overriding pkg-config 2012 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config 2013 LUA_LIBS linker flags for LUA, overriding pkg-config 2014 2015Use these variables to override the choices made by `configure' or to help 2016it to find libraries and programs with nonstandard names/locations. 2017 2018Report bugs to <https://osdn.net/projects/freeciv/ticket/>. 2019_ACEOF 2020ac_status=$? 2021fi 2022 2023if test "$ac_init_help" = "recursive"; then 2024 # If there are subdirs, report their specific --help. 2025 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2026 test -d "$ac_dir" || 2027 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2028 continue 2029 ac_builddir=. 2030 2031case "$ac_dir" in 2032.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2033*) 2034 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 2035 # A ".." for each directory in $ac_dir_suffix. 2036 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2037 case $ac_top_builddir_sub in 2038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2040 esac ;; 2041esac 2042ac_abs_top_builddir=$ac_pwd 2043ac_abs_builddir=$ac_pwd$ac_dir_suffix 2044# for backward compatibility: 2045ac_top_builddir=$ac_top_build_prefix 2046 2047case $srcdir in 2048 .) # We are building in place. 2049 ac_srcdir=. 2050 ac_top_srcdir=$ac_top_builddir_sub 2051 ac_abs_top_srcdir=$ac_pwd ;; 2052 [\\/]* | ?:[\\/]* ) # Absolute name. 2053 ac_srcdir=$srcdir$ac_dir_suffix; 2054 ac_top_srcdir=$srcdir 2055 ac_abs_top_srcdir=$srcdir ;; 2056 *) # Relative name. 2057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2058 ac_top_srcdir=$ac_top_build_prefix$srcdir 2059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2060esac 2061ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2062 2063 cd "$ac_dir" || { ac_status=$?; continue; } 2064 # Check for configure.gnu first; this name is used for a wrapper for 2065 # Metaconfig's "Configure" on case-insensitive file systems. 2066 if test -f "$ac_srcdir/configure.gnu"; then 2067 echo && 2068 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2069 elif test -f "$ac_srcdir/configure"; then 2070 echo && 2071 $SHELL "$ac_srcdir/configure" --help=recursive 2072 else 2073 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2074 fi || ac_status=$? 2075 cd "$ac_pwd" || { ac_status=$?; break; } 2076 done 2077fi 2078 2079test -n "$ac_init_help" && exit $ac_status 2080if $ac_init_version; then 2081 cat <<\_ACEOF 2082Freeciv configure 2.6.6 2083generated by GNU Autoconf 2.71 2084 2085Copyright (C) 2021 Free Software Foundation, Inc. 2086This configure script is free software; the Free Software Foundation 2087gives unlimited permission to copy, distribute and modify it. 2088_ACEOF 2089 exit 2090fi 2091 2092## ------------------------ ## 2093## Autoconf initialization. ## 2094## ------------------------ ## 2095 2096# ac_fn_c_try_compile LINENO 2097# -------------------------- 2098# Try to compile conftest.$ac_ext, and return whether this succeeded. 2099ac_fn_c_try_compile () 2100{ 2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2102 rm -f conftest.$ac_objext conftest.beam 2103 if { { ac_try="$ac_compile" 2104case "(($ac_try" in 2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2106 *) ac_try_echo=$ac_try;; 2107esac 2108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2109printf "%s\n" "$ac_try_echo"; } >&5 2110 (eval "$ac_compile") 2>conftest.err 2111 ac_status=$? 2112 if test -s conftest.err; then 2113 grep -v '^ *+' conftest.err >conftest.er1 2114 cat conftest.er1 >&5 2115 mv -f conftest.er1 conftest.err 2116 fi 2117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2118 test $ac_status = 0; } && { 2119 test -z "$ac_c_werror_flag" || 2120 test ! -s conftest.err 2121 } && test -s conftest.$ac_objext 2122then : 2123 ac_retval=0 2124else $as_nop 2125 printf "%s\n" "$as_me: failed program was:" >&5 2126sed 's/^/| /' conftest.$ac_ext >&5 2127 2128 ac_retval=1 2129fi 2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2131 as_fn_set_status $ac_retval 2132 2133} # ac_fn_c_try_compile 2134 2135# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2136# ------------------------------------------------------- 2137# Tests whether HEADER exists and can be compiled using the include files in 2138# INCLUDES, setting the cache variable VAR accordingly. 2139ac_fn_c_check_header_compile () 2140{ 2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2143printf %s "checking for $2... " >&6; } 2144if eval test \${$3+y} 2145then : 2146 printf %s "(cached) " >&6 2147else $as_nop 2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2149/* end confdefs.h. */ 2150$4 2151#include <$2> 2152_ACEOF 2153if ac_fn_c_try_compile "$LINENO" 2154then : 2155 eval "$3=yes" 2156else $as_nop 2157 eval "$3=no" 2158fi 2159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2160fi 2161eval ac_res=\$$3 2162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2163printf "%s\n" "$ac_res" >&6; } 2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2165 2166} # ac_fn_c_check_header_compile 2167 2168# ac_fn_c_try_run LINENO 2169# ---------------------- 2170# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2171# executables *can* be run. 2172ac_fn_c_try_run () 2173{ 2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2175 if { { ac_try="$ac_link" 2176case "(($ac_try" in 2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2178 *) ac_try_echo=$ac_try;; 2179esac 2180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2181printf "%s\n" "$ac_try_echo"; } >&5 2182 (eval "$ac_link") 2>&5 2183 ac_status=$? 2184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2185 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2186 { { case "(($ac_try" in 2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2188 *) ac_try_echo=$ac_try;; 2189esac 2190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2191printf "%s\n" "$ac_try_echo"; } >&5 2192 (eval "$ac_try") 2>&5 2193 ac_status=$? 2194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2195 test $ac_status = 0; }; } 2196then : 2197 ac_retval=0 2198else $as_nop 2199 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2200 printf "%s\n" "$as_me: failed program was:" >&5 2201sed 's/^/| /' conftest.$ac_ext >&5 2202 2203 ac_retval=$ac_status 2204fi 2205 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2207 as_fn_set_status $ac_retval 2208 2209} # ac_fn_c_try_run 2210 2211# ac_fn_c_try_link LINENO 2212# ----------------------- 2213# Try to link conftest.$ac_ext, and return whether this succeeded. 2214ac_fn_c_try_link () 2215{ 2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2217 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2218 if { { ac_try="$ac_link" 2219case "(($ac_try" in 2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2221 *) ac_try_echo=$ac_try;; 2222esac 2223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2224printf "%s\n" "$ac_try_echo"; } >&5 2225 (eval "$ac_link") 2>conftest.err 2226 ac_status=$? 2227 if test -s conftest.err; then 2228 grep -v '^ *+' conftest.err >conftest.er1 2229 cat conftest.er1 >&5 2230 mv -f conftest.er1 conftest.err 2231 fi 2232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2233 test $ac_status = 0; } && { 2234 test -z "$ac_c_werror_flag" || 2235 test ! -s conftest.err 2236 } && test -s conftest$ac_exeext && { 2237 test "$cross_compiling" = yes || 2238 test -x conftest$ac_exeext 2239 } 2240then : 2241 ac_retval=0 2242else $as_nop 2243 printf "%s\n" "$as_me: failed program was:" >&5 2244sed 's/^/| /' conftest.$ac_ext >&5 2245 2246 ac_retval=1 2247fi 2248 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2249 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2250 # interfere with the next link command; also delete a directory that is 2251 # left behind by Apple's compiler. We do this before executing the actions. 2252 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2254 as_fn_set_status $ac_retval 2255 2256} # ac_fn_c_try_link 2257 2258# ac_fn_c_check_func LINENO FUNC VAR 2259# ---------------------------------- 2260# Tests whether FUNC exists, setting the cache variable VAR accordingly 2261ac_fn_c_check_func () 2262{ 2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2265printf %s "checking for $2... " >&6; } 2266if eval test \${$3+y} 2267then : 2268 printf %s "(cached) " >&6 2269else $as_nop 2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2271/* end confdefs.h. */ 2272/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2273 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2274#define $2 innocuous_$2 2275 2276/* System header to define __stub macros and hopefully few prototypes, 2277 which can conflict with char $2 (); below. */ 2278 2279#include <limits.h> 2280#undef $2 2281 2282/* Override any GCC internal prototype to avoid an error. 2283 Use char because int might match the return type of a GCC 2284 builtin and then its argument prototype would still apply. */ 2285#ifdef __cplusplus 2286extern "C" 2287#endif 2288char $2 (); 2289/* The GNU C library defines this for functions which it implements 2290 to always fail with ENOSYS. Some functions are actually named 2291 something starting with __ and the normal name is an alias. */ 2292#if defined __stub_$2 || defined __stub___$2 2293choke me 2294#endif 2295 2296int 2297main (void) 2298{ 2299return $2 (); 2300 ; 2301 return 0; 2302} 2303_ACEOF 2304if ac_fn_c_try_link "$LINENO" 2305then : 2306 eval "$3=yes" 2307else $as_nop 2308 eval "$3=no" 2309fi 2310rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2311 conftest$ac_exeext conftest.$ac_ext 2312fi 2313eval ac_res=\$$3 2314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2315printf "%s\n" "$ac_res" >&6; } 2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2317 2318} # ac_fn_c_check_func 2319 2320# ac_fn_c_try_cpp LINENO 2321# ---------------------- 2322# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2323ac_fn_c_try_cpp () 2324{ 2325 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2326 if { { ac_try="$ac_cpp conftest.$ac_ext" 2327case "(($ac_try" in 2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2329 *) ac_try_echo=$ac_try;; 2330esac 2331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2332printf "%s\n" "$ac_try_echo"; } >&5 2333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2334 ac_status=$? 2335 if test -s conftest.err; then 2336 grep -v '^ *+' conftest.err >conftest.er1 2337 cat conftest.er1 >&5 2338 mv -f conftest.er1 conftest.err 2339 fi 2340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2341 test $ac_status = 0; } > conftest.i && { 2342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2343 test ! -s conftest.err 2344 } 2345then : 2346 ac_retval=0 2347else $as_nop 2348 printf "%s\n" "$as_me: failed program was:" >&5 2349sed 's/^/| /' conftest.$ac_ext >&5 2350 2351 ac_retval=1 2352fi 2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2354 as_fn_set_status $ac_retval 2355 2356} # ac_fn_c_try_cpp 2357 2358# ac_fn_cxx_try_compile LINENO 2359# ---------------------------- 2360# Try to compile conftest.$ac_ext, and return whether this succeeded. 2361ac_fn_cxx_try_compile () 2362{ 2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2364 rm -f conftest.$ac_objext conftest.beam 2365 if { { ac_try="$ac_compile" 2366case "(($ac_try" in 2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2368 *) ac_try_echo=$ac_try;; 2369esac 2370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2371printf "%s\n" "$ac_try_echo"; } >&5 2372 (eval "$ac_compile") 2>conftest.err 2373 ac_status=$? 2374 if test -s conftest.err; then 2375 grep -v '^ *+' conftest.err >conftest.er1 2376 cat conftest.er1 >&5 2377 mv -f conftest.er1 conftest.err 2378 fi 2379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2380 test $ac_status = 0; } && { 2381 test -z "$ac_cxx_werror_flag" || 2382 test ! -s conftest.err 2383 } && test -s conftest.$ac_objext 2384then : 2385 ac_retval=0 2386else $as_nop 2387 printf "%s\n" "$as_me: failed program was:" >&5 2388sed 's/^/| /' conftest.$ac_ext >&5 2389 2390 ac_retval=1 2391fi 2392 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2393 as_fn_set_status $ac_retval 2394 2395} # ac_fn_cxx_try_compile 2396 2397# ac_fn_cxx_try_cpp LINENO 2398# ------------------------ 2399# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2400ac_fn_cxx_try_cpp () 2401{ 2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2403 if { { ac_try="$ac_cpp conftest.$ac_ext" 2404case "(($ac_try" in 2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2406 *) ac_try_echo=$ac_try;; 2407esac 2408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2409printf "%s\n" "$ac_try_echo"; } >&5 2410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2411 ac_status=$? 2412 if test -s conftest.err; then 2413 grep -v '^ *+' conftest.err >conftest.er1 2414 cat conftest.er1 >&5 2415 mv -f conftest.er1 conftest.err 2416 fi 2417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2418 test $ac_status = 0; } > conftest.i && { 2419 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2420 test ! -s conftest.err 2421 } 2422then : 2423 ac_retval=0 2424else $as_nop 2425 printf "%s\n" "$as_me: failed program was:" >&5 2426sed 's/^/| /' conftest.$ac_ext >&5 2427 2428 ac_retval=1 2429fi 2430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2431 as_fn_set_status $ac_retval 2432 2433} # ac_fn_cxx_try_cpp 2434 2435# ac_fn_cxx_try_link LINENO 2436# ------------------------- 2437# Try to link conftest.$ac_ext, and return whether this succeeded. 2438ac_fn_cxx_try_link () 2439{ 2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2441 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2442 if { { ac_try="$ac_link" 2443case "(($ac_try" in 2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2445 *) ac_try_echo=$ac_try;; 2446esac 2447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2448printf "%s\n" "$ac_try_echo"; } >&5 2449 (eval "$ac_link") 2>conftest.err 2450 ac_status=$? 2451 if test -s conftest.err; then 2452 grep -v '^ *+' conftest.err >conftest.er1 2453 cat conftest.er1 >&5 2454 mv -f conftest.er1 conftest.err 2455 fi 2456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2457 test $ac_status = 0; } && { 2458 test -z "$ac_cxx_werror_flag" || 2459 test ! -s conftest.err 2460 } && test -s conftest$ac_exeext && { 2461 test "$cross_compiling" = yes || 2462 test -x conftest$ac_exeext 2463 } 2464then : 2465 ac_retval=0 2466else $as_nop 2467 printf "%s\n" "$as_me: failed program was:" >&5 2468sed 's/^/| /' conftest.$ac_ext >&5 2469 2470 ac_retval=1 2471fi 2472 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2473 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2474 # interfere with the next link command; also delete a directory that is 2475 # left behind by Apple's compiler. We do this before executing the actions. 2476 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2478 as_fn_set_status $ac_retval 2479 2480} # ac_fn_cxx_try_link 2481 2482# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2483# -------------------------------------------- 2484# Tries to find the compile-time value of EXPR in a program that includes 2485# INCLUDES, setting VAR accordingly. Returns whether the value could be 2486# computed 2487ac_fn_c_compute_int () 2488{ 2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2490 if test "$cross_compiling" = yes; then 2491 # Depending upon the size, compute the lo and hi bounds. 2492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2493/* end confdefs.h. */ 2494$4 2495int 2496main (void) 2497{ 2498static int test_array [1 - 2 * !(($2) >= 0)]; 2499test_array [0] = 0; 2500return test_array [0]; 2501 2502 ; 2503 return 0; 2504} 2505_ACEOF 2506if ac_fn_c_try_compile "$LINENO" 2507then : 2508 ac_lo=0 ac_mid=0 2509 while :; do 2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2511/* end confdefs.h. */ 2512$4 2513int 2514main (void) 2515{ 2516static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2517test_array [0] = 0; 2518return test_array [0]; 2519 2520 ; 2521 return 0; 2522} 2523_ACEOF 2524if ac_fn_c_try_compile "$LINENO" 2525then : 2526 ac_hi=$ac_mid; break 2527else $as_nop 2528 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2529 if test $ac_lo -le $ac_mid; then 2530 ac_lo= ac_hi= 2531 break 2532 fi 2533 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2534fi 2535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2536 done 2537else $as_nop 2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2539/* end confdefs.h. */ 2540$4 2541int 2542main (void) 2543{ 2544static int test_array [1 - 2 * !(($2) < 0)]; 2545test_array [0] = 0; 2546return test_array [0]; 2547 2548 ; 2549 return 0; 2550} 2551_ACEOF 2552if ac_fn_c_try_compile "$LINENO" 2553then : 2554 ac_hi=-1 ac_mid=-1 2555 while :; do 2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2557/* end confdefs.h. */ 2558$4 2559int 2560main (void) 2561{ 2562static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2563test_array [0] = 0; 2564return test_array [0]; 2565 2566 ; 2567 return 0; 2568} 2569_ACEOF 2570if ac_fn_c_try_compile "$LINENO" 2571then : 2572 ac_lo=$ac_mid; break 2573else $as_nop 2574 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2575 if test $ac_mid -le $ac_hi; then 2576 ac_lo= ac_hi= 2577 break 2578 fi 2579 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2580fi 2581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2582 done 2583else $as_nop 2584 ac_lo= ac_hi= 2585fi 2586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2587fi 2588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2589# Binary search between lo and hi bounds. 2590while test "x$ac_lo" != "x$ac_hi"; do 2591 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2593/* end confdefs.h. */ 2594$4 2595int 2596main (void) 2597{ 2598static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2599test_array [0] = 0; 2600return test_array [0]; 2601 2602 ; 2603 return 0; 2604} 2605_ACEOF 2606if ac_fn_c_try_compile "$LINENO" 2607then : 2608 ac_hi=$ac_mid 2609else $as_nop 2610 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2611fi 2612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2613done 2614case $ac_lo in #(( 2615?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2616'') ac_retval=1 ;; 2617esac 2618 else 2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2620/* end confdefs.h. */ 2621$4 2622static long int longval (void) { return $2; } 2623static unsigned long int ulongval (void) { return $2; } 2624#include <stdio.h> 2625#include <stdlib.h> 2626int 2627main (void) 2628{ 2629 2630 FILE *f = fopen ("conftest.val", "w"); 2631 if (! f) 2632 return 1; 2633 if (($2) < 0) 2634 { 2635 long int i = longval (); 2636 if (i != ($2)) 2637 return 1; 2638 fprintf (f, "%ld", i); 2639 } 2640 else 2641 { 2642 unsigned long int i = ulongval (); 2643 if (i != ($2)) 2644 return 1; 2645 fprintf (f, "%lu", i); 2646 } 2647 /* Do not output a trailing newline, as this causes \r\n confusion 2648 on some platforms. */ 2649 return ferror (f) || fclose (f) != 0; 2650 2651 ; 2652 return 0; 2653} 2654_ACEOF 2655if ac_fn_c_try_run "$LINENO" 2656then : 2657 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2658else $as_nop 2659 ac_retval=1 2660fi 2661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2662 conftest.$ac_objext conftest.beam conftest.$ac_ext 2663rm -f conftest.val 2664 2665 fi 2666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2667 as_fn_set_status $ac_retval 2668 2669} # ac_fn_c_compute_int 2670 2671# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2672# --------------------------------------------------------- 2673# Tests whether HEADER exists and can be compiled using the include files in 2674# INCLUDES, setting the cache variable VAR accordingly. 2675ac_fn_cxx_check_header_compile () 2676{ 2677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2679printf %s "checking for $2... " >&6; } 2680if eval test \${$3+y} 2681then : 2682 printf %s "(cached) " >&6 2683else $as_nop 2684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2685/* end confdefs.h. */ 2686$4 2687#include <$2> 2688_ACEOF 2689if ac_fn_cxx_try_compile "$LINENO" 2690then : 2691 eval "$3=yes" 2692else $as_nop 2693 eval "$3=no" 2694fi 2695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2696fi 2697eval ac_res=\$$3 2698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2699printf "%s\n" "$ac_res" >&6; } 2700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2701 2702} # ac_fn_cxx_check_header_compile 2703 2704# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2705# ------------------------------------------- 2706# Tests whether TYPE exists after having included INCLUDES, setting cache 2707# variable VAR accordingly. 2708ac_fn_c_check_type () 2709{ 2710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2712printf %s "checking for $2... " >&6; } 2713if eval test \${$3+y} 2714then : 2715 printf %s "(cached) " >&6 2716else $as_nop 2717 eval "$3=no" 2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2719/* end confdefs.h. */ 2720$4 2721int 2722main (void) 2723{ 2724if (sizeof ($2)) 2725 return 0; 2726 ; 2727 return 0; 2728} 2729_ACEOF 2730if ac_fn_c_try_compile "$LINENO" 2731then : 2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2733/* end confdefs.h. */ 2734$4 2735int 2736main (void) 2737{ 2738if (sizeof (($2))) 2739 return 0; 2740 ; 2741 return 0; 2742} 2743_ACEOF 2744if ac_fn_c_try_compile "$LINENO" 2745then : 2746 2747else $as_nop 2748 eval "$3=yes" 2749fi 2750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2751fi 2752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2753fi 2754eval ac_res=\$$3 2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2756printf "%s\n" "$ac_res" >&6; } 2757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2758 2759} # ac_fn_c_check_type 2760ac_configure_args_raw= 2761for ac_arg 2762do 2763 case $ac_arg in 2764 *\'*) 2765 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2766 esac 2767 as_fn_append ac_configure_args_raw " '$ac_arg'" 2768done 2769 2770case $ac_configure_args_raw in 2771 *$as_nl*) 2772 ac_safe_unquote= ;; 2773 *) 2774 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2775 ac_unsafe_a="$ac_unsafe_z#~" 2776 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2777 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2778esac 2779 2780cat >config.log <<_ACEOF 2781This file contains any messages produced by compilers while 2782running configure, to aid debugging if configure makes a mistake. 2783 2784It was created by Freeciv $as_me 2.6.6, which was 2785generated by GNU Autoconf 2.71. Invocation command line was 2786 2787 $ $0$ac_configure_args_raw 2788 2789_ACEOF 2790exec 5>>config.log 2791{ 2792cat <<_ASUNAME 2793## --------- ## 2794## Platform. ## 2795## --------- ## 2796 2797hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2798uname -m = `(uname -m) 2>/dev/null || echo unknown` 2799uname -r = `(uname -r) 2>/dev/null || echo unknown` 2800uname -s = `(uname -s) 2>/dev/null || echo unknown` 2801uname -v = `(uname -v) 2>/dev/null || echo unknown` 2802 2803/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2804/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2805 2806/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2807/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2808/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2809/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2810/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2811/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2812/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2813 2814_ASUNAME 2815 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2817for as_dir in $PATH 2818do 2819 IFS=$as_save_IFS 2820 case $as_dir in #((( 2821 '') as_dir=./ ;; 2822 */) ;; 2823 *) as_dir=$as_dir/ ;; 2824 esac 2825 printf "%s\n" "PATH: $as_dir" 2826 done 2827IFS=$as_save_IFS 2828 2829} >&5 2830 2831cat >&5 <<_ACEOF 2832 2833 2834## ----------- ## 2835## Core tests. ## 2836## ----------- ## 2837 2838_ACEOF 2839 2840 2841# Keep a trace of the command line. 2842# Strip out --no-create and --no-recursion so they do not pile up. 2843# Strip out --silent because we don't want to record it for future runs. 2844# Also quote any args containing shell meta-characters. 2845# Make two passes to allow for proper duplicate-argument suppression. 2846ac_configure_args= 2847ac_configure_args0= 2848ac_configure_args1= 2849ac_must_keep_next=false 2850for ac_pass in 1 2 2851do 2852 for ac_arg 2853 do 2854 case $ac_arg in 2855 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2857 | -silent | --silent | --silen | --sile | --sil) 2858 continue ;; 2859 *\'*) 2860 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2861 esac 2862 case $ac_pass in 2863 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2864 2) 2865 as_fn_append ac_configure_args1 " '$ac_arg'" 2866 if test $ac_must_keep_next = true; then 2867 ac_must_keep_next=false # Got value, back to normal. 2868 else 2869 case $ac_arg in 2870 *=* | --config-cache | -C | -disable-* | --disable-* \ 2871 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2872 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2873 | -with-* | --with-* | -without-* | --without-* | --x) 2874 case "$ac_configure_args0 " in 2875 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2876 esac 2877 ;; 2878 -* ) ac_must_keep_next=true ;; 2879 esac 2880 fi 2881 as_fn_append ac_configure_args " '$ac_arg'" 2882 ;; 2883 esac 2884 done 2885done 2886{ ac_configure_args0=; unset ac_configure_args0;} 2887{ ac_configure_args1=; unset ac_configure_args1;} 2888 2889# When interrupted or exit'd, cleanup temporary files, and complete 2890# config.log. We remove comments because anyway the quotes in there 2891# would cause problems or look ugly. 2892# WARNING: Use '\'' to represent an apostrophe within the trap. 2893# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2894trap 'exit_status=$? 2895 # Sanitize IFS. 2896 IFS=" "" $as_nl" 2897 # Save into config.log some information that might help in debugging. 2898 { 2899 echo 2900 2901 printf "%s\n" "## ---------------- ## 2902## Cache variables. ## 2903## ---------------- ##" 2904 echo 2905 # The following way of writing the cache mishandles newlines in values, 2906( 2907 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2908 eval ac_val=\$$ac_var 2909 case $ac_val in #( 2910 *${as_nl}*) 2911 case $ac_var in #( 2912 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2913printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2914 esac 2915 case $ac_var in #( 2916 _ | IFS | as_nl) ;; #( 2917 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2918 *) { eval $ac_var=; unset $ac_var;} ;; 2919 esac ;; 2920 esac 2921 done 2922 (set) 2>&1 | 2923 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2924 *${as_nl}ac_space=\ *) 2925 sed -n \ 2926 "s/'\''/'\''\\\\'\'''\''/g; 2927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2928 ;; #( 2929 *) 2930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2931 ;; 2932 esac | 2933 sort 2934) 2935 echo 2936 2937 printf "%s\n" "## ----------------- ## 2938## Output variables. ## 2939## ----------------- ##" 2940 echo 2941 for ac_var in $ac_subst_vars 2942 do 2943 eval ac_val=\$$ac_var 2944 case $ac_val in 2945 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2946 esac 2947 printf "%s\n" "$ac_var='\''$ac_val'\''" 2948 done | sort 2949 echo 2950 2951 if test -n "$ac_subst_files"; then 2952 printf "%s\n" "## ------------------- ## 2953## File substitutions. ## 2954## ------------------- ##" 2955 echo 2956 for ac_var in $ac_subst_files 2957 do 2958 eval ac_val=\$$ac_var 2959 case $ac_val in 2960 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2961 esac 2962 printf "%s\n" "$ac_var='\''$ac_val'\''" 2963 done | sort 2964 echo 2965 fi 2966 2967 if test -s confdefs.h; then 2968 printf "%s\n" "## ----------- ## 2969## confdefs.h. ## 2970## ----------- ##" 2971 echo 2972 cat confdefs.h 2973 echo 2974 fi 2975 test "$ac_signal" != 0 && 2976 printf "%s\n" "$as_me: caught signal $ac_signal" 2977 printf "%s\n" "$as_me: exit $exit_status" 2978 } >&5 2979 rm -f core *.core core.conftest.* && 2980 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2981 exit $exit_status 2982' 0 2983for ac_signal in 1 2 13 15; do 2984 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2985done 2986ac_signal=0 2987 2988# confdefs.h avoids OS command line length limits that DEFS can exceed. 2989rm -f -r conftest* confdefs.h 2990 2991printf "%s\n" "/* confdefs.h */" > confdefs.h 2992 2993# Predefined preprocessor variables. 2994 2995printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2996 2997printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2998 2999printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 3000 3001printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 3002 3003printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 3004 3005printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 3006 3007 3008# Let the site file select an alternate cache file if it wants to. 3009# Prefer an explicitly selected file to automatically selected ones. 3010if test -n "$CONFIG_SITE"; then 3011 ac_site_files="$CONFIG_SITE" 3012elif test "x$prefix" != xNONE; then 3013 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 3014else 3015 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 3016fi 3017 3018for ac_site_file in $ac_site_files 3019do 3020 case $ac_site_file in #( 3021 */*) : 3022 ;; #( 3023 *) : 3024 ac_site_file=./$ac_site_file ;; 3025esac 3026 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3028printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 3029 sed 's/^/| /' "$ac_site_file" >&5 3030 . "$ac_site_file" \ 3031 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3032printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3033as_fn_error $? "failed to load site script $ac_site_file 3034See \`config.log' for more details" "$LINENO" 5; } 3035 fi 3036done 3037 3038if test -r "$cache_file"; then 3039 # Some versions of bash will fail to source /dev/null (special files 3040 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3041 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3043printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 3044 case $cache_file in 3045 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3046 *) . "./$cache_file";; 3047 esac 3048 fi 3049else 3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3051printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 3052 >$cache_file 3053fi 3054 3055as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3056# Test code for whether the C compiler supports C89 (global declarations) 3057ac_c_conftest_c89_globals=' 3058/* Does the compiler advertise C89 conformance? 3059 Do not test the value of __STDC__, because some compilers set it to 0 3060 while being otherwise adequately conformant. */ 3061#if !defined __STDC__ 3062# error "Compiler does not advertise C89 conformance" 3063#endif 3064 3065#include <stddef.h> 3066#include <stdarg.h> 3067struct stat; 3068/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 3069struct buf { int x; }; 3070struct buf * (*rcsopen) (struct buf *, struct stat *, int); 3071static char *e (p, i) 3072 char **p; 3073 int i; 3074{ 3075 return p[i]; 3076} 3077static char *f (char * (*g) (char **, int), char **p, ...) 3078{ 3079 char *s; 3080 va_list v; 3081 va_start (v,p); 3082 s = g (p, va_arg (v,int)); 3083 va_end (v); 3084 return s; 3085} 3086 3087/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3088 function prototypes and stuff, but not \xHH hex character constants. 3089 These do not provoke an error unfortunately, instead are silently treated 3090 as an "x". The following induces an error, until -std is added to get 3091 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3092 array size at least. It is necessary to write \x00 == 0 to get something 3093 that is true only with -std. */ 3094int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3095 3096/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3097 inside strings and character constants. */ 3098#define FOO(x) '\''x'\'' 3099int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 3100 3101int test (int i, double x); 3102struct s1 {int (*f) (int a);}; 3103struct s2 {int (*f) (double a);}; 3104int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3105 int, int);' 3106 3107# Test code for whether the C compiler supports C89 (body of main). 3108ac_c_conftest_c89_main=' 3109ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3110' 3111 3112# Test code for whether the C compiler supports C99 (global declarations) 3113ac_c_conftest_c99_globals=' 3114// Does the compiler advertise C99 conformance? 3115#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3116# error "Compiler does not advertise C99 conformance" 3117#endif 3118 3119#include <stdbool.h> 3120extern int puts (const char *); 3121extern int printf (const char *, ...); 3122extern int dprintf (int, const char *, ...); 3123extern void *malloc (size_t); 3124 3125// Check varargs macros. These examples are taken from C99 6.10.3.5. 3126// dprintf is used instead of fprintf to avoid needing to declare 3127// FILE and stderr. 3128#define debug(...) dprintf (2, __VA_ARGS__) 3129#define showlist(...) puts (#__VA_ARGS__) 3130#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3131static void 3132test_varargs_macros (void) 3133{ 3134 int x = 1234; 3135 int y = 5678; 3136 debug ("Flag"); 3137 debug ("X = %d\n", x); 3138 showlist (The first, second, and third items.); 3139 report (x>y, "x is %d but y is %d", x, y); 3140} 3141 3142// Check long long types. 3143#define BIG64 18446744073709551615ull 3144#define BIG32 4294967295ul 3145#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3146#if !BIG_OK 3147 #error "your preprocessor is broken" 3148#endif 3149#if BIG_OK 3150#else 3151 #error "your preprocessor is broken" 3152#endif 3153static long long int bignum = -9223372036854775807LL; 3154static unsigned long long int ubignum = BIG64; 3155 3156struct incomplete_array 3157{ 3158 int datasize; 3159 double data[]; 3160}; 3161 3162struct named_init { 3163 int number; 3164 const wchar_t *name; 3165 double average; 3166}; 3167 3168typedef const char *ccp; 3169 3170static inline int 3171test_restrict (ccp restrict text) 3172{ 3173 // See if C++-style comments work. 3174 // Iterate through items via the restricted pointer. 3175 // Also check for declarations in for loops. 3176 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3177 continue; 3178 return 0; 3179} 3180 3181// Check varargs and va_copy. 3182static bool 3183test_varargs (const char *format, ...) 3184{ 3185 va_list args; 3186 va_start (args, format); 3187 va_list args_copy; 3188 va_copy (args_copy, args); 3189 3190 const char *str = ""; 3191 int number = 0; 3192 float fnumber = 0; 3193 3194 while (*format) 3195 { 3196 switch (*format++) 3197 { 3198 case '\''s'\'': // string 3199 str = va_arg (args_copy, const char *); 3200 break; 3201 case '\''d'\'': // int 3202 number = va_arg (args_copy, int); 3203 break; 3204 case '\''f'\'': // float 3205 fnumber = va_arg (args_copy, double); 3206 break; 3207 default: 3208 break; 3209 } 3210 } 3211 va_end (args_copy); 3212 va_end (args); 3213 3214 return *str && number && fnumber; 3215} 3216' 3217 3218# Test code for whether the C compiler supports C99 (body of main). 3219ac_c_conftest_c99_main=' 3220 // Check bool. 3221 _Bool success = false; 3222 success |= (argc != 0); 3223 3224 // Check restrict. 3225 if (test_restrict ("String literal") == 0) 3226 success = true; 3227 char *restrict newvar = "Another string"; 3228 3229 // Check varargs. 3230 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3231 test_varargs_macros (); 3232 3233 // Check flexible array members. 3234 struct incomplete_array *ia = 3235 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3236 ia->datasize = 10; 3237 for (int i = 0; i < ia->datasize; ++i) 3238 ia->data[i] = i * 1.234; 3239 3240 // Check named initializers. 3241 struct named_init ni = { 3242 .number = 34, 3243 .name = L"Test wide string", 3244 .average = 543.34343, 3245 }; 3246 3247 ni.number = 58; 3248 3249 int dynamic_array[ni.number]; 3250 dynamic_array[0] = argv[0][0]; 3251 dynamic_array[ni.number - 1] = 543; 3252 3253 // work around unused variable warnings 3254 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3255 || dynamic_array[ni.number - 1] != 543); 3256' 3257 3258# Test code for whether the C compiler supports C11 (global declarations) 3259ac_c_conftest_c11_globals=' 3260// Does the compiler advertise C11 conformance? 3261#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3262# error "Compiler does not advertise C11 conformance" 3263#endif 3264 3265// Check _Alignas. 3266char _Alignas (double) aligned_as_double; 3267char _Alignas (0) no_special_alignment; 3268extern char aligned_as_int; 3269char _Alignas (0) _Alignas (int) aligned_as_int; 3270 3271// Check _Alignof. 3272enum 3273{ 3274 int_alignment = _Alignof (int), 3275 int_array_alignment = _Alignof (int[100]), 3276 char_alignment = _Alignof (char) 3277}; 3278_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3279 3280// Check _Noreturn. 3281int _Noreturn does_not_return (void) { for (;;) continue; } 3282 3283// Check _Static_assert. 3284struct test_static_assert 3285{ 3286 int x; 3287 _Static_assert (sizeof (int) <= sizeof (long int), 3288 "_Static_assert does not work in struct"); 3289 long int y; 3290}; 3291 3292// Check UTF-8 literals. 3293#define u8 syntax error! 3294char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3295 3296// Check duplicate typedefs. 3297typedef long *long_ptr; 3298typedef long int *long_ptr; 3299typedef long_ptr long_ptr; 3300 3301// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3302struct anonymous 3303{ 3304 union { 3305 struct { int i; int j; }; 3306 struct { int k; long int l; } w; 3307 }; 3308 int m; 3309} v1; 3310' 3311 3312# Test code for whether the C compiler supports C11 (body of main). 3313ac_c_conftest_c11_main=' 3314 _Static_assert ((offsetof (struct anonymous, i) 3315 == offsetof (struct anonymous, w.k)), 3316 "Anonymous union alignment botch"); 3317 v1.i = 2; 3318 v1.w.k = 5; 3319 ok |= v1.i != 5; 3320' 3321 3322# Test code for whether the C compiler supports C11 (complete). 3323ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3324${ac_c_conftest_c99_globals} 3325${ac_c_conftest_c11_globals} 3326 3327int 3328main (int argc, char **argv) 3329{ 3330 int ok = 0; 3331 ${ac_c_conftest_c89_main} 3332 ${ac_c_conftest_c99_main} 3333 ${ac_c_conftest_c11_main} 3334 return ok; 3335} 3336" 3337 3338# Test code for whether the C compiler supports C99 (complete). 3339ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3340${ac_c_conftest_c99_globals} 3341 3342int 3343main (int argc, char **argv) 3344{ 3345 int ok = 0; 3346 ${ac_c_conftest_c89_main} 3347 ${ac_c_conftest_c99_main} 3348 return ok; 3349} 3350" 3351 3352# Test code for whether the C compiler supports C89 (complete). 3353ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3354 3355int 3356main (int argc, char **argv) 3357{ 3358 int ok = 0; 3359 ${ac_c_conftest_c89_main} 3360 return ok; 3361} 3362" 3363 3364as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3365as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3366as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3367as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3368as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3369as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3370as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3371as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3372as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3373as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3374# Test code for whether the C++ compiler supports C++98 (global declarations) 3375ac_cxx_conftest_cxx98_globals=' 3376// Does the compiler advertise C++98 conformance? 3377#if !defined __cplusplus || __cplusplus < 199711L 3378# error "Compiler does not advertise C++98 conformance" 3379#endif 3380 3381// These inclusions are to reject old compilers that 3382// lack the unsuffixed header files. 3383#include <cstdlib> 3384#include <exception> 3385 3386// <cassert> and <cstring> are *not* freestanding headers in C++98. 3387extern void assert (int); 3388namespace std { 3389 extern int strcmp (const char *, const char *); 3390} 3391 3392// Namespaces, exceptions, and templates were all added after "C++ 2.0". 3393using std::exception; 3394using std::strcmp; 3395 3396namespace { 3397 3398void test_exception_syntax() 3399{ 3400 try { 3401 throw "test"; 3402 } catch (const char *s) { 3403 // Extra parentheses suppress a warning when building autoconf itself, 3404 // due to lint rules shared with more typical C programs. 3405 assert (!(strcmp) (s, "test")); 3406 } 3407} 3408 3409template <typename T> struct test_template 3410{ 3411 T const val; 3412 explicit test_template(T t) : val(t) {} 3413 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 3414}; 3415 3416} // anonymous namespace 3417' 3418 3419# Test code for whether the C++ compiler supports C++98 (body of main) 3420ac_cxx_conftest_cxx98_main=' 3421 assert (argc); 3422 assert (! argv[0]); 3423{ 3424 test_exception_syntax (); 3425 test_template<double> tt (2.0); 3426 assert (tt.add (4) == 6.0); 3427 assert (true && !false); 3428} 3429' 3430 3431# Test code for whether the C++ compiler supports C++11 (global declarations) 3432ac_cxx_conftest_cxx11_globals=' 3433// Does the compiler advertise C++ 2011 conformance? 3434#if !defined __cplusplus || __cplusplus < 201103L 3435# error "Compiler does not advertise C++11 conformance" 3436#endif 3437 3438namespace cxx11test 3439{ 3440 constexpr int get_val() { return 20; } 3441 3442 struct testinit 3443 { 3444 int i; 3445 double d; 3446 }; 3447 3448 class delegate 3449 { 3450 public: 3451 delegate(int n) : n(n) {} 3452 delegate(): delegate(2354) {} 3453 3454 virtual int getval() { return this->n; }; 3455 protected: 3456 int n; 3457 }; 3458 3459 class overridden : public delegate 3460 { 3461 public: 3462 overridden(int n): delegate(n) {} 3463 virtual int getval() override final { return this->n * 2; } 3464 }; 3465 3466 class nocopy 3467 { 3468 public: 3469 nocopy(int i): i(i) {} 3470 nocopy() = default; 3471 nocopy(const nocopy&) = delete; 3472 nocopy & operator=(const nocopy&) = delete; 3473 private: 3474 int i; 3475 }; 3476 3477 // for testing lambda expressions 3478 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 3479 { 3480 return f(v); 3481 } 3482 3483 // for testing variadic templates and trailing return types 3484 template <typename V> auto sum(V first) -> V 3485 { 3486 return first; 3487 } 3488 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 3489 { 3490 return first + sum(rest...); 3491 } 3492} 3493' 3494 3495# Test code for whether the C++ compiler supports C++11 (body of main) 3496ac_cxx_conftest_cxx11_main=' 3497{ 3498 // Test auto and decltype 3499 auto a1 = 6538; 3500 auto a2 = 48573953.4; 3501 auto a3 = "String literal"; 3502 3503 int total = 0; 3504 for (auto i = a3; *i; ++i) { total += *i; } 3505 3506 decltype(a2) a4 = 34895.034; 3507} 3508{ 3509 // Test constexpr 3510 short sa[cxx11test::get_val()] = { 0 }; 3511} 3512{ 3513 // Test initializer lists 3514 cxx11test::testinit il = { 4323, 435234.23544 }; 3515} 3516{ 3517 // Test range-based for 3518 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 3519 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 3520 for (auto &x : array) { x += 23; } 3521} 3522{ 3523 // Test lambda expressions 3524 using cxx11test::eval; 3525 assert (eval ([](int x) { return x*2; }, 21) == 42); 3526 double d = 2.0; 3527 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 3528 assert (d == 5.0); 3529 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 3530 assert (d == 5.0); 3531} 3532{ 3533 // Test use of variadic templates 3534 using cxx11test::sum; 3535 auto a = sum(1); 3536 auto b = sum(1, 2); 3537 auto c = sum(1.0, 2.0, 3.0); 3538} 3539{ 3540 // Test constructor delegation 3541 cxx11test::delegate d1; 3542 cxx11test::delegate d2(); 3543 cxx11test::delegate d3(45); 3544} 3545{ 3546 // Test override and final 3547 cxx11test::overridden o1(55464); 3548} 3549{ 3550 // Test nullptr 3551 char *c = nullptr; 3552} 3553{ 3554 // Test template brackets 3555 test_template<::test_template<int>> v(test_template<int>(12)); 3556} 3557{ 3558 // Unicode literals 3559 char const *utf8 = u8"UTF-8 string \u2500"; 3560 char16_t const *utf16 = u"UTF-8 string \u2500"; 3561 char32_t const *utf32 = U"UTF-32 string \u2500"; 3562} 3563' 3564 3565# Test code for whether the C compiler supports C++11 (complete). 3566ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 3567${ac_cxx_conftest_cxx11_globals} 3568 3569int 3570main (int argc, char **argv) 3571{ 3572 int ok = 0; 3573 ${ac_cxx_conftest_cxx98_main} 3574 ${ac_cxx_conftest_cxx11_main} 3575 return ok; 3576} 3577" 3578 3579# Test code for whether the C compiler supports C++98 (complete). 3580ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 3581int 3582main (int argc, char **argv) 3583{ 3584 int ok = 0; 3585 ${ac_cxx_conftest_cxx98_main} 3586 return ok; 3587} 3588" 3589 3590gt_needs="$gt_needs need-ngettext" 3591as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 3592as_fn_append ac_func_c_list " fork HAVE_FORK" 3593as_fn_append ac_func_c_list " vfork HAVE_VFORK" 3594as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF" 3595as_fn_append ac_func_c_list " mkstemp HAVE_MKSTEMP" 3596 3597# Auxiliary files required by this configure script. 3598ac_aux_files="config.rpath ltmain.sh ar-lib missing install-sh compile config.guess config.sub" 3599 3600# Locations in which to look for auxiliary files. 3601ac_aux_dir_candidates="${srcdir}/bootstrap" 3602 3603# Search for a directory containing all of the required auxiliary files, 3604# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3605# If we don't find one directory that contains all the files we need, 3606# we report the set of missing files from the *first* directory in 3607# $ac_aux_dir_candidates and give up. 3608ac_missing_aux_files="" 3609ac_first_candidate=: 3610printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3612as_found=false 3613for as_dir in $ac_aux_dir_candidates 3614do 3615 IFS=$as_save_IFS 3616 case $as_dir in #((( 3617 '') as_dir=./ ;; 3618 */) ;; 3619 *) as_dir=$as_dir/ ;; 3620 esac 3621 as_found=: 3622 3623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3624 ac_aux_dir_found=yes 3625 ac_install_sh= 3626 for ac_aux in $ac_aux_files 3627 do 3628 # As a special case, if "install-sh" is required, that requirement 3629 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3630 # and $ac_install_sh is set appropriately for whichever one is found. 3631 if test x"$ac_aux" = x"install-sh" 3632 then 3633 if test -f "${as_dir}install-sh"; then 3634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3635 ac_install_sh="${as_dir}install-sh -c" 3636 elif test -f "${as_dir}install.sh"; then 3637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3638 ac_install_sh="${as_dir}install.sh -c" 3639 elif test -f "${as_dir}shtool"; then 3640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3641 ac_install_sh="${as_dir}shtool install -c" 3642 else 3643 ac_aux_dir_found=no 3644 if $ac_first_candidate; then 3645 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3646 else 3647 break 3648 fi 3649 fi 3650 else 3651 if test -f "${as_dir}${ac_aux}"; then 3652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3653 else 3654 ac_aux_dir_found=no 3655 if $ac_first_candidate; then 3656 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3657 else 3658 break 3659 fi 3660 fi 3661 fi 3662 done 3663 if test "$ac_aux_dir_found" = yes; then 3664 ac_aux_dir="$as_dir" 3665 break 3666 fi 3667 ac_first_candidate=false 3668 3669 as_found=false 3670done 3671IFS=$as_save_IFS 3672if $as_found 3673then : 3674 3675else $as_nop 3676 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3677fi 3678 3679 3680# These three variables are undocumented and unsupported, 3681# and are intended to be withdrawn in a future Autoconf release. 3682# They can cause serious problems if a builder's source tree is in a directory 3683# whose full name contains unusual characters. 3684if test -f "${ac_aux_dir}config.guess"; then 3685 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3686fi 3687if test -f "${ac_aux_dir}config.sub"; then 3688 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3689fi 3690if test -f "$ac_aux_dir/configure"; then 3691 ac_configure="$SHELL ${ac_aux_dir}configure" 3692fi 3693 3694# Check that the precious variables saved in the cache have kept the same 3695# value. 3696ac_cache_corrupted=false 3697for ac_var in $ac_precious_vars; do 3698 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3699 eval ac_new_set=\$ac_env_${ac_var}_set 3700 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3701 eval ac_new_val=\$ac_env_${ac_var}_value 3702 case $ac_old_set,$ac_new_set in 3703 set,) 3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3705printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3706 ac_cache_corrupted=: ;; 3707 ,set) 3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3709printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3710 ac_cache_corrupted=: ;; 3711 ,);; 3712 *) 3713 if test "x$ac_old_val" != "x$ac_new_val"; then 3714 # differences in whitespace do not lead to failure. 3715 ac_old_val_w=`echo x $ac_old_val` 3716 ac_new_val_w=`echo x $ac_new_val` 3717 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3719printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3720 ac_cache_corrupted=: 3721 else 3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3723printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3724 eval $ac_var=\$ac_old_val 3725 fi 3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3727printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3729printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3730 fi;; 3731 esac 3732 # Pass precious variables to config.status. 3733 if test "$ac_new_set" = set; then 3734 case $ac_new_val in 3735 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3736 *) ac_arg=$ac_var=$ac_new_val ;; 3737 esac 3738 case " $ac_configure_args " in 3739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3740 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3741 esac 3742 fi 3743done 3744if $ac_cache_corrupted; then 3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3746printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3748printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3749 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3750 and start over" "$LINENO" 5 3751fi 3752## -------------------- ## 3753## Main body of script. ## 3754## -------------------- ## 3755 3756ac_ext=c 3757ac_cpp='$CPP $CPPFLAGS' 3758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3760ac_compiler_gnu=$ac_cv_c_compiler_gnu 3761 3762 3763 3764 3765 3766 # This can't be quoted or automake will fail 3767 3768 3769ac_config_headers="$ac_config_headers gen_headers/fc_config.h gen_headers/freeciv_config.h gen_headers/liblua_config.h" 3770 3771 3772 3773 3774 # Make sure we can run config.sub. 3775$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3776 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3777 3778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3779printf %s "checking build system type... " >&6; } 3780if test ${ac_cv_build+y} 3781then : 3782 printf %s "(cached) " >&6 3783else $as_nop 3784 ac_build_alias=$build_alias 3785test "x$ac_build_alias" = x && 3786 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3787test "x$ac_build_alias" = x && 3788 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3789ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3790 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3791 3792fi 3793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3794printf "%s\n" "$ac_cv_build" >&6; } 3795case $ac_cv_build in 3796*-*-*) ;; 3797*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3798esac 3799build=$ac_cv_build 3800ac_save_IFS=$IFS; IFS='-' 3801set x $ac_cv_build 3802shift 3803build_cpu=$1 3804build_vendor=$2 3805shift; shift 3806# Remember, the first character of IFS is used to create $*, 3807# except with old shells: 3808build_os=$* 3809IFS=$ac_save_IFS 3810case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3811 3812 3813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3814printf %s "checking host system type... " >&6; } 3815if test ${ac_cv_host+y} 3816then : 3817 printf %s "(cached) " >&6 3818else $as_nop 3819 if test "x$host_alias" = x; then 3820 ac_cv_host=$ac_cv_build 3821else 3822 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3823 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3824fi 3825 3826fi 3827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3828printf "%s\n" "$ac_cv_host" >&6; } 3829case $ac_cv_host in 3830*-*-*) ;; 3831*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3832esac 3833host=$ac_cv_host 3834ac_save_IFS=$IFS; IFS='-' 3835set x $ac_cv_host 3836shift 3837host_cpu=$1 3838host_vendor=$2 3839shift; shift 3840# Remember, the first character of IFS is used to create $*, 3841# except with old shells: 3842host_os=$* 3843IFS=$ac_save_IFS 3844case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857# Expand $ac_aux_dir to an absolute path. 3858am_aux_dir=`cd "$ac_aux_dir" && pwd` 3859 3860ac_ext=c 3861ac_cpp='$CPP $CPPFLAGS' 3862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3864ac_compiler_gnu=$ac_cv_c_compiler_gnu 3865if test -n "$ac_tool_prefix"; then 3866 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3867set dummy ${ac_tool_prefix}gcc; ac_word=$2 3868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3869printf %s "checking for $ac_word... " >&6; } 3870if test ${ac_cv_prog_CC+y} 3871then : 3872 printf %s "(cached) " >&6 3873else $as_nop 3874 if test -n "$CC"; then 3875 ac_cv_prog_CC="$CC" # Let the user override the test. 3876else 3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3878for as_dir in $PATH 3879do 3880 IFS=$as_save_IFS 3881 case $as_dir in #((( 3882 '') as_dir=./ ;; 3883 */) ;; 3884 *) as_dir=$as_dir/ ;; 3885 esac 3886 for ac_exec_ext in '' $ac_executable_extensions; do 3887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3888 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3890 break 2 3891 fi 3892done 3893 done 3894IFS=$as_save_IFS 3895 3896fi 3897fi 3898CC=$ac_cv_prog_CC 3899if test -n "$CC"; then 3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3901printf "%s\n" "$CC" >&6; } 3902else 3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3904printf "%s\n" "no" >&6; } 3905fi 3906 3907 3908fi 3909if test -z "$ac_cv_prog_CC"; then 3910 ac_ct_CC=$CC 3911 # Extract the first word of "gcc", so it can be a program name with args. 3912set dummy gcc; ac_word=$2 3913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3914printf %s "checking for $ac_word... " >&6; } 3915if test ${ac_cv_prog_ac_ct_CC+y} 3916then : 3917 printf %s "(cached) " >&6 3918else $as_nop 3919 if test -n "$ac_ct_CC"; then 3920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3921else 3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3923for as_dir in $PATH 3924do 3925 IFS=$as_save_IFS 3926 case $as_dir in #((( 3927 '') as_dir=./ ;; 3928 */) ;; 3929 *) as_dir=$as_dir/ ;; 3930 esac 3931 for ac_exec_ext in '' $ac_executable_extensions; do 3932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3933 ac_cv_prog_ac_ct_CC="gcc" 3934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3935 break 2 3936 fi 3937done 3938 done 3939IFS=$as_save_IFS 3940 3941fi 3942fi 3943ac_ct_CC=$ac_cv_prog_ac_ct_CC 3944if test -n "$ac_ct_CC"; then 3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3946printf "%s\n" "$ac_ct_CC" >&6; } 3947else 3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3949printf "%s\n" "no" >&6; } 3950fi 3951 3952 if test "x$ac_ct_CC" = x; then 3953 CC="" 3954 else 3955 case $cross_compiling:$ac_tool_warned in 3956yes:) 3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3958printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3959ac_tool_warned=yes ;; 3960esac 3961 CC=$ac_ct_CC 3962 fi 3963else 3964 CC="$ac_cv_prog_CC" 3965fi 3966 3967if test -z "$CC"; then 3968 if test -n "$ac_tool_prefix"; then 3969 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3970set dummy ${ac_tool_prefix}cc; ac_word=$2 3971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3972printf %s "checking for $ac_word... " >&6; } 3973if test ${ac_cv_prog_CC+y} 3974then : 3975 printf %s "(cached) " >&6 3976else $as_nop 3977 if test -n "$CC"; then 3978 ac_cv_prog_CC="$CC" # Let the user override the test. 3979else 3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3981for as_dir in $PATH 3982do 3983 IFS=$as_save_IFS 3984 case $as_dir in #((( 3985 '') as_dir=./ ;; 3986 */) ;; 3987 *) as_dir=$as_dir/ ;; 3988 esac 3989 for ac_exec_ext in '' $ac_executable_extensions; do 3990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3991 ac_cv_prog_CC="${ac_tool_prefix}cc" 3992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3993 break 2 3994 fi 3995done 3996 done 3997IFS=$as_save_IFS 3998 3999fi 4000fi 4001CC=$ac_cv_prog_CC 4002if test -n "$CC"; then 4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4004printf "%s\n" "$CC" >&6; } 4005else 4006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4007printf "%s\n" "no" >&6; } 4008fi 4009 4010 4011 fi 4012fi 4013if test -z "$CC"; then 4014 # Extract the first word of "cc", so it can be a program name with args. 4015set dummy cc; ac_word=$2 4016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4017printf %s "checking for $ac_word... " >&6; } 4018if test ${ac_cv_prog_CC+y} 4019then : 4020 printf %s "(cached) " >&6 4021else $as_nop 4022 if test -n "$CC"; then 4023 ac_cv_prog_CC="$CC" # Let the user override the test. 4024else 4025 ac_prog_rejected=no 4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4027for as_dir in $PATH 4028do 4029 IFS=$as_save_IFS 4030 case $as_dir in #((( 4031 '') as_dir=./ ;; 4032 */) ;; 4033 *) as_dir=$as_dir/ ;; 4034 esac 4035 for ac_exec_ext in '' $ac_executable_extensions; do 4036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4037 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4038 ac_prog_rejected=yes 4039 continue 4040 fi 4041 ac_cv_prog_CC="cc" 4042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4043 break 2 4044 fi 4045done 4046 done 4047IFS=$as_save_IFS 4048 4049if test $ac_prog_rejected = yes; then 4050 # We found a bogon in the path, so make sure we never use it. 4051 set dummy $ac_cv_prog_CC 4052 shift 4053 if test $# != 0; then 4054 # We chose a different compiler from the bogus one. 4055 # However, it has the same basename, so the bogon will be chosen 4056 # first if we set CC to just the basename; use the full file name. 4057 shift 4058 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4059 fi 4060fi 4061fi 4062fi 4063CC=$ac_cv_prog_CC 4064if test -n "$CC"; then 4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4066printf "%s\n" "$CC" >&6; } 4067else 4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4069printf "%s\n" "no" >&6; } 4070fi 4071 4072 4073fi 4074if test -z "$CC"; then 4075 if test -n "$ac_tool_prefix"; then 4076 for ac_prog in cl.exe 4077 do 4078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4079set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4081printf %s "checking for $ac_word... " >&6; } 4082if test ${ac_cv_prog_CC+y} 4083then : 4084 printf %s "(cached) " >&6 4085else $as_nop 4086 if test -n "$CC"; then 4087 ac_cv_prog_CC="$CC" # Let the user override the test. 4088else 4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4090for as_dir in $PATH 4091do 4092 IFS=$as_save_IFS 4093 case $as_dir in #((( 4094 '') as_dir=./ ;; 4095 */) ;; 4096 *) as_dir=$as_dir/ ;; 4097 esac 4098 for ac_exec_ext in '' $ac_executable_extensions; do 4099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4102 break 2 4103 fi 4104done 4105 done 4106IFS=$as_save_IFS 4107 4108fi 4109fi 4110CC=$ac_cv_prog_CC 4111if test -n "$CC"; then 4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4113printf "%s\n" "$CC" >&6; } 4114else 4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4116printf "%s\n" "no" >&6; } 4117fi 4118 4119 4120 test -n "$CC" && break 4121 done 4122fi 4123if test -z "$CC"; then 4124 ac_ct_CC=$CC 4125 for ac_prog in cl.exe 4126do 4127 # Extract the first word of "$ac_prog", so it can be a program name with args. 4128set dummy $ac_prog; ac_word=$2 4129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4130printf %s "checking for $ac_word... " >&6; } 4131if test ${ac_cv_prog_ac_ct_CC+y} 4132then : 4133 printf %s "(cached) " >&6 4134else $as_nop 4135 if test -n "$ac_ct_CC"; then 4136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4137else 4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4139for as_dir in $PATH 4140do 4141 IFS=$as_save_IFS 4142 case $as_dir in #((( 4143 '') as_dir=./ ;; 4144 */) ;; 4145 *) as_dir=$as_dir/ ;; 4146 esac 4147 for ac_exec_ext in '' $ac_executable_extensions; do 4148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4149 ac_cv_prog_ac_ct_CC="$ac_prog" 4150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4151 break 2 4152 fi 4153done 4154 done 4155IFS=$as_save_IFS 4156 4157fi 4158fi 4159ac_ct_CC=$ac_cv_prog_ac_ct_CC 4160if test -n "$ac_ct_CC"; then 4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4162printf "%s\n" "$ac_ct_CC" >&6; } 4163else 4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4165printf "%s\n" "no" >&6; } 4166fi 4167 4168 4169 test -n "$ac_ct_CC" && break 4170done 4171 4172 if test "x$ac_ct_CC" = x; then 4173 CC="" 4174 else 4175 case $cross_compiling:$ac_tool_warned in 4176yes:) 4177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4178printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4179ac_tool_warned=yes ;; 4180esac 4181 CC=$ac_ct_CC 4182 fi 4183fi 4184 4185fi 4186if test -z "$CC"; then 4187 if test -n "$ac_tool_prefix"; then 4188 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4189set dummy ${ac_tool_prefix}clang; ac_word=$2 4190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4191printf %s "checking for $ac_word... " >&6; } 4192if test ${ac_cv_prog_CC+y} 4193then : 4194 printf %s "(cached) " >&6 4195else $as_nop 4196 if test -n "$CC"; then 4197 ac_cv_prog_CC="$CC" # Let the user override the test. 4198else 4199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4200for as_dir in $PATH 4201do 4202 IFS=$as_save_IFS 4203 case $as_dir in #((( 4204 '') as_dir=./ ;; 4205 */) ;; 4206 *) as_dir=$as_dir/ ;; 4207 esac 4208 for ac_exec_ext in '' $ac_executable_extensions; do 4209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4210 ac_cv_prog_CC="${ac_tool_prefix}clang" 4211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4212 break 2 4213 fi 4214done 4215 done 4216IFS=$as_save_IFS 4217 4218fi 4219fi 4220CC=$ac_cv_prog_CC 4221if test -n "$CC"; then 4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4223printf "%s\n" "$CC" >&6; } 4224else 4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4226printf "%s\n" "no" >&6; } 4227fi 4228 4229 4230fi 4231if test -z "$ac_cv_prog_CC"; then 4232 ac_ct_CC=$CC 4233 # Extract the first word of "clang", so it can be a program name with args. 4234set dummy clang; ac_word=$2 4235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4236printf %s "checking for $ac_word... " >&6; } 4237if test ${ac_cv_prog_ac_ct_CC+y} 4238then : 4239 printf %s "(cached) " >&6 4240else $as_nop 4241 if test -n "$ac_ct_CC"; then 4242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4243else 4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4245for as_dir in $PATH 4246do 4247 IFS=$as_save_IFS 4248 case $as_dir in #((( 4249 '') as_dir=./ ;; 4250 */) ;; 4251 *) as_dir=$as_dir/ ;; 4252 esac 4253 for ac_exec_ext in '' $ac_executable_extensions; do 4254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4255 ac_cv_prog_ac_ct_CC="clang" 4256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4257 break 2 4258 fi 4259done 4260 done 4261IFS=$as_save_IFS 4262 4263fi 4264fi 4265ac_ct_CC=$ac_cv_prog_ac_ct_CC 4266if test -n "$ac_ct_CC"; then 4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4268printf "%s\n" "$ac_ct_CC" >&6; } 4269else 4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4271printf "%s\n" "no" >&6; } 4272fi 4273 4274 if test "x$ac_ct_CC" = x; then 4275 CC="" 4276 else 4277 case $cross_compiling:$ac_tool_warned in 4278yes:) 4279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4280printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4281ac_tool_warned=yes ;; 4282esac 4283 CC=$ac_ct_CC 4284 fi 4285else 4286 CC="$ac_cv_prog_CC" 4287fi 4288 4289fi 4290 4291 4292test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4293printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4294as_fn_error $? "no acceptable C compiler found in \$PATH 4295See \`config.log' for more details" "$LINENO" 5; } 4296 4297# Provide some information about the compiler. 4298printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4299set X $ac_compile 4300ac_compiler=$2 4301for ac_option in --version -v -V -qversion -version; do 4302 { { ac_try="$ac_compiler $ac_option >&5" 4303case "(($ac_try" in 4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4305 *) ac_try_echo=$ac_try;; 4306esac 4307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4308printf "%s\n" "$ac_try_echo"; } >&5 4309 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4310 ac_status=$? 4311 if test -s conftest.err; then 4312 sed '10a\ 4313... rest of stderr output deleted ... 4314 10q' conftest.err >conftest.er1 4315 cat conftest.er1 >&5 4316 fi 4317 rm -f conftest.er1 conftest.err 4318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4319 test $ac_status = 0; } 4320done 4321 4322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4323/* end confdefs.h. */ 4324 4325int 4326main (void) 4327{ 4328 4329 ; 4330 return 0; 4331} 4332_ACEOF 4333ac_clean_files_save=$ac_clean_files 4334ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4335# Try to create an executable without -o first, disregard a.out. 4336# It will help us diagnose broken compilers, and finding out an intuition 4337# of exeext. 4338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4339printf %s "checking whether the C compiler works... " >&6; } 4340ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4341 4342# The possible output files: 4343ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4344 4345ac_rmfiles= 4346for ac_file in $ac_files 4347do 4348 case $ac_file in 4349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4350 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4351 esac 4352done 4353rm -f $ac_rmfiles 4354 4355if { { ac_try="$ac_link_default" 4356case "(($ac_try" in 4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4358 *) ac_try_echo=$ac_try;; 4359esac 4360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4361printf "%s\n" "$ac_try_echo"; } >&5 4362 (eval "$ac_link_default") 2>&5 4363 ac_status=$? 4364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4365 test $ac_status = 0; } 4366then : 4367 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4368# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4369# in a Makefile. We should not override ac_cv_exeext if it was cached, 4370# so that the user can short-circuit this test for compilers unknown to 4371# Autoconf. 4372for ac_file in $ac_files '' 4373do 4374 test -f "$ac_file" || continue 4375 case $ac_file in 4376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4377 ;; 4378 [ab].out ) 4379 # We found the default executable, but exeext='' is most 4380 # certainly right. 4381 break;; 4382 *.* ) 4383 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4384 then :; else 4385 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4386 fi 4387 # We set ac_cv_exeext here because the later test for it is not 4388 # safe: cross compilers may not add the suffix if given an `-o' 4389 # argument, so we may need to know it at that point already. 4390 # Even if this section looks crufty: it has the advantage of 4391 # actually working. 4392 break;; 4393 * ) 4394 break;; 4395 esac 4396done 4397test "$ac_cv_exeext" = no && ac_cv_exeext= 4398 4399else $as_nop 4400 ac_file='' 4401fi 4402if test -z "$ac_file" 4403then : 4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4405printf "%s\n" "no" >&6; } 4406printf "%s\n" "$as_me: failed program was:" >&5 4407sed 's/^/| /' conftest.$ac_ext >&5 4408 4409{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4410printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4411as_fn_error 77 "C compiler cannot create executables 4412See \`config.log' for more details" "$LINENO" 5; } 4413else $as_nop 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4415printf "%s\n" "yes" >&6; } 4416fi 4417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4418printf %s "checking for C compiler default output file name... " >&6; } 4419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4420printf "%s\n" "$ac_file" >&6; } 4421ac_exeext=$ac_cv_exeext 4422 4423rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4424ac_clean_files=$ac_clean_files_save 4425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4426printf %s "checking for suffix of executables... " >&6; } 4427if { { ac_try="$ac_link" 4428case "(($ac_try" in 4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4430 *) ac_try_echo=$ac_try;; 4431esac 4432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4433printf "%s\n" "$ac_try_echo"; } >&5 4434 (eval "$ac_link") 2>&5 4435 ac_status=$? 4436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4437 test $ac_status = 0; } 4438then : 4439 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4440# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4441# work properly (i.e., refer to `conftest.exe'), while it won't with 4442# `rm'. 4443for ac_file in conftest.exe conftest conftest.*; do 4444 test -f "$ac_file" || continue 4445 case $ac_file in 4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4448 break;; 4449 * ) break;; 4450 esac 4451done 4452else $as_nop 4453 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4454printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4455as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4456See \`config.log' for more details" "$LINENO" 5; } 4457fi 4458rm -f conftest conftest$ac_cv_exeext 4459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4460printf "%s\n" "$ac_cv_exeext" >&6; } 4461 4462rm -f conftest.$ac_ext 4463EXEEXT=$ac_cv_exeext 4464ac_exeext=$EXEEXT 4465cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4466/* end confdefs.h. */ 4467#include <stdio.h> 4468int 4469main (void) 4470{ 4471FILE *f = fopen ("conftest.out", "w"); 4472 return ferror (f) || fclose (f) != 0; 4473 4474 ; 4475 return 0; 4476} 4477_ACEOF 4478ac_clean_files="$ac_clean_files conftest.out" 4479# Check that the compiler produces executables we can run. If not, either 4480# the compiler is broken, or we cross compile. 4481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4482printf %s "checking whether we are cross compiling... " >&6; } 4483if test "$cross_compiling" != yes; then 4484 { { ac_try="$ac_link" 4485case "(($ac_try" in 4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4487 *) ac_try_echo=$ac_try;; 4488esac 4489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4490printf "%s\n" "$ac_try_echo"; } >&5 4491 (eval "$ac_link") 2>&5 4492 ac_status=$? 4493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4494 test $ac_status = 0; } 4495 if { ac_try='./conftest$ac_cv_exeext' 4496 { { case "(($ac_try" in 4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4498 *) ac_try_echo=$ac_try;; 4499esac 4500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4501printf "%s\n" "$ac_try_echo"; } >&5 4502 (eval "$ac_try") 2>&5 4503 ac_status=$? 4504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4505 test $ac_status = 0; }; }; then 4506 cross_compiling=no 4507 else 4508 if test "$cross_compiling" = maybe; then 4509 cross_compiling=yes 4510 else 4511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4512printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4513as_fn_error 77 "cannot run C compiled programs. 4514If you meant to cross compile, use \`--host'. 4515See \`config.log' for more details" "$LINENO" 5; } 4516 fi 4517 fi 4518fi 4519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4520printf "%s\n" "$cross_compiling" >&6; } 4521 4522rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4523ac_clean_files=$ac_clean_files_save 4524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4525printf %s "checking for suffix of object files... " >&6; } 4526if test ${ac_cv_objext+y} 4527then : 4528 printf %s "(cached) " >&6 4529else $as_nop 4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4531/* end confdefs.h. */ 4532 4533int 4534main (void) 4535{ 4536 4537 ; 4538 return 0; 4539} 4540_ACEOF 4541rm -f conftest.o conftest.obj 4542if { { ac_try="$ac_compile" 4543case "(($ac_try" in 4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4545 *) ac_try_echo=$ac_try;; 4546esac 4547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4548printf "%s\n" "$ac_try_echo"; } >&5 4549 (eval "$ac_compile") 2>&5 4550 ac_status=$? 4551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4552 test $ac_status = 0; } 4553then : 4554 for ac_file in conftest.o conftest.obj conftest.*; do 4555 test -f "$ac_file" || continue; 4556 case $ac_file in 4557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4559 break;; 4560 esac 4561done 4562else $as_nop 4563 printf "%s\n" "$as_me: failed program was:" >&5 4564sed 's/^/| /' conftest.$ac_ext >&5 4565 4566{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4567printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4568as_fn_error $? "cannot compute suffix of object files: cannot compile 4569See \`config.log' for more details" "$LINENO" 5; } 4570fi 4571rm -f conftest.$ac_cv_objext conftest.$ac_ext 4572fi 4573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4574printf "%s\n" "$ac_cv_objext" >&6; } 4575OBJEXT=$ac_cv_objext 4576ac_objext=$OBJEXT 4577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4578printf %s "checking whether the compiler supports GNU C... " >&6; } 4579if test ${ac_cv_c_compiler_gnu+y} 4580then : 4581 printf %s "(cached) " >&6 4582else $as_nop 4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4584/* end confdefs.h. */ 4585 4586int 4587main (void) 4588{ 4589#ifndef __GNUC__ 4590 choke me 4591#endif 4592 4593 ; 4594 return 0; 4595} 4596_ACEOF 4597if ac_fn_c_try_compile "$LINENO" 4598then : 4599 ac_compiler_gnu=yes 4600else $as_nop 4601 ac_compiler_gnu=no 4602fi 4603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4604ac_cv_c_compiler_gnu=$ac_compiler_gnu 4605 4606fi 4607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4608printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4609ac_compiler_gnu=$ac_cv_c_compiler_gnu 4610 4611if test $ac_compiler_gnu = yes; then 4612 GCC=yes 4613else 4614 GCC= 4615fi 4616ac_test_CFLAGS=${CFLAGS+y} 4617ac_save_CFLAGS=$CFLAGS 4618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4619printf %s "checking whether $CC accepts -g... " >&6; } 4620if test ${ac_cv_prog_cc_g+y} 4621then : 4622 printf %s "(cached) " >&6 4623else $as_nop 4624 ac_save_c_werror_flag=$ac_c_werror_flag 4625 ac_c_werror_flag=yes 4626 ac_cv_prog_cc_g=no 4627 CFLAGS="-g" 4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4629/* end confdefs.h. */ 4630 4631int 4632main (void) 4633{ 4634 4635 ; 4636 return 0; 4637} 4638_ACEOF 4639if ac_fn_c_try_compile "$LINENO" 4640then : 4641 ac_cv_prog_cc_g=yes 4642else $as_nop 4643 CFLAGS="" 4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4645/* end confdefs.h. */ 4646 4647int 4648main (void) 4649{ 4650 4651 ; 4652 return 0; 4653} 4654_ACEOF 4655if ac_fn_c_try_compile "$LINENO" 4656then : 4657 4658else $as_nop 4659 ac_c_werror_flag=$ac_save_c_werror_flag 4660 CFLAGS="-g" 4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4662/* end confdefs.h. */ 4663 4664int 4665main (void) 4666{ 4667 4668 ; 4669 return 0; 4670} 4671_ACEOF 4672if ac_fn_c_try_compile "$LINENO" 4673then : 4674 ac_cv_prog_cc_g=yes 4675fi 4676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4677fi 4678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4679fi 4680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4681 ac_c_werror_flag=$ac_save_c_werror_flag 4682fi 4683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4684printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4685if test $ac_test_CFLAGS; then 4686 CFLAGS=$ac_save_CFLAGS 4687elif test $ac_cv_prog_cc_g = yes; then 4688 if test "$GCC" = yes; then 4689 CFLAGS="-g -O2" 4690 else 4691 CFLAGS="-g" 4692 fi 4693else 4694 if test "$GCC" = yes; then 4695 CFLAGS="-O2" 4696 else 4697 CFLAGS= 4698 fi 4699fi 4700ac_prog_cc_stdc=no 4701if test x$ac_prog_cc_stdc = xno 4702then : 4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4704printf %s "checking for $CC option to enable C11 features... " >&6; } 4705if test ${ac_cv_prog_cc_c11+y} 4706then : 4707 printf %s "(cached) " >&6 4708else $as_nop 4709 ac_cv_prog_cc_c11=no 4710ac_save_CC=$CC 4711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4712/* end confdefs.h. */ 4713$ac_c_conftest_c11_program 4714_ACEOF 4715for ac_arg in '' -std=gnu11 4716do 4717 CC="$ac_save_CC $ac_arg" 4718 if ac_fn_c_try_compile "$LINENO" 4719then : 4720 ac_cv_prog_cc_c11=$ac_arg 4721fi 4722rm -f core conftest.err conftest.$ac_objext conftest.beam 4723 test "x$ac_cv_prog_cc_c11" != "xno" && break 4724done 4725rm -f conftest.$ac_ext 4726CC=$ac_save_CC 4727fi 4728 4729if test "x$ac_cv_prog_cc_c11" = xno 4730then : 4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4732printf "%s\n" "unsupported" >&6; } 4733else $as_nop 4734 if test "x$ac_cv_prog_cc_c11" = x 4735then : 4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4737printf "%s\n" "none needed" >&6; } 4738else $as_nop 4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4740printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4741 CC="$CC $ac_cv_prog_cc_c11" 4742fi 4743 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4744 ac_prog_cc_stdc=c11 4745fi 4746fi 4747if test x$ac_prog_cc_stdc = xno 4748then : 4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4750printf %s "checking for $CC option to enable C99 features... " >&6; } 4751if test ${ac_cv_prog_cc_c99+y} 4752then : 4753 printf %s "(cached) " >&6 4754else $as_nop 4755 ac_cv_prog_cc_c99=no 4756ac_save_CC=$CC 4757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4758/* end confdefs.h. */ 4759$ac_c_conftest_c99_program 4760_ACEOF 4761for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4762do 4763 CC="$ac_save_CC $ac_arg" 4764 if ac_fn_c_try_compile "$LINENO" 4765then : 4766 ac_cv_prog_cc_c99=$ac_arg 4767fi 4768rm -f core conftest.err conftest.$ac_objext conftest.beam 4769 test "x$ac_cv_prog_cc_c99" != "xno" && break 4770done 4771rm -f conftest.$ac_ext 4772CC=$ac_save_CC 4773fi 4774 4775if test "x$ac_cv_prog_cc_c99" = xno 4776then : 4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4778printf "%s\n" "unsupported" >&6; } 4779else $as_nop 4780 if test "x$ac_cv_prog_cc_c99" = x 4781then : 4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4783printf "%s\n" "none needed" >&6; } 4784else $as_nop 4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4786printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4787 CC="$CC $ac_cv_prog_cc_c99" 4788fi 4789 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4790 ac_prog_cc_stdc=c99 4791fi 4792fi 4793if test x$ac_prog_cc_stdc = xno 4794then : 4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4796printf %s "checking for $CC option to enable C89 features... " >&6; } 4797if test ${ac_cv_prog_cc_c89+y} 4798then : 4799 printf %s "(cached) " >&6 4800else $as_nop 4801 ac_cv_prog_cc_c89=no 4802ac_save_CC=$CC 4803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4804/* end confdefs.h. */ 4805$ac_c_conftest_c89_program 4806_ACEOF 4807for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4808do 4809 CC="$ac_save_CC $ac_arg" 4810 if ac_fn_c_try_compile "$LINENO" 4811then : 4812 ac_cv_prog_cc_c89=$ac_arg 4813fi 4814rm -f core conftest.err conftest.$ac_objext conftest.beam 4815 test "x$ac_cv_prog_cc_c89" != "xno" && break 4816done 4817rm -f conftest.$ac_ext 4818CC=$ac_save_CC 4819fi 4820 4821if test "x$ac_cv_prog_cc_c89" = xno 4822then : 4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4824printf "%s\n" "unsupported" >&6; } 4825else $as_nop 4826 if test "x$ac_cv_prog_cc_c89" = x 4827then : 4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4829printf "%s\n" "none needed" >&6; } 4830else $as_nop 4831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4832printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4833 CC="$CC $ac_cv_prog_cc_c89" 4834fi 4835 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4836 ac_prog_cc_stdc=c89 4837fi 4838fi 4839 4840ac_ext=c 4841ac_cpp='$CPP $CPPFLAGS' 4842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4844ac_compiler_gnu=$ac_cv_c_compiler_gnu 4845 4846 4847 ac_ext=c 4848ac_cpp='$CPP $CPPFLAGS' 4849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4851ac_compiler_gnu=$ac_cv_c_compiler_gnu 4852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4853printf %s "checking whether $CC understands -c and -o together... " >&6; } 4854if test ${am_cv_prog_cc_c_o+y} 4855then : 4856 printf %s "(cached) " >&6 4857else $as_nop 4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4859/* end confdefs.h. */ 4860 4861int 4862main (void) 4863{ 4864 4865 ; 4866 return 0; 4867} 4868_ACEOF 4869 # Make sure it works both with $CC and with simple cc. 4870 # Following AC_PROG_CC_C_O, we do the test twice because some 4871 # compilers refuse to overwrite an existing .o file with -o, 4872 # though they will create one. 4873 am_cv_prog_cc_c_o=yes 4874 for am_i in 1 2; do 4875 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4876 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4877 ac_status=$? 4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4879 (exit $ac_status); } \ 4880 && test -f conftest2.$ac_objext; then 4881 : OK 4882 else 4883 am_cv_prog_cc_c_o=no 4884 break 4885 fi 4886 done 4887 rm -f core conftest* 4888 unset am_i 4889fi 4890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4891printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4892if test "$am_cv_prog_cc_c_o" != yes; then 4893 # Losing compiler, so override with the script. 4894 # FIXME: It is wrong to rewrite CC. 4895 # But if we don't then we get into trouble of one sort or another. 4896 # A longer-term fix would be to have automake use am__CC in this case, 4897 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4898 CC="$am_aux_dir/compile $CC" 4899fi 4900ac_ext=c 4901ac_cpp='$CPP $CPPFLAGS' 4902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4904ac_compiler_gnu=$ac_cv_c_compiler_gnu 4905 4906 4907 4908ac_header= ac_cache= 4909for ac_item in $ac_header_c_list 4910do 4911 if test $ac_cache; then 4912 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4913 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4914 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4915 fi 4916 ac_header= ac_cache= 4917 elif test $ac_header; then 4918 ac_cache=$ac_item 4919 else 4920 ac_header=$ac_item 4921 fi 4922done 4923 4924 4925 4926 4927 4928 4929 4930 4931if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4932then : 4933 4934printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4935 4936fi 4937 4938 4939 4940 4941 4942 4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4944printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4945if test ${ac_cv_safe_to_define___extensions__+y} 4946then : 4947 printf %s "(cached) " >&6 4948else $as_nop 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950/* end confdefs.h. */ 4951 4952# define __EXTENSIONS__ 1 4953 $ac_includes_default 4954int 4955main (void) 4956{ 4957 4958 ; 4959 return 0; 4960} 4961_ACEOF 4962if ac_fn_c_try_compile "$LINENO" 4963then : 4964 ac_cv_safe_to_define___extensions__=yes 4965else $as_nop 4966 ac_cv_safe_to_define___extensions__=no 4967fi 4968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4969fi 4970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4971printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4972 4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4974printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4975if test ${ac_cv_should_define__xopen_source+y} 4976then : 4977 printf %s "(cached) " >&6 4978else $as_nop 4979 ac_cv_should_define__xopen_source=no 4980 if test $ac_cv_header_wchar_h = yes 4981then : 4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983/* end confdefs.h. */ 4984 4985 #include <wchar.h> 4986 mbstate_t x; 4987int 4988main (void) 4989{ 4990 4991 ; 4992 return 0; 4993} 4994_ACEOF 4995if ac_fn_c_try_compile "$LINENO" 4996then : 4997 4998else $as_nop 4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5000/* end confdefs.h. */ 5001 5002 #define _XOPEN_SOURCE 500 5003 #include <wchar.h> 5004 mbstate_t x; 5005int 5006main (void) 5007{ 5008 5009 ; 5010 return 0; 5011} 5012_ACEOF 5013if ac_fn_c_try_compile "$LINENO" 5014then : 5015 ac_cv_should_define__xopen_source=yes 5016fi 5017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5018fi 5019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5020fi 5021fi 5022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5023printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5024 5025 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5026 5027 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5028 5029 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5030 5031 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5032 5033 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5034 5035 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5036 5037 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5038 5039 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5040 5041 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5042 5043 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5044 5045 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5046 5047 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5048 5049 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5050 5051 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5052 5053 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5054 5055 if test $ac_cv_header_minix_config_h = yes 5056then : 5057 MINIX=yes 5058 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5059 5060 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5061 5062 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5063 5064else $as_nop 5065 MINIX= 5066fi 5067 if test $ac_cv_safe_to_define___extensions__ = yes 5068then : 5069 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5070 5071fi 5072 if test $ac_cv_should_define__xopen_source = yes 5073then : 5074 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5075 5076fi 5077 5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5079printf %s "checking whether byte ordering is bigendian... " >&6; } 5080if test ${ac_cv_c_bigendian+y} 5081then : 5082 printf %s "(cached) " >&6 5083else $as_nop 5084 ac_cv_c_bigendian=unknown 5085 # See if we're dealing with a universal compiler. 5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087/* end confdefs.h. */ 5088#ifndef __APPLE_CC__ 5089 not a universal capable compiler 5090 #endif 5091 typedef int dummy; 5092 5093_ACEOF 5094if ac_fn_c_try_compile "$LINENO" 5095then : 5096 5097 # Check for potential -arch flags. It is not universal unless 5098 # there are at least two -arch flags with different values. 5099 ac_arch= 5100 ac_prev= 5101 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5102 if test -n "$ac_prev"; then 5103 case $ac_word in 5104 i?86 | x86_64 | ppc | ppc64) 5105 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5106 ac_arch=$ac_word 5107 else 5108 ac_cv_c_bigendian=universal 5109 break 5110 fi 5111 ;; 5112 esac 5113 ac_prev= 5114 elif test "x$ac_word" = "x-arch"; then 5115 ac_prev=arch 5116 fi 5117 done 5118fi 5119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5120 if test $ac_cv_c_bigendian = unknown; then 5121 # See if sys/param.h defines the BYTE_ORDER macro. 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124#include <sys/types.h> 5125 #include <sys/param.h> 5126 5127int 5128main (void) 5129{ 5130#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 5131 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 5132 && LITTLE_ENDIAN) 5133 bogus endian macros 5134 #endif 5135 5136 ; 5137 return 0; 5138} 5139_ACEOF 5140if ac_fn_c_try_compile "$LINENO" 5141then : 5142 # It does; now see whether it defined to BIG_ENDIAN or not. 5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5144/* end confdefs.h. */ 5145#include <sys/types.h> 5146 #include <sys/param.h> 5147 5148int 5149main (void) 5150{ 5151#if BYTE_ORDER != BIG_ENDIAN 5152 not big endian 5153 #endif 5154 5155 ; 5156 return 0; 5157} 5158_ACEOF 5159if ac_fn_c_try_compile "$LINENO" 5160then : 5161 ac_cv_c_bigendian=yes 5162else $as_nop 5163 ac_cv_c_bigendian=no 5164fi 5165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5166fi 5167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5168 fi 5169 if test $ac_cv_c_bigendian = unknown; then 5170 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5172/* end confdefs.h. */ 5173#include <limits.h> 5174 5175int 5176main (void) 5177{ 5178#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5179 bogus endian macros 5180 #endif 5181 5182 ; 5183 return 0; 5184} 5185_ACEOF 5186if ac_fn_c_try_compile "$LINENO" 5187then : 5188 # It does; now see whether it defined to _BIG_ENDIAN or not. 5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5190/* end confdefs.h. */ 5191#include <limits.h> 5192 5193int 5194main (void) 5195{ 5196#ifndef _BIG_ENDIAN 5197 not big endian 5198 #endif 5199 5200 ; 5201 return 0; 5202} 5203_ACEOF 5204if ac_fn_c_try_compile "$LINENO" 5205then : 5206 ac_cv_c_bigendian=yes 5207else $as_nop 5208 ac_cv_c_bigendian=no 5209fi 5210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5211fi 5212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5213 fi 5214 if test $ac_cv_c_bigendian = unknown; then 5215 # Compile a test program. 5216 if test "$cross_compiling" = yes 5217then : 5218 # Try to guess by grepping values from an object file. 5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5220/* end confdefs.h. */ 5221unsigned short int ascii_mm[] = 5222 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5223 unsigned short int ascii_ii[] = 5224 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5225 int use_ascii (int i) { 5226 return ascii_mm[i] + ascii_ii[i]; 5227 } 5228 unsigned short int ebcdic_ii[] = 5229 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5230 unsigned short int ebcdic_mm[] = 5231 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5232 int use_ebcdic (int i) { 5233 return ebcdic_mm[i] + ebcdic_ii[i]; 5234 } 5235 extern int foo; 5236 5237int 5238main (void) 5239{ 5240return use_ascii (foo) == use_ebcdic (foo); 5241 ; 5242 return 0; 5243} 5244_ACEOF 5245if ac_fn_c_try_compile "$LINENO" 5246then : 5247 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 5248 ac_cv_c_bigendian=yes 5249 fi 5250 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5251 if test "$ac_cv_c_bigendian" = unknown; then 5252 ac_cv_c_bigendian=no 5253 else 5254 # finding both strings is unlikely to happen, but who knows? 5255 ac_cv_c_bigendian=unknown 5256 fi 5257 fi 5258fi 5259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5260else $as_nop 5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262/* end confdefs.h. */ 5263$ac_includes_default 5264int 5265main (void) 5266{ 5267 5268 /* Are we little or big endian? From Harbison&Steele. */ 5269 union 5270 { 5271 long int l; 5272 char c[sizeof (long int)]; 5273 } u; 5274 u.l = 1; 5275 return u.c[sizeof (long int) - 1] == 1; 5276 5277 ; 5278 return 0; 5279} 5280_ACEOF 5281if ac_fn_c_try_run "$LINENO" 5282then : 5283 ac_cv_c_bigendian=no 5284else $as_nop 5285 ac_cv_c_bigendian=yes 5286fi 5287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5288 conftest.$ac_objext conftest.beam conftest.$ac_ext 5289fi 5290 5291 fi 5292fi 5293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5294printf "%s\n" "$ac_cv_c_bigendian" >&6; } 5295 case $ac_cv_c_bigendian in #( 5296 yes) 5297 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 5298;; #( 5299 no) 5300 ;; #( 5301 universal) 5302 5303printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5304 5305 ;; #( 5306 *) 5307 as_fn_error $? "unknown endianness 5308 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5309 esac 5310 5311 5312BUG_URL="$PACKAGE_BUGREPORT" 5313WIKI_URL="http://www.freeciv.org/" 5314MAIL_ADDRESS="freeciv-dev AT freelists.org" 5315 5316 5317 5318 5319printf "%s\n" "#define FC_CONFIG_H 1" >>confdefs.h 5320 5321 5322printf "%s\n" "#define BUG_URL \"$BUG_URL\"" >>confdefs.h 5323 5324 5325printf "%s\n" "#define FREECIV_META_URL \"http://meta.freeciv.org/metaserver.php\"" >>confdefs.h 5326 5327 5328printf "%s\n" "#define WIKI_URL \"$WIKI_URL\"" >>confdefs.h 5329 5330 5331 5332printf "%s\n" "#define DEFAULT_SOCK_PORT 5556" >>confdefs.h 5333 5334 5335 5336 5337 5338 5339VERSION_SCRIPT_SILENT=yes 5340#/bin/sh 5341# 5342# Copyright (C) 2004-2008 Freeciv team 5343 5344# Version definition for Freeciv. 5345 5346MAJOR_VERSION="2" 5347MINOR_VERSION="6" 5348PATCH_VERSION="6" 5349EMERGENCY_VERSION="" 5350VERSION_LABEL="" 5351 5352# 1) Development until MAJOR and MINOR version numbers are 5353# set to new release series: 5354# - IS_DEVEL_VERSION=1 5355# - IS_FREEZE_VERSION=0 5356# - IS_BETA_VERSION=0 5357# 5358# 2) Development from version number bump to first beta: 5359# - IS_DEVEL_VERSION=1 5360# - IS_FREEZE_VERSION=1 5361# - IS_BETA_VERSION=0 5362# 5363# 3) Development from first beta to first RC: 5364# - IS_DEVEL_VERSION=0 5365# - IS_FREEZE_VERSION=0 5366# - IS_BETA_VERSION=1 5367# 5368# 4) Stable, starting from first RC: 5369# - IS_DEVEL_VERSION=0 5370# - IS_FREEZE_VERSION=0 5371# - IS_BETA_VERSION=0 5372# (and update DEFAULT_FOLLOW_TAG to "stable", and also 5373# win32/installer/Makefile and win32/installer_msys2/Makefile 5374# --with-followtag to "win32") 5375 5376IS_DEVEL_VERSION=0 5377IS_FREEZE_VERSION=0 5378IS_BETA_VERSION=0 5379 5380NEXT_STABLE_VERSION="2.6.0" 5381 5382# 0 to disable display of release month until we can make better estimate 5383RELEASE_MONTH=7 5384 5385DATASUBDIR=2.6 5386DEFAULT_FOLLOW_TAG=stable 5387 5388# Freeciv network capstring: see documentation in common/capstr.c 5389# 5390# +Freeciv.Devel.YYYY.MMM.DD is the base capability string. 5391# 5392# - No new mandatory capabilities can be added to the release branch; doing 5393# so would break network capability of supposedly "compatible" releases. 5394# 5395# - Avoid adding a new mandatory capability to the development branch for 5396# as long as possible. We want to maintain network compatibility with 5397# the stable branch for as long as possible. 5398NETWORK_CAPSTRING_MANDATORY="+Freeciv-2.6-network" 5399NETWORK_CAPSTRING_OPTIONAL="techloss_forgiveness year32" 5400 5401FREECIV_DISTRIBUTOR="" 5402 5403if test "x$FREECIV_LABEL_FORCE" != "x" ; then 5404 VERSION_LABEL=$(echo $FREECIV_LABEL_FORCE | sed "s/<base>/$VERSION_LABEL/g") 5405fi 5406 5407if test x$VERSION_REVTYPE = xgit && command -v git > /dev/null ; then 5408 VERSION_REV="$(git rev-parse --short HEAD)" 5409else 5410 VERSION_REV="" 5411fi 5412if test "x$VERSION_REV" != "x" ; then 5413 case "x$VERSION_LABEL" in 5414 x*+) ;; 5415 *) VERSION_REV="+${VERSION_REV}" ;; 5416 esac 5417fi 5418 5419if test x$EMERGENCY_VERSION != x ; then 5420 EMERG_PART=".${EMERGENCY_VERSION}" 5421fi 5422 5423if test x$VERSION_SCRIPT_SILENT != xyes ; then 5424 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${EMERG_PART}${VERSION_LABEL}${VERSION_REV} 5425 echo ${VERSION} 5426fi 5427 5428 5429 5430 5431 5432printf "%s\n" "#define MAJOR_VERSION $MAJOR_VERSION" >>confdefs.h 5433 5434 5435printf "%s\n" "#define MINOR_VERSION $MINOR_VERSION" >>confdefs.h 5436 5437 5438printf "%s\n" "#define PATCH_VERSION $PATCH_VERSION" >>confdefs.h 5439 5440if test x$EMERGENCY_VERSION != x ; then 5441 5442printf "%s\n" "#define EMERGENCY_VERSION $EMERGENCY_VERSION" >>confdefs.h 5443 5444fi 5445 5446printf "%s\n" "#define VERSION_LABEL \"${VERSION_LABEL}\"" >>confdefs.h 5447 5448 5449printf "%s\n" "#define VERSION_STRING \"${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${EMERG_PART}${VERSION_LABEL}\"" >>confdefs.h 5450 5451 5452printf "%s\n" "#define IS_DEVEL_VERSION $IS_DEVEL_VERSION" >>confdefs.h 5453 5454 5455printf "%s\n" "#define IS_FREEZE_VERSION $IS_FREEZE_VERSION" >>confdefs.h 5456 5457 5458printf "%s\n" "#define IS_BETA_VERSION $IS_BETA_VERSION" >>confdefs.h 5459 5460 5461printf "%s\n" "#define NEXT_STABLE_VERSION \"$NEXT_STABLE_VERSION\"" >>confdefs.h 5462 5463 5464printf "%s\n" "#define FREECIV_RELEASE_MONTH $RELEASE_MONTH" >>confdefs.h 5465 5466 5467 5468 5469 5470printf "%s\n" "#define NETWORK_CAPSTRING_MANDATORY \"$NETWORK_CAPSTRING_MANDATORY\"" >>confdefs.h 5471 5472 5473 5474printf "%s\n" "#define NETWORK_CAPSTRING_OPTIONAL \"$NETWORK_CAPSTRING_OPTIONAL\"" >>confdefs.h 5475 5476 5477 5478 5479printf "%s\n" "#define DATASUBDIR \"$DATASUBDIR\"" >>confdefs.h 5480 5481 5482 5483 5484printf "%s\n" "#define FREECIV_DISTRIBUTOR \"$FREECIV_DISTRIBUTOR\"" >>confdefs.h 5485 5486 5487am__api_version='1.16' 5488 5489 5490 # Find a good install program. We prefer a C program (faster), 5491# so one script is as good as another. But avoid the broken or 5492# incompatible versions: 5493# SysV /etc/install, /usr/sbin/install 5494# SunOS /usr/etc/install 5495# IRIX /sbin/install 5496# AIX /bin/install 5497# AmigaOS /C/install, which installs bootblocks on floppy discs 5498# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5499# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5500# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5501# OS/2's system install, which has a completely different semantic 5502# ./install, which can be erroneously created by make from ./install.sh. 5503# Reject install programs that cannot install multiple files. 5504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5505printf %s "checking for a BSD-compatible install... " >&6; } 5506if test -z "$INSTALL"; then 5507if test ${ac_cv_path_install+y} 5508then : 5509 printf %s "(cached) " >&6 5510else $as_nop 5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5512for as_dir in $PATH 5513do 5514 IFS=$as_save_IFS 5515 case $as_dir in #((( 5516 '') as_dir=./ ;; 5517 */) ;; 5518 *) as_dir=$as_dir/ ;; 5519 esac 5520 # Account for fact that we put trailing slashes in our PATH walk. 5521case $as_dir in #(( 5522 ./ | /[cC]/* | \ 5523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5524 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5525 /usr/ucb/* ) ;; 5526 *) 5527 # OSF1 and SCO ODT 3.0 have their own names for install. 5528 # Don't use installbsd from OSF since it installs stuff as root 5529 # by default. 5530 for ac_prog in ginstall scoinst install; do 5531 for ac_exec_ext in '' $ac_executable_extensions; do 5532 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 5533 if test $ac_prog = install && 5534 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5535 # AIX install. It has an incompatible calling convention. 5536 : 5537 elif test $ac_prog = install && 5538 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5539 # program-specific install script used by HP pwplus--don't use. 5540 : 5541 else 5542 rm -rf conftest.one conftest.two conftest.dir 5543 echo one > conftest.one 5544 echo two > conftest.two 5545 mkdir conftest.dir 5546 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 5547 test -s conftest.one && test -s conftest.two && 5548 test -s conftest.dir/conftest.one && 5549 test -s conftest.dir/conftest.two 5550 then 5551 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 5552 break 3 5553 fi 5554 fi 5555 fi 5556 done 5557 done 5558 ;; 5559esac 5560 5561 done 5562IFS=$as_save_IFS 5563 5564rm -rf conftest.one conftest.two conftest.dir 5565 5566fi 5567 if test ${ac_cv_path_install+y}; then 5568 INSTALL=$ac_cv_path_install 5569 else 5570 # As a last resort, use the slow shell script. Don't cache a 5571 # value for INSTALL within a source directory, because that will 5572 # break other packages using the cache if that directory is 5573 # removed, or if the value is a relative name. 5574 INSTALL=$ac_install_sh 5575 fi 5576fi 5577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5578printf "%s\n" "$INSTALL" >&6; } 5579 5580# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5581# It thinks the first close brace ends the variable substitution. 5582test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5583 5584test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5585 5586test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5587 5588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 5589printf %s "checking whether build environment is sane... " >&6; } 5590# Reject unsafe characters in $srcdir or the absolute working directory 5591# name. Accept space and tab only in the latter. 5592am_lf=' 5593' 5594case `pwd` in 5595 *[\\\"\#\$\&\'\`$am_lf]*) 5596 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 5597esac 5598case $srcdir in 5599 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 5600 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 5601esac 5602 5603# Do 'set' in a subshell so we don't clobber the current shell's 5604# arguments. Must try -L first in case configure is actually a 5605# symlink; some systems play weird games with the mod time of symlinks 5606# (eg FreeBSD returns the mod time of the symlink's containing 5607# directory). 5608if ( 5609 am_has_slept=no 5610 for am_try in 1 2; do 5611 echo "timestamp, slept: $am_has_slept" > conftest.file 5612 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 5613 if test "$*" = "X"; then 5614 # -L didn't work. 5615 set X `ls -t "$srcdir/configure" conftest.file` 5616 fi 5617 if test "$*" != "X $srcdir/configure conftest.file" \ 5618 && test "$*" != "X conftest.file $srcdir/configure"; then 5619 5620 # If neither matched, then we have a broken ls. This can happen 5621 # if, for instance, CONFIG_SHELL is bash and it inherits a 5622 # broken ls alias from the environment. This has actually 5623 # happened. Such a system could not be considered "sane". 5624 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 5625 alias in your environment" "$LINENO" 5 5626 fi 5627 if test "$2" = conftest.file || test $am_try -eq 2; then 5628 break 5629 fi 5630 # Just in case. 5631 sleep 1 5632 am_has_slept=yes 5633 done 5634 test "$2" = conftest.file 5635 ) 5636then 5637 # Ok. 5638 : 5639else 5640 as_fn_error $? "newly created file is older than distributed files! 5641Check your system clock" "$LINENO" 5 5642fi 5643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5644printf "%s\n" "yes" >&6; } 5645# If we didn't sleep, we still need to ensure time stamps of config.status and 5646# generated files are strictly newer. 5647am_sleep_pid= 5648if grep 'slept: no' conftest.file >/dev/null 2>&1; then 5649 ( sleep 1 ) & 5650 am_sleep_pid=$! 5651fi 5652 5653rm -f conftest.file 5654 5655test "$program_prefix" != NONE && 5656 program_transform_name="s&^&$program_prefix&;$program_transform_name" 5657# Use a double $ so make ignores it. 5658test "$program_suffix" != NONE && 5659 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 5660# Double any \ or $. 5661# By default was `s,x,x', remove it if useless. 5662ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 5663program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 5664 5665 5666 if test x"${MISSING+set}" != xset; then 5667 MISSING="\${SHELL} '$am_aux_dir/missing'" 5668fi 5669# Use eval to expand $SHELL 5670if eval "$MISSING --is-lightweight"; then 5671 am_missing_run="$MISSING " 5672else 5673 am_missing_run= 5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 5675printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 5676fi 5677 5678if test x"${install_sh+set}" != xset; then 5679 case $am_aux_dir in 5680 *\ * | *\ *) 5681 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 5682 *) 5683 install_sh="\${SHELL} $am_aux_dir/install-sh" 5684 esac 5685fi 5686 5687# Installed binaries are usually stripped using 'strip' when the user 5688# run "make install-strip". However 'strip' might not be the right 5689# tool to use in cross-compilation environments, therefore Automake 5690# will honor the 'STRIP' environment variable to overrule this program. 5691if test "$cross_compiling" != no; then 5692 if test -n "$ac_tool_prefix"; then 5693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5694set dummy ${ac_tool_prefix}strip; ac_word=$2 5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5696printf %s "checking for $ac_word... " >&6; } 5697if test ${ac_cv_prog_STRIP+y} 5698then : 5699 printf %s "(cached) " >&6 5700else $as_nop 5701 if test -n "$STRIP"; then 5702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5703else 5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5705for as_dir in $PATH 5706do 5707 IFS=$as_save_IFS 5708 case $as_dir in #((( 5709 '') as_dir=./ ;; 5710 */) ;; 5711 *) as_dir=$as_dir/ ;; 5712 esac 5713 for ac_exec_ext in '' $ac_executable_extensions; do 5714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5715 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5717 break 2 5718 fi 5719done 5720 done 5721IFS=$as_save_IFS 5722 5723fi 5724fi 5725STRIP=$ac_cv_prog_STRIP 5726if test -n "$STRIP"; then 5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5728printf "%s\n" "$STRIP" >&6; } 5729else 5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5731printf "%s\n" "no" >&6; } 5732fi 5733 5734 5735fi 5736if test -z "$ac_cv_prog_STRIP"; then 5737 ac_ct_STRIP=$STRIP 5738 # Extract the first word of "strip", so it can be a program name with args. 5739set dummy strip; ac_word=$2 5740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5741printf %s "checking for $ac_word... " >&6; } 5742if test ${ac_cv_prog_ac_ct_STRIP+y} 5743then : 5744 printf %s "(cached) " >&6 5745else $as_nop 5746 if test -n "$ac_ct_STRIP"; then 5747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5748else 5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5750for as_dir in $PATH 5751do 5752 IFS=$as_save_IFS 5753 case $as_dir in #((( 5754 '') as_dir=./ ;; 5755 */) ;; 5756 *) as_dir=$as_dir/ ;; 5757 esac 5758 for ac_exec_ext in '' $ac_executable_extensions; do 5759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5760 ac_cv_prog_ac_ct_STRIP="strip" 5761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5762 break 2 5763 fi 5764done 5765 done 5766IFS=$as_save_IFS 5767 5768fi 5769fi 5770ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5771if test -n "$ac_ct_STRIP"; then 5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5773printf "%s\n" "$ac_ct_STRIP" >&6; } 5774else 5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5776printf "%s\n" "no" >&6; } 5777fi 5778 5779 if test "x$ac_ct_STRIP" = x; then 5780 STRIP=":" 5781 else 5782 case $cross_compiling:$ac_tool_warned in 5783yes:) 5784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5785printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5786ac_tool_warned=yes ;; 5787esac 5788 STRIP=$ac_ct_STRIP 5789 fi 5790else 5791 STRIP="$ac_cv_prog_STRIP" 5792fi 5793 5794fi 5795INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 5796 5797 5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 5799printf %s "checking for a race-free mkdir -p... " >&6; } 5800if test -z "$MKDIR_P"; then 5801 if test ${ac_cv_path_mkdir+y} 5802then : 5803 printf %s "(cached) " >&6 5804else $as_nop 5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5806for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 5807do 5808 IFS=$as_save_IFS 5809 case $as_dir in #((( 5810 '') as_dir=./ ;; 5811 */) ;; 5812 *) as_dir=$as_dir/ ;; 5813 esac 5814 for ac_prog in mkdir gmkdir; do 5815 for ac_exec_ext in '' $ac_executable_extensions; do 5816 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 5817 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 5818 'mkdir ('*'coreutils) '* | \ 5819 'BusyBox '* | \ 5820 'mkdir (fileutils) '4.1*) 5821 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 5822 break 3;; 5823 esac 5824 done 5825 done 5826 done 5827IFS=$as_save_IFS 5828 5829fi 5830 5831 test -d ./--version && rmdir ./--version 5832 if test ${ac_cv_path_mkdir+y}; then 5833 MKDIR_P="$ac_cv_path_mkdir -p" 5834 else 5835 # As a last resort, use the slow shell script. Don't cache a 5836 # value for MKDIR_P within a source directory, because that will 5837 # break other packages using the cache if that directory is 5838 # removed, or if the value is a relative name. 5839 MKDIR_P="$ac_install_sh -d" 5840 fi 5841fi 5842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 5843printf "%s\n" "$MKDIR_P" >&6; } 5844 5845for ac_prog in gawk mawk nawk awk 5846do 5847 # Extract the first word of "$ac_prog", so it can be a program name with args. 5848set dummy $ac_prog; ac_word=$2 5849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5850printf %s "checking for $ac_word... " >&6; } 5851if test ${ac_cv_prog_AWK+y} 5852then : 5853 printf %s "(cached) " >&6 5854else $as_nop 5855 if test -n "$AWK"; then 5856 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5857else 5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5859for as_dir in $PATH 5860do 5861 IFS=$as_save_IFS 5862 case $as_dir in #((( 5863 '') as_dir=./ ;; 5864 */) ;; 5865 *) as_dir=$as_dir/ ;; 5866 esac 5867 for ac_exec_ext in '' $ac_executable_extensions; do 5868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5869 ac_cv_prog_AWK="$ac_prog" 5870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5871 break 2 5872 fi 5873done 5874 done 5875IFS=$as_save_IFS 5876 5877fi 5878fi 5879AWK=$ac_cv_prog_AWK 5880if test -n "$AWK"; then 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5882printf "%s\n" "$AWK" >&6; } 5883else 5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5885printf "%s\n" "no" >&6; } 5886fi 5887 5888 5889 test -n "$AWK" && break 5890done 5891 5892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5893printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5894set x ${MAKE-make} 5895ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5896if eval test \${ac_cv_prog_make_${ac_make}_set+y} 5897then : 5898 printf %s "(cached) " >&6 5899else $as_nop 5900 cat >conftest.make <<\_ACEOF 5901SHELL = /bin/sh 5902all: 5903 @echo '@@@%%%=$(MAKE)=@@@%%%' 5904_ACEOF 5905# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5906case `${MAKE-make} -f conftest.make 2>/dev/null` in 5907 *@@@%%%=?*=@@@%%%*) 5908 eval ac_cv_prog_make_${ac_make}_set=yes;; 5909 *) 5910 eval ac_cv_prog_make_${ac_make}_set=no;; 5911esac 5912rm -f conftest.make 5913fi 5914if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5916printf "%s\n" "yes" >&6; } 5917 SET_MAKE= 5918else 5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5920printf "%s\n" "no" >&6; } 5921 SET_MAKE="MAKE=${MAKE-make}" 5922fi 5923 5924rm -rf .tst 2>/dev/null 5925mkdir .tst 2>/dev/null 5926if test -d .tst; then 5927 am__leading_dot=. 5928else 5929 am__leading_dot=_ 5930fi 5931rmdir .tst 2>/dev/null 5932 5933DEPDIR="${am__leading_dot}deps" 5934 5935ac_config_commands="$ac_config_commands depfiles" 5936 5937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5938printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 5939cat > confinc.mk << 'END' 5940am__doit: 5941 @echo this is the am__doit target >confinc.out 5942.PHONY: am__doit 5943END 5944am__include="#" 5945am__quote= 5946# BSD make does it like this. 5947echo '.include "confinc.mk" # ignored' > confmf.BSD 5948# Other make implementations (GNU, Solaris 10, AIX) do it like this. 5949echo 'include confinc.mk # ignored' > confmf.GNU 5950_am_result=no 5951for s in GNU BSD; do 5952 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5953 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5954 ac_status=$? 5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5956 (exit $ac_status); } 5957 case $?:`cat confinc.out 2>/dev/null` in #( 5958 '0:this is the am__doit target') : 5959 case $s in #( 5960 BSD) : 5961 am__include='.include' am__quote='"' ;; #( 5962 *) : 5963 am__include='include' am__quote='' ;; 5964esac ;; #( 5965 *) : 5966 ;; 5967esac 5968 if test "$am__include" != "#"; then 5969 _am_result="yes ($s style)" 5970 break 5971 fi 5972done 5973rm -f confinc.* confmf.* 5974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5975printf "%s\n" "${_am_result}" >&6; } 5976 5977# Check whether --enable-dependency-tracking was given. 5978if test ${enable_dependency_tracking+y} 5979then : 5980 enableval=$enable_dependency_tracking; 5981fi 5982 5983if test "x$enable_dependency_tracking" != xno; then 5984 am_depcomp="$ac_aux_dir/depcomp" 5985 AMDEPBACKSLASH='\' 5986 am__nodep='_no' 5987fi 5988 if test "x$enable_dependency_tracking" != xno; then 5989 AMDEP_TRUE= 5990 AMDEP_FALSE='#' 5991else 5992 AMDEP_TRUE='#' 5993 AMDEP_FALSE= 5994fi 5995 5996 5997# Check whether --enable-silent-rules was given. 5998if test ${enable_silent_rules+y} 5999then : 6000 enableval=$enable_silent_rules; 6001fi 6002 6003case $enable_silent_rules in # ((( 6004 yes) AM_DEFAULT_VERBOSITY=0;; 6005 no) AM_DEFAULT_VERBOSITY=1;; 6006 *) AM_DEFAULT_VERBOSITY=1;; 6007esac 6008am_make=${MAKE-make} 6009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 6010printf %s "checking whether $am_make supports nested variables... " >&6; } 6011if test ${am_cv_make_support_nested_variables+y} 6012then : 6013 printf %s "(cached) " >&6 6014else $as_nop 6015 if printf "%s\n" 'TRUE=$(BAR$(V)) 6016BAR0=false 6017BAR1=true 6018V=1 6019am__doit: 6020 @$(TRUE) 6021.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 6022 am_cv_make_support_nested_variables=yes 6023else 6024 am_cv_make_support_nested_variables=no 6025fi 6026fi 6027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 6028printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 6029if test $am_cv_make_support_nested_variables = yes; then 6030 AM_V='$(V)' 6031 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 6032else 6033 AM_V=$AM_DEFAULT_VERBOSITY 6034 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 6035fi 6036AM_BACKSLASH='\' 6037 6038if test "`cd $srcdir && pwd`" != "`pwd`"; then 6039 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 6040 # is not polluted with repeated "-I." 6041 am__isrc=' -I$(srcdir)' 6042 # test to see if srcdir already configured 6043 if test -f $srcdir/config.status; then 6044 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 6045 fi 6046fi 6047 6048# test whether we have cygpath 6049if test -z "$CYGPATH_W"; then 6050 if (cygpath --version) >/dev/null 2>/dev/null; then 6051 CYGPATH_W='cygpath -w' 6052 else 6053 CYGPATH_W=echo 6054 fi 6055fi 6056 6057 6058# Define the identity of the package. 6059 PACKAGE='freeciv' 6060 VERSION='2.6.6' 6061 6062 6063printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 6064 6065 6066printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 6067 6068# Some tools Automake needs. 6069 6070ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 6071 6072 6073AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 6074 6075 6076AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 6077 6078 6079AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 6080 6081 6082MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 6083 6084# For better backward compatibility. To be removed once Automake 1.9.x 6085# dies out for good. For more background, see: 6086# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 6087# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 6088mkdir_p='$(MKDIR_P)' 6089 6090# We need awk for the "check" target (and possibly the TAP driver). The 6091# system "awk" is bad on some platforms. 6092# Always define AMTAR for backward compatibility. Yes, it's still used 6093# in the wild :-( We should find a proper way to deprecate it ... 6094AMTAR='$${TAR-tar}' 6095 6096 6097# We'll loop over all known methods to create a tar archive until one works. 6098_am_tools='gnutar pax cpio none' 6099 6100am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 6101 6102 6103 6104 6105 6106depcc="$CC" am_compiler_list= 6107 6108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6109printf %s "checking dependency style of $depcc... " >&6; } 6110if test ${am_cv_CC_dependencies_compiler_type+y} 6111then : 6112 printf %s "(cached) " >&6 6113else $as_nop 6114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6115 # We make a subdir and do the tests there. Otherwise we can end up 6116 # making bogus files that we don't know about and never remove. For 6117 # instance it was reported that on HP-UX the gcc test will end up 6118 # making a dummy file named 'D' -- because '-MD' means "put the output 6119 # in D". 6120 rm -rf conftest.dir 6121 mkdir conftest.dir 6122 # Copy depcomp to subdir because otherwise we won't find it if we're 6123 # using a relative directory. 6124 cp "$am_depcomp" conftest.dir 6125 cd conftest.dir 6126 # We will build objects and dependencies in a subdirectory because 6127 # it helps to detect inapplicable dependency modes. For instance 6128 # both Tru64's cc and ICC support -MD to output dependencies as a 6129 # side effect of compilation, but ICC will put the dependencies in 6130 # the current directory while Tru64 will put them in the object 6131 # directory. 6132 mkdir sub 6133 6134 am_cv_CC_dependencies_compiler_type=none 6135 if test "$am_compiler_list" = ""; then 6136 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6137 fi 6138 am__universal=false 6139 case " $depcc " in #( 6140 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6141 esac 6142 6143 for depmode in $am_compiler_list; do 6144 # Setup a source with many dependencies, because some compilers 6145 # like to wrap large dependency lists on column 80 (with \), and 6146 # we should not choose a depcomp mode which is confused by this. 6147 # 6148 # We need to recreate these files for each test, as the compiler may 6149 # overwrite some of them when testing with obscure command lines. 6150 # This happens at least with the AIX C compiler. 6151 : > sub/conftest.c 6152 for i in 1 2 3 4 5 6; do 6153 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6154 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6155 # Solaris 10 /bin/sh. 6156 echo '/* dummy */' > sub/conftst$i.h 6157 done 6158 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6159 6160 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6161 # mode. It turns out that the SunPro C++ compiler does not properly 6162 # handle '-M -o', and we need to detect this. Also, some Intel 6163 # versions had trouble with output in subdirs. 6164 am__obj=sub/conftest.${OBJEXT-o} 6165 am__minus_obj="-o $am__obj" 6166 case $depmode in 6167 gcc) 6168 # This depmode causes a compiler race in universal mode. 6169 test "$am__universal" = false || continue 6170 ;; 6171 nosideeffect) 6172 # After this tag, mechanisms are not by side-effect, so they'll 6173 # only be used when explicitly requested. 6174 if test "x$enable_dependency_tracking" = xyes; then 6175 continue 6176 else 6177 break 6178 fi 6179 ;; 6180 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6181 # This compiler won't grok '-c -o', but also, the minuso test has 6182 # not run yet. These depmodes are late enough in the game, and 6183 # so weak that their functioning should not be impacted. 6184 am__obj=conftest.${OBJEXT-o} 6185 am__minus_obj= 6186 ;; 6187 none) break ;; 6188 esac 6189 if depmode=$depmode \ 6190 source=sub/conftest.c object=$am__obj \ 6191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6192 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6193 >/dev/null 2>conftest.err && 6194 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6195 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6196 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6197 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6198 # icc doesn't choke on unknown options, it will just issue warnings 6199 # or remarks (even with -Werror). So we grep stderr for any message 6200 # that says an option was ignored or not supported. 6201 # When given -MP, icc 7.0 and 7.1 complain thusly: 6202 # icc: Command line warning: ignoring option '-M'; no argument required 6203 # The diagnosis changed in icc 8.0: 6204 # icc: Command line remark: option '-MP' not supported 6205 if (grep 'ignoring option' conftest.err || 6206 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6207 am_cv_CC_dependencies_compiler_type=$depmode 6208 break 6209 fi 6210 fi 6211 done 6212 6213 cd .. 6214 rm -rf conftest.dir 6215else 6216 am_cv_CC_dependencies_compiler_type=none 6217fi 6218 6219fi 6220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6221printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6222CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6223 6224 if 6225 test "x$enable_dependency_tracking" != xno \ 6226 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6227 am__fastdepCC_TRUE= 6228 am__fastdepCC_FALSE='#' 6229else 6230 am__fastdepCC_TRUE='#' 6231 am__fastdepCC_FALSE= 6232fi 6233 6234 6235# Variables for tags utilities; see am/tags.am 6236if test -z "$CTAGS"; then 6237 CTAGS=ctags 6238fi 6239 6240if test -z "$ETAGS"; then 6241 ETAGS=etags 6242fi 6243 6244if test -z "$CSCOPE"; then 6245 CSCOPE=cscope 6246fi 6247 6248 6249 6250# POSIX will say in a future version that running "rm -f" with no argument 6251# is OK; and we want to be able to make that assumption in our Makefile 6252# recipes. So use an aggressive probe to check that the usage we want is 6253# actually supported "in the wild" to an acceptable degree. 6254# See automake bug#10828. 6255# To make any issue more visible, cause the running configure to be aborted 6256# by default if the 'rm' program in use doesn't match our expectations; the 6257# user can still override this though. 6258if rm -f && rm -fr && rm -rf; then : OK; else 6259 cat >&2 <<'END' 6260Oops! 6261 6262Your 'rm' program seems unable to run without file operands specified 6263on the command line, even when the '-f' option is present. This is contrary 6264to the behaviour of most rm programs out there, and not conforming with 6265the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 6266 6267Please tell bug-automake@gnu.org about your system, including the value 6268of your $PATH and any error possibly output before this message. This 6269can help us improve future automake versions. 6270 6271END 6272 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 6273 echo 'Configuration will proceed anyway, since you have set the' >&2 6274 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 6275 echo >&2 6276 else 6277 cat >&2 <<'END' 6278Aborting the configuration process, to ensure you take notice of the issue. 6279 6280You can download and install GNU coreutils to get an 'rm' implementation 6281that behaves properly: <https://www.gnu.org/software/coreutils/>. 6282 6283If you want to complete the configuration process using your problematic 6284'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 6285to "yes", and re-run configure. 6286 6287END 6288 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 6289 fi 6290fi 6291 6292 6293# Check whether --enable-silent-rules was given. 6294if test ${enable_silent_rules+y} 6295then : 6296 enableval=$enable_silent_rules; 6297fi 6298 6299case $enable_silent_rules in # ((( 6300 yes) AM_DEFAULT_VERBOSITY=0;; 6301 no) AM_DEFAULT_VERBOSITY=1;; 6302 *) AM_DEFAULT_VERBOSITY=0;; 6303esac 6304am_make=${MAKE-make} 6305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 6306printf %s "checking whether $am_make supports nested variables... " >&6; } 6307if test ${am_cv_make_support_nested_variables+y} 6308then : 6309 printf %s "(cached) " >&6 6310else $as_nop 6311 if printf "%s\n" 'TRUE=$(BAR$(V)) 6312BAR0=false 6313BAR1=true 6314V=1 6315am__doit: 6316 @$(TRUE) 6317.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 6318 am_cv_make_support_nested_variables=yes 6319else 6320 am_cv_make_support_nested_variables=no 6321fi 6322fi 6323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 6324printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 6325if test $am_cv_make_support_nested_variables = yes; then 6326 AM_V='$(V)' 6327 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 6328else 6329 AM_V=$AM_DEFAULT_VERBOSITY 6330 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 6331fi 6332AM_BACKSLASH='\' 6333 6334 6335UTILITY_LIBS= 6336 6337 6338 6339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6340printf %s "checking for a sed that does not truncate output... " >&6; } 6341if test ${ac_cv_path_SED+y} 6342then : 6343 printf %s "(cached) " >&6 6344else $as_nop 6345 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6346 for ac_i in 1 2 3 4 5 6 7; do 6347 ac_script="$ac_script$as_nl$ac_script" 6348 done 6349 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6350 { ac_script=; unset ac_script;} 6351 if test -z "$SED"; then 6352 ac_path_SED_found=false 6353 # Loop through the user's path and test for each of PROGNAME-LIST 6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6355for as_dir in $PATH 6356do 6357 IFS=$as_save_IFS 6358 case $as_dir in #((( 6359 '') as_dir=./ ;; 6360 */) ;; 6361 *) as_dir=$as_dir/ ;; 6362 esac 6363 for ac_prog in sed gsed 6364 do 6365 for ac_exec_ext in '' $ac_executable_extensions; do 6366 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6367 as_fn_executable_p "$ac_path_SED" || continue 6368# Check for GNU ac_path_SED and select it if it is found. 6369 # Check for GNU $ac_path_SED 6370case `"$ac_path_SED" --version 2>&1` in 6371*GNU*) 6372 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6373*) 6374 ac_count=0 6375 printf %s 0123456789 >"conftest.in" 6376 while : 6377 do 6378 cat "conftest.in" "conftest.in" >"conftest.tmp" 6379 mv "conftest.tmp" "conftest.in" 6380 cp "conftest.in" "conftest.nl" 6381 printf "%s\n" '' >> "conftest.nl" 6382 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6384 as_fn_arith $ac_count + 1 && ac_count=$as_val 6385 if test $ac_count -gt ${ac_path_SED_max-0}; then 6386 # Best one so far, save it but keep looking for a better one 6387 ac_cv_path_SED="$ac_path_SED" 6388 ac_path_SED_max=$ac_count 6389 fi 6390 # 10*(2^10) chars as input seems more than enough 6391 test $ac_count -gt 10 && break 6392 done 6393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6394esac 6395 6396 $ac_path_SED_found && break 3 6397 done 6398 done 6399 done 6400IFS=$as_save_IFS 6401 if test -z "$ac_cv_path_SED"; then 6402 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6403 fi 6404else 6405 ac_cv_path_SED=$SED 6406fi 6407 6408fi 6409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6410printf "%s\n" "$ac_cv_path_SED" >&6; } 6411 SED="$ac_cv_path_SED" 6412 rm -f conftest.sed 6413 6414 6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking can we call malloc(0)" >&5 6416printf %s "checking can we call malloc(0)... " >&6; } 6417if test ${fc_cv_malloc_zero_ok+y} 6418then : 6419 printf %s "(cached) " >&6 6420else $as_nop 6421 6422if test "$cross_compiling" = yes 6423then : 6424 fc_cv_malloc_zero_ok=no 6425else $as_nop 6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6427/* end confdefs.h. */ 6428 6429#include <stdlib.h> 6430 6431int 6432main() 6433{ 6434 void *allocation = malloc(0); 6435 6436 if (allocation != NULL) { 6437 free(allocation); 6438 } 6439 6440 return (allocation == NULL); 6441} 6442 6443_ACEOF 6444if ac_fn_c_try_run "$LINENO" 6445then : 6446 fc_cv_malloc_zero_ok=yes 6447else $as_nop 6448 fc_cv_malloc_zero_ok=no 6449fi 6450rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6451 conftest.$ac_objext conftest.beam conftest.$ac_ext 6452fi 6453 6454fi 6455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_malloc_zero_ok" >&5 6456printf "%s\n" "$fc_cv_malloc_zero_ok" >&6; } 6457 6458if test "x$fc_cv_malloc_zero_ok" = "xyes" ; then 6459 6460printf "%s\n" "#define MALLOC_ZERO_OK 1" >>confdefs.h 6461 6462fi 6463 6464fcdb_all=no 6465fcdb_mysql=no 6466fcdb_postgres=no 6467fcdb_sqlite3=no 6468 6469# Check whether --enable-fcdb was given. 6470if test ${enable_fcdb+y} 6471then : 6472 enableval=$enable_fcdb; databases=${enableval} 6473else $as_nop 6474 databases=no 6475fi 6476 6477 6478for db in $(echo $databases | $SED 's/,/ /g') ; do 6479 if test "x$db" = "xall" ; then 6480 fcdb_all=yes 6481 elif test "x$db" = "xno" ; then 6482 fcdb_all=no 6483 elif test "x$db" = "xmysql" ; then 6484 fcdb_mysql=yes 6485 elif test "x$db" = "xpostgres" ; then 6486 fcdb_postgres=yes 6487 elif test "x$db" = "xsqlite3" ; then 6488 fcdb_sqlite3=yes 6489 else 6490 as_fn_error $? "bad value ${db} for --enable-fcdb" "$LINENO" 5 6491 fi 6492done 6493 6494 6495 if test "x$fcdb_all" = "xyes" || test "x$fcdb_mysql" = "xyes" ; then 6496 6497 6498 6499# Check whether --with-mysql-prefix was given. 6500if test ${with_mysql_prefix+y} 6501then : 6502 withval=$with_mysql_prefix; mysql_prefix="$withval" 6503else $as_nop 6504 mysql_prefix="" 6505fi 6506 6507 6508 mysql_cflags="" 6509 mysql_ldflags="" 6510 MYSQL_VERSION="" 6511 6512 6513 if test -z "$MYSQL_CONFIG" -o test; then 6514 # Extract the first word of "mysql_config", so it can be a program name with args. 6515set dummy mysql_config; ac_word=$2 6516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6517printf %s "checking for $ac_word... " >&6; } 6518if test ${ac_cv_path_MYSQL_CONFIG+y} 6519then : 6520 printf %s "(cached) " >&6 6521else $as_nop 6522 case $MYSQL_CONFIG in 6523 [\\/]* | ?:[\\/]*) 6524 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. 6525 ;; 6526 *) 6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6528for as_dir in $PATH 6529do 6530 IFS=$as_save_IFS 6531 case $as_dir in #((( 6532 '') as_dir=./ ;; 6533 */) ;; 6534 *) as_dir=$as_dir/ ;; 6535 esac 6536 for ac_exec_ext in '' $ac_executable_extensions; do 6537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6538 ac_cv_path_MYSQL_CONFIG="$as_dir$ac_word$ac_exec_ext" 6539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6540 break 2 6541 fi 6542done 6543 done 6544IFS=$as_save_IFS 6545 6546 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no" 6547 ;; 6548esac 6549fi 6550MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG 6551if test -n "$MYSQL_CONFIG"; then 6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 6553printf "%s\n" "$MYSQL_CONFIG" >&6; } 6554else 6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6556printf "%s\n" "no" >&6; } 6557fi 6558 6559 6560 fi 6561 6562 if test "$MYSQL_CONFIG" != "no"; then 6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries" >&5 6564printf %s "checking for MySQL libraries... " >&6; } 6565 6566 mysql_cflags="`$MYSQL_CONFIG --cflags`" 6567 mysql_ldflags="`$MYSQL_CONFIG --libs`" 6568 MYSQL_VERSION=`$MYSQL_CONFIG --version` 6569 6570 # remove NDEBUG from MYSQL_CFLAGS 6571 mysql_cflags=`echo $mysql_cflags | $SED -e 's/-DNDEBUG//g'` 6572 6573 found_mysql="yes" 6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6575printf "%s\n" "yes" >&6; } 6576 6577 fi 6578 6579 6580 6581 mysql_version_req= 6582 6583 if test "$found_mysql" = "yes" -a -n "$mysql_version_req"; then 6584 6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if MySQL version is >= $mysql_version_req" >&5 6586printf %s "checking if MySQL version is >= $mysql_version_req... " >&6; } 6587 6588 mysql_version_req_major=`expr $mysql_version_req : '\([0-9]*\)'` 6589 mysql_version_req_minor=`expr $mysql_version_req : '[0-9]*\.\([0-9]*\)'` 6590 mysql_version_req_micro=`expr $mysql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 6591 if test "x$mysql_version_req_micro" = "x"; then 6592 mysql_version_req_micro="0" 6593 fi 6594 6595 mysql_version_req_number=`expr $mysql_version_req_major \* 1000000 \ 6596 \+ $mysql_version_req_minor \* 1000 \ 6597 \+ $mysql_version_req_micro` 6598 6599 mysql_version_major=`expr $MYSQL_VERSION : '\([0-9]*\)'` 6600 mysql_version_minor=`expr $MYSQL_VERSION : '[0-9]*\.\([0-9]*\)'` 6601 mysql_version_micro=`expr $MYSQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 6602 if test "x$mysql_version_micro" = "x"; then 6603 mysql_version_micro="0" 6604 fi 6605 6606 mysql_version_number=`expr $mysql_version_major \* 1000000 \ 6607 \+ $mysql_version_minor \* 1000 \ 6608 \+ $mysql_version_micro` 6609 6610 mysql_version_check=`expr $mysql_version_number \>\= $mysql_version_req_number` 6611 if test "$mysql_version_check" = "1"; then 6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6613printf "%s\n" "yes" >&6; } 6614 else 6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6616printf "%s\n" "no" >&6; } 6617 fi 6618 fi 6619 6620 6621 6622 6623 6624 if test "x$found_mysql" = "xyes" ; then 6625 6626 FCDB_MYSQL_CFLAGS="$mysql_cflags" 6627 FCDB_MYSQL_LIBS="$mysql_ldflags" 6628 6629 6630 6631 6632printf "%s\n" "#define HAVE_FCDB_MYSQL 1" >>confdefs.h 6633 6634 fcdb_mysql=yes 6635 6636 else 6637 6638 if test "x$fcdb_mysql" = "xyes" ; then 6639 as_fn_error $? "fcdb database mysql not available" "$LINENO" 5 6640 fi 6641 fcdb_mysql=no 6642 6643 fi 6644 6645 6646 fi 6647 6648 if test "x$fcdb_mysql" = "xyes"; then 6649 FCDB_MYSQL_TRUE= 6650 FCDB_MYSQL_FALSE='#' 6651else 6652 FCDB_MYSQL_TRUE='#' 6653 FCDB_MYSQL_FALSE= 6654fi 6655 6656 6657 6658 6659 if test "x$fcdb_all" = "xyes" || test "x$fcdb_postgres" = "xyes" ; then 6660 6661 6662 6663# Check whether --with-postgres-prefix was given. 6664if test ${with_postgres_prefix+y} 6665then : 6666 withval=$with_postgres_prefix; postgres_prefix="$withval" 6667else $as_nop 6668 postgres_prefix="" 6669fi 6670 6671 6672 postgresql_cflags="" 6673 postgresql_ldflags="" 6674 POSTGRESQL_POSTGRESQL="" 6675 6676 6677 if test -z "$PG_CONFIG" -o test; then 6678 # Extract the first word of "pg_config", so it can be a program name with args. 6679set dummy pg_config; ac_word=$2 6680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6681printf %s "checking for $ac_word... " >&6; } 6682if test ${ac_cv_path_PG_CONFIG+y} 6683then : 6684 printf %s "(cached) " >&6 6685else $as_nop 6686 case $PG_CONFIG in 6687 [\\/]* | ?:[\\/]*) 6688 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. 6689 ;; 6690 *) 6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6692for as_dir in $PATH 6693do 6694 IFS=$as_save_IFS 6695 case $as_dir in #((( 6696 '') as_dir=./ ;; 6697 */) ;; 6698 *) as_dir=$as_dir/ ;; 6699 esac 6700 for ac_exec_ext in '' $ac_executable_extensions; do 6701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6702 ac_cv_path_PG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6704 break 2 6705 fi 6706done 6707 done 6708IFS=$as_save_IFS 6709 6710 test -z "$ac_cv_path_PG_CONFIG" && ac_cv_path_PG_CONFIG="no" 6711 ;; 6712esac 6713fi 6714PG_CONFIG=$ac_cv_path_PG_CONFIG 6715if test -n "$PG_CONFIG"; then 6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 6717printf "%s\n" "$PG_CONFIG" >&6; } 6718else 6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6720printf "%s\n" "no" >&6; } 6721fi 6722 6723 6724 fi 6725 6726 if test "$PG_CONFIG" != "no"; then 6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL libraries" >&5 6728printf %s "checking for PostgreSQL libraries... " >&6; } 6729 6730 postgresql_cflags="-I`$PG_CONFIG --includedir`" 6731 postgresql_ldflags="-L`$PG_CONFIG --libdir` -lpq" 6732 POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'` 6733 6734 found_postgresql="yes" 6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6736printf "%s\n" "yes" >&6; } 6737 fi 6738 6739 6740 6741 postgresql_version_req= 6742 6743 if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then 6744 6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PostgreSQL version is >= $postgresql_version_req" >&5 6746printf %s "checking if PostgreSQL version is >= $postgresql_version_req... " >&6; } 6747 6748 postgresql_version_req_major=`expr $postgresql_version_req : '\([0-9]*\)'` 6749 postgresql_version_req_minor=`expr $postgresql_version_req : '[0-9]*\.\([0-9]*\)'` 6750 postgresql_version_req_micro=`expr $postgresql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 6751 if test "x$postgresql_version_req_micro" = "x"; then 6752 postgresql_version_req_micro="0" 6753 fi 6754 6755 postgresql_version_req_number=`expr $postgresql_version_req_major \* 1000000 \ 6756 \+ $postgresql_version_req_minor \* 1000 \ 6757 \+ $postgresql_version_req_micro` 6758 6759 postgresql_version_major=`expr $POSTGRESQL_VERSION : '\([0-9]*\)'` 6760 postgresql_version_minor=`expr $POSTGRESQL_VERSION : '[0-9]*\.\([0-9]*\)'` 6761 postgresql_version_micro=`expr $POSTGRESQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 6762 if test "x$postgresql_version_micro" = "x"; then 6763 postgresql_version_micro="0" 6764 fi 6765 6766 postgresql_version_number=`expr $postgresql_version_major \* 1000000 \ 6767 \+ $postgresql_version_minor \* 1000 \ 6768 \+ $postgresql_version_micro` 6769 6770 postgresql_version_check=`expr $postgresql_version_number \>\= $postgresql_version_req_number` 6771 if test "$postgresql_version_check" = "1"; then 6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6773printf "%s\n" "yes" >&6; } 6774 else 6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6776printf "%s\n" "no" >&6; } 6777 fi 6778 fi 6779 6780 6781 6782 6783 6784 if test "x$found_postgresql" = "xyes" ; then 6785 6786 FCDB_POSTGRES_CFLAGS="$postgresql_cflags" 6787 FCDB_POSTGRES_LIBS="$postgresql_ldflags" 6788 6789 6790 6791 6792printf "%s\n" "#define HAVE_FCDB_POSTGRES 1" >>confdefs.h 6793 6794 fcdb_postgres=yes 6795 6796 else 6797 6798 if test "x$fcdb_postgres" = "xyes" ; then 6799 as_fn_error $? "fcdb database postgres not available" "$LINENO" 5 6800 fi 6801 fcdb_postgres=no 6802 6803 fi 6804 6805 6806 fi 6807 6808 if test "x$fcdb_postgres" = "xyes"; then 6809 FCDB_POSTGRES_TRUE= 6810 FCDB_POSTGRES_FALSE='#' 6811else 6812 FCDB_POSTGRES_TRUE='#' 6813 FCDB_POSTGRES_FALSE= 6814fi 6815 6816 6817 6818 6819 if test "x$fcdb_all" = "xyes" || test "x$fcdb_sqlite3" = "xyes" ; then 6820 6821 6822 6823# Check whether --with-sqlite3-prefix was given. 6824if test ${with_sqlite3_prefix+y} 6825then : 6826 withval=$with_sqlite3_prefix; sqlite3_prefix="$withval" 6827else $as_nop 6828 sqlite3_prefix="" 6829fi 6830 6831 6832 sqlite3_cflags="" 6833 sqlite3_ldflags="" 6834 6835 ac_sqlite3_header="sqlite3.h" 6836 6837 sqlite3_version_req=3.0.0 6838 sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'` 6839 sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'` 6840 sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'` 6841 sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 6842 if test "x$sqlite3_version_req_micro" = "x" ; then 6843 sqlite3_version_req_micro="0" 6844 fi 6845 6846 sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \ 6847 \+ $sqlite3_version_req_minor \* 1000 \ 6848 \+ $sqlite3_version_req_micro` 6849 6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5 6851printf %s "checking for SQLite3 library >= $sqlite3_version_req... " >&6; } 6852 6853 if test "x$sqlite3_prefix" != "x"; then 6854 ac_sqlite3_ldflags="-L$sqlite3_prefix/lib" 6855 ac_sqlite3_cppflags="-I$sqlite3_prefix/include" 6856 else 6857 for sqlite3_prefix_tmp in /usr /usr/local /opt ; do 6858 if test -f "$sqlite3_prefix_tmp/include/$ac_sqlite3_header" \ 6859 && test -r "$sqlite3_prefix_tmp/include/$ac_sqlite3_header"; then 6860 sqlite3_prefix=$sqlite3_prefix_tmp 6861 ac_sqlite3_cppflags="-I$sqlite3_prefix_tmp/include" 6862 ac_sqlite3_ldflags="-L$sqlite3_prefix_tmp/lib" 6863 break; 6864 fi 6865 done 6866 fi 6867 6868 ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3" 6869 6870 saved_CPPFLAGS="$CPPFLAGS" 6871 CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags" 6872 6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875 6876 #include <sqlite3.h> 6877int 6878main (void) 6879{ 6880 6881#if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number) 6882// Everything is okay 6883#else 6884# error SQLite version is too old 6885#endif 6886 6887 ; 6888 return 0; 6889} 6890 6891_ACEOF 6892if ac_fn_c_try_compile "$LINENO" 6893then : 6894 6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6896printf "%s\n" "yes" >&6; } 6897 success="yes" 6898 6899else $as_nop 6900 6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6902printf "%s\n" "not found" >&6; } 6903 success="no" 6904 6905 6906fi 6907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6908 6909 CPPFLAGS="$saved_CPPFLAGS" 6910 6911 if test "$success" = "yes"; then 6912 sqlite3_cflags="$ac_sqlite3_cppflags" 6913 sqlite3_ldflags="$ac_sqlite3_ldflags" 6914 6915 ac_sqlite3_header_path="$sqlite3_prefix/include/$ac_sqlite3_header" 6916 6917 6918 6919 6920 6921 FCDB_SQLITE3_CFLAGS="$sqlite3_cflags" 6922 FCDB_SQLITE3_LIBS="$sqlite3_ldflags" 6923 6924 6925 6926 6927printf "%s\n" "#define HAVE_FCDB_SQLITE3 1" >>confdefs.h 6928 6929 fcdb_sqlite3=yes 6930 6931 else 6932 6933 if test "x$fcdb_sqlite3" = "xyes" ; then 6934 as_fn_error $? "fcdb database sqlite3 not available" "$LINENO" 5 6935 fi 6936 fcdb_sqlite3=no 6937 6938 fi 6939 6940 6941 fi 6942 6943 if test "x$fcdb_sqlite3" = "xyes"; then 6944 FCDB_SQLITE3_TRUE= 6945 FCDB_SQLITE3_FALSE='#' 6946else 6947 FCDB_SQLITE3_TRUE='#' 6948 FCDB_SQLITE3_FALSE= 6949fi 6950 6951 6952 6953if test "x$fcdb_mysql" = "xyes" || test "x$fcdb_postgres" = "xyes" \ 6954 || test "x$fcdb_sqlite3" = "xyes"; then 6955 enable_fcdb=yes 6956 6957printf "%s\n" "#define HAVE_FCDB 1" >>confdefs.h 6958 6959else 6960 enable_fcdb=no 6961fi 6962 if test "x$enable_fcdb" = "xyes"; then 6963 FCDB_DB_TRUE= 6964 FCDB_DB_FALSE='#' 6965else 6966 FCDB_DB_TRUE='#' 6967 FCDB_DB_FALSE= 6968fi 6969 6970 6971# Check whether --enable-server was given. 6972if test ${enable_server+y} 6973then : 6974 enableval=$enable_server; case "${enableval}" in 6975 yes) server=yes ;; 6976 no) server=no ;; 6977 *) as_fn_error $? "bad value ${enableval} for --disable-server" "$LINENO" 5 ;; 6978esac 6979else $as_nop 6980 server=yes 6981fi 6982 6983 if test x$server = xyes; then 6984 SERVER_TRUE= 6985 SERVER_FALSE='#' 6986else 6987 SERVER_TRUE='#' 6988 SERVER_FALSE= 6989fi 6990 6991 6992MINGW=no 6993AMIGA=no 6994 6995case "$host_os" in 6996 6997 *mingw*) 6998 MINGW=yes 6999 7000 _backup_includes_default="${ac_includes_default}" 7001 ac_includes_default="\ 7002#include <winsock2.h> 7003${ac_includes_default}" 7004 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 7005if test "x$ac_cv_header_winsock2_h" = xyes 7006then : 7007 7008printf "%s\n" "#define FREECIV_HAVE_WINSOCK2 1" >>confdefs.h 7009 7010else $as_nop 7011 ac_includes_default="$_backup_includes_default" 7012 7013fi 7014 7015 7016 7017printf "%s\n" "#define FREECIV_HAVE_WINSOCK 1" >>confdefs.h 7018 7019 for ac_header in ws2tcpip.h 7020do : 7021 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" 7022if test "x$ac_cv_header_ws2tcpip_h" = xyes 7023then : 7024 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 7025 7026printf "%s\n" "#define FREECIV_HAVE_WS2TCPIP_H 1" >>confdefs.h 7027 7028fi 7029 7030done 7031 ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default" 7032if test "x$ac_cv_header_direct_h" = xyes 7033then : 7034 printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h 7035 7036fi 7037 7038 7039 LIBS="${LIBS} -lws2_32" 7040 ;; 7041 7042 *haiku*) 7043 LIBS="$LIBS -lnetwork" 7044 ;; 7045esac 7046 7047 for ac_header in sys/types.h 7048do : 7049 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 7050if test "x$ac_cv_header_sys_types_h" = xyes 7051then : 7052 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 7053 7054printf "%s\n" "#define FREECIV_HAVE_SYS_TYPES_H 1" >>confdefs.h 7055 7056fi 7057 7058done 7059 7060if test "x$MINGW" != "xyes"; then 7061 for ac_header in sys/socket.h 7062do : 7063 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 7064if test "x$ac_cv_header_sys_socket_h" = xyes 7065then : 7066 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 7067 7068printf "%s\n" "#define FREECIV_HAVE_SYS_SOCKET_H 1" >>confdefs.h 7069 7070fi 7071 7072done 7073fi 7074 7075 7076 for ac_func in getaddrinfo 7077do : 7078 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 7079if test "x$ac_cv_func_getaddrinfo" = xyes 7080then : 7081 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 7082 have_getaddrinfo=yes 7083else $as_nop 7084 7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getaddrinfo() as a macro" >&5 7086printf %s "checking getaddrinfo() as a macro... " >&6; } 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089 7090#ifdef FREECIV_HAVE_WS2TCPIP_H 7091#include <ws2tcpip.h> 7092#endif 7093int 7094main (void) 7095{ 7096getaddrinfo(NULL, NULL, NULL, NULL); 7097 ; 7098 return 0; 7099} 7100_ACEOF 7101if ac_fn_c_try_link "$LINENO" 7102then : 7103 7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7105printf "%s\n" "yes" >&6; } 7106 have_getaddrinfo=yes 7107 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 7108 7109else $as_nop 7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7111printf "%s\n" "no" >&6; } 7112fi 7113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7114 conftest$ac_exeext conftest.$ac_ext 7115fi 7116 7117done 7118 7119# Check whether --enable-ipv6 was given. 7120if test ${enable_ipv6+y} 7121then : 7122 enableval=$enable_ipv6; case "${enableval}" in 7123 yes|no|test) ipv6=${enableval} ;; 7124 *) as_fn_error $? "bad value ${enableval} for --enable-ipv6" "$LINENO" 5 ;; 7125esac 7126else $as_nop 7127 ipv6=test 7128fi 7129 7130if test x$ipv6 != xno ; then 7131 if test "x$have_getaddrinfo" = "xyes" ; then 7132 enable_ipv6=yes 7133 7134 for ac_func in inet_pton 7135do : 7136 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 7137if test "x$ac_cv_func_inet_pton" = xyes 7138then : 7139 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 7140 7141else $as_nop 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking inet_pton() as a macro" >&5 7143printf %s "checking inet_pton() as a macro... " >&6; } 7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7145/* end confdefs.h. */ 7146 7147#ifdef FREECIV_HAVE_WS2TCPIP_H 7148#include <ws2tcpip.h> 7149#endif 7150int 7151main (void) 7152{ 7153inet_pton(0, NULL, NULL); 7154 ; 7155 return 0; 7156} 7157_ACEOF 7158if ac_fn_c_try_link "$LINENO" 7159then : 7160 7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7162printf "%s\n" "yes" >&6; } 7163else $as_nop 7164 enable_ipv6=no 7165fi 7166rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7167 conftest$ac_exeext conftest.$ac_ext 7168fi 7169 7170done 7171 7172 for ac_func in inet_ntop 7173do : 7174 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 7175if test "x$ac_cv_func_inet_ntop" = xyes 7176then : 7177 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 7178 7179else $as_nop 7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking inet_ntop() as a macro" >&5 7181printf %s "checking inet_ntop() as a macro... " >&6; } 7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7183/* end confdefs.h. */ 7184 7185#ifdef FREECIV_HAVE_WS2TCPIP_H 7186#include <ws2tcpip.h> 7187#endif 7188int 7189main (void) 7190{ 7191inet_ntop(0, NULL, NULL, 0); 7192 ; 7193 return 0; 7194} 7195_ACEOF 7196if ac_fn_c_try_link "$LINENO" 7197then : 7198 7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7200printf "%s\n" "yes" >&6; } 7201else $as_nop 7202 enable_ipv6=no 7203fi 7204rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7205 conftest$ac_exeext conftest.$ac_ext 7206fi 7207 7208done 7209 7210 for ac_func in getnameinfo 7211do : 7212 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 7213if test "x$ac_cv_func_getnameinfo" = xyes 7214then : 7215 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 7216 7217else $as_nop 7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getnameinfo() as a macro" >&5 7219printf %s "checking getnameinfo() as a macro... " >&6; } 7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7221/* end confdefs.h. */ 7222 7223#ifdef FREECIV_HAVE_WS2TCPIP_H 7224#include <ws2tcpip.h> 7225#endif 7226int 7227main (void) 7228{ 7229getnameinfo(NULL, 0, NULL, 0, NULL, 0, 0); 7230 ; 7231 return 0; 7232} 7233_ACEOF 7234if ac_fn_c_try_link "$LINENO" 7235then : 7236 7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7238printf "%s\n" "yes" >&6; } 7239else $as_nop 7240 enable_ipv6=no 7241fi 7242rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7243 conftest$ac_exeext conftest.$ac_ext 7244fi 7245 7246done 7247 else 7248 enable_ipv6=no 7249 fi 7250 if test x$enable_ipv6 = xyes ; then 7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5 7252printf %s "checking for AF_INET6... " >&6; } 7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7254/* end confdefs.h. */ 7255 7256#ifdef FREECIV_HAVE_WINSOCK2 7257#include <winsock2.h> 7258#endif 7259#ifdef FREECIV_HAVE_SYS_TYPES_H 7260#include <sys/types.h> 7261#endif 7262#ifdef FREECIV_HAVE_SYS_SOCKET_H 7263#include <sys/socket.h> 7264#endif 7265int 7266main (void) 7267{ 7268return AF_INET6; 7269 ; 7270 return 0; 7271} 7272_ACEOF 7273if ac_fn_c_try_compile "$LINENO" 7274then : 7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7276printf "%s\n" "yes" >&6; } 7277else $as_nop 7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7279printf "%s\n" "no" >&6; } 7280 enable_ipv6=no 7281fi 7282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7283 fi 7284 if test x$enable_ipv6 = xno && test x$ipv6 = xyes ; then 7285 as_fn_error $? "Cannot enable IPv6 functionality" "$LINENO" 5 7286 fi 7287 if test x$enable_ipv6 = xyes ; then 7288 7289printf "%s\n" "#define FREECIV_IPV6_SUPPORT 1" >>confdefs.h 7290 7291 else 7292 feature_ipv6=missing 7293 fi 7294fi 7295 7296 7297# Check whether --with-readline was given. 7298if test ${with_readline+y} 7299then : 7300 withval=$with_readline; WITH_READLINE=$withval 7301else $as_nop 7302 WITH_READLINE="maybe" 7303fi 7304 7305 7306FOLLOWTAG=${DEFAULT_FOLLOW_TAG} 7307 7308# Check whether --with-followtag was given. 7309if test ${with_followtag+y} 7310then : 7311 withval=$with_followtag; FOLLOWTAG=${withval} 7312fi 7313 7314 7315printf "%s\n" "#define FOLLOWTAG \"${FOLLOWTAG}\"" >>confdefs.h 7316 7317 7318 7319# Check whether --with-modlist was given. 7320if test ${with_modlist+y} 7321then : 7322 withval=$with_modlist; modlist_url=${withval} 7323fi 7324 7325if test "x$modlist_url" != "x" ; then 7326 7327printf "%s\n" "#define MODPACK_LIST_URL \"${modlist_url}\"" >>confdefs.h 7328 7329fi 7330 7331 7332# Check whether --with-desktopdir was given. 7333if test ${with_desktopdir+y} 7334then : 7335 withval=$with_desktopdir; DESKTOPDIR=${withval} 7336else $as_nop 7337 DESKTOPDIR="\$(prefix)/share/applications" 7338fi 7339 7340 7341 7342 7343# Check whether --with-appdatadir was given. 7344if test ${with_appdatadir+y} 7345then : 7346 withval=$with_appdatadir; APPDATADIR=${withval} 7347else $as_nop 7348 APPDATADIR="\$(prefix)/share/appdata" 7349fi 7350 7351 7352 7353# Check whether --enable-patient-connect was given. 7354if test ${enable_patient_connect+y} 7355then : 7356 enableval=$enable_patient_connect; case "${enableval}" in 7357 yes) 7358printf "%s\n" "#define FREECIV_PATIENT_CONNECT 1" >>confdefs.h 7359 ;; 7360 no) ;; 7361 *) as_fn_error $? "bad value ${enableval} for --enable-patient-connect" "$LINENO" 5 ;; 7362 esac 7363fi 7364 7365 7366mapimg_all=auto 7367mapimg_magickwand=no 7368 7369# Check whether --enable-mapimg was given. 7370if test ${enable_mapimg+y} 7371then : 7372 enableval=$enable_mapimg; toolkits=${enableval} 7373else $as_nop 7374 enable_mapimg=auto 7375fi 7376 7377 7378for toolkit in $(echo $toolkits | $SED 's/,/ /g') ; do 7379 if test "x$toolkit" = "xauto" ; then 7380 enable_mapimg=auto 7381 elif test "x$toolkit" = "xno" ; then 7382 enable_mapimg=no 7383 else 7384 enable_mapimg=selected 7385 fi 7386 7387 if test "x$toolkit" = "xmagickwand" ; then 7388 mapimg_magickwand=yes 7389 fi 7390done 7391 7392 7393 7394 7395 7396 7397 7398 7399if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7400 if test -n "$ac_tool_prefix"; then 7401 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 7402set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 7403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7404printf %s "checking for $ac_word... " >&6; } 7405if test ${ac_cv_path_PKG_CONFIG+y} 7406then : 7407 printf %s "(cached) " >&6 7408else $as_nop 7409 case $PKG_CONFIG in 7410 [\\/]* | ?:[\\/]*) 7411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7412 ;; 7413 *) 7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7415for as_dir in $PATH 7416do 7417 IFS=$as_save_IFS 7418 case $as_dir in #((( 7419 '') as_dir=./ ;; 7420 */) ;; 7421 *) as_dir=$as_dir/ ;; 7422 esac 7423 for ac_exec_ext in '' $ac_executable_extensions; do 7424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7425 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 7426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7427 break 2 7428 fi 7429done 7430 done 7431IFS=$as_save_IFS 7432 7433 ;; 7434esac 7435fi 7436PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7437if test -n "$PKG_CONFIG"; then 7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7439printf "%s\n" "$PKG_CONFIG" >&6; } 7440else 7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7442printf "%s\n" "no" >&6; } 7443fi 7444 7445 7446fi 7447if test -z "$ac_cv_path_PKG_CONFIG"; then 7448 ac_pt_PKG_CONFIG=$PKG_CONFIG 7449 # Extract the first word of "pkg-config", so it can be a program name with args. 7450set dummy pkg-config; ac_word=$2 7451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7452printf %s "checking for $ac_word... " >&6; } 7453if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 7454then : 7455 printf %s "(cached) " >&6 7456else $as_nop 7457 case $ac_pt_PKG_CONFIG in 7458 [\\/]* | ?:[\\/]*) 7459 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 7460 ;; 7461 *) 7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7463for as_dir in $PATH 7464do 7465 IFS=$as_save_IFS 7466 case $as_dir in #((( 7467 '') as_dir=./ ;; 7468 */) ;; 7469 *) as_dir=$as_dir/ ;; 7470 esac 7471 for ac_exec_ext in '' $ac_executable_extensions; do 7472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7473 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 7474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7475 break 2 7476 fi 7477done 7478 done 7479IFS=$as_save_IFS 7480 7481 ;; 7482esac 7483fi 7484ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 7485if test -n "$ac_pt_PKG_CONFIG"; then 7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 7487printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 7488else 7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7490printf "%s\n" "no" >&6; } 7491fi 7492 7493 if test "x$ac_pt_PKG_CONFIG" = x; then 7494 PKG_CONFIG="" 7495 else 7496 case $cross_compiling:$ac_tool_warned in 7497yes:) 7498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7499printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7500ac_tool_warned=yes ;; 7501esac 7502 PKG_CONFIG=$ac_pt_PKG_CONFIG 7503 fi 7504else 7505 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 7506fi 7507 7508fi 7509if test -n "$PKG_CONFIG"; then 7510 _pkg_min_version=0.9.0 7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 7512printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 7513 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7515printf "%s\n" "yes" >&6; } 7516 else 7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7518printf "%s\n" "no" >&6; } 7519 PKG_CONFIG="" 7520 fi 7521fi 7522 7523 if test "x$enable_mapimg" = "xauto" || test "x$mapimg_magickwand" = "xyes" ; then 7524 7525 7526 7527# Check whether --with-magickwand was given. 7528if test ${with_magickwand+y} 7529then : 7530 withval=$with_magickwand; magickwand_dir="$withval" 7531else $as_nop 7532 magickwand_dir="" 7533fi 7534 7535 7536 WAND_CONFIG_PATH="" 7537 if test "x$magickwand_dir" = "x" ; then 7538 7539pkg_failed=no 7540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WAND" >&5 7541printf %s "checking for WAND... " >&6; } 7542 7543if test -n "$WAND_CFLAGS"; then 7544 pkg_cv_WAND_CFLAGS="$WAND_CFLAGS" 7545 elif test -n "$PKG_CONFIG"; then 7546 if test -n "$PKG_CONFIG" && \ 7547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand\""; } >&5 7548 ($PKG_CONFIG --exists --print-errors "MagickWand") 2>&5 7549 ac_status=$? 7550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7551 test $ac_status = 0; }; then 7552 pkg_cv_WAND_CFLAGS=`$PKG_CONFIG --cflags "MagickWand" 2>/dev/null` 7553 test "x$?" != "x0" && pkg_failed=yes 7554else 7555 pkg_failed=yes 7556fi 7557 else 7558 pkg_failed=untried 7559fi 7560if test -n "$WAND_LIBS"; then 7561 pkg_cv_WAND_LIBS="$WAND_LIBS" 7562 elif test -n "$PKG_CONFIG"; then 7563 if test -n "$PKG_CONFIG" && \ 7564 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"MagickWand\""; } >&5 7565 ($PKG_CONFIG --exists --print-errors "MagickWand") 2>&5 7566 ac_status=$? 7567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7568 test $ac_status = 0; }; then 7569 pkg_cv_WAND_LIBS=`$PKG_CONFIG --libs "MagickWand" 2>/dev/null` 7570 test "x$?" != "x0" && pkg_failed=yes 7571else 7572 pkg_failed=yes 7573fi 7574 else 7575 pkg_failed=untried 7576fi 7577 7578 7579 7580if test $pkg_failed = yes; then 7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7582printf "%s\n" "no" >&6; } 7583 7584if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7585 _pkg_short_errors_supported=yes 7586else 7587 _pkg_short_errors_supported=no 7588fi 7589 if test $_pkg_short_errors_supported = yes; then 7590 WAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "MagickWand" 2>&1` 7591 else 7592 WAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "MagickWand" 2>&1` 7593 fi 7594 # Put the nasty error message in config.log where it belongs 7595 echo "$WAND_PKG_ERRORS" >&5 7596 7597 wand=no 7598elif test $pkg_failed = untried; then 7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7600printf "%s\n" "no" >&6; } 7601 wand=no 7602else 7603 WAND_CFLAGS=$pkg_cv_WAND_CFLAGS 7604 WAND_LIBS=$pkg_cv_WAND_LIBS 7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7606printf "%s\n" "yes" >&6; } 7607 wand=yes 7608fi 7609 7610 if test "x$wand" = "xno" ; then 7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MagickWand-config in default path" >&5 7612printf %s "checking for MagickWand-config in default path... " >&6; } 7613 7614 for i in /usr/local /usr; 7615 do 7616 test -r $i/bin/${host}-MagicWand-config && 7617 WAND_CONFIG_PATH=$i/bin && WAND_CONFIG_NAME=${host}-MagickWand-config && 7618 break 7619 done 7620 7621 if test x$WAND_CONFIG_PATH = x ; then 7622 for i in /usr/local /usr; 7623 do 7624 test -r $i/bin/MagickWand-config && 7625 WAND_CONFIG_PATH=$i/bin && WAND_CONFIG_NAME=MagickWand-config && break 7626 done 7627 fi 7628 fi 7629 else 7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MagickWand-config" >&5 7631printf %s "checking for MagickWand-config... " >&6; } 7632 7633 if test -r $magickwand_dir/${host}-MagickWand-config && 7634 WAND_CONFIG_PATH=$magickwand_dir && WAND_CONFIG_NAME=${host}-MagickWand-config 7635 then 7636 : 7637 else 7638 test -r $magickwand_dir/MagickWand-config && 7639 WAND_CONFIG_PATH=$magickwand_dir && WAND_CONFIG_NAME=MagickWand-config 7640 fi 7641 fi 7642 7643 if test "x$wand" != "xyes" ; then 7644 if test -z "$WAND_CONFIG_PATH" ; then 7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7646printf "%s\n" "no" >&6; } 7647 else 7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found in $WAND_CONFIG_PATH" >&5 7649printf "%s\n" "found in $WAND_CONFIG_PATH" >&6; } 7650 7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $WAND_CONFIG_NAME --cflags" >&5 7652printf %s "checking for $WAND_CONFIG_NAME --cflags... " >&6; } 7653 WAND_CFLAGS="`$WAND_CONFIG_PATH/$WAND_CONFIG_NAME --cflags`" 7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WAND_CFLAGS" >&5 7655printf "%s\n" "$WAND_CFLAGS" >&6; } 7656 7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $WAND_CONFIG_NAME --libs" >&5 7658printf %s "checking for $WAND_CONFIG_NAME --libs... " >&6; } 7659 WAND_LIBS="`$WAND_CONFIG_PATH/$WAND_CONFIG_NAME --libs`" 7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WAND_LIBS" >&5 7661printf "%s\n" "$WAND_LIBS" >&6; } 7662 7663 wand=yes 7664 fi 7665 fi 7666 7667 if test "x$wand" = "xyes" ; then 7668 ac_save_CFLAGS="$CFLAGS" 7669 ac_save_LIBS="$LIBS" 7670 CFLAGS="$CFLAGS $WAND_CFLAGS" 7671 LIBS="$WAND_LIBS $LIBS" 7672 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for all development tools needed for MagickWand" >&5 7674printf %s "checking for all development tools needed for MagickWand... " >&6; } 7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7676/* end confdefs.h. */ 7677#include <MagickWand/MagickWand.h> 7678int 7679main (void) 7680{ 7681MagickWand *mw = NewMagickWand(); 7682 ; 7683 return 0; 7684} 7685_ACEOF 7686if ac_fn_c_try_link "$LINENO" 7687then : 7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7689printf "%s\n" "yes" >&6; } 7690 7691printf "%s\n" "#define FREECIV_MWAND7 1" >>confdefs.h 7692 7693else $as_nop 7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7695/* end confdefs.h. */ 7696#include <wand/magick_wand.h> 7697int 7698main (void) 7699{ 7700MagickWand *mw = NewMagickWand(); 7701 ; 7702 return 0; 7703} 7704_ACEOF 7705if ac_fn_c_try_link "$LINENO" 7706then : 7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7708printf "%s\n" "yes" >&6; } 7709else $as_nop 7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7711printf "%s\n" "no" >&6; } 7712wand=no 7713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MagickWand deactivated due to missing development packages." >&5 7714printf "%s\n" "$as_me: WARNING: MagickWand deactivated due to missing development packages." >&2;} 7715fi 7716rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7717 conftest$ac_exeext conftest.$ac_ext 7718fi 7719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7720 conftest$ac_exeext conftest.$ac_ext 7721 7722 CFLAGS="$ac_save_CFLAGS" 7723 LIBS="$ac_save_LIBS" 7724 fi 7725 7726 7727 7728 7729 if test "x$wand" = "xyes" ; then 7730 7731 MAPIMG_WAND_CFLAGS="$WAND_CFLAGS" 7732 MAPIMG_WAND_LIBS="$WAND_LIBS" 7733 7734 MAPIMG_WAND_CFLAGS=$(echo $MAPIMG_WAND_CFLAGS | $SED -e 's/\-fopenmp//g') 7735 7736 7737 7738 7739 7740printf "%s\n" "#define HAVE_MAPIMG_MAGICKWAND 1" >>confdefs.h 7741 7742 mapimg_magickwand=yes 7743 7744 else 7745 7746 if test "x$mapimg_magickwand" = "xyes" ; then 7747 as_fn_error $? "mapimg toolkit magickwandclient not available" "$LINENO" 5 7748 fi 7749 mapimg_magickwand=no 7750 feature_magickwand=missing 7751 7752 fi 7753 7754 fi 7755 7756 7757fcweb=false 7758 7759 7760 if test "x$fcweb" = "xtrue"; then 7761 FREECIV_WEB_TRUE= 7762 FREECIV_WEB_FALSE='#' 7763else 7764 FREECIV_WEB_TRUE='#' 7765 FREECIV_WEB_FALSE= 7766fi 7767 7768 7769 if test "x$fcweb" = "xtrue" ; then 7770 7771printf "%s\n" "#define FREECIV_WEB 1" >>confdefs.h 7772 7773 7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json_object_set_new in -ljansson" >&5 7775printf %s "checking for json_object_set_new in -ljansson... " >&6; } 7776if test ${ac_cv_lib_jansson_json_object_set_new+y} 7777then : 7778 printf %s "(cached) " >&6 7779else $as_nop 7780 ac_check_lib_save_LIBS=$LIBS 7781LIBS="-ljansson $LIBS" 7782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7783/* end confdefs.h. */ 7784 7785/* Override any GCC internal prototype to avoid an error. 7786 Use char because int might match the return type of a GCC 7787 builtin and then its argument prototype would still apply. */ 7788char json_object_set_new (); 7789int 7790main (void) 7791{ 7792return json_object_set_new (); 7793 ; 7794 return 0; 7795} 7796_ACEOF 7797if ac_fn_c_try_link "$LINENO" 7798then : 7799 ac_cv_lib_jansson_json_object_set_new=yes 7800else $as_nop 7801 ac_cv_lib_jansson_json_object_set_new=no 7802fi 7803rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7804 conftest$ac_exeext conftest.$ac_ext 7805LIBS=$ac_check_lib_save_LIBS 7806fi 7807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jansson_json_object_set_new" >&5 7808printf "%s\n" "$ac_cv_lib_jansson_json_object_set_new" >&6; } 7809if test "x$ac_cv_lib_jansson_json_object_set_new" = xyes 7810then : 7811 SERVER_LIBS="${SERVER_LIBS} -ljansson" 7812else $as_nop 7813 as_fn_error $? "cannot find libjansson" "$LINENO" 5 7814fi 7815 7816 7817 ac_fn_c_check_header_compile "$LINENO" "jansson.h" "ac_cv_header_jansson_h" "$ac_includes_default" 7818if test "x$ac_cv_header_jansson_h" = xyes 7819then : 7820 7821else $as_nop 7822 as_fn_error $? "libjansson found but not jansson.h" "$LINENO" 5 7823fi 7824 7825 7826 7827printf "%s\n" "#define FREECIV_JSON_CONNECTION 1" >>confdefs.h 7828 7829 fi 7830 7831 7832 7833# Check whether --enable-testmatic was given. 7834if test ${enable_testmatic+y} 7835then : 7836 enableval=$enable_testmatic; case "${enableval}" in 7837 yes) enable_testmatic=yes ;; 7838 no) enable_testmatic=no ;; 7839 *) as_fn_error $? "bad value ${enableval} for --enable-testmatic" "$LINENO" 5 ;; 7840esac 7841else $as_nop 7842 enable_testmatic=no 7843fi 7844 7845 7846 if test x$enable_testmatic = xyes ; then 7847 7848printf "%s\n" "#define FREECIV_TESTMATIC 1" >>confdefs.h 7849 7850 fi 7851 7852 7853# Check whether --enable-client was given. 7854if test ${enable_client+y} 7855then : 7856 enableval=$enable_client; clients=${enableval} 7857else $as_nop 7858 client=auto 7859fi 7860 7861 7862if test "x$fcweb" = "xtrue" ; then 7863 if test "x$clients" != "x" && test "x$clients" != "xauto" && 7864 test "x$clients" != "xno" ; then 7865 as_fn_error $? "One cannot enable any clients for freeciv-web build" "$LINENO" 5 7866 fi 7867 clients=no 7868fi 7869 7870gui_gtk2=no 7871gui_gtk3_22=no 7872gui_gtk3=no 7873gui_sdl=no 7874gui_sdl2=no 7875gui_xaw=no 7876gui_qt=no 7877gui_stub=no 7878 7879for gui in $(echo $clients | $SED 's/,/ /g') ; do 7880 if test "x$gui" = "xno" ; then 7881 client=no 7882 elif test "x$gui" = "xauto" || test "x$gui" = "xyes" ; then 7883 client=auto 7884 elif test "x$gui" = "xall" ; then 7885 client=all 7886 else 7887 if test "x$gui" = "xgtk2" || 7888 test "x$gui" = "xgtk2.0" || 7889 test "x$gui" = "xgtk20" || 7890 test "x$gui" = "xgtk-2.0" ; then 7891 gui_gtk2=yes 7892 elif test "x$gui" = "xgtk3.22" ; then 7893 gui_gtk3_22=yes 7894 elif test "x$gui" = "xgtk3" || 7895 test "x$gui" = "xgtk3.0" || 7896 test "x$gui" = "xgtk30" || 7897 test "x$gui" = "xgtk-3.0" ; then 7898 gui_gtk3=yes 7899 elif test "x$gui" = "xgtk" ; then 7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: for requested client 'gtk' enabled gtk3-client, that has changed since earlier versions" >&5 7901printf "%s\n" "$as_me: WARNING: for requested client 'gtk' enabled gtk3-client, that has changed since earlier versions" >&2;} 7902 gui_gtk3=yes 7903 else 7904 if test ! -d "${srcdir}/client/gui-$gui" ; then 7905 as_fn_error $? "bad value ${gui} for --enable-client" "$LINENO" 5 7906 fi 7907 eval "gui_$gui=yes" 7908 fi 7909 client=yes 7910 fi 7911done 7912 7913 7914# Check whether --with-xaw was given. 7915if test ${with_xaw+y} 7916then : 7917 withval=$with_xaw; WITH_XAW=1 7918fi 7919 7920 7921 7922# Check whether --with-xaw3d was given. 7923if test ${with_xaw3d+y} 7924then : 7925 withval=$with_xaw3d; WITH_XAW3D=1 7926fi 7927 7928 7929if test "x$WITH_XAW" != "x" && test "x$WITH_XAW3D" != "x" ; then 7930 as_fn_error $? "Cannot use both --with-xaw and --with-xaw3d at the same time" "$LINENO" 5 7931fi 7932 7933# Check whether --enable-gitrev was given. 7934if test ${enable_gitrev+y} 7935then : 7936 enableval=$enable_gitrev; case "${enableval}" in 7937 yes) gitrev=true ;; 7938 no) gitrev=false ;; 7939 *) as_fn_error $? "bad value ${enableval} for --enable-gitrev" "$LINENO" 5 ;; 7940esac 7941else $as_nop 7942 gitrev=false 7943fi 7944 7945 if test x$gitrev = xtrue; then 7946 GITREV_TRUE= 7947 GITREV_FALSE='#' 7948else 7949 GITREV_TRUE='#' 7950 GITREV_FALSE= 7951fi 7952 7953if test x$gitrev = xtrue ; then 7954 7955printf "%s\n" "#define GITREV 1" >>confdefs.h 7956 7957fi 7958 7959# Check whether --enable-make_data was given. 7960if test ${enable_make_data+y} 7961then : 7962 enableval=$enable_make_data; case "${enableval}" in 7963 yes) make_data=true ;; 7964 no) make_data=false ;; 7965 *) as_fn_error $? "bad value ${enableval} for --disable-make-data" "$LINENO" 5 ;; 7966esac 7967else $as_nop 7968 make_data=true 7969fi 7970 7971 if test x$make_data = xtrue; then 7972 MAKE_DATA_TRUE= 7973 MAKE_DATA_FALSE='#' 7974else 7975 MAKE_DATA_TRUE='#' 7976 MAKE_DATA_FALSE= 7977fi 7978 7979 7980# Check whether --enable-make_include was given. 7981if test ${enable_make_include+y} 7982then : 7983 enableval=$enable_make_include; case "${enableval}" in 7984 yes) make_include=true ;; 7985 no) make_include=false ;; 7986 *) as_fn_error $? "bad value ${enableval} for --enable-make-include" "$LINENO" 5 ;; 7987esac 7988else $as_nop 7989 make_include=false 7990fi 7991 7992 if test "$make_include" = "true"; then 7993 MAKE_CLIENT_INCLUDE_TRUE= 7994 MAKE_CLIENT_INCLUDE_FALSE='#' 7995else 7996 MAKE_CLIENT_INCLUDE_TRUE='#' 7997 MAKE_CLIENT_INCLUDE_FALSE= 7998fi 7999 8000 8001 8002# Check whether --with-efence was given. 8003if test ${with_efence+y} 8004then : 8005 withval=$with_efence; WITH_EFENCE=1 8006 8007fi 8008 8009 8010# Check whether --enable-aimodules was given. 8011if test ${enable_aimodules+y} 8012then : 8013 enableval=$enable_aimodules; case "${enableval}" in 8014 yes) enable_aimodules=yes ;; 8015 no) enable_aimodules=no ;; 8016 experimental) enable_aimodules=yes 8017 exp_aimodules=yes ;; 8018 *) as_fn_error $? "bad value ${enable_aimodules} for --enable-aimodules" "$LINENO" 5 ;; 8019esac 8020else $as_nop 8021 enable_aimodules=no 8022fi 8023 8024aimoduledir="${libdir}/fcai" 8025 8026 if test "x$enable_aimodules" = "xyes"; then 8027 AI_MODULES_TRUE= 8028 AI_MODULES_FALSE='#' 8029else 8030 AI_MODULES_TRUE='#' 8031 AI_MODULES_FALSE= 8032fi 8033 8034if test $enable_aimodules = yes ; then 8035 if test x$enable_shared != xyes ; then 8036 as_fn_error $? "cannot enable ai module support if also build of shared libraries is not enabled with --enable-shared" "$LINENO" 5 8037 fi 8038 LIBS_TMP="$LIBS" 8039 LIBS="$LIBS -lltdl" 8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether can build modules" >&5 8041printf %s "checking whether can build modules... " >&6; } 8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8043/* end confdefs.h. */ 8044#include <ltdl.h> 8045int 8046main (void) 8047{ 8048lt_dlopenext(NULL); 8049 ; 8050 return 0; 8051} 8052_ACEOF 8053if ac_fn_c_try_link "$LINENO" 8054then : 8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8056printf "%s\n" "yes" >&6; } 8057else $as_nop 8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8059printf "%s\n" "no" >&6; } 8060 as_fn_error $? "cannot build loadable AI modules as requested" "$LINENO" 5 8061fi 8062rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8063 conftest$ac_exeext conftest.$ac_ext 8064 LIBS="$LIBS_TMP" 8065 SERVER_LIBS="${SERVER_LIBS} -lltdl" 8066 8067printf "%s\n" "#define AI_MODULES 1" >>confdefs.h 8068 8069 CPPFLAGS="${CPPFLAGS} -DAI_MODULEDIR=\"\\\"${aimoduledir}\\\"\"" 8070 ai_mod_default_needed=yes 8071fi 8072 if test "x$exp_aimodules" = "xyes"; then 8073 EXP_AI_MODULES_TRUE= 8074 EXP_AI_MODULES_FALSE='#' 8075else 8076 EXP_AI_MODULES_TRUE='#' 8077 EXP_AI_MODULES_FALSE= 8078fi 8079 8080 8081# Check whether --enable-ai-static was given. 8082if test ${enable_ai_static+y} 8083then : 8084 enableval=$enable_ai_static; static_modules="${enableval}" 8085else $as_nop 8086 static_modules="classic" 8087fi 8088 8089 8090ai_mod_static_classic=no 8091ai_mod_static_threaded=no 8092ai_mod_static_stub=no 8093 8094for module in $(echo $static_modules | $SED 's/,/ /g') ; do 8095 if test "x$module" = "xclassic" ; then 8096 ai_mod_static_classic=yes 8097 ai_mod_default_needed=yes 8098 8099printf "%s\n" "#define AI_MOD_STATIC_CLASSIC 1" >>confdefs.h 8100 8101 elif test "x$module" = "xthreaded" ; then 8102 ai_mod_static_threaded=yes 8103 ai_mod_default_needed=yes 8104 8105printf "%s\n" "#define AI_MOD_STATIC_THREADED 1" >>confdefs.h 8106 8107 elif test "x$module" = "xstub" ; then 8108 ai_mod_static_stub=yes 8109 8110printf "%s\n" "#define AI_MOD_STATIC_STUB 1" >>confdefs.h 8111 8112 else 8113 as_fn_error $? "bad value ${module} for --enable-ai-static" "$LINENO" 5 8114 fi 8115 if test "x$default_ai_set" = "x" ; then 8116 default_ai_set="${module}" 8117 fi 8118done 8119 if test "x$ai_mod_static_classic" = "xyes" || test "x$enable_aimodules" != "xyes"; then 8120 AI_MOD_STATIC_CLASSIC_TRUE= 8121 AI_MOD_STATIC_CLASSIC_FALSE='#' 8122else 8123 AI_MOD_STATIC_CLASSIC_TRUE='#' 8124 AI_MOD_STATIC_CLASSIC_FALSE= 8125fi 8126 8127 if test "x$ai_mod_static_threaded" = "xyes"; then 8128 AI_MOD_STATIC_THREADED_TRUE= 8129 AI_MOD_STATIC_THREADED_FALSE='#' 8130else 8131 AI_MOD_STATIC_THREADED_TRUE='#' 8132 AI_MOD_STATIC_THREADED_FALSE= 8133fi 8134 8135 if test "x$ai_mod_static_stub" = "xyes"; then 8136 AI_MOD_STATIC_STUB_TRUE= 8137 AI_MOD_STATIC_STUB_FALSE='#' 8138else 8139 AI_MOD_STATIC_STUB_TRUE='#' 8140 AI_MOD_STATIC_STUB_FALSE= 8141fi 8142 8143 8144 8145# Check whether --with-default-ai was given. 8146if test ${with_default_ai+y} 8147then : 8148 withval=$with_default_ai; default_ai_set="${withval}" 8149fi 8150 8151 8152 8153# Check whether --with-ai-lib was given. 8154if test ${with_ai_lib+y} 8155then : 8156 withval=$with_ai_lib; ai_mod_default_needed=yes 8157fi 8158 8159 8160 if test "x${ai_mod_default_needed}" = "xyes" || test "x${default_ai_set}" = "x"; then 8161 AI_MOD_DEFAULT_NEEDED_TRUE= 8162 AI_MOD_DEFAULT_NEEDED_FALSE='#' 8163else 8164 AI_MOD_DEFAULT_NEEDED_TRUE='#' 8165 AI_MOD_DEFAULT_NEEDED_FALSE= 8166fi 8167 8168 8169if test "x${default_ai_set}" = "x" ; then 8170 default_ai_set="classic" 8171fi 8172 8173fc_ai_last=0 8174if test "x$ai_mod_static_classic" = "xyes" ; then 8175 fc_ai_last=$fc_ai_last+1 8176fi 8177if test "x$ai_mod_static_threaded" = "xyes" ; then 8178 fc_ai_last=$fc_ai_last+1 8179fi 8180if test "x$ai_mod_static_stub" = "xyes" ; then 8181 fc_ai_last=$fc_ai_last+1 8182fi 8183if test "x$enable_aimodules" = "xyes" ; then 8184 fc_ai_last=$fc_ai_last+3 8185fi 8186 8187printf "%s\n" "#define FREECIV_AI_MOD_LAST (${fc_ai_last})" >>confdefs.h 8188 8189 8190 8191printf "%s\n" "#define AI_MOD_DEFAULT \"${default_ai_set}\"" >>confdefs.h 8192 8193 8194for ac_prog in gawk mawk nawk awk 8195do 8196 # Extract the first word of "$ac_prog", so it can be a program name with args. 8197set dummy $ac_prog; ac_word=$2 8198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8199printf %s "checking for $ac_word... " >&6; } 8200if test ${ac_cv_prog_AWK+y} 8201then : 8202 printf %s "(cached) " >&6 8203else $as_nop 8204 if test -n "$AWK"; then 8205 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8206else 8207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8208for as_dir in $PATH 8209do 8210 IFS=$as_save_IFS 8211 case $as_dir in #((( 8212 '') as_dir=./ ;; 8213 */) ;; 8214 *) as_dir=$as_dir/ ;; 8215 esac 8216 for ac_exec_ext in '' $ac_executable_extensions; do 8217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8218 ac_cv_prog_AWK="$ac_prog" 8219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8220 break 2 8221 fi 8222done 8223 done 8224IFS=$as_save_IFS 8225 8226fi 8227fi 8228AWK=$ac_cv_prog_AWK 8229if test -n "$AWK"; then 8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8231printf "%s\n" "$AWK" >&6; } 8232else 8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8234printf "%s\n" "no" >&6; } 8235fi 8236 8237 8238 test -n "$AWK" && break 8239done 8240 8241ac_ext=c 8242ac_cpp='$CPP $CPPFLAGS' 8243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8245ac_compiler_gnu=$ac_cv_c_compiler_gnu 8246if test -n "$ac_tool_prefix"; then 8247 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 8248set dummy ${ac_tool_prefix}gcc; ac_word=$2 8249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8250printf %s "checking for $ac_word... " >&6; } 8251if test ${ac_cv_prog_CC+y} 8252then : 8253 printf %s "(cached) " >&6 8254else $as_nop 8255 if test -n "$CC"; then 8256 ac_cv_prog_CC="$CC" # Let the user override the test. 8257else 8258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8259for as_dir in $PATH 8260do 8261 IFS=$as_save_IFS 8262 case $as_dir in #((( 8263 '') as_dir=./ ;; 8264 */) ;; 8265 *) as_dir=$as_dir/ ;; 8266 esac 8267 for ac_exec_ext in '' $ac_executable_extensions; do 8268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8269 ac_cv_prog_CC="${ac_tool_prefix}gcc" 8270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8271 break 2 8272 fi 8273done 8274 done 8275IFS=$as_save_IFS 8276 8277fi 8278fi 8279CC=$ac_cv_prog_CC 8280if test -n "$CC"; then 8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8282printf "%s\n" "$CC" >&6; } 8283else 8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8285printf "%s\n" "no" >&6; } 8286fi 8287 8288 8289fi 8290if test -z "$ac_cv_prog_CC"; then 8291 ac_ct_CC=$CC 8292 # Extract the first word of "gcc", so it can be a program name with args. 8293set dummy gcc; ac_word=$2 8294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8295printf %s "checking for $ac_word... " >&6; } 8296if test ${ac_cv_prog_ac_ct_CC+y} 8297then : 8298 printf %s "(cached) " >&6 8299else $as_nop 8300 if test -n "$ac_ct_CC"; then 8301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 8302else 8303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8304for as_dir in $PATH 8305do 8306 IFS=$as_save_IFS 8307 case $as_dir in #((( 8308 '') as_dir=./ ;; 8309 */) ;; 8310 *) as_dir=$as_dir/ ;; 8311 esac 8312 for ac_exec_ext in '' $ac_executable_extensions; do 8313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8314 ac_cv_prog_ac_ct_CC="gcc" 8315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8316 break 2 8317 fi 8318done 8319 done 8320IFS=$as_save_IFS 8321 8322fi 8323fi 8324ac_ct_CC=$ac_cv_prog_ac_ct_CC 8325if test -n "$ac_ct_CC"; then 8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 8327printf "%s\n" "$ac_ct_CC" >&6; } 8328else 8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8330printf "%s\n" "no" >&6; } 8331fi 8332 8333 if test "x$ac_ct_CC" = x; then 8334 CC="" 8335 else 8336 case $cross_compiling:$ac_tool_warned in 8337yes:) 8338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8339printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8340ac_tool_warned=yes ;; 8341esac 8342 CC=$ac_ct_CC 8343 fi 8344else 8345 CC="$ac_cv_prog_CC" 8346fi 8347 8348if test -z "$CC"; then 8349 if test -n "$ac_tool_prefix"; then 8350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 8351set dummy ${ac_tool_prefix}cc; ac_word=$2 8352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8353printf %s "checking for $ac_word... " >&6; } 8354if test ${ac_cv_prog_CC+y} 8355then : 8356 printf %s "(cached) " >&6 8357else $as_nop 8358 if test -n "$CC"; then 8359 ac_cv_prog_CC="$CC" # Let the user override the test. 8360else 8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8362for as_dir in $PATH 8363do 8364 IFS=$as_save_IFS 8365 case $as_dir in #((( 8366 '') as_dir=./ ;; 8367 */) ;; 8368 *) as_dir=$as_dir/ ;; 8369 esac 8370 for ac_exec_ext in '' $ac_executable_extensions; do 8371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8372 ac_cv_prog_CC="${ac_tool_prefix}cc" 8373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8374 break 2 8375 fi 8376done 8377 done 8378IFS=$as_save_IFS 8379 8380fi 8381fi 8382CC=$ac_cv_prog_CC 8383if test -n "$CC"; then 8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8385printf "%s\n" "$CC" >&6; } 8386else 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8388printf "%s\n" "no" >&6; } 8389fi 8390 8391 8392 fi 8393fi 8394if test -z "$CC"; then 8395 # Extract the first word of "cc", so it can be a program name with args. 8396set dummy cc; ac_word=$2 8397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8398printf %s "checking for $ac_word... " >&6; } 8399if test ${ac_cv_prog_CC+y} 8400then : 8401 printf %s "(cached) " >&6 8402else $as_nop 8403 if test -n "$CC"; then 8404 ac_cv_prog_CC="$CC" # Let the user override the test. 8405else 8406 ac_prog_rejected=no 8407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8408for as_dir in $PATH 8409do 8410 IFS=$as_save_IFS 8411 case $as_dir in #((( 8412 '') as_dir=./ ;; 8413 */) ;; 8414 *) as_dir=$as_dir/ ;; 8415 esac 8416 for ac_exec_ext in '' $ac_executable_extensions; do 8417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8418 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 8419 ac_prog_rejected=yes 8420 continue 8421 fi 8422 ac_cv_prog_CC="cc" 8423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8424 break 2 8425 fi 8426done 8427 done 8428IFS=$as_save_IFS 8429 8430if test $ac_prog_rejected = yes; then 8431 # We found a bogon in the path, so make sure we never use it. 8432 set dummy $ac_cv_prog_CC 8433 shift 8434 if test $# != 0; then 8435 # We chose a different compiler from the bogus one. 8436 # However, it has the same basename, so the bogon will be chosen 8437 # first if we set CC to just the basename; use the full file name. 8438 shift 8439 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 8440 fi 8441fi 8442fi 8443fi 8444CC=$ac_cv_prog_CC 8445if test -n "$CC"; then 8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8447printf "%s\n" "$CC" >&6; } 8448else 8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8450printf "%s\n" "no" >&6; } 8451fi 8452 8453 8454fi 8455if test -z "$CC"; then 8456 if test -n "$ac_tool_prefix"; then 8457 for ac_prog in cl.exe 8458 do 8459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8460set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8462printf %s "checking for $ac_word... " >&6; } 8463if test ${ac_cv_prog_CC+y} 8464then : 8465 printf %s "(cached) " >&6 8466else $as_nop 8467 if test -n "$CC"; then 8468 ac_cv_prog_CC="$CC" # Let the user override the test. 8469else 8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8471for as_dir in $PATH 8472do 8473 IFS=$as_save_IFS 8474 case $as_dir in #((( 8475 '') as_dir=./ ;; 8476 */) ;; 8477 *) as_dir=$as_dir/ ;; 8478 esac 8479 for ac_exec_ext in '' $ac_executable_extensions; do 8480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 8482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8483 break 2 8484 fi 8485done 8486 done 8487IFS=$as_save_IFS 8488 8489fi 8490fi 8491CC=$ac_cv_prog_CC 8492if test -n "$CC"; then 8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8494printf "%s\n" "$CC" >&6; } 8495else 8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8497printf "%s\n" "no" >&6; } 8498fi 8499 8500 8501 test -n "$CC" && break 8502 done 8503fi 8504if test -z "$CC"; then 8505 ac_ct_CC=$CC 8506 for ac_prog in cl.exe 8507do 8508 # Extract the first word of "$ac_prog", so it can be a program name with args. 8509set dummy $ac_prog; ac_word=$2 8510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8511printf %s "checking for $ac_word... " >&6; } 8512if test ${ac_cv_prog_ac_ct_CC+y} 8513then : 8514 printf %s "(cached) " >&6 8515else $as_nop 8516 if test -n "$ac_ct_CC"; then 8517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 8518else 8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8520for as_dir in $PATH 8521do 8522 IFS=$as_save_IFS 8523 case $as_dir in #((( 8524 '') as_dir=./ ;; 8525 */) ;; 8526 *) as_dir=$as_dir/ ;; 8527 esac 8528 for ac_exec_ext in '' $ac_executable_extensions; do 8529 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8530 ac_cv_prog_ac_ct_CC="$ac_prog" 8531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8532 break 2 8533 fi 8534done 8535 done 8536IFS=$as_save_IFS 8537 8538fi 8539fi 8540ac_ct_CC=$ac_cv_prog_ac_ct_CC 8541if test -n "$ac_ct_CC"; then 8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 8543printf "%s\n" "$ac_ct_CC" >&6; } 8544else 8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8546printf "%s\n" "no" >&6; } 8547fi 8548 8549 8550 test -n "$ac_ct_CC" && break 8551done 8552 8553 if test "x$ac_ct_CC" = x; then 8554 CC="" 8555 else 8556 case $cross_compiling:$ac_tool_warned in 8557yes:) 8558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8559printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8560ac_tool_warned=yes ;; 8561esac 8562 CC=$ac_ct_CC 8563 fi 8564fi 8565 8566fi 8567if test -z "$CC"; then 8568 if test -n "$ac_tool_prefix"; then 8569 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 8570set dummy ${ac_tool_prefix}clang; ac_word=$2 8571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8572printf %s "checking for $ac_word... " >&6; } 8573if test ${ac_cv_prog_CC+y} 8574then : 8575 printf %s "(cached) " >&6 8576else $as_nop 8577 if test -n "$CC"; then 8578 ac_cv_prog_CC="$CC" # Let the user override the test. 8579else 8580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8581for as_dir in $PATH 8582do 8583 IFS=$as_save_IFS 8584 case $as_dir in #((( 8585 '') as_dir=./ ;; 8586 */) ;; 8587 *) as_dir=$as_dir/ ;; 8588 esac 8589 for ac_exec_ext in '' $ac_executable_extensions; do 8590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8591 ac_cv_prog_CC="${ac_tool_prefix}clang" 8592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8593 break 2 8594 fi 8595done 8596 done 8597IFS=$as_save_IFS 8598 8599fi 8600fi 8601CC=$ac_cv_prog_CC 8602if test -n "$CC"; then 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8604printf "%s\n" "$CC" >&6; } 8605else 8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8607printf "%s\n" "no" >&6; } 8608fi 8609 8610 8611fi 8612if test -z "$ac_cv_prog_CC"; then 8613 ac_ct_CC=$CC 8614 # Extract the first word of "clang", so it can be a program name with args. 8615set dummy clang; ac_word=$2 8616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8617printf %s "checking for $ac_word... " >&6; } 8618if test ${ac_cv_prog_ac_ct_CC+y} 8619then : 8620 printf %s "(cached) " >&6 8621else $as_nop 8622 if test -n "$ac_ct_CC"; then 8623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 8624else 8625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8626for as_dir in $PATH 8627do 8628 IFS=$as_save_IFS 8629 case $as_dir in #((( 8630 '') as_dir=./ ;; 8631 */) ;; 8632 *) as_dir=$as_dir/ ;; 8633 esac 8634 for ac_exec_ext in '' $ac_executable_extensions; do 8635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8636 ac_cv_prog_ac_ct_CC="clang" 8637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8638 break 2 8639 fi 8640done 8641 done 8642IFS=$as_save_IFS 8643 8644fi 8645fi 8646ac_ct_CC=$ac_cv_prog_ac_ct_CC 8647if test -n "$ac_ct_CC"; then 8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 8649printf "%s\n" "$ac_ct_CC" >&6; } 8650else 8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8652printf "%s\n" "no" >&6; } 8653fi 8654 8655 if test "x$ac_ct_CC" = x; then 8656 CC="" 8657 else 8658 case $cross_compiling:$ac_tool_warned in 8659yes:) 8660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8661printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8662ac_tool_warned=yes ;; 8663esac 8664 CC=$ac_ct_CC 8665 fi 8666else 8667 CC="$ac_cv_prog_CC" 8668fi 8669 8670fi 8671 8672 8673test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8674printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 8675as_fn_error $? "no acceptable C compiler found in \$PATH 8676See \`config.log' for more details" "$LINENO" 5; } 8677 8678# Provide some information about the compiler. 8679printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 8680set X $ac_compile 8681ac_compiler=$2 8682for ac_option in --version -v -V -qversion -version; do 8683 { { ac_try="$ac_compiler $ac_option >&5" 8684case "(($ac_try" in 8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8686 *) ac_try_echo=$ac_try;; 8687esac 8688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8689printf "%s\n" "$ac_try_echo"; } >&5 8690 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 8691 ac_status=$? 8692 if test -s conftest.err; then 8693 sed '10a\ 8694... rest of stderr output deleted ... 8695 10q' conftest.err >conftest.er1 8696 cat conftest.er1 >&5 8697 fi 8698 rm -f conftest.er1 conftest.err 8699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8700 test $ac_status = 0; } 8701done 8702 8703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 8704printf %s "checking whether the compiler supports GNU C... " >&6; } 8705if test ${ac_cv_c_compiler_gnu+y} 8706then : 8707 printf %s "(cached) " >&6 8708else $as_nop 8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8710/* end confdefs.h. */ 8711 8712int 8713main (void) 8714{ 8715#ifndef __GNUC__ 8716 choke me 8717#endif 8718 8719 ; 8720 return 0; 8721} 8722_ACEOF 8723if ac_fn_c_try_compile "$LINENO" 8724then : 8725 ac_compiler_gnu=yes 8726else $as_nop 8727 ac_compiler_gnu=no 8728fi 8729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8730ac_cv_c_compiler_gnu=$ac_compiler_gnu 8731 8732fi 8733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 8734printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 8735ac_compiler_gnu=$ac_cv_c_compiler_gnu 8736 8737if test $ac_compiler_gnu = yes; then 8738 GCC=yes 8739else 8740 GCC= 8741fi 8742ac_test_CFLAGS=${CFLAGS+y} 8743ac_save_CFLAGS=$CFLAGS 8744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 8745printf %s "checking whether $CC accepts -g... " >&6; } 8746if test ${ac_cv_prog_cc_g+y} 8747then : 8748 printf %s "(cached) " >&6 8749else $as_nop 8750 ac_save_c_werror_flag=$ac_c_werror_flag 8751 ac_c_werror_flag=yes 8752 ac_cv_prog_cc_g=no 8753 CFLAGS="-g" 8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8755/* end confdefs.h. */ 8756 8757int 8758main (void) 8759{ 8760 8761 ; 8762 return 0; 8763} 8764_ACEOF 8765if ac_fn_c_try_compile "$LINENO" 8766then : 8767 ac_cv_prog_cc_g=yes 8768else $as_nop 8769 CFLAGS="" 8770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8771/* end confdefs.h. */ 8772 8773int 8774main (void) 8775{ 8776 8777 ; 8778 return 0; 8779} 8780_ACEOF 8781if ac_fn_c_try_compile "$LINENO" 8782then : 8783 8784else $as_nop 8785 ac_c_werror_flag=$ac_save_c_werror_flag 8786 CFLAGS="-g" 8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8788/* end confdefs.h. */ 8789 8790int 8791main (void) 8792{ 8793 8794 ; 8795 return 0; 8796} 8797_ACEOF 8798if ac_fn_c_try_compile "$LINENO" 8799then : 8800 ac_cv_prog_cc_g=yes 8801fi 8802rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8803fi 8804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8805fi 8806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8807 ac_c_werror_flag=$ac_save_c_werror_flag 8808fi 8809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 8810printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 8811if test $ac_test_CFLAGS; then 8812 CFLAGS=$ac_save_CFLAGS 8813elif test $ac_cv_prog_cc_g = yes; then 8814 if test "$GCC" = yes; then 8815 CFLAGS="-g -O2" 8816 else 8817 CFLAGS="-g" 8818 fi 8819else 8820 if test "$GCC" = yes; then 8821 CFLAGS="-O2" 8822 else 8823 CFLAGS= 8824 fi 8825fi 8826ac_prog_cc_stdc=no 8827if test x$ac_prog_cc_stdc = xno 8828then : 8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 8830printf %s "checking for $CC option to enable C11 features... " >&6; } 8831if test ${ac_cv_prog_cc_c11+y} 8832then : 8833 printf %s "(cached) " >&6 8834else $as_nop 8835 ac_cv_prog_cc_c11=no 8836ac_save_CC=$CC 8837cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8838/* end confdefs.h. */ 8839$ac_c_conftest_c11_program 8840_ACEOF 8841for ac_arg in '' -std=gnu11 8842do 8843 CC="$ac_save_CC $ac_arg" 8844 if ac_fn_c_try_compile "$LINENO" 8845then : 8846 ac_cv_prog_cc_c11=$ac_arg 8847fi 8848rm -f core conftest.err conftest.$ac_objext conftest.beam 8849 test "x$ac_cv_prog_cc_c11" != "xno" && break 8850done 8851rm -f conftest.$ac_ext 8852CC=$ac_save_CC 8853fi 8854 8855if test "x$ac_cv_prog_cc_c11" = xno 8856then : 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 8858printf "%s\n" "unsupported" >&6; } 8859else $as_nop 8860 if test "x$ac_cv_prog_cc_c11" = x 8861then : 8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 8863printf "%s\n" "none needed" >&6; } 8864else $as_nop 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 8866printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 8867 CC="$CC $ac_cv_prog_cc_c11" 8868fi 8869 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 8870 ac_prog_cc_stdc=c11 8871fi 8872fi 8873if test x$ac_prog_cc_stdc = xno 8874then : 8875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 8876printf %s "checking for $CC option to enable C99 features... " >&6; } 8877if test ${ac_cv_prog_cc_c99+y} 8878then : 8879 printf %s "(cached) " >&6 8880else $as_nop 8881 ac_cv_prog_cc_c99=no 8882ac_save_CC=$CC 8883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8884/* end confdefs.h. */ 8885$ac_c_conftest_c99_program 8886_ACEOF 8887for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 8888do 8889 CC="$ac_save_CC $ac_arg" 8890 if ac_fn_c_try_compile "$LINENO" 8891then : 8892 ac_cv_prog_cc_c99=$ac_arg 8893fi 8894rm -f core conftest.err conftest.$ac_objext conftest.beam 8895 test "x$ac_cv_prog_cc_c99" != "xno" && break 8896done 8897rm -f conftest.$ac_ext 8898CC=$ac_save_CC 8899fi 8900 8901if test "x$ac_cv_prog_cc_c99" = xno 8902then : 8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 8904printf "%s\n" "unsupported" >&6; } 8905else $as_nop 8906 if test "x$ac_cv_prog_cc_c99" = x 8907then : 8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 8909printf "%s\n" "none needed" >&6; } 8910else $as_nop 8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 8912printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 8913 CC="$CC $ac_cv_prog_cc_c99" 8914fi 8915 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 8916 ac_prog_cc_stdc=c99 8917fi 8918fi 8919if test x$ac_prog_cc_stdc = xno 8920then : 8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 8922printf %s "checking for $CC option to enable C89 features... " >&6; } 8923if test ${ac_cv_prog_cc_c89+y} 8924then : 8925 printf %s "(cached) " >&6 8926else $as_nop 8927 ac_cv_prog_cc_c89=no 8928ac_save_CC=$CC 8929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8930/* end confdefs.h. */ 8931$ac_c_conftest_c89_program 8932_ACEOF 8933for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 8934do 8935 CC="$ac_save_CC $ac_arg" 8936 if ac_fn_c_try_compile "$LINENO" 8937then : 8938 ac_cv_prog_cc_c89=$ac_arg 8939fi 8940rm -f core conftest.err conftest.$ac_objext conftest.beam 8941 test "x$ac_cv_prog_cc_c89" != "xno" && break 8942done 8943rm -f conftest.$ac_ext 8944CC=$ac_save_CC 8945fi 8946 8947if test "x$ac_cv_prog_cc_c89" = xno 8948then : 8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 8950printf "%s\n" "unsupported" >&6; } 8951else $as_nop 8952 if test "x$ac_cv_prog_cc_c89" = x 8953then : 8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 8955printf "%s\n" "none needed" >&6; } 8956else $as_nop 8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 8958printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 8959 CC="$CC $ac_cv_prog_cc_c89" 8960fi 8961 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 8962 ac_prog_cc_stdc=c89 8963fi 8964fi 8965 8966ac_ext=c 8967ac_cpp='$CPP $CPPFLAGS' 8968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8970ac_compiler_gnu=$ac_cv_c_compiler_gnu 8971 8972 8973 ac_ext=c 8974ac_cpp='$CPP $CPPFLAGS' 8975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8977ac_compiler_gnu=$ac_cv_c_compiler_gnu 8978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 8979printf %s "checking whether $CC understands -c and -o together... " >&6; } 8980if test ${am_cv_prog_cc_c_o+y} 8981then : 8982 printf %s "(cached) " >&6 8983else $as_nop 8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8985/* end confdefs.h. */ 8986 8987int 8988main (void) 8989{ 8990 8991 ; 8992 return 0; 8993} 8994_ACEOF 8995 # Make sure it works both with $CC and with simple cc. 8996 # Following AC_PROG_CC_C_O, we do the test twice because some 8997 # compilers refuse to overwrite an existing .o file with -o, 8998 # though they will create one. 8999 am_cv_prog_cc_c_o=yes 9000 for am_i in 1 2; do 9001 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 9002 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 9003 ac_status=$? 9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9005 (exit $ac_status); } \ 9006 && test -f conftest2.$ac_objext; then 9007 : OK 9008 else 9009 am_cv_prog_cc_c_o=no 9010 break 9011 fi 9012 done 9013 rm -f core conftest* 9014 unset am_i 9015fi 9016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 9017printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 9018if test "$am_cv_prog_cc_c_o" != yes; then 9019 # Losing compiler, so override with the script. 9020 # FIXME: It is wrong to rewrite CC. 9021 # But if we don't then we get into trouble of one sort or another. 9022 # A longer-term fix would be to have automake use am__CC in this case, 9023 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 9024 CC="$am_aux_dir/compile $CC" 9025fi 9026ac_ext=c 9027ac_cpp='$CPP $CPPFLAGS' 9028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9030ac_compiler_gnu=$ac_cv_c_compiler_gnu 9031 9032 9033ac_ext=c 9034ac_cpp='$CPP $CPPFLAGS' 9035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9037ac_compiler_gnu=$ac_cv_c_compiler_gnu 9038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 9039printf %s "checking how to run the C preprocessor... " >&6; } 9040# On Suns, sometimes $CPP names a directory. 9041if test -n "$CPP" && test -d "$CPP"; then 9042 CPP= 9043fi 9044if test -z "$CPP"; then 9045 if test ${ac_cv_prog_CPP+y} 9046then : 9047 printf %s "(cached) " >&6 9048else $as_nop 9049 # Double quotes because $CC needs to be expanded 9050 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 9051 do 9052 ac_preproc_ok=false 9053for ac_c_preproc_warn_flag in '' yes 9054do 9055 # Use a header file that comes with gcc, so configuring glibc 9056 # with a fresh cross-compiler works. 9057 # On the NeXT, cc -E runs the code through the compiler's parser, 9058 # not just through cpp. "Syntax error" is here to catch this case. 9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9060/* end confdefs.h. */ 9061#include <limits.h> 9062 Syntax error 9063_ACEOF 9064if ac_fn_c_try_cpp "$LINENO" 9065then : 9066 9067else $as_nop 9068 # Broken: fails on valid input. 9069continue 9070fi 9071rm -f conftest.err conftest.i conftest.$ac_ext 9072 9073 # OK, works on sane cases. Now check whether nonexistent headers 9074 # can be detected and how. 9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9076/* end confdefs.h. */ 9077#include <ac_nonexistent.h> 9078_ACEOF 9079if ac_fn_c_try_cpp "$LINENO" 9080then : 9081 # Broken: success on invalid input. 9082continue 9083else $as_nop 9084 # Passes both tests. 9085ac_preproc_ok=: 9086break 9087fi 9088rm -f conftest.err conftest.i conftest.$ac_ext 9089 9090done 9091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9092rm -f conftest.i conftest.err conftest.$ac_ext 9093if $ac_preproc_ok 9094then : 9095 break 9096fi 9097 9098 done 9099 ac_cv_prog_CPP=$CPP 9100 9101fi 9102 CPP=$ac_cv_prog_CPP 9103else 9104 ac_cv_prog_CPP=$CPP 9105fi 9106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 9107printf "%s\n" "$CPP" >&6; } 9108ac_preproc_ok=false 9109for ac_c_preproc_warn_flag in '' yes 9110do 9111 # Use a header file that comes with gcc, so configuring glibc 9112 # with a fresh cross-compiler works. 9113 # On the NeXT, cc -E runs the code through the compiler's parser, 9114 # not just through cpp. "Syntax error" is here to catch this case. 9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9116/* end confdefs.h. */ 9117#include <limits.h> 9118 Syntax error 9119_ACEOF 9120if ac_fn_c_try_cpp "$LINENO" 9121then : 9122 9123else $as_nop 9124 # Broken: fails on valid input. 9125continue 9126fi 9127rm -f conftest.err conftest.i conftest.$ac_ext 9128 9129 # OK, works on sane cases. Now check whether nonexistent headers 9130 # can be detected and how. 9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9132/* end confdefs.h. */ 9133#include <ac_nonexistent.h> 9134_ACEOF 9135if ac_fn_c_try_cpp "$LINENO" 9136then : 9137 # Broken: success on invalid input. 9138continue 9139else $as_nop 9140 # Passes both tests. 9141ac_preproc_ok=: 9142break 9143fi 9144rm -f conftest.err conftest.i conftest.$ac_ext 9145 9146done 9147# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9148rm -f conftest.i conftest.err conftest.$ac_ext 9149if $ac_preproc_ok 9150then : 9151 9152else $as_nop 9153 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9154printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 9155as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 9156See \`config.log' for more details" "$LINENO" 5; } 9157fi 9158 9159ac_ext=c 9160ac_cpp='$CPP $CPPFLAGS' 9161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9163ac_compiler_gnu=$ac_cv_c_compiler_gnu 9164 9165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9166printf %s "checking whether ln -s works... " >&6; } 9167LN_S=$as_ln_s 9168if test "$LN_S" = "ln -s"; then 9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9170printf "%s\n" "yes" >&6; } 9171else 9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9173printf "%s\n" "no, using $LN_S" >&6; } 9174fi 9175 9176# Check whether --enable-shared was given. 9177if test ${enable_shared+y} 9178then : 9179 enableval=$enable_shared; p=${PACKAGE-default} 9180 case $enableval in 9181 yes) enable_shared=yes ;; 9182 no) enable_shared=no ;; 9183 *) 9184 enable_shared=no 9185 # Look at the argument we got. We use all the common list separators. 9186 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9187 for pkg in $enableval; do 9188 IFS=$lt_save_ifs 9189 if test "X$pkg" = "X$p"; then 9190 enable_shared=yes 9191 fi 9192 done 9193 IFS=$lt_save_ifs 9194 ;; 9195 esac 9196else $as_nop 9197 enable_shared=no 9198fi 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 if test -n "$ac_tool_prefix"; then 9210 for ac_prog in ar lib "link -lib" 9211 do 9212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9213set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9215printf %s "checking for $ac_word... " >&6; } 9216if test ${ac_cv_prog_AR+y} 9217then : 9218 printf %s "(cached) " >&6 9219else $as_nop 9220 if test -n "$AR"; then 9221 ac_cv_prog_AR="$AR" # Let the user override the test. 9222else 9223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9224for as_dir in $PATH 9225do 9226 IFS=$as_save_IFS 9227 case $as_dir in #((( 9228 '') as_dir=./ ;; 9229 */) ;; 9230 *) as_dir=$as_dir/ ;; 9231 esac 9232 for ac_exec_ext in '' $ac_executable_extensions; do 9233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9234 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9236 break 2 9237 fi 9238done 9239 done 9240IFS=$as_save_IFS 9241 9242fi 9243fi 9244AR=$ac_cv_prog_AR 9245if test -n "$AR"; then 9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9247printf "%s\n" "$AR" >&6; } 9248else 9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9250printf "%s\n" "no" >&6; } 9251fi 9252 9253 9254 test -n "$AR" && break 9255 done 9256fi 9257if test -z "$AR"; then 9258 ac_ct_AR=$AR 9259 for ac_prog in ar lib "link -lib" 9260do 9261 # Extract the first word of "$ac_prog", so it can be a program name with args. 9262set dummy $ac_prog; ac_word=$2 9263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9264printf %s "checking for $ac_word... " >&6; } 9265if test ${ac_cv_prog_ac_ct_AR+y} 9266then : 9267 printf %s "(cached) " >&6 9268else $as_nop 9269 if test -n "$ac_ct_AR"; then 9270 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9271else 9272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9273for as_dir in $PATH 9274do 9275 IFS=$as_save_IFS 9276 case $as_dir in #((( 9277 '') as_dir=./ ;; 9278 */) ;; 9279 *) as_dir=$as_dir/ ;; 9280 esac 9281 for ac_exec_ext in '' $ac_executable_extensions; do 9282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9283 ac_cv_prog_ac_ct_AR="$ac_prog" 9284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9285 break 2 9286 fi 9287done 9288 done 9289IFS=$as_save_IFS 9290 9291fi 9292fi 9293ac_ct_AR=$ac_cv_prog_ac_ct_AR 9294if test -n "$ac_ct_AR"; then 9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9296printf "%s\n" "$ac_ct_AR" >&6; } 9297else 9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9299printf "%s\n" "no" >&6; } 9300fi 9301 9302 9303 test -n "$ac_ct_AR" && break 9304done 9305 9306 if test "x$ac_ct_AR" = x; then 9307 AR="false" 9308 else 9309 case $cross_compiling:$ac_tool_warned in 9310yes:) 9311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9312printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9313ac_tool_warned=yes ;; 9314esac 9315 AR=$ac_ct_AR 9316 fi 9317fi 9318 9319: ${AR=ar} 9320 9321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 9322printf %s "checking the archiver ($AR) interface... " >&6; } 9323if test ${am_cv_ar_interface+y} 9324then : 9325 printf %s "(cached) " >&6 9326else $as_nop 9327 ac_ext=c 9328ac_cpp='$CPP $CPPFLAGS' 9329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9331ac_compiler_gnu=$ac_cv_c_compiler_gnu 9332 9333 am_cv_ar_interface=ar 9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9335/* end confdefs.h. */ 9336int some_variable = 0; 9337_ACEOF 9338if ac_fn_c_try_compile "$LINENO" 9339then : 9340 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 9341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 9342 (eval $am_ar_try) 2>&5 9343 ac_status=$? 9344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9345 test $ac_status = 0; } 9346 if test "$ac_status" -eq 0; then 9347 am_cv_ar_interface=ar 9348 else 9349 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 9350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 9351 (eval $am_ar_try) 2>&5 9352 ac_status=$? 9353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9354 test $ac_status = 0; } 9355 if test "$ac_status" -eq 0; then 9356 am_cv_ar_interface=lib 9357 else 9358 am_cv_ar_interface=unknown 9359 fi 9360 fi 9361 rm -f conftest.lib libconftest.a 9362 9363fi 9364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9365 ac_ext=c 9366ac_cpp='$CPP $CPPFLAGS' 9367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9369ac_compiler_gnu=$ac_cv_c_compiler_gnu 9370 9371fi 9372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 9373printf "%s\n" "$am_cv_ar_interface" >&6; } 9374 9375case $am_cv_ar_interface in 9376ar) 9377 ;; 9378lib) 9379 # Microsoft lib, so override with the ar-lib wrapper script. 9380 # FIXME: It is wrong to rewrite AR. 9381 # But if we don't then we get into trouble of one sort or another. 9382 # A longer-term fix would be to have automake use am__AR in this case, 9383 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 9384 # similar. 9385 AR="$am_aux_dir/ar-lib $AR" 9386 ;; 9387unknown) 9388 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 9389 ;; 9390esac 9391 9392case `pwd` in 9393 *\ * | *\ *) 9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 9395printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 9396esac 9397 9398 9399 9400macro_version='2.4.6' 9401macro_revision='2.4.6' 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416ltmain=$ac_aux_dir/ltmain.sh 9417 9418# Backslashify metacharacters that are still active within 9419# double-quoted strings. 9420sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 9421 9422# Same as above, but do not quote variable references. 9423double_quote_subst='s/\(["`\\]\)/\\\1/g' 9424 9425# Sed substitution to delay expansion of an escaped shell variable in a 9426# double_quote_subst'ed string. 9427delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 9428 9429# Sed substitution to delay expansion of an escaped single quote. 9430delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 9431 9432# Sed substitution to avoid accidental globbing in evaled expressions 9433no_glob_subst='s/\*/\\\*/g' 9434 9435ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9436ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 9437ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 9438 9439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 9440printf %s "checking how to print strings... " >&6; } 9441# Test print first, because it will be a builtin if present. 9442if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 9443 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 9444 ECHO='print -r --' 9445elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 9446 ECHO='printf %s\n' 9447else 9448 # Use this function as a fallback that always works. 9449 func_fallback_echo () 9450 { 9451 eval 'cat <<_LTECHO_EOF 9452$1 9453_LTECHO_EOF' 9454 } 9455 ECHO='func_fallback_echo' 9456fi 9457 9458# func_echo_all arg... 9459# Invoke $ECHO with all args, space-separated. 9460func_echo_all () 9461{ 9462 $ECHO "" 9463} 9464 9465case $ECHO in 9466 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 9467printf "%s\n" "printf" >&6; } ;; 9468 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 9469printf "%s\n" "print -r" >&6; } ;; 9470 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 9471printf "%s\n" "cat" >&6; } ;; 9472esac 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 9488printf %s "checking for a sed that does not truncate output... " >&6; } 9489if test ${ac_cv_path_SED+y} 9490then : 9491 printf %s "(cached) " >&6 9492else $as_nop 9493 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 9494 for ac_i in 1 2 3 4 5 6 7; do 9495 ac_script="$ac_script$as_nl$ac_script" 9496 done 9497 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 9498 { ac_script=; unset ac_script;} 9499 if test -z "$SED"; then 9500 ac_path_SED_found=false 9501 # Loop through the user's path and test for each of PROGNAME-LIST 9502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9503for as_dir in $PATH 9504do 9505 IFS=$as_save_IFS 9506 case $as_dir in #((( 9507 '') as_dir=./ ;; 9508 */) ;; 9509 *) as_dir=$as_dir/ ;; 9510 esac 9511 for ac_prog in sed gsed 9512 do 9513 for ac_exec_ext in '' $ac_executable_extensions; do 9514 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 9515 as_fn_executable_p "$ac_path_SED" || continue 9516# Check for GNU ac_path_SED and select it if it is found. 9517 # Check for GNU $ac_path_SED 9518case `"$ac_path_SED" --version 2>&1` in 9519*GNU*) 9520 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 9521*) 9522 ac_count=0 9523 printf %s 0123456789 >"conftest.in" 9524 while : 9525 do 9526 cat "conftest.in" "conftest.in" >"conftest.tmp" 9527 mv "conftest.tmp" "conftest.in" 9528 cp "conftest.in" "conftest.nl" 9529 printf "%s\n" '' >> "conftest.nl" 9530 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 9531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9532 as_fn_arith $ac_count + 1 && ac_count=$as_val 9533 if test $ac_count -gt ${ac_path_SED_max-0}; then 9534 # Best one so far, save it but keep looking for a better one 9535 ac_cv_path_SED="$ac_path_SED" 9536 ac_path_SED_max=$ac_count 9537 fi 9538 # 10*(2^10) chars as input seems more than enough 9539 test $ac_count -gt 10 && break 9540 done 9541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9542esac 9543 9544 $ac_path_SED_found && break 3 9545 done 9546 done 9547 done 9548IFS=$as_save_IFS 9549 if test -z "$ac_cv_path_SED"; then 9550 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 9551 fi 9552else 9553 ac_cv_path_SED=$SED 9554fi 9555 9556fi 9557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 9558printf "%s\n" "$ac_cv_path_SED" >&6; } 9559 SED="$ac_cv_path_SED" 9560 rm -f conftest.sed 9561 9562test -z "$SED" && SED=sed 9563Xsed="$SED -e 1s/^X//" 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 9576printf %s "checking for grep that handles long lines and -e... " >&6; } 9577if test ${ac_cv_path_GREP+y} 9578then : 9579 printf %s "(cached) " >&6 9580else $as_nop 9581 if test -z "$GREP"; then 9582 ac_path_GREP_found=false 9583 # Loop through the user's path and test for each of PROGNAME-LIST 9584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9585for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9586do 9587 IFS=$as_save_IFS 9588 case $as_dir in #((( 9589 '') as_dir=./ ;; 9590 */) ;; 9591 *) as_dir=$as_dir/ ;; 9592 esac 9593 for ac_prog in grep ggrep 9594 do 9595 for ac_exec_ext in '' $ac_executable_extensions; do 9596 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 9597 as_fn_executable_p "$ac_path_GREP" || continue 9598# Check for GNU ac_path_GREP and select it if it is found. 9599 # Check for GNU $ac_path_GREP 9600case `"$ac_path_GREP" --version 2>&1` in 9601*GNU*) 9602 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 9603*) 9604 ac_count=0 9605 printf %s 0123456789 >"conftest.in" 9606 while : 9607 do 9608 cat "conftest.in" "conftest.in" >"conftest.tmp" 9609 mv "conftest.tmp" "conftest.in" 9610 cp "conftest.in" "conftest.nl" 9611 printf "%s\n" 'GREP' >> "conftest.nl" 9612 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 9613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9614 as_fn_arith $ac_count + 1 && ac_count=$as_val 9615 if test $ac_count -gt ${ac_path_GREP_max-0}; then 9616 # Best one so far, save it but keep looking for a better one 9617 ac_cv_path_GREP="$ac_path_GREP" 9618 ac_path_GREP_max=$ac_count 9619 fi 9620 # 10*(2^10) chars as input seems more than enough 9621 test $ac_count -gt 10 && break 9622 done 9623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9624esac 9625 9626 $ac_path_GREP_found && break 3 9627 done 9628 done 9629 done 9630IFS=$as_save_IFS 9631 if test -z "$ac_cv_path_GREP"; then 9632 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9633 fi 9634else 9635 ac_cv_path_GREP=$GREP 9636fi 9637 9638fi 9639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 9640printf "%s\n" "$ac_cv_path_GREP" >&6; } 9641 GREP="$ac_cv_path_GREP" 9642 9643 9644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 9645printf %s "checking for egrep... " >&6; } 9646if test ${ac_cv_path_EGREP+y} 9647then : 9648 printf %s "(cached) " >&6 9649else $as_nop 9650 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 9651 then ac_cv_path_EGREP="$GREP -E" 9652 else 9653 if test -z "$EGREP"; then 9654 ac_path_EGREP_found=false 9655 # Loop through the user's path and test for each of PROGNAME-LIST 9656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9657for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9658do 9659 IFS=$as_save_IFS 9660 case $as_dir in #((( 9661 '') as_dir=./ ;; 9662 */) ;; 9663 *) as_dir=$as_dir/ ;; 9664 esac 9665 for ac_prog in egrep 9666 do 9667 for ac_exec_ext in '' $ac_executable_extensions; do 9668 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 9669 as_fn_executable_p "$ac_path_EGREP" || continue 9670# Check for GNU ac_path_EGREP and select it if it is found. 9671 # Check for GNU $ac_path_EGREP 9672case `"$ac_path_EGREP" --version 2>&1` in 9673*GNU*) 9674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 9675*) 9676 ac_count=0 9677 printf %s 0123456789 >"conftest.in" 9678 while : 9679 do 9680 cat "conftest.in" "conftest.in" >"conftest.tmp" 9681 mv "conftest.tmp" "conftest.in" 9682 cp "conftest.in" "conftest.nl" 9683 printf "%s\n" 'EGREP' >> "conftest.nl" 9684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 9685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9686 as_fn_arith $ac_count + 1 && ac_count=$as_val 9687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 9688 # Best one so far, save it but keep looking for a better one 9689 ac_cv_path_EGREP="$ac_path_EGREP" 9690 ac_path_EGREP_max=$ac_count 9691 fi 9692 # 10*(2^10) chars as input seems more than enough 9693 test $ac_count -gt 10 && break 9694 done 9695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9696esac 9697 9698 $ac_path_EGREP_found && break 3 9699 done 9700 done 9701 done 9702IFS=$as_save_IFS 9703 if test -z "$ac_cv_path_EGREP"; then 9704 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9705 fi 9706else 9707 ac_cv_path_EGREP=$EGREP 9708fi 9709 9710 fi 9711fi 9712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 9713printf "%s\n" "$ac_cv_path_EGREP" >&6; } 9714 EGREP="$ac_cv_path_EGREP" 9715 9716 9717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 9718printf %s "checking for fgrep... " >&6; } 9719if test ${ac_cv_path_FGREP+y} 9720then : 9721 printf %s "(cached) " >&6 9722else $as_nop 9723 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 9724 then ac_cv_path_FGREP="$GREP -F" 9725 else 9726 if test -z "$FGREP"; then 9727 ac_path_FGREP_found=false 9728 # Loop through the user's path and test for each of PROGNAME-LIST 9729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9730for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9731do 9732 IFS=$as_save_IFS 9733 case $as_dir in #((( 9734 '') as_dir=./ ;; 9735 */) ;; 9736 *) as_dir=$as_dir/ ;; 9737 esac 9738 for ac_prog in fgrep 9739 do 9740 for ac_exec_ext in '' $ac_executable_extensions; do 9741 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 9742 as_fn_executable_p "$ac_path_FGREP" || continue 9743# Check for GNU ac_path_FGREP and select it if it is found. 9744 # Check for GNU $ac_path_FGREP 9745case `"$ac_path_FGREP" --version 2>&1` in 9746*GNU*) 9747 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 9748*) 9749 ac_count=0 9750 printf %s 0123456789 >"conftest.in" 9751 while : 9752 do 9753 cat "conftest.in" "conftest.in" >"conftest.tmp" 9754 mv "conftest.tmp" "conftest.in" 9755 cp "conftest.in" "conftest.nl" 9756 printf "%s\n" 'FGREP' >> "conftest.nl" 9757 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 9758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9759 as_fn_arith $ac_count + 1 && ac_count=$as_val 9760 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 9761 # Best one so far, save it but keep looking for a better one 9762 ac_cv_path_FGREP="$ac_path_FGREP" 9763 ac_path_FGREP_max=$ac_count 9764 fi 9765 # 10*(2^10) chars as input seems more than enough 9766 test $ac_count -gt 10 && break 9767 done 9768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9769esac 9770 9771 $ac_path_FGREP_found && break 3 9772 done 9773 done 9774 done 9775IFS=$as_save_IFS 9776 if test -z "$ac_cv_path_FGREP"; then 9777 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9778 fi 9779else 9780 ac_cv_path_FGREP=$FGREP 9781fi 9782 9783 fi 9784fi 9785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 9786printf "%s\n" "$ac_cv_path_FGREP" >&6; } 9787 FGREP="$ac_cv_path_FGREP" 9788 9789 9790test -z "$GREP" && GREP=grep 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810# Check whether --with-gnu-ld was given. 9811if test ${with_gnu_ld+y} 9812then : 9813 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 9814else $as_nop 9815 with_gnu_ld=no 9816fi 9817 9818ac_prog=ld 9819if test yes = "$GCC"; then 9820 # Check if gcc -print-prog-name=ld gives a path. 9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 9822printf %s "checking for ld used by $CC... " >&6; } 9823 case $host in 9824 *-*-mingw*) 9825 # gcc leaves a trailing carriage return, which upsets mingw 9826 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9827 *) 9828 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9829 esac 9830 case $ac_prog in 9831 # Accept absolute paths. 9832 [\\/]* | ?:[\\/]*) 9833 re_direlt='/[^/][^/]*/\.\./' 9834 # Canonicalize the pathname of ld 9835 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 9836 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 9837 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 9838 done 9839 test -z "$LD" && LD=$ac_prog 9840 ;; 9841 "") 9842 # If it fails, then pretend we aren't using GCC. 9843 ac_prog=ld 9844 ;; 9845 *) 9846 # If it is relative, then search for the first ld in PATH. 9847 with_gnu_ld=unknown 9848 ;; 9849 esac 9850elif test yes = "$with_gnu_ld"; then 9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 9852printf %s "checking for GNU ld... " >&6; } 9853else 9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 9855printf %s "checking for non-GNU ld... " >&6; } 9856fi 9857if test ${lt_cv_path_LD+y} 9858then : 9859 printf %s "(cached) " >&6 9860else $as_nop 9861 if test -z "$LD"; then 9862 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9863 for ac_dir in $PATH; do 9864 IFS=$lt_save_ifs 9865 test -z "$ac_dir" && ac_dir=. 9866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9867 lt_cv_path_LD=$ac_dir/$ac_prog 9868 # Check to see if the program is GNU ld. I'd rather use --version, 9869 # but apparently some variants of GNU ld only accept -v. 9870 # Break only if it was the GNU/non-GNU ld that we prefer. 9871 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9872 *GNU* | *'with BFD'*) 9873 test no != "$with_gnu_ld" && break 9874 ;; 9875 *) 9876 test yes != "$with_gnu_ld" && break 9877 ;; 9878 esac 9879 fi 9880 done 9881 IFS=$lt_save_ifs 9882else 9883 lt_cv_path_LD=$LD # Let the user override the test with a path. 9884fi 9885fi 9886 9887LD=$lt_cv_path_LD 9888if test -n "$LD"; then 9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9890printf "%s\n" "$LD" >&6; } 9891else 9892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9893printf "%s\n" "no" >&6; } 9894fi 9895test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 9896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9897printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 9898if test ${lt_cv_prog_gnu_ld+y} 9899then : 9900 printf %s "(cached) " >&6 9901else $as_nop 9902 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9903case `$LD -v 2>&1 </dev/null` in 9904*GNU* | *'with BFD'*) 9905 lt_cv_prog_gnu_ld=yes 9906 ;; 9907*) 9908 lt_cv_prog_gnu_ld=no 9909 ;; 9910esac 9911fi 9912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 9913printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 9914with_gnu_ld=$lt_cv_prog_gnu_ld 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 9925printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 9926if test ${lt_cv_path_NM+y} 9927then : 9928 printf %s "(cached) " >&6 9929else $as_nop 9930 if test -n "$NM"; then 9931 # Let the user override the test. 9932 lt_cv_path_NM=$NM 9933else 9934 lt_nm_to_check=${ac_tool_prefix}nm 9935 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 9936 lt_nm_to_check="$lt_nm_to_check nm" 9937 fi 9938 for lt_tmp_nm in $lt_nm_to_check; do 9939 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9940 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 9941 IFS=$lt_save_ifs 9942 test -z "$ac_dir" && ac_dir=. 9943 tmp_nm=$ac_dir/$lt_tmp_nm 9944 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 9945 # Check to see if the nm accepts a BSD-compat flag. 9946 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 9947 # nm: unknown option "B" ignored 9948 # Tru64's nm complains that /dev/null is an invalid object file 9949 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 9950 case $build_os in 9951 mingw*) lt_bad_file=conftest.nm/nofile ;; 9952 *) lt_bad_file=/dev/null ;; 9953 esac 9954 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 9955 *$lt_bad_file* | *'Invalid file or object type'*) 9956 lt_cv_path_NM="$tmp_nm -B" 9957 break 2 9958 ;; 9959 *) 9960 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 9961 */dev/null*) 9962 lt_cv_path_NM="$tmp_nm -p" 9963 break 2 9964 ;; 9965 *) 9966 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 9967 continue # so that we can try to find one that supports BSD flags 9968 ;; 9969 esac 9970 ;; 9971 esac 9972 fi 9973 done 9974 IFS=$lt_save_ifs 9975 done 9976 : ${lt_cv_path_NM=no} 9977fi 9978fi 9979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 9980printf "%s\n" "$lt_cv_path_NM" >&6; } 9981if test no != "$lt_cv_path_NM"; then 9982 NM=$lt_cv_path_NM 9983else 9984 # Didn't find any BSD compatible name lister, look for dumpbin. 9985 if test -n "$DUMPBIN"; then : 9986 # Let the user override the test. 9987 else 9988 if test -n "$ac_tool_prefix"; then 9989 for ac_prog in dumpbin "link -dump" 9990 do 9991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9992set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9994printf %s "checking for $ac_word... " >&6; } 9995if test ${ac_cv_prog_DUMPBIN+y} 9996then : 9997 printf %s "(cached) " >&6 9998else $as_nop 9999 if test -n "$DUMPBIN"; then 10000 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 10001else 10002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10003for as_dir in $PATH 10004do 10005 IFS=$as_save_IFS 10006 case $as_dir in #((( 10007 '') as_dir=./ ;; 10008 */) ;; 10009 *) as_dir=$as_dir/ ;; 10010 esac 10011 for ac_exec_ext in '' $ac_executable_extensions; do 10012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10013 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 10014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10015 break 2 10016 fi 10017done 10018 done 10019IFS=$as_save_IFS 10020 10021fi 10022fi 10023DUMPBIN=$ac_cv_prog_DUMPBIN 10024if test -n "$DUMPBIN"; then 10025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 10026printf "%s\n" "$DUMPBIN" >&6; } 10027else 10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10029printf "%s\n" "no" >&6; } 10030fi 10031 10032 10033 test -n "$DUMPBIN" && break 10034 done 10035fi 10036if test -z "$DUMPBIN"; then 10037 ac_ct_DUMPBIN=$DUMPBIN 10038 for ac_prog in dumpbin "link -dump" 10039do 10040 # Extract the first word of "$ac_prog", so it can be a program name with args. 10041set dummy $ac_prog; ac_word=$2 10042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10043printf %s "checking for $ac_word... " >&6; } 10044if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 10045then : 10046 printf %s "(cached) " >&6 10047else $as_nop 10048 if test -n "$ac_ct_DUMPBIN"; then 10049 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 10050else 10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10052for as_dir in $PATH 10053do 10054 IFS=$as_save_IFS 10055 case $as_dir in #((( 10056 '') as_dir=./ ;; 10057 */) ;; 10058 *) as_dir=$as_dir/ ;; 10059 esac 10060 for ac_exec_ext in '' $ac_executable_extensions; do 10061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10062 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 10063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10064 break 2 10065 fi 10066done 10067 done 10068IFS=$as_save_IFS 10069 10070fi 10071fi 10072ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 10073if test -n "$ac_ct_DUMPBIN"; then 10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 10075printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 10076else 10077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10078printf "%s\n" "no" >&6; } 10079fi 10080 10081 10082 test -n "$ac_ct_DUMPBIN" && break 10083done 10084 10085 if test "x$ac_ct_DUMPBIN" = x; then 10086 DUMPBIN=":" 10087 else 10088 case $cross_compiling:$ac_tool_warned in 10089yes:) 10090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10091printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10092ac_tool_warned=yes ;; 10093esac 10094 DUMPBIN=$ac_ct_DUMPBIN 10095 fi 10096fi 10097 10098 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 10099 *COFF*) 10100 DUMPBIN="$DUMPBIN -symbols -headers" 10101 ;; 10102 *) 10103 DUMPBIN=: 10104 ;; 10105 esac 10106 fi 10107 10108 if test : != "$DUMPBIN"; then 10109 NM=$DUMPBIN 10110 fi 10111fi 10112test -z "$NM" && NM=nm 10113 10114 10115 10116 10117 10118 10119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 10120printf %s "checking the name lister ($NM) interface... " >&6; } 10121if test ${lt_cv_nm_interface+y} 10122then : 10123 printf %s "(cached) " >&6 10124else $as_nop 10125 lt_cv_nm_interface="BSD nm" 10126 echo "int some_variable = 0;" > conftest.$ac_ext 10127 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 10128 (eval "$ac_compile" 2>conftest.err) 10129 cat conftest.err >&5 10130 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 10131 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 10132 cat conftest.err >&5 10133 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 10134 cat conftest.out >&5 10135 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 10136 lt_cv_nm_interface="MS dumpbin" 10137 fi 10138 rm -f conftest* 10139fi 10140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 10141printf "%s\n" "$lt_cv_nm_interface" >&6; } 10142 10143# find the maximum length of command line arguments 10144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 10145printf %s "checking the maximum length of command line arguments... " >&6; } 10146if test ${lt_cv_sys_max_cmd_len+y} 10147then : 10148 printf %s "(cached) " >&6 10149else $as_nop 10150 i=0 10151 teststring=ABCD 10152 10153 case $build_os in 10154 msdosdjgpp*) 10155 # On DJGPP, this test can blow up pretty badly due to problems in libc 10156 # (any single argument exceeding 2000 bytes causes a buffer overrun 10157 # during glob expansion). Even if it were fixed, the result of this 10158 # check would be larger than it should be. 10159 lt_cv_sys_max_cmd_len=12288; # 12K is about right 10160 ;; 10161 10162 gnu*) 10163 # Under GNU Hurd, this test is not required because there is 10164 # no limit to the length of command line arguments. 10165 # Libtool will interpret -1 as no limit whatsoever 10166 lt_cv_sys_max_cmd_len=-1; 10167 ;; 10168 10169 cygwin* | mingw* | cegcc*) 10170 # On Win9x/ME, this test blows up -- it succeeds, but takes 10171 # about 5 minutes as the teststring grows exponentially. 10172 # Worse, since 9x/ME are not pre-emptively multitasking, 10173 # you end up with a "frozen" computer, even though with patience 10174 # the test eventually succeeds (with a max line length of 256k). 10175 # Instead, let's just punt: use the minimum linelength reported by 10176 # all of the supported platforms: 8192 (on NT/2K/XP). 10177 lt_cv_sys_max_cmd_len=8192; 10178 ;; 10179 10180 mint*) 10181 # On MiNT this can take a long time and run out of memory. 10182 lt_cv_sys_max_cmd_len=8192; 10183 ;; 10184 10185 amigaos*) 10186 # On AmigaOS with pdksh, this test takes hours, literally. 10187 # So we just punt and use a minimum line length of 8192. 10188 lt_cv_sys_max_cmd_len=8192; 10189 ;; 10190 10191 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 10192 # This has been around since 386BSD, at least. Likely further. 10193 if test -x /sbin/sysctl; then 10194 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 10195 elif test -x /usr/sbin/sysctl; then 10196 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 10197 else 10198 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 10199 fi 10200 # And add a safety zone 10201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10203 ;; 10204 10205 interix*) 10206 # We know the value 262144 and hardcode it with a safety zone (like BSD) 10207 lt_cv_sys_max_cmd_len=196608 10208 ;; 10209 10210 os2*) 10211 # The test takes a long time on OS/2. 10212 lt_cv_sys_max_cmd_len=8192 10213 ;; 10214 10215 osf*) 10216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 10217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 10218 # nice to cause kernel panics so lets avoid the loop below. 10219 # First set a reasonable default. 10220 lt_cv_sys_max_cmd_len=16384 10221 # 10222 if test -x /sbin/sysconfig; then 10223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 10224 *1*) lt_cv_sys_max_cmd_len=-1 ;; 10225 esac 10226 fi 10227 ;; 10228 sco3.2v5*) 10229 lt_cv_sys_max_cmd_len=102400 10230 ;; 10231 sysv5* | sco5v6* | sysv4.2uw2*) 10232 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 10233 if test -n "$kargmax"; then 10234 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 10235 else 10236 lt_cv_sys_max_cmd_len=32768 10237 fi 10238 ;; 10239 *) 10240 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 10241 if test -n "$lt_cv_sys_max_cmd_len" && \ 10242 test undefined != "$lt_cv_sys_max_cmd_len"; then 10243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10245 else 10246 # Make teststring a little bigger before we do anything with it. 10247 # a 1K string should be a reasonable start. 10248 for i in 1 2 3 4 5 6 7 8; do 10249 teststring=$teststring$teststring 10250 done 10251 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 10252 # If test is not a shell built-in, we'll probably end up computing a 10253 # maximum length that is only half of the actual maximum length, but 10254 # we can't tell. 10255 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 10256 = "X$teststring$teststring"; } >/dev/null 2>&1 && 10257 test 17 != "$i" # 1/2 MB should be enough 10258 do 10259 i=`expr $i + 1` 10260 teststring=$teststring$teststring 10261 done 10262 # Only check the string length outside the loop. 10263 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 10264 teststring= 10265 # Add a significant safety factor because C++ compilers can tack on 10266 # massive amounts of additional arguments before passing them to the 10267 # linker. It appears as though 1/2 is a usable value. 10268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 10269 fi 10270 ;; 10271 esac 10272 10273fi 10274 10275if test -n "$lt_cv_sys_max_cmd_len"; then 10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 10277printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 10278else 10279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 10280printf "%s\n" "none" >&6; } 10281fi 10282max_cmd_len=$lt_cv_sys_max_cmd_len 10283 10284 10285 10286 10287 10288 10289: ${CP="cp -f"} 10290: ${MV="mv -f"} 10291: ${RM="rm -f"} 10292 10293if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 10294 lt_unset=unset 10295else 10296 lt_unset=false 10297fi 10298 10299 10300 10301 10302 10303# test EBCDIC or ASCII 10304case `echo X|tr X '\101'` in 10305 A) # ASCII based system 10306 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 10307 lt_SP2NL='tr \040 \012' 10308 lt_NL2SP='tr \015\012 \040\040' 10309 ;; 10310 *) # EBCDIC based system 10311 lt_SP2NL='tr \100 \n' 10312 lt_NL2SP='tr \r\n \100\100' 10313 ;; 10314esac 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 10325printf %s "checking how to convert $build file names to $host format... " >&6; } 10326if test ${lt_cv_to_host_file_cmd+y} 10327then : 10328 printf %s "(cached) " >&6 10329else $as_nop 10330 case $host in 10331 *-*-mingw* ) 10332 case $build in 10333 *-*-mingw* ) # actually msys 10334 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 10335 ;; 10336 *-*-cygwin* ) 10337 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 10338 ;; 10339 * ) # otherwise, assume *nix 10340 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 10341 ;; 10342 esac 10343 ;; 10344 *-*-cygwin* ) 10345 case $build in 10346 *-*-mingw* ) # actually msys 10347 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 10348 ;; 10349 *-*-cygwin* ) 10350 lt_cv_to_host_file_cmd=func_convert_file_noop 10351 ;; 10352 * ) # otherwise, assume *nix 10353 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 10354 ;; 10355 esac 10356 ;; 10357 * ) # unhandled hosts (and "normal" native builds) 10358 lt_cv_to_host_file_cmd=func_convert_file_noop 10359 ;; 10360esac 10361 10362fi 10363 10364to_host_file_cmd=$lt_cv_to_host_file_cmd 10365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 10366printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 10367 10368 10369 10370 10371 10372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 10373printf %s "checking how to convert $build file names to toolchain format... " >&6; } 10374if test ${lt_cv_to_tool_file_cmd+y} 10375then : 10376 printf %s "(cached) " >&6 10377else $as_nop 10378 #assume ordinary cross tools, or native build. 10379lt_cv_to_tool_file_cmd=func_convert_file_noop 10380case $host in 10381 *-*-mingw* ) 10382 case $build in 10383 *-*-mingw* ) # actually msys 10384 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 10385 ;; 10386 esac 10387 ;; 10388esac 10389 10390fi 10391 10392to_tool_file_cmd=$lt_cv_to_tool_file_cmd 10393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 10394printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 10395 10396 10397 10398 10399 10400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 10401printf %s "checking for $LD option to reload object files... " >&6; } 10402if test ${lt_cv_ld_reload_flag+y} 10403then : 10404 printf %s "(cached) " >&6 10405else $as_nop 10406 lt_cv_ld_reload_flag='-r' 10407fi 10408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 10409printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 10410reload_flag=$lt_cv_ld_reload_flag 10411case $reload_flag in 10412"" | " "*) ;; 10413*) reload_flag=" $reload_flag" ;; 10414esac 10415reload_cmds='$LD$reload_flag -o $output$reload_objs' 10416case $host_os in 10417 cygwin* | mingw* | pw32* | cegcc*) 10418 if test yes != "$GCC"; then 10419 reload_cmds=false 10420 fi 10421 ;; 10422 darwin*) 10423 if test yes = "$GCC"; then 10424 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 10425 else 10426 reload_cmds='$LD$reload_flag -o $output$reload_objs' 10427 fi 10428 ;; 10429esac 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439if test -n "$ac_tool_prefix"; then 10440 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 10441set dummy ${ac_tool_prefix}objdump; ac_word=$2 10442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10443printf %s "checking for $ac_word... " >&6; } 10444if test ${ac_cv_prog_OBJDUMP+y} 10445then : 10446 printf %s "(cached) " >&6 10447else $as_nop 10448 if test -n "$OBJDUMP"; then 10449 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10450else 10451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10452for as_dir in $PATH 10453do 10454 IFS=$as_save_IFS 10455 case $as_dir in #((( 10456 '') as_dir=./ ;; 10457 */) ;; 10458 *) as_dir=$as_dir/ ;; 10459 esac 10460 for ac_exec_ext in '' $ac_executable_extensions; do 10461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10462 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 10463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10464 break 2 10465 fi 10466done 10467 done 10468IFS=$as_save_IFS 10469 10470fi 10471fi 10472OBJDUMP=$ac_cv_prog_OBJDUMP 10473if test -n "$OBJDUMP"; then 10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10475printf "%s\n" "$OBJDUMP" >&6; } 10476else 10477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10478printf "%s\n" "no" >&6; } 10479fi 10480 10481 10482fi 10483if test -z "$ac_cv_prog_OBJDUMP"; then 10484 ac_ct_OBJDUMP=$OBJDUMP 10485 # Extract the first word of "objdump", so it can be a program name with args. 10486set dummy objdump; ac_word=$2 10487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10488printf %s "checking for $ac_word... " >&6; } 10489if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 10490then : 10491 printf %s "(cached) " >&6 10492else $as_nop 10493 if test -n "$ac_ct_OBJDUMP"; then 10494 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 10495else 10496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10497for as_dir in $PATH 10498do 10499 IFS=$as_save_IFS 10500 case $as_dir in #((( 10501 '') as_dir=./ ;; 10502 */) ;; 10503 *) as_dir=$as_dir/ ;; 10504 esac 10505 for ac_exec_ext in '' $ac_executable_extensions; do 10506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10507 ac_cv_prog_ac_ct_OBJDUMP="objdump" 10508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10509 break 2 10510 fi 10511done 10512 done 10513IFS=$as_save_IFS 10514 10515fi 10516fi 10517ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 10518if test -n "$ac_ct_OBJDUMP"; then 10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 10520printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 10521else 10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10523printf "%s\n" "no" >&6; } 10524fi 10525 10526 if test "x$ac_ct_OBJDUMP" = x; then 10527 OBJDUMP="false" 10528 else 10529 case $cross_compiling:$ac_tool_warned in 10530yes:) 10531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10532printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10533ac_tool_warned=yes ;; 10534esac 10535 OBJDUMP=$ac_ct_OBJDUMP 10536 fi 10537else 10538 OBJDUMP="$ac_cv_prog_OBJDUMP" 10539fi 10540 10541test -z "$OBJDUMP" && OBJDUMP=objdump 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 10552printf %s "checking how to recognize dependent libraries... " >&6; } 10553if test ${lt_cv_deplibs_check_method+y} 10554then : 10555 printf %s "(cached) " >&6 10556else $as_nop 10557 lt_cv_file_magic_cmd='$MAGIC_CMD' 10558lt_cv_file_magic_test_file= 10559lt_cv_deplibs_check_method='unknown' 10560# Need to set the preceding variable on all platforms that support 10561# interlibrary dependencies. 10562# 'none' -- dependencies not supported. 10563# 'unknown' -- same as none, but documents that we really don't know. 10564# 'pass_all' -- all dependencies passed with no checks. 10565# 'test_compile' -- check by making test program. 10566# 'file_magic [[regex]]' -- check by looking for files in library path 10567# that responds to the $file_magic_cmd with a given extended regex. 10568# If you have 'file' or equivalent on your system and you're not sure 10569# whether 'pass_all' will *always* work, you probably want this one. 10570 10571case $host_os in 10572aix[4-9]*) 10573 lt_cv_deplibs_check_method=pass_all 10574 ;; 10575 10576beos*) 10577 lt_cv_deplibs_check_method=pass_all 10578 ;; 10579 10580bsdi[45]*) 10581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 10582 lt_cv_file_magic_cmd='/usr/bin/file -L' 10583 lt_cv_file_magic_test_file=/shlib/libc.so 10584 ;; 10585 10586cygwin*) 10587 # func_win32_libid is a shell function defined in ltmain.sh 10588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10589 lt_cv_file_magic_cmd='func_win32_libid' 10590 ;; 10591 10592mingw* | pw32*) 10593 # Base MSYS/MinGW do not provide the 'file' command needed by 10594 # func_win32_libid shell function, so use a weaker test based on 'objdump', 10595 # unless we find 'file', for example because we are cross-compiling. 10596 if ( file / ) >/dev/null 2>&1; then 10597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10598 lt_cv_file_magic_cmd='func_win32_libid' 10599 else 10600 # Keep this pattern in sync with the one in func_win32_libid. 10601 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 10602 lt_cv_file_magic_cmd='$OBJDUMP -f' 10603 fi 10604 ;; 10605 10606cegcc*) 10607 # use the weaker test based on 'objdump'. See mingw*. 10608 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 10609 lt_cv_file_magic_cmd='$OBJDUMP -f' 10610 ;; 10611 10612darwin* | rhapsody*) 10613 lt_cv_deplibs_check_method=pass_all 10614 ;; 10615 10616freebsd* | dragonfly*) 10617 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10618 case $host_cpu in 10619 i*86 ) 10620 # Not sure whether the presence of OpenBSD here was a mistake. 10621 # Let's accept both of them until this is cleared up. 10622 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 10623 lt_cv_file_magic_cmd=/usr/bin/file 10624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 10625 ;; 10626 esac 10627 else 10628 lt_cv_deplibs_check_method=pass_all 10629 fi 10630 ;; 10631 10632haiku*) 10633 lt_cv_deplibs_check_method=pass_all 10634 ;; 10635 10636hpux10.20* | hpux11*) 10637 lt_cv_file_magic_cmd=/usr/bin/file 10638 case $host_cpu in 10639 ia64*) 10640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 10641 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 10642 ;; 10643 hppa*64*) 10644 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]' 10645 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 10646 ;; 10647 *) 10648 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 10649 lt_cv_file_magic_test_file=/usr/lib/libc.sl 10650 ;; 10651 esac 10652 ;; 10653 10654interix[3-9]*) 10655 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 10656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 10657 ;; 10658 10659irix5* | irix6* | nonstopux*) 10660 case $LD in 10661 *-32|*"-32 ") libmagic=32-bit;; 10662 *-n32|*"-n32 ") libmagic=N32;; 10663 *-64|*"-64 ") libmagic=64-bit;; 10664 *) libmagic=never-match;; 10665 esac 10666 lt_cv_deplibs_check_method=pass_all 10667 ;; 10668 10669# This must be glibc/ELF. 10670linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10671 lt_cv_deplibs_check_method=pass_all 10672 ;; 10673 10674netbsd* | netbsdelf*-gnu) 10675 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10677 else 10678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 10679 fi 10680 ;; 10681 10682newos6*) 10683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 10684 lt_cv_file_magic_cmd=/usr/bin/file 10685 lt_cv_file_magic_test_file=/usr/lib/libnls.so 10686 ;; 10687 10688*nto* | *qnx*) 10689 lt_cv_deplibs_check_method=pass_all 10690 ;; 10691 10692openbsd* | bitrig*) 10693 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 10695 else 10696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10697 fi 10698 ;; 10699 10700osf3* | osf4* | osf5*) 10701 lt_cv_deplibs_check_method=pass_all 10702 ;; 10703 10704rdos*) 10705 lt_cv_deplibs_check_method=pass_all 10706 ;; 10707 10708solaris*) 10709 lt_cv_deplibs_check_method=pass_all 10710 ;; 10711 10712sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10713 lt_cv_deplibs_check_method=pass_all 10714 ;; 10715 10716sysv4 | sysv4.3*) 10717 case $host_vendor in 10718 motorola) 10719 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]' 10720 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 10721 ;; 10722 ncr) 10723 lt_cv_deplibs_check_method=pass_all 10724 ;; 10725 sequent) 10726 lt_cv_file_magic_cmd='/bin/file' 10727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 10728 ;; 10729 sni) 10730 lt_cv_file_magic_cmd='/bin/file' 10731 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 10732 lt_cv_file_magic_test_file=/lib/libc.so 10733 ;; 10734 siemens) 10735 lt_cv_deplibs_check_method=pass_all 10736 ;; 10737 pc) 10738 lt_cv_deplibs_check_method=pass_all 10739 ;; 10740 esac 10741 ;; 10742 10743tpf*) 10744 lt_cv_deplibs_check_method=pass_all 10745 ;; 10746os2*) 10747 lt_cv_deplibs_check_method=pass_all 10748 ;; 10749esac 10750 10751fi 10752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 10753printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 10754 10755file_magic_glob= 10756want_nocaseglob=no 10757if test "$build" = "$host"; then 10758 case $host_os in 10759 mingw* | pw32*) 10760 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 10761 want_nocaseglob=yes 10762 else 10763 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 10764 fi 10765 ;; 10766 esac 10767fi 10768 10769file_magic_cmd=$lt_cv_file_magic_cmd 10770deplibs_check_method=$lt_cv_deplibs_check_method 10771test -z "$deplibs_check_method" && deplibs_check_method=unknown 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794if test -n "$ac_tool_prefix"; then 10795 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10796set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10798printf %s "checking for $ac_word... " >&6; } 10799if test ${ac_cv_prog_DLLTOOL+y} 10800then : 10801 printf %s "(cached) " >&6 10802else $as_nop 10803 if test -n "$DLLTOOL"; then 10804 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10805else 10806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10807for as_dir in $PATH 10808do 10809 IFS=$as_save_IFS 10810 case $as_dir in #((( 10811 '') as_dir=./ ;; 10812 */) ;; 10813 *) as_dir=$as_dir/ ;; 10814 esac 10815 for ac_exec_ext in '' $ac_executable_extensions; do 10816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10817 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10819 break 2 10820 fi 10821done 10822 done 10823IFS=$as_save_IFS 10824 10825fi 10826fi 10827DLLTOOL=$ac_cv_prog_DLLTOOL 10828if test -n "$DLLTOOL"; then 10829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10830printf "%s\n" "$DLLTOOL" >&6; } 10831else 10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10833printf "%s\n" "no" >&6; } 10834fi 10835 10836 10837fi 10838if test -z "$ac_cv_prog_DLLTOOL"; then 10839 ac_ct_DLLTOOL=$DLLTOOL 10840 # Extract the first word of "dlltool", so it can be a program name with args. 10841set dummy dlltool; ac_word=$2 10842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10843printf %s "checking for $ac_word... " >&6; } 10844if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 10845then : 10846 printf %s "(cached) " >&6 10847else $as_nop 10848 if test -n "$ac_ct_DLLTOOL"; then 10849 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10850else 10851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10852for as_dir in $PATH 10853do 10854 IFS=$as_save_IFS 10855 case $as_dir in #((( 10856 '') as_dir=./ ;; 10857 */) ;; 10858 *) as_dir=$as_dir/ ;; 10859 esac 10860 for ac_exec_ext in '' $ac_executable_extensions; do 10861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10862 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10864 break 2 10865 fi 10866done 10867 done 10868IFS=$as_save_IFS 10869 10870fi 10871fi 10872ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10873if test -n "$ac_ct_DLLTOOL"; then 10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10875printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 10876else 10877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10878printf "%s\n" "no" >&6; } 10879fi 10880 10881 if test "x$ac_ct_DLLTOOL" = x; then 10882 DLLTOOL="false" 10883 else 10884 case $cross_compiling:$ac_tool_warned in 10885yes:) 10886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10887printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10888ac_tool_warned=yes ;; 10889esac 10890 DLLTOOL=$ac_ct_DLLTOOL 10891 fi 10892else 10893 DLLTOOL="$ac_cv_prog_DLLTOOL" 10894fi 10895 10896test -z "$DLLTOOL" && DLLTOOL=dlltool 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 10908printf %s "checking how to associate runtime and link libraries... " >&6; } 10909if test ${lt_cv_sharedlib_from_linklib_cmd+y} 10910then : 10911 printf %s "(cached) " >&6 10912else $as_nop 10913 lt_cv_sharedlib_from_linklib_cmd='unknown' 10914 10915case $host_os in 10916cygwin* | mingw* | pw32* | cegcc*) 10917 # two different shell functions defined in ltmain.sh; 10918 # decide which one to use based on capabilities of $DLLTOOL 10919 case `$DLLTOOL --help 2>&1` in 10920 *--identify-strict*) 10921 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 10922 ;; 10923 *) 10924 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 10925 ;; 10926 esac 10927 ;; 10928*) 10929 # fallback: assume linklib IS sharedlib 10930 lt_cv_sharedlib_from_linklib_cmd=$ECHO 10931 ;; 10932esac 10933 10934fi 10935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 10936printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 10937sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 10938test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 10939 10940 10941 10942 10943 10944 10945 10946if test -n "$ac_tool_prefix"; then 10947 for ac_prog in ar 10948 do 10949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10950set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10952printf %s "checking for $ac_word... " >&6; } 10953if test ${ac_cv_prog_AR+y} 10954then : 10955 printf %s "(cached) " >&6 10956else $as_nop 10957 if test -n "$AR"; then 10958 ac_cv_prog_AR="$AR" # Let the user override the test. 10959else 10960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10961for as_dir in $PATH 10962do 10963 IFS=$as_save_IFS 10964 case $as_dir in #((( 10965 '') as_dir=./ ;; 10966 */) ;; 10967 *) as_dir=$as_dir/ ;; 10968 esac 10969 for ac_exec_ext in '' $ac_executable_extensions; do 10970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10971 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 10972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10973 break 2 10974 fi 10975done 10976 done 10977IFS=$as_save_IFS 10978 10979fi 10980fi 10981AR=$ac_cv_prog_AR 10982if test -n "$AR"; then 10983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10984printf "%s\n" "$AR" >&6; } 10985else 10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10987printf "%s\n" "no" >&6; } 10988fi 10989 10990 10991 test -n "$AR" && break 10992 done 10993fi 10994if test -z "$AR"; then 10995 ac_ct_AR=$AR 10996 for ac_prog in ar 10997do 10998 # Extract the first word of "$ac_prog", so it can be a program name with args. 10999set dummy $ac_prog; ac_word=$2 11000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11001printf %s "checking for $ac_word... " >&6; } 11002if test ${ac_cv_prog_ac_ct_AR+y} 11003then : 11004 printf %s "(cached) " >&6 11005else $as_nop 11006 if test -n "$ac_ct_AR"; then 11007 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 11008else 11009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11010for as_dir in $PATH 11011do 11012 IFS=$as_save_IFS 11013 case $as_dir in #((( 11014 '') as_dir=./ ;; 11015 */) ;; 11016 *) as_dir=$as_dir/ ;; 11017 esac 11018 for ac_exec_ext in '' $ac_executable_extensions; do 11019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11020 ac_cv_prog_ac_ct_AR="$ac_prog" 11021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11022 break 2 11023 fi 11024done 11025 done 11026IFS=$as_save_IFS 11027 11028fi 11029fi 11030ac_ct_AR=$ac_cv_prog_ac_ct_AR 11031if test -n "$ac_ct_AR"; then 11032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 11033printf "%s\n" "$ac_ct_AR" >&6; } 11034else 11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11036printf "%s\n" "no" >&6; } 11037fi 11038 11039 11040 test -n "$ac_ct_AR" && break 11041done 11042 11043 if test "x$ac_ct_AR" = x; then 11044 AR="false" 11045 else 11046 case $cross_compiling:$ac_tool_warned in 11047yes:) 11048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11049printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11050ac_tool_warned=yes ;; 11051esac 11052 AR=$ac_ct_AR 11053 fi 11054fi 11055 11056: ${AR=ar} 11057: ${AR_FLAGS=cr} 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 11070printf %s "checking for archiver @FILE support... " >&6; } 11071if test ${lt_cv_ar_at_file+y} 11072then : 11073 printf %s "(cached) " >&6 11074else $as_nop 11075 lt_cv_ar_at_file=no 11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11077/* end confdefs.h. */ 11078 11079int 11080main (void) 11081{ 11082 11083 ; 11084 return 0; 11085} 11086_ACEOF 11087if ac_fn_c_try_compile "$LINENO" 11088then : 11089 echo conftest.$ac_objext > conftest.lst 11090 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 11091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 11092 (eval $lt_ar_try) 2>&5 11093 ac_status=$? 11094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11095 test $ac_status = 0; } 11096 if test 0 -eq "$ac_status"; then 11097 # Ensure the archiver fails upon bogus file names. 11098 rm -f conftest.$ac_objext libconftest.a 11099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 11100 (eval $lt_ar_try) 2>&5 11101 ac_status=$? 11102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11103 test $ac_status = 0; } 11104 if test 0 -ne "$ac_status"; then 11105 lt_cv_ar_at_file=@ 11106 fi 11107 fi 11108 rm -f conftest.* libconftest.a 11109 11110fi 11111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11112 11113fi 11114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 11115printf "%s\n" "$lt_cv_ar_at_file" >&6; } 11116 11117if test no = "$lt_cv_ar_at_file"; then 11118 archiver_list_spec= 11119else 11120 archiver_list_spec=$lt_cv_ar_at_file 11121fi 11122 11123 11124 11125 11126 11127 11128 11129if test -n "$ac_tool_prefix"; then 11130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11131set dummy ${ac_tool_prefix}strip; ac_word=$2 11132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11133printf %s "checking for $ac_word... " >&6; } 11134if test ${ac_cv_prog_STRIP+y} 11135then : 11136 printf %s "(cached) " >&6 11137else $as_nop 11138 if test -n "$STRIP"; then 11139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11140else 11141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11142for as_dir in $PATH 11143do 11144 IFS=$as_save_IFS 11145 case $as_dir in #((( 11146 '') as_dir=./ ;; 11147 */) ;; 11148 *) as_dir=$as_dir/ ;; 11149 esac 11150 for ac_exec_ext in '' $ac_executable_extensions; do 11151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11152 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11154 break 2 11155 fi 11156done 11157 done 11158IFS=$as_save_IFS 11159 11160fi 11161fi 11162STRIP=$ac_cv_prog_STRIP 11163if test -n "$STRIP"; then 11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 11165printf "%s\n" "$STRIP" >&6; } 11166else 11167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11168printf "%s\n" "no" >&6; } 11169fi 11170 11171 11172fi 11173if test -z "$ac_cv_prog_STRIP"; then 11174 ac_ct_STRIP=$STRIP 11175 # Extract the first word of "strip", so it can be a program name with args. 11176set dummy strip; ac_word=$2 11177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11178printf %s "checking for $ac_word... " >&6; } 11179if test ${ac_cv_prog_ac_ct_STRIP+y} 11180then : 11181 printf %s "(cached) " >&6 11182else $as_nop 11183 if test -n "$ac_ct_STRIP"; then 11184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11185else 11186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11187for as_dir in $PATH 11188do 11189 IFS=$as_save_IFS 11190 case $as_dir in #((( 11191 '') as_dir=./ ;; 11192 */) ;; 11193 *) as_dir=$as_dir/ ;; 11194 esac 11195 for ac_exec_ext in '' $ac_executable_extensions; do 11196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11197 ac_cv_prog_ac_ct_STRIP="strip" 11198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11199 break 2 11200 fi 11201done 11202 done 11203IFS=$as_save_IFS 11204 11205fi 11206fi 11207ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11208if test -n "$ac_ct_STRIP"; then 11209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 11210printf "%s\n" "$ac_ct_STRIP" >&6; } 11211else 11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11213printf "%s\n" "no" >&6; } 11214fi 11215 11216 if test "x$ac_ct_STRIP" = x; then 11217 STRIP=":" 11218 else 11219 case $cross_compiling:$ac_tool_warned in 11220yes:) 11221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11222printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11223ac_tool_warned=yes ;; 11224esac 11225 STRIP=$ac_ct_STRIP 11226 fi 11227else 11228 STRIP="$ac_cv_prog_STRIP" 11229fi 11230 11231test -z "$STRIP" && STRIP=: 11232 11233 11234 11235 11236 11237 11238if test -n "$ac_tool_prefix"; then 11239 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11240set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11242printf %s "checking for $ac_word... " >&6; } 11243if test ${ac_cv_prog_RANLIB+y} 11244then : 11245 printf %s "(cached) " >&6 11246else $as_nop 11247 if test -n "$RANLIB"; then 11248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11249else 11250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11251for as_dir in $PATH 11252do 11253 IFS=$as_save_IFS 11254 case $as_dir in #((( 11255 '') as_dir=./ ;; 11256 */) ;; 11257 *) as_dir=$as_dir/ ;; 11258 esac 11259 for ac_exec_ext in '' $ac_executable_extensions; do 11260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11263 break 2 11264 fi 11265done 11266 done 11267IFS=$as_save_IFS 11268 11269fi 11270fi 11271RANLIB=$ac_cv_prog_RANLIB 11272if test -n "$RANLIB"; then 11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 11274printf "%s\n" "$RANLIB" >&6; } 11275else 11276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11277printf "%s\n" "no" >&6; } 11278fi 11279 11280 11281fi 11282if test -z "$ac_cv_prog_RANLIB"; then 11283 ac_ct_RANLIB=$RANLIB 11284 # Extract the first word of "ranlib", so it can be a program name with args. 11285set dummy ranlib; ac_word=$2 11286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11287printf %s "checking for $ac_word... " >&6; } 11288if test ${ac_cv_prog_ac_ct_RANLIB+y} 11289then : 11290 printf %s "(cached) " >&6 11291else $as_nop 11292 if test -n "$ac_ct_RANLIB"; then 11293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11294else 11295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11296for as_dir in $PATH 11297do 11298 IFS=$as_save_IFS 11299 case $as_dir in #((( 11300 '') as_dir=./ ;; 11301 */) ;; 11302 *) as_dir=$as_dir/ ;; 11303 esac 11304 for ac_exec_ext in '' $ac_executable_extensions; do 11305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11306 ac_cv_prog_ac_ct_RANLIB="ranlib" 11307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11308 break 2 11309 fi 11310done 11311 done 11312IFS=$as_save_IFS 11313 11314fi 11315fi 11316ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11317if test -n "$ac_ct_RANLIB"; then 11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 11319printf "%s\n" "$ac_ct_RANLIB" >&6; } 11320else 11321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11322printf "%s\n" "no" >&6; } 11323fi 11324 11325 if test "x$ac_ct_RANLIB" = x; then 11326 RANLIB=":" 11327 else 11328 case $cross_compiling:$ac_tool_warned in 11329yes:) 11330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11331printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11332ac_tool_warned=yes ;; 11333esac 11334 RANLIB=$ac_ct_RANLIB 11335 fi 11336else 11337 RANLIB="$ac_cv_prog_RANLIB" 11338fi 11339 11340test -z "$RANLIB" && RANLIB=: 11341 11342 11343 11344 11345 11346 11347# Determine commands to create old-style static archives. 11348old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 11349old_postinstall_cmds='chmod 644 $oldlib' 11350old_postuninstall_cmds= 11351 11352if test -n "$RANLIB"; then 11353 case $host_os in 11354 bitrig* | openbsd*) 11355 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 11356 ;; 11357 *) 11358 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 11359 ;; 11360 esac 11361 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 11362fi 11363 11364case $host_os in 11365 darwin*) 11366 lock_old_archive_extraction=yes ;; 11367 *) 11368 lock_old_archive_extraction=no ;; 11369esac 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409# If no C compiler was specified, use CC. 11410LTCC=${LTCC-"$CC"} 11411 11412# If no C compiler flags were specified, use CFLAGS. 11413LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11414 11415# Allow CC to be a program name with arguments. 11416compiler=$CC 11417 11418 11419# Check for command to grab the raw symbol name followed by C symbol from nm. 11420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 11421printf %s "checking command to parse $NM output from $compiler object... " >&6; } 11422if test ${lt_cv_sys_global_symbol_pipe+y} 11423then : 11424 printf %s "(cached) " >&6 11425else $as_nop 11426 11427# These are sane defaults that work on at least a few old systems. 11428# [They come from Ultrix. What could be older than Ultrix?!! ;)] 11429 11430# Character class describing NM global symbol codes. 11431symcode='[BCDEGRST]' 11432 11433# Regexp to match symbols that can be accessed directly from C. 11434sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 11435 11436# Define system-specific variables. 11437case $host_os in 11438aix*) 11439 symcode='[BCDT]' 11440 ;; 11441cygwin* | mingw* | pw32* | cegcc*) 11442 symcode='[ABCDGISTW]' 11443 ;; 11444hpux*) 11445 if test ia64 = "$host_cpu"; then 11446 symcode='[ABCDEGRST]' 11447 fi 11448 ;; 11449irix* | nonstopux*) 11450 symcode='[BCDEGRST]' 11451 ;; 11452osf*) 11453 symcode='[BCDEGQRST]' 11454 ;; 11455solaris*) 11456 symcode='[BDRT]' 11457 ;; 11458sco3.2v5*) 11459 symcode='[DT]' 11460 ;; 11461sysv4.2uw2*) 11462 symcode='[DT]' 11463 ;; 11464sysv5* | sco5v6* | unixware* | OpenUNIX*) 11465 symcode='[ABDT]' 11466 ;; 11467sysv4) 11468 symcode='[DFNSTU]' 11469 ;; 11470esac 11471 11472# If we're using GNU nm, then use its standard symbol codes. 11473case `$NM -V 2>&1` in 11474*GNU* | *'with BFD'*) 11475 symcode='[ABCDGIRSTW]' ;; 11476esac 11477 11478if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11479 # Gets list of data symbols to import. 11480 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 11481 # Adjust the below global symbol transforms to fixup imported variables. 11482 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 11483 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 11484 lt_c_name_lib_hook="\ 11485 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 11486 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 11487else 11488 # Disable hooks by default. 11489 lt_cv_sys_global_symbol_to_import= 11490 lt_cdecl_hook= 11491 lt_c_name_hook= 11492 lt_c_name_lib_hook= 11493fi 11494 11495# Transform an extracted symbol line into a proper C declaration. 11496# Some systems (esp. on ia64) link data and code symbols differently, 11497# so use this general approach. 11498lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 11499$lt_cdecl_hook\ 11500" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 11501" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 11502 11503# Transform an extracted symbol line into symbol name and symbol address 11504lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 11505$lt_c_name_hook\ 11506" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 11507" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 11508 11509# Transform an extracted symbol line into symbol name with lib prefix and 11510# symbol address. 11511lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 11512$lt_c_name_lib_hook\ 11513" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 11514" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 11515" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 11516 11517# Handle CRLF in mingw tool chain 11518opt_cr= 11519case $build_os in 11520mingw*) 11521 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 11522 ;; 11523esac 11524 11525# Try without a prefix underscore, then with it. 11526for ac_symprfx in "" "_"; do 11527 11528 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 11529 symxfrm="\\1 $ac_symprfx\\2 \\2" 11530 11531 # Write the raw and C identifiers. 11532 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11533 # Fake it for dumpbin and say T for any non-static function, 11534 # D for any global variable and I for any imported variable. 11535 # Also find C++ and __fastcall symbols from MSVC++, 11536 # which start with @ or ?. 11537 lt_cv_sys_global_symbol_pipe="$AWK '"\ 11538" {last_section=section; section=\$ 3};"\ 11539" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 11540" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 11541" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 11542" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 11543" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 11544" \$ 0!~/External *\|/{next};"\ 11545" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 11546" {if(hide[section]) next};"\ 11547" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 11548" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 11549" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 11550" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 11551" ' prfx=^$ac_symprfx" 11552 else 11553 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 11554 fi 11555 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 11556 11557 # Check to see that the pipe works correctly. 11558 pipe_works=no 11559 11560 rm -f conftest* 11561 cat > conftest.$ac_ext <<_LT_EOF 11562#ifdef __cplusplus 11563extern "C" { 11564#endif 11565char nm_test_var; 11566void nm_test_func(void); 11567void nm_test_func(void){} 11568#ifdef __cplusplus 11569} 11570#endif 11571int main(){nm_test_var='a';nm_test_func();return(0);} 11572_LT_EOF 11573 11574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11575 (eval $ac_compile) 2>&5 11576 ac_status=$? 11577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11578 test $ac_status = 0; }; then 11579 # Now try to grab the symbols. 11580 nlist=conftest.nm 11581 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 11582 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 11583 # Try sorting and uniquifying the output. 11584 if sort "$nlist" | uniq > "$nlist"T; then 11585 mv -f "$nlist"T "$nlist" 11586 else 11587 rm -f "$nlist"T 11588 fi 11589 11590 # Make sure that we snagged all the symbols we need. 11591 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 11592 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 11593 cat <<_LT_EOF > conftest.$ac_ext 11594/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 11595#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 11596/* DATA imports from DLLs on WIN32 can't be const, because runtime 11597 relocations are performed -- see ld's documentation on pseudo-relocs. */ 11598# define LT_DLSYM_CONST 11599#elif defined __osf__ 11600/* This system does not cope well with relocations in const data. */ 11601# define LT_DLSYM_CONST 11602#else 11603# define LT_DLSYM_CONST const 11604#endif 11605 11606#ifdef __cplusplus 11607extern "C" { 11608#endif 11609 11610_LT_EOF 11611 # Now generate the symbol file. 11612 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 11613 11614 cat <<_LT_EOF >> conftest.$ac_ext 11615 11616/* The mapping between symbol names and symbols. */ 11617LT_DLSYM_CONST struct { 11618 const char *name; 11619 void *address; 11620} 11621lt__PROGRAM__LTX_preloaded_symbols[] = 11622{ 11623 { "@PROGRAM@", (void *) 0 }, 11624_LT_EOF 11625 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 11626 cat <<\_LT_EOF >> conftest.$ac_ext 11627 {0, (void *) 0} 11628}; 11629 11630/* This works around a problem in FreeBSD linker */ 11631#ifdef FREEBSD_WORKAROUND 11632static const void *lt_preloaded_setup() { 11633 return lt__PROGRAM__LTX_preloaded_symbols; 11634} 11635#endif 11636 11637#ifdef __cplusplus 11638} 11639#endif 11640_LT_EOF 11641 # Now try linking the two files. 11642 mv conftest.$ac_objext conftstm.$ac_objext 11643 lt_globsym_save_LIBS=$LIBS 11644 lt_globsym_save_CFLAGS=$CFLAGS 11645 LIBS=conftstm.$ac_objext 11646 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 11647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11648 (eval $ac_link) 2>&5 11649 ac_status=$? 11650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11651 test $ac_status = 0; } && test -s conftest$ac_exeext; then 11652 pipe_works=yes 11653 fi 11654 LIBS=$lt_globsym_save_LIBS 11655 CFLAGS=$lt_globsym_save_CFLAGS 11656 else 11657 echo "cannot find nm_test_func in $nlist" >&5 11658 fi 11659 else 11660 echo "cannot find nm_test_var in $nlist" >&5 11661 fi 11662 else 11663 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 11664 fi 11665 else 11666 echo "$progname: failed program was:" >&5 11667 cat conftest.$ac_ext >&5 11668 fi 11669 rm -rf conftest* conftst* 11670 11671 # Do not use the global_symbol_pipe unless it works. 11672 if test yes = "$pipe_works"; then 11673 break 11674 else 11675 lt_cv_sys_global_symbol_pipe= 11676 fi 11677done 11678 11679fi 11680 11681if test -z "$lt_cv_sys_global_symbol_pipe"; then 11682 lt_cv_sys_global_symbol_to_cdecl= 11683fi 11684if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 11685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 11686printf "%s\n" "failed" >&6; } 11687else 11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 11689printf "%s\n" "ok" >&6; } 11690fi 11691 11692# Response file support. 11693if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11694 nm_file_list_spec='@' 11695elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 11696 nm_file_list_spec='@' 11697fi 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 11736printf %s "checking for sysroot... " >&6; } 11737 11738# Check whether --with-sysroot was given. 11739if test ${with_sysroot+y} 11740then : 11741 withval=$with_sysroot; 11742else $as_nop 11743 with_sysroot=no 11744fi 11745 11746 11747lt_sysroot= 11748case $with_sysroot in #( 11749 yes) 11750 if test yes = "$GCC"; then 11751 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 11752 fi 11753 ;; #( 11754 /*) 11755 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 11756 ;; #( 11757 no|'') 11758 ;; #( 11759 *) 11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 11761printf "%s\n" "$with_sysroot" >&6; } 11762 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 11763 ;; 11764esac 11765 11766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 11767printf "%s\n" "${lt_sysroot:-no}" >&6; } 11768 11769 11770 11771 11772 11773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 11774printf %s "checking for a working dd... " >&6; } 11775if test ${ac_cv_path_lt_DD+y} 11776then : 11777 printf %s "(cached) " >&6 11778else $as_nop 11779 printf 0123456789abcdef0123456789abcdef >conftest.i 11780cat conftest.i conftest.i >conftest2.i 11781: ${lt_DD:=$DD} 11782if test -z "$lt_DD"; then 11783 ac_path_lt_DD_found=false 11784 # Loop through the user's path and test for each of PROGNAME-LIST 11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11786for as_dir in $PATH 11787do 11788 IFS=$as_save_IFS 11789 case $as_dir in #((( 11790 '') as_dir=./ ;; 11791 */) ;; 11792 *) as_dir=$as_dir/ ;; 11793 esac 11794 for ac_prog in dd 11795 do 11796 for ac_exec_ext in '' $ac_executable_extensions; do 11797 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 11798 as_fn_executable_p "$ac_path_lt_DD" || continue 11799if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 11800 cmp -s conftest.i conftest.out \ 11801 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 11802fi 11803 $ac_path_lt_DD_found && break 3 11804 done 11805 done 11806 done 11807IFS=$as_save_IFS 11808 if test -z "$ac_cv_path_lt_DD"; then 11809 : 11810 fi 11811else 11812 ac_cv_path_lt_DD=$lt_DD 11813fi 11814 11815rm -f conftest.i conftest2.i conftest.out 11816fi 11817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 11818printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 11819 11820 11821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 11822printf %s "checking how to truncate binary pipes... " >&6; } 11823if test ${lt_cv_truncate_bin+y} 11824then : 11825 printf %s "(cached) " >&6 11826else $as_nop 11827 printf 0123456789abcdef0123456789abcdef >conftest.i 11828cat conftest.i conftest.i >conftest2.i 11829lt_cv_truncate_bin= 11830if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 11831 cmp -s conftest.i conftest.out \ 11832 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 11833fi 11834rm -f conftest.i conftest2.i conftest.out 11835test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 11836fi 11837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 11838printf "%s\n" "$lt_cv_truncate_bin" >&6; } 11839 11840 11841 11842 11843 11844 11845 11846# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 11847func_cc_basename () 11848{ 11849 for cc_temp in $*""; do 11850 case $cc_temp in 11851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11853 \-*) ;; 11854 *) break;; 11855 esac 11856 done 11857 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11858} 11859 11860# Check whether --enable-libtool-lock was given. 11861if test ${enable_libtool_lock+y} 11862then : 11863 enableval=$enable_libtool_lock; 11864fi 11865 11866test no = "$enable_libtool_lock" || enable_libtool_lock=yes 11867 11868# Some flags need to be propagated to the compiler or linker for good 11869# libtool support. 11870case $host in 11871ia64-*-hpux*) 11872 # Find out what ABI is being produced by ac_compile, and set mode 11873 # options accordingly. 11874 echo 'int i;' > conftest.$ac_ext 11875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11876 (eval $ac_compile) 2>&5 11877 ac_status=$? 11878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11879 test $ac_status = 0; }; then 11880 case `/usr/bin/file conftest.$ac_objext` in 11881 *ELF-32*) 11882 HPUX_IA64_MODE=32 11883 ;; 11884 *ELF-64*) 11885 HPUX_IA64_MODE=64 11886 ;; 11887 esac 11888 fi 11889 rm -rf conftest* 11890 ;; 11891*-*-irix6*) 11892 # Find out what ABI is being produced by ac_compile, and set linker 11893 # options accordingly. 11894 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11896 (eval $ac_compile) 2>&5 11897 ac_status=$? 11898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11899 test $ac_status = 0; }; then 11900 if test yes = "$lt_cv_prog_gnu_ld"; then 11901 case `/usr/bin/file conftest.$ac_objext` in 11902 *32-bit*) 11903 LD="${LD-ld} -melf32bsmip" 11904 ;; 11905 *N32*) 11906 LD="${LD-ld} -melf32bmipn32" 11907 ;; 11908 *64-bit*) 11909 LD="${LD-ld} -melf64bmip" 11910 ;; 11911 esac 11912 else 11913 case `/usr/bin/file conftest.$ac_objext` in 11914 *32-bit*) 11915 LD="${LD-ld} -32" 11916 ;; 11917 *N32*) 11918 LD="${LD-ld} -n32" 11919 ;; 11920 *64-bit*) 11921 LD="${LD-ld} -64" 11922 ;; 11923 esac 11924 fi 11925 fi 11926 rm -rf conftest* 11927 ;; 11928 11929mips64*-*linux*) 11930 # Find out what ABI is being produced by ac_compile, and set linker 11931 # options accordingly. 11932 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11934 (eval $ac_compile) 2>&5 11935 ac_status=$? 11936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11937 test $ac_status = 0; }; then 11938 emul=elf 11939 case `/usr/bin/file conftest.$ac_objext` in 11940 *32-bit*) 11941 emul="${emul}32" 11942 ;; 11943 *64-bit*) 11944 emul="${emul}64" 11945 ;; 11946 esac 11947 case `/usr/bin/file conftest.$ac_objext` in 11948 *MSB*) 11949 emul="${emul}btsmip" 11950 ;; 11951 *LSB*) 11952 emul="${emul}ltsmip" 11953 ;; 11954 esac 11955 case `/usr/bin/file conftest.$ac_objext` in 11956 *N32*) 11957 emul="${emul}n32" 11958 ;; 11959 esac 11960 LD="${LD-ld} -m $emul" 11961 fi 11962 rm -rf conftest* 11963 ;; 11964 11965x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 11966s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 11967 # Find out what ABI is being produced by ac_compile, and set linker 11968 # options accordingly. Note that the listed cases only cover the 11969 # situations where additional linker options are needed (such as when 11970 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 11971 # vice versa); the common cases where no linker options are needed do 11972 # not appear in the list. 11973 echo 'int i;' > conftest.$ac_ext 11974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11975 (eval $ac_compile) 2>&5 11976 ac_status=$? 11977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11978 test $ac_status = 0; }; then 11979 case `/usr/bin/file conftest.o` in 11980 *32-bit*) 11981 case $host in 11982 x86_64-*kfreebsd*-gnu) 11983 LD="${LD-ld} -m elf_i386_fbsd" 11984 ;; 11985 x86_64-*linux*) 11986 case `/usr/bin/file conftest.o` in 11987 *x86-64*) 11988 LD="${LD-ld} -m elf32_x86_64" 11989 ;; 11990 *) 11991 LD="${LD-ld} -m elf_i386" 11992 ;; 11993 esac 11994 ;; 11995 powerpc64le-*linux*) 11996 LD="${LD-ld} -m elf32lppclinux" 11997 ;; 11998 powerpc64-*linux*) 11999 LD="${LD-ld} -m elf32ppclinux" 12000 ;; 12001 s390x-*linux*) 12002 LD="${LD-ld} -m elf_s390" 12003 ;; 12004 sparc64-*linux*) 12005 LD="${LD-ld} -m elf32_sparc" 12006 ;; 12007 esac 12008 ;; 12009 *64-bit*) 12010 case $host in 12011 x86_64-*kfreebsd*-gnu) 12012 LD="${LD-ld} -m elf_x86_64_fbsd" 12013 ;; 12014 x86_64-*linux*) 12015 LD="${LD-ld} -m elf_x86_64" 12016 ;; 12017 powerpcle-*linux*) 12018 LD="${LD-ld} -m elf64lppc" 12019 ;; 12020 powerpc-*linux*) 12021 LD="${LD-ld} -m elf64ppc" 12022 ;; 12023 s390*-*linux*|s390*-*tpf*) 12024 LD="${LD-ld} -m elf64_s390" 12025 ;; 12026 sparc*-*linux*) 12027 LD="${LD-ld} -m elf64_sparc" 12028 ;; 12029 esac 12030 ;; 12031 esac 12032 fi 12033 rm -rf conftest* 12034 ;; 12035 12036*-*-sco3.2v5*) 12037 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12038 SAVE_CFLAGS=$CFLAGS 12039 CFLAGS="$CFLAGS -belf" 12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 12041printf %s "checking whether the C compiler needs -belf... " >&6; } 12042if test ${lt_cv_cc_needs_belf+y} 12043then : 12044 printf %s "(cached) " >&6 12045else $as_nop 12046 ac_ext=c 12047ac_cpp='$CPP $CPPFLAGS' 12048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12050ac_compiler_gnu=$ac_cv_c_compiler_gnu 12051 12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12053/* end confdefs.h. */ 12054 12055int 12056main (void) 12057{ 12058 12059 ; 12060 return 0; 12061} 12062_ACEOF 12063if ac_fn_c_try_link "$LINENO" 12064then : 12065 lt_cv_cc_needs_belf=yes 12066else $as_nop 12067 lt_cv_cc_needs_belf=no 12068fi 12069rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12070 conftest$ac_exeext conftest.$ac_ext 12071 ac_ext=c 12072ac_cpp='$CPP $CPPFLAGS' 12073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12075ac_compiler_gnu=$ac_cv_c_compiler_gnu 12076 12077fi 12078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 12079printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 12080 if test yes != "$lt_cv_cc_needs_belf"; then 12081 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 12082 CFLAGS=$SAVE_CFLAGS 12083 fi 12084 ;; 12085*-*solaris*) 12086 # Find out what ABI is being produced by ac_compile, and set linker 12087 # options accordingly. 12088 echo 'int i;' > conftest.$ac_ext 12089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12090 (eval $ac_compile) 2>&5 12091 ac_status=$? 12092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12093 test $ac_status = 0; }; then 12094 case `/usr/bin/file conftest.o` in 12095 *64-bit*) 12096 case $lt_cv_prog_gnu_ld in 12097 yes*) 12098 case $host in 12099 i?86-*-solaris*|x86_64-*-solaris*) 12100 LD="${LD-ld} -m elf_x86_64" 12101 ;; 12102 sparc*-*-solaris*) 12103 LD="${LD-ld} -m elf64_sparc" 12104 ;; 12105 esac 12106 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 12107 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 12108 LD=${LD-ld}_sol2 12109 fi 12110 ;; 12111 *) 12112 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 12113 LD="${LD-ld} -64" 12114 fi 12115 ;; 12116 esac 12117 ;; 12118 esac 12119 fi 12120 rm -rf conftest* 12121 ;; 12122esac 12123 12124need_locks=$enable_libtool_lock 12125 12126if test -n "$ac_tool_prefix"; then 12127 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 12128set dummy ${ac_tool_prefix}mt; ac_word=$2 12129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12130printf %s "checking for $ac_word... " >&6; } 12131if test ${ac_cv_prog_MANIFEST_TOOL+y} 12132then : 12133 printf %s "(cached) " >&6 12134else $as_nop 12135 if test -n "$MANIFEST_TOOL"; then 12136 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 12137else 12138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12139for as_dir in $PATH 12140do 12141 IFS=$as_save_IFS 12142 case $as_dir in #((( 12143 '') as_dir=./ ;; 12144 */) ;; 12145 *) as_dir=$as_dir/ ;; 12146 esac 12147 for ac_exec_ext in '' $ac_executable_extensions; do 12148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12149 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 12150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12151 break 2 12152 fi 12153done 12154 done 12155IFS=$as_save_IFS 12156 12157fi 12158fi 12159MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 12160if test -n "$MANIFEST_TOOL"; then 12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 12162printf "%s\n" "$MANIFEST_TOOL" >&6; } 12163else 12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12165printf "%s\n" "no" >&6; } 12166fi 12167 12168 12169fi 12170if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 12171 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 12172 # Extract the first word of "mt", so it can be a program name with args. 12173set dummy mt; ac_word=$2 12174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12175printf %s "checking for $ac_word... " >&6; } 12176if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 12177then : 12178 printf %s "(cached) " >&6 12179else $as_nop 12180 if test -n "$ac_ct_MANIFEST_TOOL"; then 12181 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 12182else 12183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12184for as_dir in $PATH 12185do 12186 IFS=$as_save_IFS 12187 case $as_dir in #((( 12188 '') as_dir=./ ;; 12189 */) ;; 12190 *) as_dir=$as_dir/ ;; 12191 esac 12192 for ac_exec_ext in '' $ac_executable_extensions; do 12193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12194 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 12195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12196 break 2 12197 fi 12198done 12199 done 12200IFS=$as_save_IFS 12201 12202fi 12203fi 12204ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 12205if test -n "$ac_ct_MANIFEST_TOOL"; then 12206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 12207printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 12208else 12209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12210printf "%s\n" "no" >&6; } 12211fi 12212 12213 if test "x$ac_ct_MANIFEST_TOOL" = x; then 12214 MANIFEST_TOOL=":" 12215 else 12216 case $cross_compiling:$ac_tool_warned in 12217yes:) 12218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12219printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12220ac_tool_warned=yes ;; 12221esac 12222 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 12223 fi 12224else 12225 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 12226fi 12227 12228test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 12229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 12230printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 12231if test ${lt_cv_path_mainfest_tool+y} 12232then : 12233 printf %s "(cached) " >&6 12234else $as_nop 12235 lt_cv_path_mainfest_tool=no 12236 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 12237 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 12238 cat conftest.err >&5 12239 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 12240 lt_cv_path_mainfest_tool=yes 12241 fi 12242 rm -f conftest* 12243fi 12244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 12245printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 12246if test yes != "$lt_cv_path_mainfest_tool"; then 12247 MANIFEST_TOOL=: 12248fi 12249 12250 12251 12252 12253 12254 12255 case $host_os in 12256 rhapsody* | darwin*) 12257 if test -n "$ac_tool_prefix"; then 12258 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 12259set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 12260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12261printf %s "checking for $ac_word... " >&6; } 12262if test ${ac_cv_prog_DSYMUTIL+y} 12263then : 12264 printf %s "(cached) " >&6 12265else $as_nop 12266 if test -n "$DSYMUTIL"; then 12267 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 12268else 12269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12270for as_dir in $PATH 12271do 12272 IFS=$as_save_IFS 12273 case $as_dir in #((( 12274 '') as_dir=./ ;; 12275 */) ;; 12276 *) as_dir=$as_dir/ ;; 12277 esac 12278 for ac_exec_ext in '' $ac_executable_extensions; do 12279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12280 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 12281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12282 break 2 12283 fi 12284done 12285 done 12286IFS=$as_save_IFS 12287 12288fi 12289fi 12290DSYMUTIL=$ac_cv_prog_DSYMUTIL 12291if test -n "$DSYMUTIL"; then 12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 12293printf "%s\n" "$DSYMUTIL" >&6; } 12294else 12295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12296printf "%s\n" "no" >&6; } 12297fi 12298 12299 12300fi 12301if test -z "$ac_cv_prog_DSYMUTIL"; then 12302 ac_ct_DSYMUTIL=$DSYMUTIL 12303 # Extract the first word of "dsymutil", so it can be a program name with args. 12304set dummy dsymutil; ac_word=$2 12305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12306printf %s "checking for $ac_word... " >&6; } 12307if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 12308then : 12309 printf %s "(cached) " >&6 12310else $as_nop 12311 if test -n "$ac_ct_DSYMUTIL"; then 12312 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 12313else 12314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12315for as_dir in $PATH 12316do 12317 IFS=$as_save_IFS 12318 case $as_dir in #((( 12319 '') as_dir=./ ;; 12320 */) ;; 12321 *) as_dir=$as_dir/ ;; 12322 esac 12323 for ac_exec_ext in '' $ac_executable_extensions; do 12324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12325 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 12326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12327 break 2 12328 fi 12329done 12330 done 12331IFS=$as_save_IFS 12332 12333fi 12334fi 12335ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 12336if test -n "$ac_ct_DSYMUTIL"; then 12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 12338printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 12339else 12340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12341printf "%s\n" "no" >&6; } 12342fi 12343 12344 if test "x$ac_ct_DSYMUTIL" = x; then 12345 DSYMUTIL=":" 12346 else 12347 case $cross_compiling:$ac_tool_warned in 12348yes:) 12349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12350printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12351ac_tool_warned=yes ;; 12352esac 12353 DSYMUTIL=$ac_ct_DSYMUTIL 12354 fi 12355else 12356 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 12357fi 12358 12359 if test -n "$ac_tool_prefix"; then 12360 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 12361set dummy ${ac_tool_prefix}nmedit; ac_word=$2 12362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12363printf %s "checking for $ac_word... " >&6; } 12364if test ${ac_cv_prog_NMEDIT+y} 12365then : 12366 printf %s "(cached) " >&6 12367else $as_nop 12368 if test -n "$NMEDIT"; then 12369 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 12370else 12371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12372for as_dir in $PATH 12373do 12374 IFS=$as_save_IFS 12375 case $as_dir in #((( 12376 '') as_dir=./ ;; 12377 */) ;; 12378 *) as_dir=$as_dir/ ;; 12379 esac 12380 for ac_exec_ext in '' $ac_executable_extensions; do 12381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12382 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 12383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12384 break 2 12385 fi 12386done 12387 done 12388IFS=$as_save_IFS 12389 12390fi 12391fi 12392NMEDIT=$ac_cv_prog_NMEDIT 12393if test -n "$NMEDIT"; then 12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 12395printf "%s\n" "$NMEDIT" >&6; } 12396else 12397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12398printf "%s\n" "no" >&6; } 12399fi 12400 12401 12402fi 12403if test -z "$ac_cv_prog_NMEDIT"; then 12404 ac_ct_NMEDIT=$NMEDIT 12405 # Extract the first word of "nmedit", so it can be a program name with args. 12406set dummy nmedit; ac_word=$2 12407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12408printf %s "checking for $ac_word... " >&6; } 12409if test ${ac_cv_prog_ac_ct_NMEDIT+y} 12410then : 12411 printf %s "(cached) " >&6 12412else $as_nop 12413 if test -n "$ac_ct_NMEDIT"; then 12414 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 12415else 12416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12417for as_dir in $PATH 12418do 12419 IFS=$as_save_IFS 12420 case $as_dir in #((( 12421 '') as_dir=./ ;; 12422 */) ;; 12423 *) as_dir=$as_dir/ ;; 12424 esac 12425 for ac_exec_ext in '' $ac_executable_extensions; do 12426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12427 ac_cv_prog_ac_ct_NMEDIT="nmedit" 12428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12429 break 2 12430 fi 12431done 12432 done 12433IFS=$as_save_IFS 12434 12435fi 12436fi 12437ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 12438if test -n "$ac_ct_NMEDIT"; then 12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 12440printf "%s\n" "$ac_ct_NMEDIT" >&6; } 12441else 12442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12443printf "%s\n" "no" >&6; } 12444fi 12445 12446 if test "x$ac_ct_NMEDIT" = x; then 12447 NMEDIT=":" 12448 else 12449 case $cross_compiling:$ac_tool_warned in 12450yes:) 12451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12452printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12453ac_tool_warned=yes ;; 12454esac 12455 NMEDIT=$ac_ct_NMEDIT 12456 fi 12457else 12458 NMEDIT="$ac_cv_prog_NMEDIT" 12459fi 12460 12461 if test -n "$ac_tool_prefix"; then 12462 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 12463set dummy ${ac_tool_prefix}lipo; ac_word=$2 12464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12465printf %s "checking for $ac_word... " >&6; } 12466if test ${ac_cv_prog_LIPO+y} 12467then : 12468 printf %s "(cached) " >&6 12469else $as_nop 12470 if test -n "$LIPO"; then 12471 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 12472else 12473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12474for as_dir in $PATH 12475do 12476 IFS=$as_save_IFS 12477 case $as_dir in #((( 12478 '') as_dir=./ ;; 12479 */) ;; 12480 *) as_dir=$as_dir/ ;; 12481 esac 12482 for ac_exec_ext in '' $ac_executable_extensions; do 12483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12484 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 12485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12486 break 2 12487 fi 12488done 12489 done 12490IFS=$as_save_IFS 12491 12492fi 12493fi 12494LIPO=$ac_cv_prog_LIPO 12495if test -n "$LIPO"; then 12496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 12497printf "%s\n" "$LIPO" >&6; } 12498else 12499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12500printf "%s\n" "no" >&6; } 12501fi 12502 12503 12504fi 12505if test -z "$ac_cv_prog_LIPO"; then 12506 ac_ct_LIPO=$LIPO 12507 # Extract the first word of "lipo", so it can be a program name with args. 12508set dummy lipo; ac_word=$2 12509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12510printf %s "checking for $ac_word... " >&6; } 12511if test ${ac_cv_prog_ac_ct_LIPO+y} 12512then : 12513 printf %s "(cached) " >&6 12514else $as_nop 12515 if test -n "$ac_ct_LIPO"; then 12516 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 12517else 12518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12519for as_dir in $PATH 12520do 12521 IFS=$as_save_IFS 12522 case $as_dir in #((( 12523 '') as_dir=./ ;; 12524 */) ;; 12525 *) as_dir=$as_dir/ ;; 12526 esac 12527 for ac_exec_ext in '' $ac_executable_extensions; do 12528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12529 ac_cv_prog_ac_ct_LIPO="lipo" 12530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12531 break 2 12532 fi 12533done 12534 done 12535IFS=$as_save_IFS 12536 12537fi 12538fi 12539ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 12540if test -n "$ac_ct_LIPO"; then 12541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 12542printf "%s\n" "$ac_ct_LIPO" >&6; } 12543else 12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12545printf "%s\n" "no" >&6; } 12546fi 12547 12548 if test "x$ac_ct_LIPO" = x; then 12549 LIPO=":" 12550 else 12551 case $cross_compiling:$ac_tool_warned in 12552yes:) 12553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12554printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12555ac_tool_warned=yes ;; 12556esac 12557 LIPO=$ac_ct_LIPO 12558 fi 12559else 12560 LIPO="$ac_cv_prog_LIPO" 12561fi 12562 12563 if test -n "$ac_tool_prefix"; then 12564 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 12565set dummy ${ac_tool_prefix}otool; ac_word=$2 12566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12567printf %s "checking for $ac_word... " >&6; } 12568if test ${ac_cv_prog_OTOOL+y} 12569then : 12570 printf %s "(cached) " >&6 12571else $as_nop 12572 if test -n "$OTOOL"; then 12573 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 12574else 12575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12576for as_dir in $PATH 12577do 12578 IFS=$as_save_IFS 12579 case $as_dir in #((( 12580 '') as_dir=./ ;; 12581 */) ;; 12582 *) as_dir=$as_dir/ ;; 12583 esac 12584 for ac_exec_ext in '' $ac_executable_extensions; do 12585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12586 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 12587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12588 break 2 12589 fi 12590done 12591 done 12592IFS=$as_save_IFS 12593 12594fi 12595fi 12596OTOOL=$ac_cv_prog_OTOOL 12597if test -n "$OTOOL"; then 12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 12599printf "%s\n" "$OTOOL" >&6; } 12600else 12601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12602printf "%s\n" "no" >&6; } 12603fi 12604 12605 12606fi 12607if test -z "$ac_cv_prog_OTOOL"; then 12608 ac_ct_OTOOL=$OTOOL 12609 # Extract the first word of "otool", so it can be a program name with args. 12610set dummy otool; ac_word=$2 12611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12612printf %s "checking for $ac_word... " >&6; } 12613if test ${ac_cv_prog_ac_ct_OTOOL+y} 12614then : 12615 printf %s "(cached) " >&6 12616else $as_nop 12617 if test -n "$ac_ct_OTOOL"; then 12618 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 12619else 12620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12621for as_dir in $PATH 12622do 12623 IFS=$as_save_IFS 12624 case $as_dir in #((( 12625 '') as_dir=./ ;; 12626 */) ;; 12627 *) as_dir=$as_dir/ ;; 12628 esac 12629 for ac_exec_ext in '' $ac_executable_extensions; do 12630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12631 ac_cv_prog_ac_ct_OTOOL="otool" 12632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12633 break 2 12634 fi 12635done 12636 done 12637IFS=$as_save_IFS 12638 12639fi 12640fi 12641ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 12642if test -n "$ac_ct_OTOOL"; then 12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 12644printf "%s\n" "$ac_ct_OTOOL" >&6; } 12645else 12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12647printf "%s\n" "no" >&6; } 12648fi 12649 12650 if test "x$ac_ct_OTOOL" = x; then 12651 OTOOL=":" 12652 else 12653 case $cross_compiling:$ac_tool_warned in 12654yes:) 12655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12656printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12657ac_tool_warned=yes ;; 12658esac 12659 OTOOL=$ac_ct_OTOOL 12660 fi 12661else 12662 OTOOL="$ac_cv_prog_OTOOL" 12663fi 12664 12665 if test -n "$ac_tool_prefix"; then 12666 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 12667set dummy ${ac_tool_prefix}otool64; ac_word=$2 12668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12669printf %s "checking for $ac_word... " >&6; } 12670if test ${ac_cv_prog_OTOOL64+y} 12671then : 12672 printf %s "(cached) " >&6 12673else $as_nop 12674 if test -n "$OTOOL64"; then 12675 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 12676else 12677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12678for as_dir in $PATH 12679do 12680 IFS=$as_save_IFS 12681 case $as_dir in #((( 12682 '') as_dir=./ ;; 12683 */) ;; 12684 *) as_dir=$as_dir/ ;; 12685 esac 12686 for ac_exec_ext in '' $ac_executable_extensions; do 12687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12688 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 12689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12690 break 2 12691 fi 12692done 12693 done 12694IFS=$as_save_IFS 12695 12696fi 12697fi 12698OTOOL64=$ac_cv_prog_OTOOL64 12699if test -n "$OTOOL64"; then 12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 12701printf "%s\n" "$OTOOL64" >&6; } 12702else 12703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12704printf "%s\n" "no" >&6; } 12705fi 12706 12707 12708fi 12709if test -z "$ac_cv_prog_OTOOL64"; then 12710 ac_ct_OTOOL64=$OTOOL64 12711 # Extract the first word of "otool64", so it can be a program name with args. 12712set dummy otool64; ac_word=$2 12713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12714printf %s "checking for $ac_word... " >&6; } 12715if test ${ac_cv_prog_ac_ct_OTOOL64+y} 12716then : 12717 printf %s "(cached) " >&6 12718else $as_nop 12719 if test -n "$ac_ct_OTOOL64"; then 12720 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 12721else 12722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12723for as_dir in $PATH 12724do 12725 IFS=$as_save_IFS 12726 case $as_dir in #((( 12727 '') as_dir=./ ;; 12728 */) ;; 12729 *) as_dir=$as_dir/ ;; 12730 esac 12731 for ac_exec_ext in '' $ac_executable_extensions; do 12732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12733 ac_cv_prog_ac_ct_OTOOL64="otool64" 12734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12735 break 2 12736 fi 12737done 12738 done 12739IFS=$as_save_IFS 12740 12741fi 12742fi 12743ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 12744if test -n "$ac_ct_OTOOL64"; then 12745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 12746printf "%s\n" "$ac_ct_OTOOL64" >&6; } 12747else 12748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12749printf "%s\n" "no" >&6; } 12750fi 12751 12752 if test "x$ac_ct_OTOOL64" = x; then 12753 OTOOL64=":" 12754 else 12755 case $cross_compiling:$ac_tool_warned in 12756yes:) 12757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12758printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12759ac_tool_warned=yes ;; 12760esac 12761 OTOOL64=$ac_ct_OTOOL64 12762 fi 12763else 12764 OTOOL64="$ac_cv_prog_OTOOL64" 12765fi 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 12794printf %s "checking for -single_module linker flag... " >&6; } 12795if test ${lt_cv_apple_cc_single_mod+y} 12796then : 12797 printf %s "(cached) " >&6 12798else $as_nop 12799 lt_cv_apple_cc_single_mod=no 12800 if test -z "$LT_MULTI_MODULE"; then 12801 # By default we will add the -single_module flag. You can override 12802 # by either setting the environment variable LT_MULTI_MODULE 12803 # non-empty at configure time, or by adding -multi_module to the 12804 # link flags. 12805 rm -rf libconftest.dylib* 12806 echo "int foo(void){return 1;}" > conftest.c 12807 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12808-dynamiclib -Wl,-single_module conftest.c" >&5 12809 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12810 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 12811 _lt_result=$? 12812 # If there is a non-empty error log, and "single_module" 12813 # appears in it, assume the flag caused a linker warning 12814 if test -s conftest.err && $GREP single_module conftest.err; then 12815 cat conftest.err >&5 12816 # Otherwise, if the output was created with a 0 exit code from 12817 # the compiler, it worked. 12818 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 12819 lt_cv_apple_cc_single_mod=yes 12820 else 12821 cat conftest.err >&5 12822 fi 12823 rm -rf libconftest.dylib* 12824 rm -f conftest.* 12825 fi 12826fi 12827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 12828printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 12829 12830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 12831printf %s "checking for -exported_symbols_list linker flag... " >&6; } 12832if test ${lt_cv_ld_exported_symbols_list+y} 12833then : 12834 printf %s "(cached) " >&6 12835else $as_nop 12836 lt_cv_ld_exported_symbols_list=no 12837 save_LDFLAGS=$LDFLAGS 12838 echo "_main" > conftest.sym 12839 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12841/* end confdefs.h. */ 12842 12843int 12844main (void) 12845{ 12846 12847 ; 12848 return 0; 12849} 12850_ACEOF 12851if ac_fn_c_try_link "$LINENO" 12852then : 12853 lt_cv_ld_exported_symbols_list=yes 12854else $as_nop 12855 lt_cv_ld_exported_symbols_list=no 12856fi 12857rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12858 conftest$ac_exeext conftest.$ac_ext 12859 LDFLAGS=$save_LDFLAGS 12860 12861fi 12862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 12863printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 12864 12865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 12866printf %s "checking for -force_load linker flag... " >&6; } 12867if test ${lt_cv_ld_force_load+y} 12868then : 12869 printf %s "(cached) " >&6 12870else $as_nop 12871 lt_cv_ld_force_load=no 12872 cat > conftest.c << _LT_EOF 12873int forced_loaded() { return 2;} 12874_LT_EOF 12875 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 12876 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 12877 echo "$AR cr libconftest.a conftest.o" >&5 12878 $AR cr libconftest.a conftest.o 2>&5 12879 echo "$RANLIB libconftest.a" >&5 12880 $RANLIB libconftest.a 2>&5 12881 cat > conftest.c << _LT_EOF 12882int main() { return 0;} 12883_LT_EOF 12884 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 12885 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 12886 _lt_result=$? 12887 if test -s conftest.err && $GREP force_load conftest.err; then 12888 cat conftest.err >&5 12889 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 12890 lt_cv_ld_force_load=yes 12891 else 12892 cat conftest.err >&5 12893 fi 12894 rm -f conftest.err libconftest.a conftest conftest.c 12895 rm -rf conftest.dSYM 12896 12897fi 12898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 12899printf "%s\n" "$lt_cv_ld_force_load" >&6; } 12900 case $host_os in 12901 rhapsody* | darwin1.[012]) 12902 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 12903 darwin1.*) 12904 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 12905 darwin*) # darwin 5.x on 12906 # if running on 10.5 or later, the deployment target defaults 12907 # to the OS version, if on x86, and 10.4, the deployment 12908 # target defaults to 10.4. Don't you love it? 12909 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 12910 10.0,*86*-darwin8*|10.0,*-darwin[912]*) 12911 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 12912 10.[012][,.]*) 12913 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 12914 10.*|11.*) 12915 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 12916 esac 12917 ;; 12918 esac 12919 if test yes = "$lt_cv_apple_cc_single_mod"; then 12920 _lt_dar_single_mod='$single_module' 12921 fi 12922 if test yes = "$lt_cv_ld_exported_symbols_list"; then 12923 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 12924 else 12925 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 12926 fi 12927 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 12928 _lt_dsymutil='~$DSYMUTIL $lib || :' 12929 else 12930 _lt_dsymutil= 12931 fi 12932 ;; 12933 esac 12934 12935# func_munge_path_list VARIABLE PATH 12936# ----------------------------------- 12937# VARIABLE is name of variable containing _space_ separated list of 12938# directories to be munged by the contents of PATH, which is string 12939# having a format: 12940# "DIR[:DIR]:" 12941# string "DIR[ DIR]" will be prepended to VARIABLE 12942# ":DIR[:DIR]" 12943# string "DIR[ DIR]" will be appended to VARIABLE 12944# "DIRP[:DIRP]::[DIRA:]DIRA" 12945# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 12946# "DIRA[ DIRA]" will be appended to VARIABLE 12947# "DIR[:DIR]" 12948# VARIABLE will be replaced by "DIR[ DIR]" 12949func_munge_path_list () 12950{ 12951 case x$2 in 12952 x) 12953 ;; 12954 *:) 12955 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 12956 ;; 12957 x:*) 12958 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 12959 ;; 12960 *::*) 12961 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 12962 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 12963 ;; 12964 *) 12965 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 12966 ;; 12967 esac 12968} 12969 12970ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 12971" 12972if test "x$ac_cv_header_dlfcn_h" = xyes 12973then : 12974 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 12975 12976fi 12977 12978 12979 12980 12981 12982# Set options 12983 12984 12985 12986 enable_dlopen=no 12987 12988 12989 enable_win32_dll=no 12990 12991 12992 12993 # Check whether --enable-static was given. 12994if test ${enable_static+y} 12995then : 12996 enableval=$enable_static; p=${PACKAGE-default} 12997 case $enableval in 12998 yes) enable_static=yes ;; 12999 no) enable_static=no ;; 13000 *) 13001 enable_static=no 13002 # Look at the argument we got. We use all the common list separators. 13003 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 13004 for pkg in $enableval; do 13005 IFS=$lt_save_ifs 13006 if test "X$pkg" = "X$p"; then 13007 enable_static=yes 13008 fi 13009 done 13010 IFS=$lt_save_ifs 13011 ;; 13012 esac 13013else $as_nop 13014 enable_static=yes 13015fi 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026# Check whether --with-pic was given. 13027if test ${with_pic+y} 13028then : 13029 withval=$with_pic; lt_p=${PACKAGE-default} 13030 case $withval in 13031 yes|no) pic_mode=$withval ;; 13032 *) 13033 pic_mode=default 13034 # Look at the argument we got. We use all the common list separators. 13035 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 13036 for lt_pkg in $withval; do 13037 IFS=$lt_save_ifs 13038 if test "X$lt_pkg" = "X$lt_p"; then 13039 pic_mode=yes 13040 fi 13041 done 13042 IFS=$lt_save_ifs 13043 ;; 13044 esac 13045else $as_nop 13046 pic_mode=default 13047fi 13048 13049 13050 13051 13052 13053 13054 13055 13056 # Check whether --enable-fast-install was given. 13057if test ${enable_fast_install+y} 13058then : 13059 enableval=$enable_fast_install; p=${PACKAGE-default} 13060 case $enableval in 13061 yes) enable_fast_install=yes ;; 13062 no) enable_fast_install=no ;; 13063 *) 13064 enable_fast_install=no 13065 # Look at the argument we got. We use all the common list separators. 13066 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 13067 for pkg in $enableval; do 13068 IFS=$lt_save_ifs 13069 if test "X$pkg" = "X$p"; then 13070 enable_fast_install=yes 13071 fi 13072 done 13073 IFS=$lt_save_ifs 13074 ;; 13075 esac 13076else $as_nop 13077 enable_fast_install=yes 13078fi 13079 13080 13081 13082 13083 13084 13085 13086 13087 shared_archive_member_spec= 13088case $host,$enable_shared in 13089power*-*-aix[5-9]*,yes) 13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 13091printf %s "checking which variant of shared library versioning to provide... " >&6; } 13092 13093# Check whether --with-aix-soname was given. 13094if test ${with_aix_soname+y} 13095then : 13096 withval=$with_aix_soname; case $withval in 13097 aix|svr4|both) 13098 ;; 13099 *) 13100 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 13101 ;; 13102 esac 13103 lt_cv_with_aix_soname=$with_aix_soname 13104else $as_nop 13105 if test ${lt_cv_with_aix_soname+y} 13106then : 13107 printf %s "(cached) " >&6 13108else $as_nop 13109 lt_cv_with_aix_soname=aix 13110fi 13111 13112 with_aix_soname=$lt_cv_with_aix_soname 13113fi 13114 13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 13116printf "%s\n" "$with_aix_soname" >&6; } 13117 if test aix != "$with_aix_soname"; then 13118 # For the AIX way of multilib, we name the shared archive member 13119 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 13120 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 13121 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 13122 # the AIX toolchain works better with OBJECT_MODE set (default 32). 13123 if test 64 = "${OBJECT_MODE-32}"; then 13124 shared_archive_member_spec=shr_64 13125 else 13126 shared_archive_member_spec=shr 13127 fi 13128 fi 13129 ;; 13130*) 13131 with_aix_soname=aix 13132 ;; 13133esac 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144# This can be used to rebuild libtool when needed 13145LIBTOOL_DEPS=$ltmain 13146 13147# Always use our own libtool. 13148LIBTOOL='$(SHELL) $(top_builddir)/libtool' 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179test -z "$LN_S" && LN_S="ln -s" 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194if test -n "${ZSH_VERSION+set}"; then 13195 setopt NO_GLOB_SUBST 13196fi 13197 13198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13199printf %s "checking for objdir... " >&6; } 13200if test ${lt_cv_objdir+y} 13201then : 13202 printf %s "(cached) " >&6 13203else $as_nop 13204 rm -f .libs 2>/dev/null 13205mkdir .libs 2>/dev/null 13206if test -d .libs; then 13207 lt_cv_objdir=.libs 13208else 13209 # MS-DOS does not allow filenames that begin with a dot. 13210 lt_cv_objdir=_libs 13211fi 13212rmdir .libs 2>/dev/null 13213fi 13214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13215printf "%s\n" "$lt_cv_objdir" >&6; } 13216objdir=$lt_cv_objdir 13217 13218 13219 13220 13221 13222printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 13223 13224 13225 13226 13227case $host_os in 13228aix3*) 13229 # AIX sometimes has problems with the GCC collect2 program. For some 13230 # reason, if we set the COLLECT_NAMES environment variable, the problems 13231 # vanish in a puff of smoke. 13232 if test set != "${COLLECT_NAMES+set}"; then 13233 COLLECT_NAMES= 13234 export COLLECT_NAMES 13235 fi 13236 ;; 13237esac 13238 13239# Global variables: 13240ofile=libtool 13241can_build_shared=yes 13242 13243# All known linkers require a '.a' archive for static linking (except MSVC, 13244# which needs '.lib'). 13245libext=a 13246 13247with_gnu_ld=$lt_cv_prog_gnu_ld 13248 13249old_CC=$CC 13250old_CFLAGS=$CFLAGS 13251 13252# Set sane defaults for various variables 13253test -z "$CC" && CC=cc 13254test -z "$LTCC" && LTCC=$CC 13255test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 13256test -z "$LD" && LD=ld 13257test -z "$ac_objext" && ac_objext=o 13258 13259func_cc_basename $compiler 13260cc_basename=$func_cc_basename_result 13261 13262 13263# Only perform the check for file, if the check method requires it 13264test -z "$MAGIC_CMD" && MAGIC_CMD=file 13265case $deplibs_check_method in 13266file_magic*) 13267 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 13268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 13269printf %s "checking for ${ac_tool_prefix}file... " >&6; } 13270if test ${lt_cv_path_MAGIC_CMD+y} 13271then : 13272 printf %s "(cached) " >&6 13273else $as_nop 13274 case $MAGIC_CMD in 13275[\\/*] | ?:[\\/]*) 13276 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 13277 ;; 13278*) 13279 lt_save_MAGIC_CMD=$MAGIC_CMD 13280 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13281 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13282 for ac_dir in $ac_dummy; do 13283 IFS=$lt_save_ifs 13284 test -z "$ac_dir" && ac_dir=. 13285 if test -f "$ac_dir/${ac_tool_prefix}file"; then 13286 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 13287 if test -n "$file_magic_test_file"; then 13288 case $deplibs_check_method in 13289 "file_magic "*) 13290 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13291 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13292 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13293 $EGREP "$file_magic_regex" > /dev/null; then 13294 : 13295 else 13296 cat <<_LT_EOF 1>&2 13297 13298*** Warning: the command libtool uses to detect shared libraries, 13299*** $file_magic_cmd, produces output that libtool cannot recognize. 13300*** The result is that libtool may fail to recognize shared libraries 13301*** as such. This will affect the creation of libtool libraries that 13302*** depend on shared libraries, but programs linked with such libtool 13303*** libraries will work regardless of this problem. Nevertheless, you 13304*** may want to report the problem to your system manager and/or to 13305*** bug-libtool@gnu.org 13306 13307_LT_EOF 13308 fi ;; 13309 esac 13310 fi 13311 break 13312 fi 13313 done 13314 IFS=$lt_save_ifs 13315 MAGIC_CMD=$lt_save_MAGIC_CMD 13316 ;; 13317esac 13318fi 13319 13320MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13321if test -n "$MAGIC_CMD"; then 13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13323printf "%s\n" "$MAGIC_CMD" >&6; } 13324else 13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13326printf "%s\n" "no" >&6; } 13327fi 13328 13329 13330 13331 13332 13333if test -z "$lt_cv_path_MAGIC_CMD"; then 13334 if test -n "$ac_tool_prefix"; then 13335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 13336printf %s "checking for file... " >&6; } 13337if test ${lt_cv_path_MAGIC_CMD+y} 13338then : 13339 printf %s "(cached) " >&6 13340else $as_nop 13341 case $MAGIC_CMD in 13342[\\/*] | ?:[\\/]*) 13343 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 13344 ;; 13345*) 13346 lt_save_MAGIC_CMD=$MAGIC_CMD 13347 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13349 for ac_dir in $ac_dummy; do 13350 IFS=$lt_save_ifs 13351 test -z "$ac_dir" && ac_dir=. 13352 if test -f "$ac_dir/file"; then 13353 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 13354 if test -n "$file_magic_test_file"; then 13355 case $deplibs_check_method in 13356 "file_magic "*) 13357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13358 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13360 $EGREP "$file_magic_regex" > /dev/null; then 13361 : 13362 else 13363 cat <<_LT_EOF 1>&2 13364 13365*** Warning: the command libtool uses to detect shared libraries, 13366*** $file_magic_cmd, produces output that libtool cannot recognize. 13367*** The result is that libtool may fail to recognize shared libraries 13368*** as such. This will affect the creation of libtool libraries that 13369*** depend on shared libraries, but programs linked with such libtool 13370*** libraries will work regardless of this problem. Nevertheless, you 13371*** may want to report the problem to your system manager and/or to 13372*** bug-libtool@gnu.org 13373 13374_LT_EOF 13375 fi ;; 13376 esac 13377 fi 13378 break 13379 fi 13380 done 13381 IFS=$lt_save_ifs 13382 MAGIC_CMD=$lt_save_MAGIC_CMD 13383 ;; 13384esac 13385fi 13386 13387MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13388if test -n "$MAGIC_CMD"; then 13389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13390printf "%s\n" "$MAGIC_CMD" >&6; } 13391else 13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13393printf "%s\n" "no" >&6; } 13394fi 13395 13396 13397 else 13398 MAGIC_CMD=: 13399 fi 13400fi 13401 13402 fi 13403 ;; 13404esac 13405 13406# Use C for the default configuration in the libtool script 13407 13408lt_save_CC=$CC 13409ac_ext=c 13410ac_cpp='$CPP $CPPFLAGS' 13411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13413ac_compiler_gnu=$ac_cv_c_compiler_gnu 13414 13415 13416# Source file extension for C test sources. 13417ac_ext=c 13418 13419# Object file extension for compiled C test sources. 13420objext=o 13421objext=$objext 13422 13423# Code to be used in simple compile tests 13424lt_simple_compile_test_code="int some_variable = 0;" 13425 13426# Code to be used in simple link tests 13427lt_simple_link_test_code='int main(){return(0);}' 13428 13429 13430 13431 13432 13433 13434 13435# If no C compiler was specified, use CC. 13436LTCC=${LTCC-"$CC"} 13437 13438# If no C compiler flags were specified, use CFLAGS. 13439LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13440 13441# Allow CC to be a program name with arguments. 13442compiler=$CC 13443 13444# Save the default compiler, since it gets overwritten when the other 13445# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 13446compiler_DEFAULT=$CC 13447 13448# save warnings/boilerplate of simple test code 13449ac_outfile=conftest.$ac_objext 13450echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13451eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13452_lt_compiler_boilerplate=`cat conftest.err` 13453$RM conftest* 13454 13455ac_outfile=conftest.$ac_objext 13456echo "$lt_simple_link_test_code" >conftest.$ac_ext 13457eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13458_lt_linker_boilerplate=`cat conftest.err` 13459$RM -r conftest* 13460 13461 13462## CAVEAT EMPTOR: 13463## There is no encapsulation within the following macros, do not change 13464## the running order or otherwise move them around unless you know exactly 13465## what you are doing... 13466if test -n "$compiler"; then 13467 13468lt_prog_compiler_no_builtin_flag= 13469 13470if test yes = "$GCC"; then 13471 case $cc_basename in 13472 nvcc*) 13473 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 13474 *) 13475 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 13476 esac 13477 13478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 13479printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 13480if test ${lt_cv_prog_compiler_rtti_exceptions+y} 13481then : 13482 printf %s "(cached) " >&6 13483else $as_nop 13484 lt_cv_prog_compiler_rtti_exceptions=no 13485 ac_outfile=conftest.$ac_objext 13486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13487 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 13488 # Insert the option either (1) after the last *FLAGS variable, or 13489 # (2) before a word containing "conftest.", or (3) at the end. 13490 # Note that $ac_compile itself does not contain backslashes and begins 13491 # with a dollar sign (not a hyphen), so the echo should work correctly. 13492 # The option is referenced via a variable to avoid confusing sed. 13493 lt_compile=`echo "$ac_compile" | $SED \ 13494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13496 -e 's:$: $lt_compiler_flag:'` 13497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13498 (eval "$lt_compile" 2>conftest.err) 13499 ac_status=$? 13500 cat conftest.err >&5 13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13502 if (exit $ac_status) && test -s "$ac_outfile"; then 13503 # The compiler can only warn and ignore the option if not recognized 13504 # So say no if there are warnings other than the usual output. 13505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13508 lt_cv_prog_compiler_rtti_exceptions=yes 13509 fi 13510 fi 13511 $RM conftest* 13512 13513fi 13514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 13515printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 13516 13517if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 13518 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 13519else 13520 : 13521fi 13522 13523fi 13524 13525 13526 13527 13528 13529 13530 lt_prog_compiler_wl= 13531lt_prog_compiler_pic= 13532lt_prog_compiler_static= 13533 13534 13535 if test yes = "$GCC"; then 13536 lt_prog_compiler_wl='-Wl,' 13537 lt_prog_compiler_static='-static' 13538 13539 case $host_os in 13540 aix*) 13541 # All AIX code is PIC. 13542 if test ia64 = "$host_cpu"; then 13543 # AIX 5 now supports IA64 processor 13544 lt_prog_compiler_static='-Bstatic' 13545 fi 13546 lt_prog_compiler_pic='-fPIC' 13547 ;; 13548 13549 amigaos*) 13550 case $host_cpu in 13551 powerpc) 13552 # see comment about AmigaOS4 .so support 13553 lt_prog_compiler_pic='-fPIC' 13554 ;; 13555 m68k) 13556 # FIXME: we need at least 68020 code to build shared libraries, but 13557 # adding the '-m68020' flag to GCC prevents building anything better, 13558 # like '-m68040'. 13559 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 13560 ;; 13561 esac 13562 ;; 13563 13564 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13565 # PIC is the default for these OSes. 13566 ;; 13567 13568 mingw* | cygwin* | pw32* | os2* | cegcc*) 13569 # This hack is so that the source file can tell whether it is being 13570 # built for inclusion in a dll (and should export symbols for example). 13571 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13572 # (--disable-auto-import) libraries 13573 lt_prog_compiler_pic='-DDLL_EXPORT' 13574 case $host_os in 13575 os2*) 13576 lt_prog_compiler_static='$wl-static' 13577 ;; 13578 esac 13579 ;; 13580 13581 darwin* | rhapsody*) 13582 # PIC is the default on this platform 13583 # Common symbols not allowed in MH_DYLIB files 13584 lt_prog_compiler_pic='-fno-common' 13585 ;; 13586 13587 haiku*) 13588 # PIC is the default for Haiku. 13589 # The "-static" flag exists, but is broken. 13590 lt_prog_compiler_static= 13591 ;; 13592 13593 hpux*) 13594 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13595 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13596 # sets the default TLS model and affects inlining. 13597 case $host_cpu in 13598 hppa*64*) 13599 # +Z the default 13600 ;; 13601 *) 13602 lt_prog_compiler_pic='-fPIC' 13603 ;; 13604 esac 13605 ;; 13606 13607 interix[3-9]*) 13608 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13609 # Instead, we relocate shared libraries at runtime. 13610 ;; 13611 13612 msdosdjgpp*) 13613 # Just because we use GCC doesn't mean we suddenly get shared libraries 13614 # on systems that don't support them. 13615 lt_prog_compiler_can_build_shared=no 13616 enable_shared=no 13617 ;; 13618 13619 *nto* | *qnx*) 13620 # QNX uses GNU C++, but need to define -shared option too, otherwise 13621 # it will coredump. 13622 lt_prog_compiler_pic='-fPIC -shared' 13623 ;; 13624 13625 sysv4*MP*) 13626 if test -d /usr/nec; then 13627 lt_prog_compiler_pic=-Kconform_pic 13628 fi 13629 ;; 13630 13631 *) 13632 lt_prog_compiler_pic='-fPIC' 13633 ;; 13634 esac 13635 13636 case $cc_basename in 13637 nvcc*) # Cuda Compiler Driver 2.2 13638 lt_prog_compiler_wl='-Xlinker ' 13639 if test -n "$lt_prog_compiler_pic"; then 13640 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 13641 fi 13642 ;; 13643 esac 13644 else 13645 # PORTME Check for flag to pass linker flags through the system compiler. 13646 case $host_os in 13647 aix*) 13648 lt_prog_compiler_wl='-Wl,' 13649 if test ia64 = "$host_cpu"; then 13650 # AIX 5 now supports IA64 processor 13651 lt_prog_compiler_static='-Bstatic' 13652 else 13653 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 13654 fi 13655 ;; 13656 13657 darwin* | rhapsody*) 13658 # PIC is the default on this platform 13659 # Common symbols not allowed in MH_DYLIB files 13660 lt_prog_compiler_pic='-fno-common' 13661 case $cc_basename in 13662 nagfor*) 13663 # NAG Fortran compiler 13664 lt_prog_compiler_wl='-Wl,-Wl,,' 13665 lt_prog_compiler_pic='-PIC' 13666 lt_prog_compiler_static='-Bstatic' 13667 ;; 13668 esac 13669 ;; 13670 13671 mingw* | cygwin* | pw32* | os2* | cegcc*) 13672 # This hack is so that the source file can tell whether it is being 13673 # built for inclusion in a dll (and should export symbols for example). 13674 lt_prog_compiler_pic='-DDLL_EXPORT' 13675 case $host_os in 13676 os2*) 13677 lt_prog_compiler_static='$wl-static' 13678 ;; 13679 esac 13680 ;; 13681 13682 hpux9* | hpux10* | hpux11*) 13683 lt_prog_compiler_wl='-Wl,' 13684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13685 # not for PA HP-UX. 13686 case $host_cpu in 13687 hppa*64*|ia64*) 13688 # +Z the default 13689 ;; 13690 *) 13691 lt_prog_compiler_pic='+Z' 13692 ;; 13693 esac 13694 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13695 lt_prog_compiler_static='$wl-a ${wl}archive' 13696 ;; 13697 13698 irix5* | irix6* | nonstopux*) 13699 lt_prog_compiler_wl='-Wl,' 13700 # PIC (with -KPIC) is the default. 13701 lt_prog_compiler_static='-non_shared' 13702 ;; 13703 13704 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13705 case $cc_basename in 13706 # old Intel for x86_64, which still supported -KPIC. 13707 ecc*) 13708 lt_prog_compiler_wl='-Wl,' 13709 lt_prog_compiler_pic='-KPIC' 13710 lt_prog_compiler_static='-static' 13711 ;; 13712 # flang / f18. f95 an alias for gfortran or flang on Debian 13713 flang* | f18* | f95*) 13714 lt_prog_compiler_wl='-Wl,' 13715 lt_prog_compiler_pic='-fPIC' 13716 lt_prog_compiler_static='-static' 13717 ;; 13718 # icc used to be incompatible with GCC. 13719 # ICC 10 doesn't accept -KPIC any more. 13720 icc* | ifort*) 13721 lt_prog_compiler_wl='-Wl,' 13722 lt_prog_compiler_pic='-fPIC' 13723 lt_prog_compiler_static='-static' 13724 ;; 13725 # Lahey Fortran 8.1. 13726 lf95*) 13727 lt_prog_compiler_wl='-Wl,' 13728 lt_prog_compiler_pic='--shared' 13729 lt_prog_compiler_static='--static' 13730 ;; 13731 nagfor*) 13732 # NAG Fortran compiler 13733 lt_prog_compiler_wl='-Wl,-Wl,,' 13734 lt_prog_compiler_pic='-PIC' 13735 lt_prog_compiler_static='-Bstatic' 13736 ;; 13737 tcc*) 13738 # Fabrice Bellard et al's Tiny C Compiler 13739 lt_prog_compiler_wl='-Wl,' 13740 lt_prog_compiler_pic='-fPIC' 13741 lt_prog_compiler_static='-static' 13742 ;; 13743 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13744 # Portland Group compilers (*not* the Pentium gcc compiler, 13745 # which looks to be a dead project) 13746 lt_prog_compiler_wl='-Wl,' 13747 lt_prog_compiler_pic='-fpic' 13748 lt_prog_compiler_static='-Bstatic' 13749 ;; 13750 ccc*) 13751 lt_prog_compiler_wl='-Wl,' 13752 # All Alpha code is PIC. 13753 lt_prog_compiler_static='-non_shared' 13754 ;; 13755 xl* | bgxl* | bgf* | mpixl*) 13756 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13757 lt_prog_compiler_wl='-Wl,' 13758 lt_prog_compiler_pic='-qpic' 13759 lt_prog_compiler_static='-qstaticlink' 13760 ;; 13761 *) 13762 case `$CC -V 2>&1 | sed 5q` in 13763 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13764 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13765 lt_prog_compiler_pic='-KPIC' 13766 lt_prog_compiler_static='-Bstatic' 13767 lt_prog_compiler_wl='' 13768 ;; 13769 *Sun\ F* | *Sun*Fortran*) 13770 lt_prog_compiler_pic='-KPIC' 13771 lt_prog_compiler_static='-Bstatic' 13772 lt_prog_compiler_wl='-Qoption ld ' 13773 ;; 13774 *Sun\ C*) 13775 # Sun C 5.9 13776 lt_prog_compiler_pic='-KPIC' 13777 lt_prog_compiler_static='-Bstatic' 13778 lt_prog_compiler_wl='-Wl,' 13779 ;; 13780 *Intel*\ [CF]*Compiler*) 13781 lt_prog_compiler_wl='-Wl,' 13782 lt_prog_compiler_pic='-fPIC' 13783 lt_prog_compiler_static='-static' 13784 ;; 13785 *Portland\ Group*) 13786 lt_prog_compiler_wl='-Wl,' 13787 lt_prog_compiler_pic='-fpic' 13788 lt_prog_compiler_static='-Bstatic' 13789 ;; 13790 esac 13791 ;; 13792 esac 13793 ;; 13794 13795 newsos6) 13796 lt_prog_compiler_pic='-KPIC' 13797 lt_prog_compiler_static='-Bstatic' 13798 ;; 13799 13800 *nto* | *qnx*) 13801 # QNX uses GNU C++, but need to define -shared option too, otherwise 13802 # it will coredump. 13803 lt_prog_compiler_pic='-fPIC -shared' 13804 ;; 13805 13806 osf3* | osf4* | osf5*) 13807 lt_prog_compiler_wl='-Wl,' 13808 # All OSF/1 code is PIC. 13809 lt_prog_compiler_static='-non_shared' 13810 ;; 13811 13812 rdos*) 13813 lt_prog_compiler_static='-non_shared' 13814 ;; 13815 13816 solaris*) 13817 lt_prog_compiler_pic='-KPIC' 13818 lt_prog_compiler_static='-Bstatic' 13819 case $cc_basename in 13820 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13821 lt_prog_compiler_wl='-Qoption ld ';; 13822 *) 13823 lt_prog_compiler_wl='-Wl,';; 13824 esac 13825 ;; 13826 13827 sunos4*) 13828 lt_prog_compiler_wl='-Qoption ld ' 13829 lt_prog_compiler_pic='-PIC' 13830 lt_prog_compiler_static='-Bstatic' 13831 ;; 13832 13833 sysv4 | sysv4.2uw2* | sysv4.3*) 13834 lt_prog_compiler_wl='-Wl,' 13835 lt_prog_compiler_pic='-KPIC' 13836 lt_prog_compiler_static='-Bstatic' 13837 ;; 13838 13839 sysv4*MP*) 13840 if test -d /usr/nec; then 13841 lt_prog_compiler_pic='-Kconform_pic' 13842 lt_prog_compiler_static='-Bstatic' 13843 fi 13844 ;; 13845 13846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13847 lt_prog_compiler_wl='-Wl,' 13848 lt_prog_compiler_pic='-KPIC' 13849 lt_prog_compiler_static='-Bstatic' 13850 ;; 13851 13852 unicos*) 13853 lt_prog_compiler_wl='-Wl,' 13854 lt_prog_compiler_can_build_shared=no 13855 ;; 13856 13857 uts4*) 13858 lt_prog_compiler_pic='-pic' 13859 lt_prog_compiler_static='-Bstatic' 13860 ;; 13861 13862 *) 13863 lt_prog_compiler_can_build_shared=no 13864 ;; 13865 esac 13866 fi 13867 13868case $host_os in 13869 # For platforms that do not support PIC, -DPIC is meaningless: 13870 *djgpp*) 13871 lt_prog_compiler_pic= 13872 ;; 13873 *) 13874 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13875 ;; 13876esac 13877 13878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13879printf %s "checking for $compiler option to produce PIC... " >&6; } 13880if test ${lt_cv_prog_compiler_pic+y} 13881then : 13882 printf %s "(cached) " >&6 13883else $as_nop 13884 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 13885fi 13886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13887printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 13888lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13889 13890# 13891# Check to make sure the PIC flag actually works. 13892# 13893if test -n "$lt_prog_compiler_pic"; then 13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13895printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13896if test ${lt_cv_prog_compiler_pic_works+y} 13897then : 13898 printf %s "(cached) " >&6 13899else $as_nop 13900 lt_cv_prog_compiler_pic_works=no 13901 ac_outfile=conftest.$ac_objext 13902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13903 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13904 # Insert the option either (1) after the last *FLAGS variable, or 13905 # (2) before a word containing "conftest.", or (3) at the end. 13906 # Note that $ac_compile itself does not contain backslashes and begins 13907 # with a dollar sign (not a hyphen), so the echo should work correctly. 13908 # The option is referenced via a variable to avoid confusing sed. 13909 lt_compile=`echo "$ac_compile" | $SED \ 13910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13912 -e 's:$: $lt_compiler_flag:'` 13913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13914 (eval "$lt_compile" 2>conftest.err) 13915 ac_status=$? 13916 cat conftest.err >&5 13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13918 if (exit $ac_status) && test -s "$ac_outfile"; then 13919 # The compiler can only warn and ignore the option if not recognized 13920 # So say no if there are warnings other than the usual output. 13921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13924 lt_cv_prog_compiler_pic_works=yes 13925 fi 13926 fi 13927 $RM conftest* 13928 13929fi 13930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13931printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 13932 13933if test yes = "$lt_cv_prog_compiler_pic_works"; then 13934 case $lt_prog_compiler_pic in 13935 "" | " "*) ;; 13936 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13937 esac 13938else 13939 lt_prog_compiler_pic= 13940 lt_prog_compiler_can_build_shared=no 13941fi 13942 13943fi 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955# 13956# Check to make sure the static flag actually works. 13957# 13958wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13960printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13961if test ${lt_cv_prog_compiler_static_works+y} 13962then : 13963 printf %s "(cached) " >&6 13964else $as_nop 13965 lt_cv_prog_compiler_static_works=no 13966 save_LDFLAGS=$LDFLAGS 13967 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13968 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13970 # The linker can only warn and ignore the option if not recognized 13971 # So say no if there are warnings 13972 if test -s conftest.err; then 13973 # Append any errors to the config.log. 13974 cat conftest.err 1>&5 13975 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13977 if diff conftest.exp conftest.er2 >/dev/null; then 13978 lt_cv_prog_compiler_static_works=yes 13979 fi 13980 else 13981 lt_cv_prog_compiler_static_works=yes 13982 fi 13983 fi 13984 $RM -r conftest* 13985 LDFLAGS=$save_LDFLAGS 13986 13987fi 13988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13989printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 13990 13991if test yes = "$lt_cv_prog_compiler_static_works"; then 13992 : 13993else 13994 lt_prog_compiler_static= 13995fi 13996 13997 13998 13999 14000 14001 14002 14003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14004printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14005if test ${lt_cv_prog_compiler_c_o+y} 14006then : 14007 printf %s "(cached) " >&6 14008else $as_nop 14009 lt_cv_prog_compiler_c_o=no 14010 $RM -r conftest 2>/dev/null 14011 mkdir conftest 14012 cd conftest 14013 mkdir out 14014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14015 14016 lt_compiler_flag="-o out/conftest2.$ac_objext" 14017 # Insert the option either (1) after the last *FLAGS variable, or 14018 # (2) before a word containing "conftest.", or (3) at the end. 14019 # Note that $ac_compile itself does not contain backslashes and begins 14020 # with a dollar sign (not a hyphen), so the echo should work correctly. 14021 lt_compile=`echo "$ac_compile" | $SED \ 14022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14024 -e 's:$: $lt_compiler_flag:'` 14025 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14026 (eval "$lt_compile" 2>out/conftest.err) 14027 ac_status=$? 14028 cat out/conftest.err >&5 14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14030 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14031 then 14032 # The compiler can only warn and ignore the option if not recognized 14033 # So say no if there are warnings 14034 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14035 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14036 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14037 lt_cv_prog_compiler_c_o=yes 14038 fi 14039 fi 14040 chmod u+w . 2>&5 14041 $RM conftest* 14042 # SGI C++ compiler will create directory out/ii_files/ for 14043 # template instantiation 14044 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14045 $RM out/* && rmdir out 14046 cd .. 14047 $RM -r conftest 14048 $RM conftest* 14049 14050fi 14051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14052printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 14053 14054 14055 14056 14057 14058 14059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14060printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14061if test ${lt_cv_prog_compiler_c_o+y} 14062then : 14063 printf %s "(cached) " >&6 14064else $as_nop 14065 lt_cv_prog_compiler_c_o=no 14066 $RM -r conftest 2>/dev/null 14067 mkdir conftest 14068 cd conftest 14069 mkdir out 14070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14071 14072 lt_compiler_flag="-o out/conftest2.$ac_objext" 14073 # Insert the option either (1) after the last *FLAGS variable, or 14074 # (2) before a word containing "conftest.", or (3) at the end. 14075 # Note that $ac_compile itself does not contain backslashes and begins 14076 # with a dollar sign (not a hyphen), so the echo should work correctly. 14077 lt_compile=`echo "$ac_compile" | $SED \ 14078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14080 -e 's:$: $lt_compiler_flag:'` 14081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14082 (eval "$lt_compile" 2>out/conftest.err) 14083 ac_status=$? 14084 cat out/conftest.err >&5 14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14086 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14087 then 14088 # The compiler can only warn and ignore the option if not recognized 14089 # So say no if there are warnings 14090 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14091 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14092 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14093 lt_cv_prog_compiler_c_o=yes 14094 fi 14095 fi 14096 chmod u+w . 2>&5 14097 $RM conftest* 14098 # SGI C++ compiler will create directory out/ii_files/ for 14099 # template instantiation 14100 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14101 $RM out/* && rmdir out 14102 cd .. 14103 $RM -r conftest 14104 $RM conftest* 14105 14106fi 14107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14108printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 14109 14110 14111 14112 14113hard_links=nottested 14114if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 14115 # do not overwrite the value of need_locks provided by the user 14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14117printf %s "checking if we can lock with hard links... " >&6; } 14118 hard_links=yes 14119 $RM conftest* 14120 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14121 touch conftest.a 14122 ln conftest.a conftest.b 2>&5 || hard_links=no 14123 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14125printf "%s\n" "$hard_links" >&6; } 14126 if test no = "$hard_links"; then 14127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14128printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14129 need_locks=warn 14130 fi 14131else 14132 need_locks=no 14133fi 14134 14135 14136 14137 14138 14139 14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14141printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14142 14143 runpath_var= 14144 allow_undefined_flag= 14145 always_export_symbols=no 14146 archive_cmds= 14147 archive_expsym_cmds= 14148 compiler_needs_object=no 14149 enable_shared_with_static_runtimes=no 14150 export_dynamic_flag_spec= 14151 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14152 hardcode_automatic=no 14153 hardcode_direct=no 14154 hardcode_direct_absolute=no 14155 hardcode_libdir_flag_spec= 14156 hardcode_libdir_separator= 14157 hardcode_minus_L=no 14158 hardcode_shlibpath_var=unsupported 14159 inherit_rpath=no 14160 link_all_deplibs=unknown 14161 module_cmds= 14162 module_expsym_cmds= 14163 old_archive_from_new_cmds= 14164 old_archive_from_expsyms_cmds= 14165 thread_safe_flag_spec= 14166 whole_archive_flag_spec= 14167 # include_expsyms should be a list of space-separated symbols to be *always* 14168 # included in the symbol list 14169 include_expsyms= 14170 # exclude_expsyms can be an extended regexp of symbols to exclude 14171 # it will be wrapped by ' (' and ')$', so one must not match beginning or 14172 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 14173 # as well as any symbol that contains 'd'. 14174 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14175 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14176 # platforms (ab)use it in PIC code, but their linkers get confused if 14177 # the symbol is explicitly referenced. Since portable code cannot 14178 # rely on this symbol name, it's probably fine to never include it in 14179 # preloaded symbol tables. 14180 # Exclude shared library initialization/finalization symbols. 14181 extract_expsyms_cmds= 14182 14183 case $host_os in 14184 cygwin* | mingw* | pw32* | cegcc*) 14185 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14186 # When not using gcc, we currently assume that we are using 14187 # Microsoft Visual C++. 14188 if test yes != "$GCC"; then 14189 with_gnu_ld=no 14190 fi 14191 ;; 14192 interix*) 14193 # we just hope/assume this is gcc and not c89 (= MSVC++) 14194 with_gnu_ld=yes 14195 ;; 14196 openbsd* | bitrig*) 14197 with_gnu_ld=no 14198 ;; 14199 linux* | k*bsd*-gnu | gnu*) 14200 link_all_deplibs=no 14201 ;; 14202 esac 14203 14204 ld_shlibs=yes 14205 14206 # On some targets, GNU ld is compatible enough with the native linker 14207 # that we're better off using the native interface for both. 14208 lt_use_gnu_ld_interface=no 14209 if test yes = "$with_gnu_ld"; then 14210 case $host_os in 14211 aix*) 14212 # The AIX port of GNU ld has always aspired to compatibility 14213 # with the native linker. However, as the warning in the GNU ld 14214 # block says, versions before 2.19.5* couldn't really create working 14215 # shared libraries, regardless of the interface used. 14216 case `$LD -v 2>&1` in 14217 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14218 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14219 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14220 *) 14221 lt_use_gnu_ld_interface=yes 14222 ;; 14223 esac 14224 ;; 14225 *) 14226 lt_use_gnu_ld_interface=yes 14227 ;; 14228 esac 14229 fi 14230 14231 if test yes = "$lt_use_gnu_ld_interface"; then 14232 # If archive_cmds runs LD, not CC, wlarc should be empty 14233 wlarc='$wl' 14234 14235 # Set some defaults for GNU ld with shared library support. These 14236 # are reset later if shared libraries are not supported. Putting them 14237 # here allows them to be overridden if necessary. 14238 runpath_var=LD_RUN_PATH 14239 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14240 export_dynamic_flag_spec='$wl--export-dynamic' 14241 # ancient GNU ld didn't support --whole-archive et. al. 14242 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14243 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14244 else 14245 whole_archive_flag_spec= 14246 fi 14247 supports_anon_versioning=no 14248 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 14249 *GNU\ gold*) supports_anon_versioning=yes ;; 14250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14253 *\ 2.11.*) ;; # other 2.11 versions 14254 *) supports_anon_versioning=yes ;; 14255 esac 14256 14257 # See if GNU ld supports shared libraries. 14258 case $host_os in 14259 aix[3-9]*) 14260 # On AIX/PPC, the GNU linker is very broken 14261 if test ia64 != "$host_cpu"; then 14262 ld_shlibs=no 14263 cat <<_LT_EOF 1>&2 14264 14265*** Warning: the GNU linker, at least up to release 2.19, is reported 14266*** to be unable to reliably create shared libraries on AIX. 14267*** Therefore, libtool is disabling shared libraries support. If you 14268*** really care for shared libraries, you may want to install binutils 14269*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14270*** You will then need to restart the configuration process. 14271 14272_LT_EOF 14273 fi 14274 ;; 14275 14276 amigaos*) 14277 case $host_cpu in 14278 powerpc) 14279 # see comment about AmigaOS4 .so support 14280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14281 archive_expsym_cmds='' 14282 ;; 14283 m68k) 14284 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)' 14285 hardcode_libdir_flag_spec='-L$libdir' 14286 hardcode_minus_L=yes 14287 ;; 14288 esac 14289 ;; 14290 14291 beos*) 14292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14293 allow_undefined_flag=unsupported 14294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14295 # support --undefined. This deserves some investigation. FIXME 14296 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14297 else 14298 ld_shlibs=no 14299 fi 14300 ;; 14301 14302 cygwin* | mingw* | pw32* | cegcc*) 14303 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 14304 # as there is no search path for DLLs. 14305 hardcode_libdir_flag_spec='-L$libdir' 14306 export_dynamic_flag_spec='$wl--export-all-symbols' 14307 allow_undefined_flag=unsupported 14308 always_export_symbols=no 14309 enable_shared_with_static_runtimes=yes 14310 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' 14311 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14312 14313 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14315 # If the export-symbols file already is a .def file, use it as 14316 # is; otherwise, prepend EXPORTS... 14317 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14318 cp $export_symbols $output_objdir/$soname.def; 14319 else 14320 echo EXPORTS > $output_objdir/$soname.def; 14321 cat $export_symbols >> $output_objdir/$soname.def; 14322 fi~ 14323 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14324 else 14325 ld_shlibs=no 14326 fi 14327 ;; 14328 14329 haiku*) 14330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14331 link_all_deplibs=yes 14332 ;; 14333 14334 os2*) 14335 hardcode_libdir_flag_spec='-L$libdir' 14336 hardcode_minus_L=yes 14337 allow_undefined_flag=unsupported 14338 shrext_cmds=.dll 14339 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14340 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14341 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14342 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14343 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14344 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14345 emximp -o $lib $output_objdir/$libname.def' 14346 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14347 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14348 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14349 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14350 prefix_cmds="$SED"~ 14351 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14352 prefix_cmds="$prefix_cmds -e 1d"; 14353 fi~ 14354 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14355 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14356 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14357 emximp -o $lib $output_objdir/$libname.def' 14358 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14359 enable_shared_with_static_runtimes=yes 14360 ;; 14361 14362 interix[3-9]*) 14363 hardcode_direct=no 14364 hardcode_shlibpath_var=no 14365 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14366 export_dynamic_flag_spec='$wl-E' 14367 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14368 # Instead, shared libraries are loaded at an image base (0x10000000 by 14369 # default) and relocated if they conflict, which is a slow very memory 14370 # consuming and fragmenting process. To avoid this, we pick a random, 14371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14372 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14374 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' 14375 ;; 14376 14377 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 14378 tmp_diet=no 14379 if test linux-dietlibc = "$host_os"; then 14380 case $cc_basename in 14381 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14382 esac 14383 fi 14384 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14385 && test no = "$tmp_diet" 14386 then 14387 tmp_addflag=' $pic_flag' 14388 tmp_sharedflag='-shared' 14389 case $cc_basename,$host_cpu in 14390 pgcc*) # Portland Group C compiler 14391 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' 14392 tmp_addflag=' $pic_flag' 14393 ;; 14394 pgf77* | pgf90* | pgf95* | pgfortran*) 14395 # Portland Group f77 and f90 compilers 14396 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' 14397 tmp_addflag=' $pic_flag -Mnomain' ;; 14398 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14399 tmp_addflag=' -i_dynamic' ;; 14400 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14401 tmp_addflag=' -i_dynamic -nofor_main' ;; 14402 ifc* | ifort*) # Intel Fortran compiler 14403 tmp_addflag=' -nofor_main' ;; 14404 lf95*) # Lahey Fortran 8.1 14405 whole_archive_flag_spec= 14406 tmp_sharedflag='--shared' ;; 14407 nagfor*) # NAGFOR 5.3 14408 tmp_sharedflag='-Wl,-shared' ;; 14409 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14410 tmp_sharedflag='-qmkshrobj' 14411 tmp_addflag= ;; 14412 nvcc*) # Cuda Compiler Driver 2.2 14413 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' 14414 compiler_needs_object=yes 14415 ;; 14416 esac 14417 case `$CC -V 2>&1 | sed 5q` in 14418 *Sun\ C*) # Sun C 5.9 14419 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' 14420 compiler_needs_object=yes 14421 tmp_sharedflag='-G' ;; 14422 *Sun\ F*) # Sun Fortran 8.3 14423 tmp_sharedflag='-G' ;; 14424 esac 14425 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14426 14427 if test yes = "$supports_anon_versioning"; then 14428 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14430 echo "local: *; };" >> $output_objdir/$libname.ver~ 14431 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14432 fi 14433 14434 case $cc_basename in 14435 tcc*) 14436 export_dynamic_flag_spec='-rdynamic' 14437 ;; 14438 xlf* | bgf* | bgxlf* | mpixlf*) 14439 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 14440 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 14441 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14442 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 14443 if test yes = "$supports_anon_versioning"; then 14444 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14446 echo "local: *; };" >> $output_objdir/$libname.ver~ 14447 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 14448 fi 14449 ;; 14450 esac 14451 else 14452 ld_shlibs=no 14453 fi 14454 ;; 14455 14456 netbsd* | netbsdelf*-gnu) 14457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14458 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14459 wlarc= 14460 else 14461 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14462 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14463 fi 14464 ;; 14465 14466 solaris*) 14467 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 14468 ld_shlibs=no 14469 cat <<_LT_EOF 1>&2 14470 14471*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14472*** create shared libraries on Solaris systems. Therefore, libtool 14473*** is disabling shared libraries support. We urge you to upgrade GNU 14474*** binutils to release 2.9.1 or newer. Another option is to modify 14475*** your PATH or compiler configuration so that the native linker is 14476*** used, and then restart. 14477 14478_LT_EOF 14479 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14480 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14481 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14482 else 14483 ld_shlibs=no 14484 fi 14485 ;; 14486 14487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14488 case `$LD -v 2>&1` in 14489 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14490 ld_shlibs=no 14491 cat <<_LT_EOF 1>&2 14492 14493*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 14494*** reliably create shared libraries on SCO systems. Therefore, libtool 14495*** is disabling shared libraries support. We urge you to upgrade GNU 14496*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14497*** your PATH or compiler configuration so that the native linker is 14498*** used, and then restart. 14499 14500_LT_EOF 14501 ;; 14502 *) 14503 # For security reasons, it is highly recommended that you always 14504 # use absolute paths for naming shared libraries, and exclude the 14505 # DT_RUNPATH tag from executables and libraries. But doing so 14506 # requires that you compile everything twice, which is a pain. 14507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14511 else 14512 ld_shlibs=no 14513 fi 14514 ;; 14515 esac 14516 ;; 14517 14518 sunos4*) 14519 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14520 wlarc= 14521 hardcode_direct=yes 14522 hardcode_shlibpath_var=no 14523 ;; 14524 14525 *) 14526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14529 else 14530 ld_shlibs=no 14531 fi 14532 ;; 14533 esac 14534 14535 if test no = "$ld_shlibs"; then 14536 runpath_var= 14537 hardcode_libdir_flag_spec= 14538 export_dynamic_flag_spec= 14539 whole_archive_flag_spec= 14540 fi 14541 else 14542 # PORTME fill in a description of your system's linker (not GNU ld) 14543 case $host_os in 14544 aix3*) 14545 allow_undefined_flag=unsupported 14546 always_export_symbols=yes 14547 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' 14548 # Note: this linker hardcodes the directories in LIBPATH if there 14549 # are no directories specified by -L. 14550 hardcode_minus_L=yes 14551 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 14552 # Neither direct hardcoding nor static linking is supported with a 14553 # broken collect2. 14554 hardcode_direct=unsupported 14555 fi 14556 ;; 14557 14558 aix[4-9]*) 14559 if test ia64 = "$host_cpu"; then 14560 # On IA64, the linker does run time linking by default, so we don't 14561 # have to do anything special. 14562 aix_use_runtimelinking=no 14563 exp_sym_flag='-Bexport' 14564 no_entry_flag= 14565 else 14566 # If we're using GNU nm, then we don't want the "-C" option. 14567 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14568 # Without the "-l" option, or with the "-B" option, AIX nm treats 14569 # weak defined symbols like other global defined symbols, whereas 14570 # GNU nm marks them as "W". 14571 # While the 'weak' keyword is ignored in the Export File, we need 14572 # it in the Import File for the 'aix-soname' feature, so we have 14573 # to replace the "-B" option with "-P" for AIX nm. 14574 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14575 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' 14576 else 14577 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 14578 fi 14579 aix_use_runtimelinking=no 14580 14581 # Test if we are trying to use run time linking or normal 14582 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14583 # have runtime linking enabled, and use it for executables. 14584 # For shared libraries, we enable/disable runtime linking 14585 # depending on the kind of the shared library created - 14586 # when "with_aix_soname,aix_use_runtimelinking" is: 14587 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14588 # "aix,yes" lib.so shared, rtl:yes, for executables 14589 # lib.a static archive 14590 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14591 # lib.a(lib.so.V) shared, rtl:no, for executables 14592 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14593 # lib.a(lib.so.V) shared, rtl:no 14594 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14595 # lib.a static archive 14596 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14597 for ld_flag in $LDFLAGS; do 14598 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 14599 aix_use_runtimelinking=yes 14600 break 14601 fi 14602 done 14603 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14604 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14605 # so we don't have lib.a shared libs to link our executables. 14606 # We have to force runtime linking in this case. 14607 aix_use_runtimelinking=yes 14608 LDFLAGS="$LDFLAGS -Wl,-brtl" 14609 fi 14610 ;; 14611 esac 14612 14613 exp_sym_flag='-bexport' 14614 no_entry_flag='-bnoentry' 14615 fi 14616 14617 # When large executables or shared objects are built, AIX ld can 14618 # have problems creating the table of contents. If linking a library 14619 # or program results in "error TOC overflow" add -mminimal-toc to 14620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14622 14623 archive_cmds='' 14624 hardcode_direct=yes 14625 hardcode_direct_absolute=yes 14626 hardcode_libdir_separator=':' 14627 link_all_deplibs=yes 14628 file_list_spec='$wl-f,' 14629 case $with_aix_soname,$aix_use_runtimelinking in 14630 aix,*) ;; # traditional, no import file 14631 svr4,* | *,yes) # use import file 14632 # The Import File defines what to hardcode. 14633 hardcode_direct=no 14634 hardcode_direct_absolute=no 14635 ;; 14636 esac 14637 14638 if test yes = "$GCC"; then 14639 case $host_os in aix4.[012]|aix4.[012].*) 14640 # We only want to do this on AIX 4.2 and lower, the check 14641 # below for broken collect2 doesn't work under 4.3+ 14642 collect2name=`$CC -print-prog-name=collect2` 14643 if test -f "$collect2name" && 14644 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14645 then 14646 # We have reworked collect2 14647 : 14648 else 14649 # We have old collect2 14650 hardcode_direct=unsupported 14651 # It fails to find uninstalled libraries when the uninstalled 14652 # path is not listed in the libpath. Setting hardcode_minus_L 14653 # to unsupported forces relinking 14654 hardcode_minus_L=yes 14655 hardcode_libdir_flag_spec='-L$libdir' 14656 hardcode_libdir_separator= 14657 fi 14658 ;; 14659 esac 14660 shared_flag='-shared' 14661 if test yes = "$aix_use_runtimelinking"; then 14662 shared_flag="$shared_flag "'$wl-G' 14663 fi 14664 # Need to ensure runtime linking is disabled for the traditional 14665 # shared library, or the linker may eventually find shared libraries 14666 # /with/ Import File - we do not want to mix them. 14667 shared_flag_aix='-shared' 14668 shared_flag_svr4='-shared $wl-G' 14669 else 14670 # not using gcc 14671 if test ia64 = "$host_cpu"; then 14672 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14673 # chokes on -Wl,-G. The following line is correct: 14674 shared_flag='-G' 14675 else 14676 if test yes = "$aix_use_runtimelinking"; then 14677 shared_flag='$wl-G' 14678 else 14679 shared_flag='$wl-bM:SRE' 14680 fi 14681 shared_flag_aix='$wl-bM:SRE' 14682 shared_flag_svr4='$wl-G' 14683 fi 14684 fi 14685 14686 export_dynamic_flag_spec='$wl-bexpall' 14687 # It seems that -bexpall does not export symbols beginning with 14688 # underscore (_), so it is better to generate a list of symbols to export. 14689 always_export_symbols=yes 14690 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14691 # Warning - without using the other runtime loading flags (-brtl), 14692 # -berok will link without error, but may produce a broken library. 14693 allow_undefined_flag='-berok' 14694 # Determine the default libpath from the value encoded in an 14695 # empty executable. 14696 if test set = "${lt_cv_aix_libpath+set}"; then 14697 aix_libpath=$lt_cv_aix_libpath 14698else 14699 if test ${lt_cv_aix_libpath_+y} 14700then : 14701 printf %s "(cached) " >&6 14702else $as_nop 14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14704/* end confdefs.h. */ 14705 14706int 14707main (void) 14708{ 14709 14710 ; 14711 return 0; 14712} 14713_ACEOF 14714if ac_fn_c_try_link "$LINENO" 14715then : 14716 14717 lt_aix_libpath_sed=' 14718 /Import File Strings/,/^$/ { 14719 /^0/ { 14720 s/^0 *\([^ ]*\) *$/\1/ 14721 p 14722 } 14723 }' 14724 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14725 # Check for a 64-bit object if we didn't find anything. 14726 if test -z "$lt_cv_aix_libpath_"; then 14727 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14728 fi 14729fi 14730rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14731 conftest$ac_exeext conftest.$ac_ext 14732 if test -z "$lt_cv_aix_libpath_"; then 14733 lt_cv_aix_libpath_=/usr/lib:/lib 14734 fi 14735 14736fi 14737 14738 aix_libpath=$lt_cv_aix_libpath_ 14739fi 14740 14741 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14742 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 14743 else 14744 if test ia64 = "$host_cpu"; then 14745 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 14746 allow_undefined_flag="-z nodefs" 14747 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" 14748 else 14749 # Determine the default libpath from the value encoded in an 14750 # empty executable. 14751 if test set = "${lt_cv_aix_libpath+set}"; then 14752 aix_libpath=$lt_cv_aix_libpath 14753else 14754 if test ${lt_cv_aix_libpath_+y} 14755then : 14756 printf %s "(cached) " >&6 14757else $as_nop 14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14759/* end confdefs.h. */ 14760 14761int 14762main (void) 14763{ 14764 14765 ; 14766 return 0; 14767} 14768_ACEOF 14769if ac_fn_c_try_link "$LINENO" 14770then : 14771 14772 lt_aix_libpath_sed=' 14773 /Import File Strings/,/^$/ { 14774 /^0/ { 14775 s/^0 *\([^ ]*\) *$/\1/ 14776 p 14777 } 14778 }' 14779 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14780 # Check for a 64-bit object if we didn't find anything. 14781 if test -z "$lt_cv_aix_libpath_"; then 14782 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14783 fi 14784fi 14785rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14786 conftest$ac_exeext conftest.$ac_ext 14787 if test -z "$lt_cv_aix_libpath_"; then 14788 lt_cv_aix_libpath_=/usr/lib:/lib 14789 fi 14790 14791fi 14792 14793 aix_libpath=$lt_cv_aix_libpath_ 14794fi 14795 14796 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14797 # Warning - without using the other run time loading flags, 14798 # -berok will link without error, but may produce a broken library. 14799 no_undefined_flag=' $wl-bernotok' 14800 allow_undefined_flag=' $wl-berok' 14801 if test yes = "$with_gnu_ld"; then 14802 # We only use this code for GNU lds that support --whole-archive. 14803 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 14804 else 14805 # Exported symbols can be pulled into shared objects from archives 14806 whole_archive_flag_spec='$convenience' 14807 fi 14808 archive_cmds_need_lc=yes 14809 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14810 # -brtl affects multiple linker settings, -berok does not and is overridden later 14811 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14812 if test svr4 != "$with_aix_soname"; then 14813 # This is similar to how AIX traditionally builds its shared libraries. 14814 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' 14815 fi 14816 if test aix != "$with_aix_soname"; then 14817 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' 14818 else 14819 # used by -dlpreopen to get the symbols 14820 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14821 fi 14822 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 14823 fi 14824 fi 14825 ;; 14826 14827 amigaos*) 14828 case $host_cpu in 14829 powerpc) 14830 # see comment about AmigaOS4 .so support 14831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14832 archive_expsym_cmds='' 14833 ;; 14834 m68k) 14835 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)' 14836 hardcode_libdir_flag_spec='-L$libdir' 14837 hardcode_minus_L=yes 14838 ;; 14839 esac 14840 ;; 14841 14842 bsdi[45]*) 14843 export_dynamic_flag_spec=-rdynamic 14844 ;; 14845 14846 cygwin* | mingw* | pw32* | cegcc*) 14847 # When not using gcc, we currently assume that we are using 14848 # Microsoft Visual C++. 14849 # hardcode_libdir_flag_spec is actually meaningless, as there is 14850 # no search path for DLLs. 14851 case $cc_basename in 14852 cl*) 14853 # Native MSVC 14854 hardcode_libdir_flag_spec=' ' 14855 allow_undefined_flag=unsupported 14856 always_export_symbols=yes 14857 file_list_spec='@' 14858 # Tell ltmain to make .lib files, not .a files. 14859 libext=lib 14860 # Tell ltmain to make .dll files, not .so files. 14861 shrext_cmds=.dll 14862 # FIXME: Setting linknames here is a bad hack. 14863 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14864 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14865 cp "$export_symbols" "$output_objdir/$soname.def"; 14866 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14867 else 14868 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14869 fi~ 14870 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14871 linknames=' 14872 # The linker will not automatically build a static lib if we build a DLL. 14873 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 14874 enable_shared_with_static_runtimes=yes 14875 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14876 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14877 # Don't use ranlib 14878 old_postinstall_cmds='chmod 644 $oldlib' 14879 postlink_cmds='lt_outputfile="@OUTPUT@"~ 14880 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14881 case $lt_outputfile in 14882 *.exe|*.EXE) ;; 14883 *) 14884 lt_outputfile=$lt_outputfile.exe 14885 lt_tool_outputfile=$lt_tool_outputfile.exe 14886 ;; 14887 esac~ 14888 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14889 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14890 $RM "$lt_outputfile.manifest"; 14891 fi' 14892 ;; 14893 *) 14894 # Assume MSVC wrapper 14895 hardcode_libdir_flag_spec=' ' 14896 allow_undefined_flag=unsupported 14897 # Tell ltmain to make .lib files, not .a files. 14898 libext=lib 14899 # Tell ltmain to make .dll files, not .so files. 14900 shrext_cmds=.dll 14901 # FIXME: Setting linknames here is a bad hack. 14902 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14903 # The linker will automatically build a .lib file if we build a DLL. 14904 old_archive_from_new_cmds='true' 14905 # FIXME: Should let the user specify the lib program. 14906 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 14907 enable_shared_with_static_runtimes=yes 14908 ;; 14909 esac 14910 ;; 14911 14912 darwin* | rhapsody*) 14913 14914 14915 archive_cmds_need_lc=no 14916 hardcode_direct=no 14917 hardcode_automatic=yes 14918 hardcode_shlibpath_var=unsupported 14919 if test yes = "$lt_cv_ld_force_load"; then 14920 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\"`' 14921 14922 else 14923 whole_archive_flag_spec='' 14924 fi 14925 link_all_deplibs=yes 14926 allow_undefined_flag=$_lt_dar_allow_undefined 14927 case $cc_basename in 14928 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14929 *) _lt_dar_can_shared=$GCC ;; 14930 esac 14931 if test yes = "$_lt_dar_can_shared"; then 14932 output_verbose_link_cmd=func_echo_all 14933 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14934 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14935 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" 14936 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" 14937 14938 else 14939 ld_shlibs=no 14940 fi 14941 14942 ;; 14943 14944 dgux*) 14945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14946 hardcode_libdir_flag_spec='-L$libdir' 14947 hardcode_shlibpath_var=no 14948 ;; 14949 14950 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14951 # support. Future versions do this automatically, but an explicit c++rt0.o 14952 # does not break anything, and helps significantly (at the cost of a little 14953 # extra space). 14954 freebsd2.2*) 14955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14956 hardcode_libdir_flag_spec='-R$libdir' 14957 hardcode_direct=yes 14958 hardcode_shlibpath_var=no 14959 ;; 14960 14961 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14962 freebsd2.*) 14963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14964 hardcode_direct=yes 14965 hardcode_minus_L=yes 14966 hardcode_shlibpath_var=no 14967 ;; 14968 14969 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14970 freebsd* | dragonfly*) 14971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14972 hardcode_libdir_flag_spec='-R$libdir' 14973 hardcode_direct=yes 14974 hardcode_shlibpath_var=no 14975 ;; 14976 14977 hpux9*) 14978 if test yes = "$GCC"; then 14979 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' 14980 else 14981 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' 14982 fi 14983 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14984 hardcode_libdir_separator=: 14985 hardcode_direct=yes 14986 14987 # hardcode_minus_L: Not really in the search PATH, 14988 # but as the default location of the library. 14989 hardcode_minus_L=yes 14990 export_dynamic_flag_spec='$wl-E' 14991 ;; 14992 14993 hpux10*) 14994 if test yes,no = "$GCC,$with_gnu_ld"; then 14995 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14996 else 14997 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14998 fi 14999 if test no = "$with_gnu_ld"; then 15000 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 15001 hardcode_libdir_separator=: 15002 hardcode_direct=yes 15003 hardcode_direct_absolute=yes 15004 export_dynamic_flag_spec='$wl-E' 15005 # hardcode_minus_L: Not really in the search PATH, 15006 # but as the default location of the library. 15007 hardcode_minus_L=yes 15008 fi 15009 ;; 15010 15011 hpux11*) 15012 if test yes,no = "$GCC,$with_gnu_ld"; then 15013 case $host_cpu in 15014 hppa*64*) 15015 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 15016 ;; 15017 ia64*) 15018 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15019 ;; 15020 *) 15021 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15022 ;; 15023 esac 15024 else 15025 case $host_cpu in 15026 hppa*64*) 15027 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 15028 ;; 15029 ia64*) 15030 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15031 ;; 15032 *) 15033 15034 # Older versions of the 11.00 compiler do not understand -b yet 15035 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15037printf %s "checking if $CC understands -b... " >&6; } 15038if test ${lt_cv_prog_compiler__b+y} 15039then : 15040 printf %s "(cached) " >&6 15041else $as_nop 15042 lt_cv_prog_compiler__b=no 15043 save_LDFLAGS=$LDFLAGS 15044 LDFLAGS="$LDFLAGS -b" 15045 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15046 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15047 # The linker can only warn and ignore the option if not recognized 15048 # So say no if there are warnings 15049 if test -s conftest.err; then 15050 # Append any errors to the config.log. 15051 cat conftest.err 1>&5 15052 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15053 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15054 if diff conftest.exp conftest.er2 >/dev/null; then 15055 lt_cv_prog_compiler__b=yes 15056 fi 15057 else 15058 lt_cv_prog_compiler__b=yes 15059 fi 15060 fi 15061 $RM -r conftest* 15062 LDFLAGS=$save_LDFLAGS 15063 15064fi 15065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15066printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 15067 15068if test yes = "$lt_cv_prog_compiler__b"; then 15069 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15070else 15071 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15072fi 15073 15074 ;; 15075 esac 15076 fi 15077 if test no = "$with_gnu_ld"; then 15078 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 15079 hardcode_libdir_separator=: 15080 15081 case $host_cpu in 15082 hppa*64*|ia64*) 15083 hardcode_direct=no 15084 hardcode_shlibpath_var=no 15085 ;; 15086 *) 15087 hardcode_direct=yes 15088 hardcode_direct_absolute=yes 15089 export_dynamic_flag_spec='$wl-E' 15090 15091 # hardcode_minus_L: Not really in the search PATH, 15092 # but as the default location of the library. 15093 hardcode_minus_L=yes 15094 ;; 15095 esac 15096 fi 15097 ;; 15098 15099 irix5* | irix6* | nonstopux*) 15100 if test yes = "$GCC"; then 15101 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' 15102 # Try to use the -exported_symbol ld option, if it does not 15103 # work, assume that -exports_file does not work either and 15104 # implicitly export all symbols. 15105 # This should be the same for all languages, so no per-tag cache variable. 15106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15107printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15108if test ${lt_cv_irix_exported_symbol+y} 15109then : 15110 printf %s "(cached) " >&6 15111else $as_nop 15112 save_LDFLAGS=$LDFLAGS 15113 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15115/* end confdefs.h. */ 15116int foo (void) { return 0; } 15117_ACEOF 15118if ac_fn_c_try_link "$LINENO" 15119then : 15120 lt_cv_irix_exported_symbol=yes 15121else $as_nop 15122 lt_cv_irix_exported_symbol=no 15123fi 15124rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15125 conftest$ac_exeext conftest.$ac_ext 15126 LDFLAGS=$save_LDFLAGS 15127fi 15128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15129printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 15130 if test yes = "$lt_cv_irix_exported_symbol"; then 15131 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' 15132 fi 15133 link_all_deplibs=no 15134 else 15135 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' 15136 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' 15137 fi 15138 archive_cmds_need_lc='no' 15139 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15140 hardcode_libdir_separator=: 15141 inherit_rpath=yes 15142 link_all_deplibs=yes 15143 ;; 15144 15145 linux*) 15146 case $cc_basename in 15147 tcc*) 15148 # Fabrice Bellard et al's Tiny C Compiler 15149 ld_shlibs=yes 15150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15151 ;; 15152 esac 15153 ;; 15154 15155 netbsd* | netbsdelf*-gnu) 15156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15158 else 15159 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15160 fi 15161 hardcode_libdir_flag_spec='-R$libdir' 15162 hardcode_direct=yes 15163 hardcode_shlibpath_var=no 15164 ;; 15165 15166 newsos6) 15167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15168 hardcode_direct=yes 15169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15170 hardcode_libdir_separator=: 15171 hardcode_shlibpath_var=no 15172 ;; 15173 15174 *nto* | *qnx*) 15175 ;; 15176 15177 openbsd* | bitrig*) 15178 if test -f /usr/libexec/ld.so; then 15179 hardcode_direct=yes 15180 hardcode_shlibpath_var=no 15181 hardcode_direct_absolute=yes 15182 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15183 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15184 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 15185 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15186 export_dynamic_flag_spec='$wl-E' 15187 else 15188 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15189 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15190 fi 15191 else 15192 ld_shlibs=no 15193 fi 15194 ;; 15195 15196 os2*) 15197 hardcode_libdir_flag_spec='-L$libdir' 15198 hardcode_minus_L=yes 15199 allow_undefined_flag=unsupported 15200 shrext_cmds=.dll 15201 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15202 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15203 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15204 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15205 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15206 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15207 emximp -o $lib $output_objdir/$libname.def' 15208 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15209 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15210 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15211 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15212 prefix_cmds="$SED"~ 15213 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15214 prefix_cmds="$prefix_cmds -e 1d"; 15215 fi~ 15216 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15217 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15218 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15219 emximp -o $lib $output_objdir/$libname.def' 15220 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15221 enable_shared_with_static_runtimes=yes 15222 ;; 15223 15224 osf3*) 15225 if test yes = "$GCC"; then 15226 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 15227 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' 15228 else 15229 allow_undefined_flag=' -expect_unresolved \*' 15230 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' 15231 fi 15232 archive_cmds_need_lc='no' 15233 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15234 hardcode_libdir_separator=: 15235 ;; 15236 15237 osf4* | osf5*) # as osf3* with the addition of -msym flag 15238 if test yes = "$GCC"; then 15239 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 15240 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' 15241 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15242 else 15243 allow_undefined_flag=' -expect_unresolved \*' 15244 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' 15245 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~ 15246 $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' 15247 15248 # Both c and cxx compiler support -rpath directly 15249 hardcode_libdir_flag_spec='-rpath $libdir' 15250 fi 15251 archive_cmds_need_lc='no' 15252 hardcode_libdir_separator=: 15253 ;; 15254 15255 solaris*) 15256 no_undefined_flag=' -z defs' 15257 if test yes = "$GCC"; then 15258 wlarc='$wl' 15259 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 15260 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15261 $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' 15262 else 15263 case `$CC -V 2>&1` in 15264 *"Compilers 5.0"*) 15265 wlarc='' 15266 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 15267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15268 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15269 ;; 15270 *) 15271 wlarc='$wl' 15272 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15274 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15275 ;; 15276 esac 15277 fi 15278 hardcode_libdir_flag_spec='-R$libdir' 15279 hardcode_shlibpath_var=no 15280 case $host_os in 15281 solaris2.[0-5] | solaris2.[0-5].*) ;; 15282 *) 15283 # The compiler driver will combine and reorder linker options, 15284 # but understands '-z linker_flag'. GCC discards it without '$wl', 15285 # but is careful enough not to reorder. 15286 # Supported since Solaris 2.6 (maybe 2.5.1?) 15287 if test yes = "$GCC"; then 15288 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15289 else 15290 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15291 fi 15292 ;; 15293 esac 15294 link_all_deplibs=yes 15295 ;; 15296 15297 sunos4*) 15298 if test sequent = "$host_vendor"; then 15299 # Use $CC to link under sequent, because it throws in some extra .o 15300 # files that make .init and .fini sections work. 15301 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15302 else 15303 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15304 fi 15305 hardcode_libdir_flag_spec='-L$libdir' 15306 hardcode_direct=yes 15307 hardcode_minus_L=yes 15308 hardcode_shlibpath_var=no 15309 ;; 15310 15311 sysv4) 15312 case $host_vendor in 15313 sni) 15314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15315 hardcode_direct=yes # is this really true??? 15316 ;; 15317 siemens) 15318 ## LD is ld it makes a PLAMLIB 15319 ## CC just makes a GrossModule. 15320 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15321 reload_cmds='$CC -r -o $output$reload_objs' 15322 hardcode_direct=no 15323 ;; 15324 motorola) 15325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15326 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15327 ;; 15328 esac 15329 runpath_var='LD_RUN_PATH' 15330 hardcode_shlibpath_var=no 15331 ;; 15332 15333 sysv4.3*) 15334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15335 hardcode_shlibpath_var=no 15336 export_dynamic_flag_spec='-Bexport' 15337 ;; 15338 15339 sysv4*MP*) 15340 if test -d /usr/nec; then 15341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15342 hardcode_shlibpath_var=no 15343 runpath_var=LD_RUN_PATH 15344 hardcode_runpath_var=yes 15345 ld_shlibs=yes 15346 fi 15347 ;; 15348 15349 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15350 no_undefined_flag='$wl-z,text' 15351 archive_cmds_need_lc=no 15352 hardcode_shlibpath_var=no 15353 runpath_var='LD_RUN_PATH' 15354 15355 if test yes = "$GCC"; then 15356 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15357 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15358 else 15359 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15360 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15361 fi 15362 ;; 15363 15364 sysv5* | sco3.2v5* | sco5v6*) 15365 # Note: We CANNOT use -z defs as we might desire, because we do not 15366 # link with -lc, and that would cause any symbols used from libc to 15367 # always be unresolved, which means just about no library would 15368 # ever link correctly. If we're not using GNU ld we use -z text 15369 # though, which does catch some bad symbols but isn't as heavy-handed 15370 # as -z defs. 15371 no_undefined_flag='$wl-z,text' 15372 allow_undefined_flag='$wl-z,nodefs' 15373 archive_cmds_need_lc=no 15374 hardcode_shlibpath_var=no 15375 hardcode_libdir_flag_spec='$wl-R,$libdir' 15376 hardcode_libdir_separator=':' 15377 link_all_deplibs=yes 15378 export_dynamic_flag_spec='$wl-Bexport' 15379 runpath_var='LD_RUN_PATH' 15380 15381 if test yes = "$GCC"; then 15382 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15383 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15384 else 15385 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15386 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15387 fi 15388 ;; 15389 15390 uts4*) 15391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15392 hardcode_libdir_flag_spec='-L$libdir' 15393 hardcode_shlibpath_var=no 15394 ;; 15395 15396 *) 15397 ld_shlibs=no 15398 ;; 15399 esac 15400 15401 if test sni = "$host_vendor"; then 15402 case $host in 15403 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15404 export_dynamic_flag_spec='$wl-Blargedynsym' 15405 ;; 15406 esac 15407 fi 15408 fi 15409 15410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 15411printf "%s\n" "$ld_shlibs" >&6; } 15412test no = "$ld_shlibs" && can_build_shared=no 15413 15414with_gnu_ld=$with_gnu_ld 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430# 15431# Do we need to explicitly link libc? 15432# 15433case "x$archive_cmds_need_lc" in 15434x|xyes) 15435 # Assume -lc should be added 15436 archive_cmds_need_lc=yes 15437 15438 if test yes,yes = "$GCC,$enable_shared"; then 15439 case $archive_cmds in 15440 *'~'*) 15441 # FIXME: we may have to deal with multi-command sequences. 15442 ;; 15443 '$CC '*) 15444 # Test whether the compiler implicitly links with -lc since on some 15445 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15446 # to ld, don't add -lc before -lgcc. 15447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15448printf %s "checking whether -lc should be explicitly linked in... " >&6; } 15449if test ${lt_cv_archive_cmds_need_lc+y} 15450then : 15451 printf %s "(cached) " >&6 15452else $as_nop 15453 $RM conftest* 15454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15455 15456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15457 (eval $ac_compile) 2>&5 15458 ac_status=$? 15459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15460 test $ac_status = 0; } 2>conftest.err; then 15461 soname=conftest 15462 lib=conftest 15463 libobjs=conftest.$ac_objext 15464 deplibs= 15465 wl=$lt_prog_compiler_wl 15466 pic_flag=$lt_prog_compiler_pic 15467 compiler_flags=-v 15468 linker_flags=-v 15469 verstring= 15470 output_objdir=. 15471 libname=conftest 15472 lt_save_allow_undefined_flag=$allow_undefined_flag 15473 allow_undefined_flag= 15474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15475 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15476 ac_status=$? 15477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15478 test $ac_status = 0; } 15479 then 15480 lt_cv_archive_cmds_need_lc=no 15481 else 15482 lt_cv_archive_cmds_need_lc=yes 15483 fi 15484 allow_undefined_flag=$lt_save_allow_undefined_flag 15485 else 15486 cat conftest.err 1>&5 15487 fi 15488 $RM conftest* 15489 15490fi 15491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 15492printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 15493 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 15494 ;; 15495 esac 15496 fi 15497 ;; 15498esac 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15652printf %s "checking dynamic linker characteristics... " >&6; } 15653 15654if test yes = "$GCC"; then 15655 case $host_os in 15656 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 15657 *) lt_awk_arg='/^libraries:/' ;; 15658 esac 15659 case $host_os in 15660 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 15661 *) lt_sed_strip_eq='s|=/|/|g' ;; 15662 esac 15663 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 15664 case $lt_search_path_spec in 15665 *\;*) 15666 # if the path contains ";" then we assume it to be the separator 15667 # otherwise default to the standard path separator (i.e. ":") - it is 15668 # assumed that no part of a normal pathname contains ";" but that should 15669 # okay in the real world where ";" in dirpaths is itself problematic. 15670 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 15671 ;; 15672 *) 15673 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 15674 ;; 15675 esac 15676 # Ok, now we have the path, separated by spaces, we can step through it 15677 # and add multilib dir if necessary... 15678 lt_tmp_lt_search_path_spec= 15679 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 15680 # ...but if some path component already ends with the multilib dir we assume 15681 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 15682 case "$lt_multi_os_dir; $lt_search_path_spec " in 15683 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 15684 lt_multi_os_dir= 15685 ;; 15686 esac 15687 for lt_sys_path in $lt_search_path_spec; do 15688 if test -d "$lt_sys_path$lt_multi_os_dir"; then 15689 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 15690 elif test -n "$lt_multi_os_dir"; then 15691 test -d "$lt_sys_path" && \ 15692 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 15693 fi 15694 done 15695 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 15696BEGIN {RS = " "; FS = "/|\n";} { 15697 lt_foo = ""; 15698 lt_count = 0; 15699 for (lt_i = NF; lt_i > 0; lt_i--) { 15700 if ($lt_i != "" && $lt_i != ".") { 15701 if ($lt_i == "..") { 15702 lt_count++; 15703 } else { 15704 if (lt_count == 0) { 15705 lt_foo = "/" $lt_i lt_foo; 15706 } else { 15707 lt_count--; 15708 } 15709 } 15710 } 15711 } 15712 if (lt_foo != "") { lt_freq[lt_foo]++; } 15713 if (lt_freq[lt_foo] == 1) { print lt_foo; } 15714}'` 15715 # AWK program above erroneously prepends '/' to C:/dos/paths 15716 # for these hosts. 15717 case $host_os in 15718 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 15719 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 15720 esac 15721 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 15722else 15723 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15724fi 15725library_names_spec= 15726libname_spec='lib$name' 15727soname_spec= 15728shrext_cmds=.so 15729postinstall_cmds= 15730postuninstall_cmds= 15731finish_cmds= 15732finish_eval= 15733shlibpath_var= 15734shlibpath_overrides_runpath=unknown 15735version_type=none 15736dynamic_linker="$host_os ld.so" 15737sys_lib_dlsearch_path_spec="/lib /usr/lib" 15738need_lib_prefix=unknown 15739hardcode_into_libs=no 15740 15741# when you set need_version to no, make sure it does not cause -set_version 15742# flags to be left without arguments 15743need_version=unknown 15744 15745 15746 15747case $host_os in 15748aix3*) 15749 version_type=linux # correct to gnu/linux during the next big refactor 15750 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15751 shlibpath_var=LIBPATH 15752 15753 # AIX 3 has no versioning support, so we append a major version to the name. 15754 soname_spec='$libname$release$shared_ext$major' 15755 ;; 15756 15757aix[4-9]*) 15758 version_type=linux # correct to gnu/linux during the next big refactor 15759 need_lib_prefix=no 15760 need_version=no 15761 hardcode_into_libs=yes 15762 if test ia64 = "$host_cpu"; then 15763 # AIX 5 supports IA64 15764 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15765 shlibpath_var=LD_LIBRARY_PATH 15766 else 15767 # With GCC up to 2.95.x, collect2 would create an import file 15768 # for dependence libraries. The import file would start with 15769 # the line '#! .'. This would cause the generated library to 15770 # depend on '.', always an invalid library. This was fixed in 15771 # development snapshots of GCC prior to 3.0. 15772 case $host_os in 15773 aix4 | aix4.[01] | aix4.[01].*) 15774 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15775 echo ' yes ' 15776 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15777 : 15778 else 15779 can_build_shared=no 15780 fi 15781 ;; 15782 esac 15783 # Using Import Files as archive members, it is possible to support 15784 # filename-based versioning of shared library archives on AIX. While 15785 # this would work for both with and without runtime linking, it will 15786 # prevent static linking of such archives. So we do filename-based 15787 # shared library versioning with .so extension only, which is used 15788 # when both runtime linking and shared linking is enabled. 15789 # Unfortunately, runtime linking may impact performance, so we do 15790 # not want this to be the default eventually. Also, we use the 15791 # versioned .so libs for executables only if there is the -brtl 15792 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15793 # To allow for filename-based versioning support, we need to create 15794 # libNAME.so.V as an archive file, containing: 15795 # *) an Import File, referring to the versioned filename of the 15796 # archive as well as the shared archive member, telling the 15797 # bitwidth (32 or 64) of that shared object, and providing the 15798 # list of exported symbols of that shared object, eventually 15799 # decorated with the 'weak' keyword 15800 # *) the shared object with the F_LOADONLY flag set, to really avoid 15801 # it being seen by the linker. 15802 # At run time we better use the real file rather than another symlink, 15803 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15804 15805 case $with_aix_soname,$aix_use_runtimelinking in 15806 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15807 # soname into executable. Probably we can add versioning support to 15808 # collect2, so additional links can be useful in future. 15809 aix,yes) # traditional libtool 15810 dynamic_linker='AIX unversionable lib.so' 15811 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15812 # instead of lib<name>.a to let people know that these are not 15813 # typical AIX shared libraries. 15814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15815 ;; 15816 aix,no) # traditional AIX only 15817 dynamic_linker='AIX lib.a(lib.so.V)' 15818 # We preserve .a as extension for shared libraries through AIX4.2 15819 # and later when we are not doing run time linking. 15820 library_names_spec='$libname$release.a $libname.a' 15821 soname_spec='$libname$release$shared_ext$major' 15822 ;; 15823 svr4,*) # full svr4 only 15824 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15825 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15826 # We do not specify a path in Import Files, so LIBPATH fires. 15827 shlibpath_overrides_runpath=yes 15828 ;; 15829 *,yes) # both, prefer svr4 15830 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15831 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15832 # unpreferred sharedlib libNAME.a needs extra handling 15833 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"' 15834 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"' 15835 # We do not specify a path in Import Files, so LIBPATH fires. 15836 shlibpath_overrides_runpath=yes 15837 ;; 15838 *,no) # both, prefer aix 15839 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15840 library_names_spec='$libname$release.a $libname.a' 15841 soname_spec='$libname$release$shared_ext$major' 15842 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15843 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)' 15844 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"' 15845 ;; 15846 esac 15847 shlibpath_var=LIBPATH 15848 fi 15849 ;; 15850 15851amigaos*) 15852 case $host_cpu in 15853 powerpc) 15854 # Since July 2007 AmigaOS4 officially supports .so libraries. 15855 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15857 ;; 15858 m68k) 15859 library_names_spec='$libname.ixlibrary $libname.a' 15860 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15861 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' 15862 ;; 15863 esac 15864 ;; 15865 15866beos*) 15867 library_names_spec='$libname$shared_ext' 15868 dynamic_linker="$host_os ld.so" 15869 shlibpath_var=LIBRARY_PATH 15870 ;; 15871 15872bsdi[45]*) 15873 version_type=linux # correct to gnu/linux during the next big refactor 15874 need_version=no 15875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15876 soname_spec='$libname$release$shared_ext$major' 15877 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15878 shlibpath_var=LD_LIBRARY_PATH 15879 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15880 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15881 # the default ld.so.conf also contains /usr/contrib/lib and 15882 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15883 # libtool to hard-code these into programs 15884 ;; 15885 15886cygwin* | mingw* | pw32* | cegcc*) 15887 version_type=windows 15888 shrext_cmds=.dll 15889 need_version=no 15890 need_lib_prefix=no 15891 15892 case $GCC,$cc_basename in 15893 yes,*) 15894 # gcc 15895 library_names_spec='$libname.dll.a' 15896 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15897 postinstall_cmds='base_file=`basename \$file`~ 15898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15899 dldir=$destdir/`dirname \$dlpath`~ 15900 test -d \$dldir || mkdir -p \$dldir~ 15901 $install_prog $dir/$dlname \$dldir/$dlname~ 15902 chmod a+x \$dldir/$dlname~ 15903 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15904 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15905 fi' 15906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15907 dlpath=$dir/\$dldll~ 15908 $RM \$dlpath' 15909 shlibpath_overrides_runpath=yes 15910 15911 case $host_os in 15912 cygwin*) 15913 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15914 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15915 15916 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 15917 ;; 15918 mingw* | cegcc*) 15919 # MinGW DLLs use traditional 'lib' prefix 15920 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15921 ;; 15922 pw32*) 15923 # pw32 DLLs use 'pw' prefix rather than 'lib' 15924 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15925 ;; 15926 esac 15927 dynamic_linker='Win32 ld.exe' 15928 ;; 15929 15930 *,cl*) 15931 # Native MSVC 15932 libname_spec='$name' 15933 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15934 library_names_spec='$libname.dll.lib' 15935 15936 case $build_os in 15937 mingw*) 15938 sys_lib_search_path_spec= 15939 lt_save_ifs=$IFS 15940 IFS=';' 15941 for lt_path in $LIB 15942 do 15943 IFS=$lt_save_ifs 15944 # Let DOS variable expansion print the short 8.3 style file name. 15945 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15946 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15947 done 15948 IFS=$lt_save_ifs 15949 # Convert to MSYS style. 15950 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15951 ;; 15952 cygwin*) 15953 # Convert to unix form, then to dos form, then back to unix form 15954 # but this time dos style (no spaces!) so that the unix form looks 15955 # like /cygdrive/c/PROGRA~1:/cygdr... 15956 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15957 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15958 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15959 ;; 15960 *) 15961 sys_lib_search_path_spec=$LIB 15962 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15963 # It is most probably a Windows format PATH. 15964 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15965 else 15966 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15967 fi 15968 # FIXME: find the short name or the path components, as spaces are 15969 # common. (e.g. "Program Files" -> "PROGRA~1") 15970 ;; 15971 esac 15972 15973 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15974 postinstall_cmds='base_file=`basename \$file`~ 15975 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15976 dldir=$destdir/`dirname \$dlpath`~ 15977 test -d \$dldir || mkdir -p \$dldir~ 15978 $install_prog $dir/$dlname \$dldir/$dlname' 15979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15980 dlpath=$dir/\$dldll~ 15981 $RM \$dlpath' 15982 shlibpath_overrides_runpath=yes 15983 dynamic_linker='Win32 link.exe' 15984 ;; 15985 15986 *) 15987 # Assume MSVC wrapper 15988 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15989 dynamic_linker='Win32 ld.exe' 15990 ;; 15991 esac 15992 # FIXME: first we should search . and the directory the executable is in 15993 shlibpath_var=PATH 15994 ;; 15995 15996darwin* | rhapsody*) 15997 dynamic_linker="$host_os dyld" 15998 version_type=darwin 15999 need_lib_prefix=no 16000 need_version=no 16001 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16002 soname_spec='$libname$release$major$shared_ext' 16003 shlibpath_overrides_runpath=yes 16004 shlibpath_var=DYLD_LIBRARY_PATH 16005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16006 16007 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16008 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16009 ;; 16010 16011dgux*) 16012 version_type=linux # correct to gnu/linux during the next big refactor 16013 need_lib_prefix=no 16014 need_version=no 16015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16016 soname_spec='$libname$release$shared_ext$major' 16017 shlibpath_var=LD_LIBRARY_PATH 16018 ;; 16019 16020freebsd* | dragonfly*) 16021 # DragonFly does not have aout. When/if they implement a new 16022 # versioning mechanism, adjust this. 16023 if test -x /usr/bin/objformat; then 16024 objformat=`/usr/bin/objformat` 16025 else 16026 case $host_os in 16027 freebsd[23].*) objformat=aout ;; 16028 *) objformat=elf ;; 16029 esac 16030 fi 16031 version_type=freebsd-$objformat 16032 case $version_type in 16033 freebsd-elf*) 16034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16035 soname_spec='$libname$release$shared_ext$major' 16036 need_version=no 16037 need_lib_prefix=no 16038 ;; 16039 freebsd-*) 16040 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16041 need_version=yes 16042 ;; 16043 esac 16044 shlibpath_var=LD_LIBRARY_PATH 16045 case $host_os in 16046 freebsd2.*) 16047 shlibpath_overrides_runpath=yes 16048 ;; 16049 freebsd3.[01]* | freebsdelf3.[01]*) 16050 shlibpath_overrides_runpath=yes 16051 hardcode_into_libs=yes 16052 ;; 16053 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16054 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16055 shlibpath_overrides_runpath=no 16056 hardcode_into_libs=yes 16057 ;; 16058 *) # from 4.6 on, and DragonFly 16059 shlibpath_overrides_runpath=yes 16060 hardcode_into_libs=yes 16061 ;; 16062 esac 16063 ;; 16064 16065haiku*) 16066 version_type=linux # correct to gnu/linux during the next big refactor 16067 need_lib_prefix=no 16068 need_version=no 16069 dynamic_linker="$host_os runtime_loader" 16070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16071 soname_spec='$libname$release$shared_ext$major' 16072 shlibpath_var=LIBRARY_PATH 16073 shlibpath_overrides_runpath=no 16074 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16075 hardcode_into_libs=yes 16076 ;; 16077 16078hpux9* | hpux10* | hpux11*) 16079 # Give a soname corresponding to the major version so that dld.sl refuses to 16080 # link against other versions. 16081 version_type=sunos 16082 need_lib_prefix=no 16083 need_version=no 16084 case $host_cpu in 16085 ia64*) 16086 shrext_cmds='.so' 16087 hardcode_into_libs=yes 16088 dynamic_linker="$host_os dld.so" 16089 shlibpath_var=LD_LIBRARY_PATH 16090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16092 soname_spec='$libname$release$shared_ext$major' 16093 if test 32 = "$HPUX_IA64_MODE"; then 16094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16095 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16096 else 16097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16098 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16099 fi 16100 ;; 16101 hppa*64*) 16102 shrext_cmds='.sl' 16103 hardcode_into_libs=yes 16104 dynamic_linker="$host_os dld.sl" 16105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16108 soname_spec='$libname$release$shared_ext$major' 16109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16111 ;; 16112 *) 16113 shrext_cmds='.sl' 16114 dynamic_linker="$host_os dld.sl" 16115 shlibpath_var=SHLIB_PATH 16116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16118 soname_spec='$libname$release$shared_ext$major' 16119 ;; 16120 esac 16121 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16122 postinstall_cmds='chmod 555 $lib' 16123 # or fails outright, so override atomically: 16124 install_override_mode=555 16125 ;; 16126 16127interix[3-9]*) 16128 version_type=linux # correct to gnu/linux during the next big refactor 16129 need_lib_prefix=no 16130 need_version=no 16131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16132 soname_spec='$libname$release$shared_ext$major' 16133 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16134 shlibpath_var=LD_LIBRARY_PATH 16135 shlibpath_overrides_runpath=no 16136 hardcode_into_libs=yes 16137 ;; 16138 16139irix5* | irix6* | nonstopux*) 16140 case $host_os in 16141 nonstopux*) version_type=nonstopux ;; 16142 *) 16143 if test yes = "$lt_cv_prog_gnu_ld"; then 16144 version_type=linux # correct to gnu/linux during the next big refactor 16145 else 16146 version_type=irix 16147 fi ;; 16148 esac 16149 need_lib_prefix=no 16150 need_version=no 16151 soname_spec='$libname$release$shared_ext$major' 16152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16153 case $host_os in 16154 irix5* | nonstopux*) 16155 libsuff= shlibsuff= 16156 ;; 16157 *) 16158 case $LD in # libtool.m4 will add one of these switches to LD 16159 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16160 libsuff= shlibsuff= libmagic=32-bit;; 16161 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16162 libsuff=32 shlibsuff=N32 libmagic=N32;; 16163 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16164 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16165 *) libsuff= shlibsuff= libmagic=never-match;; 16166 esac 16167 ;; 16168 esac 16169 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16170 shlibpath_overrides_runpath=no 16171 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16172 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16173 hardcode_into_libs=yes 16174 ;; 16175 16176# No shared lib support for Linux oldld, aout, or coff. 16177linux*oldld* | linux*aout* | linux*coff*) 16178 dynamic_linker=no 16179 ;; 16180 16181linux*android*) 16182 version_type=none # Android doesn't support versioned libraries. 16183 need_lib_prefix=no 16184 need_version=no 16185 library_names_spec='$libname$release$shared_ext' 16186 soname_spec='$libname$release$shared_ext' 16187 finish_cmds= 16188 shlibpath_var=LD_LIBRARY_PATH 16189 shlibpath_overrides_runpath=yes 16190 16191 # This implies no fast_install, which is unacceptable. 16192 # Some rework will be needed to allow for fast_install 16193 # before this can be enabled. 16194 hardcode_into_libs=yes 16195 16196 dynamic_linker='Android linker' 16197 # Don't embed -rpath directories since the linker doesn't support them. 16198 hardcode_libdir_flag_spec='-L$libdir' 16199 ;; 16200 16201# This must be glibc/ELF. 16202linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16203 version_type=linux # correct to gnu/linux during the next big refactor 16204 need_lib_prefix=no 16205 need_version=no 16206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16207 soname_spec='$libname$release$shared_ext$major' 16208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16209 shlibpath_var=LD_LIBRARY_PATH 16210 shlibpath_overrides_runpath=no 16211 16212 # Some binutils ld are patched to set DT_RUNPATH 16213 if test ${lt_cv_shlibpath_overrides_runpath+y} 16214then : 16215 printf %s "(cached) " >&6 16216else $as_nop 16217 lt_cv_shlibpath_overrides_runpath=no 16218 save_LDFLAGS=$LDFLAGS 16219 save_libdir=$libdir 16220 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16221 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16223/* end confdefs.h. */ 16224 16225int 16226main (void) 16227{ 16228 16229 ; 16230 return 0; 16231} 16232_ACEOF 16233if ac_fn_c_try_link "$LINENO" 16234then : 16235 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 16236then : 16237 lt_cv_shlibpath_overrides_runpath=yes 16238fi 16239fi 16240rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16241 conftest$ac_exeext conftest.$ac_ext 16242 LDFLAGS=$save_LDFLAGS 16243 libdir=$save_libdir 16244 16245fi 16246 16247 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16248 16249 # This implies no fast_install, which is unacceptable. 16250 # Some rework will be needed to allow for fast_install 16251 # before this can be enabled. 16252 hardcode_into_libs=yes 16253 16254 # Ideally, we could use ldconfig to report *all* directores which are 16255 # searched for libraries, however this is still not possible. Aside from not 16256 # being certain /sbin/ldconfig is available, command 16257 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16258 # even though it is searched at run-time. Try to do the best guess by 16259 # appending ld.so.conf contents (and includes) to the search path. 16260 if test -f /etc/ld.so.conf; then 16261 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' ' '` 16262 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16263 fi 16264 16265 # We used to test for /lib/ld.so.1 and disable shared libraries on 16266 # powerpc, because MkLinux only supported shared libraries with the 16267 # GNU dynamic linker. Since this was broken with cross compilers, 16268 # most powerpc-linux boxes support dynamic linking these days and 16269 # people can always --disable-shared, the test was removed, and we 16270 # assume the GNU/Linux dynamic linker is in use. 16271 dynamic_linker='GNU/Linux ld.so' 16272 ;; 16273 16274netbsdelf*-gnu) 16275 version_type=linux 16276 need_lib_prefix=no 16277 need_version=no 16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16279 soname_spec='${libname}${release}${shared_ext}$major' 16280 shlibpath_var=LD_LIBRARY_PATH 16281 shlibpath_overrides_runpath=no 16282 hardcode_into_libs=yes 16283 dynamic_linker='NetBSD ld.elf_so' 16284 ;; 16285 16286netbsd*) 16287 version_type=sunos 16288 need_lib_prefix=no 16289 need_version=no 16290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16291 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16293 dynamic_linker='NetBSD (a.out) ld.so' 16294 else 16295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16296 soname_spec='$libname$release$shared_ext$major' 16297 dynamic_linker='NetBSD ld.elf_so' 16298 fi 16299 shlibpath_var=LD_LIBRARY_PATH 16300 shlibpath_overrides_runpath=yes 16301 hardcode_into_libs=yes 16302 ;; 16303 16304newsos6) 16305 version_type=linux # correct to gnu/linux during the next big refactor 16306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16307 shlibpath_var=LD_LIBRARY_PATH 16308 shlibpath_overrides_runpath=yes 16309 ;; 16310 16311*nto* | *qnx*) 16312 version_type=qnx 16313 need_lib_prefix=no 16314 need_version=no 16315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16316 soname_spec='$libname$release$shared_ext$major' 16317 shlibpath_var=LD_LIBRARY_PATH 16318 shlibpath_overrides_runpath=no 16319 hardcode_into_libs=yes 16320 dynamic_linker='ldqnx.so' 16321 ;; 16322 16323openbsd* | bitrig*) 16324 version_type=sunos 16325 sys_lib_dlsearch_path_spec=/usr/lib 16326 need_lib_prefix=no 16327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16328 need_version=no 16329 else 16330 need_version=yes 16331 fi 16332 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16334 shlibpath_var=LD_LIBRARY_PATH 16335 shlibpath_overrides_runpath=yes 16336 ;; 16337 16338os2*) 16339 libname_spec='$name' 16340 version_type=windows 16341 shrext_cmds=.dll 16342 need_version=no 16343 need_lib_prefix=no 16344 # OS/2 can only load a DLL with a base name of 8 characters or less. 16345 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16346 v=$($ECHO $release$versuffix | tr -d .-); 16347 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16348 $ECHO $n$v`$shared_ext' 16349 library_names_spec='${libname}_dll.$libext' 16350 dynamic_linker='OS/2 ld.exe' 16351 shlibpath_var=BEGINLIBPATH 16352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16354 postinstall_cmds='base_file=`basename \$file`~ 16355 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16356 dldir=$destdir/`dirname \$dlpath`~ 16357 test -d \$dldir || mkdir -p \$dldir~ 16358 $install_prog $dir/$dlname \$dldir/$dlname~ 16359 chmod a+x \$dldir/$dlname~ 16360 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16361 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16362 fi' 16363 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16364 dlpath=$dir/\$dldll~ 16365 $RM \$dlpath' 16366 ;; 16367 16368osf3* | osf4* | osf5*) 16369 version_type=osf 16370 need_lib_prefix=no 16371 need_version=no 16372 soname_spec='$libname$release$shared_ext$major' 16373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16374 shlibpath_var=LD_LIBRARY_PATH 16375 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16377 ;; 16378 16379rdos*) 16380 dynamic_linker=no 16381 ;; 16382 16383solaris*) 16384 version_type=linux # correct to gnu/linux during the next big refactor 16385 need_lib_prefix=no 16386 need_version=no 16387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16388 soname_spec='$libname$release$shared_ext$major' 16389 shlibpath_var=LD_LIBRARY_PATH 16390 shlibpath_overrides_runpath=yes 16391 hardcode_into_libs=yes 16392 # ldd complains unless libraries are executable 16393 postinstall_cmds='chmod +x $lib' 16394 ;; 16395 16396sunos4*) 16397 version_type=sunos 16398 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16399 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16400 shlibpath_var=LD_LIBRARY_PATH 16401 shlibpath_overrides_runpath=yes 16402 if test yes = "$with_gnu_ld"; then 16403 need_lib_prefix=no 16404 fi 16405 need_version=yes 16406 ;; 16407 16408sysv4 | sysv4.3*) 16409 version_type=linux # correct to gnu/linux during the next big refactor 16410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16411 soname_spec='$libname$release$shared_ext$major' 16412 shlibpath_var=LD_LIBRARY_PATH 16413 case $host_vendor in 16414 sni) 16415 shlibpath_overrides_runpath=no 16416 need_lib_prefix=no 16417 runpath_var=LD_RUN_PATH 16418 ;; 16419 siemens) 16420 need_lib_prefix=no 16421 ;; 16422 motorola) 16423 need_lib_prefix=no 16424 need_version=no 16425 shlibpath_overrides_runpath=no 16426 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16427 ;; 16428 esac 16429 ;; 16430 16431sysv4*MP*) 16432 if test -d /usr/nec; then 16433 version_type=linux # correct to gnu/linux during the next big refactor 16434 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16435 soname_spec='$libname$shared_ext.$major' 16436 shlibpath_var=LD_LIBRARY_PATH 16437 fi 16438 ;; 16439 16440sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16441 version_type=sco 16442 need_lib_prefix=no 16443 need_version=no 16444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16445 soname_spec='$libname$release$shared_ext$major' 16446 shlibpath_var=LD_LIBRARY_PATH 16447 shlibpath_overrides_runpath=yes 16448 hardcode_into_libs=yes 16449 if test yes = "$with_gnu_ld"; then 16450 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16451 else 16452 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16453 case $host_os in 16454 sco3.2v5*) 16455 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16456 ;; 16457 esac 16458 fi 16459 sys_lib_dlsearch_path_spec='/usr/lib' 16460 ;; 16461 16462tpf*) 16463 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16464 version_type=linux # correct to gnu/linux during the next big refactor 16465 need_lib_prefix=no 16466 need_version=no 16467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16468 shlibpath_var=LD_LIBRARY_PATH 16469 shlibpath_overrides_runpath=no 16470 hardcode_into_libs=yes 16471 ;; 16472 16473uts4*) 16474 version_type=linux # correct to gnu/linux during the next big refactor 16475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16476 soname_spec='$libname$release$shared_ext$major' 16477 shlibpath_var=LD_LIBRARY_PATH 16478 ;; 16479 16480*) 16481 dynamic_linker=no 16482 ;; 16483esac 16484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16485printf "%s\n" "$dynamic_linker" >&6; } 16486test no = "$dynamic_linker" && can_build_shared=no 16487 16488variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16489if test yes = "$GCC"; then 16490 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16491fi 16492 16493if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16494 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16495fi 16496 16497if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16498 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16499fi 16500 16501# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16502configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16503 16504# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16505func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16506 16507# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16508configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16607printf %s "checking how to hardcode library paths into programs... " >&6; } 16608hardcode_action= 16609if test -n "$hardcode_libdir_flag_spec" || 16610 test -n "$runpath_var" || 16611 test yes = "$hardcode_automatic"; then 16612 16613 # We can hardcode non-existent directories. 16614 if test no != "$hardcode_direct" && 16615 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16616 # have to relink, otherwise we might link with an installed library 16617 # when we should be linking with a yet-to-be-installed one 16618 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 16619 test no != "$hardcode_minus_L"; then 16620 # Linking always hardcodes the temporary library directory. 16621 hardcode_action=relink 16622 else 16623 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16624 hardcode_action=immediate 16625 fi 16626else 16627 # We cannot hardcode anything, or else we can only hardcode existing 16628 # directories. 16629 hardcode_action=unsupported 16630fi 16631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 16632printf "%s\n" "$hardcode_action" >&6; } 16633 16634if test relink = "$hardcode_action" || 16635 test yes = "$inherit_rpath"; then 16636 # Fast installation is not supported 16637 enable_fast_install=no 16638elif test yes = "$shlibpath_overrides_runpath" || 16639 test no = "$enable_shared"; then 16640 # Fast installation is not necessary 16641 enable_fast_install=needless 16642fi 16643 16644 16645 16646 16647 16648 16649 if test yes != "$enable_dlopen"; then 16650 enable_dlopen=unknown 16651 enable_dlopen_self=unknown 16652 enable_dlopen_self_static=unknown 16653else 16654 lt_cv_dlopen=no 16655 lt_cv_dlopen_libs= 16656 16657 case $host_os in 16658 beos*) 16659 lt_cv_dlopen=load_add_on 16660 lt_cv_dlopen_libs= 16661 lt_cv_dlopen_self=yes 16662 ;; 16663 16664 mingw* | pw32* | cegcc*) 16665 lt_cv_dlopen=LoadLibrary 16666 lt_cv_dlopen_libs= 16667 ;; 16668 16669 cygwin*) 16670 lt_cv_dlopen=dlopen 16671 lt_cv_dlopen_libs= 16672 ;; 16673 16674 darwin*) 16675 # if libdl is installed we need to link against it 16676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16677printf %s "checking for dlopen in -ldl... " >&6; } 16678if test ${ac_cv_lib_dl_dlopen+y} 16679then : 16680 printf %s "(cached) " >&6 16681else $as_nop 16682 ac_check_lib_save_LIBS=$LIBS 16683LIBS="-ldl $LIBS" 16684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16685/* end confdefs.h. */ 16686 16687/* Override any GCC internal prototype to avoid an error. 16688 Use char because int might match the return type of a GCC 16689 builtin and then its argument prototype would still apply. */ 16690char dlopen (); 16691int 16692main (void) 16693{ 16694return dlopen (); 16695 ; 16696 return 0; 16697} 16698_ACEOF 16699if ac_fn_c_try_link "$LINENO" 16700then : 16701 ac_cv_lib_dl_dlopen=yes 16702else $as_nop 16703 ac_cv_lib_dl_dlopen=no 16704fi 16705rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16706 conftest$ac_exeext conftest.$ac_ext 16707LIBS=$ac_check_lib_save_LIBS 16708fi 16709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16710printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 16711if test "x$ac_cv_lib_dl_dlopen" = xyes 16712then : 16713 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16714else $as_nop 16715 16716 lt_cv_dlopen=dyld 16717 lt_cv_dlopen_libs= 16718 lt_cv_dlopen_self=yes 16719 16720fi 16721 16722 ;; 16723 16724 tpf*) 16725 # Don't try to run any link tests for TPF. We know it's impossible 16726 # because TPF is a cross-compiler, and we know how we open DSOs. 16727 lt_cv_dlopen=dlopen 16728 lt_cv_dlopen_libs= 16729 lt_cv_dlopen_self=no 16730 ;; 16731 16732 *) 16733 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 16734if test "x$ac_cv_func_shl_load" = xyes 16735then : 16736 lt_cv_dlopen=shl_load 16737else $as_nop 16738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 16739printf %s "checking for shl_load in -ldld... " >&6; } 16740if test ${ac_cv_lib_dld_shl_load+y} 16741then : 16742 printf %s "(cached) " >&6 16743else $as_nop 16744 ac_check_lib_save_LIBS=$LIBS 16745LIBS="-ldld $LIBS" 16746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16747/* end confdefs.h. */ 16748 16749/* Override any GCC internal prototype to avoid an error. 16750 Use char because int might match the return type of a GCC 16751 builtin and then its argument prototype would still apply. */ 16752char shl_load (); 16753int 16754main (void) 16755{ 16756return shl_load (); 16757 ; 16758 return 0; 16759} 16760_ACEOF 16761if ac_fn_c_try_link "$LINENO" 16762then : 16763 ac_cv_lib_dld_shl_load=yes 16764else $as_nop 16765 ac_cv_lib_dld_shl_load=no 16766fi 16767rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16768 conftest$ac_exeext conftest.$ac_ext 16769LIBS=$ac_check_lib_save_LIBS 16770fi 16771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16772printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 16773if test "x$ac_cv_lib_dld_shl_load" = xyes 16774then : 16775 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 16776else $as_nop 16777 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16778if test "x$ac_cv_func_dlopen" = xyes 16779then : 16780 lt_cv_dlopen=dlopen 16781else $as_nop 16782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16783printf %s "checking for dlopen in -ldl... " >&6; } 16784if test ${ac_cv_lib_dl_dlopen+y} 16785then : 16786 printf %s "(cached) " >&6 16787else $as_nop 16788 ac_check_lib_save_LIBS=$LIBS 16789LIBS="-ldl $LIBS" 16790cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16791/* end confdefs.h. */ 16792 16793/* Override any GCC internal prototype to avoid an error. 16794 Use char because int might match the return type of a GCC 16795 builtin and then its argument prototype would still apply. */ 16796char dlopen (); 16797int 16798main (void) 16799{ 16800return dlopen (); 16801 ; 16802 return 0; 16803} 16804_ACEOF 16805if ac_fn_c_try_link "$LINENO" 16806then : 16807 ac_cv_lib_dl_dlopen=yes 16808else $as_nop 16809 ac_cv_lib_dl_dlopen=no 16810fi 16811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16812 conftest$ac_exeext conftest.$ac_ext 16813LIBS=$ac_check_lib_save_LIBS 16814fi 16815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16816printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 16817if test "x$ac_cv_lib_dl_dlopen" = xyes 16818then : 16819 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16820else $as_nop 16821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16822printf %s "checking for dlopen in -lsvld... " >&6; } 16823if test ${ac_cv_lib_svld_dlopen+y} 16824then : 16825 printf %s "(cached) " >&6 16826else $as_nop 16827 ac_check_lib_save_LIBS=$LIBS 16828LIBS="-lsvld $LIBS" 16829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16830/* end confdefs.h. */ 16831 16832/* Override any GCC internal prototype to avoid an error. 16833 Use char because int might match the return type of a GCC 16834 builtin and then its argument prototype would still apply. */ 16835char dlopen (); 16836int 16837main (void) 16838{ 16839return dlopen (); 16840 ; 16841 return 0; 16842} 16843_ACEOF 16844if ac_fn_c_try_link "$LINENO" 16845then : 16846 ac_cv_lib_svld_dlopen=yes 16847else $as_nop 16848 ac_cv_lib_svld_dlopen=no 16849fi 16850rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16851 conftest$ac_exeext conftest.$ac_ext 16852LIBS=$ac_check_lib_save_LIBS 16853fi 16854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16855printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 16856if test "x$ac_cv_lib_svld_dlopen" = xyes 16857then : 16858 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 16859else $as_nop 16860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16861printf %s "checking for dld_link in -ldld... " >&6; } 16862if test ${ac_cv_lib_dld_dld_link+y} 16863then : 16864 printf %s "(cached) " >&6 16865else $as_nop 16866 ac_check_lib_save_LIBS=$LIBS 16867LIBS="-ldld $LIBS" 16868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16869/* end confdefs.h. */ 16870 16871/* Override any GCC internal prototype to avoid an error. 16872 Use char because int might match the return type of a GCC 16873 builtin and then its argument prototype would still apply. */ 16874char dld_link (); 16875int 16876main (void) 16877{ 16878return dld_link (); 16879 ; 16880 return 0; 16881} 16882_ACEOF 16883if ac_fn_c_try_link "$LINENO" 16884then : 16885 ac_cv_lib_dld_dld_link=yes 16886else $as_nop 16887 ac_cv_lib_dld_dld_link=no 16888fi 16889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16890 conftest$ac_exeext conftest.$ac_ext 16891LIBS=$ac_check_lib_save_LIBS 16892fi 16893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16894printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 16895if test "x$ac_cv_lib_dld_dld_link" = xyes 16896then : 16897 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 16898fi 16899 16900 16901fi 16902 16903 16904fi 16905 16906 16907fi 16908 16909 16910fi 16911 16912 16913fi 16914 16915 ;; 16916 esac 16917 16918 if test no = "$lt_cv_dlopen"; then 16919 enable_dlopen=no 16920 else 16921 enable_dlopen=yes 16922 fi 16923 16924 case $lt_cv_dlopen in 16925 dlopen) 16926 save_CPPFLAGS=$CPPFLAGS 16927 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16928 16929 save_LDFLAGS=$LDFLAGS 16930 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16931 16932 save_LIBS=$LIBS 16933 LIBS="$lt_cv_dlopen_libs $LIBS" 16934 16935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 16936printf %s "checking whether a program can dlopen itself... " >&6; } 16937if test ${lt_cv_dlopen_self+y} 16938then : 16939 printf %s "(cached) " >&6 16940else $as_nop 16941 if test yes = "$cross_compiling"; then : 16942 lt_cv_dlopen_self=cross 16943else 16944 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16945 lt_status=$lt_dlunknown 16946 cat > conftest.$ac_ext <<_LT_EOF 16947#line $LINENO "configure" 16948#include "confdefs.h" 16949 16950#if HAVE_DLFCN_H 16951#include <dlfcn.h> 16952#endif 16953 16954#include <stdio.h> 16955 16956#ifdef RTLD_GLOBAL 16957# define LT_DLGLOBAL RTLD_GLOBAL 16958#else 16959# ifdef DL_GLOBAL 16960# define LT_DLGLOBAL DL_GLOBAL 16961# else 16962# define LT_DLGLOBAL 0 16963# endif 16964#endif 16965 16966/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16967 find out it does not work in some platform. */ 16968#ifndef LT_DLLAZY_OR_NOW 16969# ifdef RTLD_LAZY 16970# define LT_DLLAZY_OR_NOW RTLD_LAZY 16971# else 16972# ifdef DL_LAZY 16973# define LT_DLLAZY_OR_NOW DL_LAZY 16974# else 16975# ifdef RTLD_NOW 16976# define LT_DLLAZY_OR_NOW RTLD_NOW 16977# else 16978# ifdef DL_NOW 16979# define LT_DLLAZY_OR_NOW DL_NOW 16980# else 16981# define LT_DLLAZY_OR_NOW 0 16982# endif 16983# endif 16984# endif 16985# endif 16986#endif 16987 16988/* When -fvisibility=hidden is used, assume the code has been annotated 16989 correspondingly for the symbols needed. */ 16990#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16991int fnord () __attribute__((visibility("default"))); 16992#endif 16993 16994int fnord () { return 42; } 16995int main () 16996{ 16997 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16998 int status = $lt_dlunknown; 16999 17000 if (self) 17001 { 17002 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17003 else 17004 { 17005 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17006 else puts (dlerror ()); 17007 } 17008 /* dlclose (self); */ 17009 } 17010 else 17011 puts (dlerror ()); 17012 17013 return status; 17014} 17015_LT_EOF 17016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17017 (eval $ac_link) 2>&5 17018 ac_status=$? 17019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17020 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 17021 (./conftest; exit; ) >&5 2>/dev/null 17022 lt_status=$? 17023 case x$lt_status in 17024 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17025 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17026 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17027 esac 17028 else : 17029 # compilation failed 17030 lt_cv_dlopen_self=no 17031 fi 17032fi 17033rm -fr conftest* 17034 17035 17036fi 17037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17038printf "%s\n" "$lt_cv_dlopen_self" >&6; } 17039 17040 if test yes = "$lt_cv_dlopen_self"; then 17041 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17043printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 17044if test ${lt_cv_dlopen_self_static+y} 17045then : 17046 printf %s "(cached) " >&6 17047else $as_nop 17048 if test yes = "$cross_compiling"; then : 17049 lt_cv_dlopen_self_static=cross 17050else 17051 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17052 lt_status=$lt_dlunknown 17053 cat > conftest.$ac_ext <<_LT_EOF 17054#line $LINENO "configure" 17055#include "confdefs.h" 17056 17057#if HAVE_DLFCN_H 17058#include <dlfcn.h> 17059#endif 17060 17061#include <stdio.h> 17062 17063#ifdef RTLD_GLOBAL 17064# define LT_DLGLOBAL RTLD_GLOBAL 17065#else 17066# ifdef DL_GLOBAL 17067# define LT_DLGLOBAL DL_GLOBAL 17068# else 17069# define LT_DLGLOBAL 0 17070# endif 17071#endif 17072 17073/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17074 find out it does not work in some platform. */ 17075#ifndef LT_DLLAZY_OR_NOW 17076# ifdef RTLD_LAZY 17077# define LT_DLLAZY_OR_NOW RTLD_LAZY 17078# else 17079# ifdef DL_LAZY 17080# define LT_DLLAZY_OR_NOW DL_LAZY 17081# else 17082# ifdef RTLD_NOW 17083# define LT_DLLAZY_OR_NOW RTLD_NOW 17084# else 17085# ifdef DL_NOW 17086# define LT_DLLAZY_OR_NOW DL_NOW 17087# else 17088# define LT_DLLAZY_OR_NOW 0 17089# endif 17090# endif 17091# endif 17092# endif 17093#endif 17094 17095/* When -fvisibility=hidden is used, assume the code has been annotated 17096 correspondingly for the symbols needed. */ 17097#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17098int fnord () __attribute__((visibility("default"))); 17099#endif 17100 17101int fnord () { return 42; } 17102int main () 17103{ 17104 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17105 int status = $lt_dlunknown; 17106 17107 if (self) 17108 { 17109 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17110 else 17111 { 17112 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17113 else puts (dlerror ()); 17114 } 17115 /* dlclose (self); */ 17116 } 17117 else 17118 puts (dlerror ()); 17119 17120 return status; 17121} 17122_LT_EOF 17123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17124 (eval $ac_link) 2>&5 17125 ac_status=$? 17126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17127 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 17128 (./conftest; exit; ) >&5 2>/dev/null 17129 lt_status=$? 17130 case x$lt_status in 17131 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17132 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17133 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17134 esac 17135 else : 17136 # compilation failed 17137 lt_cv_dlopen_self_static=no 17138 fi 17139fi 17140rm -fr conftest* 17141 17142 17143fi 17144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17145printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 17146 fi 17147 17148 CPPFLAGS=$save_CPPFLAGS 17149 LDFLAGS=$save_LDFLAGS 17150 LIBS=$save_LIBS 17151 ;; 17152 esac 17153 17154 case $lt_cv_dlopen_self in 17155 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17156 *) enable_dlopen_self=unknown ;; 17157 esac 17158 17159 case $lt_cv_dlopen_self_static in 17160 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17161 *) enable_dlopen_self_static=unknown ;; 17162 esac 17163fi 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181striplib= 17182old_striplib= 17183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17184printf %s "checking whether stripping libraries is possible... " >&6; } 17185if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17186 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17187 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17189printf "%s\n" "yes" >&6; } 17190else 17191# FIXME - insert some real tests, host_os isn't really good enough 17192 case $host_os in 17193 darwin*) 17194 if test -n "$STRIP"; then 17195 striplib="$STRIP -x" 17196 old_striplib="$STRIP -S" 17197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17198printf "%s\n" "yes" >&6; } 17199 else 17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17201printf "%s\n" "no" >&6; } 17202 fi 17203 ;; 17204 *) 17205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17206printf "%s\n" "no" >&6; } 17207 ;; 17208 esac 17209fi 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 # Report what library types will actually be built 17223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17224printf %s "checking if libtool supports shared libraries... " >&6; } 17225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17226printf "%s\n" "$can_build_shared" >&6; } 17227 17228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17229printf %s "checking whether to build shared libraries... " >&6; } 17230 test no = "$can_build_shared" && enable_shared=no 17231 17232 # On AIX, shared libraries and static libraries use the same namespace, and 17233 # are all built from PIC. 17234 case $host_os in 17235 aix3*) 17236 test yes = "$enable_shared" && enable_static=no 17237 if test -n "$RANLIB"; then 17238 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17239 postinstall_cmds='$RANLIB $lib' 17240 fi 17241 ;; 17242 17243 aix[4-9]*) 17244 if test ia64 != "$host_cpu"; then 17245 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 17246 yes,aix,yes) ;; # shared object as lib.so file only 17247 yes,svr4,*) ;; # shared object as lib.so archive member only 17248 yes,*) enable_static=no ;; # shared object in lib.a archive as well 17249 esac 17250 fi 17251 ;; 17252 esac 17253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17254printf "%s\n" "$enable_shared" >&6; } 17255 17256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17257printf %s "checking whether to build static libraries... " >&6; } 17258 # Make sure either enable_shared or enable_static is yes. 17259 test yes = "$enable_shared" || enable_static=yes 17260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17261printf "%s\n" "$enable_static" >&6; } 17262 17263 17264 17265 17266fi 17267ac_ext=c 17268ac_cpp='$CPP $CPPFLAGS' 17269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17271ac_compiler_gnu=$ac_cv_c_compiler_gnu 17272 17273CC=$lt_save_CC 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 ac_config_commands="$ac_config_commands libtool" 17290 17291 17292 17293 17294# Only expand once: 17295 17296 17297 17298if test -z $AR; then 17299 as_fn_error $? "*** 'ar' missing. Install binutils, fix your \$PATH, or set \$AR manually. ***" "$LINENO" 5 17300fi 17301 17302 17303 17304 17305 17306 17307 17308 17309ac_ext=cpp 17310ac_cpp='$CXXCPP $CPPFLAGS' 17311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17314if test -z "$CXX"; then 17315 if test -n "$CCC"; then 17316 CXX=$CCC 17317 else 17318 if test -n "$ac_tool_prefix"; then 17319 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 17320 do 17321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 17322set dummy $ac_tool_prefix$ac_prog; ac_word=$2 17323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17324printf %s "checking for $ac_word... " >&6; } 17325if test ${ac_cv_prog_CXX+y} 17326then : 17327 printf %s "(cached) " >&6 17328else $as_nop 17329 if test -n "$CXX"; then 17330 ac_cv_prog_CXX="$CXX" # Let the user override the test. 17331else 17332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17333for as_dir in $PATH 17334do 17335 IFS=$as_save_IFS 17336 case $as_dir in #((( 17337 '') as_dir=./ ;; 17338 */) ;; 17339 *) as_dir=$as_dir/ ;; 17340 esac 17341 for ac_exec_ext in '' $ac_executable_extensions; do 17342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17343 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 17344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17345 break 2 17346 fi 17347done 17348 done 17349IFS=$as_save_IFS 17350 17351fi 17352fi 17353CXX=$ac_cv_prog_CXX 17354if test -n "$CXX"; then 17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 17356printf "%s\n" "$CXX" >&6; } 17357else 17358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17359printf "%s\n" "no" >&6; } 17360fi 17361 17362 17363 test -n "$CXX" && break 17364 done 17365fi 17366if test -z "$CXX"; then 17367 ac_ct_CXX=$CXX 17368 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 17369do 17370 # Extract the first word of "$ac_prog", so it can be a program name with args. 17371set dummy $ac_prog; ac_word=$2 17372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17373printf %s "checking for $ac_word... " >&6; } 17374if test ${ac_cv_prog_ac_ct_CXX+y} 17375then : 17376 printf %s "(cached) " >&6 17377else $as_nop 17378 if test -n "$ac_ct_CXX"; then 17379 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 17380else 17381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17382for as_dir in $PATH 17383do 17384 IFS=$as_save_IFS 17385 case $as_dir in #((( 17386 '') as_dir=./ ;; 17387 */) ;; 17388 *) as_dir=$as_dir/ ;; 17389 esac 17390 for ac_exec_ext in '' $ac_executable_extensions; do 17391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17392 ac_cv_prog_ac_ct_CXX="$ac_prog" 17393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17394 break 2 17395 fi 17396done 17397 done 17398IFS=$as_save_IFS 17399 17400fi 17401fi 17402ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 17403if test -n "$ac_ct_CXX"; then 17404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 17405printf "%s\n" "$ac_ct_CXX" >&6; } 17406else 17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17408printf "%s\n" "no" >&6; } 17409fi 17410 17411 17412 test -n "$ac_ct_CXX" && break 17413done 17414 17415 if test "x$ac_ct_CXX" = x; then 17416 CXX="g++" 17417 else 17418 case $cross_compiling:$ac_tool_warned in 17419yes:) 17420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17421printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17422ac_tool_warned=yes ;; 17423esac 17424 CXX=$ac_ct_CXX 17425 fi 17426fi 17427 17428 fi 17429fi 17430# Provide some information about the compiler. 17431printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 17432set X $ac_compile 17433ac_compiler=$2 17434for ac_option in --version -v -V -qversion; do 17435 { { ac_try="$ac_compiler $ac_option >&5" 17436case "(($ac_try" in 17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17438 *) ac_try_echo=$ac_try;; 17439esac 17440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17441printf "%s\n" "$ac_try_echo"; } >&5 17442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 17443 ac_status=$? 17444 if test -s conftest.err; then 17445 sed '10a\ 17446... rest of stderr output deleted ... 17447 10q' conftest.err >conftest.er1 17448 cat conftest.er1 >&5 17449 fi 17450 rm -f conftest.er1 conftest.err 17451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17452 test $ac_status = 0; } 17453done 17454 17455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 17456printf %s "checking whether the compiler supports GNU C++... " >&6; } 17457if test ${ac_cv_cxx_compiler_gnu+y} 17458then : 17459 printf %s "(cached) " >&6 17460else $as_nop 17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17462/* end confdefs.h. */ 17463 17464int 17465main (void) 17466{ 17467#ifndef __GNUC__ 17468 choke me 17469#endif 17470 17471 ; 17472 return 0; 17473} 17474_ACEOF 17475if ac_fn_cxx_try_compile "$LINENO" 17476then : 17477 ac_compiler_gnu=yes 17478else $as_nop 17479 ac_compiler_gnu=no 17480fi 17481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17482ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 17483 17484fi 17485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 17486printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 17487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17488 17489if test $ac_compiler_gnu = yes; then 17490 GXX=yes 17491else 17492 GXX= 17493fi 17494ac_test_CXXFLAGS=${CXXFLAGS+y} 17495ac_save_CXXFLAGS=$CXXFLAGS 17496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 17497printf %s "checking whether $CXX accepts -g... " >&6; } 17498if test ${ac_cv_prog_cxx_g+y} 17499then : 17500 printf %s "(cached) " >&6 17501else $as_nop 17502 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 17503 ac_cxx_werror_flag=yes 17504 ac_cv_prog_cxx_g=no 17505 CXXFLAGS="-g" 17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17507/* end confdefs.h. */ 17508 17509int 17510main (void) 17511{ 17512 17513 ; 17514 return 0; 17515} 17516_ACEOF 17517if ac_fn_cxx_try_compile "$LINENO" 17518then : 17519 ac_cv_prog_cxx_g=yes 17520else $as_nop 17521 CXXFLAGS="" 17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17523/* end confdefs.h. */ 17524 17525int 17526main (void) 17527{ 17528 17529 ; 17530 return 0; 17531} 17532_ACEOF 17533if ac_fn_cxx_try_compile "$LINENO" 17534then : 17535 17536else $as_nop 17537 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 17538 CXXFLAGS="-g" 17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17540/* end confdefs.h. */ 17541 17542int 17543main (void) 17544{ 17545 17546 ; 17547 return 0; 17548} 17549_ACEOF 17550if ac_fn_cxx_try_compile "$LINENO" 17551then : 17552 ac_cv_prog_cxx_g=yes 17553fi 17554rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17555fi 17556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17557fi 17558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17559 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 17560fi 17561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 17562printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 17563if test $ac_test_CXXFLAGS; then 17564 CXXFLAGS=$ac_save_CXXFLAGS 17565elif test $ac_cv_prog_cxx_g = yes; then 17566 if test "$GXX" = yes; then 17567 CXXFLAGS="-g -O2" 17568 else 17569 CXXFLAGS="-g" 17570 fi 17571else 17572 if test "$GXX" = yes; then 17573 CXXFLAGS="-O2" 17574 else 17575 CXXFLAGS= 17576 fi 17577fi 17578ac_prog_cxx_stdcxx=no 17579if test x$ac_prog_cxx_stdcxx = xno 17580then : 17581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 17582printf %s "checking for $CXX option to enable C++11 features... " >&6; } 17583if test ${ac_cv_prog_cxx_11+y} 17584then : 17585 printf %s "(cached) " >&6 17586else $as_nop 17587 ac_cv_prog_cxx_11=no 17588ac_save_CXX=$CXX 17589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17590/* end confdefs.h. */ 17591$ac_cxx_conftest_cxx11_program 17592_ACEOF 17593for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 17594do 17595 CXX="$ac_save_CXX $ac_arg" 17596 if ac_fn_cxx_try_compile "$LINENO" 17597then : 17598 ac_cv_prog_cxx_cxx11=$ac_arg 17599fi 17600rm -f core conftest.err conftest.$ac_objext conftest.beam 17601 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 17602done 17603rm -f conftest.$ac_ext 17604CXX=$ac_save_CXX 17605fi 17606 17607if test "x$ac_cv_prog_cxx_cxx11" = xno 17608then : 17609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 17610printf "%s\n" "unsupported" >&6; } 17611else $as_nop 17612 if test "x$ac_cv_prog_cxx_cxx11" = x 17613then : 17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 17615printf "%s\n" "none needed" >&6; } 17616else $as_nop 17617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 17618printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 17619 CXX="$CXX $ac_cv_prog_cxx_cxx11" 17620fi 17621 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 17622 ac_prog_cxx_stdcxx=cxx11 17623fi 17624fi 17625if test x$ac_prog_cxx_stdcxx = xno 17626then : 17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 17628printf %s "checking for $CXX option to enable C++98 features... " >&6; } 17629if test ${ac_cv_prog_cxx_98+y} 17630then : 17631 printf %s "(cached) " >&6 17632else $as_nop 17633 ac_cv_prog_cxx_98=no 17634ac_save_CXX=$CXX 17635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17636/* end confdefs.h. */ 17637$ac_cxx_conftest_cxx98_program 17638_ACEOF 17639for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 17640do 17641 CXX="$ac_save_CXX $ac_arg" 17642 if ac_fn_cxx_try_compile "$LINENO" 17643then : 17644 ac_cv_prog_cxx_cxx98=$ac_arg 17645fi 17646rm -f core conftest.err conftest.$ac_objext conftest.beam 17647 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 17648done 17649rm -f conftest.$ac_ext 17650CXX=$ac_save_CXX 17651fi 17652 17653if test "x$ac_cv_prog_cxx_cxx98" = xno 17654then : 17655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 17656printf "%s\n" "unsupported" >&6; } 17657else $as_nop 17658 if test "x$ac_cv_prog_cxx_cxx98" = x 17659then : 17660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 17661printf "%s\n" "none needed" >&6; } 17662else $as_nop 17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 17664printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 17665 CXX="$CXX $ac_cv_prog_cxx_cxx98" 17666fi 17667 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 17668 ac_prog_cxx_stdcxx=cxx98 17669fi 17670fi 17671 17672ac_ext=c 17673ac_cpp='$CPP $CPPFLAGS' 17674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17676ac_compiler_gnu=$ac_cv_c_compiler_gnu 17677 17678depcc="$CXX" am_compiler_list= 17679 17680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 17681printf %s "checking dependency style of $depcc... " >&6; } 17682if test ${am_cv_CXX_dependencies_compiler_type+y} 17683then : 17684 printf %s "(cached) " >&6 17685else $as_nop 17686 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17687 # We make a subdir and do the tests there. Otherwise we can end up 17688 # making bogus files that we don't know about and never remove. For 17689 # instance it was reported that on HP-UX the gcc test will end up 17690 # making a dummy file named 'D' -- because '-MD' means "put the output 17691 # in D". 17692 rm -rf conftest.dir 17693 mkdir conftest.dir 17694 # Copy depcomp to subdir because otherwise we won't find it if we're 17695 # using a relative directory. 17696 cp "$am_depcomp" conftest.dir 17697 cd conftest.dir 17698 # We will build objects and dependencies in a subdirectory because 17699 # it helps to detect inapplicable dependency modes. For instance 17700 # both Tru64's cc and ICC support -MD to output dependencies as a 17701 # side effect of compilation, but ICC will put the dependencies in 17702 # the current directory while Tru64 will put them in the object 17703 # directory. 17704 mkdir sub 17705 17706 am_cv_CXX_dependencies_compiler_type=none 17707 if test "$am_compiler_list" = ""; then 17708 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17709 fi 17710 am__universal=false 17711 case " $depcc " in #( 17712 *\ -arch\ *\ -arch\ *) am__universal=true ;; 17713 esac 17714 17715 for depmode in $am_compiler_list; do 17716 # Setup a source with many dependencies, because some compilers 17717 # like to wrap large dependency lists on column 80 (with \), and 17718 # we should not choose a depcomp mode which is confused by this. 17719 # 17720 # We need to recreate these files for each test, as the compiler may 17721 # overwrite some of them when testing with obscure command lines. 17722 # This happens at least with the AIX C compiler. 17723 : > sub/conftest.c 17724 for i in 1 2 3 4 5 6; do 17725 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17726 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 17727 # Solaris 10 /bin/sh. 17728 echo '/* dummy */' > sub/conftst$i.h 17729 done 17730 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17731 17732 # We check with '-c' and '-o' for the sake of the "dashmstdout" 17733 # mode. It turns out that the SunPro C++ compiler does not properly 17734 # handle '-M -o', and we need to detect this. Also, some Intel 17735 # versions had trouble with output in subdirs. 17736 am__obj=sub/conftest.${OBJEXT-o} 17737 am__minus_obj="-o $am__obj" 17738 case $depmode in 17739 gcc) 17740 # This depmode causes a compiler race in universal mode. 17741 test "$am__universal" = false || continue 17742 ;; 17743 nosideeffect) 17744 # After this tag, mechanisms are not by side-effect, so they'll 17745 # only be used when explicitly requested. 17746 if test "x$enable_dependency_tracking" = xyes; then 17747 continue 17748 else 17749 break 17750 fi 17751 ;; 17752 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 17753 # This compiler won't grok '-c -o', but also, the minuso test has 17754 # not run yet. These depmodes are late enough in the game, and 17755 # so weak that their functioning should not be impacted. 17756 am__obj=conftest.${OBJEXT-o} 17757 am__minus_obj= 17758 ;; 17759 none) break ;; 17760 esac 17761 if depmode=$depmode \ 17762 source=sub/conftest.c object=$am__obj \ 17763 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17764 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 17765 >/dev/null 2>conftest.err && 17766 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17767 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17768 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 17769 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17770 # icc doesn't choke on unknown options, it will just issue warnings 17771 # or remarks (even with -Werror). So we grep stderr for any message 17772 # that says an option was ignored or not supported. 17773 # When given -MP, icc 7.0 and 7.1 complain thusly: 17774 # icc: Command line warning: ignoring option '-M'; no argument required 17775 # The diagnosis changed in icc 8.0: 17776 # icc: Command line remark: option '-MP' not supported 17777 if (grep 'ignoring option' conftest.err || 17778 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17779 am_cv_CXX_dependencies_compiler_type=$depmode 17780 break 17781 fi 17782 fi 17783 done 17784 17785 cd .. 17786 rm -rf conftest.dir 17787else 17788 am_cv_CXX_dependencies_compiler_type=none 17789fi 17790 17791fi 17792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 17793printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 17794CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 17795 17796 if 17797 test "x$enable_dependency_tracking" != xno \ 17798 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 17799 am__fastdepCXX_TRUE= 17800 am__fastdepCXX_FALSE='#' 17801else 17802 am__fastdepCXX_TRUE='#' 17803 am__fastdepCXX_FALSE= 17804fi 17805 17806 17807 17808 17809func_stripname_cnf () 17810{ 17811 case $2 in 17812 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 17813 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 17814 esac 17815} # func_stripname_cnf 17816 17817 if test -n "$CXX" && ( test no != "$CXX" && 17818 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 17819 (test g++ != "$CXX"))); then 17820 ac_ext=cpp 17821ac_cpp='$CXXCPP $CPPFLAGS' 17822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 17826printf %s "checking how to run the C++ preprocessor... " >&6; } 17827if test -z "$CXXCPP"; then 17828 if test ${ac_cv_prog_CXXCPP+y} 17829then : 17830 printf %s "(cached) " >&6 17831else $as_nop 17832 # Double quotes because $CXX needs to be expanded 17833 for CXXCPP in "$CXX -E" cpp /lib/cpp 17834 do 17835 ac_preproc_ok=false 17836for ac_cxx_preproc_warn_flag in '' yes 17837do 17838 # Use a header file that comes with gcc, so configuring glibc 17839 # with a fresh cross-compiler works. 17840 # On the NeXT, cc -E runs the code through the compiler's parser, 17841 # not just through cpp. "Syntax error" is here to catch this case. 17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17843/* end confdefs.h. */ 17844#include <limits.h> 17845 Syntax error 17846_ACEOF 17847if ac_fn_cxx_try_cpp "$LINENO" 17848then : 17849 17850else $as_nop 17851 # Broken: fails on valid input. 17852continue 17853fi 17854rm -f conftest.err conftest.i conftest.$ac_ext 17855 17856 # OK, works on sane cases. Now check whether nonexistent headers 17857 # can be detected and how. 17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17859/* end confdefs.h. */ 17860#include <ac_nonexistent.h> 17861_ACEOF 17862if ac_fn_cxx_try_cpp "$LINENO" 17863then : 17864 # Broken: success on invalid input. 17865continue 17866else $as_nop 17867 # Passes both tests. 17868ac_preproc_ok=: 17869break 17870fi 17871rm -f conftest.err conftest.i conftest.$ac_ext 17872 17873done 17874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17875rm -f conftest.i conftest.err conftest.$ac_ext 17876if $ac_preproc_ok 17877then : 17878 break 17879fi 17880 17881 done 17882 ac_cv_prog_CXXCPP=$CXXCPP 17883 17884fi 17885 CXXCPP=$ac_cv_prog_CXXCPP 17886else 17887 ac_cv_prog_CXXCPP=$CXXCPP 17888fi 17889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 17890printf "%s\n" "$CXXCPP" >&6; } 17891ac_preproc_ok=false 17892for ac_cxx_preproc_warn_flag in '' yes 17893do 17894 # Use a header file that comes with gcc, so configuring glibc 17895 # with a fresh cross-compiler works. 17896 # On the NeXT, cc -E runs the code through the compiler's parser, 17897 # not just through cpp. "Syntax error" is here to catch this case. 17898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17899/* end confdefs.h. */ 17900#include <limits.h> 17901 Syntax error 17902_ACEOF 17903if ac_fn_cxx_try_cpp "$LINENO" 17904then : 17905 17906else $as_nop 17907 # Broken: fails on valid input. 17908continue 17909fi 17910rm -f conftest.err conftest.i conftest.$ac_ext 17911 17912 # OK, works on sane cases. Now check whether nonexistent headers 17913 # can be detected and how. 17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17915/* end confdefs.h. */ 17916#include <ac_nonexistent.h> 17917_ACEOF 17918if ac_fn_cxx_try_cpp "$LINENO" 17919then : 17920 # Broken: success on invalid input. 17921continue 17922else $as_nop 17923 # Passes both tests. 17924ac_preproc_ok=: 17925break 17926fi 17927rm -f conftest.err conftest.i conftest.$ac_ext 17928 17929done 17930# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17931rm -f conftest.i conftest.err conftest.$ac_ext 17932if $ac_preproc_ok 17933then : 17934 17935else $as_nop 17936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17937printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17938as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 17939See \`config.log' for more details" "$LINENO" 5; } 17940fi 17941 17942ac_ext=c 17943ac_cpp='$CPP $CPPFLAGS' 17944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17946ac_compiler_gnu=$ac_cv_c_compiler_gnu 17947 17948else 17949 _lt_caught_CXX_error=yes 17950fi 17951 17952ac_ext=cpp 17953ac_cpp='$CXXCPP $CPPFLAGS' 17954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17957 17958archive_cmds_need_lc_CXX=no 17959allow_undefined_flag_CXX= 17960always_export_symbols_CXX=no 17961archive_expsym_cmds_CXX= 17962compiler_needs_object_CXX=no 17963export_dynamic_flag_spec_CXX= 17964hardcode_direct_CXX=no 17965hardcode_direct_absolute_CXX=no 17966hardcode_libdir_flag_spec_CXX= 17967hardcode_libdir_separator_CXX= 17968hardcode_minus_L_CXX=no 17969hardcode_shlibpath_var_CXX=unsupported 17970hardcode_automatic_CXX=no 17971inherit_rpath_CXX=no 17972module_cmds_CXX= 17973module_expsym_cmds_CXX= 17974link_all_deplibs_CXX=unknown 17975old_archive_cmds_CXX=$old_archive_cmds 17976reload_flag_CXX=$reload_flag 17977reload_cmds_CXX=$reload_cmds 17978no_undefined_flag_CXX= 17979whole_archive_flag_spec_CXX= 17980enable_shared_with_static_runtimes_CXX=no 17981 17982# Source file extension for C++ test sources. 17983ac_ext=cpp 17984 17985# Object file extension for compiled C++ test sources. 17986objext=o 17987objext_CXX=$objext 17988 17989# No sense in running all these tests if we already determined that 17990# the CXX compiler isn't working. Some variables (like enable_shared) 17991# are currently assumed to apply to all compilers on this platform, 17992# and will be corrupted by setting them based on a non-working compiler. 17993if test yes != "$_lt_caught_CXX_error"; then 17994 # Code to be used in simple compile tests 17995 lt_simple_compile_test_code="int some_variable = 0;" 17996 17997 # Code to be used in simple link tests 17998 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 17999 18000 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 18001 18002 18003 18004 18005 18006 18007# If no C compiler was specified, use CC. 18008LTCC=${LTCC-"$CC"} 18009 18010# If no C compiler flags were specified, use CFLAGS. 18011LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18012 18013# Allow CC to be a program name with arguments. 18014compiler=$CC 18015 18016 18017 # save warnings/boilerplate of simple test code 18018 ac_outfile=conftest.$ac_objext 18019echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18020eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18021_lt_compiler_boilerplate=`cat conftest.err` 18022$RM conftest* 18023 18024 ac_outfile=conftest.$ac_objext 18025echo "$lt_simple_link_test_code" >conftest.$ac_ext 18026eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18027_lt_linker_boilerplate=`cat conftest.err` 18028$RM -r conftest* 18029 18030 18031 # Allow CC to be a program name with arguments. 18032 lt_save_CC=$CC 18033 lt_save_CFLAGS=$CFLAGS 18034 lt_save_LD=$LD 18035 lt_save_GCC=$GCC 18036 GCC=$GXX 18037 lt_save_with_gnu_ld=$with_gnu_ld 18038 lt_save_path_LD=$lt_cv_path_LD 18039 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 18040 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 18041 else 18042 $as_unset lt_cv_prog_gnu_ld 18043 fi 18044 if test -n "${lt_cv_path_LDCXX+set}"; then 18045 lt_cv_path_LD=$lt_cv_path_LDCXX 18046 else 18047 $as_unset lt_cv_path_LD 18048 fi 18049 test -z "${LDCXX+set}" || LD=$LDCXX 18050 CC=${CXX-"c++"} 18051 CFLAGS=$CXXFLAGS 18052 compiler=$CC 18053 compiler_CXX=$CC 18054 func_cc_basename $compiler 18055cc_basename=$func_cc_basename_result 18056 18057 18058 if test -n "$compiler"; then 18059 # We don't want -fno-exception when compiling C++ code, so set the 18060 # no_builtin_flag separately 18061 if test yes = "$GXX"; then 18062 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 18063 else 18064 lt_prog_compiler_no_builtin_flag_CXX= 18065 fi 18066 18067 if test yes = "$GXX"; then 18068 # Set up default GNU C++ configuration 18069 18070 18071 18072# Check whether --with-gnu-ld was given. 18073if test ${with_gnu_ld+y} 18074then : 18075 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 18076else $as_nop 18077 with_gnu_ld=no 18078fi 18079 18080ac_prog=ld 18081if test yes = "$GCC"; then 18082 # Check if gcc -print-prog-name=ld gives a path. 18083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 18084printf %s "checking for ld used by $CC... " >&6; } 18085 case $host in 18086 *-*-mingw*) 18087 # gcc leaves a trailing carriage return, which upsets mingw 18088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 18089 *) 18090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 18091 esac 18092 case $ac_prog in 18093 # Accept absolute paths. 18094 [\\/]* | ?:[\\/]*) 18095 re_direlt='/[^/][^/]*/\.\./' 18096 # Canonicalize the pathname of ld 18097 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 18098 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 18099 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 18100 done 18101 test -z "$LD" && LD=$ac_prog 18102 ;; 18103 "") 18104 # If it fails, then pretend we aren't using GCC. 18105 ac_prog=ld 18106 ;; 18107 *) 18108 # If it is relative, then search for the first ld in PATH. 18109 with_gnu_ld=unknown 18110 ;; 18111 esac 18112elif test yes = "$with_gnu_ld"; then 18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 18114printf %s "checking for GNU ld... " >&6; } 18115else 18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 18117printf %s "checking for non-GNU ld... " >&6; } 18118fi 18119if test ${lt_cv_path_LD+y} 18120then : 18121 printf %s "(cached) " >&6 18122else $as_nop 18123 if test -z "$LD"; then 18124 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 18125 for ac_dir in $PATH; do 18126 IFS=$lt_save_ifs 18127 test -z "$ac_dir" && ac_dir=. 18128 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 18129 lt_cv_path_LD=$ac_dir/$ac_prog 18130 # Check to see if the program is GNU ld. I'd rather use --version, 18131 # but apparently some variants of GNU ld only accept -v. 18132 # Break only if it was the GNU/non-GNU ld that we prefer. 18133 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 18134 *GNU* | *'with BFD'*) 18135 test no != "$with_gnu_ld" && break 18136 ;; 18137 *) 18138 test yes != "$with_gnu_ld" && break 18139 ;; 18140 esac 18141 fi 18142 done 18143 IFS=$lt_save_ifs 18144else 18145 lt_cv_path_LD=$LD # Let the user override the test with a path. 18146fi 18147fi 18148 18149LD=$lt_cv_path_LD 18150if test -n "$LD"; then 18151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 18152printf "%s\n" "$LD" >&6; } 18153else 18154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18155printf "%s\n" "no" >&6; } 18156fi 18157test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 18158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 18159printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 18160if test ${lt_cv_prog_gnu_ld+y} 18161then : 18162 printf %s "(cached) " >&6 18163else $as_nop 18164 # I'd rather use --version here, but apparently some GNU lds only accept -v. 18165case `$LD -v 2>&1 </dev/null` in 18166*GNU* | *'with BFD'*) 18167 lt_cv_prog_gnu_ld=yes 18168 ;; 18169*) 18170 lt_cv_prog_gnu_ld=no 18171 ;; 18172esac 18173fi 18174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 18175printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 18176with_gnu_ld=$lt_cv_prog_gnu_ld 18177 18178 18179 18180 18181 18182 18183 18184 # Check if GNU C++ uses GNU ld as the underlying linker, since the 18185 # archiving commands below assume that GNU ld is being used. 18186 if test yes = "$with_gnu_ld"; then 18187 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 18188 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18189 18190 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 18191 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 18192 18193 # If archive_cmds runs LD, not CC, wlarc should be empty 18194 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 18195 # investigate it a little bit more. (MM) 18196 wlarc='$wl' 18197 18198 # ancient GNU ld didn't support --whole-archive et. al. 18199 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 18200 $GREP 'no-whole-archive' > /dev/null; then 18201 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 18202 else 18203 whole_archive_flag_spec_CXX= 18204 fi 18205 else 18206 with_gnu_ld=no 18207 wlarc= 18208 18209 # A generic and very simple default shared library creation 18210 # command for GNU C++ for the case where it uses the native 18211 # linker, instead of GNU ld. If possible, this setting should 18212 # overridden to take advantage of the native linker features on 18213 # the platform it is being used on. 18214 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 18215 fi 18216 18217 # Commands to make compiler produce verbose output that lists 18218 # what "hidden" libraries, object files and flags are used when 18219 # linking a shared library. 18220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 18221 18222 else 18223 GXX=no 18224 with_gnu_ld=no 18225 wlarc= 18226 fi 18227 18228 # PORTME: fill in a description of your system's C++ link characteristics 18229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18230printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 18231 ld_shlibs_CXX=yes 18232 case $host_os in 18233 aix3*) 18234 # FIXME: insert proper C++ library support 18235 ld_shlibs_CXX=no 18236 ;; 18237 aix[4-9]*) 18238 if test ia64 = "$host_cpu"; then 18239 # On IA64, the linker does run time linking by default, so we don't 18240 # have to do anything special. 18241 aix_use_runtimelinking=no 18242 exp_sym_flag='-Bexport' 18243 no_entry_flag= 18244 else 18245 aix_use_runtimelinking=no 18246 18247 # Test if we are trying to use run time linking or normal 18248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18249 # have runtime linking enabled, and use it for executables. 18250 # For shared libraries, we enable/disable runtime linking 18251 # depending on the kind of the shared library created - 18252 # when "with_aix_soname,aix_use_runtimelinking" is: 18253 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 18254 # "aix,yes" lib.so shared, rtl:yes, for executables 18255 # lib.a static archive 18256 # "both,no" lib.so.V(shr.o) shared, rtl:yes 18257 # lib.a(lib.so.V) shared, rtl:no, for executables 18258 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 18259 # lib.a(lib.so.V) shared, rtl:no 18260 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 18261 # lib.a static archive 18262 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 18263 for ld_flag in $LDFLAGS; do 18264 case $ld_flag in 18265 *-brtl*) 18266 aix_use_runtimelinking=yes 18267 break 18268 ;; 18269 esac 18270 done 18271 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 18272 # With aix-soname=svr4, we create the lib.so.V shared archives only, 18273 # so we don't have lib.a shared libs to link our executables. 18274 # We have to force runtime linking in this case. 18275 aix_use_runtimelinking=yes 18276 LDFLAGS="$LDFLAGS -Wl,-brtl" 18277 fi 18278 ;; 18279 esac 18280 18281 exp_sym_flag='-bexport' 18282 no_entry_flag='-bnoentry' 18283 fi 18284 18285 # When large executables or shared objects are built, AIX ld can 18286 # have problems creating the table of contents. If linking a library 18287 # or program results in "error TOC overflow" add -mminimal-toc to 18288 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18289 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18290 18291 archive_cmds_CXX='' 18292 hardcode_direct_CXX=yes 18293 hardcode_direct_absolute_CXX=yes 18294 hardcode_libdir_separator_CXX=':' 18295 link_all_deplibs_CXX=yes 18296 file_list_spec_CXX='$wl-f,' 18297 case $with_aix_soname,$aix_use_runtimelinking in 18298 aix,*) ;; # no import file 18299 svr4,* | *,yes) # use import file 18300 # The Import File defines what to hardcode. 18301 hardcode_direct_CXX=no 18302 hardcode_direct_absolute_CXX=no 18303 ;; 18304 esac 18305 18306 if test yes = "$GXX"; then 18307 case $host_os in aix4.[012]|aix4.[012].*) 18308 # We only want to do this on AIX 4.2 and lower, the check 18309 # below for broken collect2 doesn't work under 4.3+ 18310 collect2name=`$CC -print-prog-name=collect2` 18311 if test -f "$collect2name" && 18312 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 18313 then 18314 # We have reworked collect2 18315 : 18316 else 18317 # We have old collect2 18318 hardcode_direct_CXX=unsupported 18319 # It fails to find uninstalled libraries when the uninstalled 18320 # path is not listed in the libpath. Setting hardcode_minus_L 18321 # to unsupported forces relinking 18322 hardcode_minus_L_CXX=yes 18323 hardcode_libdir_flag_spec_CXX='-L$libdir' 18324 hardcode_libdir_separator_CXX= 18325 fi 18326 esac 18327 shared_flag='-shared' 18328 if test yes = "$aix_use_runtimelinking"; then 18329 shared_flag=$shared_flag' $wl-G' 18330 fi 18331 # Need to ensure runtime linking is disabled for the traditional 18332 # shared library, or the linker may eventually find shared libraries 18333 # /with/ Import File - we do not want to mix them. 18334 shared_flag_aix='-shared' 18335 shared_flag_svr4='-shared $wl-G' 18336 else 18337 # not using gcc 18338 if test ia64 = "$host_cpu"; then 18339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18340 # chokes on -Wl,-G. The following line is correct: 18341 shared_flag='-G' 18342 else 18343 if test yes = "$aix_use_runtimelinking"; then 18344 shared_flag='$wl-G' 18345 else 18346 shared_flag='$wl-bM:SRE' 18347 fi 18348 shared_flag_aix='$wl-bM:SRE' 18349 shared_flag_svr4='$wl-G' 18350 fi 18351 fi 18352 18353 export_dynamic_flag_spec_CXX='$wl-bexpall' 18354 # It seems that -bexpall does not export symbols beginning with 18355 # underscore (_), so it is better to generate a list of symbols to 18356 # export. 18357 always_export_symbols_CXX=yes 18358 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 18359 # Warning - without using the other runtime loading flags (-brtl), 18360 # -berok will link without error, but may produce a broken library. 18361 # The "-G" linker flag allows undefined symbols. 18362 no_undefined_flag_CXX='-bernotok' 18363 # Determine the default libpath from the value encoded in an empty 18364 # executable. 18365 if test set = "${lt_cv_aix_libpath+set}"; then 18366 aix_libpath=$lt_cv_aix_libpath 18367else 18368 if test ${lt_cv_aix_libpath__CXX+y} 18369then : 18370 printf %s "(cached) " >&6 18371else $as_nop 18372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18373/* end confdefs.h. */ 18374 18375int 18376main (void) 18377{ 18378 18379 ; 18380 return 0; 18381} 18382_ACEOF 18383if ac_fn_cxx_try_link "$LINENO" 18384then : 18385 18386 lt_aix_libpath_sed=' 18387 /Import File Strings/,/^$/ { 18388 /^0/ { 18389 s/^0 *\([^ ]*\) *$/\1/ 18390 p 18391 } 18392 }' 18393 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18394 # Check for a 64-bit object if we didn't find anything. 18395 if test -z "$lt_cv_aix_libpath__CXX"; then 18396 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18397 fi 18398fi 18399rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18400 conftest$ac_exeext conftest.$ac_ext 18401 if test -z "$lt_cv_aix_libpath__CXX"; then 18402 lt_cv_aix_libpath__CXX=/usr/lib:/lib 18403 fi 18404 18405fi 18406 18407 aix_libpath=$lt_cv_aix_libpath__CXX 18408fi 18409 18410 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 18411 18412 archive_expsym_cmds_CXX='$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 18413 else 18414 if test ia64 = "$host_cpu"; then 18415 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 18416 allow_undefined_flag_CXX="-z nodefs" 18417 archive_expsym_cmds_CXX="\$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" 18418 else 18419 # Determine the default libpath from the value encoded in an 18420 # empty executable. 18421 if test set = "${lt_cv_aix_libpath+set}"; then 18422 aix_libpath=$lt_cv_aix_libpath 18423else 18424 if test ${lt_cv_aix_libpath__CXX+y} 18425then : 18426 printf %s "(cached) " >&6 18427else $as_nop 18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18429/* end confdefs.h. */ 18430 18431int 18432main (void) 18433{ 18434 18435 ; 18436 return 0; 18437} 18438_ACEOF 18439if ac_fn_cxx_try_link "$LINENO" 18440then : 18441 18442 lt_aix_libpath_sed=' 18443 /Import File Strings/,/^$/ { 18444 /^0/ { 18445 s/^0 *\([^ ]*\) *$/\1/ 18446 p 18447 } 18448 }' 18449 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18450 # Check for a 64-bit object if we didn't find anything. 18451 if test -z "$lt_cv_aix_libpath__CXX"; then 18452 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18453 fi 18454fi 18455rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18456 conftest$ac_exeext conftest.$ac_ext 18457 if test -z "$lt_cv_aix_libpath__CXX"; then 18458 lt_cv_aix_libpath__CXX=/usr/lib:/lib 18459 fi 18460 18461fi 18462 18463 aix_libpath=$lt_cv_aix_libpath__CXX 18464fi 18465 18466 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 18467 # Warning - without using the other run time loading flags, 18468 # -berok will link without error, but may produce a broken library. 18469 no_undefined_flag_CXX=' $wl-bernotok' 18470 allow_undefined_flag_CXX=' $wl-berok' 18471 if test yes = "$with_gnu_ld"; then 18472 # We only use this code for GNU lds that support --whole-archive. 18473 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 18474 else 18475 # Exported symbols can be pulled into shared objects from archives 18476 whole_archive_flag_spec_CXX='$convenience' 18477 fi 18478 archive_cmds_need_lc_CXX=yes 18479 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 18480 # -brtl affects multiple linker settings, -berok does not and is overridden later 18481 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 18482 if test svr4 != "$with_aix_soname"; then 18483 # This is similar to how AIX traditionally builds its shared 18484 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 18485 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 18486 fi 18487 if test aix != "$with_aix_soname"; then 18488 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 18489 else 18490 # used by -dlpreopen to get the symbols 18491 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 18492 fi 18493 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 18494 fi 18495 fi 18496 ;; 18497 18498 beos*) 18499 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 18500 allow_undefined_flag_CXX=unsupported 18501 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18502 # support --undefined. This deserves some investigation. FIXME 18503 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18504 else 18505 ld_shlibs_CXX=no 18506 fi 18507 ;; 18508 18509 chorus*) 18510 case $cc_basename in 18511 *) 18512 # FIXME: insert proper C++ library support 18513 ld_shlibs_CXX=no 18514 ;; 18515 esac 18516 ;; 18517 18518 cygwin* | mingw* | pw32* | cegcc*) 18519 case $GXX,$cc_basename in 18520 ,cl* | no,cl*) 18521 # Native MSVC 18522 # hardcode_libdir_flag_spec is actually meaningless, as there is 18523 # no search path for DLLs. 18524 hardcode_libdir_flag_spec_CXX=' ' 18525 allow_undefined_flag_CXX=unsupported 18526 always_export_symbols_CXX=yes 18527 file_list_spec_CXX='@' 18528 # Tell ltmain to make .lib files, not .a files. 18529 libext=lib 18530 # Tell ltmain to make .dll files, not .so files. 18531 shrext_cmds=.dll 18532 # FIXME: Setting linknames here is a bad hack. 18533 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 18534 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18535 cp "$export_symbols" "$output_objdir/$soname.def"; 18536 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 18537 else 18538 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 18539 fi~ 18540 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 18541 linknames=' 18542 # The linker will not automatically build a static lib if we build a DLL. 18543 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 18544 enable_shared_with_static_runtimes_CXX=yes 18545 # Don't use ranlib 18546 old_postinstall_cmds_CXX='chmod 644 $oldlib' 18547 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 18548 lt_tool_outputfile="@TOOL_OUTPUT@"~ 18549 case $lt_outputfile in 18550 *.exe|*.EXE) ;; 18551 *) 18552 lt_outputfile=$lt_outputfile.exe 18553 lt_tool_outputfile=$lt_tool_outputfile.exe 18554 ;; 18555 esac~ 18556 func_to_tool_file "$lt_outputfile"~ 18557 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 18558 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 18559 $RM "$lt_outputfile.manifest"; 18560 fi' 18561 ;; 18562 *) 18563 # g++ 18564 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 18565 # as there is no search path for DLLs. 18566 hardcode_libdir_flag_spec_CXX='-L$libdir' 18567 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 18568 allow_undefined_flag_CXX=unsupported 18569 always_export_symbols_CXX=no 18570 enable_shared_with_static_runtimes_CXX=yes 18571 18572 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 18573 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18574 # If the export-symbols file already is a .def file, use it as 18575 # is; otherwise, prepend EXPORTS... 18576 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18577 cp $export_symbols $output_objdir/$soname.def; 18578 else 18579 echo EXPORTS > $output_objdir/$soname.def; 18580 cat $export_symbols >> $output_objdir/$soname.def; 18581 fi~ 18582 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18583 else 18584 ld_shlibs_CXX=no 18585 fi 18586 ;; 18587 esac 18588 ;; 18589 darwin* | rhapsody*) 18590 18591 18592 archive_cmds_need_lc_CXX=no 18593 hardcode_direct_CXX=no 18594 hardcode_automatic_CXX=yes 18595 hardcode_shlibpath_var_CXX=unsupported 18596 if test yes = "$lt_cv_ld_force_load"; then 18597 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 18598 18599 else 18600 whole_archive_flag_spec_CXX='' 18601 fi 18602 link_all_deplibs_CXX=yes 18603 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 18604 case $cc_basename in 18605 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 18606 *) _lt_dar_can_shared=$GCC ;; 18607 esac 18608 if test yes = "$_lt_dar_can_shared"; then 18609 output_verbose_link_cmd=func_echo_all 18610 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 18611 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 18612 archive_expsym_cmds_CXX="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" 18613 module_expsym_cmds_CXX="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" 18614 if test yes != "$lt_cv_apple_cc_single_mod"; then 18615 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 18616 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 18617 fi 18618 18619 else 18620 ld_shlibs_CXX=no 18621 fi 18622 18623 ;; 18624 18625 os2*) 18626 hardcode_libdir_flag_spec_CXX='-L$libdir' 18627 hardcode_minus_L_CXX=yes 18628 allow_undefined_flag_CXX=unsupported 18629 shrext_cmds=.dll 18630 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18631 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18632 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18633 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18634 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 18635 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18636 emximp -o $lib $output_objdir/$libname.def' 18637 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18638 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18639 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18640 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18641 prefix_cmds="$SED"~ 18642 if test EXPORTS = "`$SED 1q $export_symbols`"; then 18643 prefix_cmds="$prefix_cmds -e 1d"; 18644 fi~ 18645 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 18646 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 18647 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18648 emximp -o $lib $output_objdir/$libname.def' 18649 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 18650 enable_shared_with_static_runtimes_CXX=yes 18651 ;; 18652 18653 dgux*) 18654 case $cc_basename in 18655 ec++*) 18656 # FIXME: insert proper C++ library support 18657 ld_shlibs_CXX=no 18658 ;; 18659 ghcx*) 18660 # Green Hills C++ Compiler 18661 # FIXME: insert proper C++ library support 18662 ld_shlibs_CXX=no 18663 ;; 18664 *) 18665 # FIXME: insert proper C++ library support 18666 ld_shlibs_CXX=no 18667 ;; 18668 esac 18669 ;; 18670 18671 freebsd2.*) 18672 # C++ shared libraries reported to be fairly broken before 18673 # switch to ELF 18674 ld_shlibs_CXX=no 18675 ;; 18676 18677 freebsd-elf*) 18678 archive_cmds_need_lc_CXX=no 18679 ;; 18680 18681 freebsd* | dragonfly*) 18682 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 18683 # conventions 18684 ld_shlibs_CXX=yes 18685 ;; 18686 18687 haiku*) 18688 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18689 link_all_deplibs_CXX=yes 18690 ;; 18691 18692 hpux9*) 18693 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 18694 hardcode_libdir_separator_CXX=: 18695 export_dynamic_flag_spec_CXX='$wl-E' 18696 hardcode_direct_CXX=yes 18697 hardcode_minus_L_CXX=yes # Not in the search PATH, 18698 # but as the default 18699 # location of the library. 18700 18701 case $cc_basename in 18702 CC*) 18703 # FIXME: insert proper C++ library support 18704 ld_shlibs_CXX=no 18705 ;; 18706 aCC*) 18707 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 18708 # Commands to make compiler produce verbose output that lists 18709 # what "hidden" libraries, object files and flags are used when 18710 # linking a shared library. 18711 # 18712 # There doesn't appear to be a way to prevent this compiler from 18713 # explicitly linking system object files so we need to strip them 18714 # from the output so that they don't get included in the library 18715 # dependencies. 18716 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 18717 ;; 18718 *) 18719 if test yes = "$GXX"; then 18720 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 18721 else 18722 # FIXME: insert proper C++ library support 18723 ld_shlibs_CXX=no 18724 fi 18725 ;; 18726 esac 18727 ;; 18728 18729 hpux10*|hpux11*) 18730 if test no = "$with_gnu_ld"; then 18731 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 18732 hardcode_libdir_separator_CXX=: 18733 18734 case $host_cpu in 18735 hppa*64*|ia64*) 18736 ;; 18737 *) 18738 export_dynamic_flag_spec_CXX='$wl-E' 18739 ;; 18740 esac 18741 fi 18742 case $host_cpu in 18743 hppa*64*|ia64*) 18744 hardcode_direct_CXX=no 18745 hardcode_shlibpath_var_CXX=no 18746 ;; 18747 *) 18748 hardcode_direct_CXX=yes 18749 hardcode_direct_absolute_CXX=yes 18750 hardcode_minus_L_CXX=yes # Not in the search PATH, 18751 # but as the default 18752 # location of the library. 18753 ;; 18754 esac 18755 18756 case $cc_basename in 18757 CC*) 18758 # FIXME: insert proper C++ library support 18759 ld_shlibs_CXX=no 18760 ;; 18761 aCC*) 18762 case $host_cpu in 18763 hppa*64*) 18764 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18765 ;; 18766 ia64*) 18767 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18768 ;; 18769 *) 18770 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18771 ;; 18772 esac 18773 # Commands to make compiler produce verbose output that lists 18774 # what "hidden" libraries, object files and flags are used when 18775 # linking a shared library. 18776 # 18777 # There doesn't appear to be a way to prevent this compiler from 18778 # explicitly linking system object files so we need to strip them 18779 # from the output so that they don't get included in the library 18780 # dependencies. 18781 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 18782 ;; 18783 *) 18784 if test yes = "$GXX"; then 18785 if test no = "$with_gnu_ld"; then 18786 case $host_cpu in 18787 hppa*64*) 18788 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18789 ;; 18790 ia64*) 18791 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18792 ;; 18793 *) 18794 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18795 ;; 18796 esac 18797 fi 18798 else 18799 # FIXME: insert proper C++ library support 18800 ld_shlibs_CXX=no 18801 fi 18802 ;; 18803 esac 18804 ;; 18805 18806 interix[3-9]*) 18807 hardcode_direct_CXX=no 18808 hardcode_shlibpath_var_CXX=no 18809 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 18810 export_dynamic_flag_spec_CXX='$wl-E' 18811 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18812 # Instead, shared libraries are loaded at an image base (0x10000000 by 18813 # default) and relocated if they conflict, which is a slow very memory 18814 # consuming and fragmenting process. To avoid this, we pick a random, 18815 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18816 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18817 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18818 archive_expsym_cmds_CXX='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' 18819 ;; 18820 irix5* | irix6*) 18821 case $cc_basename in 18822 CC*) 18823 # SGI C++ 18824 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 18825 18826 # Archives containing C++ object files must be created using 18827 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 18828 # necessary to make sure instantiated templates are included 18829 # in the archive. 18830 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 18831 ;; 18832 *) 18833 if test yes = "$GXX"; then 18834 if test no = "$with_gnu_ld"; then 18835 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 18836 else 18837 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 18838 fi 18839 fi 18840 link_all_deplibs_CXX=yes 18841 ;; 18842 esac 18843 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 18844 hardcode_libdir_separator_CXX=: 18845 inherit_rpath_CXX=yes 18846 ;; 18847 18848 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18849 case $cc_basename in 18850 KCC*) 18851 # Kuck and Associates, Inc. (KAI) C++ Compiler 18852 18853 # KCC will only create a shared library if the output file 18854 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18855 # to its proper name (with version) after linking. 18856 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 18857 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 18858 # Commands to make compiler produce verbose output that lists 18859 # what "hidden" libraries, object files and flags are used when 18860 # linking a shared library. 18861 # 18862 # There doesn't appear to be a way to prevent this compiler from 18863 # explicitly linking system object files so we need to strip them 18864 # from the output so that they don't get included in the library 18865 # dependencies. 18866 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 18867 18868 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 18869 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 18870 18871 # Archives containing C++ object files must be created using 18872 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 18873 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 18874 ;; 18875 icpc* | ecpc* ) 18876 # Intel C++ 18877 with_gnu_ld=yes 18878 # version 8.0 and above of icpc choke on multiply defined symbols 18879 # if we add $predep_objects and $postdep_objects, however 7.1 and 18880 # earlier do not add the objects themselves. 18881 case `$CC -V 2>&1` in 18882 *"Version 7."*) 18883 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 18884 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18885 ;; 18886 *) # Version 8.0 or newer 18887 tmp_idyn= 18888 case $host_cpu in 18889 ia64*) tmp_idyn=' -i_dynamic';; 18890 esac 18891 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18892 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18893 ;; 18894 esac 18895 archive_cmds_need_lc_CXX=no 18896 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 18897 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 18898 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 18899 ;; 18900 pgCC* | pgcpp*) 18901 # Portland Group C++ compiler 18902 case `$CC -V` in 18903 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 18904 prelink_cmds_CXX='tpldir=Template.dir~ 18905 rm -rf $tpldir~ 18906 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 18907 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 18908 old_archive_cmds_CXX='tpldir=Template.dir~ 18909 rm -rf $tpldir~ 18910 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 18911 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 18912 $RANLIB $oldlib' 18913 archive_cmds_CXX='tpldir=Template.dir~ 18914 rm -rf $tpldir~ 18915 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18916 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 18917 archive_expsym_cmds_CXX='tpldir=Template.dir~ 18918 rm -rf $tpldir~ 18919 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18920 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18921 ;; 18922 *) # Version 6 and above use weak symbols 18923 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 18924 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18925 ;; 18926 esac 18927 18928 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 18929 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 18930 whole_archive_flag_spec_CXX='$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' 18931 ;; 18932 cxx*) 18933 # Compaq C++ 18934 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 18935 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 18936 18937 runpath_var=LD_RUN_PATH 18938 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 18939 hardcode_libdir_separator_CXX=: 18940 18941 # Commands to make compiler produce verbose output that lists 18942 # what "hidden" libraries, object files and flags are used when 18943 # linking a shared library. 18944 # 18945 # There doesn't appear to be a way to prevent this compiler from 18946 # explicitly linking system object files so we need to strip them 18947 # from the output so that they don't get included in the library 18948 # dependencies. 18949 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 18950 ;; 18951 xl* | mpixl* | bgxl*) 18952 # IBM XL 8.0 on PPC, with GNU ld 18953 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 18954 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 18955 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18956 if test yes = "$supports_anon_versioning"; then 18957 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 18958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18959 echo "local: *; };" >> $output_objdir/$libname.ver~ 18960 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 18961 fi 18962 ;; 18963 *) 18964 case `$CC -V 2>&1 | sed 5q` in 18965 *Sun\ C*) 18966 # Sun C++ 5.9 18967 no_undefined_flag_CXX=' -zdefs' 18968 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18969 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 18970 hardcode_libdir_flag_spec_CXX='-R$libdir' 18971 whole_archive_flag_spec_CXX='$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' 18972 compiler_needs_object_CXX=yes 18973 18974 # Not sure whether something based on 18975 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 18976 # would be better. 18977 output_verbose_link_cmd='func_echo_all' 18978 18979 # Archives containing C++ object files must be created using 18980 # "CC -xar", where "CC" is the Sun C++ compiler. This is 18981 # necessary to make sure instantiated templates are included 18982 # in the archive. 18983 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 18984 ;; 18985 esac 18986 ;; 18987 esac 18988 ;; 18989 18990 lynxos*) 18991 # FIXME: insert proper C++ library support 18992 ld_shlibs_CXX=no 18993 ;; 18994 18995 m88k*) 18996 # FIXME: insert proper C++ library support 18997 ld_shlibs_CXX=no 18998 ;; 18999 19000 mvs*) 19001 case $cc_basename in 19002 cxx*) 19003 # FIXME: insert proper C++ library support 19004 ld_shlibs_CXX=no 19005 ;; 19006 *) 19007 # FIXME: insert proper C++ library support 19008 ld_shlibs_CXX=no 19009 ;; 19010 esac 19011 ;; 19012 19013 netbsd*) 19014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19015 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 19016 wlarc= 19017 hardcode_libdir_flag_spec_CXX='-R$libdir' 19018 hardcode_direct_CXX=yes 19019 hardcode_shlibpath_var_CXX=no 19020 fi 19021 # Workaround some broken pre-1.5 toolchains 19022 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 19023 ;; 19024 19025 *nto* | *qnx*) 19026 ld_shlibs_CXX=yes 19027 ;; 19028 19029 openbsd* | bitrig*) 19030 if test -f /usr/libexec/ld.so; then 19031 hardcode_direct_CXX=yes 19032 hardcode_shlibpath_var_CXX=no 19033 hardcode_direct_absolute_CXX=yes 19034 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 19035 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 19036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 19037 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 19038 export_dynamic_flag_spec_CXX='$wl-E' 19039 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19040 fi 19041 output_verbose_link_cmd=func_echo_all 19042 else 19043 ld_shlibs_CXX=no 19044 fi 19045 ;; 19046 19047 osf3* | osf4* | osf5*) 19048 case $cc_basename in 19049 KCC*) 19050 # Kuck and Associates, Inc. (KAI) C++ Compiler 19051 19052 # KCC will only create a shared library if the output file 19053 # ends with ".so" (or ".sl" for HP-UX), so rename the library 19054 # to its proper name (with version) after linking. 19055 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 19056 19057 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 19058 hardcode_libdir_separator_CXX=: 19059 19060 # Archives containing C++ object files must be created using 19061 # the KAI C++ compiler. 19062 case $host in 19063 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 19064 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 19065 esac 19066 ;; 19067 RCC*) 19068 # Rational C++ 2.4.1 19069 # FIXME: insert proper C++ library support 19070 ld_shlibs_CXX=no 19071 ;; 19072 cxx*) 19073 case $host in 19074 osf3*) 19075 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 19076 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 19077 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 19078 ;; 19079 *) 19080 allow_undefined_flag_CXX=' -expect_unresolved \*' 19081 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 19082 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 19083 echo "-hidden">> $lib.exp~ 19084 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 19085 $RM $lib.exp' 19086 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 19087 ;; 19088 esac 19089 19090 hardcode_libdir_separator_CXX=: 19091 19092 # Commands to make compiler produce verbose output that lists 19093 # what "hidden" libraries, object files and flags are used when 19094 # linking a shared library. 19095 # 19096 # There doesn't appear to be a way to prevent this compiler from 19097 # explicitly linking system object files so we need to strip them 19098 # from the output so that they don't get included in the library 19099 # dependencies. 19100 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 19101 ;; 19102 *) 19103 if test yes,no = "$GXX,$with_gnu_ld"; then 19104 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 19105 case $host in 19106 osf3*) 19107 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 19108 ;; 19109 *) 19110 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 19111 ;; 19112 esac 19113 19114 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 19115 hardcode_libdir_separator_CXX=: 19116 19117 # Commands to make compiler produce verbose output that lists 19118 # what "hidden" libraries, object files and flags are used when 19119 # linking a shared library. 19120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 19121 19122 else 19123 # FIXME: insert proper C++ library support 19124 ld_shlibs_CXX=no 19125 fi 19126 ;; 19127 esac 19128 ;; 19129 19130 psos*) 19131 # FIXME: insert proper C++ library support 19132 ld_shlibs_CXX=no 19133 ;; 19134 19135 sunos4*) 19136 case $cc_basename in 19137 CC*) 19138 # Sun C++ 4.x 19139 # FIXME: insert proper C++ library support 19140 ld_shlibs_CXX=no 19141 ;; 19142 lcc*) 19143 # Lucid 19144 # FIXME: insert proper C++ library support 19145 ld_shlibs_CXX=no 19146 ;; 19147 *) 19148 # FIXME: insert proper C++ library support 19149 ld_shlibs_CXX=no 19150 ;; 19151 esac 19152 ;; 19153 19154 solaris*) 19155 case $cc_basename in 19156 CC* | sunCC*) 19157 # Sun C++ 4.2, 5.x and Centerline C++ 19158 archive_cmds_need_lc_CXX=yes 19159 no_undefined_flag_CXX=' -zdefs' 19160 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19161 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19162 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 19163 19164 hardcode_libdir_flag_spec_CXX='-R$libdir' 19165 hardcode_shlibpath_var_CXX=no 19166 case $host_os in 19167 solaris2.[0-5] | solaris2.[0-5].*) ;; 19168 *) 19169 # The compiler driver will combine and reorder linker options, 19170 # but understands '-z linker_flag'. 19171 # Supported since Solaris 2.6 (maybe 2.5.1?) 19172 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 19173 ;; 19174 esac 19175 link_all_deplibs_CXX=yes 19176 19177 output_verbose_link_cmd='func_echo_all' 19178 19179 # Archives containing C++ object files must be created using 19180 # "CC -xar", where "CC" is the Sun C++ compiler. This is 19181 # necessary to make sure instantiated templates are included 19182 # in the archive. 19183 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 19184 ;; 19185 gcx*) 19186 # Green Hills C++ Compiler 19187 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 19188 19189 # The C++ compiler must be used to create the archive. 19190 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 19191 ;; 19192 *) 19193 # GNU C++ compiler with Solaris linker 19194 if test yes,no = "$GXX,$with_gnu_ld"; then 19195 no_undefined_flag_CXX=' $wl-z ${wl}defs' 19196 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 19197 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 19198 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19199 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 19200 19201 # Commands to make compiler produce verbose output that lists 19202 # what "hidden" libraries, object files and flags are used when 19203 # linking a shared library. 19204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 19205 else 19206 # g++ 2.7 appears to require '-G' NOT '-shared' on this 19207 # platform. 19208 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 19209 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19210 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 19211 19212 # Commands to make compiler produce verbose output that lists 19213 # what "hidden" libraries, object files and flags are used when 19214 # linking a shared library. 19215 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 19216 fi 19217 19218 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 19219 case $host_os in 19220 solaris2.[0-5] | solaris2.[0-5].*) ;; 19221 *) 19222 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 19223 ;; 19224 esac 19225 fi 19226 ;; 19227 esac 19228 ;; 19229 19230 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 19231 no_undefined_flag_CXX='$wl-z,text' 19232 archive_cmds_need_lc_CXX=no 19233 hardcode_shlibpath_var_CXX=no 19234 runpath_var='LD_RUN_PATH' 19235 19236 case $cc_basename in 19237 CC*) 19238 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19239 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19240 ;; 19241 *) 19242 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19243 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19244 ;; 19245 esac 19246 ;; 19247 19248 sysv5* | sco3.2v5* | sco5v6*) 19249 # Note: We CANNOT use -z defs as we might desire, because we do not 19250 # link with -lc, and that would cause any symbols used from libc to 19251 # always be unresolved, which means just about no library would 19252 # ever link correctly. If we're not using GNU ld we use -z text 19253 # though, which does catch some bad symbols but isn't as heavy-handed 19254 # as -z defs. 19255 no_undefined_flag_CXX='$wl-z,text' 19256 allow_undefined_flag_CXX='$wl-z,nodefs' 19257 archive_cmds_need_lc_CXX=no 19258 hardcode_shlibpath_var_CXX=no 19259 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 19260 hardcode_libdir_separator_CXX=':' 19261 link_all_deplibs_CXX=yes 19262 export_dynamic_flag_spec_CXX='$wl-Bexport' 19263 runpath_var='LD_RUN_PATH' 19264 19265 case $cc_basename in 19266 CC*) 19267 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19268 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19269 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 19270 '"$old_archive_cmds_CXX" 19271 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 19272 '"$reload_cmds_CXX" 19273 ;; 19274 *) 19275 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19276 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19277 ;; 19278 esac 19279 ;; 19280 19281 tandem*) 19282 case $cc_basename in 19283 NCC*) 19284 # NonStop-UX NCC 3.20 19285 # FIXME: insert proper C++ library support 19286 ld_shlibs_CXX=no 19287 ;; 19288 *) 19289 # FIXME: insert proper C++ library support 19290 ld_shlibs_CXX=no 19291 ;; 19292 esac 19293 ;; 19294 19295 vxworks*) 19296 # FIXME: insert proper C++ library support 19297 ld_shlibs_CXX=no 19298 ;; 19299 19300 *) 19301 # FIXME: insert proper C++ library support 19302 ld_shlibs_CXX=no 19303 ;; 19304 esac 19305 19306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 19307printf "%s\n" "$ld_shlibs_CXX" >&6; } 19308 test no = "$ld_shlibs_CXX" && can_build_shared=no 19309 19310 GCC_CXX=$GXX 19311 LD_CXX=$LD 19312 19313 ## CAVEAT EMPTOR: 19314 ## There is no encapsulation within the following macros, do not change 19315 ## the running order or otherwise move them around unless you know exactly 19316 ## what you are doing... 19317 # Dependencies to place before and after the object being linked: 19318predep_objects_CXX= 19319postdep_objects_CXX= 19320predeps_CXX= 19321postdeps_CXX= 19322compiler_lib_search_path_CXX= 19323 19324cat > conftest.$ac_ext <<_LT_EOF 19325class Foo 19326{ 19327public: 19328 Foo (void) { a = 0; } 19329private: 19330 int a; 19331}; 19332_LT_EOF 19333 19334 19335_lt_libdeps_save_CFLAGS=$CFLAGS 19336case "$CC $CFLAGS " in #( 19337*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 19338*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 19339*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 19340esac 19341 19342if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 19343 (eval $ac_compile) 2>&5 19344 ac_status=$? 19345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19346 test $ac_status = 0; }; then 19347 # Parse the compiler output and extract the necessary 19348 # objects, libraries and library flags. 19349 19350 # Sentinel used to keep track of whether or not we are before 19351 # the conftest object file. 19352 pre_test_object_deps_done=no 19353 19354 for p in `eval "$output_verbose_link_cmd"`; do 19355 case $prev$p in 19356 19357 -L* | -R* | -l*) 19358 # Some compilers place space between "-{L,R}" and the path. 19359 # Remove the space. 19360 if test x-L = "$p" || 19361 test x-R = "$p"; then 19362 prev=$p 19363 continue 19364 fi 19365 19366 # Expand the sysroot to ease extracting the directories later. 19367 if test -z "$prev"; then 19368 case $p in 19369 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 19370 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 19371 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 19372 esac 19373 fi 19374 case $p in 19375 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 19376 esac 19377 if test no = "$pre_test_object_deps_done"; then 19378 case $prev in 19379 -L | -R) 19380 # Internal compiler library paths should come after those 19381 # provided the user. The postdeps already come after the 19382 # user supplied libs so there is no need to process them. 19383 if test -z "$compiler_lib_search_path_CXX"; then 19384 compiler_lib_search_path_CXX=$prev$p 19385 else 19386 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 19387 fi 19388 ;; 19389 # The "-l" case would never come before the object being 19390 # linked, so don't bother handling this case. 19391 esac 19392 else 19393 if test -z "$postdeps_CXX"; then 19394 postdeps_CXX=$prev$p 19395 else 19396 postdeps_CXX="${postdeps_CXX} $prev$p" 19397 fi 19398 fi 19399 prev= 19400 ;; 19401 19402 *.lto.$objext) ;; # Ignore GCC LTO objects 19403 *.$objext) 19404 # This assumes that the test object file only shows up 19405 # once in the compiler output. 19406 if test "$p" = "conftest.$objext"; then 19407 pre_test_object_deps_done=yes 19408 continue 19409 fi 19410 19411 if test no = "$pre_test_object_deps_done"; then 19412 if test -z "$predep_objects_CXX"; then 19413 predep_objects_CXX=$p 19414 else 19415 predep_objects_CXX="$predep_objects_CXX $p" 19416 fi 19417 else 19418 if test -z "$postdep_objects_CXX"; then 19419 postdep_objects_CXX=$p 19420 else 19421 postdep_objects_CXX="$postdep_objects_CXX $p" 19422 fi 19423 fi 19424 ;; 19425 19426 *) ;; # Ignore the rest. 19427 19428 esac 19429 done 19430 19431 # Clean up. 19432 rm -f a.out a.exe 19433else 19434 echo "libtool.m4: error: problem compiling CXX test program" 19435fi 19436 19437$RM -f confest.$objext 19438CFLAGS=$_lt_libdeps_save_CFLAGS 19439 19440# PORTME: override above test on systems where it is broken 19441case $host_os in 19442interix[3-9]*) 19443 # Interix 3.5 installs completely hosed .la files for C++, so rather than 19444 # hack all around it, let's just trust "g++" to DTRT. 19445 predep_objects_CXX= 19446 postdep_objects_CXX= 19447 postdeps_CXX= 19448 ;; 19449esac 19450 19451 19452case " $postdeps_CXX " in 19453*" -lc "*) archive_cmds_need_lc_CXX=no ;; 19454esac 19455 compiler_lib_search_dirs_CXX= 19456if test -n "${compiler_lib_search_path_CXX}"; then 19457 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 19458fi 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 lt_prog_compiler_wl_CXX= 19491lt_prog_compiler_pic_CXX= 19492lt_prog_compiler_static_CXX= 19493 19494 19495 # C++ specific cases for pic, static, wl, etc. 19496 if test yes = "$GXX"; then 19497 lt_prog_compiler_wl_CXX='-Wl,' 19498 lt_prog_compiler_static_CXX='-static' 19499 19500 case $host_os in 19501 aix*) 19502 # All AIX code is PIC. 19503 if test ia64 = "$host_cpu"; then 19504 # AIX 5 now supports IA64 processor 19505 lt_prog_compiler_static_CXX='-Bstatic' 19506 fi 19507 lt_prog_compiler_pic_CXX='-fPIC' 19508 ;; 19509 19510 amigaos*) 19511 case $host_cpu in 19512 powerpc) 19513 # see comment about AmigaOS4 .so support 19514 lt_prog_compiler_pic_CXX='-fPIC' 19515 ;; 19516 m68k) 19517 # FIXME: we need at least 68020 code to build shared libraries, but 19518 # adding the '-m68020' flag to GCC prevents building anything better, 19519 # like '-m68040'. 19520 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 19521 ;; 19522 esac 19523 ;; 19524 19525 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19526 # PIC is the default for these OSes. 19527 ;; 19528 mingw* | cygwin* | os2* | pw32* | cegcc*) 19529 # This hack is so that the source file can tell whether it is being 19530 # built for inclusion in a dll (and should export symbols for example). 19531 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19532 # (--disable-auto-import) libraries 19533 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 19534 case $host_os in 19535 os2*) 19536 lt_prog_compiler_static_CXX='$wl-static' 19537 ;; 19538 esac 19539 ;; 19540 darwin* | rhapsody*) 19541 # PIC is the default on this platform 19542 # Common symbols not allowed in MH_DYLIB files 19543 lt_prog_compiler_pic_CXX='-fno-common' 19544 ;; 19545 *djgpp*) 19546 # DJGPP does not support shared libraries at all 19547 lt_prog_compiler_pic_CXX= 19548 ;; 19549 haiku*) 19550 # PIC is the default for Haiku. 19551 # The "-static" flag exists, but is broken. 19552 lt_prog_compiler_static_CXX= 19553 ;; 19554 interix[3-9]*) 19555 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19556 # Instead, we relocate shared libraries at runtime. 19557 ;; 19558 sysv4*MP*) 19559 if test -d /usr/nec; then 19560 lt_prog_compiler_pic_CXX=-Kconform_pic 19561 fi 19562 ;; 19563 hpux*) 19564 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19565 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19566 # sets the default TLS model and affects inlining. 19567 case $host_cpu in 19568 hppa*64*) 19569 ;; 19570 *) 19571 lt_prog_compiler_pic_CXX='-fPIC' 19572 ;; 19573 esac 19574 ;; 19575 *qnx* | *nto*) 19576 # QNX uses GNU C++, but need to define -shared option too, otherwise 19577 # it will coredump. 19578 lt_prog_compiler_pic_CXX='-fPIC -shared' 19579 ;; 19580 *) 19581 lt_prog_compiler_pic_CXX='-fPIC' 19582 ;; 19583 esac 19584 else 19585 case $host_os in 19586 aix[4-9]*) 19587 # All AIX code is PIC. 19588 if test ia64 = "$host_cpu"; then 19589 # AIX 5 now supports IA64 processor 19590 lt_prog_compiler_static_CXX='-Bstatic' 19591 else 19592 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 19593 fi 19594 ;; 19595 chorus*) 19596 case $cc_basename in 19597 cxch68*) 19598 # Green Hills C++ Compiler 19599 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 19600 ;; 19601 esac 19602 ;; 19603 mingw* | cygwin* | os2* | pw32* | cegcc*) 19604 # This hack is so that the source file can tell whether it is being 19605 # built for inclusion in a dll (and should export symbols for example). 19606 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 19607 ;; 19608 dgux*) 19609 case $cc_basename in 19610 ec++*) 19611 lt_prog_compiler_pic_CXX='-KPIC' 19612 ;; 19613 ghcx*) 19614 # Green Hills C++ Compiler 19615 lt_prog_compiler_pic_CXX='-pic' 19616 ;; 19617 *) 19618 ;; 19619 esac 19620 ;; 19621 freebsd* | dragonfly*) 19622 # FreeBSD uses GNU C++ 19623 ;; 19624 hpux9* | hpux10* | hpux11*) 19625 case $cc_basename in 19626 CC*) 19627 lt_prog_compiler_wl_CXX='-Wl,' 19628 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 19629 if test ia64 != "$host_cpu"; then 19630 lt_prog_compiler_pic_CXX='+Z' 19631 fi 19632 ;; 19633 aCC*) 19634 lt_prog_compiler_wl_CXX='-Wl,' 19635 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 19636 case $host_cpu in 19637 hppa*64*|ia64*) 19638 # +Z the default 19639 ;; 19640 *) 19641 lt_prog_compiler_pic_CXX='+Z' 19642 ;; 19643 esac 19644 ;; 19645 *) 19646 ;; 19647 esac 19648 ;; 19649 interix*) 19650 # This is c89, which is MS Visual C++ (no shared libs) 19651 # Anyone wants to do a port? 19652 ;; 19653 irix5* | irix6* | nonstopux*) 19654 case $cc_basename in 19655 CC*) 19656 lt_prog_compiler_wl_CXX='-Wl,' 19657 lt_prog_compiler_static_CXX='-non_shared' 19658 # CC pic flag -KPIC is the default. 19659 ;; 19660 *) 19661 ;; 19662 esac 19663 ;; 19664 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19665 case $cc_basename in 19666 KCC*) 19667 # KAI C++ Compiler 19668 lt_prog_compiler_wl_CXX='--backend -Wl,' 19669 lt_prog_compiler_pic_CXX='-fPIC' 19670 ;; 19671 ecpc* ) 19672 # old Intel C++ for x86_64, which still supported -KPIC. 19673 lt_prog_compiler_wl_CXX='-Wl,' 19674 lt_prog_compiler_pic_CXX='-KPIC' 19675 lt_prog_compiler_static_CXX='-static' 19676 ;; 19677 icpc* ) 19678 # Intel C++, used to be incompatible with GCC. 19679 # ICC 10 doesn't accept -KPIC any more. 19680 lt_prog_compiler_wl_CXX='-Wl,' 19681 lt_prog_compiler_pic_CXX='-fPIC' 19682 lt_prog_compiler_static_CXX='-static' 19683 ;; 19684 pgCC* | pgcpp*) 19685 # Portland Group C++ compiler 19686 lt_prog_compiler_wl_CXX='-Wl,' 19687 lt_prog_compiler_pic_CXX='-fpic' 19688 lt_prog_compiler_static_CXX='-Bstatic' 19689 ;; 19690 cxx*) 19691 # Compaq C++ 19692 # Make sure the PIC flag is empty. It appears that all Alpha 19693 # Linux and Compaq Tru64 Unix objects are PIC. 19694 lt_prog_compiler_pic_CXX= 19695 lt_prog_compiler_static_CXX='-non_shared' 19696 ;; 19697 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 19698 # IBM XL 8.0, 9.0 on PPC and BlueGene 19699 lt_prog_compiler_wl_CXX='-Wl,' 19700 lt_prog_compiler_pic_CXX='-qpic' 19701 lt_prog_compiler_static_CXX='-qstaticlink' 19702 ;; 19703 *) 19704 case `$CC -V 2>&1 | sed 5q` in 19705 *Sun\ C*) 19706 # Sun C++ 5.9 19707 lt_prog_compiler_pic_CXX='-KPIC' 19708 lt_prog_compiler_static_CXX='-Bstatic' 19709 lt_prog_compiler_wl_CXX='-Qoption ld ' 19710 ;; 19711 esac 19712 ;; 19713 esac 19714 ;; 19715 lynxos*) 19716 ;; 19717 m88k*) 19718 ;; 19719 mvs*) 19720 case $cc_basename in 19721 cxx*) 19722 lt_prog_compiler_pic_CXX='-W c,exportall' 19723 ;; 19724 *) 19725 ;; 19726 esac 19727 ;; 19728 netbsd* | netbsdelf*-gnu) 19729 ;; 19730 *qnx* | *nto*) 19731 # QNX uses GNU C++, but need to define -shared option too, otherwise 19732 # it will coredump. 19733 lt_prog_compiler_pic_CXX='-fPIC -shared' 19734 ;; 19735 osf3* | osf4* | osf5*) 19736 case $cc_basename in 19737 KCC*) 19738 lt_prog_compiler_wl_CXX='--backend -Wl,' 19739 ;; 19740 RCC*) 19741 # Rational C++ 2.4.1 19742 lt_prog_compiler_pic_CXX='-pic' 19743 ;; 19744 cxx*) 19745 # Digital/Compaq C++ 19746 lt_prog_compiler_wl_CXX='-Wl,' 19747 # Make sure the PIC flag is empty. It appears that all Alpha 19748 # Linux and Compaq Tru64 Unix objects are PIC. 19749 lt_prog_compiler_pic_CXX= 19750 lt_prog_compiler_static_CXX='-non_shared' 19751 ;; 19752 *) 19753 ;; 19754 esac 19755 ;; 19756 psos*) 19757 ;; 19758 solaris*) 19759 case $cc_basename in 19760 CC* | sunCC*) 19761 # Sun C++ 4.2, 5.x and Centerline C++ 19762 lt_prog_compiler_pic_CXX='-KPIC' 19763 lt_prog_compiler_static_CXX='-Bstatic' 19764 lt_prog_compiler_wl_CXX='-Qoption ld ' 19765 ;; 19766 gcx*) 19767 # Green Hills C++ Compiler 19768 lt_prog_compiler_pic_CXX='-PIC' 19769 ;; 19770 *) 19771 ;; 19772 esac 19773 ;; 19774 sunos4*) 19775 case $cc_basename in 19776 CC*) 19777 # Sun C++ 4.x 19778 lt_prog_compiler_pic_CXX='-pic' 19779 lt_prog_compiler_static_CXX='-Bstatic' 19780 ;; 19781 lcc*) 19782 # Lucid 19783 lt_prog_compiler_pic_CXX='-pic' 19784 ;; 19785 *) 19786 ;; 19787 esac 19788 ;; 19789 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19790 case $cc_basename in 19791 CC*) 19792 lt_prog_compiler_wl_CXX='-Wl,' 19793 lt_prog_compiler_pic_CXX='-KPIC' 19794 lt_prog_compiler_static_CXX='-Bstatic' 19795 ;; 19796 esac 19797 ;; 19798 tandem*) 19799 case $cc_basename in 19800 NCC*) 19801 # NonStop-UX NCC 3.20 19802 lt_prog_compiler_pic_CXX='-KPIC' 19803 ;; 19804 *) 19805 ;; 19806 esac 19807 ;; 19808 vxworks*) 19809 ;; 19810 *) 19811 lt_prog_compiler_can_build_shared_CXX=no 19812 ;; 19813 esac 19814 fi 19815 19816case $host_os in 19817 # For platforms that do not support PIC, -DPIC is meaningless: 19818 *djgpp*) 19819 lt_prog_compiler_pic_CXX= 19820 ;; 19821 *) 19822 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 19823 ;; 19824esac 19825 19826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19827printf %s "checking for $compiler option to produce PIC... " >&6; } 19828if test ${lt_cv_prog_compiler_pic_CXX+y} 19829then : 19830 printf %s "(cached) " >&6 19831else $as_nop 19832 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 19833fi 19834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 19835printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } 19836lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 19837 19838# 19839# Check to make sure the PIC flag actually works. 19840# 19841if test -n "$lt_prog_compiler_pic_CXX"; then 19842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 19843printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 19844if test ${lt_cv_prog_compiler_pic_works_CXX+y} 19845then : 19846 printf %s "(cached) " >&6 19847else $as_nop 19848 lt_cv_prog_compiler_pic_works_CXX=no 19849 ac_outfile=conftest.$ac_objext 19850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19851 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 19852 # Insert the option either (1) after the last *FLAGS variable, or 19853 # (2) before a word containing "conftest.", or (3) at the end. 19854 # Note that $ac_compile itself does not contain backslashes and begins 19855 # with a dollar sign (not a hyphen), so the echo should work correctly. 19856 # The option is referenced via a variable to avoid confusing sed. 19857 lt_compile=`echo "$ac_compile" | $SED \ 19858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19860 -e 's:$: $lt_compiler_flag:'` 19861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19862 (eval "$lt_compile" 2>conftest.err) 19863 ac_status=$? 19864 cat conftest.err >&5 19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19866 if (exit $ac_status) && test -s "$ac_outfile"; then 19867 # The compiler can only warn and ignore the option if not recognized 19868 # So say no if there are warnings other than the usual output. 19869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19872 lt_cv_prog_compiler_pic_works_CXX=yes 19873 fi 19874 fi 19875 $RM conftest* 19876 19877fi 19878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 19879printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 19880 19881if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 19882 case $lt_prog_compiler_pic_CXX in 19883 "" | " "*) ;; 19884 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 19885 esac 19886else 19887 lt_prog_compiler_pic_CXX= 19888 lt_prog_compiler_can_build_shared_CXX=no 19889fi 19890 19891fi 19892 19893 19894 19895 19896 19897# 19898# Check to make sure the static flag actually works. 19899# 19900wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 19901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19902printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19903if test ${lt_cv_prog_compiler_static_works_CXX+y} 19904then : 19905 printf %s "(cached) " >&6 19906else $as_nop 19907 lt_cv_prog_compiler_static_works_CXX=no 19908 save_LDFLAGS=$LDFLAGS 19909 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19910 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19911 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19912 # The linker can only warn and ignore the option if not recognized 19913 # So say no if there are warnings 19914 if test -s conftest.err; then 19915 # Append any errors to the config.log. 19916 cat conftest.err 1>&5 19917 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19919 if diff conftest.exp conftest.er2 >/dev/null; then 19920 lt_cv_prog_compiler_static_works_CXX=yes 19921 fi 19922 else 19923 lt_cv_prog_compiler_static_works_CXX=yes 19924 fi 19925 fi 19926 $RM -r conftest* 19927 LDFLAGS=$save_LDFLAGS 19928 19929fi 19930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 19931printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } 19932 19933if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 19934 : 19935else 19936 lt_prog_compiler_static_CXX= 19937fi 19938 19939 19940 19941 19942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19943printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19944if test ${lt_cv_prog_compiler_c_o_CXX+y} 19945then : 19946 printf %s "(cached) " >&6 19947else $as_nop 19948 lt_cv_prog_compiler_c_o_CXX=no 19949 $RM -r conftest 2>/dev/null 19950 mkdir conftest 19951 cd conftest 19952 mkdir out 19953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19954 19955 lt_compiler_flag="-o out/conftest2.$ac_objext" 19956 # Insert the option either (1) after the last *FLAGS variable, or 19957 # (2) before a word containing "conftest.", or (3) at the end. 19958 # Note that $ac_compile itself does not contain backslashes and begins 19959 # with a dollar sign (not a hyphen), so the echo should work correctly. 19960 lt_compile=`echo "$ac_compile" | $SED \ 19961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19963 -e 's:$: $lt_compiler_flag:'` 19964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19965 (eval "$lt_compile" 2>out/conftest.err) 19966 ac_status=$? 19967 cat out/conftest.err >&5 19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19969 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19970 then 19971 # The compiler can only warn and ignore the option if not recognized 19972 # So say no if there are warnings 19973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19976 lt_cv_prog_compiler_c_o_CXX=yes 19977 fi 19978 fi 19979 chmod u+w . 2>&5 19980 $RM conftest* 19981 # SGI C++ compiler will create directory out/ii_files/ for 19982 # template instantiation 19983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19984 $RM out/* && rmdir out 19985 cd .. 19986 $RM -r conftest 19987 $RM conftest* 19988 19989fi 19990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19991printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 19992 19993 19994 19995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19996printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19997if test ${lt_cv_prog_compiler_c_o_CXX+y} 19998then : 19999 printf %s "(cached) " >&6 20000else $as_nop 20001 lt_cv_prog_compiler_c_o_CXX=no 20002 $RM -r conftest 2>/dev/null 20003 mkdir conftest 20004 cd conftest 20005 mkdir out 20006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20007 20008 lt_compiler_flag="-o out/conftest2.$ac_objext" 20009 # Insert the option either (1) after the last *FLAGS variable, or 20010 # (2) before a word containing "conftest.", or (3) at the end. 20011 # Note that $ac_compile itself does not contain backslashes and begins 20012 # with a dollar sign (not a hyphen), so the echo should work correctly. 20013 lt_compile=`echo "$ac_compile" | $SED \ 20014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20016 -e 's:$: $lt_compiler_flag:'` 20017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20018 (eval "$lt_compile" 2>out/conftest.err) 20019 ac_status=$? 20020 cat out/conftest.err >&5 20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20022 if (exit $ac_status) && test -s out/conftest2.$ac_objext 20023 then 20024 # The compiler can only warn and ignore the option if not recognized 20025 # So say no if there are warnings 20026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 20027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 20028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 20029 lt_cv_prog_compiler_c_o_CXX=yes 20030 fi 20031 fi 20032 chmod u+w . 2>&5 20033 $RM conftest* 20034 # SGI C++ compiler will create directory out/ii_files/ for 20035 # template instantiation 20036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 20037 $RM out/* && rmdir out 20038 cd .. 20039 $RM -r conftest 20040 $RM conftest* 20041 20042fi 20043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 20044printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 20045 20046 20047 20048 20049hard_links=nottested 20050if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 20051 # do not overwrite the value of need_locks provided by the user 20052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 20053printf %s "checking if we can lock with hard links... " >&6; } 20054 hard_links=yes 20055 $RM conftest* 20056 ln conftest.a conftest.b 2>/dev/null && hard_links=no 20057 touch conftest.a 20058 ln conftest.a conftest.b 2>&5 || hard_links=no 20059 ln conftest.a conftest.b 2>/dev/null && hard_links=no 20060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 20061printf "%s\n" "$hard_links" >&6; } 20062 if test no = "$hard_links"; then 20063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 20064printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 20065 need_locks=warn 20066 fi 20067else 20068 need_locks=no 20069fi 20070 20071 20072 20073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20074printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 20075 20076 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 20077 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 20078 case $host_os in 20079 aix[4-9]*) 20080 # If we're using GNU nm, then we don't want the "-C" option. 20081 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 20082 # Without the "-l" option, or with the "-B" option, AIX nm treats 20083 # weak defined symbols like other global defined symbols, whereas 20084 # GNU nm marks them as "W". 20085 # While the 'weak' keyword is ignored in the Export File, we need 20086 # it in the Import File for the 'aix-soname' feature, so we have 20087 # to replace the "-B" option with "-P" for AIX nm. 20088 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 20089 export_symbols_cmds_CXX='$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' 20090 else 20091 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 20092 fi 20093 ;; 20094 pw32*) 20095 export_symbols_cmds_CXX=$ltdll_cmds 20096 ;; 20097 cygwin* | mingw* | cegcc*) 20098 case $cc_basename in 20099 cl*) 20100 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 20101 ;; 20102 *) 20103 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 20104 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 20105 ;; 20106 esac 20107 ;; 20108 linux* | k*bsd*-gnu | gnu*) 20109 link_all_deplibs_CXX=no 20110 ;; 20111 *) 20112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 20113 ;; 20114 esac 20115 20116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 20117printf "%s\n" "$ld_shlibs_CXX" >&6; } 20118test no = "$ld_shlibs_CXX" && can_build_shared=no 20119 20120with_gnu_ld_CXX=$with_gnu_ld 20121 20122 20123 20124 20125 20126 20127# 20128# Do we need to explicitly link libc? 20129# 20130case "x$archive_cmds_need_lc_CXX" in 20131x|xyes) 20132 # Assume -lc should be added 20133 archive_cmds_need_lc_CXX=yes 20134 20135 if test yes,yes = "$GCC,$enable_shared"; then 20136 case $archive_cmds_CXX in 20137 *'~'*) 20138 # FIXME: we may have to deal with multi-command sequences. 20139 ;; 20140 '$CC '*) 20141 # Test whether the compiler implicitly links with -lc since on some 20142 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20143 # to ld, don't add -lc before -lgcc. 20144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 20145printf %s "checking whether -lc should be explicitly linked in... " >&6; } 20146if test ${lt_cv_archive_cmds_need_lc_CXX+y} 20147then : 20148 printf %s "(cached) " >&6 20149else $as_nop 20150 $RM conftest* 20151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20152 20153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20154 (eval $ac_compile) 2>&5 20155 ac_status=$? 20156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20157 test $ac_status = 0; } 2>conftest.err; then 20158 soname=conftest 20159 lib=conftest 20160 libobjs=conftest.$ac_objext 20161 deplibs= 20162 wl=$lt_prog_compiler_wl_CXX 20163 pic_flag=$lt_prog_compiler_pic_CXX 20164 compiler_flags=-v 20165 linker_flags=-v 20166 verstring= 20167 output_objdir=. 20168 libname=conftest 20169 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 20170 allow_undefined_flag_CXX= 20171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 20172 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 20173 ac_status=$? 20174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20175 test $ac_status = 0; } 20176 then 20177 lt_cv_archive_cmds_need_lc_CXX=no 20178 else 20179 lt_cv_archive_cmds_need_lc_CXX=yes 20180 fi 20181 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 20182 else 20183 cat conftest.err 1>&5 20184 fi 20185 $RM conftest* 20186 20187fi 20188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 20189printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 20190 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 20191 ;; 20192 esac 20193 fi 20194 ;; 20195esac 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 20259printf %s "checking dynamic linker characteristics... " >&6; } 20260 20261library_names_spec= 20262libname_spec='lib$name' 20263soname_spec= 20264shrext_cmds=.so 20265postinstall_cmds= 20266postuninstall_cmds= 20267finish_cmds= 20268finish_eval= 20269shlibpath_var= 20270shlibpath_overrides_runpath=unknown 20271version_type=none 20272dynamic_linker="$host_os ld.so" 20273sys_lib_dlsearch_path_spec="/lib /usr/lib" 20274need_lib_prefix=unknown 20275hardcode_into_libs=no 20276 20277# when you set need_version to no, make sure it does not cause -set_version 20278# flags to be left without arguments 20279need_version=unknown 20280 20281 20282 20283case $host_os in 20284aix3*) 20285 version_type=linux # correct to gnu/linux during the next big refactor 20286 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 20287 shlibpath_var=LIBPATH 20288 20289 # AIX 3 has no versioning support, so we append a major version to the name. 20290 soname_spec='$libname$release$shared_ext$major' 20291 ;; 20292 20293aix[4-9]*) 20294 version_type=linux # correct to gnu/linux during the next big refactor 20295 need_lib_prefix=no 20296 need_version=no 20297 hardcode_into_libs=yes 20298 if test ia64 = "$host_cpu"; then 20299 # AIX 5 supports IA64 20300 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 20301 shlibpath_var=LD_LIBRARY_PATH 20302 else 20303 # With GCC up to 2.95.x, collect2 would create an import file 20304 # for dependence libraries. The import file would start with 20305 # the line '#! .'. This would cause the generated library to 20306 # depend on '.', always an invalid library. This was fixed in 20307 # development snapshots of GCC prior to 3.0. 20308 case $host_os in 20309 aix4 | aix4.[01] | aix4.[01].*) 20310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 20311 echo ' yes ' 20312 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 20313 : 20314 else 20315 can_build_shared=no 20316 fi 20317 ;; 20318 esac 20319 # Using Import Files as archive members, it is possible to support 20320 # filename-based versioning of shared library archives on AIX. While 20321 # this would work for both with and without runtime linking, it will 20322 # prevent static linking of such archives. So we do filename-based 20323 # shared library versioning with .so extension only, which is used 20324 # when both runtime linking and shared linking is enabled. 20325 # Unfortunately, runtime linking may impact performance, so we do 20326 # not want this to be the default eventually. Also, we use the 20327 # versioned .so libs for executables only if there is the -brtl 20328 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 20329 # To allow for filename-based versioning support, we need to create 20330 # libNAME.so.V as an archive file, containing: 20331 # *) an Import File, referring to the versioned filename of the 20332 # archive as well as the shared archive member, telling the 20333 # bitwidth (32 or 64) of that shared object, and providing the 20334 # list of exported symbols of that shared object, eventually 20335 # decorated with the 'weak' keyword 20336 # *) the shared object with the F_LOADONLY flag set, to really avoid 20337 # it being seen by the linker. 20338 # At run time we better use the real file rather than another symlink, 20339 # but for link time we create the symlink libNAME.so -> libNAME.so.V 20340 20341 case $with_aix_soname,$aix_use_runtimelinking in 20342 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 20343 # soname into executable. Probably we can add versioning support to 20344 # collect2, so additional links can be useful in future. 20345 aix,yes) # traditional libtool 20346 dynamic_linker='AIX unversionable lib.so' 20347 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 20348 # instead of lib<name>.a to let people know that these are not 20349 # typical AIX shared libraries. 20350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20351 ;; 20352 aix,no) # traditional AIX only 20353 dynamic_linker='AIX lib.a(lib.so.V)' 20354 # We preserve .a as extension for shared libraries through AIX4.2 20355 # and later when we are not doing run time linking. 20356 library_names_spec='$libname$release.a $libname.a' 20357 soname_spec='$libname$release$shared_ext$major' 20358 ;; 20359 svr4,*) # full svr4 only 20360 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 20361 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 20362 # We do not specify a path in Import Files, so LIBPATH fires. 20363 shlibpath_overrides_runpath=yes 20364 ;; 20365 *,yes) # both, prefer svr4 20366 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 20367 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 20368 # unpreferred sharedlib libNAME.a needs extra handling 20369 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"' 20370 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"' 20371 # We do not specify a path in Import Files, so LIBPATH fires. 20372 shlibpath_overrides_runpath=yes 20373 ;; 20374 *,no) # both, prefer aix 20375 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 20376 library_names_spec='$libname$release.a $libname.a' 20377 soname_spec='$libname$release$shared_ext$major' 20378 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 20379 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)' 20380 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"' 20381 ;; 20382 esac 20383 shlibpath_var=LIBPATH 20384 fi 20385 ;; 20386 20387amigaos*) 20388 case $host_cpu in 20389 powerpc) 20390 # Since July 2007 AmigaOS4 officially supports .so libraries. 20391 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 20392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20393 ;; 20394 m68k) 20395 library_names_spec='$libname.ixlibrary $libname.a' 20396 # Create ${libname}_ixlibrary.a entries in /sys/libs. 20397 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' 20398 ;; 20399 esac 20400 ;; 20401 20402beos*) 20403 library_names_spec='$libname$shared_ext' 20404 dynamic_linker="$host_os ld.so" 20405 shlibpath_var=LIBRARY_PATH 20406 ;; 20407 20408bsdi[45]*) 20409 version_type=linux # correct to gnu/linux during the next big refactor 20410 need_version=no 20411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20412 soname_spec='$libname$release$shared_ext$major' 20413 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 20414 shlibpath_var=LD_LIBRARY_PATH 20415 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 20416 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 20417 # the default ld.so.conf also contains /usr/contrib/lib and 20418 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 20419 # libtool to hard-code these into programs 20420 ;; 20421 20422cygwin* | mingw* | pw32* | cegcc*) 20423 version_type=windows 20424 shrext_cmds=.dll 20425 need_version=no 20426 need_lib_prefix=no 20427 20428 case $GCC,$cc_basename in 20429 yes,*) 20430 # gcc 20431 library_names_spec='$libname.dll.a' 20432 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20433 postinstall_cmds='base_file=`basename \$file`~ 20434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 20435 dldir=$destdir/`dirname \$dlpath`~ 20436 test -d \$dldir || mkdir -p \$dldir~ 20437 $install_prog $dir/$dlname \$dldir/$dlname~ 20438 chmod a+x \$dldir/$dlname~ 20439 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20440 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20441 fi' 20442 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20443 dlpath=$dir/\$dldll~ 20444 $RM \$dlpath' 20445 shlibpath_overrides_runpath=yes 20446 20447 case $host_os in 20448 cygwin*) 20449 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 20450 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20451 20452 ;; 20453 mingw* | cegcc*) 20454 # MinGW DLLs use traditional 'lib' prefix 20455 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20456 ;; 20457 pw32*) 20458 # pw32 DLLs use 'pw' prefix rather than 'lib' 20459 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20460 ;; 20461 esac 20462 dynamic_linker='Win32 ld.exe' 20463 ;; 20464 20465 *,cl*) 20466 # Native MSVC 20467 libname_spec='$name' 20468 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 20469 library_names_spec='$libname.dll.lib' 20470 20471 case $build_os in 20472 mingw*) 20473 sys_lib_search_path_spec= 20474 lt_save_ifs=$IFS 20475 IFS=';' 20476 for lt_path in $LIB 20477 do 20478 IFS=$lt_save_ifs 20479 # Let DOS variable expansion print the short 8.3 style file name. 20480 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 20481 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 20482 done 20483 IFS=$lt_save_ifs 20484 # Convert to MSYS style. 20485 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 20486 ;; 20487 cygwin*) 20488 # Convert to unix form, then to dos form, then back to unix form 20489 # but this time dos style (no spaces!) so that the unix form looks 20490 # like /cygdrive/c/PROGRA~1:/cygdr... 20491 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 20492 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 20493 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20494 ;; 20495 *) 20496 sys_lib_search_path_spec=$LIB 20497 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 20498 # It is most probably a Windows format PATH. 20499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20500 else 20501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20502 fi 20503 # FIXME: find the short name or the path components, as spaces are 20504 # common. (e.g. "Program Files" -> "PROGRA~1") 20505 ;; 20506 esac 20507 20508 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20509 postinstall_cmds='base_file=`basename \$file`~ 20510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 20511 dldir=$destdir/`dirname \$dlpath`~ 20512 test -d \$dldir || mkdir -p \$dldir~ 20513 $install_prog $dir/$dlname \$dldir/$dlname' 20514 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20515 dlpath=$dir/\$dldll~ 20516 $RM \$dlpath' 20517 shlibpath_overrides_runpath=yes 20518 dynamic_linker='Win32 link.exe' 20519 ;; 20520 20521 *) 20522 # Assume MSVC wrapper 20523 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 20524 dynamic_linker='Win32 ld.exe' 20525 ;; 20526 esac 20527 # FIXME: first we should search . and the directory the executable is in 20528 shlibpath_var=PATH 20529 ;; 20530 20531darwin* | rhapsody*) 20532 dynamic_linker="$host_os dyld" 20533 version_type=darwin 20534 need_lib_prefix=no 20535 need_version=no 20536 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 20537 soname_spec='$libname$release$major$shared_ext' 20538 shlibpath_overrides_runpath=yes 20539 shlibpath_var=DYLD_LIBRARY_PATH 20540 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 20541 20542 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20543 ;; 20544 20545dgux*) 20546 version_type=linux # correct to gnu/linux during the next big refactor 20547 need_lib_prefix=no 20548 need_version=no 20549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20550 soname_spec='$libname$release$shared_ext$major' 20551 shlibpath_var=LD_LIBRARY_PATH 20552 ;; 20553 20554freebsd* | dragonfly*) 20555 # DragonFly does not have aout. When/if they implement a new 20556 # versioning mechanism, adjust this. 20557 if test -x /usr/bin/objformat; then 20558 objformat=`/usr/bin/objformat` 20559 else 20560 case $host_os in 20561 freebsd[23].*) objformat=aout ;; 20562 *) objformat=elf ;; 20563 esac 20564 fi 20565 version_type=freebsd-$objformat 20566 case $version_type in 20567 freebsd-elf*) 20568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20569 soname_spec='$libname$release$shared_ext$major' 20570 need_version=no 20571 need_lib_prefix=no 20572 ;; 20573 freebsd-*) 20574 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20575 need_version=yes 20576 ;; 20577 esac 20578 shlibpath_var=LD_LIBRARY_PATH 20579 case $host_os in 20580 freebsd2.*) 20581 shlibpath_overrides_runpath=yes 20582 ;; 20583 freebsd3.[01]* | freebsdelf3.[01]*) 20584 shlibpath_overrides_runpath=yes 20585 hardcode_into_libs=yes 20586 ;; 20587 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20588 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20589 shlibpath_overrides_runpath=no 20590 hardcode_into_libs=yes 20591 ;; 20592 *) # from 4.6 on, and DragonFly 20593 shlibpath_overrides_runpath=yes 20594 hardcode_into_libs=yes 20595 ;; 20596 esac 20597 ;; 20598 20599haiku*) 20600 version_type=linux # correct to gnu/linux during the next big refactor 20601 need_lib_prefix=no 20602 need_version=no 20603 dynamic_linker="$host_os runtime_loader" 20604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20605 soname_spec='$libname$release$shared_ext$major' 20606 shlibpath_var=LIBRARY_PATH 20607 shlibpath_overrides_runpath=no 20608 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 20609 hardcode_into_libs=yes 20610 ;; 20611 20612hpux9* | hpux10* | hpux11*) 20613 # Give a soname corresponding to the major version so that dld.sl refuses to 20614 # link against other versions. 20615 version_type=sunos 20616 need_lib_prefix=no 20617 need_version=no 20618 case $host_cpu in 20619 ia64*) 20620 shrext_cmds='.so' 20621 hardcode_into_libs=yes 20622 dynamic_linker="$host_os dld.so" 20623 shlibpath_var=LD_LIBRARY_PATH 20624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20626 soname_spec='$libname$release$shared_ext$major' 20627 if test 32 = "$HPUX_IA64_MODE"; then 20628 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20629 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 20630 else 20631 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20632 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 20633 fi 20634 ;; 20635 hppa*64*) 20636 shrext_cmds='.sl' 20637 hardcode_into_libs=yes 20638 dynamic_linker="$host_os dld.sl" 20639 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20642 soname_spec='$libname$release$shared_ext$major' 20643 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20645 ;; 20646 *) 20647 shrext_cmds='.sl' 20648 dynamic_linker="$host_os dld.sl" 20649 shlibpath_var=SHLIB_PATH 20650 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20652 soname_spec='$libname$release$shared_ext$major' 20653 ;; 20654 esac 20655 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 20656 postinstall_cmds='chmod 555 $lib' 20657 # or fails outright, so override atomically: 20658 install_override_mode=555 20659 ;; 20660 20661interix[3-9]*) 20662 version_type=linux # correct to gnu/linux during the next big refactor 20663 need_lib_prefix=no 20664 need_version=no 20665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20666 soname_spec='$libname$release$shared_ext$major' 20667 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20668 shlibpath_var=LD_LIBRARY_PATH 20669 shlibpath_overrides_runpath=no 20670 hardcode_into_libs=yes 20671 ;; 20672 20673irix5* | irix6* | nonstopux*) 20674 case $host_os in 20675 nonstopux*) version_type=nonstopux ;; 20676 *) 20677 if test yes = "$lt_cv_prog_gnu_ld"; then 20678 version_type=linux # correct to gnu/linux during the next big refactor 20679 else 20680 version_type=irix 20681 fi ;; 20682 esac 20683 need_lib_prefix=no 20684 need_version=no 20685 soname_spec='$libname$release$shared_ext$major' 20686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 20687 case $host_os in 20688 irix5* | nonstopux*) 20689 libsuff= shlibsuff= 20690 ;; 20691 *) 20692 case $LD in # libtool.m4 will add one of these switches to LD 20693 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20694 libsuff= shlibsuff= libmagic=32-bit;; 20695 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20696 libsuff=32 shlibsuff=N32 libmagic=N32;; 20697 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20698 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20699 *) libsuff= shlibsuff= libmagic=never-match;; 20700 esac 20701 ;; 20702 esac 20703 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20704 shlibpath_overrides_runpath=no 20705 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 20706 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 20707 hardcode_into_libs=yes 20708 ;; 20709 20710# No shared lib support for Linux oldld, aout, or coff. 20711linux*oldld* | linux*aout* | linux*coff*) 20712 dynamic_linker=no 20713 ;; 20714 20715linux*android*) 20716 version_type=none # Android doesn't support versioned libraries. 20717 need_lib_prefix=no 20718 need_version=no 20719 library_names_spec='$libname$release$shared_ext' 20720 soname_spec='$libname$release$shared_ext' 20721 finish_cmds= 20722 shlibpath_var=LD_LIBRARY_PATH 20723 shlibpath_overrides_runpath=yes 20724 20725 # This implies no fast_install, which is unacceptable. 20726 # Some rework will be needed to allow for fast_install 20727 # before this can be enabled. 20728 hardcode_into_libs=yes 20729 20730 dynamic_linker='Android linker' 20731 # Don't embed -rpath directories since the linker doesn't support them. 20732 hardcode_libdir_flag_spec_CXX='-L$libdir' 20733 ;; 20734 20735# This must be glibc/ELF. 20736linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20737 version_type=linux # correct to gnu/linux during the next big refactor 20738 need_lib_prefix=no 20739 need_version=no 20740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20741 soname_spec='$libname$release$shared_ext$major' 20742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20743 shlibpath_var=LD_LIBRARY_PATH 20744 shlibpath_overrides_runpath=no 20745 20746 # Some binutils ld are patched to set DT_RUNPATH 20747 if test ${lt_cv_shlibpath_overrides_runpath+y} 20748then : 20749 printf %s "(cached) " >&6 20750else $as_nop 20751 lt_cv_shlibpath_overrides_runpath=no 20752 save_LDFLAGS=$LDFLAGS 20753 save_libdir=$libdir 20754 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 20755 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 20756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20757/* end confdefs.h. */ 20758 20759int 20760main (void) 20761{ 20762 20763 ; 20764 return 0; 20765} 20766_ACEOF 20767if ac_fn_cxx_try_link "$LINENO" 20768then : 20769 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 20770then : 20771 lt_cv_shlibpath_overrides_runpath=yes 20772fi 20773fi 20774rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20775 conftest$ac_exeext conftest.$ac_ext 20776 LDFLAGS=$save_LDFLAGS 20777 libdir=$save_libdir 20778 20779fi 20780 20781 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 20782 20783 # This implies no fast_install, which is unacceptable. 20784 # Some rework will be needed to allow for fast_install 20785 # before this can be enabled. 20786 hardcode_into_libs=yes 20787 20788 # Ideally, we could use ldconfig to report *all* directores which are 20789 # searched for libraries, however this is still not possible. Aside from not 20790 # being certain /sbin/ldconfig is available, command 20791 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 20792 # even though it is searched at run-time. Try to do the best guess by 20793 # appending ld.so.conf contents (and includes) to the search path. 20794 if test -f /etc/ld.so.conf; then 20795 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' ' '` 20796 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 20797 fi 20798 20799 # We used to test for /lib/ld.so.1 and disable shared libraries on 20800 # powerpc, because MkLinux only supported shared libraries with the 20801 # GNU dynamic linker. Since this was broken with cross compilers, 20802 # most powerpc-linux boxes support dynamic linking these days and 20803 # people can always --disable-shared, the test was removed, and we 20804 # assume the GNU/Linux dynamic linker is in use. 20805 dynamic_linker='GNU/Linux ld.so' 20806 ;; 20807 20808netbsdelf*-gnu) 20809 version_type=linux 20810 need_lib_prefix=no 20811 need_version=no 20812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20813 soname_spec='${libname}${release}${shared_ext}$major' 20814 shlibpath_var=LD_LIBRARY_PATH 20815 shlibpath_overrides_runpath=no 20816 hardcode_into_libs=yes 20817 dynamic_linker='NetBSD ld.elf_so' 20818 ;; 20819 20820netbsd*) 20821 version_type=sunos 20822 need_lib_prefix=no 20823 need_version=no 20824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20825 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20827 dynamic_linker='NetBSD (a.out) ld.so' 20828 else 20829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20830 soname_spec='$libname$release$shared_ext$major' 20831 dynamic_linker='NetBSD ld.elf_so' 20832 fi 20833 shlibpath_var=LD_LIBRARY_PATH 20834 shlibpath_overrides_runpath=yes 20835 hardcode_into_libs=yes 20836 ;; 20837 20838newsos6) 20839 version_type=linux # correct to gnu/linux during the next big refactor 20840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20841 shlibpath_var=LD_LIBRARY_PATH 20842 shlibpath_overrides_runpath=yes 20843 ;; 20844 20845*nto* | *qnx*) 20846 version_type=qnx 20847 need_lib_prefix=no 20848 need_version=no 20849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20850 soname_spec='$libname$release$shared_ext$major' 20851 shlibpath_var=LD_LIBRARY_PATH 20852 shlibpath_overrides_runpath=no 20853 hardcode_into_libs=yes 20854 dynamic_linker='ldqnx.so' 20855 ;; 20856 20857openbsd* | bitrig*) 20858 version_type=sunos 20859 sys_lib_dlsearch_path_spec=/usr/lib 20860 need_lib_prefix=no 20861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20862 need_version=no 20863 else 20864 need_version=yes 20865 fi 20866 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20868 shlibpath_var=LD_LIBRARY_PATH 20869 shlibpath_overrides_runpath=yes 20870 ;; 20871 20872os2*) 20873 libname_spec='$name' 20874 version_type=windows 20875 shrext_cmds=.dll 20876 need_version=no 20877 need_lib_prefix=no 20878 # OS/2 can only load a DLL with a base name of 8 characters or less. 20879 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 20880 v=$($ECHO $release$versuffix | tr -d .-); 20881 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 20882 $ECHO $n$v`$shared_ext' 20883 library_names_spec='${libname}_dll.$libext' 20884 dynamic_linker='OS/2 ld.exe' 20885 shlibpath_var=BEGINLIBPATH 20886 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 20887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20888 postinstall_cmds='base_file=`basename \$file`~ 20889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 20890 dldir=$destdir/`dirname \$dlpath`~ 20891 test -d \$dldir || mkdir -p \$dldir~ 20892 $install_prog $dir/$dlname \$dldir/$dlname~ 20893 chmod a+x \$dldir/$dlname~ 20894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20896 fi' 20897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 20898 dlpath=$dir/\$dldll~ 20899 $RM \$dlpath' 20900 ;; 20901 20902osf3* | osf4* | osf5*) 20903 version_type=osf 20904 need_lib_prefix=no 20905 need_version=no 20906 soname_spec='$libname$release$shared_ext$major' 20907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20908 shlibpath_var=LD_LIBRARY_PATH 20909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20911 ;; 20912 20913rdos*) 20914 dynamic_linker=no 20915 ;; 20916 20917solaris*) 20918 version_type=linux # correct to gnu/linux during the next big refactor 20919 need_lib_prefix=no 20920 need_version=no 20921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20922 soname_spec='$libname$release$shared_ext$major' 20923 shlibpath_var=LD_LIBRARY_PATH 20924 shlibpath_overrides_runpath=yes 20925 hardcode_into_libs=yes 20926 # ldd complains unless libraries are executable 20927 postinstall_cmds='chmod +x $lib' 20928 ;; 20929 20930sunos4*) 20931 version_type=sunos 20932 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20933 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20934 shlibpath_var=LD_LIBRARY_PATH 20935 shlibpath_overrides_runpath=yes 20936 if test yes = "$with_gnu_ld"; then 20937 need_lib_prefix=no 20938 fi 20939 need_version=yes 20940 ;; 20941 20942sysv4 | sysv4.3*) 20943 version_type=linux # correct to gnu/linux during the next big refactor 20944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20945 soname_spec='$libname$release$shared_ext$major' 20946 shlibpath_var=LD_LIBRARY_PATH 20947 case $host_vendor in 20948 sni) 20949 shlibpath_overrides_runpath=no 20950 need_lib_prefix=no 20951 runpath_var=LD_RUN_PATH 20952 ;; 20953 siemens) 20954 need_lib_prefix=no 20955 ;; 20956 motorola) 20957 need_lib_prefix=no 20958 need_version=no 20959 shlibpath_overrides_runpath=no 20960 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20961 ;; 20962 esac 20963 ;; 20964 20965sysv4*MP*) 20966 if test -d /usr/nec; then 20967 version_type=linux # correct to gnu/linux during the next big refactor 20968 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 20969 soname_spec='$libname$shared_ext.$major' 20970 shlibpath_var=LD_LIBRARY_PATH 20971 fi 20972 ;; 20973 20974sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20975 version_type=sco 20976 need_lib_prefix=no 20977 need_version=no 20978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 20979 soname_spec='$libname$release$shared_ext$major' 20980 shlibpath_var=LD_LIBRARY_PATH 20981 shlibpath_overrides_runpath=yes 20982 hardcode_into_libs=yes 20983 if test yes = "$with_gnu_ld"; then 20984 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20985 else 20986 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20987 case $host_os in 20988 sco3.2v5*) 20989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20990 ;; 20991 esac 20992 fi 20993 sys_lib_dlsearch_path_spec='/usr/lib' 20994 ;; 20995 20996tpf*) 20997 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 20998 version_type=linux # correct to gnu/linux during the next big refactor 20999 need_lib_prefix=no 21000 need_version=no 21001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21002 shlibpath_var=LD_LIBRARY_PATH 21003 shlibpath_overrides_runpath=no 21004 hardcode_into_libs=yes 21005 ;; 21006 21007uts4*) 21008 version_type=linux # correct to gnu/linux during the next big refactor 21009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21010 soname_spec='$libname$release$shared_ext$major' 21011 shlibpath_var=LD_LIBRARY_PATH 21012 ;; 21013 21014*) 21015 dynamic_linker=no 21016 ;; 21017esac 21018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 21019printf "%s\n" "$dynamic_linker" >&6; } 21020test no = "$dynamic_linker" && can_build_shared=no 21021 21022variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21023if test yes = "$GCC"; then 21024 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21025fi 21026 21027if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 21028 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 21029fi 21030 21031if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 21032 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 21033fi 21034 21035# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 21036configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 21037 21038# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 21039func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 21040 21041# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 21042configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 21084printf %s "checking how to hardcode library paths into programs... " >&6; } 21085hardcode_action_CXX= 21086if test -n "$hardcode_libdir_flag_spec_CXX" || 21087 test -n "$runpath_var_CXX" || 21088 test yes = "$hardcode_automatic_CXX"; then 21089 21090 # We can hardcode non-existent directories. 21091 if test no != "$hardcode_direct_CXX" && 21092 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21093 # have to relink, otherwise we might link with an installed library 21094 # when we should be linking with a yet-to-be-installed one 21095 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 21096 test no != "$hardcode_minus_L_CXX"; then 21097 # Linking always hardcodes the temporary library directory. 21098 hardcode_action_CXX=relink 21099 else 21100 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21101 hardcode_action_CXX=immediate 21102 fi 21103else 21104 # We cannot hardcode anything, or else we can only hardcode existing 21105 # directories. 21106 hardcode_action_CXX=unsupported 21107fi 21108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 21109printf "%s\n" "$hardcode_action_CXX" >&6; } 21110 21111if test relink = "$hardcode_action_CXX" || 21112 test yes = "$inherit_rpath_CXX"; then 21113 # Fast installation is not supported 21114 enable_fast_install=no 21115elif test yes = "$shlibpath_overrides_runpath" || 21116 test no = "$enable_shared"; then 21117 # Fast installation is not necessary 21118 enable_fast_install=needless 21119fi 21120 21121 21122 21123 21124 21125 21126 21127 fi # test -n "$compiler" 21128 21129 CC=$lt_save_CC 21130 CFLAGS=$lt_save_CFLAGS 21131 LDCXX=$LD 21132 LD=$lt_save_LD 21133 GCC=$lt_save_GCC 21134 with_gnu_ld=$lt_save_with_gnu_ld 21135 lt_cv_path_LDCXX=$lt_cv_path_LD 21136 lt_cv_path_LD=$lt_save_path_LD 21137 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 21138 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 21139fi # test yes != "$_lt_caught_CXX_error" 21140 21141ac_ext=c 21142ac_cpp='$CPP $CPPFLAGS' 21143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21145ac_compiler_gnu=$ac_cv_c_compiler_gnu 21146 21147 21148 21149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler works" >&5 21150printf %s "checking whether C++ compiler works... " >&6; } 21151 21152ac_ext=cpp 21153ac_cpp='$CXXCPP $CPPFLAGS' 21154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21157 21158 21159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21160/* end confdefs.h. */ 21161 21162int 21163main (void) 21164{ 21165 21166 ; 21167 return 0; 21168} 21169_ACEOF 21170if ac_fn_cxx_try_link "$LINENO" 21171then : 21172 21173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21174printf "%s\n" "yes" >&6; } 21175cxx_works=yes 21176else $as_nop 21177 21178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not" >&5 21179printf "%s\n" "not" >&6; } 21180cxx_works=no 21181fi 21182rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21183 conftest$ac_exeext conftest.$ac_ext 21184 21185ac_ext=c 21186ac_cpp='$CPP $CPPFLAGS' 21187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21189ac_compiler_gnu=$ac_cv_c_compiler_gnu 21190 21191 21192 21193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether preprocessor token concenation works" >&5 21194printf %s "checking whether preprocessor token concenation works... " >&6; } 21195if test ${ac_cv_c99_token_concenation+y} 21196then : 21197 printf %s "(cached) " >&6 21198else $as_nop 21199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21200/* end confdefs.h. */ 21201#define COMBINE(a, b) a ## b 21202 #define CALLER(...) COMBINE(, __VA_ARGS__) 21203int 21204main (void) 21205{ 21206CALLER(); 21207 char *text = CALLER("string"); 21208 ; 21209 return 0; 21210} 21211_ACEOF 21212if ac_fn_c_try_compile "$LINENO" 21213then : 21214 ac_cv_c99_token_concenation=yes 21215else $as_nop 21216 ac_cv_c99_token_concenation=no 21217fi 21218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21219fi 21220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_token_concenation" >&5 21221printf "%s\n" "$ac_cv_c99_token_concenation" >&6; } 21222 if test "x${ac_cv_c99_token_concenation}" != "xyes" ; then 21223 as_fn_error $? "A preprocessor supporting token concenation is required" "$LINENO" 5 21224 fi 21225 21226 21227# Extract the first word of "uname", so it can be a program name with args. 21228set dummy uname; ac_word=$2 21229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21230printf %s "checking for $ac_word... " >&6; } 21231if test ${ac_cv_prog_UNAME+y} 21232then : 21233 printf %s "(cached) " >&6 21234else $as_nop 21235 if test -n "$UNAME"; then 21236 ac_cv_prog_UNAME="$UNAME" # Let the user override the test. 21237else 21238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21239for as_dir in $PATH 21240do 21241 IFS=$as_save_IFS 21242 case $as_dir in #((( 21243 '') as_dir=./ ;; 21244 */) ;; 21245 *) as_dir=$as_dir/ ;; 21246 esac 21247 for ac_exec_ext in '' $ac_executable_extensions; do 21248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21249 ac_cv_prog_UNAME="uname" 21250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21251 break 2 21252 fi 21253done 21254 done 21255IFS=$as_save_IFS 21256 21257 test -z "$ac_cv_prog_UNAME" && ac_cv_prog_UNAME=":" 21258fi 21259fi 21260UNAME=$ac_cv_prog_UNAME 21261if test -n "$UNAME"; then 21262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 21263printf "%s\n" "$UNAME" >&6; } 21264else 21265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21266printf "%s\n" "no" >&6; } 21267fi 21268 21269 21270 21271# The cast to long int works around a bug in the HP C Compiler 21272# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21273# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21274# This bug is HP SR number 8606223364. 21275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 21276printf %s "checking size of int... " >&6; } 21277if test ${ac_cv_sizeof_int+y} 21278then : 21279 printf %s "(cached) " >&6 21280else $as_nop 21281 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" 21282then : 21283 21284else $as_nop 21285 if test "$ac_cv_type_int" = yes; then 21286 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21287printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21288as_fn_error 77 "cannot compute sizeof (int) 21289See \`config.log' for more details" "$LINENO" 5; } 21290 else 21291 ac_cv_sizeof_int=0 21292 fi 21293fi 21294 21295fi 21296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 21297printf "%s\n" "$ac_cv_sizeof_int" >&6; } 21298 21299 21300 21301printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h 21302 21303 21304 21305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 21306printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 21307set x ${MAKE-make} 21308ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 21309if eval test \${ac_cv_prog_make_${ac_make}_set+y} 21310then : 21311 printf %s "(cached) " >&6 21312else $as_nop 21313 cat >conftest.make <<\_ACEOF 21314SHELL = /bin/sh 21315all: 21316 @echo '@@@%%%=$(MAKE)=@@@%%%' 21317_ACEOF 21318# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 21319case `${MAKE-make} -f conftest.make 2>/dev/null` in 21320 *@@@%%%=?*=@@@%%%*) 21321 eval ac_cv_prog_make_${ac_make}_set=yes;; 21322 *) 21323 eval ac_cv_prog_make_${ac_make}_set=no;; 21324esac 21325rm -f conftest.make 21326fi 21327if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 21328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21329printf "%s\n" "yes" >&6; } 21330 SET_MAKE= 21331else 21332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21333printf "%s\n" "no" >&6; } 21334 SET_MAKE="MAKE=${MAKE-make}" 21335fi 21336 21337 21338 21339 if test "X$prefix" = "XNONE"; then 21340 acl_final_prefix="$ac_default_prefix" 21341 else 21342 acl_final_prefix="$prefix" 21343 fi 21344 if test "X$exec_prefix" = "XNONE"; then 21345 acl_final_exec_prefix='${prefix}' 21346 else 21347 acl_final_exec_prefix="$exec_prefix" 21348 fi 21349 acl_save_prefix="$prefix" 21350 prefix="$acl_final_prefix" 21351 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 21352 prefix="$acl_save_prefix" 21353 21354 21355 21356# Check whether --with-gnu-ld was given. 21357if test ${with_gnu_ld+y} 21358then : 21359 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 21360else $as_nop 21361 with_gnu_ld=no 21362fi 21363 21364# Prepare PATH_SEPARATOR. 21365# The user is always right. 21366if test "${PATH_SEPARATOR+set}" != set; then 21367 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 21368 # contains only /bin. Note that ksh looks also at the FPATH variable, 21369 # so we have to set that as well for the test. 21370 PATH_SEPARATOR=: 21371 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 21372 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 21373 || PATH_SEPARATOR=';' 21374 } 21375fi 21376 21377if test -n "$LD"; then 21378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 21379printf %s "checking for ld... " >&6; } 21380elif test "$GCC" = yes; then 21381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 21382printf %s "checking for ld used by $CC... " >&6; } 21383elif test "$with_gnu_ld" = yes; then 21384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 21385printf %s "checking for GNU ld... " >&6; } 21386else 21387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 21388printf %s "checking for non-GNU ld... " >&6; } 21389fi 21390if test -n "$LD"; then 21391 # Let the user override the test with a path. 21392 : 21393else 21394 if test ${acl_cv_path_LD+y} 21395then : 21396 printf %s "(cached) " >&6 21397else $as_nop 21398 21399 acl_cv_path_LD= # Final result of this test 21400 ac_prog=ld # Program to search in $PATH 21401 if test "$GCC" = yes; then 21402 # Check if gcc -print-prog-name=ld gives a path. 21403 case $host in 21404 *-*-mingw*) 21405 # gcc leaves a trailing carriage return which upsets mingw 21406 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 21407 *) 21408 acl_output=`($CC -print-prog-name=ld) 2>&5` ;; 21409 esac 21410 case $acl_output in 21411 # Accept absolute paths. 21412 [\\/]* | ?:[\\/]*) 21413 re_direlt='/[^/][^/]*/\.\./' 21414 # Canonicalize the pathname of ld 21415 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` 21416 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do 21417 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` 21418 done 21419 # Got the pathname. No search in PATH is needed. 21420 acl_cv_path_LD="$acl_output" 21421 ac_prog= 21422 ;; 21423 "") 21424 # If it fails, then pretend we aren't using GCC. 21425 ;; 21426 *) 21427 # If it is relative, then search for the first ld in PATH. 21428 with_gnu_ld=unknown 21429 ;; 21430 esac 21431 fi 21432 if test -n "$ac_prog"; then 21433 # Search for $ac_prog in $PATH. 21434 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 21435 for ac_dir in $PATH; do 21436 IFS="$acl_save_ifs" 21437 test -z "$ac_dir" && ac_dir=. 21438 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 21439 acl_cv_path_LD="$ac_dir/$ac_prog" 21440 # Check to see if the program is GNU ld. I'd rather use --version, 21441 # but apparently some variants of GNU ld only accept -v. 21442 # Break only if it was the GNU/non-GNU ld that we prefer. 21443 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 21444 *GNU* | *'with BFD'*) 21445 test "$with_gnu_ld" != no && break 21446 ;; 21447 *) 21448 test "$with_gnu_ld" != yes && break 21449 ;; 21450 esac 21451 fi 21452 done 21453 IFS="$acl_save_ifs" 21454 fi 21455 case $host in 21456 *-*-aix*) 21457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21458/* end confdefs.h. */ 21459#if defined __powerpc64__ || defined __LP64__ 21460 int ok; 21461 #else 21462 error fail 21463 #endif 21464 21465_ACEOF 21466if ac_fn_c_try_compile "$LINENO" 21467then : 21468 # The compiler produces 64-bit code. Add option '-b64' so that the 21469 # linker groks 64-bit object files. 21470 case "$acl_cv_path_LD " in 21471 *" -b64 "*) ;; 21472 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; 21473 esac 21474 21475fi 21476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21477 ;; 21478 sparc64-*-netbsd*) 21479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21480/* end confdefs.h. */ 21481#if defined __sparcv9 || defined __arch64__ 21482 int ok; 21483 #else 21484 error fail 21485 #endif 21486 21487_ACEOF 21488if ac_fn_c_try_compile "$LINENO" 21489then : 21490 21491else $as_nop 21492 # The compiler produces 32-bit code. Add option '-m elf32_sparc' 21493 # so that the linker groks 32-bit object files. 21494 case "$acl_cv_path_LD " in 21495 *" -m elf32_sparc "*) ;; 21496 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; 21497 esac 21498 21499fi 21500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21501 ;; 21502 esac 21503 21504fi 21505 21506 LD="$acl_cv_path_LD" 21507fi 21508if test -n "$LD"; then 21509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 21510printf "%s\n" "$LD" >&6; } 21511else 21512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21513printf "%s\n" "no" >&6; } 21514 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 21515fi 21516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 21517printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 21518if test ${acl_cv_prog_gnu_ld+y} 21519then : 21520 printf %s "(cached) " >&6 21521else $as_nop 21522 # I'd rather use --version here, but apparently some GNU lds only accept -v. 21523case `$LD -v 2>&1 </dev/null` in 21524*GNU* | *'with BFD'*) 21525 acl_cv_prog_gnu_ld=yes 21526 ;; 21527*) 21528 acl_cv_prog_gnu_ld=no 21529 ;; 21530esac 21531fi 21532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 21533printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } 21534with_gnu_ld=$acl_cv_prog_gnu_ld 21535 21536 21537 21538 21539 21540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 21541printf %s "checking for shared library run path origin... " >&6; } 21542if test ${acl_cv_rpath+y} 21543then : 21544 printf %s "(cached) " >&6 21545else $as_nop 21546 21547 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 21548 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 21549 . ./conftest.sh 21550 rm -f ./conftest.sh 21551 acl_cv_rpath=done 21552 21553fi 21554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 21555printf "%s\n" "$acl_cv_rpath" >&6; } 21556 wl="$acl_cv_wl" 21557 acl_libext="$acl_cv_libext" 21558 acl_shlibext="$acl_cv_shlibext" 21559 acl_libname_spec="$acl_cv_libname_spec" 21560 acl_library_names_spec="$acl_cv_library_names_spec" 21561 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 21562 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 21563 acl_hardcode_direct="$acl_cv_hardcode_direct" 21564 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 21565 # Check whether --enable-rpath was given. 21566if test ${enable_rpath+y} 21567then : 21568 enableval=$enable_rpath; : 21569else $as_nop 21570 enable_rpath=yes 21571fi 21572 21573 21574 21575 21576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 21577printf %s "checking 32-bit host C ABI... " >&6; } 21578if test ${gl_cv_host_cpu_c_abi_32bit+y} 21579then : 21580 printf %s "(cached) " >&6 21581else $as_nop 21582 if test -n "$gl_cv_host_cpu_c_abi"; then 21583 case "$gl_cv_host_cpu_c_abi" in 21584 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) 21585 gl_cv_host_cpu_c_abi_32bit=yes ;; 21586 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) 21587 gl_cv_host_cpu_c_abi_32bit=no ;; 21588 *) 21589 gl_cv_host_cpu_c_abi_32bit=unknown ;; 21590 esac 21591 else 21592 case "$host_cpu" in 21593 21594 # CPUs that only support a 32-bit ABI. 21595 arc \ 21596 | bfin \ 21597 | cris* \ 21598 | csky \ 21599 | epiphany \ 21600 | ft32 \ 21601 | h8300 \ 21602 | m68k \ 21603 | microblaze | microblazeel \ 21604 | nds32 | nds32le | nds32be \ 21605 | nios2 | nios2eb | nios2el \ 21606 | or1k* \ 21607 | or32 \ 21608 | sh | sh1234 | sh1234elb \ 21609 | tic6x \ 21610 | xtensa* ) 21611 gl_cv_host_cpu_c_abi_32bit=yes 21612 ;; 21613 21614 # CPUs that only support a 64-bit ABI. 21615 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ 21616 | mmix ) 21617 gl_cv_host_cpu_c_abi_32bit=no 21618 ;; 21619 21620 i[34567]86 ) 21621 gl_cv_host_cpu_c_abi_32bit=yes 21622 ;; 21623 21624 x86_64 ) 21625 # On x86_64 systems, the C compiler may be generating code in one of 21626 # these ABIs: 21627 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. 21628 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 21629 # with native Windows (mingw, MSVC). 21630 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. 21631 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. 21632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21633/* end confdefs.h. */ 21634#if (defined __x86_64__ || defined __amd64__ \ 21635 || defined _M_X64 || defined _M_AMD64) \ 21636 && !(defined __ILP32__ || defined _ILP32) 21637 int ok; 21638 #else 21639 error fail 21640 #endif 21641 21642_ACEOF 21643if ac_fn_c_try_compile "$LINENO" 21644then : 21645 gl_cv_host_cpu_c_abi_32bit=no 21646else $as_nop 21647 gl_cv_host_cpu_c_abi_32bit=yes 21648fi 21649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21650 ;; 21651 21652 arm* | aarch64 ) 21653 # Assume arm with EABI. 21654 # On arm64 systems, the C compiler may be generating code in one of 21655 # these ABIs: 21656 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. 21657 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. 21658 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. 21659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21660/* end confdefs.h. */ 21661#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) 21662 int ok; 21663 #else 21664 error fail 21665 #endif 21666 21667_ACEOF 21668if ac_fn_c_try_compile "$LINENO" 21669then : 21670 gl_cv_host_cpu_c_abi_32bit=no 21671else $as_nop 21672 gl_cv_host_cpu_c_abi_32bit=yes 21673fi 21674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21675 ;; 21676 21677 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) 21678 # On hppa, the C compiler may be generating 32-bit code or 64-bit 21679 # code. In the latter case, it defines _LP64 and __LP64__. 21680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21681/* end confdefs.h. */ 21682#ifdef __LP64__ 21683 int ok; 21684 #else 21685 error fail 21686 #endif 21687 21688_ACEOF 21689if ac_fn_c_try_compile "$LINENO" 21690then : 21691 gl_cv_host_cpu_c_abi_32bit=no 21692else $as_nop 21693 gl_cv_host_cpu_c_abi_32bit=yes 21694fi 21695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21696 ;; 21697 21698 ia64* ) 21699 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or 21700 # 32-bit code. In the latter case, it defines _ILP32. 21701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21702/* end confdefs.h. */ 21703#ifdef _ILP32 21704 int ok; 21705 #else 21706 error fail 21707 #endif 21708 21709_ACEOF 21710if ac_fn_c_try_compile "$LINENO" 21711then : 21712 gl_cv_host_cpu_c_abi_32bit=yes 21713else $as_nop 21714 gl_cv_host_cpu_c_abi_32bit=no 21715fi 21716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21717 ;; 21718 21719 mips* ) 21720 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this 21721 # at 32. 21722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21723/* end confdefs.h. */ 21724#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) 21725 int ok; 21726 #else 21727 error fail 21728 #endif 21729 21730_ACEOF 21731if ac_fn_c_try_compile "$LINENO" 21732then : 21733 gl_cv_host_cpu_c_abi_32bit=no 21734else $as_nop 21735 gl_cv_host_cpu_c_abi_32bit=yes 21736fi 21737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21738 ;; 21739 21740 powerpc* ) 21741 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. 21742 # No need to distinguish them here; the caller may distinguish 21743 # them based on the OS. 21744 # On powerpc64 systems, the C compiler may still be generating 21745 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may 21746 # be generating 64-bit code. 21747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21748/* end confdefs.h. */ 21749#if defined __powerpc64__ || defined __LP64__ 21750 int ok; 21751 #else 21752 error fail 21753 #endif 21754 21755_ACEOF 21756if ac_fn_c_try_compile "$LINENO" 21757then : 21758 gl_cv_host_cpu_c_abi_32bit=no 21759else $as_nop 21760 gl_cv_host_cpu_c_abi_32bit=yes 21761fi 21762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21763 ;; 21764 21765 rs6000 ) 21766 gl_cv_host_cpu_c_abi_32bit=yes 21767 ;; 21768 21769 riscv32 | riscv64 ) 21770 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. 21771 # Size of 'long' and 'void *': 21772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21773/* end confdefs.h. */ 21774#if defined __LP64__ 21775 int ok; 21776 #else 21777 error fail 21778 #endif 21779 21780_ACEOF 21781if ac_fn_c_try_compile "$LINENO" 21782then : 21783 gl_cv_host_cpu_c_abi_32bit=no 21784else $as_nop 21785 gl_cv_host_cpu_c_abi_32bit=yes 21786fi 21787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21788 ;; 21789 21790 s390* ) 21791 # On s390x, the C compiler may be generating 64-bit (= s390x) code 21792 # or 31-bit (= s390) code. 21793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21794/* end confdefs.h. */ 21795#if defined __LP64__ || defined __s390x__ 21796 int ok; 21797 #else 21798 error fail 21799 #endif 21800 21801_ACEOF 21802if ac_fn_c_try_compile "$LINENO" 21803then : 21804 gl_cv_host_cpu_c_abi_32bit=no 21805else $as_nop 21806 gl_cv_host_cpu_c_abi_32bit=yes 21807fi 21808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21809 ;; 21810 21811 sparc | sparc64 ) 21812 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the 21813 # C compiler still generates 32-bit code. 21814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21815/* end confdefs.h. */ 21816#if defined __sparcv9 || defined __arch64__ 21817 int ok; 21818 #else 21819 error fail 21820 #endif 21821 21822_ACEOF 21823if ac_fn_c_try_compile "$LINENO" 21824then : 21825 gl_cv_host_cpu_c_abi_32bit=no 21826else $as_nop 21827 gl_cv_host_cpu_c_abi_32bit=yes 21828fi 21829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21830 ;; 21831 21832 *) 21833 gl_cv_host_cpu_c_abi_32bit=unknown 21834 ;; 21835 esac 21836 fi 21837 21838fi 21839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 21840printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } 21841 21842 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" 21843 21844 21845 21846 21847 21848 21849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 21850printf %s "checking for ELF binary format... " >&6; } 21851if test ${gl_cv_elf+y} 21852then : 21853 printf %s "(cached) " >&6 21854else $as_nop 21855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21856/* end confdefs.h. */ 21857#ifdef __ELF__ 21858 Extensible Linking Format 21859 #endif 21860 21861_ACEOF 21862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21863 $EGREP "Extensible Linking Format" >/dev/null 2>&1 21864then : 21865 gl_cv_elf=yes 21866else $as_nop 21867 gl_cv_elf=no 21868fi 21869rm -rf conftest* 21870 21871 21872fi 21873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 21874printf "%s\n" "$gl_cv_elf" >&6; } 21875 if test $gl_cv_elf = yes; then 21876 # Extract the ELF class of a file (5th byte) in decimal. 21877 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header 21878 if od -A x < /dev/null >/dev/null 2>/dev/null; then 21879 # Use POSIX od. 21880 func_elfclass () 21881 { 21882 od -A n -t d1 -j 4 -N 1 21883 } 21884 else 21885 # Use BSD hexdump. 21886 func_elfclass () 21887 { 21888 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' 21889 echo 21890 } 21891 fi 21892 # Use 'expr', not 'test', to compare the values of func_elfclass, because on 21893 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002, 21894 # not 1 or 2. 21895 case $HOST_CPU_C_ABI_32BIT in 21896 yes) 21897 # 32-bit ABI. 21898 acl_is_expected_elfclass () 21899 { 21900 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null 21901 } 21902 ;; 21903 no) 21904 # 64-bit ABI. 21905 acl_is_expected_elfclass () 21906 { 21907 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null 21908 } 21909 ;; 21910 *) 21911 # Unknown. 21912 acl_is_expected_elfclass () 21913 { 21914 : 21915 } 21916 ;; 21917 esac 21918 else 21919 acl_is_expected_elfclass () 21920 { 21921 : 21922 } 21923 fi 21924 21925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 21926printf %s "checking for the common suffixes of directories in the library search path... " >&6; } 21927if test ${acl_cv_libdirstems+y} 21928then : 21929 printf %s "(cached) " >&6 21930else $as_nop 21931 acl_libdirstem=lib 21932 acl_libdirstem2= 21933 acl_libdirstem3= 21934 case "$host_os" in 21935 solaris*) 21936 if test $HOST_CPU_C_ABI_32BIT = no; then 21937 acl_libdirstem2=lib/64 21938 case "$host_cpu" in 21939 sparc*) acl_libdirstem3=lib/sparcv9 ;; 21940 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; 21941 esac 21942 fi 21943 ;; 21944 *) 21945 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ 21946 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 21947 if test $HOST_CPU_C_ABI_32BIT != no; then 21948 # 32-bit or unknown ABI. 21949 if test -d /usr/lib32; then 21950 acl_libdirstem2=lib32 21951 fi 21952 fi 21953 if test $HOST_CPU_C_ABI_32BIT != yes; then 21954 # 64-bit or unknown ABI. 21955 if test -d /usr/lib64; then 21956 acl_libdirstem3=lib64 21957 fi 21958 fi 21959 if test -n "$searchpath"; then 21960 acl_save_IFS="${IFS= }"; IFS=":" 21961 for searchdir in $searchpath; do 21962 if test -d "$searchdir"; then 21963 case "$searchdir" in 21964 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; 21965 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; 21966 */../ | */.. ) 21967 # Better ignore directories of this form. They are misleading. 21968 ;; 21969 *) searchdir=`cd "$searchdir" && pwd` 21970 case "$searchdir" in 21971 */lib32 ) acl_libdirstem2=lib32 ;; 21972 */lib64 ) acl_libdirstem3=lib64 ;; 21973 esac ;; 21974 esac 21975 fi 21976 done 21977 IFS="$acl_save_IFS" 21978 if test $HOST_CPU_C_ABI_32BIT = yes; then 21979 # 32-bit ABI. 21980 acl_libdirstem3= 21981 fi 21982 if test $HOST_CPU_C_ABI_32BIT = no; then 21983 # 64-bit ABI. 21984 acl_libdirstem2= 21985 fi 21986 fi 21987 ;; 21988 esac 21989 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 21990 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" 21991 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" 21992 21993fi 21994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 21995printf "%s\n" "$acl_cv_libdirstems" >&6; } 21996 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` 21997 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` 21998 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 22010 use_additional=yes 22011 22012 acl_save_prefix="$prefix" 22013 prefix="$acl_final_prefix" 22014 acl_save_exec_prefix="$exec_prefix" 22015 exec_prefix="$acl_final_exec_prefix" 22016 22017 eval additional_includedir=\"$includedir\" 22018 eval additional_libdir=\"$libdir\" 22019 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 22020 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 22021 22022 exec_prefix="$acl_save_exec_prefix" 22023 prefix="$acl_save_prefix" 22024 22025 22026# Check whether --with-libiconv-prefix was given. 22027if test ${with_libiconv_prefix+y} 22028then : 22029 withval=$with_libiconv_prefix; 22030 if test "X$withval" = "Xno"; then 22031 use_additional=no 22032 else 22033 if test "X$withval" = "X"; then 22034 22035 acl_save_prefix="$prefix" 22036 prefix="$acl_final_prefix" 22037 acl_save_exec_prefix="$exec_prefix" 22038 exec_prefix="$acl_final_exec_prefix" 22039 22040 eval additional_includedir=\"$includedir\" 22041 eval additional_libdir=\"$libdir\" 22042 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 22043 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 22044 22045 exec_prefix="$acl_save_exec_prefix" 22046 prefix="$acl_save_prefix" 22047 22048 else 22049 additional_includedir="$withval/include" 22050 additional_libdir="$withval/$acl_libdirstem" 22051 additional_libdir2="$withval/$acl_libdirstem2" 22052 additional_libdir3="$withval/$acl_libdirstem3" 22053 fi 22054 fi 22055 22056fi 22057 22058 if test "X$additional_libdir2" = "X$additional_libdir"; then 22059 additional_libdir2= 22060 fi 22061 if test "X$additional_libdir3" = "X$additional_libdir"; then 22062 additional_libdir3= 22063 fi 22064 LIBICONV= 22065 LTLIBICONV= 22066 INCICONV= 22067 LIBICONV_PREFIX= 22068 HAVE_LIBICONV= 22069 rpathdirs= 22070 ltrpathdirs= 22071 names_already_handled= 22072 names_next_round='iconv ' 22073 while test -n "$names_next_round"; do 22074 names_this_round="$names_next_round" 22075 names_next_round= 22076 for name in $names_this_round; do 22077 already_handled= 22078 for n in $names_already_handled; do 22079 if test "$n" = "$name"; then 22080 already_handled=yes 22081 break 22082 fi 22083 done 22084 if test -z "$already_handled"; then 22085 names_already_handled="$names_already_handled $name" 22086 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 22087 eval value=\"\$HAVE_LIB$uppername\" 22088 if test -n "$value"; then 22089 if test "$value" = yes; then 22090 eval value=\"\$LIB$uppername\" 22091 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 22092 eval value=\"\$LTLIB$uppername\" 22093 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 22094 else 22095 : 22096 fi 22097 else 22098 found_dir= 22099 found_la= 22100 found_so= 22101 found_a= 22102 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 22103 if test -n "$acl_shlibext"; then 22104 shrext=".$acl_shlibext" # typically: shrext=.so 22105 else 22106 shrext= 22107 fi 22108 if test $use_additional = yes; then 22109 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 22110 if test "X$found_dir" = "X"; then 22111 eval dir=\$$additional_libdir_variable 22112 if test -n "$dir"; then 22113 if test -n "$acl_shlibext"; then 22114 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 22115 found_dir="$dir" 22116 found_so="$dir/$libname$shrext" 22117 else 22118 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 22119 ver=`(cd "$dir" && \ 22120 for f in "$libname$shrext".*; do echo "$f"; done \ 22121 | sed -e "s,^$libname$shrext\\\\.,," \ 22122 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 22123 | sed 1q ) 2>/dev/null` 22124 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 22125 found_dir="$dir" 22126 found_so="$dir/$libname$shrext.$ver" 22127 fi 22128 else 22129 eval library_names=\"$acl_library_names_spec\" 22130 for f in $library_names; do 22131 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 22132 found_dir="$dir" 22133 found_so="$dir/$f" 22134 break 22135 fi 22136 done 22137 fi 22138 fi 22139 fi 22140 if test "X$found_dir" = "X"; then 22141 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 22142 found_dir="$dir" 22143 found_a="$dir/$libname.$acl_libext" 22144 fi 22145 fi 22146 if test "X$found_dir" != "X"; then 22147 if test -f "$dir/$libname.la"; then 22148 found_la="$dir/$libname.la" 22149 fi 22150 fi 22151 fi 22152 fi 22153 done 22154 fi 22155 if test "X$found_dir" = "X"; then 22156 for x in $LDFLAGS $LTLIBICONV; do 22157 22158 acl_save_prefix="$prefix" 22159 prefix="$acl_final_prefix" 22160 acl_save_exec_prefix="$exec_prefix" 22161 exec_prefix="$acl_final_exec_prefix" 22162 eval x=\"$x\" 22163 exec_prefix="$acl_save_exec_prefix" 22164 prefix="$acl_save_prefix" 22165 22166 case "$x" in 22167 -L*) 22168 dir=`echo "X$x" | sed -e 's/^X-L//'` 22169 if test -n "$acl_shlibext"; then 22170 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 22171 found_dir="$dir" 22172 found_so="$dir/$libname$shrext" 22173 else 22174 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 22175 ver=`(cd "$dir" && \ 22176 for f in "$libname$shrext".*; do echo "$f"; done \ 22177 | sed -e "s,^$libname$shrext\\\\.,," \ 22178 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 22179 | sed 1q ) 2>/dev/null` 22180 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 22181 found_dir="$dir" 22182 found_so="$dir/$libname$shrext.$ver" 22183 fi 22184 else 22185 eval library_names=\"$acl_library_names_spec\" 22186 for f in $library_names; do 22187 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 22188 found_dir="$dir" 22189 found_so="$dir/$f" 22190 break 22191 fi 22192 done 22193 fi 22194 fi 22195 fi 22196 if test "X$found_dir" = "X"; then 22197 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 22198 found_dir="$dir" 22199 found_a="$dir/$libname.$acl_libext" 22200 fi 22201 fi 22202 if test "X$found_dir" != "X"; then 22203 if test -f "$dir/$libname.la"; then 22204 found_la="$dir/$libname.la" 22205 fi 22206 fi 22207 ;; 22208 esac 22209 if test "X$found_dir" != "X"; then 22210 break 22211 fi 22212 done 22213 fi 22214 if test "X$found_dir" != "X"; then 22215 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 22216 if test "X$found_so" != "X"; then 22217 if test "$enable_rpath" = no \ 22218 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 22219 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 22220 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 22221 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 22222 else 22223 haveit= 22224 for x in $ltrpathdirs; do 22225 if test "X$x" = "X$found_dir"; then 22226 haveit=yes 22227 break 22228 fi 22229 done 22230 if test -z "$haveit"; then 22231 ltrpathdirs="$ltrpathdirs $found_dir" 22232 fi 22233 if test "$acl_hardcode_direct" = yes; then 22234 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 22235 else 22236 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 22237 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 22238 haveit= 22239 for x in $rpathdirs; do 22240 if test "X$x" = "X$found_dir"; then 22241 haveit=yes 22242 break 22243 fi 22244 done 22245 if test -z "$haveit"; then 22246 rpathdirs="$rpathdirs $found_dir" 22247 fi 22248 else 22249 haveit= 22250 for x in $LDFLAGS $LIBICONV; do 22251 22252 acl_save_prefix="$prefix" 22253 prefix="$acl_final_prefix" 22254 acl_save_exec_prefix="$exec_prefix" 22255 exec_prefix="$acl_final_exec_prefix" 22256 eval x=\"$x\" 22257 exec_prefix="$acl_save_exec_prefix" 22258 prefix="$acl_save_prefix" 22259 22260 if test "X$x" = "X-L$found_dir"; then 22261 haveit=yes 22262 break 22263 fi 22264 done 22265 if test -z "$haveit"; then 22266 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 22267 fi 22268 if test "$acl_hardcode_minus_L" != no; then 22269 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 22270 else 22271 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 22272 fi 22273 fi 22274 fi 22275 fi 22276 else 22277 if test "X$found_a" != "X"; then 22278 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 22279 else 22280 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 22281 fi 22282 fi 22283 additional_includedir= 22284 case "$found_dir" in 22285 */$acl_libdirstem | */$acl_libdirstem/) 22286 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 22287 if test "$name" = 'iconv'; then 22288 LIBICONV_PREFIX="$basedir" 22289 fi 22290 additional_includedir="$basedir/include" 22291 ;; 22292 */$acl_libdirstem2 | */$acl_libdirstem2/) 22293 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 22294 if test "$name" = 'iconv'; then 22295 LIBICONV_PREFIX="$basedir" 22296 fi 22297 additional_includedir="$basedir/include" 22298 ;; 22299 */$acl_libdirstem3 | */$acl_libdirstem3/) 22300 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 22301 if test "$name" = 'iconv'; then 22302 LIBICONV_PREFIX="$basedir" 22303 fi 22304 additional_includedir="$basedir/include" 22305 ;; 22306 esac 22307 if test "X$additional_includedir" != "X"; then 22308 if test "X$additional_includedir" != "X/usr/include"; then 22309 haveit= 22310 if test "X$additional_includedir" = "X/usr/local/include"; then 22311 if test -n "$GCC"; then 22312 case $host_os in 22313 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 22314 esac 22315 fi 22316 fi 22317 if test -z "$haveit"; then 22318 for x in $CPPFLAGS $INCICONV; do 22319 22320 acl_save_prefix="$prefix" 22321 prefix="$acl_final_prefix" 22322 acl_save_exec_prefix="$exec_prefix" 22323 exec_prefix="$acl_final_exec_prefix" 22324 eval x=\"$x\" 22325 exec_prefix="$acl_save_exec_prefix" 22326 prefix="$acl_save_prefix" 22327 22328 if test "X$x" = "X-I$additional_includedir"; then 22329 haveit=yes 22330 break 22331 fi 22332 done 22333 if test -z "$haveit"; then 22334 if test -d "$additional_includedir"; then 22335 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 22336 fi 22337 fi 22338 fi 22339 fi 22340 fi 22341 if test -n "$found_la"; then 22342 save_libdir="$libdir" 22343 case "$found_la" in 22344 */* | *\\*) . "$found_la" ;; 22345 *) . "./$found_la" ;; 22346 esac 22347 libdir="$save_libdir" 22348 for dep in $dependency_libs; do 22349 case "$dep" in 22350 -L*) 22351 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 22352 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 22353 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 22354 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 22355 haveit= 22356 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 22357 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 22358 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 22359 if test -n "$GCC"; then 22360 case $host_os in 22361 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 22362 esac 22363 fi 22364 fi 22365 if test -z "$haveit"; then 22366 haveit= 22367 for x in $LDFLAGS $LIBICONV; do 22368 22369 acl_save_prefix="$prefix" 22370 prefix="$acl_final_prefix" 22371 acl_save_exec_prefix="$exec_prefix" 22372 exec_prefix="$acl_final_exec_prefix" 22373 eval x=\"$x\" 22374 exec_prefix="$acl_save_exec_prefix" 22375 prefix="$acl_save_prefix" 22376 22377 if test "X$x" = "X-L$dependency_libdir"; then 22378 haveit=yes 22379 break 22380 fi 22381 done 22382 if test -z "$haveit"; then 22383 if test -d "$dependency_libdir"; then 22384 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" 22385 fi 22386 fi 22387 haveit= 22388 for x in $LDFLAGS $LTLIBICONV; do 22389 22390 acl_save_prefix="$prefix" 22391 prefix="$acl_final_prefix" 22392 acl_save_exec_prefix="$exec_prefix" 22393 exec_prefix="$acl_final_exec_prefix" 22394 eval x=\"$x\" 22395 exec_prefix="$acl_save_exec_prefix" 22396 prefix="$acl_save_prefix" 22397 22398 if test "X$x" = "X-L$dependency_libdir"; then 22399 haveit=yes 22400 break 22401 fi 22402 done 22403 if test -z "$haveit"; then 22404 if test -d "$dependency_libdir"; then 22405 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" 22406 fi 22407 fi 22408 fi 22409 fi 22410 ;; 22411 -R*) 22412 dir=`echo "X$dep" | sed -e 's/^X-R//'` 22413 if test "$enable_rpath" != no; then 22414 haveit= 22415 for x in $rpathdirs; do 22416 if test "X$x" = "X$dir"; then 22417 haveit=yes 22418 break 22419 fi 22420 done 22421 if test -z "$haveit"; then 22422 rpathdirs="$rpathdirs $dir" 22423 fi 22424 haveit= 22425 for x in $ltrpathdirs; do 22426 if test "X$x" = "X$dir"; then 22427 haveit=yes 22428 break 22429 fi 22430 done 22431 if test -z "$haveit"; then 22432 ltrpathdirs="$ltrpathdirs $dir" 22433 fi 22434 fi 22435 ;; 22436 -l*) 22437 dep=`echo "X$dep" | sed -e 's/^X-l//'` 22438 if test "X$dep" != Xc \ 22439 || case $host_os in 22440 linux* | gnu* | k*bsd*-gnu) false ;; 22441 *) true ;; 22442 esac; then 22443 names_next_round="$names_next_round $dep" 22444 fi 22445 ;; 22446 *.la) 22447 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 22448 ;; 22449 *) 22450 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 22451 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 22452 ;; 22453 esac 22454 done 22455 fi 22456 else 22457 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 22458 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 22459 fi 22460 fi 22461 fi 22462 done 22463 done 22464 if test "X$rpathdirs" != "X"; then 22465 if test -n "$acl_hardcode_libdir_separator"; then 22466 alldirs= 22467 for found_dir in $rpathdirs; do 22468 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 22469 done 22470 acl_save_libdir="$libdir" 22471 libdir="$alldirs" 22472 eval flag=\"$acl_hardcode_libdir_flag_spec\" 22473 libdir="$acl_save_libdir" 22474 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 22475 else 22476 for found_dir in $rpathdirs; do 22477 acl_save_libdir="$libdir" 22478 libdir="$found_dir" 22479 eval flag=\"$acl_hardcode_libdir_flag_spec\" 22480 libdir="$acl_save_libdir" 22481 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 22482 done 22483 fi 22484 fi 22485 if test "X$ltrpathdirs" != "X"; then 22486 for found_dir in $ltrpathdirs; do 22487 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 22488 done 22489 fi 22490 22491 22492 22493 22494 22495 22496 22497 22498 22499 22500 22501 am_save_CPPFLAGS="$CPPFLAGS" 22502 22503 for element in $INCICONV; do 22504 haveit= 22505 for x in $CPPFLAGS; do 22506 22507 acl_save_prefix="$prefix" 22508 prefix="$acl_final_prefix" 22509 acl_save_exec_prefix="$exec_prefix" 22510 exec_prefix="$acl_final_exec_prefix" 22511 eval x=\"$x\" 22512 exec_prefix="$acl_save_exec_prefix" 22513 prefix="$acl_save_prefix" 22514 22515 if test "X$x" = "X$element"; then 22516 haveit=yes 22517 break 22518 fi 22519 done 22520 if test -z "$haveit"; then 22521 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 22522 fi 22523 done 22524 22525 22526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 22527printf %s "checking for iconv... " >&6; } 22528if test ${am_cv_func_iconv+y} 22529then : 22530 printf %s "(cached) " >&6 22531else $as_nop 22532 22533 am_cv_func_iconv="no, consider installing GNU libiconv" 22534 am_cv_lib_iconv=no 22535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22536/* end confdefs.h. */ 22537 22538#include <stdlib.h> 22539#include <iconv.h> 22540 22541int 22542main (void) 22543{ 22544iconv_t cd = iconv_open("",""); 22545 iconv(cd,NULL,NULL,NULL,NULL); 22546 iconv_close(cd); 22547 ; 22548 return 0; 22549} 22550_ACEOF 22551if ac_fn_c_try_link "$LINENO" 22552then : 22553 am_cv_func_iconv=yes 22554fi 22555rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22556 conftest$ac_exeext conftest.$ac_ext 22557 if test "$am_cv_func_iconv" != yes; then 22558 am_save_LIBS="$LIBS" 22559 LIBS="$LIBS $LIBICONV" 22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22561/* end confdefs.h. */ 22562 22563#include <stdlib.h> 22564#include <iconv.h> 22565 22566int 22567main (void) 22568{ 22569iconv_t cd = iconv_open("",""); 22570 iconv(cd,NULL,NULL,NULL,NULL); 22571 iconv_close(cd); 22572 ; 22573 return 0; 22574} 22575_ACEOF 22576if ac_fn_c_try_link "$LINENO" 22577then : 22578 am_cv_lib_iconv=yes 22579 am_cv_func_iconv=yes 22580fi 22581rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22582 conftest$ac_exeext conftest.$ac_ext 22583 LIBS="$am_save_LIBS" 22584 fi 22585 22586fi 22587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 22588printf "%s\n" "$am_cv_func_iconv" >&6; } 22589 if test "$am_cv_func_iconv" = yes; then 22590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 22591printf %s "checking for working iconv... " >&6; } 22592if test ${am_cv_func_iconv_works+y} 22593then : 22594 printf %s "(cached) " >&6 22595else $as_nop 22596 22597 am_save_LIBS="$LIBS" 22598 if test $am_cv_lib_iconv = yes; then 22599 LIBS="$LIBS $LIBICONV" 22600 fi 22601 am_cv_func_iconv_works=no 22602 for ac_iconv_const in '' 'const'; do 22603 if test "$cross_compiling" = yes 22604then : 22605 case "$host_os" in 22606 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 22607 *) am_cv_func_iconv_works="guessing yes" ;; 22608 esac 22609else $as_nop 22610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22611/* end confdefs.h. */ 22612 22613#include <iconv.h> 22614#include <string.h> 22615 22616#ifndef ICONV_CONST 22617# define ICONV_CONST $ac_iconv_const 22618#endif 22619 22620int 22621main (void) 22622{ 22623int result = 0; 22624 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 22625 returns. */ 22626 { 22627 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 22628 if (cd_utf8_to_88591 != (iconv_t)(-1)) 22629 { 22630 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 22631 char buf[10]; 22632 ICONV_CONST char *inptr = input; 22633 size_t inbytesleft = strlen (input); 22634 char *outptr = buf; 22635 size_t outbytesleft = sizeof (buf); 22636 size_t res = iconv (cd_utf8_to_88591, 22637 &inptr, &inbytesleft, 22638 &outptr, &outbytesleft); 22639 if (res == 0) 22640 result |= 1; 22641 iconv_close (cd_utf8_to_88591); 22642 } 22643 } 22644 /* Test against Solaris 10 bug: Failures are not distinguishable from 22645 successful returns. */ 22646 { 22647 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 22648 if (cd_ascii_to_88591 != (iconv_t)(-1)) 22649 { 22650 static ICONV_CONST char input[] = "\263"; 22651 char buf[10]; 22652 ICONV_CONST char *inptr = input; 22653 size_t inbytesleft = strlen (input); 22654 char *outptr = buf; 22655 size_t outbytesleft = sizeof (buf); 22656 size_t res = iconv (cd_ascii_to_88591, 22657 &inptr, &inbytesleft, 22658 &outptr, &outbytesleft); 22659 if (res == 0) 22660 result |= 2; 22661 iconv_close (cd_ascii_to_88591); 22662 } 22663 } 22664 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 22665 { 22666 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 22667 if (cd_88591_to_utf8 != (iconv_t)(-1)) 22668 { 22669 static ICONV_CONST char input[] = "\304"; 22670 static char buf[2] = { (char)0xDE, (char)0xAD }; 22671 ICONV_CONST char *inptr = input; 22672 size_t inbytesleft = 1; 22673 char *outptr = buf; 22674 size_t outbytesleft = 1; 22675 size_t res = iconv (cd_88591_to_utf8, 22676 &inptr, &inbytesleft, 22677 &outptr, &outbytesleft); 22678 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 22679 result |= 4; 22680 iconv_close (cd_88591_to_utf8); 22681 } 22682 } 22683#if 0 /* This bug could be worked around by the caller. */ 22684 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 22685 { 22686 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 22687 if (cd_88591_to_utf8 != (iconv_t)(-1)) 22688 { 22689 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 22690 char buf[50]; 22691 ICONV_CONST char *inptr = input; 22692 size_t inbytesleft = strlen (input); 22693 char *outptr = buf; 22694 size_t outbytesleft = sizeof (buf); 22695 size_t res = iconv (cd_88591_to_utf8, 22696 &inptr, &inbytesleft, 22697 &outptr, &outbytesleft); 22698 if ((int)res > 0) 22699 result |= 8; 22700 iconv_close (cd_88591_to_utf8); 22701 } 22702 } 22703#endif 22704 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 22705 provided. */ 22706 { 22707 /* Try standardized names. */ 22708 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 22709 /* Try IRIX, OSF/1 names. */ 22710 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 22711 /* Try AIX names. */ 22712 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 22713 /* Try HP-UX names. */ 22714 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 22715 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 22716 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 22717 result |= 16; 22718 if (cd1 != (iconv_t)(-1)) 22719 iconv_close (cd1); 22720 if (cd2 != (iconv_t)(-1)) 22721 iconv_close (cd2); 22722 if (cd3 != (iconv_t)(-1)) 22723 iconv_close (cd3); 22724 if (cd4 != (iconv_t)(-1)) 22725 iconv_close (cd4); 22726 } 22727 return result; 22728 22729 ; 22730 return 0; 22731} 22732_ACEOF 22733if ac_fn_c_try_run "$LINENO" 22734then : 22735 am_cv_func_iconv_works=yes 22736fi 22737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22738 conftest.$ac_objext conftest.beam conftest.$ac_ext 22739fi 22740 22741 test "$am_cv_func_iconv_works" = no || break 22742 done 22743 LIBS="$am_save_LIBS" 22744 22745fi 22746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 22747printf "%s\n" "$am_cv_func_iconv_works" >&6; } 22748 case "$am_cv_func_iconv_works" in 22749 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 22750 *) am_func_iconv=yes ;; 22751 esac 22752 else 22753 am_func_iconv=no am_cv_lib_iconv=no 22754 fi 22755 if test "$am_func_iconv" = yes; then 22756 22757printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h 22758 22759 fi 22760 if test "$am_cv_lib_iconv" = yes; then 22761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 22762printf %s "checking how to link with libiconv... " >&6; } 22763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 22764printf "%s\n" "$LIBICONV" >&6; } 22765 else 22766 CPPFLAGS="$am_save_CPPFLAGS" 22767 LIBICONV= 22768 LTLIBICONV= 22769 fi 22770 22771 22772 22773 if test "$am_cv_func_iconv" = yes; then 22774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 22775printf %s "checking for iconv declaration... " >&6; } 22776 if test ${am_cv_proto_iconv+y} 22777then : 22778 printf %s "(cached) " >&6 22779else $as_nop 22780 22781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22782/* end confdefs.h. */ 22783 22784#include <stdlib.h> 22785#include <iconv.h> 22786extern 22787#ifdef __cplusplus 22788"C" 22789#endif 22790#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 22791size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 22792#else 22793size_t iconv(); 22794#endif 22795 22796int 22797main (void) 22798{ 22799 22800 ; 22801 return 0; 22802} 22803_ACEOF 22804if ac_fn_c_try_compile "$LINENO" 22805then : 22806 am_cv_proto_iconv_arg1="" 22807else $as_nop 22808 am_cv_proto_iconv_arg1="const" 22809fi 22810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22811 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 22812fi 22813 22814 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 22815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 22816 $am_cv_proto_iconv" >&5 22817printf "%s\n" " 22818 $am_cv_proto_iconv" >&6; } 22819 else 22820 am_cv_proto_iconv_arg1="" 22821 fi 22822 22823printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h 22824 22825 22826 22827 22828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcharset" >&5 22829printf %s "checking for libcharset... " >&6; } 22830if test ${am_cv_libcharset+y} 22831then : 22832 printf %s "(cached) " >&6 22833else $as_nop 22834 lc_save_LIBS="$LIBS" 22835 LIBS="$LIBS $LIBICONV" 22836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22837/* end confdefs.h. */ 22838#include <libcharset.h> 22839int 22840main (void) 22841{ 22842locale_charset() 22843 ; 22844 return 0; 22845} 22846_ACEOF 22847if ac_fn_c_try_link "$LINENO" 22848then : 22849 am_cv_libcharset=yes 22850else $as_nop 22851 am_cv_libcharset=no 22852fi 22853rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22854 conftest$ac_exeext conftest.$ac_ext 22855 LIBS="$lc_save_LIBS" 22856 22857fi 22858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_libcharset" >&5 22859printf "%s\n" "$am_cv_libcharset" >&6; } 22860 if test $am_cv_libcharset = yes; then 22861 22862printf "%s\n" "#define HAVE_LIBCHARSET 1" >>confdefs.h 22863 22864 fi 22865 22866 22867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 22868printf %s "checking for nl_langinfo and CODESET... " >&6; } 22869if test ${am_cv_langinfo_codeset+y} 22870then : 22871 printf %s "(cached) " >&6 22872else $as_nop 22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22874/* end confdefs.h. */ 22875#include <langinfo.h> 22876int 22877main (void) 22878{ 22879char* cs = nl_langinfo(CODESET); return !cs; 22880 ; 22881 return 0; 22882} 22883_ACEOF 22884if ac_fn_c_try_link "$LINENO" 22885then : 22886 am_cv_langinfo_codeset=yes 22887else $as_nop 22888 am_cv_langinfo_codeset=no 22889fi 22890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22891 conftest$ac_exeext conftest.$ac_ext 22892 22893fi 22894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 22895printf "%s\n" "$am_cv_langinfo_codeset" >&6; } 22896 if test $am_cv_langinfo_codeset = yes; then 22897 22898printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 22899 22900 fi 22901 22902if test "$am_cv_func_iconv" != yes; then 22903 as_fn_error $? "Iconv is missing. You can get libiconv from http://gnu.org/, \ 22904or try using --with-libiconv-prefix." "$LINENO" 5 22905fi 22906LIBS="$LIBS $LIBICONV" 22907 22908ALL_LINGUAS="ar bg cs ca da de el en_GB eo es et fa fi fr ga gd he hu id it ja 22909ko lt nl nb pl pt pt_BR ro ru sr sv tr uk zh_CN zh_TW" 22910PODOMAINS="freeciv nations ruledit" 22911 22912 22913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 22914printf %s "checking whether NLS is requested... " >&6; } 22915 # Check whether --enable-nls was given. 22916if test ${enable_nls+y} 22917then : 22918 enableval=$enable_nls; USE_NLS=$enableval 22919else $as_nop 22920 USE_NLS=yes 22921fi 22922 22923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 22924printf "%s\n" "$USE_NLS" >&6; } 22925 22926 22927 22928 22929 GETTEXT_MACRO_VERSION=0.20 22930 22931 22932 22933 22934# Prepare PATH_SEPARATOR. 22935# The user is always right. 22936if test "${PATH_SEPARATOR+set}" != set; then 22937 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 22938 # contains only /bin. Note that ksh looks also at the FPATH variable, 22939 # so we have to set that as well for the test. 22940 PATH_SEPARATOR=: 22941 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 22942 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 22943 || PATH_SEPARATOR=';' 22944 } 22945fi 22946 22947# Find out how to test for executable files. Don't use a zero-byte file, 22948# as systems may use methods other than mode bits to determine executability. 22949cat >conf$$.file <<_ASEOF 22950#! /bin/sh 22951exit 0 22952_ASEOF 22953chmod +x conf$$.file 22954if test -x conf$$.file >/dev/null 2>&1; then 22955 ac_executable_p="test -x" 22956else 22957 ac_executable_p="test -f" 22958fi 22959rm -f conf$$.file 22960 22961# Extract the first word of "msgfmt", so it can be a program name with args. 22962set dummy msgfmt; ac_word=$2 22963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22964printf %s "checking for $ac_word... " >&6; } 22965if test ${ac_cv_path_MSGFMT+y} 22966then : 22967 printf %s "(cached) " >&6 22968else $as_nop 22969 case "$MSGFMT" in 22970 [\\/]* | ?:[\\/]*) 22971 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 22972 ;; 22973 *) 22974 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 22975 for ac_dir in $PATH; do 22976 IFS="$ac_save_IFS" 22977 test -z "$ac_dir" && ac_dir=. 22978 for ac_exec_ext in '' $ac_executable_extensions; do 22979 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 22980 echo "$as_me: trying $ac_dir/$ac_word..." >&5 22981 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 22982 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 22983 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 22984 break 2 22985 fi 22986 fi 22987 done 22988 done 22989 IFS="$ac_save_IFS" 22990 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 22991 ;; 22992esac 22993fi 22994MSGFMT="$ac_cv_path_MSGFMT" 22995if test "$MSGFMT" != ":"; then 22996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 22997printf "%s\n" "$MSGFMT" >&6; } 22998else 22999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23000printf "%s\n" "no" >&6; } 23001fi 23002 23003 # Extract the first word of "gmsgfmt", so it can be a program name with args. 23004set dummy gmsgfmt; ac_word=$2 23005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23006printf %s "checking for $ac_word... " >&6; } 23007if test ${ac_cv_path_GMSGFMT+y} 23008then : 23009 printf %s "(cached) " >&6 23010else $as_nop 23011 case $GMSGFMT in 23012 [\\/]* | ?:[\\/]*) 23013 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 23014 ;; 23015 *) 23016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23017for as_dir in $PATH 23018do 23019 IFS=$as_save_IFS 23020 case $as_dir in #((( 23021 '') as_dir=./ ;; 23022 */) ;; 23023 *) as_dir=$as_dir/ ;; 23024 esac 23025 for ac_exec_ext in '' $ac_executable_extensions; do 23026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23027 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" 23028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23029 break 2 23030 fi 23031done 23032 done 23033IFS=$as_save_IFS 23034 23035 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 23036 ;; 23037esac 23038fi 23039GMSGFMT=$ac_cv_path_GMSGFMT 23040if test -n "$GMSGFMT"; then 23041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 23042printf "%s\n" "$GMSGFMT" >&6; } 23043else 23044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23045printf "%s\n" "no" >&6; } 23046fi 23047 23048 23049 23050 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 23051 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 23052 *) GMSGFMT_015=$GMSGFMT ;; 23053 esac 23054 23055 23056 23057# Prepare PATH_SEPARATOR. 23058# The user is always right. 23059if test "${PATH_SEPARATOR+set}" != set; then 23060 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 23061 # contains only /bin. Note that ksh looks also at the FPATH variable, 23062 # so we have to set that as well for the test. 23063 PATH_SEPARATOR=: 23064 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 23065 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 23066 || PATH_SEPARATOR=';' 23067 } 23068fi 23069 23070# Find out how to test for executable files. Don't use a zero-byte file, 23071# as systems may use methods other than mode bits to determine executability. 23072cat >conf$$.file <<_ASEOF 23073#! /bin/sh 23074exit 0 23075_ASEOF 23076chmod +x conf$$.file 23077if test -x conf$$.file >/dev/null 2>&1; then 23078 ac_executable_p="test -x" 23079else 23080 ac_executable_p="test -f" 23081fi 23082rm -f conf$$.file 23083 23084# Extract the first word of "xgettext", so it can be a program name with args. 23085set dummy xgettext; ac_word=$2 23086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23087printf %s "checking for $ac_word... " >&6; } 23088if test ${ac_cv_path_XGETTEXT+y} 23089then : 23090 printf %s "(cached) " >&6 23091else $as_nop 23092 case "$XGETTEXT" in 23093 [\\/]* | ?:[\\/]*) 23094 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 23095 ;; 23096 *) 23097 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 23098 for ac_dir in $PATH; do 23099 IFS="$ac_save_IFS" 23100 test -z "$ac_dir" && ac_dir=. 23101 for ac_exec_ext in '' $ac_executable_extensions; do 23102 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 23103 echo "$as_me: trying $ac_dir/$ac_word..." >&5 23104 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 23105 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 23106 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 23107 break 2 23108 fi 23109 fi 23110 done 23111 done 23112 IFS="$ac_save_IFS" 23113 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 23114 ;; 23115esac 23116fi 23117XGETTEXT="$ac_cv_path_XGETTEXT" 23118if test "$XGETTEXT" != ":"; then 23119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 23120printf "%s\n" "$XGETTEXT" >&6; } 23121else 23122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23123printf "%s\n" "no" >&6; } 23124fi 23125 23126 rm -f messages.po 23127 23128 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 23129 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 23130 *) XGETTEXT_015=$XGETTEXT ;; 23131 esac 23132 23133 23134 23135# Prepare PATH_SEPARATOR. 23136# The user is always right. 23137if test "${PATH_SEPARATOR+set}" != set; then 23138 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 23139 # contains only /bin. Note that ksh looks also at the FPATH variable, 23140 # so we have to set that as well for the test. 23141 PATH_SEPARATOR=: 23142 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 23143 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 23144 || PATH_SEPARATOR=';' 23145 } 23146fi 23147 23148# Find out how to test for executable files. Don't use a zero-byte file, 23149# as systems may use methods other than mode bits to determine executability. 23150cat >conf$$.file <<_ASEOF 23151#! /bin/sh 23152exit 0 23153_ASEOF 23154chmod +x conf$$.file 23155if test -x conf$$.file >/dev/null 2>&1; then 23156 ac_executable_p="test -x" 23157else 23158 ac_executable_p="test -f" 23159fi 23160rm -f conf$$.file 23161 23162# Extract the first word of "msgmerge", so it can be a program name with args. 23163set dummy msgmerge; ac_word=$2 23164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23165printf %s "checking for $ac_word... " >&6; } 23166if test ${ac_cv_path_MSGMERGE+y} 23167then : 23168 printf %s "(cached) " >&6 23169else $as_nop 23170 case "$MSGMERGE" in 23171 [\\/]* | ?:[\\/]*) 23172 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 23173 ;; 23174 *) 23175 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 23176 for ac_dir in $PATH; do 23177 IFS="$ac_save_IFS" 23178 test -z "$ac_dir" && ac_dir=. 23179 for ac_exec_ext in '' $ac_executable_extensions; do 23180 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 23181 echo "$as_me: trying $ac_dir/$ac_word..." >&5 23182 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 23183 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 23184 break 2 23185 fi 23186 fi 23187 done 23188 done 23189 IFS="$ac_save_IFS" 23190 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 23191 ;; 23192esac 23193fi 23194MSGMERGE="$ac_cv_path_MSGMERGE" 23195if test "$MSGMERGE" != ":"; then 23196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 23197printf "%s\n" "$MSGMERGE" >&6; } 23198else 23199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23200printf "%s\n" "no" >&6; } 23201fi 23202 23203 23204 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then 23205 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' 23206 else 23207 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then 23208 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' 23209 else 23210 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' 23211 fi 23212 fi 23213 23214 23215 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 23216 23217 23218 ac_config_commands="$ac_config_commands po-directories" 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 23245printf %s "checking for CFPreferencesCopyAppValue... " >&6; } 23246if test ${gt_cv_func_CFPreferencesCopyAppValue+y} 23247then : 23248 printf %s "(cached) " >&6 23249else $as_nop 23250 gt_save_LIBS="$LIBS" 23251 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 23252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23253/* end confdefs.h. */ 23254#include <CoreFoundation/CFPreferences.h> 23255int 23256main (void) 23257{ 23258CFPreferencesCopyAppValue(NULL, NULL) 23259 ; 23260 return 0; 23261} 23262_ACEOF 23263if ac_fn_c_try_link "$LINENO" 23264then : 23265 gt_cv_func_CFPreferencesCopyAppValue=yes 23266else $as_nop 23267 gt_cv_func_CFPreferencesCopyAppValue=no 23268fi 23269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23270 conftest$ac_exeext conftest.$ac_ext 23271 LIBS="$gt_save_LIBS" 23272fi 23273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 23274printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 23275 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 23276 23277printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 23278 23279 fi 23280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 23281printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } 23282if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} 23283then : 23284 printf %s "(cached) " >&6 23285else $as_nop 23286 gt_save_LIBS="$LIBS" 23287 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 23288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23289/* end confdefs.h. */ 23290#include <CoreFoundation/CFLocale.h> 23291int 23292main (void) 23293{ 23294CFLocaleCopyPreferredLanguages(); 23295 ; 23296 return 0; 23297} 23298_ACEOF 23299if ac_fn_c_try_link "$LINENO" 23300then : 23301 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 23302else $as_nop 23303 gt_cv_func_CFLocaleCopyPreferredLanguages=no 23304fi 23305rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23306 conftest$ac_exeext conftest.$ac_ext 23307 LIBS="$gt_save_LIBS" 23308fi 23309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 23310printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 23311 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 23312 23313printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 23314 23315 fi 23316 INTL_MACOSX_LIBS= 23317 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 23318 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 23319 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 23320 fi 23321 23322 23323 23324 23325 23326 23327 LIBINTL= 23328 LTLIBINTL= 23329 POSUB= 23330 23331 case " $gt_needs " in 23332 *" need-formatstring-macros "*) gt_api_version=3 ;; 23333 *" need-ngettext "*) gt_api_version=2 ;; 23334 *) gt_api_version=1 ;; 23335 esac 23336 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 23337 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 23338 23339 if test "$USE_NLS" = "yes"; then 23340 gt_use_preinstalled_gnugettext=no 23341 23342 23343 if test $gt_api_version -ge 3; then 23344 gt_revision_test_code=' 23345#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 23346#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 23347#endif 23348typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 23349' 23350 else 23351 gt_revision_test_code= 23352 fi 23353 if test $gt_api_version -ge 2; then 23354 gt_expression_test_code=' + * ngettext ("", "", 0)' 23355 else 23356 gt_expression_test_code= 23357 fi 23358 23359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 23360printf %s "checking for GNU gettext in libc... " >&6; } 23361if eval test \${$gt_func_gnugettext_libc+y} 23362then : 23363 printf %s "(cached) " >&6 23364else $as_nop 23365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23366/* end confdefs.h. */ 23367 23368#include <libintl.h> 23369#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 23370extern int _nl_msg_cat_cntr; 23371extern int *_nl_domain_bindings; 23372#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 23373#else 23374#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 23375#endif 23376$gt_revision_test_code 23377 23378int 23379main (void) 23380{ 23381 23382bindtextdomain ("", ""); 23383return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 23384 23385 ; 23386 return 0; 23387} 23388_ACEOF 23389if ac_fn_c_try_link "$LINENO" 23390then : 23391 eval "$gt_func_gnugettext_libc=yes" 23392else $as_nop 23393 eval "$gt_func_gnugettext_libc=no" 23394fi 23395rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23396 conftest$ac_exeext conftest.$ac_ext 23397fi 23398eval ac_res=\$$gt_func_gnugettext_libc 23399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23400printf "%s\n" "$ac_res" >&6; } 23401 23402 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 23403 23404 23405 23406 23407 23408 am_save_CPPFLAGS="$CPPFLAGS" 23409 23410 for element in $INCICONV; do 23411 haveit= 23412 for x in $CPPFLAGS; do 23413 23414 acl_save_prefix="$prefix" 23415 prefix="$acl_final_prefix" 23416 acl_save_exec_prefix="$exec_prefix" 23417 exec_prefix="$acl_final_exec_prefix" 23418 eval x=\"$x\" 23419 exec_prefix="$acl_save_exec_prefix" 23420 prefix="$acl_save_prefix" 23421 23422 if test "X$x" = "X$element"; then 23423 haveit=yes 23424 break 23425 fi 23426 done 23427 if test -z "$haveit"; then 23428 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 23429 fi 23430 done 23431 23432 23433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 23434printf %s "checking for iconv... " >&6; } 23435if test ${am_cv_func_iconv+y} 23436then : 23437 printf %s "(cached) " >&6 23438else $as_nop 23439 23440 am_cv_func_iconv="no, consider installing GNU libiconv" 23441 am_cv_lib_iconv=no 23442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23443/* end confdefs.h. */ 23444 23445#include <stdlib.h> 23446#include <iconv.h> 23447 23448int 23449main (void) 23450{ 23451iconv_t cd = iconv_open("",""); 23452 iconv(cd,NULL,NULL,NULL,NULL); 23453 iconv_close(cd); 23454 ; 23455 return 0; 23456} 23457_ACEOF 23458if ac_fn_c_try_link "$LINENO" 23459then : 23460 am_cv_func_iconv=yes 23461fi 23462rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23463 conftest$ac_exeext conftest.$ac_ext 23464 if test "$am_cv_func_iconv" != yes; then 23465 am_save_LIBS="$LIBS" 23466 LIBS="$LIBS $LIBICONV" 23467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23468/* end confdefs.h. */ 23469 23470#include <stdlib.h> 23471#include <iconv.h> 23472 23473int 23474main (void) 23475{ 23476iconv_t cd = iconv_open("",""); 23477 iconv(cd,NULL,NULL,NULL,NULL); 23478 iconv_close(cd); 23479 ; 23480 return 0; 23481} 23482_ACEOF 23483if ac_fn_c_try_link "$LINENO" 23484then : 23485 am_cv_lib_iconv=yes 23486 am_cv_func_iconv=yes 23487fi 23488rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23489 conftest$ac_exeext conftest.$ac_ext 23490 LIBS="$am_save_LIBS" 23491 fi 23492 23493fi 23494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 23495printf "%s\n" "$am_cv_func_iconv" >&6; } 23496 if test "$am_cv_func_iconv" = yes; then 23497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 23498printf %s "checking for working iconv... " >&6; } 23499if test ${am_cv_func_iconv_works+y} 23500then : 23501 printf %s "(cached) " >&6 23502else $as_nop 23503 23504 am_save_LIBS="$LIBS" 23505 if test $am_cv_lib_iconv = yes; then 23506 LIBS="$LIBS $LIBICONV" 23507 fi 23508 am_cv_func_iconv_works=no 23509 for ac_iconv_const in '' 'const'; do 23510 if test "$cross_compiling" = yes 23511then : 23512 case "$host_os" in 23513 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 23514 *) am_cv_func_iconv_works="guessing yes" ;; 23515 esac 23516else $as_nop 23517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23518/* end confdefs.h. */ 23519 23520#include <iconv.h> 23521#include <string.h> 23522 23523#ifndef ICONV_CONST 23524# define ICONV_CONST $ac_iconv_const 23525#endif 23526 23527int 23528main (void) 23529{ 23530int result = 0; 23531 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 23532 returns. */ 23533 { 23534 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 23535 if (cd_utf8_to_88591 != (iconv_t)(-1)) 23536 { 23537 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 23538 char buf[10]; 23539 ICONV_CONST char *inptr = input; 23540 size_t inbytesleft = strlen (input); 23541 char *outptr = buf; 23542 size_t outbytesleft = sizeof (buf); 23543 size_t res = iconv (cd_utf8_to_88591, 23544 &inptr, &inbytesleft, 23545 &outptr, &outbytesleft); 23546 if (res == 0) 23547 result |= 1; 23548 iconv_close (cd_utf8_to_88591); 23549 } 23550 } 23551 /* Test against Solaris 10 bug: Failures are not distinguishable from 23552 successful returns. */ 23553 { 23554 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 23555 if (cd_ascii_to_88591 != (iconv_t)(-1)) 23556 { 23557 static ICONV_CONST char input[] = "\263"; 23558 char buf[10]; 23559 ICONV_CONST char *inptr = input; 23560 size_t inbytesleft = strlen (input); 23561 char *outptr = buf; 23562 size_t outbytesleft = sizeof (buf); 23563 size_t res = iconv (cd_ascii_to_88591, 23564 &inptr, &inbytesleft, 23565 &outptr, &outbytesleft); 23566 if (res == 0) 23567 result |= 2; 23568 iconv_close (cd_ascii_to_88591); 23569 } 23570 } 23571 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 23572 { 23573 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 23574 if (cd_88591_to_utf8 != (iconv_t)(-1)) 23575 { 23576 static ICONV_CONST char input[] = "\304"; 23577 static char buf[2] = { (char)0xDE, (char)0xAD }; 23578 ICONV_CONST char *inptr = input; 23579 size_t inbytesleft = 1; 23580 char *outptr = buf; 23581 size_t outbytesleft = 1; 23582 size_t res = iconv (cd_88591_to_utf8, 23583 &inptr, &inbytesleft, 23584 &outptr, &outbytesleft); 23585 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 23586 result |= 4; 23587 iconv_close (cd_88591_to_utf8); 23588 } 23589 } 23590#if 0 /* This bug could be worked around by the caller. */ 23591 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 23592 { 23593 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 23594 if (cd_88591_to_utf8 != (iconv_t)(-1)) 23595 { 23596 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 23597 char buf[50]; 23598 ICONV_CONST char *inptr = input; 23599 size_t inbytesleft = strlen (input); 23600 char *outptr = buf; 23601 size_t outbytesleft = sizeof (buf); 23602 size_t res = iconv (cd_88591_to_utf8, 23603 &inptr, &inbytesleft, 23604 &outptr, &outbytesleft); 23605 if ((int)res > 0) 23606 result |= 8; 23607 iconv_close (cd_88591_to_utf8); 23608 } 23609 } 23610#endif 23611 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 23612 provided. */ 23613 { 23614 /* Try standardized names. */ 23615 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 23616 /* Try IRIX, OSF/1 names. */ 23617 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 23618 /* Try AIX names. */ 23619 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 23620 /* Try HP-UX names. */ 23621 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 23622 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 23623 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 23624 result |= 16; 23625 if (cd1 != (iconv_t)(-1)) 23626 iconv_close (cd1); 23627 if (cd2 != (iconv_t)(-1)) 23628 iconv_close (cd2); 23629 if (cd3 != (iconv_t)(-1)) 23630 iconv_close (cd3); 23631 if (cd4 != (iconv_t)(-1)) 23632 iconv_close (cd4); 23633 } 23634 return result; 23635 23636 ; 23637 return 0; 23638} 23639_ACEOF 23640if ac_fn_c_try_run "$LINENO" 23641then : 23642 am_cv_func_iconv_works=yes 23643fi 23644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23645 conftest.$ac_objext conftest.beam conftest.$ac_ext 23646fi 23647 23648 test "$am_cv_func_iconv_works" = no || break 23649 done 23650 LIBS="$am_save_LIBS" 23651 23652fi 23653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 23654printf "%s\n" "$am_cv_func_iconv_works" >&6; } 23655 case "$am_cv_func_iconv_works" in 23656 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 23657 *) am_func_iconv=yes ;; 23658 esac 23659 else 23660 am_func_iconv=no am_cv_lib_iconv=no 23661 fi 23662 if test "$am_func_iconv" = yes; then 23663 23664printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h 23665 23666 fi 23667 if test "$am_cv_lib_iconv" = yes; then 23668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 23669printf %s "checking how to link with libiconv... " >&6; } 23670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 23671printf "%s\n" "$LIBICONV" >&6; } 23672 else 23673 CPPFLAGS="$am_save_CPPFLAGS" 23674 LIBICONV= 23675 LTLIBICONV= 23676 fi 23677 23678 23679 23680 23681 23682 23683 23684 23685 23686 23687 use_additional=yes 23688 23689 acl_save_prefix="$prefix" 23690 prefix="$acl_final_prefix" 23691 acl_save_exec_prefix="$exec_prefix" 23692 exec_prefix="$acl_final_exec_prefix" 23693 23694 eval additional_includedir=\"$includedir\" 23695 eval additional_libdir=\"$libdir\" 23696 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 23697 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 23698 23699 exec_prefix="$acl_save_exec_prefix" 23700 prefix="$acl_save_prefix" 23701 23702 23703# Check whether --with-libintl-prefix was given. 23704if test ${with_libintl_prefix+y} 23705then : 23706 withval=$with_libintl_prefix; 23707 if test "X$withval" = "Xno"; then 23708 use_additional=no 23709 else 23710 if test "X$withval" = "X"; then 23711 23712 acl_save_prefix="$prefix" 23713 prefix="$acl_final_prefix" 23714 acl_save_exec_prefix="$exec_prefix" 23715 exec_prefix="$acl_final_exec_prefix" 23716 23717 eval additional_includedir=\"$includedir\" 23718 eval additional_libdir=\"$libdir\" 23719 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 23720 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 23721 23722 exec_prefix="$acl_save_exec_prefix" 23723 prefix="$acl_save_prefix" 23724 23725 else 23726 additional_includedir="$withval/include" 23727 additional_libdir="$withval/$acl_libdirstem" 23728 additional_libdir2="$withval/$acl_libdirstem2" 23729 additional_libdir3="$withval/$acl_libdirstem3" 23730 fi 23731 fi 23732 23733fi 23734 23735 if test "X$additional_libdir2" = "X$additional_libdir"; then 23736 additional_libdir2= 23737 fi 23738 if test "X$additional_libdir3" = "X$additional_libdir"; then 23739 additional_libdir3= 23740 fi 23741 LIBINTL= 23742 LTLIBINTL= 23743 INCINTL= 23744 LIBINTL_PREFIX= 23745 HAVE_LIBINTL= 23746 rpathdirs= 23747 ltrpathdirs= 23748 names_already_handled= 23749 names_next_round='intl ' 23750 while test -n "$names_next_round"; do 23751 names_this_round="$names_next_round" 23752 names_next_round= 23753 for name in $names_this_round; do 23754 already_handled= 23755 for n in $names_already_handled; do 23756 if test "$n" = "$name"; then 23757 already_handled=yes 23758 break 23759 fi 23760 done 23761 if test -z "$already_handled"; then 23762 names_already_handled="$names_already_handled $name" 23763 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 23764 eval value=\"\$HAVE_LIB$uppername\" 23765 if test -n "$value"; then 23766 if test "$value" = yes; then 23767 eval value=\"\$LIB$uppername\" 23768 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 23769 eval value=\"\$LTLIB$uppername\" 23770 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 23771 else 23772 : 23773 fi 23774 else 23775 found_dir= 23776 found_la= 23777 found_so= 23778 found_a= 23779 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 23780 if test -n "$acl_shlibext"; then 23781 shrext=".$acl_shlibext" # typically: shrext=.so 23782 else 23783 shrext= 23784 fi 23785 if test $use_additional = yes; then 23786 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 23787 if test "X$found_dir" = "X"; then 23788 eval dir=\$$additional_libdir_variable 23789 if test -n "$dir"; then 23790 if test -n "$acl_shlibext"; then 23791 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 23792 found_dir="$dir" 23793 found_so="$dir/$libname$shrext" 23794 else 23795 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 23796 ver=`(cd "$dir" && \ 23797 for f in "$libname$shrext".*; do echo "$f"; done \ 23798 | sed -e "s,^$libname$shrext\\\\.,," \ 23799 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 23800 | sed 1q ) 2>/dev/null` 23801 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 23802 found_dir="$dir" 23803 found_so="$dir/$libname$shrext.$ver" 23804 fi 23805 else 23806 eval library_names=\"$acl_library_names_spec\" 23807 for f in $library_names; do 23808 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 23809 found_dir="$dir" 23810 found_so="$dir/$f" 23811 break 23812 fi 23813 done 23814 fi 23815 fi 23816 fi 23817 if test "X$found_dir" = "X"; then 23818 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 23819 found_dir="$dir" 23820 found_a="$dir/$libname.$acl_libext" 23821 fi 23822 fi 23823 if test "X$found_dir" != "X"; then 23824 if test -f "$dir/$libname.la"; then 23825 found_la="$dir/$libname.la" 23826 fi 23827 fi 23828 fi 23829 fi 23830 done 23831 fi 23832 if test "X$found_dir" = "X"; then 23833 for x in $LDFLAGS $LTLIBINTL; do 23834 23835 acl_save_prefix="$prefix" 23836 prefix="$acl_final_prefix" 23837 acl_save_exec_prefix="$exec_prefix" 23838 exec_prefix="$acl_final_exec_prefix" 23839 eval x=\"$x\" 23840 exec_prefix="$acl_save_exec_prefix" 23841 prefix="$acl_save_prefix" 23842 23843 case "$x" in 23844 -L*) 23845 dir=`echo "X$x" | sed -e 's/^X-L//'` 23846 if test -n "$acl_shlibext"; then 23847 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 23848 found_dir="$dir" 23849 found_so="$dir/$libname$shrext" 23850 else 23851 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 23852 ver=`(cd "$dir" && \ 23853 for f in "$libname$shrext".*; do echo "$f"; done \ 23854 | sed -e "s,^$libname$shrext\\\\.,," \ 23855 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 23856 | sed 1q ) 2>/dev/null` 23857 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 23858 found_dir="$dir" 23859 found_so="$dir/$libname$shrext.$ver" 23860 fi 23861 else 23862 eval library_names=\"$acl_library_names_spec\" 23863 for f in $library_names; do 23864 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 23865 found_dir="$dir" 23866 found_so="$dir/$f" 23867 break 23868 fi 23869 done 23870 fi 23871 fi 23872 fi 23873 if test "X$found_dir" = "X"; then 23874 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 23875 found_dir="$dir" 23876 found_a="$dir/$libname.$acl_libext" 23877 fi 23878 fi 23879 if test "X$found_dir" != "X"; then 23880 if test -f "$dir/$libname.la"; then 23881 found_la="$dir/$libname.la" 23882 fi 23883 fi 23884 ;; 23885 esac 23886 if test "X$found_dir" != "X"; then 23887 break 23888 fi 23889 done 23890 fi 23891 if test "X$found_dir" != "X"; then 23892 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 23893 if test "X$found_so" != "X"; then 23894 if test "$enable_rpath" = no \ 23895 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 23896 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 23897 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 23898 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 23899 else 23900 haveit= 23901 for x in $ltrpathdirs; do 23902 if test "X$x" = "X$found_dir"; then 23903 haveit=yes 23904 break 23905 fi 23906 done 23907 if test -z "$haveit"; then 23908 ltrpathdirs="$ltrpathdirs $found_dir" 23909 fi 23910 if test "$acl_hardcode_direct" = yes; then 23911 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 23912 else 23913 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 23914 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 23915 haveit= 23916 for x in $rpathdirs; do 23917 if test "X$x" = "X$found_dir"; then 23918 haveit=yes 23919 break 23920 fi 23921 done 23922 if test -z "$haveit"; then 23923 rpathdirs="$rpathdirs $found_dir" 23924 fi 23925 else 23926 haveit= 23927 for x in $LDFLAGS $LIBINTL; do 23928 23929 acl_save_prefix="$prefix" 23930 prefix="$acl_final_prefix" 23931 acl_save_exec_prefix="$exec_prefix" 23932 exec_prefix="$acl_final_exec_prefix" 23933 eval x=\"$x\" 23934 exec_prefix="$acl_save_exec_prefix" 23935 prefix="$acl_save_prefix" 23936 23937 if test "X$x" = "X-L$found_dir"; then 23938 haveit=yes 23939 break 23940 fi 23941 done 23942 if test -z "$haveit"; then 23943 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 23944 fi 23945 if test "$acl_hardcode_minus_L" != no; then 23946 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 23947 else 23948 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 23949 fi 23950 fi 23951 fi 23952 fi 23953 else 23954 if test "X$found_a" != "X"; then 23955 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 23956 else 23957 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 23958 fi 23959 fi 23960 additional_includedir= 23961 case "$found_dir" in 23962 */$acl_libdirstem | */$acl_libdirstem/) 23963 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 23964 if test "$name" = 'intl'; then 23965 LIBINTL_PREFIX="$basedir" 23966 fi 23967 additional_includedir="$basedir/include" 23968 ;; 23969 */$acl_libdirstem2 | */$acl_libdirstem2/) 23970 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 23971 if test "$name" = 'intl'; then 23972 LIBINTL_PREFIX="$basedir" 23973 fi 23974 additional_includedir="$basedir/include" 23975 ;; 23976 */$acl_libdirstem3 | */$acl_libdirstem3/) 23977 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 23978 if test "$name" = 'intl'; then 23979 LIBINTL_PREFIX="$basedir" 23980 fi 23981 additional_includedir="$basedir/include" 23982 ;; 23983 esac 23984 if test "X$additional_includedir" != "X"; then 23985 if test "X$additional_includedir" != "X/usr/include"; then 23986 haveit= 23987 if test "X$additional_includedir" = "X/usr/local/include"; then 23988 if test -n "$GCC"; then 23989 case $host_os in 23990 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 23991 esac 23992 fi 23993 fi 23994 if test -z "$haveit"; then 23995 for x in $CPPFLAGS $INCINTL; do 23996 23997 acl_save_prefix="$prefix" 23998 prefix="$acl_final_prefix" 23999 acl_save_exec_prefix="$exec_prefix" 24000 exec_prefix="$acl_final_exec_prefix" 24001 eval x=\"$x\" 24002 exec_prefix="$acl_save_exec_prefix" 24003 prefix="$acl_save_prefix" 24004 24005 if test "X$x" = "X-I$additional_includedir"; then 24006 haveit=yes 24007 break 24008 fi 24009 done 24010 if test -z "$haveit"; then 24011 if test -d "$additional_includedir"; then 24012 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 24013 fi 24014 fi 24015 fi 24016 fi 24017 fi 24018 if test -n "$found_la"; then 24019 save_libdir="$libdir" 24020 case "$found_la" in 24021 */* | *\\*) . "$found_la" ;; 24022 *) . "./$found_la" ;; 24023 esac 24024 libdir="$save_libdir" 24025 for dep in $dependency_libs; do 24026 case "$dep" in 24027 -L*) 24028 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 24029 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 24030 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 24031 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 24032 haveit= 24033 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 24034 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 24035 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 24036 if test -n "$GCC"; then 24037 case $host_os in 24038 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 24039 esac 24040 fi 24041 fi 24042 if test -z "$haveit"; then 24043 haveit= 24044 for x in $LDFLAGS $LIBINTL; do 24045 24046 acl_save_prefix="$prefix" 24047 prefix="$acl_final_prefix" 24048 acl_save_exec_prefix="$exec_prefix" 24049 exec_prefix="$acl_final_exec_prefix" 24050 eval x=\"$x\" 24051 exec_prefix="$acl_save_exec_prefix" 24052 prefix="$acl_save_prefix" 24053 24054 if test "X$x" = "X-L$dependency_libdir"; then 24055 haveit=yes 24056 break 24057 fi 24058 done 24059 if test -z "$haveit"; then 24060 if test -d "$dependency_libdir"; then 24061 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" 24062 fi 24063 fi 24064 haveit= 24065 for x in $LDFLAGS $LTLIBINTL; do 24066 24067 acl_save_prefix="$prefix" 24068 prefix="$acl_final_prefix" 24069 acl_save_exec_prefix="$exec_prefix" 24070 exec_prefix="$acl_final_exec_prefix" 24071 eval x=\"$x\" 24072 exec_prefix="$acl_save_exec_prefix" 24073 prefix="$acl_save_prefix" 24074 24075 if test "X$x" = "X-L$dependency_libdir"; then 24076 haveit=yes 24077 break 24078 fi 24079 done 24080 if test -z "$haveit"; then 24081 if test -d "$dependency_libdir"; then 24082 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" 24083 fi 24084 fi 24085 fi 24086 fi 24087 ;; 24088 -R*) 24089 dir=`echo "X$dep" | sed -e 's/^X-R//'` 24090 if test "$enable_rpath" != no; then 24091 haveit= 24092 for x in $rpathdirs; do 24093 if test "X$x" = "X$dir"; then 24094 haveit=yes 24095 break 24096 fi 24097 done 24098 if test -z "$haveit"; then 24099 rpathdirs="$rpathdirs $dir" 24100 fi 24101 haveit= 24102 for x in $ltrpathdirs; do 24103 if test "X$x" = "X$dir"; then 24104 haveit=yes 24105 break 24106 fi 24107 done 24108 if test -z "$haveit"; then 24109 ltrpathdirs="$ltrpathdirs $dir" 24110 fi 24111 fi 24112 ;; 24113 -l*) 24114 dep=`echo "X$dep" | sed -e 's/^X-l//'` 24115 if test "X$dep" != Xc \ 24116 || case $host_os in 24117 linux* | gnu* | k*bsd*-gnu) false ;; 24118 *) true ;; 24119 esac; then 24120 names_next_round="$names_next_round $dep" 24121 fi 24122 ;; 24123 *.la) 24124 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 24125 ;; 24126 *) 24127 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 24128 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 24129 ;; 24130 esac 24131 done 24132 fi 24133 else 24134 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 24135 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 24136 fi 24137 fi 24138 fi 24139 done 24140 done 24141 if test "X$rpathdirs" != "X"; then 24142 if test -n "$acl_hardcode_libdir_separator"; then 24143 alldirs= 24144 for found_dir in $rpathdirs; do 24145 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 24146 done 24147 acl_save_libdir="$libdir" 24148 libdir="$alldirs" 24149 eval flag=\"$acl_hardcode_libdir_flag_spec\" 24150 libdir="$acl_save_libdir" 24151 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 24152 else 24153 for found_dir in $rpathdirs; do 24154 acl_save_libdir="$libdir" 24155 libdir="$found_dir" 24156 eval flag=\"$acl_hardcode_libdir_flag_spec\" 24157 libdir="$acl_save_libdir" 24158 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 24159 done 24160 fi 24161 fi 24162 if test "X$ltrpathdirs" != "X"; then 24163 for found_dir in $ltrpathdirs; do 24164 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 24165 done 24166 fi 24167 24168 24169 24170 24171 24172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 24173printf %s "checking for GNU gettext in libintl... " >&6; } 24174if eval test \${$gt_func_gnugettext_libintl+y} 24175then : 24176 printf %s "(cached) " >&6 24177else $as_nop 24178 gt_save_CPPFLAGS="$CPPFLAGS" 24179 CPPFLAGS="$CPPFLAGS $INCINTL" 24180 gt_save_LIBS="$LIBS" 24181 LIBS="$LIBS $LIBINTL" 24182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24183/* end confdefs.h. */ 24184 24185#include <libintl.h> 24186#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 24187extern int _nl_msg_cat_cntr; 24188extern 24189#ifdef __cplusplus 24190"C" 24191#endif 24192const char *_nl_expand_alias (const char *); 24193#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 24194#else 24195#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 24196#endif 24197$gt_revision_test_code 24198 24199int 24200main (void) 24201{ 24202 24203bindtextdomain ("", ""); 24204return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 24205 24206 ; 24207 return 0; 24208} 24209_ACEOF 24210if ac_fn_c_try_link "$LINENO" 24211then : 24212 eval "$gt_func_gnugettext_libintl=yes" 24213else $as_nop 24214 eval "$gt_func_gnugettext_libintl=no" 24215fi 24216rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24217 conftest$ac_exeext conftest.$ac_ext 24218 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 24219 LIBS="$LIBS $LIBICONV" 24220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24221/* end confdefs.h. */ 24222 24223#include <libintl.h> 24224#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 24225extern int _nl_msg_cat_cntr; 24226extern 24227#ifdef __cplusplus 24228"C" 24229#endif 24230const char *_nl_expand_alias (const char *); 24231#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 24232#else 24233#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 24234#endif 24235$gt_revision_test_code 24236 24237int 24238main (void) 24239{ 24240 24241bindtextdomain ("", ""); 24242return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 24243 24244 ; 24245 return 0; 24246} 24247_ACEOF 24248if ac_fn_c_try_link "$LINENO" 24249then : 24250 LIBINTL="$LIBINTL $LIBICONV" 24251 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 24252 eval "$gt_func_gnugettext_libintl=yes" 24253 24254fi 24255rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24256 conftest$ac_exeext conftest.$ac_ext 24257 fi 24258 CPPFLAGS="$gt_save_CPPFLAGS" 24259 LIBS="$gt_save_LIBS" 24260fi 24261eval ac_res=\$$gt_func_gnugettext_libintl 24262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 24263printf "%s\n" "$ac_res" >&6; } 24264 fi 24265 24266 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 24267 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 24268 && test "$PACKAGE" != gettext-runtime \ 24269 && test "$PACKAGE" != gettext-tools; }; then 24270 gt_use_preinstalled_gnugettext=yes 24271 else 24272 LIBINTL= 24273 LTLIBINTL= 24274 INCINTL= 24275 fi 24276 24277 24278 24279 if test -n "$INTL_MACOSX_LIBS"; then 24280 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 24281 || test "$nls_cv_use_gnu_gettext" = "yes"; then 24282 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 24283 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 24284 fi 24285 fi 24286 24287 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 24288 || test "$nls_cv_use_gnu_gettext" = "yes"; then 24289 24290printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h 24291 24292 else 24293 USE_NLS=no 24294 fi 24295 fi 24296 24297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 24298printf %s "checking whether to use NLS... " >&6; } 24299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 24300printf "%s\n" "$USE_NLS" >&6; } 24301 if test "$USE_NLS" = "yes"; then 24302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 24303printf %s "checking where the gettext function comes from... " >&6; } 24304 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 24305 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 24306 gt_source="external libintl" 24307 else 24308 gt_source="libc" 24309 fi 24310 else 24311 gt_source="included intl directory" 24312 fi 24313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 24314printf "%s\n" "$gt_source" >&6; } 24315 fi 24316 24317 if test "$USE_NLS" = "yes"; then 24318 24319 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 24320 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 24321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 24322printf %s "checking how to link with libintl... " >&6; } 24323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 24324printf "%s\n" "$LIBINTL" >&6; } 24325 24326 for element in $INCINTL; do 24327 haveit= 24328 for x in $CPPFLAGS; do 24329 24330 acl_save_prefix="$prefix" 24331 prefix="$acl_final_prefix" 24332 acl_save_exec_prefix="$exec_prefix" 24333 exec_prefix="$acl_final_exec_prefix" 24334 eval x=\"$x\" 24335 exec_prefix="$acl_save_exec_prefix" 24336 prefix="$acl_save_prefix" 24337 24338 if test "X$x" = "X$element"; then 24339 haveit=yes 24340 break 24341 fi 24342 done 24343 if test -z "$haveit"; then 24344 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 24345 fi 24346 done 24347 24348 fi 24349 24350 24351printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h 24352 24353 24354printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h 24355 24356 fi 24357 24358 POSUB=po 24359 fi 24360 24361 24362 24363 INTLLIBS="$LIBINTL" 24364 24365 24366 24367 24368 24369 24370 24371if test "x$USE_NLS" = "xyes" ; then 24372 24373printf "%s\n" "#define FREECIV_ENABLE_NLS 1" >>confdefs.h 24374 24375fi 24376 24377 24378 XGETTEXT_EXTRA_OPTIONS= 24379 24380 24381 24382 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword=Q_" 24383 24384 24385 24386 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword=PL_:1,2" 24387 24388 24389 24390 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --language=C" 24391 24392 24393 24394 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --escape" 24395 24396 24397 24398 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --add-comments="TRANS:"" 24399 24400 24401 24402 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --from-code=UTF-8" 24403 24404 24405 24406 24407 24408 24409 24410 24411 24412if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24413 if test -n "$ac_tool_prefix"; then 24414 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24415set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24417printf %s "checking for $ac_word... " >&6; } 24418if test ${ac_cv_path_PKG_CONFIG+y} 24419then : 24420 printf %s "(cached) " >&6 24421else $as_nop 24422 case $PKG_CONFIG in 24423 [\\/]* | ?:[\\/]*) 24424 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24425 ;; 24426 *) 24427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24428for as_dir in $PATH 24429do 24430 IFS=$as_save_IFS 24431 case $as_dir in #((( 24432 '') as_dir=./ ;; 24433 */) ;; 24434 *) as_dir=$as_dir/ ;; 24435 esac 24436 for ac_exec_ext in '' $ac_executable_extensions; do 24437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24438 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 24439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24440 break 2 24441 fi 24442done 24443 done 24444IFS=$as_save_IFS 24445 24446 ;; 24447esac 24448fi 24449PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24450if test -n "$PKG_CONFIG"; then 24451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24452printf "%s\n" "$PKG_CONFIG" >&6; } 24453else 24454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24455printf "%s\n" "no" >&6; } 24456fi 24457 24458 24459fi 24460if test -z "$ac_cv_path_PKG_CONFIG"; then 24461 ac_pt_PKG_CONFIG=$PKG_CONFIG 24462 # Extract the first word of "pkg-config", so it can be a program name with args. 24463set dummy pkg-config; ac_word=$2 24464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24465printf %s "checking for $ac_word... " >&6; } 24466if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 24467then : 24468 printf %s "(cached) " >&6 24469else $as_nop 24470 case $ac_pt_PKG_CONFIG in 24471 [\\/]* | ?:[\\/]*) 24472 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24473 ;; 24474 *) 24475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24476for as_dir in $PATH 24477do 24478 IFS=$as_save_IFS 24479 case $as_dir in #((( 24480 '') as_dir=./ ;; 24481 */) ;; 24482 *) as_dir=$as_dir/ ;; 24483 esac 24484 for ac_exec_ext in '' $ac_executable_extensions; do 24485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24486 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 24487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24488 break 2 24489 fi 24490done 24491 done 24492IFS=$as_save_IFS 24493 24494 ;; 24495esac 24496fi 24497ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24498if test -n "$ac_pt_PKG_CONFIG"; then 24499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24500printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 24501else 24502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24503printf "%s\n" "no" >&6; } 24504fi 24505 24506 if test "x$ac_pt_PKG_CONFIG" = x; then 24507 PKG_CONFIG="" 24508 else 24509 case $cross_compiling:$ac_tool_warned in 24510yes:) 24511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24512printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24513ac_tool_warned=yes ;; 24514esac 24515 PKG_CONFIG=$ac_pt_PKG_CONFIG 24516 fi 24517else 24518 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24519fi 24520 24521fi 24522if test -n "$PKG_CONFIG"; then 24523 _pkg_min_version=0.9.0 24524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24525printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24526 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24528printf "%s\n" "yes" >&6; } 24529 else 24530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24531printf "%s\n" "no" >&6; } 24532 PKG_CONFIG="" 24533 fi 24534fi 24535if test "x$PKG_CONFIG" = "x" ; then 24536 as_fn_error $? "pkg-config not found" "$LINENO" 5 24537fi 24538 24539pkg_failed=no 24540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5 24541printf %s "checking for CURL... " >&6; } 24542 24543if test -n "$CURL_CFLAGS"; then 24544 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS" 24545 elif test -n "$PKG_CONFIG"; then 24546 if test -n "$PKG_CONFIG" && \ 24547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.12.1\""; } >&5 24548 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.12.1") 2>&5 24549 ac_status=$? 24550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24551 test $ac_status = 0; }; then 24552 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl >= 7.12.1" 2>/dev/null` 24553 test "x$?" != "x0" && pkg_failed=yes 24554else 24555 pkg_failed=yes 24556fi 24557 else 24558 pkg_failed=untried 24559fi 24560if test -n "$CURL_LIBS"; then 24561 pkg_cv_CURL_LIBS="$CURL_LIBS" 24562 elif test -n "$PKG_CONFIG"; then 24563 if test -n "$PKG_CONFIG" && \ 24564 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl >= 7.12.1\""; } >&5 24565 ($PKG_CONFIG --exists --print-errors "libcurl >= 7.12.1") 2>&5 24566 ac_status=$? 24567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24568 test $ac_status = 0; }; then 24569 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.12.1" 2>/dev/null` 24570 test "x$?" != "x0" && pkg_failed=yes 24571else 24572 pkg_failed=yes 24573fi 24574 else 24575 pkg_failed=untried 24576fi 24577 24578 24579 24580if test $pkg_failed = yes; then 24581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24582printf "%s\n" "no" >&6; } 24583 24584if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24585 _pkg_short_errors_supported=yes 24586else 24587 _pkg_short_errors_supported=no 24588fi 24589 if test $_pkg_short_errors_supported = yes; then 24590 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl >= 7.12.1" 2>&1` 24591 else 24592 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl >= 7.12.1" 2>&1` 24593 fi 24594 # Put the nasty error message in config.log where it belongs 24595 echo "$CURL_PKG_ERRORS" >&5 24596 24597 as_fn_error $? "libcurl development files required" "$LINENO" 5 24598elif test $pkg_failed = untried; then 24599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24600printf "%s\n" "no" >&6; } 24601 as_fn_error $? "libcurl development files required" "$LINENO" 5 24602else 24603 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS 24604 CURL_LIBS=$pkg_cv_CURL_LIBS 24605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24606printf "%s\n" "yes" >&6; } 24607 24608fi 24609UTILITY_CFLAGS="${UTILITY_CFLAGS} ${CURL_CFLAGS}" 24610UTILITY_LIBS="${UTILITY_LIBS} ${CURL_LIBS}" 24611 24612# Check whether --enable-xml-registry was given. 24613if test ${enable_xml_registry+y} 24614then : 24615 enableval=$enable_xml_registry; case "${enableval}" in 24616 yes) XMLREGISTRY=yes ;; 24617 no) XMLREGISTRY=no ;; 24618 *) as_fn_error $? "bad value ${enableval} for --enable-xml-registry" "$LINENO" 5 ;; 24619esac 24620else $as_nop 24621 XMLREGISTRY=no 24622fi 24623 24624 24625if test "x$XMLREGISTRY" = "xyes" ; then 24626 24627pkg_failed=no 24628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5 24629printf %s "checking for LIBXML2... " >&6; } 24630 24631if test -n "$LIBXML2_CFLAGS"; then 24632 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" 24633 elif test -n "$PKG_CONFIG"; then 24634 if test -n "$PKG_CONFIG" && \ 24635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 24636 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 24637 ac_status=$? 24638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24639 test $ac_status = 0; }; then 24640 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` 24641 test "x$?" != "x0" && pkg_failed=yes 24642else 24643 pkg_failed=yes 24644fi 24645 else 24646 pkg_failed=untried 24647fi 24648if test -n "$LIBXML2_LIBS"; then 24649 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" 24650 elif test -n "$PKG_CONFIG"; then 24651 if test -n "$PKG_CONFIG" && \ 24652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 24653 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 24654 ac_status=$? 24655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24656 test $ac_status = 0; }; then 24657 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` 24658 test "x$?" != "x0" && pkg_failed=yes 24659else 24660 pkg_failed=yes 24661fi 24662 else 24663 pkg_failed=untried 24664fi 24665 24666 24667 24668if test $pkg_failed = yes; then 24669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24670printf "%s\n" "no" >&6; } 24671 24672if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24673 _pkg_short_errors_supported=yes 24674else 24675 _pkg_short_errors_supported=no 24676fi 24677 if test $_pkg_short_errors_supported = yes; then 24678 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` 24679 else 24680 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` 24681 fi 24682 # Put the nasty error message in config.log where it belongs 24683 echo "$LIBXML2_PKG_ERRORS" >&5 24684 24685 as_fn_error $? "libxml2 development files required" "$LINENO" 5 24686elif test $pkg_failed = untried; then 24687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24688printf "%s\n" "no" >&6; } 24689 as_fn_error $? "libxml2 development files required" "$LINENO" 5 24690else 24691 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS 24692 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS 24693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24694printf "%s\n" "yes" >&6; } 24695 24696fi 24697 UTILITY_CFLAGS="${UTILITY_CFLAGS} ${LIBXML2_CFLAGS}" 24698 UTILITY_LIBS="${UTILITY_LIBS} ${LIBXML2_LIBS}" 24699 24700printf "%s\n" "#define FREECIV_HAVE_XML_REGISTRY 1" >>confdefs.h 24701 24702fi 24703 24704EXTRA_DEBUG_CFLAGS="" 24705EXTRA_DEBUG_CXXFLAGS="" 24706EXTRA_DEBUG_LDFLAGS="" 24707 24708# Check whether --enable-debug was given. 24709if test ${enable_debug+y} 24710then : 24711 enableval=$enable_debug; case "${enableval}" in 24712 yes) enable_debug=yes ;; 24713 some) enable_debug=some ;; 24714 checks) enable_debug=checks ;; 24715 no) enable_debug=no ;; 24716 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; 24717esac 24718else $as_nop 24719 enable_debug=some 24720fi 24721 24722 24723 24724if test "x$enable_debug" = "xno"; then 24725 24726printf "%s\n" "#define NDEBUG 1" >>confdefs.h 24727 24728 24729printf "%s\n" "#define FREECIV_NDEBUG 1" >>confdefs.h 24730 24731 24732 24733ac_ext=c 24734ac_cpp='$CPP $CPPFLAGS' 24735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24737ac_compiler_gnu=$ac_cv_c_compiler_gnu 24738 24739 24740flags_save="`eval echo '$'CFLAGS`" 24741accepted_flags="" 24742existing_flags="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 24743 24744for flag in -O3 -fomit-frame-pointer 24745do 24746 CFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 24747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24748/* end confdefs.h. */ 24749int a; 24750_ACEOF 24751if ac_fn_c_try_compile "$LINENO" 24752then : 24753 24754old_value="`eval echo '$'accepted_flags`" 24755if test "x$old_value" = "x" ; then 24756 accepted_flags="$flag" 24757elif test "x$flag" != "x" ; then 24758 accepted_flags="$old_value $flag" 24759fi 24760 24761fi 24762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24763done 24764 24765old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 24766if test "x$old_value" = "x" ; then 24767 EXTRA_DEBUG_CFLAGS="$accepted_flags" 24768elif test "x$accepted_flags" != "x" ; then 24769 EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags" 24770fi 24771 24772 24773CFLAGS="$flags_save" 24774 24775ac_ext=c 24776ac_cpp='$CPP $CPPFLAGS' 24777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24779ac_compiler_gnu=$ac_cv_c_compiler_gnu 24780 24781 24782 24783 if test "x$cxx_works" = "xyes" ; then 24784 24785printf "%s\n" "#define QT_NO_DEBUG 1" >>confdefs.h 24786 24787 24788 24789ac_ext=cpp 24790ac_cpp='$CXXCPP $CPPFLAGS' 24791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24794 24795 24796flags_save="`eval echo '$'CXXFLAGS`" 24797accepted_flags="" 24798existing_flags="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`" 24799 24800for flag in -O3 -fomit-frame-pointer 24801do 24802 CXXFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 24803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24804/* end confdefs.h. */ 24805int a; 24806_ACEOF 24807if ac_fn_cxx_try_compile "$LINENO" 24808then : 24809 24810old_value="`eval echo '$'accepted_flags`" 24811if test "x$old_value" = "x" ; then 24812 accepted_flags="$flag" 24813elif test "x$flag" != "x" ; then 24814 accepted_flags="$old_value $flag" 24815fi 24816 24817fi 24818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24819done 24820 24821old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`" 24822if test "x$old_value" = "x" ; then 24823 EXTRA_DEBUG_CXXFLAGS="$accepted_flags" 24824elif test "x$accepted_flags" != "x" ; then 24825 EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags" 24826fi 24827 24828 24829CXXFLAGS="$flags_save" 24830 24831ac_ext=c 24832ac_cpp='$CPP $CPPFLAGS' 24833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24835ac_compiler_gnu=$ac_cv_c_compiler_gnu 24836 24837 24838 24839 fi 24840fi 24841 24842if test "x$enable_debug" = "xsome" -o "x$enable_debug" = "xyes" -o \ 24843 "x$enable_debug" = "xchecks"; then 24844 24845 24846ac_ext=c 24847ac_cpp='$CPP $CPPFLAGS' 24848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24850ac_compiler_gnu=$ac_cv_c_compiler_gnu 24851 24852 24853flags_save="`eval echo '$'CFLAGS`" 24854accepted_flags="" 24855existing_flags="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 24856 24857for flag in -Wall -Wpointer-arith -Wcast-align 24858do 24859 CFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 24860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24861/* end confdefs.h. */ 24862int a; 24863_ACEOF 24864if ac_fn_c_try_compile "$LINENO" 24865then : 24866 24867old_value="`eval echo '$'accepted_flags`" 24868if test "x$old_value" = "x" ; then 24869 accepted_flags="$flag" 24870elif test "x$flag" != "x" ; then 24871 accepted_flags="$old_value $flag" 24872fi 24873 24874fi 24875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24876done 24877 24878old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 24879if test "x$old_value" = "x" ; then 24880 EXTRA_DEBUG_CFLAGS="$accepted_flags" 24881elif test "x$accepted_flags" != "x" ; then 24882 EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags" 24883fi 24884 24885 24886CFLAGS="$flags_save" 24887 24888ac_ext=c 24889ac_cpp='$CPP $CPPFLAGS' 24890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24892ac_compiler_gnu=$ac_cv_c_compiler_gnu 24893 24894 24895 24896 if test "x$cxx_works" = "xyes" ; then 24897 24898printf "%s\n" "#define QT_NO_DEBUG 1" >>confdefs.h 24899 24900 24901 24902ac_ext=cpp 24903ac_cpp='$CXXCPP $CPPFLAGS' 24904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24907 24908 24909flags_save="`eval echo '$'CXXFLAGS`" 24910accepted_flags="" 24911existing_flags="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`" 24912 24913for flag in -Wall -Wpointer-arith -Wcast-align 24914do 24915 CXXFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 24916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24917/* end confdefs.h. */ 24918int a; 24919_ACEOF 24920if ac_fn_cxx_try_compile "$LINENO" 24921then : 24922 24923old_value="`eval echo '$'accepted_flags`" 24924if test "x$old_value" = "x" ; then 24925 accepted_flags="$flag" 24926elif test "x$flag" != "x" ; then 24927 accepted_flags="$old_value $flag" 24928fi 24929 24930fi 24931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24932done 24933 24934old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`" 24935if test "x$old_value" = "x" ; then 24936 EXTRA_DEBUG_CXXFLAGS="$accepted_flags" 24937elif test "x$accepted_flags" != "x" ; then 24938 EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags" 24939fi 24940 24941 24942CXXFLAGS="$flags_save" 24943 24944ac_ext=c 24945ac_cpp='$CPP $CPPFLAGS' 24946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24948ac_compiler_gnu=$ac_cv_c_compiler_gnu 24949 24950 24951 24952 fi 24953fi 24954 24955if test "x$enable_debug" = "xyes" -o "x$enable_debug" = "xchecks"; then 24956 24957printf "%s\n" "#define FREECIV_DEBUG 1" >>confdefs.h 24958 24959 24960printf "%s\n" "#define DEBUG 1" >>confdefs.h 24961 24962 24963printf "%s\n" "#define LUA_USE_APICHECK 1" >>confdefs.h 24964 24965 24966 24967 24968ac_ext=c 24969ac_cpp='$CPP $CPPFLAGS' 24970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24972ac_compiler_gnu=$ac_cv_c_compiler_gnu 24973 24974 24975flags_save="`eval echo '$'CFLAGS`" 24976accepted_flags="" 24977existing_flags="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 24978 24979for flag in -Werror -Wmissing-prototypes -Wmissing-declarations \ 24980 -Wformat -Wformat-security -Wnested-externs \ 24981 -Wshadow -Wold-style-declaration -Wno-array-bounds 24982do 24983 CFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 24984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24985/* end confdefs.h. */ 24986int a; 24987_ACEOF 24988if ac_fn_c_try_compile "$LINENO" 24989then : 24990 24991old_value="`eval echo '$'accepted_flags`" 24992if test "x$old_value" = "x" ; then 24993 accepted_flags="$flag" 24994elif test "x$flag" != "x" ; then 24995 accepted_flags="$old_value $flag" 24996fi 24997 24998fi 24999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25000done 25001 25002old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 25003if test "x$old_value" = "x" ; then 25004 EXTRA_DEBUG_CFLAGS="$accepted_flags" 25005elif test "x$accepted_flags" != "x" ; then 25006 EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags" 25007fi 25008 25009 25010CFLAGS="$flags_save" 25011 25012ac_ext=c 25013ac_cpp='$CPP $CPPFLAGS' 25014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25016ac_compiler_gnu=$ac_cv_c_compiler_gnu 25017 25018 25019 25020 if test "x$cxx_works" = "xyes" ; then 25021 25022 25023ac_ext=cpp 25024ac_cpp='$CXXCPP $CPPFLAGS' 25025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25028 25029 25030flags_save="`eval echo '$'CXXFLAGS`" 25031accepted_flags="" 25032existing_flags="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`" 25033 25034for flag in -Werror -Wmissing-prototypes \ 25035 -Wmissing-declarations \ 25036 -Wformat -Wformat-security -Wold-style-declaration 25037do 25038 CXXFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 25039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25040/* end confdefs.h. */ 25041int a; 25042_ACEOF 25043if ac_fn_cxx_try_compile "$LINENO" 25044then : 25045 25046old_value="`eval echo '$'accepted_flags`" 25047if test "x$old_value" = "x" ; then 25048 accepted_flags="$flag" 25049elif test "x$flag" != "x" ; then 25050 accepted_flags="$old_value $flag" 25051fi 25052 25053fi 25054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25055done 25056 25057old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`" 25058if test "x$old_value" = "x" ; then 25059 EXTRA_DEBUG_CXXFLAGS="$accepted_flags" 25060elif test "x$accepted_flags" != "x" ; then 25061 EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags" 25062fi 25063 25064 25065CXXFLAGS="$flags_save" 25066 25067ac_ext=c 25068ac_cpp='$CPP $CPPFLAGS' 25069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25071ac_compiler_gnu=$ac_cv_c_compiler_gnu 25072 25073 25074 25075 fi 25076 25077 25078flags_save=$LDFLAGS 25079accepted_flags="" 25080existing_flags="`eval echo '$'EXTRA_DEBUG_LDFLAGS`" 25081 25082for flag in -rdynamic -Wl,--no-add-needed 25083do 25084 LDFLAGS="$flags_save $existing_flags $accepted_flags $flag " 25085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25086/* end confdefs.h. */ 25087 25088int 25089main (void) 25090{ 25091int a; 25092 ; 25093 return 0; 25094} 25095_ACEOF 25096if ac_fn_c_try_link "$LINENO" 25097then : 25098 25099old_value="`eval echo '$'accepted_flags`" 25100if test "x$old_value" = "x" ; then 25101 accepted_flags="$flag" 25102elif test "x$flag" != "x" ; then 25103 accepted_flags="$old_value $flag" 25104fi 25105 25106fi 25107rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25108 conftest$ac_exeext conftest.$ac_ext 25109done 25110 25111old_value="`eval echo '$'EXTRA_DEBUG_LDFLAGS`" 25112if test "x$old_value" = "x" ; then 25113 EXTRA_DEBUG_LDFLAGS="$accepted_flags" 25114elif test "x$accepted_flags" != "x" ; then 25115 EXTRA_DEBUG_LDFLAGS="$old_value $accepted_flags" 25116fi 25117 25118 25119LDFLAGS="$flags_save" 25120 25121fi 25122 25123if test "x$enable_debug" = "xchecks"; then 25124 25125 25126ac_ext=c 25127ac_cpp='$CPP $CPPFLAGS' 25128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25130ac_compiler_gnu=$ac_cv_c_compiler_gnu 25131 25132 25133flags_save="`eval echo '$'CFLAGS`" 25134accepted_flags="" 25135existing_flags="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 25136 25137for flag in -Wstrict-prototypes -Wimplicit-fallthrough 25138do 25139 CFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 25140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25141/* end confdefs.h. */ 25142int a; 25143_ACEOF 25144if ac_fn_c_try_compile "$LINENO" 25145then : 25146 25147old_value="`eval echo '$'accepted_flags`" 25148if test "x$old_value" = "x" ; then 25149 accepted_flags="$flag" 25150elif test "x$flag" != "x" ; then 25151 accepted_flags="$old_value $flag" 25152fi 25153 25154fi 25155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25156done 25157 25158old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 25159if test "x$old_value" = "x" ; then 25160 EXTRA_DEBUG_CFLAGS="$accepted_flags" 25161elif test "x$accepted_flags" != "x" ; then 25162 EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags" 25163fi 25164 25165 25166CFLAGS="$flags_save" 25167 25168ac_ext=c 25169ac_cpp='$CPP $CPPFLAGS' 25170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25172ac_compiler_gnu=$ac_cv_c_compiler_gnu 25173 25174 25175 25176fi 25177 25178 25179 25180ac_ext=c 25181ac_cpp='$CPP $CPPFLAGS' 25182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25184ac_compiler_gnu=$ac_cv_c_compiler_gnu 25185 25186 25187flags_save="`eval echo '$'CFLAGS`" 25188accepted_flags="" 25189existing_flags="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 25190 25191for flag in -Wno-tautological-compare -Wno-nonnull-compare 25192do 25193 CFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 25194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25195/* end confdefs.h. */ 25196int a; 25197_ACEOF 25198if ac_fn_c_try_compile "$LINENO" 25199then : 25200 25201old_value="`eval echo '$'accepted_flags`" 25202if test "x$old_value" = "x" ; then 25203 accepted_flags="$flag" 25204elif test "x$flag" != "x" ; then 25205 accepted_flags="$old_value $flag" 25206fi 25207 25208fi 25209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25210done 25211 25212old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 25213if test "x$old_value" = "x" ; then 25214 EXTRA_DEBUG_CFLAGS="$accepted_flags" 25215elif test "x$accepted_flags" != "x" ; then 25216 EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags" 25217fi 25218 25219 25220CFLAGS="$flags_save" 25221 25222ac_ext=c 25223ac_cpp='$CPP $CPPFLAGS' 25224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25226ac_compiler_gnu=$ac_cv_c_compiler_gnu 25227 25228 25229 25230if test "x$cxx_works" = "xyes" ; then 25231 25232 25233ac_ext=cpp 25234ac_cpp='$CXXCPP $CPPFLAGS' 25235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25238 25239 25240flags_save="`eval echo '$'CXXFLAGS`" 25241accepted_flags="" 25242existing_flags="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`" 25243 25244for flag in -Wno-tautological-compare -Wno-nonnull-compare 25245do 25246 CXXFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 25247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25248/* end confdefs.h. */ 25249int a; 25250_ACEOF 25251if ac_fn_cxx_try_compile "$LINENO" 25252then : 25253 25254old_value="`eval echo '$'accepted_flags`" 25255if test "x$old_value" = "x" ; then 25256 accepted_flags="$flag" 25257elif test "x$flag" != "x" ; then 25258 accepted_flags="$old_value $flag" 25259fi 25260 25261fi 25262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25263done 25264 25265old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`" 25266if test "x$old_value" = "x" ; then 25267 EXTRA_DEBUG_CXXFLAGS="$accepted_flags" 25268elif test "x$accepted_flags" != "x" ; then 25269 EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags" 25270fi 25271 25272 25273CXXFLAGS="$flags_save" 25274 25275ac_ext=c 25276ac_cpp='$CPP $CPPFLAGS' 25277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25279ac_compiler_gnu=$ac_cv_c_compiler_gnu 25280 25281 25282 25283fi 25284 25285 25286 25287# Check whether --enable-gprof was given. 25288if test ${enable_gprof+y} 25289then : 25290 enableval=$enable_gprof; case "${enableval}" in 25291 yes) enable_gprof=yes ;; 25292 no) enable_gprof=no ;; 25293 *) as_fn_error $? "bad value ${enableval} for --enable-gprof" "$LINENO" 5 ;; 25294esac 25295else $as_nop 25296 enable_gprof=no 25297fi 25298 25299 25300if test "x$enable_gprof" = "xyes"; then 25301 25302 25303ac_ext=c 25304ac_cpp='$CPP $CPPFLAGS' 25305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25307ac_compiler_gnu=$ac_cv_c_compiler_gnu 25308 25309 25310flags_save="`eval echo '$'CFLAGS`" 25311accepted_flags="" 25312existing_flags="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 25313 25314for flag in -pg -no-pie 25315do 25316 CFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 25317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25318/* end confdefs.h. */ 25319int a; 25320_ACEOF 25321if ac_fn_c_try_compile "$LINENO" 25322then : 25323 25324old_value="`eval echo '$'accepted_flags`" 25325if test "x$old_value" = "x" ; then 25326 accepted_flags="$flag" 25327elif test "x$flag" != "x" ; then 25328 accepted_flags="$old_value $flag" 25329fi 25330 25331fi 25332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25333done 25334 25335old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`" 25336if test "x$old_value" = "x" ; then 25337 EXTRA_DEBUG_CFLAGS="$accepted_flags" 25338elif test "x$accepted_flags" != "x" ; then 25339 EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags" 25340fi 25341 25342 25343CFLAGS="$flags_save" 25344 25345ac_ext=c 25346ac_cpp='$CPP $CPPFLAGS' 25347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25349ac_compiler_gnu=$ac_cv_c_compiler_gnu 25350 25351 25352 25353 25354flags_save=$LDFLAGS 25355accepted_flags="" 25356existing_flags="`eval echo '$'EXTRA_DEBUG_LDFLAGS`" 25357 25358for flag in -pg 25359do 25360 LDFLAGS="$flags_save $existing_flags $accepted_flags $flag " 25361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25362/* end confdefs.h. */ 25363 25364int 25365main (void) 25366{ 25367int a; 25368 ; 25369 return 0; 25370} 25371_ACEOF 25372if ac_fn_c_try_link "$LINENO" 25373then : 25374 25375old_value="`eval echo '$'accepted_flags`" 25376if test "x$old_value" = "x" ; then 25377 accepted_flags="$flag" 25378elif test "x$flag" != "x" ; then 25379 accepted_flags="$old_value $flag" 25380fi 25381 25382fi 25383rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25384 conftest$ac_exeext conftest.$ac_ext 25385done 25386 25387old_value="`eval echo '$'EXTRA_DEBUG_LDFLAGS`" 25388if test "x$old_value" = "x" ; then 25389 EXTRA_DEBUG_LDFLAGS="$accepted_flags" 25390elif test "x$accepted_flags" != "x" ; then 25391 EXTRA_DEBUG_LDFLAGS="$old_value $accepted_flags" 25392fi 25393 25394 25395LDFLAGS="$flags_save" 25396 25397 if test "x$cxx_works" = "xyes" ; then 25398 25399 25400ac_ext=cpp 25401ac_cpp='$CXXCPP $CPPFLAGS' 25402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25405 25406 25407flags_save="`eval echo '$'CXXFLAGS`" 25408accepted_flags="" 25409existing_flags="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`" 25410 25411for flag in -pg 25412do 25413 CXXFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 25414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25415/* end confdefs.h. */ 25416int a; 25417_ACEOF 25418if ac_fn_cxx_try_compile "$LINENO" 25419then : 25420 25421old_value="`eval echo '$'accepted_flags`" 25422if test "x$old_value" = "x" ; then 25423 accepted_flags="$flag" 25424elif test "x$flag" != "x" ; then 25425 accepted_flags="$old_value $flag" 25426fi 25427 25428fi 25429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25430done 25431 25432old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`" 25433if test "x$old_value" = "x" ; then 25434 EXTRA_DEBUG_CXXFLAGS="$accepted_flags" 25435elif test "x$accepted_flags" != "x" ; then 25436 EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags" 25437fi 25438 25439 25440CXXFLAGS="$flags_save" 25441 25442ac_ext=c 25443ac_cpp='$CPP $CPPFLAGS' 25444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25446ac_compiler_gnu=$ac_cv_c_compiler_gnu 25447 25448 25449 25450 fi 25451fi 25452 25453 25454 25455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5 25456printf %s "checking for C99 variadic macros... " >&6; } 25457if test ${ac_cv_c99_variadic_macros+y} 25458then : 25459 printf %s "(cached) " >&6 25460else $as_nop 25461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25462/* end confdefs.h. */ 25463#include <stdio.h> 25464 #define MSG(...) fprintf(stderr, __VA_ARGS__) 25465 25466int 25467main (void) 25468{ 25469MSG("foo"); 25470 MSG("%s", "foo"); 25471 MSG("%s%d", "foo", 1); 25472 ; 25473 return 0; 25474} 25475_ACEOF 25476if ac_fn_c_try_compile "$LINENO" 25477then : 25478 ac_cv_c99_variadic_macros=yes 25479else $as_nop 25480 ac_cv_c99_variadic_macros=no 25481fi 25482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25483fi 25484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_variadic_macros" >&5 25485printf "%s\n" "$ac_cv_c99_variadic_macros" >&6; } 25486 if test "x${ac_cv_c99_variadic_macros}" != "xyes"; then 25487 as_fn_error $? "A compiler supporting C99 variadic macros is required" "$LINENO" 5 25488 fi 25489 25490 25491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99 variable arrays" >&5 25492printf %s "checking for C99 variable arrays... " >&6; } 25493if test ${ac_cv_c99_variable_arrays+y} 25494then : 25495 printf %s "(cached) " >&6 25496else $as_nop 25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25498/* end confdefs.h. */ 25499 25500#include <string.h> 25501#include <stdio.h> 25502 25503int 25504main (void) 25505{ 25506char *s1 = "foo", *s2 = "bar"; 25507 char s3[strlen(s1) + strlen(s2) + 1]; 25508 sprintf(s3, "%s%s", s1, s2); 25509 ; 25510 return 0; 25511} 25512_ACEOF 25513if ac_fn_c_try_compile "$LINENO" 25514then : 25515 ac_cv_c99_variable_arrays=yes 25516else $as_nop 25517 ac_cv_c99_variable_arrays=no 25518fi 25519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25520fi 25521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_variable_arrays" >&5 25522printf "%s\n" "$ac_cv_c99_variable_arrays" >&6; } 25523 if test "x${ac_cv_c99_variable_arrays}" != "xyes"; then 25524 as_fn_error $? "A compiler supporting C99 variable arrays is required" "$LINENO" 5 25525 fi 25526 25527 25528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99 initializers" >&5 25529printf %s "checking for C99 initializers... " >&6; } 25530if test ${ac_cv_c99_initializers+y} 25531then : 25532 printf %s "(cached) " >&6 25533else $as_nop 25534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25535/* end confdefs.h. */ 25536struct foo { 25537 int an_integer; 25538 char *a_string; 25539 int an_array[5]; 25540 union {int x, y;} a_union; 25541 }; 25542 25543int 25544main (void) 25545{ 25546struct foo bar = {.an_array = {0, [3] = 2, [2] = 1, [4] = 3}, 25547 .an_integer = 999, 25548 .a_string = "does it work?", 25549 .a_union = {.y = 243}}; 25550 ; 25551 return 0; 25552} 25553_ACEOF 25554if ac_fn_c_try_compile "$LINENO" 25555then : 25556 ac_cv_c99_initializers=yes 25557else $as_nop 25558 ac_cv_c99_initializers=no 25559fi 25560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25561fi 25562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_initializers" >&5 25563printf "%s\n" "$ac_cv_c99_initializers" >&6; } 25564 if test "${ac_cv_c99_initializers}" != "yes"; then 25565 as_fn_error $? "A compiler supporting C99 initializers is required" "$LINENO" 5 25566 fi 25567 25568 25569 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 25570if test "x$ac_cv_header_stdint_h" = xyes 25571then : 25572 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 25573 25574fi 25575 25576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99 stdint.h" >&5 25577printf %s "checking for C99 stdint.h... " >&6; } 25578if test ${ac_cv_c99_stdint_h+y} 25579then : 25580 printf %s "(cached) " >&6 25581else $as_nop 25582 ac_cv_c99_stdint_h=$ac_cv_header_stdint_h 25583fi 25584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_stdint_h" >&5 25585printf "%s\n" "$ac_cv_c99_stdint_h" >&6; } 25586 if test "${ac_cv_c99_stdint_h}" != "yes"; then 25587 as_fn_error $? "A compiler supporting C99's stdint.h is required" "$LINENO" 5 25588 fi 25589 25590 25591 25592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking can struct initializers be within braces" >&5 25593printf %s "checking can struct initializers be within braces... " >&6; } 25594if test ${ac_cv_c99_initializer_braces+y} 25595then : 25596 printf %s "(cached) " >&6 25597else $as_nop 25598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25599/* end confdefs.h. */ 25600 25601int 25602main (void) 25603{ 25604 25605struct outer 25606{ 25607 int v1; 25608 int v2; 25609 union 25610 { 25611 int v3; 25612 struct 25613 { 25614 int v4; 25615 int v5; 25616 } inner; 25617 }; 25618}; 25619 25620 struct outer init_me = { 1, 2, { .inner = { 3, 4 }}} 25621 25622 ; 25623 return 0; 25624} 25625_ACEOF 25626if ac_fn_c_try_compile "$LINENO" 25627then : 25628 ac_cv_c99_initializer_braces=yes 25629else $as_nop 25630 ac_cv_c99_initializer_braces=no 25631fi 25632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25633fi 25634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_initializer_braces" >&5 25635printf "%s\n" "$ac_cv_c99_initializer_braces" >&6; } 25636 if test "x${ac_cv_c99_initializer_braces}" = "xyes" ; then 25637 25638printf "%s\n" "#define INIT_BRACE_BEGIN {" >>confdefs.h 25639 25640 25641printf "%s\n" "#define INIT_BRACE_END }" >>confdefs.h 25642 25643 else 25644 25645printf "%s\n" "#define INIT_BRACE_BEGIN /**/" >>confdefs.h 25646 25647 25648printf "%s\n" "#define INIT_BRACE_END /**/" >>confdefs.h 25649 25650 fi 25651 25652 25653 25654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C11 static assert" >&5 25655printf %s "checking for C11 static assert... " >&6; } 25656if test ${ac_cv_c11_static_assert+y} 25657then : 25658 printf %s "(cached) " >&6 25659else $as_nop 25660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25661/* end confdefs.h. */ 25662#include <assert.h> 25663 25664int 25665main (void) 25666{ 25667 _Static_assert(1, "1 is not true"); 25668 ; 25669 return 0; 25670} 25671_ACEOF 25672if ac_fn_c_try_link "$LINENO" 25673then : 25674 ac_cv_c11_static_assert=yes 25675else $as_nop 25676 ac_cv_c11_static_assert=no 25677fi 25678rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25679 conftest$ac_exeext conftest.$ac_ext 25680fi 25681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c11_static_assert" >&5 25682printf "%s\n" "$ac_cv_c11_static_assert" >&6; } 25683 if test "x${ac_cv_c11_static_assert}" = "xyes" ; then 25684 25685printf "%s\n" "#define FREECIV_C11_STATIC_ASSERT 1" >>confdefs.h 25686 25687 fi 25688 25689 25690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C11 at_quick_exit()" >&5 25691printf %s "checking for C11 at_quick_exit()... " >&6; } 25692if test ${ac_cv_c11_at_quick_exit+y} 25693then : 25694 printf %s "(cached) " >&6 25695else $as_nop 25696 25697 fc_save_CPPFLAGS="$CPPFLAGS" 25698 CPPFLAGS="$CPPFLAGS -Werror $EXTRA_DEBUG_CFLAGS" 25699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25700/* end confdefs.h. */ 25701#include <stdlib.h> 25702static void func(void) 25703{} 25704 25705int 25706main (void) 25707{ 25708 at_quick_exit(func); 25709 ; 25710 return 0; 25711} 25712_ACEOF 25713if ac_fn_c_try_link "$LINENO" 25714then : 25715 ac_cv_c11_at_quick_exit=yes 25716else $as_nop 25717 ac_cv_c11_at_quick_exit=no 25718fi 25719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25720 conftest$ac_exeext conftest.$ac_ext 25721 CPPFLAGS="$fc_save_CPPFLAGS" 25722fi 25723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c11_at_quick_exit" >&5 25724printf "%s\n" "$ac_cv_c11_at_quick_exit" >&6; } 25725 if test "x${ac_cv_c11_at_quick_exit}" = "xyes" ; then 25726 25727printf "%s\n" "#define HAVE_AT_QUICK_EXIT 1" >>confdefs.h 25728 25729 fi 25730 25731 25732 25733 if test "x$cxx_works" = "xyes" ; then 25734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++11 static assert" >&5 25735printf %s "checking for C++11 static assert... " >&6; } 25736if test ${ac_cv_cxx11_static_assert+y} 25737then : 25738 printf %s "(cached) " >&6 25739else $as_nop 25740 ac_ext=cpp 25741ac_cpp='$CXXCPP $CPPFLAGS' 25742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25745 25746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25747/* end confdefs.h. */ 25748#include <assert.h> 25749 25750int 25751main (void) 25752{ 25753 static_assert(1, "1 is not true"); 25754 ; 25755 return 0; 25756} 25757_ACEOF 25758if ac_fn_cxx_try_link "$LINENO" 25759then : 25760 ac_cv_cxx11_static_assert=yes 25761else $as_nop 25762 ac_cv_cxx11_static_assert=no 25763fi 25764rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25765 conftest$ac_exeext conftest.$ac_ext 25766 ac_ext=c 25767ac_cpp='$CPP $CPPFLAGS' 25768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25770ac_compiler_gnu=$ac_cv_c_compiler_gnu 25771 25772fi 25773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx11_static_assert" >&5 25774printf "%s\n" "$ac_cv_cxx11_static_assert" >&6; } 25775 if test "x${ac_cv_cxx11_static_assert}" = "xyes" ; then 25776 25777printf "%s\n" "#define FREECIV_CXX11_STATIC_ASSERT 1" >>confdefs.h 25778 25779 fi 25780 fi 25781 25782 25783 if test "x$cxx_works" = "xyes" ; then 25784 ac_ext=cpp 25785ac_cpp='$CXXCPP $CPPFLAGS' 25786ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25787ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25788ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 25789 25790 ac_fn_cxx_check_header_compile "$LINENO" "cstddef" "ac_cv_header_cstddef" "$ac_includes_default" 25791if test "x$ac_cv_header_cstddef" = xyes 25792then : 25793 printf "%s\n" "#define HAVE_CSTDDEF 1" >>confdefs.h 25794 25795fi 25796 25797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++11 nullptr" >&5 25798printf %s "checking for C++11 nullptr... " >&6; } 25799if test ${ac_cv_cxx11_nullptr+y} 25800then : 25801 printf %s "(cached) " >&6 25802else $as_nop 25803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25804/* end confdefs.h. */ 25805#ifdef HAVE_CSTDDEF 25806#include <cstddef> 25807#endif 25808int 25809main (void) 25810{ 25811 int *var = nullptr; 25812 ; 25813 return 0; 25814} 25815_ACEOF 25816if ac_fn_cxx_try_link "$LINENO" 25817then : 25818 ac_cv_cxx11_nullptr=yes 25819else $as_nop 25820 ac_cv_cxx11_nullptr=no 25821fi 25822rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25823 conftest$ac_exeext conftest.$ac_ext 25824fi 25825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx11_nullptr" >&5 25826printf "%s\n" "$ac_cv_cxx11_nullptr" >&6; } 25827 if test "x${ac_cv_cxx11_nullptr}" != "xyes" ; then 25828 25829printf "%s\n" "#define nullptr 0" >>confdefs.h 25830 25831 fi 25832 ac_ext=c 25833ac_cpp='$CPP $CPPFLAGS' 25834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 25835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 25836ac_compiler_gnu=$ac_cv_c_compiler_gnu 25837 25838 fi 25839 25840 25841if test x`$UNAME -s` = xBeOS ; then 25842 25843printf "%s\n" "#define FREECIV_SOCKET_ZERO_NOT_STDIN 1" >>confdefs.h 25844 25845 CFLAGS="$CFLAGS -Wno-multichar" 25846 LDFLAGS="$LDFLAGS -x none" 25847 if test x$enable_debug = xyes ; then 25848 CFLAGS="$CFLAGS -gdwarf-2" 25849 LDFLAGS="$LDFLAGS -gdwarf-2" 25850 fi 25851 # We used to set ARFLAGS here, but under recent versions of automake this 25852 # broke compilation on other systems. Setting ARFLAGS shouldn't be 25853 # necessary with a working automake. 25854fi 25855 25856HOST_PATH_SEPARATOR=":" 25857HOST_DIR_SEPARATOR="/" 25858 25859case "$host_os" in 25860 25861 *mingw*) 25862 if test -n "$ac_tool_prefix"; then 25863 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 25864set dummy ${ac_tool_prefix}windres; ac_word=$2 25865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25866printf %s "checking for $ac_word... " >&6; } 25867if test ${ac_cv_prog_WINDRES+y} 25868then : 25869 printf %s "(cached) " >&6 25870else $as_nop 25871 if test -n "$WINDRES"; then 25872 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 25873else 25874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25875for as_dir in $PATH 25876do 25877 IFS=$as_save_IFS 25878 case $as_dir in #((( 25879 '') as_dir=./ ;; 25880 */) ;; 25881 *) as_dir=$as_dir/ ;; 25882 esac 25883 for ac_exec_ext in '' $ac_executable_extensions; do 25884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25885 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 25886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25887 break 2 25888 fi 25889done 25890 done 25891IFS=$as_save_IFS 25892 25893fi 25894fi 25895WINDRES=$ac_cv_prog_WINDRES 25896if test -n "$WINDRES"; then 25897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 25898printf "%s\n" "$WINDRES" >&6; } 25899else 25900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25901printf "%s\n" "no" >&6; } 25902fi 25903 25904 25905fi 25906if test -z "$ac_cv_prog_WINDRES"; then 25907 ac_ct_WINDRES=$WINDRES 25908 # Extract the first word of "windres", so it can be a program name with args. 25909set dummy windres; ac_word=$2 25910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25911printf %s "checking for $ac_word... " >&6; } 25912if test ${ac_cv_prog_ac_ct_WINDRES+y} 25913then : 25914 printf %s "(cached) " >&6 25915else $as_nop 25916 if test -n "$ac_ct_WINDRES"; then 25917 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 25918else 25919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25920for as_dir in $PATH 25921do 25922 IFS=$as_save_IFS 25923 case $as_dir in #((( 25924 '') as_dir=./ ;; 25925 */) ;; 25926 *) as_dir=$as_dir/ ;; 25927 esac 25928 for ac_exec_ext in '' $ac_executable_extensions; do 25929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25930 ac_cv_prog_ac_ct_WINDRES="windres" 25931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25932 break 2 25933 fi 25934done 25935 done 25936IFS=$as_save_IFS 25937 25938fi 25939fi 25940ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 25941if test -n "$ac_ct_WINDRES"; then 25942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 25943printf "%s\n" "$ac_ct_WINDRES" >&6; } 25944else 25945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25946printf "%s\n" "no" >&6; } 25947fi 25948 25949 if test "x$ac_ct_WINDRES" = x; then 25950 WINDRES="" 25951 else 25952 case $cross_compiling:$ac_tool_warned in 25953yes:) 25954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25955printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25956ac_tool_warned=yes ;; 25957esac 25958 WINDRES=$ac_ct_WINDRES 25959 fi 25960else 25961 WINDRES="$ac_cv_prog_WINDRES" 25962fi 25963 25964 if test -z $WINDRES; then 25965 as_fn_error $? "*** 'windres' missing. Install binutils, fix your \$PATH, or set \$WINDRES manually. ***" "$LINENO" 5 25966 fi 25967 25968 HOST_PATH_SEPARATOR=";" 25969 HOST_DIR_SEPARATOR="\\" 25970 25971 25972printf "%s\n" "#define FREECIV_SOCKET_ZERO_NOT_STDIN 1" >>confdefs.h 25973 25974 25975printf "%s\n" "#define ALWAYS_ROOT 1" >>confdefs.h 25976 25977 25978printf "%s\n" "#define FREECIV_MSWINDOWS 1" >>confdefs.h 25979 25980 25981 25982printf "%s\n" "#define WIN32_NATIVE 1" >>confdefs.h 25983 25984 25985printf "%s\n" "#define NONBLOCKING_SOCKETS 1" >>confdefs.h 25986 25987 ;; 25988 25989 *skyos*) 25990 25991printf "%s\n" "#define ALWAYS_ROOT 1" >>confdefs.h 25992 25993 ;; 25994 25995 *haiku*) 25996 HAIKU=yes 25997 25998printf "%s\n" "#define HAIKU 1" >>confdefs.h 25999 26000 26001printf "%s\n" "#define ALWAYS_ROOT 1" >>confdefs.h 26002 26003 ;; 26004 26005 *amigaos*) 26006 AMIGA=yes 26007 26008printf "%s\n" "#define ALWAYS_ROOT 1" >>confdefs.h 26009 26010 ;; 26011 26012esac 26013 26014 26015if test x"$MINGW" != "xyes"; then 26016 CPPFLAGS="$CPPFLAGS -DLOCALEDIR=\"\\\"$localedir\\\"\"" 26017else 26018 26019cat >>confdefs.h <<_ACEOF 26020#define LOCALEDIR ".\\\\share\\\\locale" 26021_ACEOF 26022 26023fi 26024 26025CPPFLAGS="$CPPFLAGS -DBINDIR=\"\\\"$bindir\\\"\"" 26026 26027COMMON_LIBS=-lm 26028 26029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 26030printf %s "checking for gzgets in -lz... " >&6; } 26031if test ${ac_cv_lib_z_gzgets+y} 26032then : 26033 printf %s "(cached) " >&6 26034else $as_nop 26035 ac_check_lib_save_LIBS=$LIBS 26036LIBS="-lz $LIBS" 26037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26038/* end confdefs.h. */ 26039 26040/* Override any GCC internal prototype to avoid an error. 26041 Use char because int might match the return type of a GCC 26042 builtin and then its argument prototype would still apply. */ 26043char gzgets (); 26044int 26045main (void) 26046{ 26047return gzgets (); 26048 ; 26049 return 0; 26050} 26051_ACEOF 26052if ac_fn_c_try_link "$LINENO" 26053then : 26054 ac_cv_lib_z_gzgets=yes 26055else $as_nop 26056 ac_cv_lib_z_gzgets=no 26057fi 26058rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26059 conftest$ac_exeext conftest.$ac_ext 26060LIBS=$ac_check_lib_save_LIBS 26061fi 26062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 26063printf "%s\n" "$ac_cv_lib_z_gzgets" >&6; } 26064if test "x$ac_cv_lib_z_gzgets" = xyes 26065then : 26066 26067printf "%s\n" "#define FREECIV_HAVE_LIBZ 1" >>confdefs.h 26068 26069UTILITY_LIBS="${UTILITY_LIBS} -lz" 26070COMMON_LIBS="$COMMON_LIBS -lz" 26071else $as_nop 26072 as_fn_error $? "Could not find zlib library." "$LINENO" 5 26073fi 26074 26075 26076ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 26077if test "x$ac_cv_header_zlib_h" = xyes 26078then : 26079 26080else $as_nop 26081 as_fn_error $? "zlib found but not zlib.h. 26082You may need to install a zlib devel package." "$LINENO" 5 26083fi 26084 26085 26086# Extract the first word of "gzip", so it can be a program name with args. 26087set dummy gzip; ac_word=$2 26088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26089printf %s "checking for $ac_word... " >&6; } 26090if test ${ac_cv_path_GZIP+y} 26091then : 26092 printf %s "(cached) " >&6 26093else $as_nop 26094 case $GZIP in 26095 [\\/]* | ?:[\\/]*) 26096 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 26097 ;; 26098 *) 26099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26100for as_dir in $PATH 26101do 26102 IFS=$as_save_IFS 26103 case $as_dir in #((( 26104 '') as_dir=./ ;; 26105 */) ;; 26106 *) as_dir=$as_dir/ ;; 26107 esac 26108 for ac_exec_ext in '' $ac_executable_extensions; do 26109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26110 ac_cv_path_GZIP="$as_dir$ac_word$ac_exec_ext" 26111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26112 break 2 26113 fi 26114done 26115 done 26116IFS=$as_save_IFS 26117 26118 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP=""no"" 26119 ;; 26120esac 26121fi 26122GZIP=$ac_cv_path_GZIP 26123if test -n "$GZIP"; then 26124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 26125printf "%s\n" "$GZIP" >&6; } 26126else 26127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26128printf "%s\n" "no" >&6; } 26129fi 26130 26131 26132if test "$GZIP" = "no"; then 26133 as_fn_error $? "You need the gzip program for compilation." "$LINENO" 5 26134fi 26135 26136 26137# Check whether --with-libbz2 was given. 26138if test ${with_libbz2+y} 26139then : 26140 withval=$with_libbz2; WITH_BZ2="${withval}" 26141else $as_nop 26142 WITH_BZ2="test" 26143fi 26144 26145 26146if test "x$WITH_BZ2" != xno ; then 26147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzReadOpen in -lbz2" >&5 26148printf %s "checking for BZ2_bzReadOpen in -lbz2... " >&6; } 26149if test ${ac_cv_lib_bz2_BZ2_bzReadOpen+y} 26150then : 26151 printf %s "(cached) " >&6 26152else $as_nop 26153 ac_check_lib_save_LIBS=$LIBS 26154LIBS="-lbz2 $LIBS" 26155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26156/* end confdefs.h. */ 26157 26158/* Override any GCC internal prototype to avoid an error. 26159 Use char because int might match the return type of a GCC 26160 builtin and then its argument prototype would still apply. */ 26161char BZ2_bzReadOpen (); 26162int 26163main (void) 26164{ 26165return BZ2_bzReadOpen (); 26166 ; 26167 return 0; 26168} 26169_ACEOF 26170if ac_fn_c_try_link "$LINENO" 26171then : 26172 ac_cv_lib_bz2_BZ2_bzReadOpen=yes 26173else $as_nop 26174 ac_cv_lib_bz2_BZ2_bzReadOpen=no 26175fi 26176rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26177 conftest$ac_exeext conftest.$ac_ext 26178LIBS=$ac_check_lib_save_LIBS 26179fi 26180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzReadOpen" >&5 26181printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzReadOpen" >&6; } 26182if test "x$ac_cv_lib_bz2_BZ2_bzReadOpen" = xyes 26183then : 26184 for ac_header in bzlib.h 26185do : 26186 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 26187if test "x$ac_cv_header_bzlib_h" = xyes 26188then : 26189 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h 26190 26191printf "%s\n" "#define FREECIV_HAVE_LIBBZ2 1" >>confdefs.h 26192 26193 UTILITY_LIBS="${UTILITY_LIBS} -lbz2" 26194 libbz2_available=true 26195fi 26196 26197done 26198fi 26199 26200 if test "x$libbz2_available" != "xtrue" ; then 26201 if test "x$WITH_BZ2" = "xyes" ; then 26202 as_fn_error $? "Could not find libbz2 devel files" "$LINENO" 5 26203 fi 26204 feature_bz2=missing 26205 fi 26206fi 26207 26208 26209# Check whether --with-liblzma was given. 26210if test ${with_liblzma+y} 26211then : 26212 withval=$with_liblzma; WITH_XZ="${withval}" 26213else $as_nop 26214 WITH_XZ="test" 26215fi 26216 26217 26218if test "x$WITH_XZ" != xno ; then 26219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 26220printf %s "checking for lzma_code in -llzma... " >&6; } 26221if test ${ac_cv_lib_lzma_lzma_code+y} 26222then : 26223 printf %s "(cached) " >&6 26224else $as_nop 26225 ac_check_lib_save_LIBS=$LIBS 26226LIBS="-llzma $LIBS" 26227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26228/* end confdefs.h. */ 26229 26230/* Override any GCC internal prototype to avoid an error. 26231 Use char because int might match the return type of a GCC 26232 builtin and then its argument prototype would still apply. */ 26233char lzma_code (); 26234int 26235main (void) 26236{ 26237return lzma_code (); 26238 ; 26239 return 0; 26240} 26241_ACEOF 26242if ac_fn_c_try_link "$LINENO" 26243then : 26244 ac_cv_lib_lzma_lzma_code=yes 26245else $as_nop 26246 ac_cv_lib_lzma_lzma_code=no 26247fi 26248rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26249 conftest$ac_exeext conftest.$ac_ext 26250LIBS=$ac_check_lib_save_LIBS 26251fi 26252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 26253printf "%s\n" "$ac_cv_lib_lzma_lzma_code" >&6; } 26254if test "x$ac_cv_lib_lzma_lzma_code" = xyes 26255then : 26256 for ac_header in lzma.h 26257do : 26258 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 26259if test "x$ac_cv_header_lzma_h" = xyes 26260then : 26261 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h 26262 26263printf "%s\n" "#define FREECIV_HAVE_LIBLZMA 1" >>confdefs.h 26264 26265 UTILITY_LIBS="${UTILITY_LIBS} -llzma" 26266 libxz_available=true 26267fi 26268 26269done 26270fi 26271 26272 if test "x$libxz_available" != "xtrue" ; then 26273 if test "x$WITH_XZ" = "xyes" ; then 26274 as_fn_error $? "Could not find liblzma devel files" "$LINENO" 5 26275 fi 26276 feature_xz=missing 26277 fi 26278fi 26279 26280UTILITY_LIBS="${UTILITY_LIBS} ${LTLIBINTL}" 26281 26282 26283 26284 26285 26286# Check whether --enable-crosser was given. 26287if test ${enable_crosser+y} 26288then : 26289 enableval=$enable_crosser; case "${enableval}" in 26290 yes) crosser=yes 26291 26292printf "%s\n" "#define CROSSER 1" >>confdefs.h 26293 ;; 26294 no) crosser=no ;; 26295 *) as_fn_error $? "bad value ${enableval} for --enable-crosser" "$LINENO" 5 ;; 26296esac 26297else $as_nop 26298 crosser=no 26299fi 26300 26301if test x$crosser = xyes && test x$MINGW != xyes ; then 26302 as_fn_error $? "--enable-crosser is Windows build specific option" "$LINENO" 5 26303fi 26304 26305 26306# Check whether --with-cacert-path was given. 26307if test ${with_cacert_path+y} 26308then : 26309 withval=$with_cacert_path; case "${withval}" in 26310 yes) as_fn_error $? "Path must be given for --with-cacert-path" "$LINENO" 5 ;; 26311 *) custom_cacert_path="${withval}" ;; 26312esac 26313fi 26314 26315 26316if test "x$custom_cacert_path" != "x" ; then 26317 26318printf "%s\n" "#define CUSTOM_CACERT_PATH \"$custom_cacert_path\"" >>confdefs.h 26319 26320fi 26321 26322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for threads implementation" >&5 26323printf %s "checking for threads implementation... " >&6; } 26324thread_impl=none 26325 26326CFLAGS_SAVE="${CFLAGS}" 26327LIBS_SAVE="${LIBS}" 26328 26329if test x$crosser != xyes ; then 26330 26331 26332ac_ext=c 26333ac_cpp='$CPP $CPPFLAGS' 26334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26336ac_compiler_gnu=$ac_cv_c_compiler_gnu 26337 26338 26339flags_save="`eval echo '$'CFLAGS`" 26340accepted_flags="" 26341existing_flags="`eval echo '$'CFLAGS`" 26342 26343for flag in -pthread 26344do 26345 CFLAGS="-Werror $flags_save $existing_flags $accepted_flags $flag " 26346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26347/* end confdefs.h. */ 26348int a; 26349_ACEOF 26350if ac_fn_c_try_compile "$LINENO" 26351then : 26352 26353old_value="`eval echo '$'accepted_flags`" 26354if test "x$old_value" = "x" ; then 26355 accepted_flags="$flag" 26356elif test "x$flag" != "x" ; then 26357 accepted_flags="$old_value $flag" 26358fi 26359 26360fi 26361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26362done 26363 26364old_value="`eval echo '$'CFLAGS`" 26365if test "x$old_value" = "x" ; then 26366 CFLAGS="$accepted_flags" 26367elif test "x$accepted_flags" != "x" ; then 26368 CFLAGS="$old_value $accepted_flags" 26369fi 26370 26371 26372CFLAGS="$flags_save" 26373 26374ac_ext=c 26375ac_cpp='$CPP $CPPFLAGS' 26376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26378ac_compiler_gnu=$ac_cv_c_compiler_gnu 26379 26380 26381 26382 26383flags_save=$LDFLAGS 26384accepted_flags="" 26385existing_flags="`eval echo '$'LIBS`" 26386 26387for flag in -pthread 26388do 26389 LDFLAGS="$flags_save $existing_flags $accepted_flags $flag " 26390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26391/* end confdefs.h. */ 26392 26393int 26394main (void) 26395{ 26396int a; 26397 ; 26398 return 0; 26399} 26400_ACEOF 26401if ac_fn_c_try_link "$LINENO" 26402then : 26403 26404old_value="`eval echo '$'accepted_flags`" 26405if test "x$old_value" = "x" ; then 26406 accepted_flags="$flag" 26407elif test "x$flag" != "x" ; then 26408 accepted_flags="$old_value $flag" 26409fi 26410 26411fi 26412rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26413 conftest$ac_exeext conftest.$ac_ext 26414done 26415 26416old_value="`eval echo '$'LIBS`" 26417if test "x$old_value" = "x" ; then 26418 LIBS="$accepted_flags" 26419elif test "x$accepted_flags" != "x" ; then 26420 LIBS="$old_value $accepted_flags" 26421fi 26422 26423 26424LDFLAGS="$flags_save" 26425 26426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26427/* end confdefs.h. */ 26428#include <pthread.h> 26429int 26430main (void) 26431{ 26432return pthread_create(NULL, NULL, NULL, NULL); 26433 ; 26434 return 0; 26435} 26436_ACEOF 26437if ac_fn_c_try_link "$LINENO" 26438then : 26439 26440printf "%s\n" "#define FREECIV_HAVE_PTHREAD 1" >>confdefs.h 26441 26442 thread_impl=pthreads 26443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: pthreads" >&5 26444printf "%s\n" "pthreads" >&6; } 26445 26446printf "%s\n" "#define FREECIV_HAVE_THREAD_COND 1" >>confdefs.h 26447 26448fi 26449rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26450 conftest$ac_exeext conftest.$ac_ext 26451 thread_cond=true 26452fi 26453 26454if test "x$thread_impl" = "xnone" ; then 26455 CFLAGS="$CFLAGS_SAVE" 26456 LDFLAGS="$LDFLAGS_SAVE" 26457 26458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26459/* end confdefs.h. */ 26460#include <windows.h> 26461int 26462main (void) 26463{ 26464CreateThread(NULL, 0, NULL, NULL, 0, NULL); 26465 ; 26466 return 0; 26467} 26468_ACEOF 26469if ac_fn_c_try_link "$LINENO" 26470then : 26471 26472printf "%s\n" "#define FREECIV_HAVE_WINTHREADS 1" >>confdefs.h 26473 26474 thread_impl=windows 26475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: windows" >&5 26476printf "%s\n" "windows" >&6; } 26477fi 26478rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26479 conftest$ac_exeext conftest.$ac_ext 26480fi 26481 26482if test "x$thread_impl" = "xnone" ; then 26483 as_fn_error $? "No usable thread implementation available" "$LINENO" 5 26484fi 26485 26486if test "x$thread_cond" != "xtrue" ; then 26487 feature_thr_cond=missing 26488fi 26489 26490if test "x$MINGW" = "xyes" ; then 26491 MWINDOWS_FLAG="-mwindows" 26492else 26493 MWINDOWS_FLAG="" 26494fi 26495 26496if test "x$client" != "xno"; then 26497 26498 26499 # Check whether --enable-sdl-mixer was given. 26500if test ${enable_sdl_mixer+y} 26501then : 26502 enableval=$enable_sdl_mixer; case "${enableval}" in 26503 sdl|sdl1.2) USE_SOUND_SDL=sdl ;; 26504 no) USE_SOUND_SDL=no ;; 26505 yes|sdl2) USE_SOUND_SDL=sdl2 ;; 26506 *) as_fn_error $? "bad value ${enableval} for --enable-sdl-mixer" "$LINENO" 5 ;; 26507 esac 26508else $as_nop 26509 USE_SOUND_SDL=maybe 26510fi 26511 26512 26513if test "x$USE_SOUND_SDL" != "xno" && test "x$USE_SOUND_SDL" != "xsdl" ; then 26514 SDL2_VERSION=2.0.0 26515 26516# Check whether --with-sdl2-prefix was given. 26517if test ${with_sdl2_prefix+y} 26518then : 26519 withval=$with_sdl2_prefix; sdl2_prefix="$withval" 26520else $as_nop 26521 sdl2_prefix="" 26522fi 26523 26524 26525 26526# Check whether --with-sdl2-exec-prefix was given. 26527if test ${with_sdl2_exec_prefix+y} 26528then : 26529 withval=$with_sdl2_exec_prefix; sdl2_exec_prefix="$withval" 26530else $as_nop 26531 sdl2_exec_prefix="" 26532fi 26533 26534 26535# Check whether --enable-sdl2test was given. 26536if test ${enable_sdl2test+y} 26537then : 26538 enableval=$enable_sdl2test; 26539else $as_nop 26540 enable_sdl2test=yes 26541fi 26542 26543 26544# Check whether --enable-sdl2framework was given. 26545if test ${enable_sdl2framework+y} 26546then : 26547 enableval=$enable_sdl2framework; 26548else $as_nop 26549 search_sdl2_framework=yes 26550fi 26551 26552 26553 26554 26555 min_sdl2_version=$SDL2_VERSION 26556 26557 if test "x$sdl2_prefix$sdl2_exec_prefix" = x ; then 26558 26559pkg_failed=no 26560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL2" >&5 26561printf %s "checking for SDL2... " >&6; } 26562 26563if test -n "$SDL2_CFLAGS"; then 26564 pkg_cv_SDL2_CFLAGS="$SDL2_CFLAGS" 26565 elif test -n "$PKG_CONFIG"; then 26566 if test -n "$PKG_CONFIG" && \ 26567 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl2_version\""; } >&5 26568 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl2_version") 2>&5 26569 ac_status=$? 26570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26571 test $ac_status = 0; }; then 26572 pkg_cv_SDL2_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl2_version" 2>/dev/null` 26573 test "x$?" != "x0" && pkg_failed=yes 26574else 26575 pkg_failed=yes 26576fi 26577 else 26578 pkg_failed=untried 26579fi 26580if test -n "$SDL2_LIBS"; then 26581 pkg_cv_SDL2_LIBS="$SDL2_LIBS" 26582 elif test -n "$PKG_CONFIG"; then 26583 if test -n "$PKG_CONFIG" && \ 26584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl2_version\""; } >&5 26585 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl2_version") 2>&5 26586 ac_status=$? 26587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26588 test $ac_status = 0; }; then 26589 pkg_cv_SDL2_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl2_version" 2>/dev/null` 26590 test "x$?" != "x0" && pkg_failed=yes 26591else 26592 pkg_failed=yes 26593fi 26594 else 26595 pkg_failed=untried 26596fi 26597 26598 26599 26600if test $pkg_failed = yes; then 26601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26602printf "%s\n" "no" >&6; } 26603 26604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26605 _pkg_short_errors_supported=yes 26606else 26607 _pkg_short_errors_supported=no 26608fi 26609 if test $_pkg_short_errors_supported = yes; then 26610 SDL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $min_sdl2_version" 2>&1` 26611 else 26612 SDL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $min_sdl2_version" 2>&1` 26613 fi 26614 # Put the nasty error message in config.log where it belongs 26615 echo "$SDL2_PKG_ERRORS" >&5 26616 26617 sdl2_pc=no 26618elif test $pkg_failed = untried; then 26619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26620printf "%s\n" "no" >&6; } 26621 sdl2_pc=no 26622else 26623 SDL2_CFLAGS=$pkg_cv_SDL2_CFLAGS 26624 SDL2_LIBS=$pkg_cv_SDL2_LIBS 26625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26626printf "%s\n" "yes" >&6; } 26627 sdl2_pc=yes 26628fi 26629 else 26630 sdl2_pc=no 26631 if test x$sdl2_exec_prefix != x ; then 26632 sdl2_config_args="$sdl2_config_args --exec-prefix=$sdl2_exec_prefix" 26633 if test x${SDL2_CONFIG+set} != xset ; then 26634 SDL2_CONFIG=$sdl2_exec_prefix/bin/sdl2-config 26635 fi 26636 fi 26637 if test x$sdl2_prefix != x ; then 26638 sdl2_config_args="$sdl2_config_args --prefix=$sdl2_prefix" 26639 if test x${SDL2_CONFIG+set} != xset ; then 26640 SDL2_CONFIG=$sdl2_prefix/bin/sdl2-config 26641 fi 26642 fi 26643 fi 26644 26645 if test "x$sdl2_pc" = xyes ; then 26646 no_sdl2="" 26647 SDL2_CONFIG="pkg-config sdl2" 26648 else 26649 as_save_PATH="$PATH" 26650 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then 26651 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 26652 fi 26653 # Extract the first word of "sdl2-config", so it can be a program name with args. 26654set dummy sdl2-config; ac_word=$2 26655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26656printf %s "checking for $ac_word... " >&6; } 26657if test ${ac_cv_path_SDL2_CONFIG+y} 26658then : 26659 printf %s "(cached) " >&6 26660else $as_nop 26661 case $SDL2_CONFIG in 26662 [\\/]* | ?:[\\/]*) 26663 ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path. 26664 ;; 26665 *) 26666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26667for as_dir in $PATH 26668do 26669 IFS=$as_save_IFS 26670 case $as_dir in #((( 26671 '') as_dir=./ ;; 26672 */) ;; 26673 *) as_dir=$as_dir/ ;; 26674 esac 26675 for ac_exec_ext in '' $ac_executable_extensions; do 26676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26677 ac_cv_path_SDL2_CONFIG="$as_dir$ac_word$ac_exec_ext" 26678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26679 break 2 26680 fi 26681done 26682 done 26683IFS=$as_save_IFS 26684 26685 test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no" 26686 ;; 26687esac 26688fi 26689SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG 26690if test -n "$SDL2_CONFIG"; then 26691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5 26692printf "%s\n" "$SDL2_CONFIG" >&6; } 26693else 26694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26695printf "%s\n" "no" >&6; } 26696fi 26697 26698 26699 PATH="$as_save_PATH" 26700 no_sdl2="" 26701 26702 if test "$SDL2_CONFIG" = "no" -a "x$search_sdl2_framework" = "xyes"; then 26703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL2.framework" >&5 26704printf %s "checking for SDL2.framework... " >&6; } 26705 if test "x$SDL2_FRAMEWORK" != x; then 26706 sdl2_framework=$SDL2_FRAMEWORK 26707 else 26708 for d in / ~/ /System/; do 26709 if test -d "$dLibrary/Frameworks/SDL2.framework"; then 26710 sdl2_framework="$dLibrary/Frameworks/SDL2.framework" 26711 fi 26712 done 26713 fi 26714 26715 if test x"$sdl2_framework" != x && test -d "$sdl2_framework"; then 26716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdl2_framework" >&5 26717printf "%s\n" "$sdl2_framework" >&6; } 26718 sdl2_framework_dir=`dirname $sdl2_framework` 26719 SDL_CFLAGS="-F$sdl2_framework_dir -Wl,-framework,SDL2 -I$sdl2_framework/include" 26720 SDL_LIBS="-F$sdl2_framework_dir -Wl,-framework,SDL2" 26721 else 26722 no_sdl2=yes 26723 fi 26724 fi 26725 26726 if test "$SDL2_CONFIG" != "no"; then 26727 if test "x$sdl2_pc" = "xno"; then 26728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL2 - version >= $min_sdl2_version" >&5 26729printf %s "checking for SDL2 - version >= $min_sdl2_version... " >&6; } 26730 SDL_CFLAGS=`$SDL2_CONFIG $sdl2_config_args --cflags` 26731 SDL_LIBS=`$SDL2_CONFIG $sdl2_config_args --libs` 26732 fi 26733 26734 sdl2_major_version=`$SDL2_CONFIG $sdl2_config_args --version | \ 26735 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 26736 sdl2_minor_version=`$SDL2_CONFIG $sdl2_config_args --version | \ 26737 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 26738 sdl2_micro_version=`$SDL2_CONFIG $sdl2_config_args --version | \ 26739 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 26740 if test "x$enable_sdl2test" = "xyes" ; then 26741 ac_save_CFLAGS="$CFLAGS" 26742 ac_save_CXXFLAGS="$CXXFLAGS" 26743 ac_save_LIBS="$LIBS" 26744 CFLAGS="$CFLAGS $SDL2_CFLAGS" 26745 CXXFLAGS="$CXXFLAGS $SDL2_CFLAGS" 26746 LIBS="$LIBS $SDL2_LIBS" 26747 rm -f conf.sdl2test 26748 if test "$cross_compiling" = yes 26749then : 26750 echo $ac_n "cross compiling; assumed OK... $ac_c" 26751else $as_nop 26752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26753/* end confdefs.h. */ 26754 26755#include <stdio.h> 26756#include <stdlib.h> 26757#include "SDL.h" 26758 26759int main (int argc, char *argv[]) 26760{ 26761 int major, minor, micro; 26762 FILE *fp = fopen("conf.sdltest", "w"); 26763 26764 if (fp) fclose(fp); 26765 26766 if (sscanf("$min_sdl_version", "%d.%d.%d", &major, &minor, µ) != 3) { 26767 printf("%s, bad version string\n", "$min_sdl2_version"); 26768 exit(1); 26769 } 26770 26771 if (($sdl2_major_version > major) || 26772 (($sdl2_major_version == major) && ($sdl2_minor_version > minor)) || 26773 (($sdl2_major_version == major) && ($sdl2_minor_version == minor) && ($sdl2_micro_version >= micro))) 26774 { 26775 return 0; 26776 } 26777 else 26778 { 26779 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl2_major_version, $sdl2_minor_version, $sdl2_micro_version); 26780 printf("*** of SDL2 required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro); 26781 printf("*** best to upgrade to the required version.\n"); 26782 printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n"); 26783 printf("*** to point to the correct copy of sdl2-config, and remove the file\n"); 26784 printf("*** config.cache before re-running configure\n"); 26785 return 1; 26786 } 26787} 26788 26789 26790_ACEOF 26791if ac_fn_c_try_run "$LINENO" 26792then : 26793 26794else $as_nop 26795 no_sdl2=yes 26796fi 26797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26798 conftest.$ac_objext conftest.beam conftest.$ac_ext 26799fi 26800 26801 CFLAGS="$ac_save_CFLAGS" 26802 CXXFLAGS="$ac_save_CXXFLAGS" 26803 LIBS="$ac_save_LIBS" 26804 26805 fi 26806 if test "x$sdl2_pc" = "xno"; then 26807 if test "x$no_sdl2" = "xyes"; then 26808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26809printf "%s\n" "no" >&6; } 26810 else 26811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26812printf "%s\n" "yes" >&6; } 26813 fi 26814 fi 26815 fi 26816 fi 26817 if test "x$no_sdl2" = x ; then 26818 SDL2=yes 26819 else 26820 if test "$SDL2_CONFIG" = "no" ; then 26821 echo "*** The sdl2-config script installed by SDL2 could not be found" 26822 echo "*** If SDL2 was installed in PREFIX, make sure PREFIX/bin is in" 26823 echo "*** your path, or set the SDL2_CONFIG environment variable to the" 26824 echo "*** full path to sdl2-config." 26825 else 26826 if test -f conf.sdl2test ; then 26827 : 26828 else 26829 echo "*** Could not run SDL2 test program, checking why..." 26830 CFLAGS="$CFLAGS $SDL2_CFLAGS" 26831 CXXFLAGS="$CXXFLAGS $SDL2_CFLAGS" 26832 LIBS="$LIBS $SDL2_LIBS" 26833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26834/* end confdefs.h. */ 26835 26836#include <stdio.h> 26837#include "SDL.h" 26838 26839int main(int argc, char *argv[]) 26840{ return 0; } 26841#undef main 26842#define main K_and_R_C_main 26843 26844int 26845main (void) 26846{ 26847 return 0; 26848 ; 26849 return 0; 26850} 26851_ACEOF 26852if ac_fn_c_try_link "$LINENO" 26853then : 26854 echo "*** The test program compiled, but did not run. This usually means" 26855 echo "*** that the run-time linker is not finding SDL2 or finding the wrong" 26856 echo "*** version of SDL2. If it is not finding SDL2, you'll need to set your" 26857 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 26858 echo "*** to the installed location Also, make sure you have run ldconfig if that" 26859 echo "*** is required on your system" 26860 echo "***" 26861 echo "*** If you have an old version installed, it is best to remove it, although" 26862 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 26863else $as_nop 26864 echo "*** The test program failed to compile or link. See the file config.log for the" 26865 echo "*** exact error that occurred. This usually means SDL2 was incorrectly installed" 26866 echo "*** or that you have moved SDL2 since it was installed. In the latter case, you" 26867 echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG" 26868fi 26869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26870 conftest$ac_exeext conftest.$ac_ext 26871 CFLAGS="$ac_save_CFLAGS" 26872 CXXFLAGS="$ac_save_CXXFLAGS" 26873 LIBS="$ac_save_LIBS" 26874 fi 26875 fi 26876 SDL2_CFLAGS="" 26877 SDL2_LIBS="" 26878 SDL2=no 26879 fi 26880 26881 26882 rm -f conf.sdl2test 26883 26884 if test "x$SDL2" != "xno"; then 26885 26886pkg_failed=no 26887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL2MIXER" >&5 26888printf %s "checking for SDL2MIXER... " >&6; } 26889 26890if test -n "$SDL2MIXER_CFLAGS"; then 26891 pkg_cv_SDL2MIXER_CFLAGS="$SDL2MIXER_CFLAGS" 26892 elif test -n "$PKG_CONFIG"; then 26893 if test -n "$PKG_CONFIG" && \ 26894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_mixer\""; } >&5 26895 ($PKG_CONFIG --exists --print-errors "SDL2_mixer") 2>&5 26896 ac_status=$? 26897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26898 test $ac_status = 0; }; then 26899 pkg_cv_SDL2MIXER_CFLAGS=`$PKG_CONFIG --cflags "SDL2_mixer" 2>/dev/null` 26900 test "x$?" != "x0" && pkg_failed=yes 26901else 26902 pkg_failed=yes 26903fi 26904 else 26905 pkg_failed=untried 26906fi 26907if test -n "$SDL2MIXER_LIBS"; then 26908 pkg_cv_SDL2MIXER_LIBS="$SDL2MIXER_LIBS" 26909 elif test -n "$PKG_CONFIG"; then 26910 if test -n "$PKG_CONFIG" && \ 26911 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL2_mixer\""; } >&5 26912 ($PKG_CONFIG --exists --print-errors "SDL2_mixer") 2>&5 26913 ac_status=$? 26914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26915 test $ac_status = 0; }; then 26916 pkg_cv_SDL2MIXER_LIBS=`$PKG_CONFIG --libs "SDL2_mixer" 2>/dev/null` 26917 test "x$?" != "x0" && pkg_failed=yes 26918else 26919 pkg_failed=yes 26920fi 26921 else 26922 pkg_failed=untried 26923fi 26924 26925 26926 26927if test $pkg_failed = yes; then 26928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26929printf "%s\n" "no" >&6; } 26930 26931if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26932 _pkg_short_errors_supported=yes 26933else 26934 _pkg_short_errors_supported=no 26935fi 26936 if test $_pkg_short_errors_supported = yes; then 26937 SDL2MIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL2_mixer" 2>&1` 26938 else 26939 SDL2MIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL2_mixer" 2>&1` 26940 fi 26941 # Put the nasty error message in config.log where it belongs 26942 echo "$SDL2MIXER_PKG_ERRORS" >&5 26943 26944 26945 ac_save_CPPFLAGS="$CPPFLAGS" 26946 ac_save_CFLAGS="$CFLAGS" 26947 ac_save_LIBS="$LIBS" 26948 CPPFLAGS="$CPPFLAGS $SDL2_CFLAGS" 26949 CFLAGS="$CFLAGS $SDL2_CFLAGS" 26950 LIBS="$LIBS $SDL2_LIBS" 26951 ac_fn_c_check_header_compile "$LINENO" "SDL_mixer.h" "ac_cv_header_SDL_mixer_h" "$ac_includes_default" 26952if test "x$ac_cv_header_SDL_mixer_h" = xyes 26953then : 26954 SDL_mixer_h=1 26955else $as_nop 26956 SDL_mixer_h=0 26957fi 26958 26959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL2_mixer" >&5 26960printf %s "checking for Mix_OpenAudio in -lSDL2_mixer... " >&6; } 26961if test ${ac_cv_lib_SDL2_mixer_Mix_OpenAudio+y} 26962then : 26963 printf %s "(cached) " >&6 26964else $as_nop 26965 ac_check_lib_save_LIBS=$LIBS 26966LIBS="-lSDL2_mixer $LIBS" 26967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26968/* end confdefs.h. */ 26969 26970/* Override any GCC internal prototype to avoid an error. 26971 Use char because int might match the return type of a GCC 26972 builtin and then its argument prototype would still apply. */ 26973char Mix_OpenAudio (); 26974int 26975main (void) 26976{ 26977return Mix_OpenAudio (); 26978 ; 26979 return 0; 26980} 26981_ACEOF 26982if ac_fn_c_try_link "$LINENO" 26983then : 26984 ac_cv_lib_SDL2_mixer_Mix_OpenAudio=yes 26985else $as_nop 26986 ac_cv_lib_SDL2_mixer_Mix_OpenAudio=no 26987fi 26988rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26989 conftest$ac_exeext conftest.$ac_ext 26990LIBS=$ac_check_lib_save_LIBS 26991fi 26992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&5 26993printf "%s\n" "$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&6; } 26994if test "x$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" = xyes 26995then : 26996 SDL_mixer=sdl2 26997fi 26998 26999 CPPFLAGS="$ac_save_CPPFLAGS" 27000 CFLAGS="$ac_save_CFLAGS" 27001 LIBS="$ac_save_LIBS" 27002 27003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking building SDL2_mixer support" >&5 27004printf %s "checking building SDL2_mixer support... " >&6; } 27005 if test "x$SDL_mixer_h" = "x1"; then 27006 if test "x$SDL_mixer" = "xsdl2"; then 27007 SOUND_CFLAGS="$SOUND_CFLAGS $SDL2_CFLAGS" 27008 SOUND_LIBS="$SOUND_LIBS -lSDL2_mixer $SDL2_LIBS" 27009 27010printf "%s\n" "#define AUDIO_SDL 1" >>confdefs.h 27011 27012 27013printf "%s\n" "#define AUDIO_SDL2 1" >>confdefs.h 27014 27015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27016printf "%s\n" "yes" >&6; } 27017 SOUND_SDL_OK=true 27018 else 27019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no SDL2_mixer library found, install from http://www.libsdl.org/projects/SDL_mixer/index.html " >&5 27020printf "%s\n" "no SDL2_mixer library found, install from http://www.libsdl.org/projects/SDL_mixer/index.html " >&6; } 27021 fi 27022 else 27023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no SDL2_mixer headers found, install from http://www.libsdl.org/projects/SDL_mixer/index.html" >&5 27024printf "%s\n" "no SDL2_mixer headers found, install from http://www.libsdl.org/projects/SDL_mixer/index.html" >&6; } 27025 fi 27026elif test $pkg_failed = untried; then 27027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27028printf "%s\n" "no" >&6; } 27029 27030 ac_save_CPPFLAGS="$CPPFLAGS" 27031 ac_save_CFLAGS="$CFLAGS" 27032 ac_save_LIBS="$LIBS" 27033 CPPFLAGS="$CPPFLAGS $SDL2_CFLAGS" 27034 CFLAGS="$CFLAGS $SDL2_CFLAGS" 27035 LIBS="$LIBS $SDL2_LIBS" 27036 ac_fn_c_check_header_compile "$LINENO" "SDL_mixer.h" "ac_cv_header_SDL_mixer_h" "$ac_includes_default" 27037if test "x$ac_cv_header_SDL_mixer_h" = xyes 27038then : 27039 SDL_mixer_h=1 27040else $as_nop 27041 SDL_mixer_h=0 27042fi 27043 27044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL2_mixer" >&5 27045printf %s "checking for Mix_OpenAudio in -lSDL2_mixer... " >&6; } 27046if test ${ac_cv_lib_SDL2_mixer_Mix_OpenAudio+y} 27047then : 27048 printf %s "(cached) " >&6 27049else $as_nop 27050 ac_check_lib_save_LIBS=$LIBS 27051LIBS="-lSDL2_mixer $LIBS" 27052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27053/* end confdefs.h. */ 27054 27055/* Override any GCC internal prototype to avoid an error. 27056 Use char because int might match the return type of a GCC 27057 builtin and then its argument prototype would still apply. */ 27058char Mix_OpenAudio (); 27059int 27060main (void) 27061{ 27062return Mix_OpenAudio (); 27063 ; 27064 return 0; 27065} 27066_ACEOF 27067if ac_fn_c_try_link "$LINENO" 27068then : 27069 ac_cv_lib_SDL2_mixer_Mix_OpenAudio=yes 27070else $as_nop 27071 ac_cv_lib_SDL2_mixer_Mix_OpenAudio=no 27072fi 27073rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27074 conftest$ac_exeext conftest.$ac_ext 27075LIBS=$ac_check_lib_save_LIBS 27076fi 27077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&5 27078printf "%s\n" "$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&6; } 27079if test "x$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" = xyes 27080then : 27081 SDL_mixer=sdl2 27082fi 27083 27084 CPPFLAGS="$ac_save_CPPFLAGS" 27085 CFLAGS="$ac_save_CFLAGS" 27086 LIBS="$ac_save_LIBS" 27087 27088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking building SDL2_mixer support" >&5 27089printf %s "checking building SDL2_mixer support... " >&6; } 27090 if test "x$SDL_mixer_h" = "x1"; then 27091 if test "x$SDL_mixer" = "xsdl2"; then 27092 SOUND_CFLAGS="$SOUND_CFLAGS $SDL2_CFLAGS" 27093 SOUND_LIBS="$SOUND_LIBS -lSDL2_mixer $SDL2_LIBS" 27094 27095printf "%s\n" "#define AUDIO_SDL 1" >>confdefs.h 27096 27097 27098printf "%s\n" "#define AUDIO_SDL2 1" >>confdefs.h 27099 27100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27101printf "%s\n" "yes" >&6; } 27102 SOUND_SDL_OK=true 27103 else 27104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no SDL2_mixer library found, install from http://www.libsdl.org/projects/SDL_mixer/index.html " >&5 27105printf "%s\n" "no SDL2_mixer library found, install from http://www.libsdl.org/projects/SDL_mixer/index.html " >&6; } 27106 fi 27107 else 27108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no SDL2_mixer headers found, install from http://www.libsdl.org/projects/SDL_mixer/index.html" >&5 27109printf "%s\n" "no SDL2_mixer headers found, install from http://www.libsdl.org/projects/SDL_mixer/index.html" >&6; } 27110 fi 27111else 27112 SDL2MIXER_CFLAGS=$pkg_cv_SDL2MIXER_CFLAGS 27113 SDL2MIXER_LIBS=$pkg_cv_SDL2MIXER_LIBS 27114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27115printf "%s\n" "yes" >&6; } 27116 27117 SOUND_CFLAGS="$SOUND_CFLAGS $SDL2MIXER_CFLAGS" 27118 SOUND_LIBS="$SOUND_LIBS $SDL2MIXER_LIBS" 27119 27120printf "%s\n" "#define AUDIO_SDL 1" >>confdefs.h 27121 27122 27123printf "%s\n" "#define AUDIO_SDL2 1" >>confdefs.h 27124 27125 SDL_mixer=sdl2 27126 SOUND_SDL_OK=true 27127 if test x$sdl_headers_without_path != xyes ; then 27128 ac_fn_c_check_header_compile "$LINENO" "SDL2/SDL_mixer.h" "ac_cv_header_SDL2_SDL_mixer_h" "$ac_includes_default" 27129if test "x$ac_cv_header_SDL2_SDL_mixer_h" = xyes 27130then : 27131 27132else $as_nop 27133 27134 27135printf "%s\n" "#define SDL2_PLAIN_INCLUDE 1" >>confdefs.h 27136 27137sdl_headers_without_path=yes 27138fi 27139 27140 fi 27141 27142fi 27143 fi 27144fi 27145 27146if test "x$USE_SOUND_SDL" != "xsdl2" && test "x$USE_SOUND_SDL" != "xno" && test "x$SOUND_SDL_OK" != "xtrue" ; then 27147 SDL_VERSION=1.0.0 27148 27149# Check whether --with-sdl-prefix was given. 27150if test ${with_sdl_prefix+y} 27151then : 27152 withval=$with_sdl_prefix; sdl_prefix="$withval" 27153else $as_nop 27154 sdl_prefix="" 27155fi 27156 27157 27158 27159# Check whether --with-sdl-exec-prefix was given. 27160if test ${with_sdl_exec_prefix+y} 27161then : 27162 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 27163else $as_nop 27164 sdl_exec_prefix="" 27165fi 27166 27167 27168# Check whether --enable-sdltest was given. 27169if test ${enable_sdltest+y} 27170then : 27171 enableval=$enable_sdltest; 27172else $as_nop 27173 enable_sdltest=yes 27174fi 27175 27176 27177 if test x$sdl_exec_prefix != x ; then 27178 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 27179 if test x${SDL_CONFIG+set} != xset ; then 27180 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 27181 fi 27182 fi 27183 if test x$sdl_prefix != x ; then 27184 sdl_args="$sdl_args --prefix=$sdl_prefix" 27185 if test x${SDL_CONFIG+set} != xset ; then 27186 SDL_CONFIG=$sdl_prefix/bin/sdl-config 27187 fi 27188 fi 27189 27190 if test "x$prefix" != xNONE; then 27191 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 27192 fi 27193 # Extract the first word of "sdl-config", so it can be a program name with args. 27194set dummy sdl-config; ac_word=$2 27195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27196printf %s "checking for $ac_word... " >&6; } 27197if test ${ac_cv_path_SDL_CONFIG+y} 27198then : 27199 printf %s "(cached) " >&6 27200else $as_nop 27201 case $SDL_CONFIG in 27202 [\\/]* | ?:[\\/]*) 27203 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 27204 ;; 27205 *) 27206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27207for as_dir in $PATH 27208do 27209 IFS=$as_save_IFS 27210 case $as_dir in #((( 27211 '') as_dir=./ ;; 27212 */) ;; 27213 *) as_dir=$as_dir/ ;; 27214 esac 27215 for ac_exec_ext in '' $ac_executable_extensions; do 27216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27217 ac_cv_path_SDL_CONFIG="$as_dir$ac_word$ac_exec_ext" 27218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27219 break 2 27220 fi 27221done 27222 done 27223IFS=$as_save_IFS 27224 27225 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 27226 ;; 27227esac 27228fi 27229SDL_CONFIG=$ac_cv_path_SDL_CONFIG 27230if test -n "$SDL_CONFIG"; then 27231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 27232printf "%s\n" "$SDL_CONFIG" >&6; } 27233else 27234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27235printf "%s\n" "no" >&6; } 27236fi 27237 27238 27239 min_sdl_version=$SDL_VERSION 27240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 27241printf %s "checking for SDL - version >= $min_sdl_version... " >&6; } 27242 no_sdl="" 27243 if test "$SDL_CONFIG" = "no" ; then 27244 no_sdl=yes 27245 else 27246 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 27247 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 27248 27249 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 27250 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 27251 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 27252 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 27253 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 27254 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 27255 if test "x$enable_sdltest" = "xyes" ; then 27256 ac_save_CFLAGS="$CFLAGS" 27257 ac_save_CXXFLAGS="$CXXFLAGS" 27258 ac_save_LIBS="$LIBS" 27259 CFLAGS="$CFLAGS $SDL_CFLAGS" 27260 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 27261 LIBS="$LIBS $SDL_LIBS" 27262 rm -f conf.sdltest 27263 if test "$cross_compiling" = yes 27264then : 27265 echo $ac_n "cross compiling; assumed OK... $ac_c" 27266else $as_nop 27267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27268/* end confdefs.h. */ 27269 27270#include <stdio.h> 27271#include <stdlib.h> 27272#include <string.h> 27273#include "SDL.h" 27274 27275char* 27276my_strdup (char *str) 27277{ 27278 char *new_str; 27279 27280 if (str) 27281 { 27282 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 27283 strcpy (new_str, str); 27284 } 27285 else 27286 new_str = NULL; 27287 27288 return new_str; 27289} 27290 27291int main (int argc, char *argv[]) 27292{ 27293 int major, minor, micro; 27294 char *tmp_version; 27295 27296 /* This hangs on some systems (?) 27297 system ("touch conf.sdltest"); 27298 */ 27299 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 27300 27301 /* HP/UX 9 (%@#!) writes to sscanf strings */ 27302 tmp_version = my_strdup("$min_sdl_version"); 27303 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 27304 printf("%s, bad version string\n", "$min_sdl_version"); 27305 exit(1); 27306 } 27307 27308 if (($sdl_major_version > major) || 27309 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 27310 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 27311 { 27312 return 0; 27313 } 27314 else 27315 { 27316 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 27317 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 27318 printf("*** best to upgrade to the required version.\n"); 27319 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 27320 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 27321 printf("*** config.cache before re-running configure\n"); 27322 return 1; 27323 } 27324} 27325 27326 27327_ACEOF 27328if ac_fn_c_try_run "$LINENO" 27329then : 27330 27331else $as_nop 27332 no_sdl=yes 27333fi 27334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27335 conftest.$ac_objext conftest.beam conftest.$ac_ext 27336fi 27337 27338 CFLAGS="$ac_save_CFLAGS" 27339 CXXFLAGS="$ac_save_CXXFLAGS" 27340 LIBS="$ac_save_LIBS" 27341 fi 27342 fi 27343 if test "x$no_sdl" = x ; then 27344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27345printf "%s\n" "yes" >&6; } 27346 SDL=yes 27347 else 27348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27349printf "%s\n" "no" >&6; } 27350 if test "$SDL_CONFIG" = "no" ; then 27351 echo "*** The sdl-config script installed by SDL could not be found" 27352 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 27353 echo "*** your path, or set the SDL_CONFIG environment variable to the" 27354 echo "*** full path to sdl-config." 27355 else 27356 if test -f conf.sdltest ; then 27357 : 27358 else 27359 echo "*** Could not run SDL test program, checking why..." 27360 CFLAGS="$CFLAGS $SDL_CFLAGS" 27361 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 27362 LIBS="$LIBS $SDL_LIBS" 27363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27364/* end confdefs.h. */ 27365 27366#include <stdio.h> 27367#include "SDL.h" 27368 27369int main(int argc, char *argv[]) 27370{ return 0; } 27371#undef main 27372#define main K_and_R_C_main 27373 27374int 27375main (void) 27376{ 27377 return 0; 27378 ; 27379 return 0; 27380} 27381_ACEOF 27382if ac_fn_c_try_link "$LINENO" 27383then : 27384 echo "*** The test program compiled, but did not run. This usually means" 27385 echo "*** that the run-time linker is not finding SDL or finding the wrong" 27386 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 27387 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 27388 echo "*** to the installed location Also, make sure you have run ldconfig if that" 27389 echo "*** is required on your system" 27390 echo "***" 27391 echo "*** If you have an old version installed, it is best to remove it, although" 27392 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 27393else $as_nop 27394 echo "*** The test program failed to compile or link. See the file config.log for the" 27395 echo "*** exact error that occurred. This usually means SDL was incorrectly installed" 27396 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 27397 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 27398fi 27399rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27400 conftest$ac_exeext conftest.$ac_ext 27401 CFLAGS="$ac_save_CFLAGS" 27402 CXXFLAGS="$ac_save_CXXFLAGS" 27403 LIBS="$ac_save_LIBS" 27404 fi 27405 fi 27406 SDL_CFLAGS="" 27407 SDL_LIBS="" 27408 SDL=no 27409 fi 27410 27411 27412 rm -f conf.sdltest 27413 27414 if test "x$SDL" != "xno"; then 27415 27416pkg_failed=no 27417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDLMIXER" >&5 27418printf %s "checking for SDLMIXER... " >&6; } 27419 27420if test -n "$SDLMIXER_CFLAGS"; then 27421 pkg_cv_SDLMIXER_CFLAGS="$SDLMIXER_CFLAGS" 27422 elif test -n "$PKG_CONFIG"; then 27423 if test -n "$PKG_CONFIG" && \ 27424 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5 27425 ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5 27426 ac_status=$? 27427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27428 test $ac_status = 0; }; then 27429 pkg_cv_SDLMIXER_CFLAGS=`$PKG_CONFIG --cflags "SDL_mixer" 2>/dev/null` 27430 test "x$?" != "x0" && pkg_failed=yes 27431else 27432 pkg_failed=yes 27433fi 27434 else 27435 pkg_failed=untried 27436fi 27437if test -n "$SDLMIXER_LIBS"; then 27438 pkg_cv_SDLMIXER_LIBS="$SDLMIXER_LIBS" 27439 elif test -n "$PKG_CONFIG"; then 27440 if test -n "$PKG_CONFIG" && \ 27441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5 27442 ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5 27443 ac_status=$? 27444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27445 test $ac_status = 0; }; then 27446 pkg_cv_SDLMIXER_LIBS=`$PKG_CONFIG --libs "SDL_mixer" 2>/dev/null` 27447 test "x$?" != "x0" && pkg_failed=yes 27448else 27449 pkg_failed=yes 27450fi 27451 else 27452 pkg_failed=untried 27453fi 27454 27455 27456 27457if test $pkg_failed = yes; then 27458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27459printf "%s\n" "no" >&6; } 27460 27461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27462 _pkg_short_errors_supported=yes 27463else 27464 _pkg_short_errors_supported=no 27465fi 27466 if test $_pkg_short_errors_supported = yes; then 27467 SDLMIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "SDL_mixer" 2>&1` 27468 else 27469 SDLMIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "SDL_mixer" 2>&1` 27470 fi 27471 # Put the nasty error message in config.log where it belongs 27472 echo "$SDLMIXER_PKG_ERRORS" >&5 27473 27474 27475 ac_save_CPPFLAGS="$CPPFLAGS" 27476 ac_save_CFLAGS="$CFLAGS" 27477 ac_save_LIBS="$LIBS" 27478 CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" 27479 CFLAGS="$CFLAGS $SDL_CFLAGS" 27480 LIBS="$LIBS $SDL_LIBS" 27481 ac_fn_c_check_header_compile "$LINENO" "SDL_mixer.h" "ac_cv_header_SDL_mixer_h" "$ac_includes_default" 27482if test "x$ac_cv_header_SDL_mixer_h" = xyes 27483then : 27484 SDL_mixer_h=1 27485else $as_nop 27486 SDL_mixer_h=0 27487fi 27488 27489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5 27490printf %s "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; } 27491if test ${ac_cv_lib_SDL_mixer_Mix_OpenAudio+y} 27492then : 27493 printf %s "(cached) " >&6 27494else $as_nop 27495 ac_check_lib_save_LIBS=$LIBS 27496LIBS="-lSDL_mixer $LIBS" 27497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27498/* end confdefs.h. */ 27499 27500/* Override any GCC internal prototype to avoid an error. 27501 Use char because int might match the return type of a GCC 27502 builtin and then its argument prototype would still apply. */ 27503char Mix_OpenAudio (); 27504int 27505main (void) 27506{ 27507return Mix_OpenAudio (); 27508 ; 27509 return 0; 27510} 27511_ACEOF 27512if ac_fn_c_try_link "$LINENO" 27513then : 27514 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes 27515else $as_nop 27516 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no 27517fi 27518rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27519 conftest$ac_exeext conftest.$ac_ext 27520LIBS=$ac_check_lib_save_LIBS 27521fi 27522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5 27523printf "%s\n" "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; } 27524if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = xyes 27525then : 27526 SDL_mixer=sdl 27527fi 27528 27529 CPPFLAGS="$ac_save_CPPFLAGS" 27530 CFLAGS="$ac_save_CFLAGS" 27531 LIBS="$ac_save_LIBS" 27532 27533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking building SDL_mixer support" >&5 27534printf %s "checking building SDL_mixer support... " >&6; } 27535 if test "x$SDL_mixer_h" = "x1"; then 27536 if test "x$SDL_mixer" = "xsdl"; then 27537 SOUND_CFLAGS="$SOUND_CFLAGS $SDL_CFLAGS" 27538 SOUND_LIBS="$SOUND_LIBS -lSDL_mixer $SDL_LIBS" 27539 27540printf "%s\n" "#define AUDIO_SDL 1" >>confdefs.h 27541 27542 27543printf "%s\n" "#define AUDIO_SDL1_2 1" >>confdefs.h 27544 27545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27546printf "%s\n" "yes" >&6; } 27547 SOUND_SDL_OK=true 27548 else 27549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no SDL_mixer library found, install from http://www.libsdl.org/projects/SDL_mixer/index.html " >&5 27550printf "%s\n" "no SDL_mixer library found, install from http://www.libsdl.org/projects/SDL_mixer/index.html " >&6; } 27551 fi 27552 else 27553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no SDL_mixer headers found, install from http://www.libsdl.org/projects/SDL_mixer/index.html" >&5 27554printf "%s\n" "no SDL_mixer headers found, install from http://www.libsdl.org/projects/SDL_mixer/index.html" >&6; } 27555 fi 27556elif test $pkg_failed = untried; then 27557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27558printf "%s\n" "no" >&6; } 27559 27560 ac_save_CPPFLAGS="$CPPFLAGS" 27561 ac_save_CFLAGS="$CFLAGS" 27562 ac_save_LIBS="$LIBS" 27563 CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" 27564 CFLAGS="$CFLAGS $SDL_CFLAGS" 27565 LIBS="$LIBS $SDL_LIBS" 27566 ac_fn_c_check_header_compile "$LINENO" "SDL_mixer.h" "ac_cv_header_SDL_mixer_h" "$ac_includes_default" 27567if test "x$ac_cv_header_SDL_mixer_h" = xyes 27568then : 27569 SDL_mixer_h=1 27570else $as_nop 27571 SDL_mixer_h=0 27572fi 27573 27574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5 27575printf %s "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; } 27576if test ${ac_cv_lib_SDL_mixer_Mix_OpenAudio+y} 27577then : 27578 printf %s "(cached) " >&6 27579else $as_nop 27580 ac_check_lib_save_LIBS=$LIBS 27581LIBS="-lSDL_mixer $LIBS" 27582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27583/* end confdefs.h. */ 27584 27585/* Override any GCC internal prototype to avoid an error. 27586 Use char because int might match the return type of a GCC 27587 builtin and then its argument prototype would still apply. */ 27588char Mix_OpenAudio (); 27589int 27590main (void) 27591{ 27592return Mix_OpenAudio (); 27593 ; 27594 return 0; 27595} 27596_ACEOF 27597if ac_fn_c_try_link "$LINENO" 27598then : 27599 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes 27600else $as_nop 27601 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no 27602fi 27603rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27604 conftest$ac_exeext conftest.$ac_ext 27605LIBS=$ac_check_lib_save_LIBS 27606fi 27607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5 27608printf "%s\n" "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; } 27609if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = xyes 27610then : 27611 SDL_mixer=sdl 27612fi 27613 27614 CPPFLAGS="$ac_save_CPPFLAGS" 27615 CFLAGS="$ac_save_CFLAGS" 27616 LIBS="$ac_save_LIBS" 27617 27618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking building SDL_mixer support" >&5 27619printf %s "checking building SDL_mixer support... " >&6; } 27620 if test "x$SDL_mixer_h" = "x1"; then 27621 if test "x$SDL_mixer" = "xsdl"; then 27622 SOUND_CFLAGS="$SOUND_CFLAGS $SDL_CFLAGS" 27623 SOUND_LIBS="$SOUND_LIBS -lSDL_mixer $SDL_LIBS" 27624 27625printf "%s\n" "#define AUDIO_SDL 1" >>confdefs.h 27626 27627 27628printf "%s\n" "#define AUDIO_SDL1_2 1" >>confdefs.h 27629 27630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27631printf "%s\n" "yes" >&6; } 27632 SOUND_SDL_OK=true 27633 else 27634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no SDL_mixer library found, install from http://www.libsdl.org/projects/SDL_mixer/index.html " >&5 27635printf "%s\n" "no SDL_mixer library found, install from http://www.libsdl.org/projects/SDL_mixer/index.html " >&6; } 27636 fi 27637 else 27638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no SDL_mixer headers found, install from http://www.libsdl.org/projects/SDL_mixer/index.html" >&5 27639printf "%s\n" "no SDL_mixer headers found, install from http://www.libsdl.org/projects/SDL_mixer/index.html" >&6; } 27640 fi 27641else 27642 SDLMIXER_CFLAGS=$pkg_cv_SDLMIXER_CFLAGS 27643 SDLMIXER_LIBS=$pkg_cv_SDLMIXER_LIBS 27644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27645printf "%s\n" "yes" >&6; } 27646 27647 SOUND_CFLAGS="$SOUND_CFLAGS $SDLMIXER_CFLAGS" 27648 SOUND_LIBS="$SOUND_LIBS $SDLMIXER_LIBS" 27649 27650printf "%s\n" "#define AUDIO_SDL 1" >>confdefs.h 27651 27652 27653printf "%s\n" "#define AUDIO_SDL1_2 1" >>confdefs.h 27654 27655 SDL_mixer=sdl 27656 SOUND_SDL_OK=true 27657 27658fi 27659 fi 27660fi 27661if test "x$USE_SOUND_SDL" = "xsdl" || test "x$USE_SOUND_SDL" = "xsdl2" ;then 27662 if test "x$SOUND_SDL_OK" != "xtrue" ; then 27663 as_fn_error $? "SDL mixer support requested, but cannot be compiled in" "$LINENO" 5 27664 fi 27665fi 27666if test "x$USE_SOUND_SDL" = "xmaybe" && test "x$SOUND_SDL_OK" != "xtrue" ; then 27667 feature_sound=missing 27668fi 27669if test "x$SDL_mixer" = "x" ; then 27670 SDL_mixer=no 27671fi 27672 27673SOUND_LIBS="$(echo $SOUND_LIBS | $SED 's/-mwindows//g')" 27674 27675 27676 if test -n "$WITH_XAW" || test -n "$WITH_XAW3D"; then 27677 if test "x$client" = "xauto" ; then 27678 gui_xaw=yes 27679 client=yes 27680 elif test "x$client" = "xall" ; then 27681 gui_xaw=yes 27682 fi 27683 fi 27684 27685 if test "x$client" = "xauto"; then 27686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for which client to compile:..." >&5 27687printf "%s\n" "$as_me: checking for which client to compile:..." >&6;} 27688 elif test "x$client" = "xall" ; then 27689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for which clients to compile:..." >&5 27690printf "%s\n" "$as_me: checking for which clients to compile:..." >&6;} 27691 fi 27692 27693 27694 if test "x$gui_gtk3" = "xyes" || test "x$client" = "xauto" || 27695 test "x$client" = "xall" ; then 27696 27697pkg_failed=no 27698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5 27699printf %s "checking for GTK3... " >&6; } 27700 27701if test -n "$GTK3_CFLAGS"; then 27702 pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS" 27703 elif test -n "$PKG_CONFIG"; then 27704 if test -n "$PKG_CONFIG" && \ 27705 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.8.0\""; } >&5 27706 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.8.0") 2>&5 27707 ac_status=$? 27708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27709 test $ac_status = 0; }; then 27710 pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.8.0" 2>/dev/null` 27711 test "x$?" != "x0" && pkg_failed=yes 27712else 27713 pkg_failed=yes 27714fi 27715 else 27716 pkg_failed=untried 27717fi 27718if test -n "$GTK3_LIBS"; then 27719 pkg_cv_GTK3_LIBS="$GTK3_LIBS" 27720 elif test -n "$PKG_CONFIG"; then 27721 if test -n "$PKG_CONFIG" && \ 27722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.8.0\""; } >&5 27723 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.8.0") 2>&5 27724 ac_status=$? 27725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27726 test $ac_status = 0; }; then 27727 pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.8.0" 2>/dev/null` 27728 test "x$?" != "x0" && pkg_failed=yes 27729else 27730 pkg_failed=yes 27731fi 27732 else 27733 pkg_failed=untried 27734fi 27735 27736 27737 27738if test $pkg_failed = yes; then 27739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27740printf "%s\n" "no" >&6; } 27741 27742if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27743 _pkg_short_errors_supported=yes 27744else 27745 _pkg_short_errors_supported=no 27746fi 27747 if test $_pkg_short_errors_supported = yes; then 27748 GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.8.0" 2>&1` 27749 else 27750 GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.8.0" 2>&1` 27751 fi 27752 # Put the nasty error message in config.log where it belongs 27753 echo "$GTK3_PKG_ERRORS" >&5 27754 27755 27756 27757 UL_GUI=$(printf gtk3 | $SED 's/\./_/g') 27758 27759 if test "x`eval echo '$'gui_$UL_GUI`" = "xyes"; then 27760 as_fn_error $? "specified client 'gtk3' not configurable (GTK+-3.0 libraries not found)" "$LINENO" 5 27761 fi 27762 27763 27764elif test $pkg_failed = untried; then 27765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27766printf "%s\n" "no" >&6; } 27767 27768 27769 UL_GUI=$(printf gtk3 | $SED 's/\./_/g') 27770 27771 if test "x`eval echo '$'gui_$UL_GUI`" = "xyes"; then 27772 as_fn_error $? "specified client 'gtk3' not configurable (GTK+-3.0 libraries not found)" "$LINENO" 5 27773 fi 27774 27775 27776else 27777 GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS 27778 GTK3_LIBS=$pkg_cv_GTK3_LIBS 27779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27780printf "%s\n" "yes" >&6; } 27781 27782 GTK3_CFLAGS="$GTK3_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_8 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_8" 27783 GTK3_CFLAGS="$GTK3_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36" 27784 gui_gtk3=yes 27785 if test "x$client" = "xauto" ; then 27786 client=yes 27787 fi 27788 gui_gtk3_cflags="$GTK3_CFLAGS" 27789 gui_gtk3_libs="$GTK3_LIBS" 27790 if test "x$MINGW" = "xyes"; then 27791 gui_gtk3_cflags="$gui_gtk3_cflags -mms-bitfields" 27792 gui_gtk3_ldflags="$gui_gtk3_ldflags $MWINDOWS_FLAG" 27793 fi 27794 27795fi 27796 fi 27797 27798 27799 27800 # Add check "x$client" = "xauto" when this becomes supported client 27801 if test "x$gui_gtk3_22" = "xyes" || 27802 test "x$client" = "xall" ; then 27803 27804pkg_failed=no 27805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK3_22" >&5 27806printf %s "checking for GTK3_22... " >&6; } 27807 27808if test -n "$GTK3_22_CFLAGS"; then 27809 pkg_cv_GTK3_22_CFLAGS="$GTK3_22_CFLAGS" 27810 elif test -n "$PKG_CONFIG"; then 27811 if test -n "$PKG_CONFIG" && \ 27812 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.22.0\""; } >&5 27813 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.22.0") 2>&5 27814 ac_status=$? 27815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27816 test $ac_status = 0; }; then 27817 pkg_cv_GTK3_22_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.22.0" 2>/dev/null` 27818 test "x$?" != "x0" && pkg_failed=yes 27819else 27820 pkg_failed=yes 27821fi 27822 else 27823 pkg_failed=untried 27824fi 27825if test -n "$GTK3_22_LIBS"; then 27826 pkg_cv_GTK3_22_LIBS="$GTK3_22_LIBS" 27827 elif test -n "$PKG_CONFIG"; then 27828 if test -n "$PKG_CONFIG" && \ 27829 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.22.0\""; } >&5 27830 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.22.0") 2>&5 27831 ac_status=$? 27832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27833 test $ac_status = 0; }; then 27834 pkg_cv_GTK3_22_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.22.0" 2>/dev/null` 27835 test "x$?" != "x0" && pkg_failed=yes 27836else 27837 pkg_failed=yes 27838fi 27839 else 27840 pkg_failed=untried 27841fi 27842 27843 27844 27845if test $pkg_failed = yes; then 27846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27847printf "%s\n" "no" >&6; } 27848 27849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 27850 _pkg_short_errors_supported=yes 27851else 27852 _pkg_short_errors_supported=no 27853fi 27854 if test $_pkg_short_errors_supported = yes; then 27855 GTK3_22_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.22.0" 2>&1` 27856 else 27857 GTK3_22_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.22.0" 2>&1` 27858 fi 27859 # Put the nasty error message in config.log where it belongs 27860 echo "$GTK3_22_PKG_ERRORS" >&5 27861 27862 27863 27864 UL_GUI=$(printf gtk3.22 | $SED 's/\./_/g') 27865 27866 if test "x`eval echo '$'gui_$UL_GUI`" = "xyes"; then 27867 as_fn_error $? "specified client 'gtk3.22' not configurable (GTK+-3.22 libraries not found)" "$LINENO" 5 27868 fi 27869 27870 27871elif test $pkg_failed = untried; then 27872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27873printf "%s\n" "no" >&6; } 27874 27875 27876 UL_GUI=$(printf gtk3.22 | $SED 's/\./_/g') 27877 27878 if test "x`eval echo '$'gui_$UL_GUI`" = "xyes"; then 27879 as_fn_error $? "specified client 'gtk3.22' not configurable (GTK+-3.22 libraries not found)" "$LINENO" 5 27880 fi 27881 27882 27883else 27884 GTK3_22_CFLAGS=$pkg_cv_GTK3_22_CFLAGS 27885 GTK3_22_LIBS=$pkg_cv_GTK3_22_LIBS 27886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27887printf "%s\n" "yes" >&6; } 27888 27889 GTK3_22_CFLAGS="$GTK3_22_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_20 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_22" 27890 GTK3_22_CFLAGS="$GTK3_22_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_50 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_50" 27891 gui_gtk3_22=yes 27892 if test "x$client" = "xauto" ; then 27893 client=yes 27894 fi 27895 gui_gtk3_22_cflags="$GTK3_22_CFLAGS" 27896 gui_gtk3_22_libs="$GTK3_22_LIBS" 27897 if test "x$MINGW" = "xyes"; then 27898 gui_gtk3_22_cflags="$gui_gtk3_22_cflags -mms-bitfields" 27899 gui_gtk3_22_ldflags="$gui_gtk3_22_ldflags $MWINDOWS_FLAG" 27900 fi 27901 27902fi 27903 fi 27904 27905 27906 27907 if test "x$gui_gtk2" = "xyes" || test "x$client" = "xauto" || 27908 test "x$client" = "xall" ; then 27909 # Check whether --enable-gtktest was given. 27910if test ${enable_gtktest+y} 27911then : 27912 enableval=$enable_gtktest; 27913else $as_nop 27914 enable_gtktest=yes 27915fi 27916 27917 27918 pkg_config_args=gtk+-2.0 27919 for module in . 27920 do 27921 case "$module" in 27922 gthread) 27923 pkg_config_args="$pkg_config_args gthread-2.0" 27924 ;; 27925 esac 27926 done 27927 27928 no_gtk="" 27929 27930 27931 27932 27933 27934 27935 27936 27937 27938if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 27939 if test -n "$ac_tool_prefix"; then 27940 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 27941set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 27942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27943printf %s "checking for $ac_word... " >&6; } 27944if test ${ac_cv_path_PKG_CONFIG+y} 27945then : 27946 printf %s "(cached) " >&6 27947else $as_nop 27948 case $PKG_CONFIG in 27949 [\\/]* | ?:[\\/]*) 27950 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 27951 ;; 27952 *) 27953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27954for as_dir in $PATH 27955do 27956 IFS=$as_save_IFS 27957 case $as_dir in #((( 27958 '') as_dir=./ ;; 27959 */) ;; 27960 *) as_dir=$as_dir/ ;; 27961 esac 27962 for ac_exec_ext in '' $ac_executable_extensions; do 27963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27964 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 27965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27966 break 2 27967 fi 27968done 27969 done 27970IFS=$as_save_IFS 27971 27972 ;; 27973esac 27974fi 27975PKG_CONFIG=$ac_cv_path_PKG_CONFIG 27976if test -n "$PKG_CONFIG"; then 27977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 27978printf "%s\n" "$PKG_CONFIG" >&6; } 27979else 27980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27981printf "%s\n" "no" >&6; } 27982fi 27983 27984 27985fi 27986if test -z "$ac_cv_path_PKG_CONFIG"; then 27987 ac_pt_PKG_CONFIG=$PKG_CONFIG 27988 # Extract the first word of "pkg-config", so it can be a program name with args. 27989set dummy pkg-config; ac_word=$2 27990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27991printf %s "checking for $ac_word... " >&6; } 27992if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 27993then : 27994 printf %s "(cached) " >&6 27995else $as_nop 27996 case $ac_pt_PKG_CONFIG in 27997 [\\/]* | ?:[\\/]*) 27998 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 27999 ;; 28000 *) 28001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28002for as_dir in $PATH 28003do 28004 IFS=$as_save_IFS 28005 case $as_dir in #((( 28006 '') as_dir=./ ;; 28007 */) ;; 28008 *) as_dir=$as_dir/ ;; 28009 esac 28010 for ac_exec_ext in '' $ac_executable_extensions; do 28011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28012 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 28013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28014 break 2 28015 fi 28016done 28017 done 28018IFS=$as_save_IFS 28019 28020 ;; 28021esac 28022fi 28023ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 28024if test -n "$ac_pt_PKG_CONFIG"; then 28025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 28026printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 28027else 28028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28029printf "%s\n" "no" >&6; } 28030fi 28031 28032 if test "x$ac_pt_PKG_CONFIG" = x; then 28033 PKG_CONFIG="" 28034 else 28035 case $cross_compiling:$ac_tool_warned in 28036yes:) 28037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28038printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28039ac_tool_warned=yes ;; 28040esac 28041 PKG_CONFIG=$ac_pt_PKG_CONFIG 28042 fi 28043else 28044 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 28045fi 28046 28047fi 28048if test -n "$PKG_CONFIG"; then 28049 _pkg_min_version=0.7 28050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 28051printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 28052 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 28053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28054printf "%s\n" "yes" >&6; } 28055 else 28056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28057printf "%s\n" "no" >&6; } 28058 PKG_CONFIG="" 28059 fi 28060fi 28061 28062 min_gtk_version=2.12.0 28063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 28064printf %s "checking for GTK+ - version >= $min_gtk_version... " >&6; } 28065 28066 if test x$PKG_CONFIG != xno ; then 28067 ## don't try to run the test against uninstalled libtool libs 28068 if $PKG_CONFIG --uninstalled $pkg_config_args; then 28069 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" 28070 enable_gtktest=no 28071 fi 28072 28073 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then 28074 : 28075 else 28076 no_gtk=yes 28077 fi 28078 fi 28079 28080 if test x"$no_gtk" = x ; then 28081 GTK2_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` 28082 GTK2_CFLAGS="$GTK2_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_2_12 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_2_12" 28083 GTK2_CFLAGS="$GTK2_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS" 28084 GTK2_LIBS=`$PKG_CONFIG $pkg_config_args --libs` 28085 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 28086 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 28087 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 28088 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 28089 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 28090 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 28091 if test "x$enable_gtktest" = "xyes" ; then 28092 ac_save_CFLAGS="$CFLAGS" 28093 ac_save_LIBS="$LIBS" 28094 CFLAGS="$CFLAGS $GTK2_CFLAGS" 28095 LIBS="$GTK2_LIBS $LIBS" 28096 rm -f conf.gtktest 28097 if test "$cross_compiling" = yes 28098then : 28099 echo $ac_n "cross compiling; assumed OK... $ac_c" 28100else $as_nop 28101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28102/* end confdefs.h. */ 28103 28104#include <gtk/gtk.h> 28105#include <stdio.h> 28106#include <stdlib.h> 28107 28108int 28109main () 28110{ 28111 int major, minor, micro; 28112 char *tmp_version; 28113 28114 fclose (fopen ("conf.gtktest", "w")); 28115 28116 /* HP/UX 9 (%@#!) writes to sscanf strings */ 28117 tmp_version = g_strdup("$min_gtk_version"); 28118 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 28119 printf("%s, bad version string\n", "$min_gtk_version"); 28120 exit(1); 28121 } 28122 28123 if ((gtk_major_version != $gtk_config_major_version) || 28124 (gtk_minor_version != $gtk_config_minor_version) || 28125 (gtk_micro_version != $gtk_config_micro_version)) 28126 { 28127 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 28128 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 28129 gtk_major_version, gtk_minor_version, gtk_micro_version); 28130 printf ("*** was found! If pkg-config was correct, then it is best\n"); 28131 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 28132 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 28133 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 28134 printf("*** required on your system.\n"); 28135 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 28136 printf("*** to point to the correct configuration files\n"); 28137 } 28138 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 28139 (gtk_minor_version != GTK_MINOR_VERSION) || 28140 (gtk_micro_version != GTK_MICRO_VERSION)) 28141 { 28142 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 28143 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 28144 printf("*** library (version %d.%d.%d)\n", 28145 gtk_major_version, gtk_minor_version, gtk_micro_version); 28146 } 28147 else 28148 { 28149 if ((gtk_major_version > major) || 28150 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 28151 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 28152 { 28153 return 0; 28154 } 28155 else 28156 { 28157 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 28158 gtk_major_version, gtk_minor_version, gtk_micro_version); 28159 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 28160 major, minor, micro); 28161 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 28162 printf("***\n"); 28163 printf("*** If you have already installed a sufficiently new version, this error\n"); 28164 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 28165 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 28166 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); 28167 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 28168 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 28169 printf("*** so that the correct libraries are found at run-time))\n"); 28170 } 28171 } 28172 return 1; 28173} 28174 28175_ACEOF 28176if ac_fn_c_try_run "$LINENO" 28177then : 28178 28179else $as_nop 28180 no_gtk=yes 28181fi 28182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28183 conftest.$ac_objext conftest.beam conftest.$ac_ext 28184fi 28185 28186 CFLAGS="$ac_save_CFLAGS" 28187 LIBS="$ac_save_LIBS" 28188 fi 28189 fi 28190 if test "x$no_gtk" = x ; then 28191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 28192printf "%s\n" "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } 28193 28194 gui_gtk2=yes 28195 if test "x$client" = "xauto" ; then 28196 client=yes 28197 fi 28198 gui_gtk2_cflags="$GTK2_CFLAGS" 28199 gui_gtk2_libs="$GTK2_LIBS" 28200 if test "x$MINGW" = "xyes"; then 28201 gui_gtk2_cflags="$gui_gtk2_cflags -mms-bitfields" 28202 gui_gtk2_ldflags="$gui_gtk2_ldflags $MWINDOWS_FLAG" 28203 fi 28204 28205 else 28206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28207printf "%s\n" "no" >&6; } 28208 if test "$PKG_CONFIG" = "no" ; then 28209 echo "*** A new enough version of pkg-config was not found." 28210 echo "*** See http://pkgconfig.sourceforge.net" 28211 else 28212 if test -f conf.gtktest ; then 28213 : 28214 else 28215 echo "*** Could not run GTK+ test program, checking why..." 28216 ac_save_CFLAGS="$CFLAGS" 28217 ac_save_LIBS="$LIBS" 28218 CFLAGS="$CFLAGS $GTK2_CFLAGS" 28219 LIBS="$LIBS $GTK_LIBS" 28220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28221/* end confdefs.h. */ 28222 28223#include <gtk/gtk.h> 28224#include <stdio.h> 28225 28226int 28227main (void) 28228{ 28229 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 28230 ; 28231 return 0; 28232} 28233_ACEOF 28234if ac_fn_c_try_link "$LINENO" 28235then : 28236 echo "*** The test program compiled, but did not run. This usually means" 28237 echo "*** that the run-time linker is not finding GTK+ or finding the wrong" 28238 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" 28239 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 28240 echo "*** to the installed location Also, make sure you have run ldconfig if that" 28241 echo "*** is required on your system" 28242 echo "***" 28243 echo "*** If you have an old version installed, it is best to remove it, although" 28244 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 28245else $as_nop 28246 echo "*** The test program failed to compile or link. See the file config.log for the" 28247 echo "*** exact error that occurred. This usually means GTK+ is incorrectly installed." 28248fi 28249rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28250 conftest$ac_exeext conftest.$ac_ext 28251 CFLAGS="$ac_save_CFLAGS" 28252 LIBS="$ac_save_LIBS" 28253 fi 28254 fi 28255 GTK2_CFLAGS="" 28256 GTK2_LIBS="" 28257 28258 28259 UL_GUI=$(printf gtk2 | $SED 's/\./_/g') 28260 28261 if test "x`eval echo '$'gui_$UL_GUI`" = "xyes"; then 28262 as_fn_error $? "specified client 'gtk2' not configurable (GTK+-2.0 libraries not found)" "$LINENO" 5 28263 fi 28264 28265 28266 fi 28267 28268 28269 rm -f conf.gtktest 28270 28271 fi 28272 28273 28274 28275if test "x$gui_qt" = "xyes" || test "x$client" = "xall" || 28276 test "x$client" = "xauto" ; then 28277 28278 if test "x$cxx_works" = "xyes" ; then 28279 28280 28281 if test "x$fc_qt5_usable" = "x" ; then 28282 FC_QT5_CPPFLAGS="-DQT_DISABLE_DEPRECATED_BEFORE=0x050200" 28283 case $host_os in 28284 darwin*) 28285 28286# Check whether --with-qt5_framework_bin was given. 28287if test ${with_qt5_framework_bin+y} 28288then : 28289 withval=$with_qt5_framework_bin; 28290fi 28291 28292 28293 # Extract the first word of "qtpaths", so it can be a program name with args. 28294set dummy qtpaths; ac_word=$2 28295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28296printf %s "checking for $ac_word... " >&6; } 28297if test ${ac_cv_prog_QTPATHS+y} 28298then : 28299 printf %s "(cached) " >&6 28300else $as_nop 28301 if test -n "$QTPATHS"; then 28302 ac_cv_prog_QTPATHS="$QTPATHS" # Let the user override the test. 28303else 28304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28305for as_dir in $PATH 28306do 28307 IFS=$as_save_IFS 28308 case $as_dir in #((( 28309 '') as_dir=./ ;; 28310 */) ;; 28311 *) as_dir=$as_dir/ ;; 28312 esac 28313 for ac_exec_ext in '' $ac_executable_extensions; do 28314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28315 ac_cv_prog_QTPATHS="qtpaths" 28316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28317 break 2 28318 fi 28319done 28320 done 28321IFS=$as_save_IFS 28322 28323 test -z "$ac_cv_prog_QTPATHS" && ac_cv_prog_QTPATHS="no" 28324fi 28325fi 28326QTPATHS=$ac_cv_prog_QTPATHS 28327if test -n "$QTPATHS"; then 28328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QTPATHS" >&5 28329printf "%s\n" "$QTPATHS" >&6; } 28330else 28331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28332printf "%s\n" "no" >&6; } 28333fi 28334 28335 28336 28337 if test "x$QTPATHS" != "xno" ; then 28338 28339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Qt5 framework" >&5 28340printf %s "checking Qt5 framework... " >&6; } 28341 28342 if test "x$qt5_framework_bin" = "x" ; then 28343 qt5_framework_bin="$($QTPATHS --binaries-dir)" 28344 fi 28345 qt5_path="$($QTPATHS --install-prefix)" 28346 28347 if test "x$qt5_path" != "x" ; then 28348 ac_ext=cpp 28349ac_cpp='$CXXCPP $CPPFLAGS' 28350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28353 28354 28355 CPPFADD=" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I$qt5_path/lib/QtWidgets.framework/Versions/5/Headers -I$qt5_path/lib/QtGui.framework/Versions/5/Headers -I$qt5_path/lib/QtCore.framework/Versions/5/Headers -I. -I$qt5_path/mkspecs/macx-clang -F$qt5_path/lib " 28356 28357 CPPFLAGS_SAVE="$CPPFLAGS" 28358 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 28359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28360/* end confdefs.h. */ 28361#include <QApplication> 28362int 28363main (void) 28364{ 28365int a; QApplication app(a, 0); 28366 ; 28367 return 0; 28368} 28369_ACEOF 28370if ac_fn_cxx_try_compile "$LINENO" 28371then : 28372 qt5_headers=yes 28373 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 28374else $as_nop 28375 CXXFLAGS_SAVE="${CXXFLAGS}" 28376 CXXFLAGS="${CXXFLAGS} -fPIC" 28377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28378/* end confdefs.h. */ 28379#include <QApplication> 28380int 28381main (void) 28382{ 28383int a; QApplication app(a, 0); 28384 ; 28385 return 0; 28386} 28387_ACEOF 28388if ac_fn_cxx_try_compile "$LINENO" 28389then : 28390 qt5_headers=yes 28391 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 28392 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 28393fi 28394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28395 CXXFLAGS="${CXXFLAGS_SAVE}" 28396fi 28397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28398 28399 CPPFLAGS="$CPPFLAGS_SAVE" 28400 28401 if test "x$qt5_headers" = "xyes" ; then 28402 28403 LIBSADD=" -F$qt5_path/lib -framework QtWidgets -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL" 28404 28405 CPPFLAGS_SAVE="$CPPFLAGS" 28406 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 28407 CXXFLAGS_SAVE="$CXXFLAGS" 28408 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 28409 LIBS_SAVE="$LIBS" 28410 LIBS="${LIBS}${LIBSADD}" 28411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28412/* end confdefs.h. */ 28413#include <QApplication> 28414int 28415main (void) 28416{ 28417int a; QApplication app(a, 0); 28418 ; 28419 return 0; 28420} 28421_ACEOF 28422if ac_fn_cxx_try_link "$LINENO" 28423then : 28424 qt5_libs=yes 28425 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 28426fi 28427rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28428 conftest$ac_exeext conftest.$ac_ext 28429 LIBS="$LIBS_SAVE" 28430 CPPFLAGS="${CPPFLAGS_SAVE}" 28431 CXXFLAGS="${CXXFLAGS_SAVE}" 28432 28433 else 28434 fc_qt5_usable=false 28435 fi 28436 ac_ext=c 28437ac_cpp='$CPP $CPPFLAGS' 28438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28440ac_compiler_gnu=$ac_cv_c_compiler_gnu 28441 28442 28443 if test "x$qt5_libs" = "xyes" ; then 28444 if test "x$MOCCMD" = "x" 28445then : 28446 MOCCMD="$qt5_framework_bin/moc" 28447fi 28448 if test -x $MOCCMD 28449then : 28450 fc_qt5_usable=true 28451else $as_nop 28452 fc_qt5_usable=false 28453fi 28454 else 28455 fc_qt5_usable=false 28456 fi 28457 fi 28458 28459 if test "x$fc_qt5_usable" = "xtrue" ; then 28460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 28461printf "%s\n" "found" >&6; } 28462 else 28463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28464printf "%s\n" "not found" >&6; } 28465 fi 28466 fi 28467;; 28468 *) 28469 ac_ext=cpp 28470ac_cpp='$CXXCPP $CPPFLAGS' 28471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28474 28475 28476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Qt5 headers" >&5 28477printf %s "checking Qt5 headers... " >&6; } 28478 28479 28480# Check whether --with-qt5-includes was given. 28481if test ${with_qt5_includes+y} 28482then : 28483 withval=$with_qt5_includes; 28484 if test "x$withval" != "x" ; then 28485 CPPFADD=" -I$withval -I$withval/QtCore -I$withval/QtGui -I$withval/QtWidgets" 28486 else 28487 CPPFADD="" 28488 fi 28489 28490 CPPFLAGS_SAVE="$CPPFLAGS" 28491 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 28492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28493/* end confdefs.h. */ 28494#include <QApplication> 28495int 28496main (void) 28497{ 28498int a; QApplication app(a, 0); 28499 ; 28500 return 0; 28501} 28502_ACEOF 28503if ac_fn_cxx_try_compile "$LINENO" 28504then : 28505 qt5_headers=yes 28506 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 28507else $as_nop 28508 CXXFLAGS_SAVE="${CXXFLAGS}" 28509 CXXFLAGS="${CXXFLAGS} -fPIC" 28510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28511/* end confdefs.h. */ 28512#include <QApplication> 28513int 28514main (void) 28515{ 28516int a; QApplication app(a, 0); 28517 ; 28518 return 0; 28519} 28520_ACEOF 28521if ac_fn_cxx_try_compile "$LINENO" 28522then : 28523 qt5_headers=yes 28524 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 28525 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 28526fi 28527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28528 CXXFLAGS="${CXXFLAGS_SAVE}" 28529fi 28530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28531 28532 CPPFLAGS="$CPPFLAGS_SAVE" 28533 28534else $as_nop 28535 POTENTIAL_PATHS="/usr/include /usr/include/qt5 /usr/include/qt" 28536 28537 # search multiarch paths too (if the multiarch tuple can be found) 28538 28539 # GCC has the --print-multiarch option 28540 if test "x$GCC" = "xyes" 28541then : 28542 28543 # unless it is an old version 28544 if ($CC --print-multiarch >/dev/null 2>/dev/null) 28545then : 28546 MULTIARCH_TUPLE=`$CC --print-multiarch` 28547else $as_nop 28548 MULTIARCH_TUPLE="$host_cpu-$host_os" 28549fi 28550else $as_nop 28551 MULTIARCH_TUPLE="$host_cpu-$host_os" 28552fi 28553 if test "x$MULTIARCH_TUPLE" != "x" 28554then : 28555 POTENTIAL_PATHS="$POTENTIAL_PATHS /usr/include/$MULTIARCH_TUPLE/qt5" 28556fi 28557 28558 28559 if test "x" != "x" ; then 28560 CPPFADD=" -I -I/QtCore -I/QtGui -I/QtWidgets" 28561 else 28562 CPPFADD="" 28563 fi 28564 28565 CPPFLAGS_SAVE="$CPPFLAGS" 28566 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 28567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28568/* end confdefs.h. */ 28569#include <QApplication> 28570int 28571main (void) 28572{ 28573int a; QApplication app(a, 0); 28574 ; 28575 return 0; 28576} 28577_ACEOF 28578if ac_fn_cxx_try_compile "$LINENO" 28579then : 28580 qt5_headers=yes 28581 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 28582else $as_nop 28583 CXXFLAGS_SAVE="${CXXFLAGS}" 28584 CXXFLAGS="${CXXFLAGS} -fPIC" 28585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28586/* end confdefs.h. */ 28587#include <QApplication> 28588int 28589main (void) 28590{ 28591int a; QApplication app(a, 0); 28592 ; 28593 return 0; 28594} 28595_ACEOF 28596if ac_fn_cxx_try_compile "$LINENO" 28597then : 28598 qt5_headers=yes 28599 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 28600 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 28601fi 28602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28603 CXXFLAGS="${CXXFLAGS_SAVE}" 28604fi 28605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28606 28607 CPPFLAGS="$CPPFLAGS_SAVE" 28608 28609 for TEST_PATH in $POTENTIAL_PATHS 28610 do 28611 if test "x$qt5_headers" != "xyes" ; then 28612 28613 if test "x$TEST_PATH" != "x" ; then 28614 CPPFADD=" -I$TEST_PATH -I$TEST_PATH/QtCore -I$TEST_PATH/QtGui -I$TEST_PATH/QtWidgets" 28615 else 28616 CPPFADD="" 28617 fi 28618 28619 CPPFLAGS_SAVE="$CPPFLAGS" 28620 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 28621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28622/* end confdefs.h. */ 28623#include <QApplication> 28624int 28625main (void) 28626{ 28627int a; QApplication app(a, 0); 28628 ; 28629 return 0; 28630} 28631_ACEOF 28632if ac_fn_cxx_try_compile "$LINENO" 28633then : 28634 qt5_headers=yes 28635 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 28636else $as_nop 28637 CXXFLAGS_SAVE="${CXXFLAGS}" 28638 CXXFLAGS="${CXXFLAGS} -fPIC" 28639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28640/* end confdefs.h. */ 28641#include <QApplication> 28642int 28643main (void) 28644{ 28645int a; QApplication app(a, 0); 28646 ; 28647 return 0; 28648} 28649_ACEOF 28650if ac_fn_cxx_try_compile "$LINENO" 28651then : 28652 qt5_headers=yes 28653 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 28654 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 28655fi 28656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28657 CXXFLAGS="${CXXFLAGS_SAVE}" 28658fi 28659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28660 28661 CPPFLAGS="$CPPFLAGS_SAVE" 28662 28663 fi 28664 done 28665fi 28666 28667 28668 if test "x$qt5_headers" = "xyes" ; then 28669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 28670printf "%s\n" "found" >&6; } 28671 28672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Qt5 libraries" >&5 28673printf %s "checking Qt5 libraries... " >&6; } 28674 28675# Check whether --with-qt5-libs was given. 28676if test ${with_qt5_libs+y} 28677then : 28678 withval=$with_qt5_libs; 28679 if test "x$withval" != "x" ; then 28680 LIBSADD=" -L$withval -lQt5Gui -lQt5Core -lQt5Widgets" 28681 else 28682 LIBSADD=" -lQt5Gui -lQt5Core -lQt5Widgets" 28683 fi 28684 28685 CPPFLAGS_SAVE="$CPPFLAGS" 28686 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 28687 CXXFLAGS_SAVE="$CXXFLAGS" 28688 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 28689 LIBS_SAVE="$LIBS" 28690 LIBS="${LIBS}${LIBSADD}" 28691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28692/* end confdefs.h. */ 28693#include <QApplication> 28694int 28695main (void) 28696{ 28697int a; QApplication app(a, 0); 28698 ; 28699 return 0; 28700} 28701_ACEOF 28702if ac_fn_cxx_try_link "$LINENO" 28703then : 28704 qt5_libs=yes 28705 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 28706fi 28707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28708 conftest$ac_exeext conftest.$ac_ext 28709 LIBS="$LIBS_SAVE" 28710 CPPFLAGS="${CPPFLAGS_SAVE}" 28711 CXXFLAGS="${CXXFLAGS_SAVE}" 28712 28713else $as_nop 28714 POTENTIAL_PATHS="/usr/lib/qt5 /usr/lib/qt" 28715 28716 # search multiarch paths too (if the multiarch tuple can be found) 28717 28718 # GCC has the --print-multiarch option 28719 if test "x$GCC" = "xyes" 28720then : 28721 28722 # unless it is an old version 28723 if ($CC --print-multiarch >/dev/null 2>/dev/null) 28724then : 28725 MULTIARCH_TUPLE=`$CC --print-multiarch` 28726else $as_nop 28727 MULTIARCH_TUPLE="$host_cpu-$host_os" 28728fi 28729else $as_nop 28730 MULTIARCH_TUPLE="$host_cpu-$host_os" 28731fi 28732 if test "x$MULTIARCH_TUPLE" != "x" 28733then : 28734 POTENTIAL_PATHS="$POTENTIAL_PATHS /usr/lib/$MULTIARCH_TUPLE/qt5" 28735fi 28736 28737 28738 if test "x" != "x" ; then 28739 LIBSADD=" -L -lQt5Gui -lQt5Core -lQt5Widgets" 28740 else 28741 LIBSADD=" -lQt5Gui -lQt5Core -lQt5Widgets" 28742 fi 28743 28744 CPPFLAGS_SAVE="$CPPFLAGS" 28745 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 28746 CXXFLAGS_SAVE="$CXXFLAGS" 28747 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 28748 LIBS_SAVE="$LIBS" 28749 LIBS="${LIBS}${LIBSADD}" 28750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28751/* end confdefs.h. */ 28752#include <QApplication> 28753int 28754main (void) 28755{ 28756int a; QApplication app(a, 0); 28757 ; 28758 return 0; 28759} 28760_ACEOF 28761if ac_fn_cxx_try_link "$LINENO" 28762then : 28763 qt5_libs=yes 28764 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 28765fi 28766rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28767 conftest$ac_exeext conftest.$ac_ext 28768 LIBS="$LIBS_SAVE" 28769 CPPFLAGS="${CPPFLAGS_SAVE}" 28770 CXXFLAGS="${CXXFLAGS_SAVE}" 28771 28772 for TEST_PATH in $POTENTIAL_PATHS 28773 do 28774 if test "x$qt5_libs" != "xyes" ; then 28775 28776 if test "x$TEST_PATH" != "x" ; then 28777 LIBSADD=" -L$TEST_PATH -lQt5Gui -lQt5Core -lQt5Widgets" 28778 else 28779 LIBSADD=" -lQt5Gui -lQt5Core -lQt5Widgets" 28780 fi 28781 28782 CPPFLAGS_SAVE="$CPPFLAGS" 28783 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 28784 CXXFLAGS_SAVE="$CXXFLAGS" 28785 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 28786 LIBS_SAVE="$LIBS" 28787 LIBS="${LIBS}${LIBSADD}" 28788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28789/* end confdefs.h. */ 28790#include <QApplication> 28791int 28792main (void) 28793{ 28794int a; QApplication app(a, 0); 28795 ; 28796 return 0; 28797} 28798_ACEOF 28799if ac_fn_cxx_try_link "$LINENO" 28800then : 28801 qt5_libs=yes 28802 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 28803fi 28804rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28805 conftest$ac_exeext conftest.$ac_ext 28806 LIBS="$LIBS_SAVE" 28807 CPPFLAGS="${CPPFLAGS_SAVE}" 28808 CXXFLAGS="${CXXFLAGS_SAVE}" 28809 28810 fi 28811 done 28812fi 28813 28814 fi 28815 28816 if test "x$qt5_libs" = "xyes" ; then 28817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 28818printf "%s\n" "found" >&6; } 28819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5 >= 5.2" >&5 28820printf %s "checking for Qt5 >= 5.2... " >&6; } 28821 28822 CPPFLAGS_SAVE="$CPPFLAGS" 28823 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 28824 CXXFLAGS_SAVE="$CXXFLAGS" 28825 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 28826 LIBS_SAVE="$LIBS" 28827 LIBS="${LIBS}${LIBSADD}" 28828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28829/* end confdefs.h. */ 28830#include <QtCore> 28831int 28832main (void) 28833{ 28834 28835 #if QT_VERSION < 0x050200 28836 fail 28837 #endif 28838 28839 ; 28840 return 0; 28841} 28842_ACEOF 28843if ac_fn_cxx_try_compile "$LINENO" 28844then : 28845 fc_qt52=yes 28846else $as_nop 28847 fc_qt52=no 28848fi 28849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28850 LIBS="$LIBS_SAVE" 28851 CPPFLAGS="${CPPFLAGS_SAVE}" 28852 CXXFLAGS="${CXXFLAGS_SAVE}" 28853 28854 fi 28855 28856 ac_ext=c 28857ac_cpp='$CPP $CPPFLAGS' 28858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28860ac_compiler_gnu=$ac_cv_c_compiler_gnu 28861 28862 if test "x$fc_qt52" = "xyes" ; then 28863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 28864printf "%s\n" "ok" >&6; } 28865 28866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the Qt 5 moc command" >&5 28867printf %s "checking the Qt 5 moc command... " >&6; } 28868 28869 if test "x$MOCCMD" = "x" 28870then : 28871 if moc -v >/dev/null 2>/dev/null && 28872 (test "`moc -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 28873 test "`moc -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 28874 test "`moc -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 28875then : 28876 MOCCMD="moc" 28877else $as_nop 28878 if qtchooser -run-tool=moc -qt=5 -v >/dev/null 2>/dev/null && 28879 (test "`qtchooser -run-tool=moc -qt=5 -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 28880 test "`qtchooser -run-tool=moc -qt=5 -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 28881 test "`qtchooser -run-tool=moc -qt=5 -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 28882then : 28883 MOCCMD="qtchooser -run-tool=moc -qt=5" 28884else $as_nop 28885 if moc-qt5 -v >/dev/null 2>/dev/null && 28886 (test "`moc-qt5 -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 28887 test "`moc-qt5 -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 28888 test "`moc-qt5 -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 28889then : 28890 MOCCMD="moc-qt5" 28891else $as_nop 28892 MOCCMD="" 28893fi 28894fi 28895fi 28896else $as_nop 28897 if $MOCCMD -v >/dev/null 2>/dev/null && 28898 (test "`$MOCCMD -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 28899 test "`$MOCCMD -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 28900 test "`$MOCCMD -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 28901then : 28902 MOCCMD="$MOCCMD" 28903else $as_nop 28904 as_fn_error $? "\"MOCCMD set to a bad value ($MOCCMD)\"" "$LINENO" 5 28905fi 28906fi 28907 28908 if test "x$MOCCMD" = "x" 28909then : 28910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28911printf "%s\n" "not found" >&6; }; fc_qt5_usable=false 28912else $as_nop 28913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MOCCMD" >&5 28914printf "%s\n" "$MOCCMD" >&6; }; fc_qt5_usable=true 28915fi 28916 else 28917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28918printf "%s\n" "not found" >&6; } 28919 fc_qt5_usable=false 28920 fi 28921;; 28922 esac 28923 fi 28924 28925 28926 if test x$fc_qt5_usable = xtrue ; then 28927 gui_qt_cppflags=$FC_QT5_CPPFLAGS 28928 gui_qt_cxxflags=$FC_QT5_CXXFLAGS 28929 gui_qt_libs="$FC_QT5_LIBS $MWINDOWS_FLAG" 28930 else 28931 qt_fail_reason="Missing Qt5 development files" 28932 fi 28933 28934 else 28935 qt_fail_reason="C++ compiler does not work" 28936 fi 28937 28938 if test "x$fc_qt5_usable" = "xtrue" ; then 28939 gui_qt=yes 28940 if test "x$client" = "xauto" ; then 28941 client=yes 28942 fi 28943 elif test "x$gui_qt" = "xyes" ; then 28944 as_fn_error $? "selected client 'qt' cannot be built: $qt_fail_reason" "$LINENO" 5 28945 fi 28946fi 28947 28948 28949 28950 if test "x$gui_sdl" = "xyes" || test "x$client" = "xall" || 28951 test "x$client" = "xauto" ; then 28952 if test "x$SDL_mixer" = "xsdl2" ; then 28953 if test "x$gui_sdl" = "xyes"; then 28954 as_fn_error $? "specified client 'sdl' not configurable (cannot use SDL2_mixer with it. Try --enable-sdl-mixer=sdl))" "$LINENO" 5 28955 fi 28956 sdl_found=no 28957 else 28958 28959# Check whether --with-sdl-prefix was given. 28960if test ${with_sdl_prefix+y} 28961then : 28962 withval=$with_sdl_prefix; sdl_prefix="$withval" 28963else $as_nop 28964 sdl_prefix="" 28965fi 28966 28967 28968 28969# Check whether --with-sdl-exec-prefix was given. 28970if test ${with_sdl_exec_prefix+y} 28971then : 28972 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 28973else $as_nop 28974 sdl_exec_prefix="" 28975fi 28976 28977 28978# Check whether --enable-sdltest was given. 28979if test ${enable_sdltest+y} 28980then : 28981 enableval=$enable_sdltest; 28982else $as_nop 28983 enable_sdltest=yes 28984fi 28985 28986 28987 if test x$sdl_exec_prefix != x ; then 28988 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 28989 if test x${SDL_CONFIG+set} != xset ; then 28990 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 28991 fi 28992 fi 28993 if test x$sdl_prefix != x ; then 28994 sdl_args="$sdl_args --prefix=$sdl_prefix" 28995 if test x${SDL_CONFIG+set} != xset ; then 28996 SDL_CONFIG=$sdl_prefix/bin/sdl-config 28997 fi 28998 fi 28999 29000 if test "x$prefix" != xNONE; then 29001 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 29002 fi 29003 # Extract the first word of "sdl-config", so it can be a program name with args. 29004set dummy sdl-config; ac_word=$2 29005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29006printf %s "checking for $ac_word... " >&6; } 29007if test ${ac_cv_path_SDL_CONFIG+y} 29008then : 29009 printf %s "(cached) " >&6 29010else $as_nop 29011 case $SDL_CONFIG in 29012 [\\/]* | ?:[\\/]*) 29013 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 29014 ;; 29015 *) 29016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29017for as_dir in $PATH 29018do 29019 IFS=$as_save_IFS 29020 case $as_dir in #((( 29021 '') as_dir=./ ;; 29022 */) ;; 29023 *) as_dir=$as_dir/ ;; 29024 esac 29025 for ac_exec_ext in '' $ac_executable_extensions; do 29026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29027 ac_cv_path_SDL_CONFIG="$as_dir$ac_word$ac_exec_ext" 29028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29029 break 2 29030 fi 29031done 29032 done 29033IFS=$as_save_IFS 29034 29035 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 29036 ;; 29037esac 29038fi 29039SDL_CONFIG=$ac_cv_path_SDL_CONFIG 29040if test -n "$SDL_CONFIG"; then 29041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 29042printf "%s\n" "$SDL_CONFIG" >&6; } 29043else 29044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29045printf "%s\n" "no" >&6; } 29046fi 29047 29048 29049 min_sdl_version=1.1.4 29050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 29051printf %s "checking for SDL - version >= $min_sdl_version... " >&6; } 29052 no_sdl="" 29053 if test "$SDL_CONFIG" = "no" ; then 29054 no_sdl=yes 29055 else 29056 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 29057 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 29058 29059 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 29060 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 29061 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 29062 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 29063 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 29064 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 29065 if test "x$enable_sdltest" = "xyes" ; then 29066 ac_save_CFLAGS="$CFLAGS" 29067 ac_save_CXXFLAGS="$CXXFLAGS" 29068 ac_save_LIBS="$LIBS" 29069 CFLAGS="$CFLAGS $SDL_CFLAGS" 29070 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 29071 LIBS="$LIBS $SDL_LIBS" 29072 rm -f conf.sdltest 29073 if test "$cross_compiling" = yes 29074then : 29075 echo $ac_n "cross compiling; assumed OK... $ac_c" 29076else $as_nop 29077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29078/* end confdefs.h. */ 29079 29080#include <stdio.h> 29081#include <stdlib.h> 29082#include <string.h> 29083#include "SDL.h" 29084 29085char* 29086my_strdup (char *str) 29087{ 29088 char *new_str; 29089 29090 if (str) 29091 { 29092 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 29093 strcpy (new_str, str); 29094 } 29095 else 29096 new_str = NULL; 29097 29098 return new_str; 29099} 29100 29101int main (int argc, char *argv[]) 29102{ 29103 int major, minor, micro; 29104 char *tmp_version; 29105 29106 /* This hangs on some systems (?) 29107 system ("touch conf.sdltest"); 29108 */ 29109 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 29110 29111 /* HP/UX 9 (%@#!) writes to sscanf strings */ 29112 tmp_version = my_strdup("$min_sdl_version"); 29113 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 29114 printf("%s, bad version string\n", "$min_sdl_version"); 29115 exit(1); 29116 } 29117 29118 if (($sdl_major_version > major) || 29119 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 29120 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 29121 { 29122 return 0; 29123 } 29124 else 29125 { 29126 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 29127 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 29128 printf("*** best to upgrade to the required version.\n"); 29129 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 29130 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 29131 printf("*** config.cache before re-running configure\n"); 29132 return 1; 29133 } 29134} 29135 29136 29137_ACEOF 29138if ac_fn_c_try_run "$LINENO" 29139then : 29140 29141else $as_nop 29142 no_sdl=yes 29143fi 29144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29145 conftest.$ac_objext conftest.beam conftest.$ac_ext 29146fi 29147 29148 CFLAGS="$ac_save_CFLAGS" 29149 CXXFLAGS="$ac_save_CXXFLAGS" 29150 LIBS="$ac_save_LIBS" 29151 fi 29152 fi 29153 if test "x$no_sdl" = x ; then 29154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29155printf "%s\n" "yes" >&6; } 29156 sdl_found="yes" 29157 else 29158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29159printf "%s\n" "no" >&6; } 29160 if test "$SDL_CONFIG" = "no" ; then 29161 echo "*** The sdl-config script installed by SDL could not be found" 29162 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 29163 echo "*** your path, or set the SDL_CONFIG environment variable to the" 29164 echo "*** full path to sdl-config." 29165 else 29166 if test -f conf.sdltest ; then 29167 : 29168 else 29169 echo "*** Could not run SDL test program, checking why..." 29170 CFLAGS="$CFLAGS $SDL_CFLAGS" 29171 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 29172 LIBS="$LIBS $SDL_LIBS" 29173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29174/* end confdefs.h. */ 29175 29176#include <stdio.h> 29177#include "SDL.h" 29178 29179int main(int argc, char *argv[]) 29180{ return 0; } 29181#undef main 29182#define main K_and_R_C_main 29183 29184int 29185main (void) 29186{ 29187 return 0; 29188 ; 29189 return 0; 29190} 29191_ACEOF 29192if ac_fn_c_try_link "$LINENO" 29193then : 29194 echo "*** The test program compiled, but did not run. This usually means" 29195 echo "*** that the run-time linker is not finding SDL or finding the wrong" 29196 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 29197 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 29198 echo "*** to the installed location Also, make sure you have run ldconfig if that" 29199 echo "*** is required on your system" 29200 echo "***" 29201 echo "*** If you have an old version installed, it is best to remove it, although" 29202 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 29203else $as_nop 29204 echo "*** The test program failed to compile or link. See the file config.log for the" 29205 echo "*** exact error that occurred. This usually means SDL was incorrectly installed" 29206 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 29207 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 29208fi 29209rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29210 conftest$ac_exeext conftest.$ac_ext 29211 CFLAGS="$ac_save_CFLAGS" 29212 CXXFLAGS="$ac_save_CXXFLAGS" 29213 LIBS="$ac_save_LIBS" 29214 fi 29215 fi 29216 SDL_CFLAGS="" 29217 SDL_LIBS="" 29218 sdl_found="no" 29219 fi 29220 29221 29222 rm -f conf.sdltest 29223 29224 fi 29225 if test "$sdl_found" = yes; then 29226 gui_sdl_cflags="$SDL_CFLAGS" 29227 gui_sdl_libs="$SDL_LIBS" 29228 29229 ac_save_CPPFLAGS="$CPPFLAGS" 29230 ac_save_CFLAGS="$CFLAGS" 29231 ac_save_LIBS="$LIBS" 29232 CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" 29233 CFLAGS="$CFLAGS $SDL_CFLAGS" 29234 LIBS="$LIBS $SDL_LIBS" 29235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5 29236printf %s "checking for IMG_Load in -lSDL_image... " >&6; } 29237if test ${ac_cv_lib_SDL_image_IMG_Load+y} 29238then : 29239 printf %s "(cached) " >&6 29240else $as_nop 29241 ac_check_lib_save_LIBS=$LIBS 29242LIBS="-lSDL_image $LIBS" 29243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29244/* end confdefs.h. */ 29245 29246/* Override any GCC internal prototype to avoid an error. 29247 Use char because int might match the return type of a GCC 29248 builtin and then its argument prototype would still apply. */ 29249char IMG_Load (); 29250int 29251main (void) 29252{ 29253return IMG_Load (); 29254 ; 29255 return 0; 29256} 29257_ACEOF 29258if ac_fn_c_try_link "$LINENO" 29259then : 29260 ac_cv_lib_SDL_image_IMG_Load=yes 29261else $as_nop 29262 ac_cv_lib_SDL_image_IMG_Load=no 29263fi 29264rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29265 conftest$ac_exeext conftest.$ac_ext 29266LIBS=$ac_check_lib_save_LIBS 29267fi 29268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5 29269printf "%s\n" "$ac_cv_lib_SDL_image_IMG_Load" >&6; } 29270if test "x$ac_cv_lib_SDL_image_IMG_Load" = xyes 29271then : 29272 sdl_lib_found="yes" 29273else $as_nop 29274 sdl_lib_found="no" 29275sdl_h_found="no" 29276fi 29277 29278 if test "x$sdl_lib_found" = "xyes" ; then 29279 ac_fn_c_check_header_compile "$LINENO" "SDL/SDL_image.h" "ac_cv_header_SDL_SDL_image_h" "$ac_includes_default" 29280if test "x$ac_cv_header_SDL_SDL_image_h" = xyes 29281then : 29282 sdl_h_found="yes" 29283gui_sdl_libs="${gui_sdl_libs} -lSDL_image" 29284else $as_nop 29285 sdl_h_found="no" 29286fi 29287 29288 fi 29289 CPPFLAGS="$ac_save_CPPFLAGS" 29290 CFLAGS="$ac_save_CFLAGS" 29291 LIBS="$ac_save_LIBS" 29292 29293 if test "x$sdl_h_found" = "xyes" ; then 29294 29295 ac_save_CPPFLAGS="$CPPFLAGS" 29296 ac_save_CFLAGS="$CFLAGS" 29297 ac_save_LIBS="$LIBS" 29298 CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" 29299 CFLAGS="$CFLAGS $SDL_CFLAGS" 29300 LIBS="$LIBS $SDL_LIBS" 29301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rotozoomSurface in -lSDL_gfx" >&5 29302printf %s "checking for rotozoomSurface in -lSDL_gfx... " >&6; } 29303if test ${ac_cv_lib_SDL_gfx_rotozoomSurface+y} 29304then : 29305 printf %s "(cached) " >&6 29306else $as_nop 29307 ac_check_lib_save_LIBS=$LIBS 29308LIBS="-lSDL_gfx $LIBS" 29309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29310/* end confdefs.h. */ 29311 29312/* Override any GCC internal prototype to avoid an error. 29313 Use char because int might match the return type of a GCC 29314 builtin and then its argument prototype would still apply. */ 29315char rotozoomSurface (); 29316int 29317main (void) 29318{ 29319return rotozoomSurface (); 29320 ; 29321 return 0; 29322} 29323_ACEOF 29324if ac_fn_c_try_link "$LINENO" 29325then : 29326 ac_cv_lib_SDL_gfx_rotozoomSurface=yes 29327else $as_nop 29328 ac_cv_lib_SDL_gfx_rotozoomSurface=no 29329fi 29330rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29331 conftest$ac_exeext conftest.$ac_ext 29332LIBS=$ac_check_lib_save_LIBS 29333fi 29334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_gfx_rotozoomSurface" >&5 29335printf "%s\n" "$ac_cv_lib_SDL_gfx_rotozoomSurface" >&6; } 29336if test "x$ac_cv_lib_SDL_gfx_rotozoomSurface" = xyes 29337then : 29338 sdl_lib_found="yes" 29339else $as_nop 29340 sdl_lib_found="no" 29341sdl_h_found="no" 29342fi 29343 29344 if test "x$sdl_lib_found" = "xyes" ; then 29345 ac_fn_c_check_header_compile "$LINENO" "SDL/SDL_rotozoom.h" "ac_cv_header_SDL_SDL_rotozoom_h" "$ac_includes_default" 29346if test "x$ac_cv_header_SDL_SDL_rotozoom_h" = xyes 29347then : 29348 sdl_h_found="yes" 29349gui_sdl_libs="${gui_sdl_libs} -lSDL_gfx" 29350else $as_nop 29351 sdl_h_found="no" 29352fi 29353 29354 fi 29355 CPPFLAGS="$ac_save_CPPFLAGS" 29356 CFLAGS="$ac_save_CFLAGS" 29357 LIBS="$ac_save_LIBS" 29358 29359 else 29360 missing_project="SDL_image" 29361 fi 29362 if test "x$sdl_h_found" = "xyes" ; then 29363 29364 ac_save_CPPFLAGS="$CPPFLAGS" 29365 ac_save_CFLAGS="$CFLAGS" 29366 ac_save_LIBS="$LIBS" 29367 CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" 29368 CFLAGS="$CFLAGS $SDL_CFLAGS" 29369 LIBS="$LIBS $SDL_LIBS" 29370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTF_OpenFont in -lSDL_ttf" >&5 29371printf %s "checking for TTF_OpenFont in -lSDL_ttf... " >&6; } 29372if test ${ac_cv_lib_SDL_ttf_TTF_OpenFont+y} 29373then : 29374 printf %s "(cached) " >&6 29375else $as_nop 29376 ac_check_lib_save_LIBS=$LIBS 29377LIBS="-lSDL_ttf $LIBS" 29378cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29379/* end confdefs.h. */ 29380 29381/* Override any GCC internal prototype to avoid an error. 29382 Use char because int might match the return type of a GCC 29383 builtin and then its argument prototype would still apply. */ 29384char TTF_OpenFont (); 29385int 29386main (void) 29387{ 29388return TTF_OpenFont (); 29389 ; 29390 return 0; 29391} 29392_ACEOF 29393if ac_fn_c_try_link "$LINENO" 29394then : 29395 ac_cv_lib_SDL_ttf_TTF_OpenFont=yes 29396else $as_nop 29397 ac_cv_lib_SDL_ttf_TTF_OpenFont=no 29398fi 29399rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29400 conftest$ac_exeext conftest.$ac_ext 29401LIBS=$ac_check_lib_save_LIBS 29402fi 29403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 29404printf "%s\n" "$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6; } 29405if test "x$ac_cv_lib_SDL_ttf_TTF_OpenFont" = xyes 29406then : 29407 sdl_lib_found="yes" 29408else $as_nop 29409 sdl_lib_found="no" 29410sdl_h_found="no" 29411fi 29412 29413 if test "x$sdl_lib_found" = "xyes" ; then 29414 ac_fn_c_check_header_compile "$LINENO" "SDL/SDL_ttf.h" "ac_cv_header_SDL_SDL_ttf_h" "$ac_includes_default" 29415if test "x$ac_cv_header_SDL_SDL_ttf_h" = xyes 29416then : 29417 sdl_h_found="yes" 29418gui_sdl_libs="${gui_sdl_libs} -lSDL_ttf" 29419else $as_nop 29420 sdl_h_found="no" 29421fi 29422 29423 fi 29424 CPPFLAGS="$ac_save_CPPFLAGS" 29425 CFLAGS="$ac_save_CFLAGS" 29426 LIBS="$ac_save_LIBS" 29427 29428 elif test "x$missing_project" = "x" ; then 29429 missing_project="SDL_gfx" 29430 fi 29431 if test "x$sdl_h_found" = "xyes" ; then 29432 29433pkg_failed=no 29434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FT2" >&5 29435printf %s "checking for FT2... " >&6; } 29436 29437if test -n "$FT2_CFLAGS"; then 29438 pkg_cv_FT2_CFLAGS="$FT2_CFLAGS" 29439 elif test -n "$PKG_CONFIG"; then 29440 if test -n "$PKG_CONFIG" && \ 29441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 7.0.1\""; } >&5 29442 ($PKG_CONFIG --exists --print-errors "freetype2 >= 7.0.1") 2>&5 29443 ac_status=$? 29444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29445 test $ac_status = 0; }; then 29446 pkg_cv_FT2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 7.0.1" 2>/dev/null` 29447 test "x$?" != "x0" && pkg_failed=yes 29448else 29449 pkg_failed=yes 29450fi 29451 else 29452 pkg_failed=untried 29453fi 29454if test -n "$FT2_LIBS"; then 29455 pkg_cv_FT2_LIBS="$FT2_LIBS" 29456 elif test -n "$PKG_CONFIG"; then 29457 if test -n "$PKG_CONFIG" && \ 29458 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 7.0.1\""; } >&5 29459 ($PKG_CONFIG --exists --print-errors "freetype2 >= 7.0.1") 2>&5 29460 ac_status=$? 29461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29462 test $ac_status = 0; }; then 29463 pkg_cv_FT2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 7.0.1" 2>/dev/null` 29464 test "x$?" != "x0" && pkg_failed=yes 29465else 29466 pkg_failed=yes 29467fi 29468 else 29469 pkg_failed=untried 29470fi 29471 29472 29473 29474if test $pkg_failed = yes; then 29475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29476printf "%s\n" "no" >&6; } 29477 29478if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29479 _pkg_short_errors_supported=yes 29480else 29481 _pkg_short_errors_supported=no 29482fi 29483 if test $_pkg_short_errors_supported = yes; then 29484 FT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 7.0.1" 2>&1` 29485 else 29486 FT2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 7.0.1" 2>&1` 29487 fi 29488 # Put the nasty error message in config.log where it belongs 29489 echo "$FT2_PKG_ERRORS" >&5 29490 29491 freetype_found="no" 29492elif test $pkg_failed = untried; then 29493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29494printf "%s\n" "no" >&6; } 29495 freetype_found="no" 29496else 29497 FT2_CFLAGS=$pkg_cv_FT2_CFLAGS 29498 FT2_LIBS=$pkg_cv_FT2_LIBS 29499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29500printf "%s\n" "yes" >&6; } 29501 freetype_found="yes" 29502fi 29503 if test "$freetype_found" = yes; then 29504 gui_sdl_cflags="$gui_sdl_cflags $FT2_CFLAGS" 29505 gui_sdl_libs="$gui_sdl_libs $FT2_LIBS" 29506 found_sdl_client=yes 29507 elif test "x$gui_sdl" = "xyes"; then 29508 as_fn_error $? "specified client 'sdl' not configurable (FreeType2 >= 2.1.3 is needed (www.freetype.org))" "$LINENO" 5 29509 fi 29510 elif test "x$gui_sdl" = "xyes"; then 29511 if test "x$missing_project" = "x" ; then 29512 missing_project="SDL_ttf" 29513 fi 29514 if test "x$sdl_lib_found" = "xyes" ; then 29515 missing_type="-devel" 29516 else 29517 missing_type="" 29518 fi 29519 as_fn_error $? "specified client 'sdl' not configurable (${missing_project}${missing_type} is needed (www.libsdl.org))" "$LINENO" 5 29520 fi 29521 fi 29522 29523 if test "$found_sdl_client" = yes; then 29524 gui_sdl=yes 29525 if test "x$client" = "xauto" ; then 29526 client=yes 29527 fi 29528 29529 29530 29531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcharset" >&5 29532printf %s "checking for libcharset... " >&6; } 29533if test ${am_cv_libcharset+y} 29534then : 29535 printf %s "(cached) " >&6 29536else $as_nop 29537 lc_save_LIBS="$LIBS" 29538 LIBS="$LIBS $LIBICONV" 29539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29540/* end confdefs.h. */ 29541#include <libcharset.h> 29542int 29543main (void) 29544{ 29545locale_charset() 29546 ; 29547 return 0; 29548} 29549_ACEOF 29550if ac_fn_c_try_link "$LINENO" 29551then : 29552 am_cv_libcharset=yes 29553else $as_nop 29554 am_cv_libcharset=no 29555fi 29556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29557 conftest$ac_exeext conftest.$ac_ext 29558 LIBS="$lc_save_LIBS" 29559 29560fi 29561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_libcharset" >&5 29562printf "%s\n" "$am_cv_libcharset" >&6; } 29563 if test $am_cv_libcharset = yes; then 29564 29565printf "%s\n" "#define HAVE_LIBCHARSET 1" >>confdefs.h 29566 29567 fi 29568 29569 29570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 29571printf %s "checking for nl_langinfo and CODESET... " >&6; } 29572if test ${am_cv_langinfo_codeset+y} 29573then : 29574 printf %s "(cached) " >&6 29575else $as_nop 29576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29577/* end confdefs.h. */ 29578#include <langinfo.h> 29579int 29580main (void) 29581{ 29582char* cs = nl_langinfo(CODESET); return !cs; 29583 ; 29584 return 0; 29585} 29586_ACEOF 29587if ac_fn_c_try_link "$LINENO" 29588then : 29589 am_cv_langinfo_codeset=yes 29590else $as_nop 29591 am_cv_langinfo_codeset=no 29592fi 29593rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29594 conftest$ac_exeext conftest.$ac_ext 29595 29596fi 29597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 29598printf "%s\n" "$am_cv_langinfo_codeset" >&6; } 29599 if test $am_cv_langinfo_codeset = yes; then 29600 29601printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 29602 29603 fi 29604 29605 gui_sdl_libs="$LIBICONV $gui_sdl_libs" 29606 29607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 29608printf %s "checking for connect in -lsocket... " >&6; } 29609if test ${ac_cv_lib_socket_connect+y} 29610then : 29611 printf %s "(cached) " >&6 29612else $as_nop 29613 ac_check_lib_save_LIBS=$LIBS 29614LIBS="-lsocket $LIBS" 29615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29616/* end confdefs.h. */ 29617 29618/* Override any GCC internal prototype to avoid an error. 29619 Use char because int might match the return type of a GCC 29620 builtin and then its argument prototype would still apply. */ 29621char connect (); 29622int 29623main (void) 29624{ 29625return connect (); 29626 ; 29627 return 0; 29628} 29629_ACEOF 29630if ac_fn_c_try_link "$LINENO" 29631then : 29632 ac_cv_lib_socket_connect=yes 29633else $as_nop 29634 ac_cv_lib_socket_connect=no 29635fi 29636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29637 conftest$ac_exeext conftest.$ac_ext 29638LIBS=$ac_check_lib_save_LIBS 29639fi 29640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 29641printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } 29642if test "x$ac_cv_lib_socket_connect" = xyes 29643then : 29644 gui_sdl_libs="-lsocket $gui_sdl_libs" 29645fi 29646 29647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5 29648printf %s "checking for gethostbyaddr in -lbind... " >&6; } 29649if test ${ac_cv_lib_bind_gethostbyaddr+y} 29650then : 29651 printf %s "(cached) " >&6 29652else $as_nop 29653 ac_check_lib_save_LIBS=$LIBS 29654LIBS="-lbind $LIBS" 29655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29656/* end confdefs.h. */ 29657 29658/* Override any GCC internal prototype to avoid an error. 29659 Use char because int might match the return type of a GCC 29660 builtin and then its argument prototype would still apply. */ 29661char gethostbyaddr (); 29662int 29663main (void) 29664{ 29665return gethostbyaddr (); 29666 ; 29667 return 0; 29668} 29669_ACEOF 29670if ac_fn_c_try_link "$LINENO" 29671then : 29672 ac_cv_lib_bind_gethostbyaddr=yes 29673else $as_nop 29674 ac_cv_lib_bind_gethostbyaddr=no 29675fi 29676rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29677 conftest$ac_exeext conftest.$ac_ext 29678LIBS=$ac_check_lib_save_LIBS 29679fi 29680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5 29681printf "%s\n" "$ac_cv_lib_bind_gethostbyaddr" >&6; } 29682if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes 29683then : 29684 gui_sdl_libs="-lbind $gui_sdl_libs" 29685fi 29686 29687 29688 gui_sdl_libs="$(echo $gui_sdl_libs | $SED 's/-mwindows//g') $MWINDOWS_FLAG" 29689 29690 elif test "x$gui_sdl" = "xyes"; then 29691 as_fn_error $? "specified client 'sdl' not configurable (SDL >= 1.1.4 is needed (www.libsdl.org))" "$LINENO" 5 29692 fi 29693 fi 29694 29695 29696 29697 if test "x$gui_sdl2" = "xyes" || test "x$client" = "xall" || 29698 test "x$client" = "xauto" ; then 29699 if test "x$SDL_mixer" = "xsdl" ; then 29700 if test "x$gui_sdl2" = "xyes"; then 29701 as_fn_error $? "specified client 'sdl2' not configurable (cannot use SDL_mixer with it. Try --enable-sdl-mixer=sdl2))" "$LINENO" 5 29702 fi 29703 sdl2_found=no 29704 else 29705 29706# Check whether --with-sdl2-prefix was given. 29707if test ${with_sdl2_prefix+y} 29708then : 29709 withval=$with_sdl2_prefix; sdl2_prefix="$withval" 29710else $as_nop 29711 sdl2_prefix="" 29712fi 29713 29714 29715 29716# Check whether --with-sdl2-exec-prefix was given. 29717if test ${with_sdl2_exec_prefix+y} 29718then : 29719 withval=$with_sdl2_exec_prefix; sdl2_exec_prefix="$withval" 29720else $as_nop 29721 sdl2_exec_prefix="" 29722fi 29723 29724 29725# Check whether --enable-sdl2test was given. 29726if test ${enable_sdl2test+y} 29727then : 29728 enableval=$enable_sdl2test; 29729else $as_nop 29730 enable_sdl2test=yes 29731fi 29732 29733 29734# Check whether --enable-sdl2framework was given. 29735if test ${enable_sdl2framework+y} 29736then : 29737 enableval=$enable_sdl2framework; 29738else $as_nop 29739 search_sdl2_framework=yes 29740fi 29741 29742 29743 29744 29745 min_sdl2_version=2.0.0 29746 29747 if test "x$sdl2_prefix$sdl2_exec_prefix" = x ; then 29748 29749pkg_failed=no 29750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL2" >&5 29751printf %s "checking for SDL2... " >&6; } 29752 29753if test -n "$SDL2_CFLAGS"; then 29754 pkg_cv_SDL2_CFLAGS="$SDL2_CFLAGS" 29755 elif test -n "$PKG_CONFIG"; then 29756 if test -n "$PKG_CONFIG" && \ 29757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl2_version\""; } >&5 29758 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl2_version") 2>&5 29759 ac_status=$? 29760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29761 test $ac_status = 0; }; then 29762 pkg_cv_SDL2_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl2_version" 2>/dev/null` 29763 test "x$?" != "x0" && pkg_failed=yes 29764else 29765 pkg_failed=yes 29766fi 29767 else 29768 pkg_failed=untried 29769fi 29770if test -n "$SDL2_LIBS"; then 29771 pkg_cv_SDL2_LIBS="$SDL2_LIBS" 29772 elif test -n "$PKG_CONFIG"; then 29773 if test -n "$PKG_CONFIG" && \ 29774 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl2_version\""; } >&5 29775 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl2_version") 2>&5 29776 ac_status=$? 29777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29778 test $ac_status = 0; }; then 29779 pkg_cv_SDL2_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl2_version" 2>/dev/null` 29780 test "x$?" != "x0" && pkg_failed=yes 29781else 29782 pkg_failed=yes 29783fi 29784 else 29785 pkg_failed=untried 29786fi 29787 29788 29789 29790if test $pkg_failed = yes; then 29791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29792printf "%s\n" "no" >&6; } 29793 29794if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 29795 _pkg_short_errors_supported=yes 29796else 29797 _pkg_short_errors_supported=no 29798fi 29799 if test $_pkg_short_errors_supported = yes; then 29800 SDL2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $min_sdl2_version" 2>&1` 29801 else 29802 SDL2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $min_sdl2_version" 2>&1` 29803 fi 29804 # Put the nasty error message in config.log where it belongs 29805 echo "$SDL2_PKG_ERRORS" >&5 29806 29807 sdl2_pc=no 29808elif test $pkg_failed = untried; then 29809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29810printf "%s\n" "no" >&6; } 29811 sdl2_pc=no 29812else 29813 SDL2_CFLAGS=$pkg_cv_SDL2_CFLAGS 29814 SDL2_LIBS=$pkg_cv_SDL2_LIBS 29815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29816printf "%s\n" "yes" >&6; } 29817 sdl2_pc=yes 29818fi 29819 else 29820 sdl2_pc=no 29821 if test x$sdl2_exec_prefix != x ; then 29822 sdl2_config_args="$sdl2_config_args --exec-prefix=$sdl2_exec_prefix" 29823 if test x${SDL2_CONFIG+set} != xset ; then 29824 SDL2_CONFIG=$sdl2_exec_prefix/bin/sdl2-config 29825 fi 29826 fi 29827 if test x$sdl2_prefix != x ; then 29828 sdl2_config_args="$sdl2_config_args --prefix=$sdl2_prefix" 29829 if test x${SDL2_CONFIG+set} != xset ; then 29830 SDL2_CONFIG=$sdl2_prefix/bin/sdl2-config 29831 fi 29832 fi 29833 fi 29834 29835 if test "x$sdl2_pc" = xyes ; then 29836 no_sdl2="" 29837 SDL2_CONFIG="pkg-config sdl2" 29838 else 29839 as_save_PATH="$PATH" 29840 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then 29841 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 29842 fi 29843 # Extract the first word of "sdl2-config", so it can be a program name with args. 29844set dummy sdl2-config; ac_word=$2 29845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29846printf %s "checking for $ac_word... " >&6; } 29847if test ${ac_cv_path_SDL2_CONFIG+y} 29848then : 29849 printf %s "(cached) " >&6 29850else $as_nop 29851 case $SDL2_CONFIG in 29852 [\\/]* | ?:[\\/]*) 29853 ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path. 29854 ;; 29855 *) 29856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29857for as_dir in $PATH 29858do 29859 IFS=$as_save_IFS 29860 case $as_dir in #((( 29861 '') as_dir=./ ;; 29862 */) ;; 29863 *) as_dir=$as_dir/ ;; 29864 esac 29865 for ac_exec_ext in '' $ac_executable_extensions; do 29866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29867 ac_cv_path_SDL2_CONFIG="$as_dir$ac_word$ac_exec_ext" 29868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29869 break 2 29870 fi 29871done 29872 done 29873IFS=$as_save_IFS 29874 29875 test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no" 29876 ;; 29877esac 29878fi 29879SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG 29880if test -n "$SDL2_CONFIG"; then 29881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5 29882printf "%s\n" "$SDL2_CONFIG" >&6; } 29883else 29884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29885printf "%s\n" "no" >&6; } 29886fi 29887 29888 29889 PATH="$as_save_PATH" 29890 no_sdl2="" 29891 29892 if test "$SDL2_CONFIG" = "no" -a "x$search_sdl2_framework" = "xyes"; then 29893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL2.framework" >&5 29894printf %s "checking for SDL2.framework... " >&6; } 29895 if test "x$SDL2_FRAMEWORK" != x; then 29896 sdl2_framework=$SDL2_FRAMEWORK 29897 else 29898 for d in / ~/ /System/; do 29899 if test -d "$dLibrary/Frameworks/SDL2.framework"; then 29900 sdl2_framework="$dLibrary/Frameworks/SDL2.framework" 29901 fi 29902 done 29903 fi 29904 29905 if test x"$sdl2_framework" != x && test -d "$sdl2_framework"; then 29906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sdl2_framework" >&5 29907printf "%s\n" "$sdl2_framework" >&6; } 29908 sdl2_framework_dir=`dirname $sdl2_framework` 29909 SDL_CFLAGS="-F$sdl2_framework_dir -Wl,-framework,SDL2 -I$sdl2_framework/include" 29910 SDL_LIBS="-F$sdl2_framework_dir -Wl,-framework,SDL2" 29911 else 29912 no_sdl2=yes 29913 fi 29914 fi 29915 29916 if test "$SDL2_CONFIG" != "no"; then 29917 if test "x$sdl2_pc" = "xno"; then 29918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SDL2 - version >= $min_sdl2_version" >&5 29919printf %s "checking for SDL2 - version >= $min_sdl2_version... " >&6; } 29920 SDL_CFLAGS=`$SDL2_CONFIG $sdl2_config_args --cflags` 29921 SDL_LIBS=`$SDL2_CONFIG $sdl2_config_args --libs` 29922 fi 29923 29924 sdl2_major_version=`$SDL2_CONFIG $sdl2_config_args --version | \ 29925 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 29926 sdl2_minor_version=`$SDL2_CONFIG $sdl2_config_args --version | \ 29927 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 29928 sdl2_micro_version=`$SDL2_CONFIG $sdl2_config_args --version | \ 29929 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 29930 if test "x$enable_sdl2test" = "xyes" ; then 29931 ac_save_CFLAGS="$CFLAGS" 29932 ac_save_CXXFLAGS="$CXXFLAGS" 29933 ac_save_LIBS="$LIBS" 29934 CFLAGS="$CFLAGS $SDL2_CFLAGS" 29935 CXXFLAGS="$CXXFLAGS $SDL2_CFLAGS" 29936 LIBS="$LIBS $SDL2_LIBS" 29937 rm -f conf.sdl2test 29938 if test "$cross_compiling" = yes 29939then : 29940 echo $ac_n "cross compiling; assumed OK... $ac_c" 29941else $as_nop 29942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29943/* end confdefs.h. */ 29944 29945#include <stdio.h> 29946#include <stdlib.h> 29947#include "SDL.h" 29948 29949int main (int argc, char *argv[]) 29950{ 29951 int major, minor, micro; 29952 FILE *fp = fopen("conf.sdltest", "w"); 29953 29954 if (fp) fclose(fp); 29955 29956 if (sscanf("$min_sdl_version", "%d.%d.%d", &major, &minor, µ) != 3) { 29957 printf("%s, bad version string\n", "$min_sdl2_version"); 29958 exit(1); 29959 } 29960 29961 if (($sdl2_major_version > major) || 29962 (($sdl2_major_version == major) && ($sdl2_minor_version > minor)) || 29963 (($sdl2_major_version == major) && ($sdl2_minor_version == minor) && ($sdl2_micro_version >= micro))) 29964 { 29965 return 0; 29966 } 29967 else 29968 { 29969 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl2_major_version, $sdl2_minor_version, $sdl2_micro_version); 29970 printf("*** of SDL2 required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro); 29971 printf("*** best to upgrade to the required version.\n"); 29972 printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n"); 29973 printf("*** to point to the correct copy of sdl2-config, and remove the file\n"); 29974 printf("*** config.cache before re-running configure\n"); 29975 return 1; 29976 } 29977} 29978 29979 29980_ACEOF 29981if ac_fn_c_try_run "$LINENO" 29982then : 29983 29984else $as_nop 29985 no_sdl2=yes 29986fi 29987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29988 conftest.$ac_objext conftest.beam conftest.$ac_ext 29989fi 29990 29991 CFLAGS="$ac_save_CFLAGS" 29992 CXXFLAGS="$ac_save_CXXFLAGS" 29993 LIBS="$ac_save_LIBS" 29994 29995 fi 29996 if test "x$sdl2_pc" = "xno"; then 29997 if test "x$no_sdl2" = "xyes"; then 29998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29999printf "%s\n" "no" >&6; } 30000 else 30001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30002printf "%s\n" "yes" >&6; } 30003 fi 30004 fi 30005 fi 30006 fi 30007 if test "x$no_sdl2" = x ; then 30008 sdl2_found="yes" 30009 else 30010 if test "$SDL2_CONFIG" = "no" ; then 30011 echo "*** The sdl2-config script installed by SDL2 could not be found" 30012 echo "*** If SDL2 was installed in PREFIX, make sure PREFIX/bin is in" 30013 echo "*** your path, or set the SDL2_CONFIG environment variable to the" 30014 echo "*** full path to sdl2-config." 30015 else 30016 if test -f conf.sdl2test ; then 30017 : 30018 else 30019 echo "*** Could not run SDL2 test program, checking why..." 30020 CFLAGS="$CFLAGS $SDL2_CFLAGS" 30021 CXXFLAGS="$CXXFLAGS $SDL2_CFLAGS" 30022 LIBS="$LIBS $SDL2_LIBS" 30023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30024/* end confdefs.h. */ 30025 30026#include <stdio.h> 30027#include "SDL.h" 30028 30029int main(int argc, char *argv[]) 30030{ return 0; } 30031#undef main 30032#define main K_and_R_C_main 30033 30034int 30035main (void) 30036{ 30037 return 0; 30038 ; 30039 return 0; 30040} 30041_ACEOF 30042if ac_fn_c_try_link "$LINENO" 30043then : 30044 echo "*** The test program compiled, but did not run. This usually means" 30045 echo "*** that the run-time linker is not finding SDL2 or finding the wrong" 30046 echo "*** version of SDL2. If it is not finding SDL2, you'll need to set your" 30047 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 30048 echo "*** to the installed location Also, make sure you have run ldconfig if that" 30049 echo "*** is required on your system" 30050 echo "***" 30051 echo "*** If you have an old version installed, it is best to remove it, although" 30052 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 30053else $as_nop 30054 echo "*** The test program failed to compile or link. See the file config.log for the" 30055 echo "*** exact error that occurred. This usually means SDL2 was incorrectly installed" 30056 echo "*** or that you have moved SDL2 since it was installed. In the latter case, you" 30057 echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG" 30058fi 30059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30060 conftest$ac_exeext conftest.$ac_ext 30061 CFLAGS="$ac_save_CFLAGS" 30062 CXXFLAGS="$ac_save_CXXFLAGS" 30063 LIBS="$ac_save_LIBS" 30064 fi 30065 fi 30066 SDL2_CFLAGS="" 30067 SDL2_LIBS="" 30068 sdl2_found="no" 30069 fi 30070 30071 30072 rm -f conf.sdl2test 30073 30074 fi 30075 if test "$sdl2_found" = yes; then 30076 gui_sdl2_cflags="$SDL2_CFLAGS" 30077 gui_sdl2_libs="$SDL2_LIBS" 30078 30079 ac_save_CPPFLAGS="$CPPFLAGS" 30080 ac_save_CFLAGS="$CFLAGS" 30081 ac_save_LIBS="$LIBS" 30082 CPPFLAGS="$CPPFLAGS $SDL2_CFLAGS" 30083 CFLAGS="$CFLAGS $SDL2_CFLAGS" 30084 LIBS="$LIBS $SDL2_LIBS" 30085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL2_image" >&5 30086printf %s "checking for IMG_Load in -lSDL2_image... " >&6; } 30087if test ${ac_cv_lib_SDL2_image_IMG_Load+y} 30088then : 30089 printf %s "(cached) " >&6 30090else $as_nop 30091 ac_check_lib_save_LIBS=$LIBS 30092LIBS="-lSDL2_image $LIBS" 30093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30094/* end confdefs.h. */ 30095 30096/* Override any GCC internal prototype to avoid an error. 30097 Use char because int might match the return type of a GCC 30098 builtin and then its argument prototype would still apply. */ 30099char IMG_Load (); 30100int 30101main (void) 30102{ 30103return IMG_Load (); 30104 ; 30105 return 0; 30106} 30107_ACEOF 30108if ac_fn_c_try_link "$LINENO" 30109then : 30110 ac_cv_lib_SDL2_image_IMG_Load=yes 30111else $as_nop 30112 ac_cv_lib_SDL2_image_IMG_Load=no 30113fi 30114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30115 conftest$ac_exeext conftest.$ac_ext 30116LIBS=$ac_check_lib_save_LIBS 30117fi 30118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_image_IMG_Load" >&5 30119printf "%s\n" "$ac_cv_lib_SDL2_image_IMG_Load" >&6; } 30120if test "x$ac_cv_lib_SDL2_image_IMG_Load" = xyes 30121then : 30122 sdl2_lib_found="yes" 30123else $as_nop 30124 sdl2_lib_found="no" 30125sdl2_h_found="no" 30126fi 30127 30128 if test "x$sdl2_lib_found" = "xyes" ; then 30129 sdl2_h_found="no" 30130 if test x$sdl_headers_without_path != xyes ; then 30131 ac_fn_c_check_header_compile "$LINENO" "SDL2/SDL_image.h" "ac_cv_header_SDL2_SDL_image_h" "$ac_includes_default" 30132if test "x$ac_cv_header_SDL2_SDL_image_h" = xyes 30133then : 30134 sdl2_h_found="yes" 30135gui_sdl2_libs="${gui_sdl2_libs} -lSDL2_image" 30136fi 30137 30138 fi 30139 if test x$sdl2_h_found = xno ; then 30140 ac_fn_c_check_header_compile "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default" 30141if test "x$ac_cv_header_SDL_image_h" = xyes 30142then : 30143 sdl2_h_found="yes" 30144gui_sdl2_libs="${gui_sdl2_libs} -lSDL2_image" 30145if test x$sdl_headers_without_path != xyes ; then 30146 30147printf "%s\n" "#define SDL2_PLAIN_INCLUDE 1" >>confdefs.h 30148 30149 sdl_headers_without_path=yes 30150fi 30151fi 30152 30153 fi 30154 fi 30155 CPPFLAGS="$ac_save_CPPFLAGS" 30156 CFLAGS="$ac_save_CFLAGS" 30157 LIBS="$ac_save_LIBS" 30158 30159 if test "x$sdl2_h_found" = "xyes" ; then 30160 30161 ac_save_CPPFLAGS="$CPPFLAGS" 30162 ac_save_CFLAGS="$CFLAGS" 30163 ac_save_LIBS="$LIBS" 30164 CPPFLAGS="$CPPFLAGS $SDL2_CFLAGS" 30165 CFLAGS="$CFLAGS $SDL2_CFLAGS" 30166 LIBS="$LIBS $SDL2_LIBS" 30167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTF_OpenFont in -lSDL2_ttf" >&5 30168printf %s "checking for TTF_OpenFont in -lSDL2_ttf... " >&6; } 30169if test ${ac_cv_lib_SDL2_ttf_TTF_OpenFont+y} 30170then : 30171 printf %s "(cached) " >&6 30172else $as_nop 30173 ac_check_lib_save_LIBS=$LIBS 30174LIBS="-lSDL2_ttf $LIBS" 30175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30176/* end confdefs.h. */ 30177 30178/* Override any GCC internal prototype to avoid an error. 30179 Use char because int might match the return type of a GCC 30180 builtin and then its argument prototype would still apply. */ 30181char TTF_OpenFont (); 30182int 30183main (void) 30184{ 30185return TTF_OpenFont (); 30186 ; 30187 return 0; 30188} 30189_ACEOF 30190if ac_fn_c_try_link "$LINENO" 30191then : 30192 ac_cv_lib_SDL2_ttf_TTF_OpenFont=yes 30193else $as_nop 30194 ac_cv_lib_SDL2_ttf_TTF_OpenFont=no 30195fi 30196rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30197 conftest$ac_exeext conftest.$ac_ext 30198LIBS=$ac_check_lib_save_LIBS 30199fi 30200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_ttf_TTF_OpenFont" >&5 30201printf "%s\n" "$ac_cv_lib_SDL2_ttf_TTF_OpenFont" >&6; } 30202if test "x$ac_cv_lib_SDL2_ttf_TTF_OpenFont" = xyes 30203then : 30204 sdl2_lib_found="yes" 30205else $as_nop 30206 sdl2_lib_found="no" 30207sdl2_h_found="no" 30208fi 30209 30210 if test "x$sdl2_lib_found" = "xyes" ; then 30211 sdl2_h_found="no" 30212 if test x$sdl_headers_without_path != xyes ; then 30213 ac_fn_c_check_header_compile "$LINENO" "SDL2/SDL_ttf.h" "ac_cv_header_SDL2_SDL_ttf_h" "$ac_includes_default" 30214if test "x$ac_cv_header_SDL2_SDL_ttf_h" = xyes 30215then : 30216 sdl2_h_found="yes" 30217gui_sdl2_libs="${gui_sdl2_libs} -lSDL2_ttf" 30218fi 30219 30220 fi 30221 if test x$sdl2_h_found = xno ; then 30222 ac_fn_c_check_header_compile "$LINENO" "SDL_ttf.h" "ac_cv_header_SDL_ttf_h" "$ac_includes_default" 30223if test "x$ac_cv_header_SDL_ttf_h" = xyes 30224then : 30225 sdl2_h_found="yes" 30226gui_sdl2_libs="${gui_sdl2_libs} -lSDL2_ttf" 30227if test x$sdl_headers_without_path != xyes ; then 30228 30229printf "%s\n" "#define SDL2_PLAIN_INCLUDE 1" >>confdefs.h 30230 30231 sdl_headers_without_path=yes 30232fi 30233fi 30234 30235 fi 30236 fi 30237 CPPFLAGS="$ac_save_CPPFLAGS" 30238 CFLAGS="$ac_save_CFLAGS" 30239 LIBS="$ac_save_LIBS" 30240 30241 else 30242 missing_2_project="SDL2_image" 30243 fi 30244 if test "x$sdl2_h_found" = "xyes" ; then 30245 30246 ac_save_CPPFLAGS="$CPPFLAGS" 30247 ac_save_CFLAGS="$CFLAGS" 30248 ac_save_LIBS="$LIBS" 30249 CPPFLAGS="$CPPFLAGS $SDL2_CFLAGS" 30250 CFLAGS="$CFLAGS $SDL2_CFLAGS" 30251 LIBS="$LIBS $SDL2_LIBS" 30252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rotozoomSurface in -lSDL2_gfx" >&5 30253printf %s "checking for rotozoomSurface in -lSDL2_gfx... " >&6; } 30254if test ${ac_cv_lib_SDL2_gfx_rotozoomSurface+y} 30255then : 30256 printf %s "(cached) " >&6 30257else $as_nop 30258 ac_check_lib_save_LIBS=$LIBS 30259LIBS="-lSDL2_gfx $LIBS" 30260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30261/* end confdefs.h. */ 30262 30263/* Override any GCC internal prototype to avoid an error. 30264 Use char because int might match the return type of a GCC 30265 builtin and then its argument prototype would still apply. */ 30266char rotozoomSurface (); 30267int 30268main (void) 30269{ 30270return rotozoomSurface (); 30271 ; 30272 return 0; 30273} 30274_ACEOF 30275if ac_fn_c_try_link "$LINENO" 30276then : 30277 ac_cv_lib_SDL2_gfx_rotozoomSurface=yes 30278else $as_nop 30279 ac_cv_lib_SDL2_gfx_rotozoomSurface=no 30280fi 30281rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30282 conftest$ac_exeext conftest.$ac_ext 30283LIBS=$ac_check_lib_save_LIBS 30284fi 30285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_gfx_rotozoomSurface" >&5 30286printf "%s\n" "$ac_cv_lib_SDL2_gfx_rotozoomSurface" >&6; } 30287if test "x$ac_cv_lib_SDL2_gfx_rotozoomSurface" = xyes 30288then : 30289 sdl2_lib_found="yes" 30290else $as_nop 30291 sdl2_lib_found="no" 30292sdl2_h_found="no" 30293fi 30294 30295 if test "x$sdl2_lib_found" = "xyes" ; then 30296 sdl2_h_found="no" 30297 if test x$sdl_headers_without_path != xyes ; then 30298 ac_fn_c_check_header_compile "$LINENO" "SDL2/SDL2_rotozoom.h" "ac_cv_header_SDL2_SDL2_rotozoom_h" "$ac_includes_default" 30299if test "x$ac_cv_header_SDL2_SDL2_rotozoom_h" = xyes 30300then : 30301 sdl2_h_found="yes" 30302gui_sdl2_libs="${gui_sdl2_libs} -lSDL2_gfx" 30303fi 30304 30305 fi 30306 if test x$sdl2_h_found = xno ; then 30307 ac_fn_c_check_header_compile "$LINENO" "SDL2_rotozoom.h" "ac_cv_header_SDL2_rotozoom_h" "$ac_includes_default" 30308if test "x$ac_cv_header_SDL2_rotozoom_h" = xyes 30309then : 30310 sdl2_h_found="yes" 30311gui_sdl2_libs="${gui_sdl2_libs} -lSDL2_gfx" 30312if test x$sdl_headers_without_path != xyes ; then 30313 30314printf "%s\n" "#define SDL2_PLAIN_INCLUDE 1" >>confdefs.h 30315 30316 sdl_headers_without_path=yes 30317fi 30318fi 30319 30320 fi 30321 fi 30322 CPPFLAGS="$ac_save_CPPFLAGS" 30323 CFLAGS="$ac_save_CFLAGS" 30324 LIBS="$ac_save_LIBS" 30325 30326 elif test "x$missing_2_project" = "x" ; then 30327 missing_2_project="SDL2_ttf" 30328 fi 30329 if test "x$sdl2_h_found" = "xyes" ; then 30330 30331pkg_failed=no 30332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FT2" >&5 30333printf %s "checking for FT2... " >&6; } 30334 30335if test -n "$FT2_CFLAGS"; then 30336 pkg_cv_FT2_CFLAGS="$FT2_CFLAGS" 30337 elif test -n "$PKG_CONFIG"; then 30338 if test -n "$PKG_CONFIG" && \ 30339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 7.0.1\""; } >&5 30340 ($PKG_CONFIG --exists --print-errors "freetype2 >= 7.0.1") 2>&5 30341 ac_status=$? 30342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30343 test $ac_status = 0; }; then 30344 pkg_cv_FT2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 7.0.1" 2>/dev/null` 30345 test "x$?" != "x0" && pkg_failed=yes 30346else 30347 pkg_failed=yes 30348fi 30349 else 30350 pkg_failed=untried 30351fi 30352if test -n "$FT2_LIBS"; then 30353 pkg_cv_FT2_LIBS="$FT2_LIBS" 30354 elif test -n "$PKG_CONFIG"; then 30355 if test -n "$PKG_CONFIG" && \ 30356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 7.0.1\""; } >&5 30357 ($PKG_CONFIG --exists --print-errors "freetype2 >= 7.0.1") 2>&5 30358 ac_status=$? 30359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30360 test $ac_status = 0; }; then 30361 pkg_cv_FT2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 7.0.1" 2>/dev/null` 30362 test "x$?" != "x0" && pkg_failed=yes 30363else 30364 pkg_failed=yes 30365fi 30366 else 30367 pkg_failed=untried 30368fi 30369 30370 30371 30372if test $pkg_failed = yes; then 30373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30374printf "%s\n" "no" >&6; } 30375 30376if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30377 _pkg_short_errors_supported=yes 30378else 30379 _pkg_short_errors_supported=no 30380fi 30381 if test $_pkg_short_errors_supported = yes; then 30382 FT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 7.0.1" 2>&1` 30383 else 30384 FT2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 7.0.1" 2>&1` 30385 fi 30386 # Put the nasty error message in config.log where it belongs 30387 echo "$FT2_PKG_ERRORS" >&5 30388 30389 freetype_found="no" 30390elif test $pkg_failed = untried; then 30391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30392printf "%s\n" "no" >&6; } 30393 freetype_found="no" 30394else 30395 FT2_CFLAGS=$pkg_cv_FT2_CFLAGS 30396 FT2_LIBS=$pkg_cv_FT2_LIBS 30397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30398printf "%s\n" "yes" >&6; } 30399 freetype_found="yes" 30400fi 30401 if test "$freetype_found" = yes; then 30402 gui_sdl2_cflags="$gui_sdl2_cflags $FT2_CFLAGS" 30403 gui_sdl2_libs="$gui_sdl2_libs $FT2_LIBS" 30404 found_sdl2_client=yes 30405 elif test "x$gui_sdl2" = "xyes"; then 30406 as_fn_error $? "specified client 'sdl2' not configurable (FreeType2 >= 2.1.3 is needed (www.freetype.org))" "$LINENO" 5 30407 fi 30408 elif test "x$gui_sdl2" = "xyes"; then 30409 if test "x$missing_2_project" = "x" ; then 30410 missing_2_project="SDL2_gfx" 30411 fi 30412 if test "x$sdl2_lib_found" = "xyes" ; then 30413 missing_type="-devel" 30414 else 30415 missing_type="" 30416 fi 30417 as_fn_error $? "specified client 'sdl2' not configurable (${missing_2_project}${missing_type} is needed (www.libsdl.org))" "$LINENO" 5 30418 fi 30419 fi 30420 30421 if test "$found_sdl2_client" = yes; then 30422 gui_sdl2=yes 30423 if test "x$client" = "xauto" ; then 30424 client=yes 30425 fi 30426 30427 30428 30429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcharset" >&5 30430printf %s "checking for libcharset... " >&6; } 30431if test ${am_cv_libcharset+y} 30432then : 30433 printf %s "(cached) " >&6 30434else $as_nop 30435 lc_save_LIBS="$LIBS" 30436 LIBS="$LIBS $LIBICONV" 30437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30438/* end confdefs.h. */ 30439#include <libcharset.h> 30440int 30441main (void) 30442{ 30443locale_charset() 30444 ; 30445 return 0; 30446} 30447_ACEOF 30448if ac_fn_c_try_link "$LINENO" 30449then : 30450 am_cv_libcharset=yes 30451else $as_nop 30452 am_cv_libcharset=no 30453fi 30454rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30455 conftest$ac_exeext conftest.$ac_ext 30456 LIBS="$lc_save_LIBS" 30457 30458fi 30459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_libcharset" >&5 30460printf "%s\n" "$am_cv_libcharset" >&6; } 30461 if test $am_cv_libcharset = yes; then 30462 30463printf "%s\n" "#define HAVE_LIBCHARSET 1" >>confdefs.h 30464 30465 fi 30466 30467 30468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 30469printf %s "checking for nl_langinfo and CODESET... " >&6; } 30470if test ${am_cv_langinfo_codeset+y} 30471then : 30472 printf %s "(cached) " >&6 30473else $as_nop 30474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30475/* end confdefs.h. */ 30476#include <langinfo.h> 30477int 30478main (void) 30479{ 30480char* cs = nl_langinfo(CODESET); return !cs; 30481 ; 30482 return 0; 30483} 30484_ACEOF 30485if ac_fn_c_try_link "$LINENO" 30486then : 30487 am_cv_langinfo_codeset=yes 30488else $as_nop 30489 am_cv_langinfo_codeset=no 30490fi 30491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30492 conftest$ac_exeext conftest.$ac_ext 30493 30494fi 30495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 30496printf "%s\n" "$am_cv_langinfo_codeset" >&6; } 30497 if test $am_cv_langinfo_codeset = yes; then 30498 30499printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 30500 30501 fi 30502 30503 gui_sdl2_libs="$LIBICONV $gui_sdl2_libs" 30504 30505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 30506printf %s "checking for connect in -lsocket... " >&6; } 30507if test ${ac_cv_lib_socket_connect+y} 30508then : 30509 printf %s "(cached) " >&6 30510else $as_nop 30511 ac_check_lib_save_LIBS=$LIBS 30512LIBS="-lsocket $LIBS" 30513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30514/* end confdefs.h. */ 30515 30516/* Override any GCC internal prototype to avoid an error. 30517 Use char because int might match the return type of a GCC 30518 builtin and then its argument prototype would still apply. */ 30519char connect (); 30520int 30521main (void) 30522{ 30523return connect (); 30524 ; 30525 return 0; 30526} 30527_ACEOF 30528if ac_fn_c_try_link "$LINENO" 30529then : 30530 ac_cv_lib_socket_connect=yes 30531else $as_nop 30532 ac_cv_lib_socket_connect=no 30533fi 30534rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30535 conftest$ac_exeext conftest.$ac_ext 30536LIBS=$ac_check_lib_save_LIBS 30537fi 30538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 30539printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } 30540if test "x$ac_cv_lib_socket_connect" = xyes 30541then : 30542 gui_sdl2_libs="-lsocket $gui_sdl2_libs" 30543fi 30544 30545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5 30546printf %s "checking for gethostbyaddr in -lbind... " >&6; } 30547if test ${ac_cv_lib_bind_gethostbyaddr+y} 30548then : 30549 printf %s "(cached) " >&6 30550else $as_nop 30551 ac_check_lib_save_LIBS=$LIBS 30552LIBS="-lbind $LIBS" 30553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30554/* end confdefs.h. */ 30555 30556/* Override any GCC internal prototype to avoid an error. 30557 Use char because int might match the return type of a GCC 30558 builtin and then its argument prototype would still apply. */ 30559char gethostbyaddr (); 30560int 30561main (void) 30562{ 30563return gethostbyaddr (); 30564 ; 30565 return 0; 30566} 30567_ACEOF 30568if ac_fn_c_try_link "$LINENO" 30569then : 30570 ac_cv_lib_bind_gethostbyaddr=yes 30571else $as_nop 30572 ac_cv_lib_bind_gethostbyaddr=no 30573fi 30574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30575 conftest$ac_exeext conftest.$ac_ext 30576LIBS=$ac_check_lib_save_LIBS 30577fi 30578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5 30579printf "%s\n" "$ac_cv_lib_bind_gethostbyaddr" >&6; } 30580if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes 30581then : 30582 gui_sdl2_libs="-lbind $gui_sdl2_libs" 30583fi 30584 30585 30586 gui_sdl2_libs="$(echo $gui_sdl2_libs | $SED 's/-mwindows//g') $MWINDOWS_FLAG" 30587 30588 elif test "x$gui_sdl2" = "xyes"; then 30589 as_fn_error $? "specified client 'sdl2' not configurable (SDL2 >= 2.0.0 is needed (www.libsdl.org))" "$LINENO" 5 30590 fi 30591 fi 30592 30593 30594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5 30595printf %s "checking for X... " >&6; } 30596 30597 30598# Check whether --with-x was given. 30599if test ${with_x+y} 30600then : 30601 withval=$with_x; 30602fi 30603 30604# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 30605if test "x$with_x" = xno; then 30606 # The user explicitly disabled X. 30607 have_x=disabled 30608else 30609 case $x_includes,$x_libraries in #( 30610 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 30611 *,NONE | NONE,*) if test ${ac_cv_have_x+y} 30612then : 30613 printf %s "(cached) " >&6 30614else $as_nop 30615 # One or both of the vars are not set, and there is no cached value. 30616ac_x_includes=no 30617ac_x_libraries=no 30618# Do we need to do anything special at all? 30619ac_save_LIBS=$LIBS 30620LIBS="-lX11 $LIBS" 30621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30622/* end confdefs.h. */ 30623#include <X11/Xlib.h> 30624int 30625main (void) 30626{ 30627XrmInitialize () 30628 ; 30629 return 0; 30630} 30631_ACEOF 30632if ac_fn_c_try_link "$LINENO" 30633then : 30634 # We can compile and link X programs with no special options. 30635 ac_x_includes= 30636 ac_x_libraries= 30637fi 30638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30639 conftest$ac_exeext conftest.$ac_ext 30640LIBS="$ac_save_LIBS" 30641# If that didn't work, only try xmkmf and file system searches 30642# for native compilation. 30643if test x"$ac_x_includes" = xno && test "$cross_compiling" = no 30644then : 30645 rm -f -r conftest.dir 30646if mkdir conftest.dir; then 30647 cd conftest.dir 30648 cat >Imakefile <<'_ACEOF' 30649incroot: 30650 @echo incroot='${INCROOT}' 30651usrlibdir: 30652 @echo usrlibdir='${USRLIBDIR}' 30653libdir: 30654 @echo libdir='${LIBDIR}' 30655_ACEOF 30656 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 30657 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 30658 for ac_var in incroot usrlibdir libdir; do 30659 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 30660 done 30661 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 30662 for ac_extension in a so sl dylib la dll; do 30663 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 30664 test -f "$ac_im_libdir/libX11.$ac_extension"; then 30665 ac_im_usrlibdir=$ac_im_libdir; break 30666 fi 30667 done 30668 # Screen out bogus values from the imake configuration. They are 30669 # bogus both because they are the default anyway, and because 30670 # using them would break gcc on systems where it needs fixed includes. 30671 case $ac_im_incroot in 30672 /usr/include) ac_x_includes= ;; 30673 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 30674 esac 30675 case $ac_im_usrlibdir in 30676 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 30677 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 30678 esac 30679 fi 30680 cd .. 30681 rm -f -r conftest.dir 30682fi 30683 30684 # Standard set of common directories for X headers. 30685# Check X11 before X11Rn because it is often a symlink to the current release. 30686ac_x_header_dirs=' 30687/usr/X11/include 30688/usr/X11R7/include 30689/usr/X11R6/include 30690/usr/X11R5/include 30691/usr/X11R4/include 30692 30693/usr/include/X11 30694/usr/include/X11R7 30695/usr/include/X11R6 30696/usr/include/X11R5 30697/usr/include/X11R4 30698 30699/usr/local/X11/include 30700/usr/local/X11R7/include 30701/usr/local/X11R6/include 30702/usr/local/X11R5/include 30703/usr/local/X11R4/include 30704 30705/usr/local/include/X11 30706/usr/local/include/X11R7 30707/usr/local/include/X11R6 30708/usr/local/include/X11R5 30709/usr/local/include/X11R4 30710 30711/opt/X11/include 30712 30713/usr/X386/include 30714/usr/x386/include 30715/usr/XFree86/include/X11 30716 30717/usr/include 30718/usr/local/include 30719/usr/unsupported/include 30720/usr/athena/include 30721/usr/local/x11r5/include 30722/usr/lpp/Xamples/include 30723 30724/usr/openwin/include 30725/usr/openwin/share/include' 30726 30727if test "$ac_x_includes" = no; then 30728 # Guess where to find include files, by looking for Xlib.h. 30729 # First, try using that file with no special directory specified. 30730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30731/* end confdefs.h. */ 30732#include <X11/Xlib.h> 30733_ACEOF 30734if ac_fn_c_try_cpp "$LINENO" 30735then : 30736 # We can compile using X headers with no special include directory. 30737ac_x_includes= 30738else $as_nop 30739 for ac_dir in $ac_x_header_dirs; do 30740 if test -r "$ac_dir/X11/Xlib.h"; then 30741 ac_x_includes=$ac_dir 30742 break 30743 fi 30744done 30745fi 30746rm -f conftest.err conftest.i conftest.$ac_ext 30747fi # $ac_x_includes = no 30748 30749if test "$ac_x_libraries" = no; then 30750 # Check for the libraries. 30751 # See if we find them without any special options. 30752 # Don't add to $LIBS permanently. 30753 ac_save_LIBS=$LIBS 30754 LIBS="-lX11 $LIBS" 30755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30756/* end confdefs.h. */ 30757#include <X11/Xlib.h> 30758int 30759main (void) 30760{ 30761XrmInitialize () 30762 ; 30763 return 0; 30764} 30765_ACEOF 30766if ac_fn_c_try_link "$LINENO" 30767then : 30768 LIBS=$ac_save_LIBS 30769# We can link X programs with no special library path. 30770ac_x_libraries= 30771else $as_nop 30772 LIBS=$ac_save_LIBS 30773for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 30774do 30775 # Don't even attempt the hair of trying to link an X program! 30776 for ac_extension in a so sl dylib la dll; do 30777 if test -r "$ac_dir/libX11.$ac_extension"; then 30778 ac_x_libraries=$ac_dir 30779 break 2 30780 fi 30781 done 30782done 30783fi 30784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30785 conftest$ac_exeext conftest.$ac_ext 30786fi # $ac_x_libraries = no 30787 30788fi 30789# Record the results. 30790case $ac_x_includes,$ac_x_libraries in #( 30791 no,* | *,no | *\'*) : 30792 # Didn't find X, or a directory has "'" in its name. 30793 ac_cv_have_x="have_x=no" ;; #( 30794 *) : 30795 # Record where we found X for the cache. 30796 ac_cv_have_x="have_x=yes\ 30797 ac_x_includes='$ac_x_includes'\ 30798 ac_x_libraries='$ac_x_libraries'" ;; 30799esac 30800fi 30801;; #( 30802 *) have_x=yes;; 30803 esac 30804 eval "$ac_cv_have_x" 30805fi # $with_x != no 30806 30807if test "$have_x" != yes; then 30808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 30809printf "%s\n" "$have_x" >&6; } 30810 no_x=yes 30811else 30812 # If each of the values was on the command line, it overrides each guess. 30813 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 30814 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 30815 # Update the cache value to reflect the command line values. 30816 ac_cv_have_x="have_x=yes\ 30817 ac_x_includes='$x_includes'\ 30818 ac_x_libraries='$x_libraries'" 30819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 30820printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; } 30821fi 30822 30823if test "$no_x" = yes; then 30824 # Not all programs may use this symbol, but it does not hurt to define it. 30825 30826printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h 30827 30828 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 30829else 30830 if test -n "$x_includes"; then 30831 X_CFLAGS="$X_CFLAGS -I$x_includes" 30832 fi 30833 30834 # It would also be nice to do this for all -L options, not just this one. 30835 if test -n "$x_libraries"; then 30836 X_LIBS="$X_LIBS -L$x_libraries" 30837 # For Solaris; some versions of Sun CC require a space after -R and 30838 # others require no space. Words are not sufficient . . . . 30839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 30840printf %s "checking whether -R must be followed by a space... " >&6; } 30841 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 30842 ac_xsave_c_werror_flag=$ac_c_werror_flag 30843 ac_c_werror_flag=yes 30844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30845/* end confdefs.h. */ 30846 30847int 30848main (void) 30849{ 30850 30851 ; 30852 return 0; 30853} 30854_ACEOF 30855if ac_fn_c_try_link "$LINENO" 30856then : 30857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30858printf "%s\n" "no" >&6; } 30859 X_LIBS="$X_LIBS -R$x_libraries" 30860else $as_nop 30861 LIBS="$ac_xsave_LIBS -R $x_libraries" 30862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30863/* end confdefs.h. */ 30864 30865int 30866main (void) 30867{ 30868 30869 ; 30870 return 0; 30871} 30872_ACEOF 30873if ac_fn_c_try_link "$LINENO" 30874then : 30875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30876printf "%s\n" "yes" >&6; } 30877 X_LIBS="$X_LIBS -R $x_libraries" 30878else $as_nop 30879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 30880printf "%s\n" "neither works" >&6; } 30881fi 30882rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30883 conftest$ac_exeext conftest.$ac_ext 30884fi 30885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30886 conftest$ac_exeext conftest.$ac_ext 30887 ac_c_werror_flag=$ac_xsave_c_werror_flag 30888 LIBS=$ac_xsave_LIBS 30889 fi 30890 30891 # Check for system-dependent libraries X programs must link with. 30892 # Do this before checking for the system-independent R6 libraries 30893 # (-lICE), since we may need -lsocket or whatever for X linking. 30894 30895 if test "$ISC" = yes; then 30896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 30897 else 30898 # Martyn Johnson says this is needed for Ultrix, if the X 30899 # libraries were built with DECnet support. And Karl Berry says 30900 # the Alpha needs dnet_stub (dnet does not exist). 30901 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 30902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30903/* end confdefs.h. */ 30904 30905/* Override any GCC internal prototype to avoid an error. 30906 Use char because int might match the return type of a GCC 30907 builtin and then its argument prototype would still apply. */ 30908char XOpenDisplay (); 30909int 30910main (void) 30911{ 30912return XOpenDisplay (); 30913 ; 30914 return 0; 30915} 30916_ACEOF 30917if ac_fn_c_try_link "$LINENO" 30918then : 30919 30920else $as_nop 30921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 30922printf %s "checking for dnet_ntoa in -ldnet... " >&6; } 30923if test ${ac_cv_lib_dnet_dnet_ntoa+y} 30924then : 30925 printf %s "(cached) " >&6 30926else $as_nop 30927 ac_check_lib_save_LIBS=$LIBS 30928LIBS="-ldnet $LIBS" 30929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30930/* end confdefs.h. */ 30931 30932/* Override any GCC internal prototype to avoid an error. 30933 Use char because int might match the return type of a GCC 30934 builtin and then its argument prototype would still apply. */ 30935char dnet_ntoa (); 30936int 30937main (void) 30938{ 30939return dnet_ntoa (); 30940 ; 30941 return 0; 30942} 30943_ACEOF 30944if ac_fn_c_try_link "$LINENO" 30945then : 30946 ac_cv_lib_dnet_dnet_ntoa=yes 30947else $as_nop 30948 ac_cv_lib_dnet_dnet_ntoa=no 30949fi 30950rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30951 conftest$ac_exeext conftest.$ac_ext 30952LIBS=$ac_check_lib_save_LIBS 30953fi 30954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 30955printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 30956if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes 30957then : 30958 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 30959fi 30960 30961 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 30962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 30963printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } 30964if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} 30965then : 30966 printf %s "(cached) " >&6 30967else $as_nop 30968 ac_check_lib_save_LIBS=$LIBS 30969LIBS="-ldnet_stub $LIBS" 30970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30971/* end confdefs.h. */ 30972 30973/* Override any GCC internal prototype to avoid an error. 30974 Use char because int might match the return type of a GCC 30975 builtin and then its argument prototype would still apply. */ 30976char dnet_ntoa (); 30977int 30978main (void) 30979{ 30980return dnet_ntoa (); 30981 ; 30982 return 0; 30983} 30984_ACEOF 30985if ac_fn_c_try_link "$LINENO" 30986then : 30987 ac_cv_lib_dnet_stub_dnet_ntoa=yes 30988else $as_nop 30989 ac_cv_lib_dnet_stub_dnet_ntoa=no 30990fi 30991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30992 conftest$ac_exeext conftest.$ac_ext 30993LIBS=$ac_check_lib_save_LIBS 30994fi 30995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 30996printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 30997if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes 30998then : 30999 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 31000fi 31001 31002 fi 31003fi 31004rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31005 conftest$ac_exeext conftest.$ac_ext 31006 LIBS="$ac_xsave_LIBS" 31007 31008 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 31009 # to get the SysV transport functions. 31010 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 31011 # needs -lnsl. 31012 # The nsl library prevents programs from opening the X display 31013 # on Irix 5.2, according to T.E. Dickey. 31014 # The functions gethostbyname, getservbyname, and inet_addr are 31015 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 31016 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 31017if test "x$ac_cv_func_gethostbyname" = xyes 31018then : 31019 31020fi 31021 31022 if test $ac_cv_func_gethostbyname = no; then 31023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 31024printf %s "checking for gethostbyname in -lnsl... " >&6; } 31025if test ${ac_cv_lib_nsl_gethostbyname+y} 31026then : 31027 printf %s "(cached) " >&6 31028else $as_nop 31029 ac_check_lib_save_LIBS=$LIBS 31030LIBS="-lnsl $LIBS" 31031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31032/* end confdefs.h. */ 31033 31034/* Override any GCC internal prototype to avoid an error. 31035 Use char because int might match the return type of a GCC 31036 builtin and then its argument prototype would still apply. */ 31037char gethostbyname (); 31038int 31039main (void) 31040{ 31041return gethostbyname (); 31042 ; 31043 return 0; 31044} 31045_ACEOF 31046if ac_fn_c_try_link "$LINENO" 31047then : 31048 ac_cv_lib_nsl_gethostbyname=yes 31049else $as_nop 31050 ac_cv_lib_nsl_gethostbyname=no 31051fi 31052rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31053 conftest$ac_exeext conftest.$ac_ext 31054LIBS=$ac_check_lib_save_LIBS 31055fi 31056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 31057printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } 31058if test "x$ac_cv_lib_nsl_gethostbyname" = xyes 31059then : 31060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 31061fi 31062 31063 if test $ac_cv_lib_nsl_gethostbyname = no; then 31064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 31065printf %s "checking for gethostbyname in -lbsd... " >&6; } 31066if test ${ac_cv_lib_bsd_gethostbyname+y} 31067then : 31068 printf %s "(cached) " >&6 31069else $as_nop 31070 ac_check_lib_save_LIBS=$LIBS 31071LIBS="-lbsd $LIBS" 31072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31073/* end confdefs.h. */ 31074 31075/* Override any GCC internal prototype to avoid an error. 31076 Use char because int might match the return type of a GCC 31077 builtin and then its argument prototype would still apply. */ 31078char gethostbyname (); 31079int 31080main (void) 31081{ 31082return gethostbyname (); 31083 ; 31084 return 0; 31085} 31086_ACEOF 31087if ac_fn_c_try_link "$LINENO" 31088then : 31089 ac_cv_lib_bsd_gethostbyname=yes 31090else $as_nop 31091 ac_cv_lib_bsd_gethostbyname=no 31092fi 31093rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31094 conftest$ac_exeext conftest.$ac_ext 31095LIBS=$ac_check_lib_save_LIBS 31096fi 31097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 31098printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } 31099if test "x$ac_cv_lib_bsd_gethostbyname" = xyes 31100then : 31101 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 31102fi 31103 31104 fi 31105 fi 31106 31107 # lieder@skyler.mavd.honeywell.com says without -lsocket, 31108 # socket/setsockopt and other routines are undefined under SCO ODT 31109 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 31110 # on later versions), says Simon Leinen: it contains gethostby* 31111 # variants that don't use the name server (or something). -lsocket 31112 # must be given before -lnsl if both are needed. We assume that 31113 # if connect needs -lnsl, so does gethostbyname. 31114 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 31115if test "x$ac_cv_func_connect" = xyes 31116then : 31117 31118fi 31119 31120 if test $ac_cv_func_connect = no; then 31121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 31122printf %s "checking for connect in -lsocket... " >&6; } 31123if test ${ac_cv_lib_socket_connect+y} 31124then : 31125 printf %s "(cached) " >&6 31126else $as_nop 31127 ac_check_lib_save_LIBS=$LIBS 31128LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 31129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31130/* end confdefs.h. */ 31131 31132/* Override any GCC internal prototype to avoid an error. 31133 Use char because int might match the return type of a GCC 31134 builtin and then its argument prototype would still apply. */ 31135char connect (); 31136int 31137main (void) 31138{ 31139return connect (); 31140 ; 31141 return 0; 31142} 31143_ACEOF 31144if ac_fn_c_try_link "$LINENO" 31145then : 31146 ac_cv_lib_socket_connect=yes 31147else $as_nop 31148 ac_cv_lib_socket_connect=no 31149fi 31150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31151 conftest$ac_exeext conftest.$ac_ext 31152LIBS=$ac_check_lib_save_LIBS 31153fi 31154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 31155printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } 31156if test "x$ac_cv_lib_socket_connect" = xyes 31157then : 31158 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 31159fi 31160 31161 fi 31162 31163 # Guillermo Gomez says -lposix is necessary on A/UX. 31164 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 31165if test "x$ac_cv_func_remove" = xyes 31166then : 31167 31168fi 31169 31170 if test $ac_cv_func_remove = no; then 31171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 31172printf %s "checking for remove in -lposix... " >&6; } 31173if test ${ac_cv_lib_posix_remove+y} 31174then : 31175 printf %s "(cached) " >&6 31176else $as_nop 31177 ac_check_lib_save_LIBS=$LIBS 31178LIBS="-lposix $LIBS" 31179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31180/* end confdefs.h. */ 31181 31182/* Override any GCC internal prototype to avoid an error. 31183 Use char because int might match the return type of a GCC 31184 builtin and then its argument prototype would still apply. */ 31185char remove (); 31186int 31187main (void) 31188{ 31189return remove (); 31190 ; 31191 return 0; 31192} 31193_ACEOF 31194if ac_fn_c_try_link "$LINENO" 31195then : 31196 ac_cv_lib_posix_remove=yes 31197else $as_nop 31198 ac_cv_lib_posix_remove=no 31199fi 31200rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31201 conftest$ac_exeext conftest.$ac_ext 31202LIBS=$ac_check_lib_save_LIBS 31203fi 31204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 31205printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } 31206if test "x$ac_cv_lib_posix_remove" = xyes 31207then : 31208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 31209fi 31210 31211 fi 31212 31213 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 31214 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 31215if test "x$ac_cv_func_shmat" = xyes 31216then : 31217 31218fi 31219 31220 if test $ac_cv_func_shmat = no; then 31221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 31222printf %s "checking for shmat in -lipc... " >&6; } 31223if test ${ac_cv_lib_ipc_shmat+y} 31224then : 31225 printf %s "(cached) " >&6 31226else $as_nop 31227 ac_check_lib_save_LIBS=$LIBS 31228LIBS="-lipc $LIBS" 31229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31230/* end confdefs.h. */ 31231 31232/* Override any GCC internal prototype to avoid an error. 31233 Use char because int might match the return type of a GCC 31234 builtin and then its argument prototype would still apply. */ 31235char shmat (); 31236int 31237main (void) 31238{ 31239return shmat (); 31240 ; 31241 return 0; 31242} 31243_ACEOF 31244if ac_fn_c_try_link "$LINENO" 31245then : 31246 ac_cv_lib_ipc_shmat=yes 31247else $as_nop 31248 ac_cv_lib_ipc_shmat=no 31249fi 31250rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31251 conftest$ac_exeext conftest.$ac_ext 31252LIBS=$ac_check_lib_save_LIBS 31253fi 31254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 31255printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } 31256if test "x$ac_cv_lib_ipc_shmat" = xyes 31257then : 31258 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 31259fi 31260 31261 fi 31262 fi 31263 31264 # Check for libraries that X11R6 Xt/Xaw programs need. 31265 ac_save_LDFLAGS=$LDFLAGS 31266 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 31267 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 31268 # check for ICE first), but we must link in the order -lSM -lICE or 31269 # we get undefined symbols. So assume we have SM if we have ICE. 31270 # These have to be linked with before -lX11, unlike the other 31271 # libraries we check for below, so use a different variable. 31272 # John Interrante, Karl Berry 31273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 31274printf %s "checking for IceConnectionNumber in -lICE... " >&6; } 31275if test ${ac_cv_lib_ICE_IceConnectionNumber+y} 31276then : 31277 printf %s "(cached) " >&6 31278else $as_nop 31279 ac_check_lib_save_LIBS=$LIBS 31280LIBS="-lICE $X_EXTRA_LIBS $LIBS" 31281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31282/* end confdefs.h. */ 31283 31284/* Override any GCC internal prototype to avoid an error. 31285 Use char because int might match the return type of a GCC 31286 builtin and then its argument prototype would still apply. */ 31287char IceConnectionNumber (); 31288int 31289main (void) 31290{ 31291return IceConnectionNumber (); 31292 ; 31293 return 0; 31294} 31295_ACEOF 31296if ac_fn_c_try_link "$LINENO" 31297then : 31298 ac_cv_lib_ICE_IceConnectionNumber=yes 31299else $as_nop 31300 ac_cv_lib_ICE_IceConnectionNumber=no 31301fi 31302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31303 conftest$ac_exeext conftest.$ac_ext 31304LIBS=$ac_check_lib_save_LIBS 31305fi 31306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 31307printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 31308if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes 31309then : 31310 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 31311fi 31312 31313 LDFLAGS=$ac_save_LDFLAGS 31314 31315fi 31316 31317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Xfuncproto was supplied" >&5 31318printf %s "checking whether Xfuncproto was supplied... " >&6; } 31319 31320# Check whether --with-x-funcproto was given. 31321if test ${with_x_funcproto+y} 31322then : 31323 withval=$with_x_funcproto; 31324fi 31325 31326 31327if test "x$with_x_funcproto" = "x"; then 31328 fc_x_proto_defines= 31329 rm -fr conftestdir 31330 if mkdir conftestdir; then 31331 cd conftestdir 31332 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 31333 cat > Imakefile <<'EOF' 31334fcfindpd: 31335 @echo 'fc_x_proto_defines=" ${PROTO_DEFINES}"' 31336EOF 31337 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 31338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 31339 eval `${MAKE-make} fcfindpd 2>/dev/null | grep -v make | $SED -e 's/ -D/ /g'` 31340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, found: $fc_x_proto_defines" >&5 31341printf "%s\n" "no, found: $fc_x_proto_defines" >&6; } 31342 cd .. 31343 rm -fr conftestdir 31344 else 31345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31346printf "%s\n" "no" >&6; } 31347 cd .. 31348 rm -fr conftestdir 31349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compilable FUNCPROTO definition" >&5 31350printf %s "checking for compilable FUNCPROTO definition... " >&6; } 31351 for fc_x_value in 15 11 3 1 ""; do 31352 ac_ext=c 31353ac_cpp='$CPP $CPPFLAGS' 31354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31356ac_compiler_gnu=$ac_cv_c_compiler_gnu 31357 31358fc_x_proto_FUNCPROTO=no 31359if test "x$fc_x_value" = "x"; then 31360 fc_x_compile="#undef FUNCPROTO" 31361else 31362 fc_x_compile="#define FUNCPROTO $fc_x_value" 31363fi 31364fc_x_save_CFLAGS="$CFLAGS" 31365CFLAGS="$CFLAGS $X_CFLAGS" 31366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31367/* end confdefs.h. */ 31368 31369$fc_x_compile 31370#include <X11/Xfuncproto.h> 31371 31372int 31373main (void) 31374{ 31375 31376exit (0) 31377 31378 ; 31379 return 0; 31380} 31381_ACEOF 31382if ac_fn_c_try_compile "$LINENO" 31383then : 31384 fc_x_proto_FUNCPROTO=$fc_x_value 31385fi 31386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31387CFLAGS="$fc_x_save_CFLAGS" 31388ac_ext=c 31389ac_cpp='$CPP $CPPFLAGS' 31390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31392ac_compiler_gnu=$ac_cv_c_compiler_gnu 31393 31394 31395 if test "x$fc_x_proto_FUNCPROTO" != "xno"; then 31396 break 31397 fi 31398 done 31399 if test "x$fc_x_proto_FUNCPROTO" != "xno"; then 31400 fc_x_proto_defines="$fc_x_proto_defines FUNCPROTO=$fc_x_proto_FUNCPROTO" 31401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, determined: $fc_x_proto_FUNCPROTO" >&5 31402printf "%s\n" "yes, determined: $fc_x_proto_FUNCPROTO" >&6; } 31403 else 31404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, cannot determine" >&5 31405printf "%s\n" "no, cannot determine" >&6; } 31406 fi 31407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for workable NARROWPROTO definition" >&5 31408printf %s "checking for workable NARROWPROTO definition... " >&6; } 31409 for fc_x_value in 1 ""; do 31410 ac_ext=c 31411ac_cpp='$CPP $CPPFLAGS' 31412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31414ac_compiler_gnu=$ac_cv_c_compiler_gnu 31415 31416fc_x_proto_NARROWPROTO=no 31417if test "x$fc_x_value" = "x"; then 31418 fc_x_works="#undef NARROWPROTO" 31419else 31420 fc_x_works="#define NARROWPROTO $fc_x_value" 31421fi 31422if test "x$fc_x_proto_FUNCPROTO" = "x"; then 31423 fc_x_compile="#define FUNCPROTO 1" 31424else 31425 fc_x_compile="#define FUNCPROTO $fc_x_proto_FUNCPROTO" 31426fi 31427fc_x_save_CFLAGS="$CFLAGS" 31428CFLAGS="$CFLAGS $X_CFLAGS $X_LIBS $X_PRE_LIBS -lXaw -lXt -lX11 $X_EXTRA_LIBS" 31429if test "$cross_compiling" = yes 31430then : 31431 : 31432else $as_nop 31433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31434/* end confdefs.h. */ 31435 31436$fc_x_works 31437$fc_x_compile 31438#include <X11/Xfuncproto.h> 31439#include <X11/Intrinsic.h> 31440#include <X11/StringDefs.h> 31441#include <X11/Xaw/Scrollbar.h> 31442#define TOP_VAL 0.125 31443#define SHOWN_VAL 0.25 31444int main (int argc, char ** argv) 31445{ 31446 Widget toplevel; 31447 XtAppContext appcon; 31448 Widget scrollbar; 31449 double topbuf; 31450 double shownbuf; 31451 float * top = (float *)(&topbuf); 31452 float * shown = (float *)(&shownbuf); 31453 toplevel = 31454 XtAppInitialize 31455 ( 31456 &appcon, 31457 "FcXTest", 31458 NULL, 0, 31459 &argc, argv, 31460 NULL, 31461 NULL, 0 31462 ); 31463 scrollbar = 31464 XtVaCreateManagedWidget 31465 ( 31466 "my_scrollbar", 31467 scrollbarWidgetClass, 31468 toplevel, 31469 NULL 31470 ); 31471 XawScrollbarSetThumb (scrollbar, TOP_VAL, SHOWN_VAL); 31472 XtVaGetValues 31473 ( 31474 scrollbar, 31475 XtNtopOfThumb, top, 31476 XtNshown, shown, 31477 NULL 31478 ); 31479 if ((*top == TOP_VAL) && (*shown == SHOWN_VAL)) 31480 { 31481 exit (0); 31482 } 31483 else 31484 { 31485 exit (1); 31486 } 31487 return (0); 31488} 31489 31490_ACEOF 31491if ac_fn_c_try_run "$LINENO" 31492then : 31493 fc_x_proto_NARROWPROTO=$fc_x_value 31494fi 31495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31496 conftest.$ac_objext conftest.beam conftest.$ac_ext 31497fi 31498 31499CFLAGS="$fc_x_save_CFLAGS" 31500ac_ext=c 31501ac_cpp='$CPP $CPPFLAGS' 31502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31504ac_compiler_gnu=$ac_cv_c_compiler_gnu 31505 31506 31507 if test "x$fc_x_proto_NARROWPROTO" != "xno"; then 31508 break 31509 fi 31510 done 31511 if test "x$fc_x_proto_NARROWPROTO" != "xno"; then 31512 fc_x_proto_defines="$fc_x_proto_defines NARROWPROTO=$fc_x_proto_NARROWPROTO" 31513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, determined: $fc_x_proto_NARROWPROTO" >&5 31514printf "%s\n" "yes, determined: $fc_x_proto_NARROWPROTO" >&6; } 31515 else 31516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, cannot determine" >&5 31517printf "%s\n" "no, cannot determine" >&6; } 31518 fi 31519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Xfuncproto was determined" >&5 31520printf %s "checking whether Xfuncproto was determined... " >&6; } 31521 if test -n "$fc_x_proto_defines"; then 31522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes: $fc_x_proto_defines" >&5 31523printf "%s\n" "yes: $fc_x_proto_defines" >&6; } 31524 else 31525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31526printf "%s\n" "no" >&6; } 31527 fi 31528 fi 31529 else 31530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, examination failed" >&5 31531printf "%s\n" "no, examination failed" >&6; } 31532 fi 31533else 31534 fc_x_proto_defines=$with_x_funcproto 31535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, given: $fc_x_proto_defines" >&5 31536printf "%s\n" "yes, given: $fc_x_proto_defines" >&6; } 31537fi 31538 31539 31540 31541 if test "x$gui_xaw" = "xyes" || test "x$client" = "xall" || 31542 test "x$client" = "xauto" ; then 31543 if test "$no_x" = yes; then 31544 # Not all programs may use this symbol, but it does not hurt to define it. 31545 31546printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h 31547 31548 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 31549else 31550 if test -n "$x_includes"; then 31551 X_CFLAGS="$X_CFLAGS -I$x_includes" 31552 fi 31553 31554 # It would also be nice to do this for all -L options, not just this one. 31555 if test -n "$x_libraries"; then 31556 X_LIBS="$X_LIBS -L$x_libraries" 31557 # For Solaris; some versions of Sun CC require a space after -R and 31558 # others require no space. Words are not sufficient . . . . 31559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 31560printf %s "checking whether -R must be followed by a space... " >&6; } 31561 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 31562 ac_xsave_c_werror_flag=$ac_c_werror_flag 31563 ac_c_werror_flag=yes 31564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31565/* end confdefs.h. */ 31566 31567int 31568main (void) 31569{ 31570 31571 ; 31572 return 0; 31573} 31574_ACEOF 31575if ac_fn_c_try_link "$LINENO" 31576then : 31577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31578printf "%s\n" "no" >&6; } 31579 X_LIBS="$X_LIBS -R$x_libraries" 31580else $as_nop 31581 LIBS="$ac_xsave_LIBS -R $x_libraries" 31582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31583/* end confdefs.h. */ 31584 31585int 31586main (void) 31587{ 31588 31589 ; 31590 return 0; 31591} 31592_ACEOF 31593if ac_fn_c_try_link "$LINENO" 31594then : 31595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31596printf "%s\n" "yes" >&6; } 31597 X_LIBS="$X_LIBS -R $x_libraries" 31598else $as_nop 31599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 31600printf "%s\n" "neither works" >&6; } 31601fi 31602rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31603 conftest$ac_exeext conftest.$ac_ext 31604fi 31605rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31606 conftest$ac_exeext conftest.$ac_ext 31607 ac_c_werror_flag=$ac_xsave_c_werror_flag 31608 LIBS=$ac_xsave_LIBS 31609 fi 31610 31611 # Check for system-dependent libraries X programs must link with. 31612 # Do this before checking for the system-independent R6 libraries 31613 # (-lICE), since we may need -lsocket or whatever for X linking. 31614 31615 if test "$ISC" = yes; then 31616 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 31617 else 31618 # Martyn Johnson says this is needed for Ultrix, if the X 31619 # libraries were built with DECnet support. And Karl Berry says 31620 # the Alpha needs dnet_stub (dnet does not exist). 31621 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 31622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31623/* end confdefs.h. */ 31624 31625/* Override any GCC internal prototype to avoid an error. 31626 Use char because int might match the return type of a GCC 31627 builtin and then its argument prototype would still apply. */ 31628char XOpenDisplay (); 31629int 31630main (void) 31631{ 31632return XOpenDisplay (); 31633 ; 31634 return 0; 31635} 31636_ACEOF 31637if ac_fn_c_try_link "$LINENO" 31638then : 31639 31640else $as_nop 31641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 31642printf %s "checking for dnet_ntoa in -ldnet... " >&6; } 31643if test ${ac_cv_lib_dnet_dnet_ntoa+y} 31644then : 31645 printf %s "(cached) " >&6 31646else $as_nop 31647 ac_check_lib_save_LIBS=$LIBS 31648LIBS="-ldnet $LIBS" 31649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31650/* end confdefs.h. */ 31651 31652/* Override any GCC internal prototype to avoid an error. 31653 Use char because int might match the return type of a GCC 31654 builtin and then its argument prototype would still apply. */ 31655char dnet_ntoa (); 31656int 31657main (void) 31658{ 31659return dnet_ntoa (); 31660 ; 31661 return 0; 31662} 31663_ACEOF 31664if ac_fn_c_try_link "$LINENO" 31665then : 31666 ac_cv_lib_dnet_dnet_ntoa=yes 31667else $as_nop 31668 ac_cv_lib_dnet_dnet_ntoa=no 31669fi 31670rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31671 conftest$ac_exeext conftest.$ac_ext 31672LIBS=$ac_check_lib_save_LIBS 31673fi 31674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 31675printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 31676if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes 31677then : 31678 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 31679fi 31680 31681 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 31682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 31683printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } 31684if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} 31685then : 31686 printf %s "(cached) " >&6 31687else $as_nop 31688 ac_check_lib_save_LIBS=$LIBS 31689LIBS="-ldnet_stub $LIBS" 31690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31691/* end confdefs.h. */ 31692 31693/* Override any GCC internal prototype to avoid an error. 31694 Use char because int might match the return type of a GCC 31695 builtin and then its argument prototype would still apply. */ 31696char dnet_ntoa (); 31697int 31698main (void) 31699{ 31700return dnet_ntoa (); 31701 ; 31702 return 0; 31703} 31704_ACEOF 31705if ac_fn_c_try_link "$LINENO" 31706then : 31707 ac_cv_lib_dnet_stub_dnet_ntoa=yes 31708else $as_nop 31709 ac_cv_lib_dnet_stub_dnet_ntoa=no 31710fi 31711rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31712 conftest$ac_exeext conftest.$ac_ext 31713LIBS=$ac_check_lib_save_LIBS 31714fi 31715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 31716printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 31717if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes 31718then : 31719 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 31720fi 31721 31722 fi 31723fi 31724rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31725 conftest$ac_exeext conftest.$ac_ext 31726 LIBS="$ac_xsave_LIBS" 31727 31728 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 31729 # to get the SysV transport functions. 31730 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 31731 # needs -lnsl. 31732 # The nsl library prevents programs from opening the X display 31733 # on Irix 5.2, according to T.E. Dickey. 31734 # The functions gethostbyname, getservbyname, and inet_addr are 31735 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 31736 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 31737if test "x$ac_cv_func_gethostbyname" = xyes 31738then : 31739 31740fi 31741 31742 if test $ac_cv_func_gethostbyname = no; then 31743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 31744printf %s "checking for gethostbyname in -lnsl... " >&6; } 31745if test ${ac_cv_lib_nsl_gethostbyname+y} 31746then : 31747 printf %s "(cached) " >&6 31748else $as_nop 31749 ac_check_lib_save_LIBS=$LIBS 31750LIBS="-lnsl $LIBS" 31751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31752/* end confdefs.h. */ 31753 31754/* Override any GCC internal prototype to avoid an error. 31755 Use char because int might match the return type of a GCC 31756 builtin and then its argument prototype would still apply. */ 31757char gethostbyname (); 31758int 31759main (void) 31760{ 31761return gethostbyname (); 31762 ; 31763 return 0; 31764} 31765_ACEOF 31766if ac_fn_c_try_link "$LINENO" 31767then : 31768 ac_cv_lib_nsl_gethostbyname=yes 31769else $as_nop 31770 ac_cv_lib_nsl_gethostbyname=no 31771fi 31772rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31773 conftest$ac_exeext conftest.$ac_ext 31774LIBS=$ac_check_lib_save_LIBS 31775fi 31776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 31777printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } 31778if test "x$ac_cv_lib_nsl_gethostbyname" = xyes 31779then : 31780 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 31781fi 31782 31783 if test $ac_cv_lib_nsl_gethostbyname = no; then 31784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 31785printf %s "checking for gethostbyname in -lbsd... " >&6; } 31786if test ${ac_cv_lib_bsd_gethostbyname+y} 31787then : 31788 printf %s "(cached) " >&6 31789else $as_nop 31790 ac_check_lib_save_LIBS=$LIBS 31791LIBS="-lbsd $LIBS" 31792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31793/* end confdefs.h. */ 31794 31795/* Override any GCC internal prototype to avoid an error. 31796 Use char because int might match the return type of a GCC 31797 builtin and then its argument prototype would still apply. */ 31798char gethostbyname (); 31799int 31800main (void) 31801{ 31802return gethostbyname (); 31803 ; 31804 return 0; 31805} 31806_ACEOF 31807if ac_fn_c_try_link "$LINENO" 31808then : 31809 ac_cv_lib_bsd_gethostbyname=yes 31810else $as_nop 31811 ac_cv_lib_bsd_gethostbyname=no 31812fi 31813rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31814 conftest$ac_exeext conftest.$ac_ext 31815LIBS=$ac_check_lib_save_LIBS 31816fi 31817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 31818printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } 31819if test "x$ac_cv_lib_bsd_gethostbyname" = xyes 31820then : 31821 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 31822fi 31823 31824 fi 31825 fi 31826 31827 # lieder@skyler.mavd.honeywell.com says without -lsocket, 31828 # socket/setsockopt and other routines are undefined under SCO ODT 31829 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 31830 # on later versions), says Simon Leinen: it contains gethostby* 31831 # variants that don't use the name server (or something). -lsocket 31832 # must be given before -lnsl if both are needed. We assume that 31833 # if connect needs -lnsl, so does gethostbyname. 31834 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 31835if test "x$ac_cv_func_connect" = xyes 31836then : 31837 31838fi 31839 31840 if test $ac_cv_func_connect = no; then 31841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 31842printf %s "checking for connect in -lsocket... " >&6; } 31843if test ${ac_cv_lib_socket_connect+y} 31844then : 31845 printf %s "(cached) " >&6 31846else $as_nop 31847 ac_check_lib_save_LIBS=$LIBS 31848LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 31849cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31850/* end confdefs.h. */ 31851 31852/* Override any GCC internal prototype to avoid an error. 31853 Use char because int might match the return type of a GCC 31854 builtin and then its argument prototype would still apply. */ 31855char connect (); 31856int 31857main (void) 31858{ 31859return connect (); 31860 ; 31861 return 0; 31862} 31863_ACEOF 31864if ac_fn_c_try_link "$LINENO" 31865then : 31866 ac_cv_lib_socket_connect=yes 31867else $as_nop 31868 ac_cv_lib_socket_connect=no 31869fi 31870rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31871 conftest$ac_exeext conftest.$ac_ext 31872LIBS=$ac_check_lib_save_LIBS 31873fi 31874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 31875printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } 31876if test "x$ac_cv_lib_socket_connect" = xyes 31877then : 31878 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 31879fi 31880 31881 fi 31882 31883 # Guillermo Gomez says -lposix is necessary on A/UX. 31884 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 31885if test "x$ac_cv_func_remove" = xyes 31886then : 31887 31888fi 31889 31890 if test $ac_cv_func_remove = no; then 31891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 31892printf %s "checking for remove in -lposix... " >&6; } 31893if test ${ac_cv_lib_posix_remove+y} 31894then : 31895 printf %s "(cached) " >&6 31896else $as_nop 31897 ac_check_lib_save_LIBS=$LIBS 31898LIBS="-lposix $LIBS" 31899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31900/* end confdefs.h. */ 31901 31902/* Override any GCC internal prototype to avoid an error. 31903 Use char because int might match the return type of a GCC 31904 builtin and then its argument prototype would still apply. */ 31905char remove (); 31906int 31907main (void) 31908{ 31909return remove (); 31910 ; 31911 return 0; 31912} 31913_ACEOF 31914if ac_fn_c_try_link "$LINENO" 31915then : 31916 ac_cv_lib_posix_remove=yes 31917else $as_nop 31918 ac_cv_lib_posix_remove=no 31919fi 31920rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31921 conftest$ac_exeext conftest.$ac_ext 31922LIBS=$ac_check_lib_save_LIBS 31923fi 31924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 31925printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } 31926if test "x$ac_cv_lib_posix_remove" = xyes 31927then : 31928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 31929fi 31930 31931 fi 31932 31933 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 31934 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 31935if test "x$ac_cv_func_shmat" = xyes 31936then : 31937 31938fi 31939 31940 if test $ac_cv_func_shmat = no; then 31941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 31942printf %s "checking for shmat in -lipc... " >&6; } 31943if test ${ac_cv_lib_ipc_shmat+y} 31944then : 31945 printf %s "(cached) " >&6 31946else $as_nop 31947 ac_check_lib_save_LIBS=$LIBS 31948LIBS="-lipc $LIBS" 31949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31950/* end confdefs.h. */ 31951 31952/* Override any GCC internal prototype to avoid an error. 31953 Use char because int might match the return type of a GCC 31954 builtin and then its argument prototype would still apply. */ 31955char shmat (); 31956int 31957main (void) 31958{ 31959return shmat (); 31960 ; 31961 return 0; 31962} 31963_ACEOF 31964if ac_fn_c_try_link "$LINENO" 31965then : 31966 ac_cv_lib_ipc_shmat=yes 31967else $as_nop 31968 ac_cv_lib_ipc_shmat=no 31969fi 31970rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31971 conftest$ac_exeext conftest.$ac_ext 31972LIBS=$ac_check_lib_save_LIBS 31973fi 31974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 31975printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } 31976if test "x$ac_cv_lib_ipc_shmat" = xyes 31977then : 31978 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 31979fi 31980 31981 fi 31982 fi 31983 31984 # Check for libraries that X11R6 Xt/Xaw programs need. 31985 ac_save_LDFLAGS=$LDFLAGS 31986 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 31987 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 31988 # check for ICE first), but we must link in the order -lSM -lICE or 31989 # we get undefined symbols. So assume we have SM if we have ICE. 31990 # These have to be linked with before -lX11, unlike the other 31991 # libraries we check for below, so use a different variable. 31992 # John Interrante, Karl Berry 31993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 31994printf %s "checking for IceConnectionNumber in -lICE... " >&6; } 31995if test ${ac_cv_lib_ICE_IceConnectionNumber+y} 31996then : 31997 printf %s "(cached) " >&6 31998else $as_nop 31999 ac_check_lib_save_LIBS=$LIBS 32000LIBS="-lICE $X_EXTRA_LIBS $LIBS" 32001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32002/* end confdefs.h. */ 32003 32004/* Override any GCC internal prototype to avoid an error. 32005 Use char because int might match the return type of a GCC 32006 builtin and then its argument prototype would still apply. */ 32007char IceConnectionNumber (); 32008int 32009main (void) 32010{ 32011return IceConnectionNumber (); 32012 ; 32013 return 0; 32014} 32015_ACEOF 32016if ac_fn_c_try_link "$LINENO" 32017then : 32018 ac_cv_lib_ICE_IceConnectionNumber=yes 32019else $as_nop 32020 ac_cv_lib_ICE_IceConnectionNumber=no 32021fi 32022rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32023 conftest$ac_exeext conftest.$ac_ext 32024LIBS=$ac_check_lib_save_LIBS 32025fi 32026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 32027printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 32028if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes 32029then : 32030 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 32031fi 32032 32033 LDFLAGS=$ac_save_LDFLAGS 32034 32035fi 32036 32037 32038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Xfuncproto control definition FUNCPROTO" >&5 32039printf %s "checking for Xfuncproto control definition FUNCPROTO... " >&6; } 32040# Search for the requested defined variable; return it's value: 32041fc_x_proto_value= 32042for fc_x_define in $fc_x_proto_defines; do 32043 fc_x_val=1 32044 eval `echo $fc_x_define | $SED -e 's/=/ ; fc_x_val=/' | $SED -e 's/^/fc_x_var=/'` 32045 if test "x$fc_x_var" = "xFUNCPROTO"; then 32046 fc_x_proto_value=$fc_x_val 32047 break 32048 fi 32049done 32050if test -n "$fc_x_proto_value"; then 32051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes: $fc_x_proto_value" >&5 32052printf "%s\n" "yes: $fc_x_proto_value" >&6; } 32053else 32054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32055printf "%s\n" "no" >&6; } 32056fi 32057 32058 if test -n "$fc_x_proto_value"; then 32059 32060printf "%s\n" "#define FUNCPROTO $fc_x_proto_value" >>confdefs.h 32061 32062 fi 32063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Xfuncproto control definition NARROWPROTO" >&5 32064printf %s "checking for Xfuncproto control definition NARROWPROTO... " >&6; } 32065# Search for the requested defined variable; return it's value: 32066fc_x_proto_value= 32067for fc_x_define in $fc_x_proto_defines; do 32068 fc_x_val=1 32069 eval `echo $fc_x_define | $SED -e 's/=/ ; fc_x_val=/' | $SED -e 's/^/fc_x_var=/'` 32070 if test "x$fc_x_var" = "xNARROWPROTO"; then 32071 fc_x_proto_value=$fc_x_val 32072 break 32073 fi 32074done 32075if test -n "$fc_x_proto_value"; then 32076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes: $fc_x_proto_value" >&5 32077printf "%s\n" "yes: $fc_x_proto_value" >&6; } 32078else 32079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32080printf "%s\n" "no" >&6; } 32081fi 32082 32083 if test -n "$fc_x_proto_value"; then 32084 32085printf "%s\n" "#define NARROWPROTO $fc_x_proto_value" >>confdefs.h 32086 32087 fi 32088 32089 32090 32091 32092 32093 32094 32095 32096if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 32097 if test -n "$ac_tool_prefix"; then 32098 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 32099set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 32100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32101printf %s "checking for $ac_word... " >&6; } 32102if test ${ac_cv_path_PKG_CONFIG+y} 32103then : 32104 printf %s "(cached) " >&6 32105else $as_nop 32106 case $PKG_CONFIG in 32107 [\\/]* | ?:[\\/]*) 32108 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 32109 ;; 32110 *) 32111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32112for as_dir in $PATH 32113do 32114 IFS=$as_save_IFS 32115 case $as_dir in #((( 32116 '') as_dir=./ ;; 32117 */) ;; 32118 *) as_dir=$as_dir/ ;; 32119 esac 32120 for ac_exec_ext in '' $ac_executable_extensions; do 32121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32122 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 32123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32124 break 2 32125 fi 32126done 32127 done 32128IFS=$as_save_IFS 32129 32130 ;; 32131esac 32132fi 32133PKG_CONFIG=$ac_cv_path_PKG_CONFIG 32134if test -n "$PKG_CONFIG"; then 32135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 32136printf "%s\n" "$PKG_CONFIG" >&6; } 32137else 32138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32139printf "%s\n" "no" >&6; } 32140fi 32141 32142 32143fi 32144if test -z "$ac_cv_path_PKG_CONFIG"; then 32145 ac_pt_PKG_CONFIG=$PKG_CONFIG 32146 # Extract the first word of "pkg-config", so it can be a program name with args. 32147set dummy pkg-config; ac_word=$2 32148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32149printf %s "checking for $ac_word... " >&6; } 32150if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 32151then : 32152 printf %s "(cached) " >&6 32153else $as_nop 32154 case $ac_pt_PKG_CONFIG in 32155 [\\/]* | ?:[\\/]*) 32156 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 32157 ;; 32158 *) 32159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32160for as_dir in $PATH 32161do 32162 IFS=$as_save_IFS 32163 case $as_dir in #((( 32164 '') as_dir=./ ;; 32165 */) ;; 32166 *) as_dir=$as_dir/ ;; 32167 esac 32168 for ac_exec_ext in '' $ac_executable_extensions; do 32169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32170 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 32171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32172 break 2 32173 fi 32174done 32175 done 32176IFS=$as_save_IFS 32177 32178 ;; 32179esac 32180fi 32181ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 32182if test -n "$ac_pt_PKG_CONFIG"; then 32183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 32184printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 32185else 32186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32187printf "%s\n" "no" >&6; } 32188fi 32189 32190 if test "x$ac_pt_PKG_CONFIG" = x; then 32191 PKG_CONFIG="" 32192 else 32193 case $cross_compiling:$ac_tool_warned in 32194yes:) 32195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32196printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32197ac_tool_warned=yes ;; 32198esac 32199 PKG_CONFIG=$ac_pt_PKG_CONFIG 32200 fi 32201else 32202 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 32203fi 32204 32205fi 32206if test -n "$PKG_CONFIG"; then 32207 _pkg_min_version=0.9.0 32208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 32209printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 32210 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 32211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32212printf "%s\n" "yes" >&6; } 32213 else 32214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32215printf "%s\n" "no" >&6; } 32216 PKG_CONFIG="" 32217 fi 32218fi 32219 32220 32221pkg_failed=no 32222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 32223printf %s "checking for PNG... " >&6; } 32224 32225if test -n "$PNG_CFLAGS"; then 32226 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 32227 elif test -n "$PKG_CONFIG"; then 32228 if test -n "$PKG_CONFIG" && \ 32229 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 32230 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 32231 ac_status=$? 32232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32233 test $ac_status = 0; }; then 32234 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 32235 test "x$?" != "x0" && pkg_failed=yes 32236else 32237 pkg_failed=yes 32238fi 32239 else 32240 pkg_failed=untried 32241fi 32242if test -n "$PNG_LIBS"; then 32243 pkg_cv_PNG_LIBS="$PNG_LIBS" 32244 elif test -n "$PKG_CONFIG"; then 32245 if test -n "$PKG_CONFIG" && \ 32246 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 32247 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 32248 ac_status=$? 32249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32250 test $ac_status = 0; }; then 32251 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 32252 test "x$?" != "x0" && pkg_failed=yes 32253else 32254 pkg_failed=yes 32255fi 32256 else 32257 pkg_failed=untried 32258fi 32259 32260 32261 32262if test $pkg_failed = yes; then 32263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32264printf "%s\n" "no" >&6; } 32265 32266if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 32267 _pkg_short_errors_supported=yes 32268else 32269 _pkg_short_errors_supported=no 32270fi 32271 if test $_pkg_short_errors_supported = yes; then 32272 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1` 32273 else 32274 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1` 32275 fi 32276 # Put the nasty error message in config.log where it belongs 32277 echo "$PNG_PKG_ERRORS" >&5 32278 32279 32280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for png_read_image in -lpng12" >&5 32281printf %s "checking for png_read_image in -lpng12... " >&6; } 32282if test ${ac_cv_lib_png12_png_read_image+y} 32283then : 32284 printf %s "(cached) " >&6 32285else $as_nop 32286 ac_check_lib_save_LIBS=$LIBS 32287LIBS="-lpng12 $LIBS" 32288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32289/* end confdefs.h. */ 32290 32291/* Override any GCC internal prototype to avoid an error. 32292 Use char because int might match the return type of a GCC 32293 builtin and then its argument prototype would still apply. */ 32294char png_read_image (); 32295int 32296main (void) 32297{ 32298return png_read_image (); 32299 ; 32300 return 0; 32301} 32302_ACEOF 32303if ac_fn_c_try_link "$LINENO" 32304then : 32305 ac_cv_lib_png12_png_read_image=yes 32306else $as_nop 32307 ac_cv_lib_png12_png_read_image=no 32308fi 32309rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32310 conftest$ac_exeext conftest.$ac_ext 32311LIBS=$ac_check_lib_save_LIBS 32312fi 32313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_read_image" >&5 32314printf "%s\n" "$ac_cv_lib_png12_png_read_image" >&6; } 32315if test "x$ac_cv_lib_png12_png_read_image" = xyes 32316then : 32317 X_LIBS="$X_LIBS -lpng12 -lm" 32318else $as_nop 32319 32320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for png_read_image in -lpng" >&5 32321printf %s "checking for png_read_image in -lpng... " >&6; } 32322if test ${ac_cv_lib_png_png_read_image+y} 32323then : 32324 printf %s "(cached) " >&6 32325else $as_nop 32326 ac_check_lib_save_LIBS=$LIBS 32327LIBS="-lpng $LIBS" 32328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32329/* end confdefs.h. */ 32330 32331/* Override any GCC internal prototype to avoid an error. 32332 Use char because int might match the return type of a GCC 32333 builtin and then its argument prototype would still apply. */ 32334char png_read_image (); 32335int 32336main (void) 32337{ 32338return png_read_image (); 32339 ; 32340 return 0; 32341} 32342_ACEOF 32343if ac_fn_c_try_link "$LINENO" 32344then : 32345 ac_cv_lib_png_png_read_image=yes 32346else $as_nop 32347 ac_cv_lib_png_png_read_image=no 32348fi 32349rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32350 conftest$ac_exeext conftest.$ac_ext 32351LIBS=$ac_check_lib_save_LIBS 32352fi 32353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_image" >&5 32354printf "%s\n" "$ac_cv_lib_png_png_read_image" >&6; } 32355if test "x$ac_cv_lib_png_png_read_image" = xyes 32356then : 32357 X_LIBS="$X_LIBS -lpng -lm" 32358else $as_nop 32359 32360 32361 UL_GUI=$(printf xaw | $SED 's/\./_/g') 32362 32363 if test "x`eval echo '$'gui_$UL_GUI`" = "xyes"; then 32364 as_fn_error $? "specified client 'xaw' not configurable (Could not find PNG library.)" "$LINENO" 5 32365 fi 32366 32367 no_png=yes 32368 32369fi 32370 32371 32372fi 32373 32374 ac_fn_c_check_header_compile "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" 32375if test "x$ac_cv_header_png_h" = xyes 32376then : 32377 32378else $as_nop 32379 32380 32381 UL_GUI=$(printf xaw | $SED 's/\./_/g') 32382 32383 if test "x`eval echo '$'gui_$UL_GUI`" = "xyes"; then 32384 as_fn_error $? "specified client 'xaw' not configurable (libpng found but not png.h. 32385You may need to install a libpng \"development\" package.)" "$LINENO" 5 32386 fi 32387 32388 no_png=yes 32389 32390fi 32391 32392 32393elif test $pkg_failed = untried; then 32394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32395printf "%s\n" "no" >&6; } 32396 32397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for png_read_image in -lpng12" >&5 32398printf %s "checking for png_read_image in -lpng12... " >&6; } 32399if test ${ac_cv_lib_png12_png_read_image+y} 32400then : 32401 printf %s "(cached) " >&6 32402else $as_nop 32403 ac_check_lib_save_LIBS=$LIBS 32404LIBS="-lpng12 $LIBS" 32405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32406/* end confdefs.h. */ 32407 32408/* Override any GCC internal prototype to avoid an error. 32409 Use char because int might match the return type of a GCC 32410 builtin and then its argument prototype would still apply. */ 32411char png_read_image (); 32412int 32413main (void) 32414{ 32415return png_read_image (); 32416 ; 32417 return 0; 32418} 32419_ACEOF 32420if ac_fn_c_try_link "$LINENO" 32421then : 32422 ac_cv_lib_png12_png_read_image=yes 32423else $as_nop 32424 ac_cv_lib_png12_png_read_image=no 32425fi 32426rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32427 conftest$ac_exeext conftest.$ac_ext 32428LIBS=$ac_check_lib_save_LIBS 32429fi 32430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_read_image" >&5 32431printf "%s\n" "$ac_cv_lib_png12_png_read_image" >&6; } 32432if test "x$ac_cv_lib_png12_png_read_image" = xyes 32433then : 32434 X_LIBS="$X_LIBS -lpng12 -lm" 32435else $as_nop 32436 32437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for png_read_image in -lpng" >&5 32438printf %s "checking for png_read_image in -lpng... " >&6; } 32439if test ${ac_cv_lib_png_png_read_image+y} 32440then : 32441 printf %s "(cached) " >&6 32442else $as_nop 32443 ac_check_lib_save_LIBS=$LIBS 32444LIBS="-lpng $LIBS" 32445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32446/* end confdefs.h. */ 32447 32448/* Override any GCC internal prototype to avoid an error. 32449 Use char because int might match the return type of a GCC 32450 builtin and then its argument prototype would still apply. */ 32451char png_read_image (); 32452int 32453main (void) 32454{ 32455return png_read_image (); 32456 ; 32457 return 0; 32458} 32459_ACEOF 32460if ac_fn_c_try_link "$LINENO" 32461then : 32462 ac_cv_lib_png_png_read_image=yes 32463else $as_nop 32464 ac_cv_lib_png_png_read_image=no 32465fi 32466rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32467 conftest$ac_exeext conftest.$ac_ext 32468LIBS=$ac_check_lib_save_LIBS 32469fi 32470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_image" >&5 32471printf "%s\n" "$ac_cv_lib_png_png_read_image" >&6; } 32472if test "x$ac_cv_lib_png_png_read_image" = xyes 32473then : 32474 X_LIBS="$X_LIBS -lpng -lm" 32475else $as_nop 32476 32477 32478 UL_GUI=$(printf xaw | $SED 's/\./_/g') 32479 32480 if test "x`eval echo '$'gui_$UL_GUI`" = "xyes"; then 32481 as_fn_error $? "specified client 'xaw' not configurable (Could not find PNG library.)" "$LINENO" 5 32482 fi 32483 32484 no_png=yes 32485 32486fi 32487 32488 32489fi 32490 32491 ac_fn_c_check_header_compile "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" 32492if test "x$ac_cv_header_png_h" = xyes 32493then : 32494 32495else $as_nop 32496 32497 32498 UL_GUI=$(printf xaw | $SED 's/\./_/g') 32499 32500 if test "x`eval echo '$'gui_$UL_GUI`" = "xyes"; then 32501 as_fn_error $? "specified client 'xaw' not configurable (libpng found but not png.h. 32502You may need to install a libpng \"development\" package.)" "$LINENO" 5 32503 fi 32504 32505 no_png=yes 32506 32507fi 32508 32509 32510else 32511 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 32512 PNG_LIBS=$pkg_cv_PNG_LIBS 32513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32514printf "%s\n" "yes" >&6; } 32515 32516 X_LIBS="$X_LIBS $PNG_LIBS" 32517 X_CFLAGS="$X_CFLAGS $PNG_CFLAGS" 32518 32519fi 32520 32521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking extra paths for Xpm" >&5 32522printf %s "checking extra paths for Xpm... " >&6; } 32523 32524# Check whether --with-xpm-prefix was given. 32525if test ${with_xpm_prefix+y} 32526then : 32527 withval=$with_xpm_prefix; xpm_prefix="$withval" 32528else $as_nop 32529 xpm_prefix="yes" 32530fi 32531 32532 32533if test "$xpm_prefix" = "yes" || test "$xpm_prefix" = "no"; then 32534 xpm_libdir="$xpm_prefix" 32535 xpm_incdir="$xpm_prefix" 32536else 32537 xpm_libdir="$xpm_prefix/lib" 32538 xpm_incdir="$xpm_prefix/include" 32539fi 32540 32541 32542# Check whether --with-xpm-lib was given. 32543if test ${with_xpm_lib+y} 32544then : 32545 withval=$with_xpm_lib; xpm_libdir="$withval" 32546fi 32547 32548 32549 32550# Check whether --with-xpm-include was given. 32551if test ${with_xpm_include+y} 32552then : 32553 withval=$with_xpm_include; xpm_incdir="$withval" 32554fi 32555 32556 32557fc_xpm_default=/usr/local 32558if test "$xpm_libdir" = "yes"; then 32559 xpm_libdir="no" 32560 fc_xpm_default_lib="$fc_xpm_default/lib" 32561 for fc_extension in a so sl; do 32562 if test -r $fc_xpm_default_lib/libXpm.$fc_extension; then 32563 xpm_libdir=$fc_xpm_default_lib 32564 break 32565 fi 32566 done 32567fi 32568if test "$xpm_incdir" = "yes"; then 32569 xpm_incdir="no" 32570 fc_xpm_default_inc="$fc_xpm_default/include" 32571 if test -r $fc_xpm_default_inc/X11/xpm.h; then 32572 xpm_incdir=$fc_xpm_default_inc 32573 elif test -r $fc_xpm_default_inc/xpm.h; then 32574 xpm_incdir=$fc_xpm_default_inc 32575 xpm_h_no_x11=yes 32576 fi 32577fi 32578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: library $xpm_libdir, include $xpm_incdir" >&5 32579printf "%s\n" "library $xpm_libdir, include $xpm_incdir" >&6; } 32580 32581 32582 if test "$xpm_incdir" != "no"; then 32583 X_CFLAGS="$X_CFLAGS -I$xpm_incdir" 32584 fi 32585 if test "$xpm_libdir" != "no"; then 32586 X_LIBS="$X_LIBS -L$xpm_libdir" 32587 if test "$ac_R_nospace" = "yes"; then 32588 X_LIBS="$X_LIBS -R$xpm_libdir" 32589 elif test "$ac_R_space" = "yes"; then 32590 X_LIBS="$X_LIBS -R $xpm_libdir" 32591 fi 32592 if test "x$xpm_h_no_x11" = "xyes"; then 32593 32594printf "%s\n" "#define XPM_H_NO_X11 1" >>confdefs.h 32595 32596 fi 32597 fi 32598 32599 fc_save_X_LIBS="$X_LIBS" 32600 X_LIBS="$X_LIBS $X_PRE_LIBS" 32601 32602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in X library -lX11" >&5 32603printf %s "checking for XOpenDisplay in X library -lX11... " >&6; } 32604 32605 32606 ac_lib_var=`echo X11'_'XOpenDisplay | $SED 'y%./+-%__p_%'` 32607 if eval test \${ac_cv_lib_$ac_lib_var+y} 32608then : 32609 printf %s "(cached) " >&6 32610else $as_nop 32611 ac_save_LIBS="$LIBS" 32612 LIBS="$X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 32613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32614/* end confdefs.h. */ 32615 32616 #ifdef __cplusplus 32617 extern "C" 32618 #endif 32619 /* We use char because int might match the return type of a gcc2 32620 builtin and then its argument prototype would still apply. */ 32621 char XOpenDisplay(); 32622 32623 32624int 32625main (void) 32626{ 32627XOpenDisplay() 32628 ; 32629 return 0; 32630} 32631_ACEOF 32632if ac_fn_c_try_link "$LINENO" 32633then : 32634 eval "ac_cv_lib_$ac_lib_var=yes" 32635else $as_nop 32636 eval "ac_cv_lib_$ac_lib_var=no" 32637fi 32638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32639 conftest$ac_exeext conftest.$ac_ext 32640 LIBS="$ac_save_LIBS" 32641 32642fi 32643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 32644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32645printf "%s\n" "yes" >&6; } 32646 ac_tr_lib=HAVE_LIB`echo X11 | $SED -e 's/[^a-zA-Z0-9_]/_/g' \ 32647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 32648 32649 # The HAVE_LIBX** values are defined in FC_CHECK_X_LIB, but we need an 32650 # AH_TEMPLATE for them so that autoheader will know about them. 32651 32652 32653 32654 32655 32656 32657 32658 if (test $ac_tr_lib = HAVE_LIBX11 \ 32659 || test $ac_tr_lib = HAVE_LIBXEXT \ 32660 || test $ac_tr_lib = HAVE_LIBXT \ 32661 || test $ac_tr_lib = HAVE_LIBXMU \ 32662 || test $ac_tr_lib = HAVE_LIBXPM \ 32663 || test $ac_tr_lib = HAVE_LIBXAW \ 32664 || test $ac_tr_lib = HAVE_LIBXAW3D); then 32665 32666printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 32667 32668 X_EXTRA_LIBS="-lX11 $X_EXTRA_LIBS" 32669 else 32670 as_fn_error $? "Invalid define of $ac_tr_lib in X11" "$LINENO" 5 32671 fi 32672 32673 else 32674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32675printf "%s\n" "no" >&6; } 32676 haveX11=no 32677 fi 32678 32679 if test "x$haveX11" != "xno"; then 32680 32681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in X library -lXext" >&5 32682printf %s "checking for XShapeCombineMask in X library -lXext... " >&6; } 32683 32684 32685 ac_lib_var=`echo Xext'_'XShapeCombineMask | $SED 'y%./+-%__p_%'` 32686 if eval test \${ac_cv_lib_$ac_lib_var+y} 32687then : 32688 printf %s "(cached) " >&6 32689else $as_nop 32690 ac_save_LIBS="$LIBS" 32691 LIBS="$X_LIBS -lXext $X_EXTRA_LIBS $LIBS" 32692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32693/* end confdefs.h. */ 32694 32695 #ifdef __cplusplus 32696 extern "C" 32697 #endif 32698 /* We use char because int might match the return type of a gcc2 32699 builtin and then its argument prototype would still apply. */ 32700 char XShapeCombineMask(); 32701 32702 32703int 32704main (void) 32705{ 32706XShapeCombineMask() 32707 ; 32708 return 0; 32709} 32710_ACEOF 32711if ac_fn_c_try_link "$LINENO" 32712then : 32713 eval "ac_cv_lib_$ac_lib_var=yes" 32714else $as_nop 32715 eval "ac_cv_lib_$ac_lib_var=no" 32716fi 32717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32718 conftest$ac_exeext conftest.$ac_ext 32719 LIBS="$ac_save_LIBS" 32720 32721fi 32722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 32723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32724printf "%s\n" "yes" >&6; } 32725 ac_tr_lib=HAVE_LIB`echo Xext | $SED -e 's/[^a-zA-Z0-9_]/_/g' \ 32726 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 32727 32728 # The HAVE_LIBX** values are defined in FC_CHECK_X_LIB, but we need an 32729 # AH_TEMPLATE for them so that autoheader will know about them. 32730 32731 32732 32733 32734 32735 32736 32737 if (test $ac_tr_lib = HAVE_LIBX11 \ 32738 || test $ac_tr_lib = HAVE_LIBXEXT \ 32739 || test $ac_tr_lib = HAVE_LIBXT \ 32740 || test $ac_tr_lib = HAVE_LIBXMU \ 32741 || test $ac_tr_lib = HAVE_LIBXPM \ 32742 || test $ac_tr_lib = HAVE_LIBXAW \ 32743 || test $ac_tr_lib = HAVE_LIBXAW3D); then 32744 32745printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 32746 32747 X_EXTRA_LIBS="-lXext $X_EXTRA_LIBS" 32748 else 32749 as_fn_error $? "Invalid define of $ac_tr_lib in Xext" "$LINENO" 5 32750 fi 32751 32752 else 32753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32754printf "%s\n" "no" >&6; } 32755 fi 32756 32757 32758 X_EXTRA_LIBS="$X_PRE_LIBS $X_EXTRA_LIBS" 32759 X_LIBS="$fc_save_X_LIBS" 32760 32761 32762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in X library -lXt" >&5 32763printf %s "checking for main in X library -lXt... " >&6; } 32764 32765 32766 ac_lib_var=`echo Xt'_'main | $SED 'y%./+-%__p_%'` 32767 if eval test \${ac_cv_lib_$ac_lib_var+y} 32768then : 32769 printf %s "(cached) " >&6 32770else $as_nop 32771 ac_save_LIBS="$LIBS" 32772 LIBS="$X_LIBS -lXt $X_EXTRA_LIBS $LIBS" 32773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32774/* end confdefs.h. */ 32775 32776 32777 32778int 32779main (void) 32780{ 32781main() 32782 ; 32783 return 0; 32784} 32785_ACEOF 32786if ac_fn_c_try_link "$LINENO" 32787then : 32788 eval "ac_cv_lib_$ac_lib_var=yes" 32789else $as_nop 32790 eval "ac_cv_lib_$ac_lib_var=no" 32791fi 32792rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32793 conftest$ac_exeext conftest.$ac_ext 32794 LIBS="$ac_save_LIBS" 32795 32796fi 32797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 32798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32799printf "%s\n" "yes" >&6; } 32800 ac_tr_lib=HAVE_LIB`echo Xt | $SED -e 's/[^a-zA-Z0-9_]/_/g' \ 32801 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 32802 32803 # The HAVE_LIBX** values are defined in FC_CHECK_X_LIB, but we need an 32804 # AH_TEMPLATE for them so that autoheader will know about them. 32805 32806 32807 32808 32809 32810 32811 32812 if (test $ac_tr_lib = HAVE_LIBX11 \ 32813 || test $ac_tr_lib = HAVE_LIBXEXT \ 32814 || test $ac_tr_lib = HAVE_LIBXT \ 32815 || test $ac_tr_lib = HAVE_LIBXMU \ 32816 || test $ac_tr_lib = HAVE_LIBXPM \ 32817 || test $ac_tr_lib = HAVE_LIBXAW \ 32818 || test $ac_tr_lib = HAVE_LIBXAW3D); then 32819 32820printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 32821 32822 X_EXTRA_LIBS="-lXt $X_EXTRA_LIBS" 32823 else 32824 as_fn_error $? "Invalid define of $ac_tr_lib in Xt" "$LINENO" 5 32825 fi 32826 32827 else 32828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32829printf "%s\n" "no" >&6; } 32830 fi 32831 32832 32833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in X library -lXmu" >&5 32834printf %s "checking for main in X library -lXmu... " >&6; } 32835 32836 32837 ac_lib_var=`echo Xmu'_'main | $SED 'y%./+-%__p_%'` 32838 if eval test \${ac_cv_lib_$ac_lib_var+y} 32839then : 32840 printf %s "(cached) " >&6 32841else $as_nop 32842 ac_save_LIBS="$LIBS" 32843 LIBS="$X_LIBS -lXmu $X_EXTRA_LIBS $LIBS" 32844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32845/* end confdefs.h. */ 32846 32847 32848 32849int 32850main (void) 32851{ 32852main() 32853 ; 32854 return 0; 32855} 32856_ACEOF 32857if ac_fn_c_try_link "$LINENO" 32858then : 32859 eval "ac_cv_lib_$ac_lib_var=yes" 32860else $as_nop 32861 eval "ac_cv_lib_$ac_lib_var=no" 32862fi 32863rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32864 conftest$ac_exeext conftest.$ac_ext 32865 LIBS="$ac_save_LIBS" 32866 32867fi 32868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 32869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32870printf "%s\n" "yes" >&6; } 32871 ac_tr_lib=HAVE_LIB`echo Xmu | $SED -e 's/[^a-zA-Z0-9_]/_/g' \ 32872 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 32873 32874 # The HAVE_LIBX** values are defined in FC_CHECK_X_LIB, but we need an 32875 # AH_TEMPLATE for them so that autoheader will know about them. 32876 32877 32878 32879 32880 32881 32882 32883 if (test $ac_tr_lib = HAVE_LIBX11 \ 32884 || test $ac_tr_lib = HAVE_LIBXEXT \ 32885 || test $ac_tr_lib = HAVE_LIBXT \ 32886 || test $ac_tr_lib = HAVE_LIBXMU \ 32887 || test $ac_tr_lib = HAVE_LIBXPM \ 32888 || test $ac_tr_lib = HAVE_LIBXAW \ 32889 || test $ac_tr_lib = HAVE_LIBXAW3D); then 32890 32891printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 32892 32893 X_EXTRA_LIBS="-lXmu $X_EXTRA_LIBS" 32894 else 32895 as_fn_error $? "Invalid define of $ac_tr_lib in Xmu" "$LINENO" 5 32896 fi 32897 32898 else 32899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32900printf "%s\n" "no" >&6; } 32901 fi 32902 32903 32904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in X library -lXpm" >&5 32905printf %s "checking for XpmReadFileToPixmap in X library -lXpm... " >&6; } 32906 32907 32908 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | $SED 'y%./+-%__p_%'` 32909 if eval test \${ac_cv_lib_$ac_lib_var+y} 32910then : 32911 printf %s "(cached) " >&6 32912else $as_nop 32913 ac_save_LIBS="$LIBS" 32914 LIBS="$X_LIBS -lXpm $X_EXTRA_LIBS $LIBS" 32915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32916/* end confdefs.h. */ 32917 32918 #ifdef __cplusplus 32919 extern "C" 32920 #endif 32921 /* We use char because int might match the return type of a gcc2 32922 builtin and then its argument prototype would still apply. */ 32923 char XpmReadFileToPixmap(); 32924 32925 32926int 32927main (void) 32928{ 32929XpmReadFileToPixmap() 32930 ; 32931 return 0; 32932} 32933_ACEOF 32934if ac_fn_c_try_link "$LINENO" 32935then : 32936 eval "ac_cv_lib_$ac_lib_var=yes" 32937else $as_nop 32938 eval "ac_cv_lib_$ac_lib_var=no" 32939fi 32940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32941 conftest$ac_exeext conftest.$ac_ext 32942 LIBS="$ac_save_LIBS" 32943 32944fi 32945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 32946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32947printf "%s\n" "yes" >&6; } 32948 ac_tr_lib=HAVE_LIB`echo Xpm | $SED -e 's/[^a-zA-Z0-9_]/_/g' \ 32949 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 32950 32951 # The HAVE_LIBX** values are defined in FC_CHECK_X_LIB, but we need an 32952 # AH_TEMPLATE for them so that autoheader will know about them. 32953 32954 32955 32956 32957 32958 32959 32960 if (test $ac_tr_lib = HAVE_LIBX11 \ 32961 || test $ac_tr_lib = HAVE_LIBXEXT \ 32962 || test $ac_tr_lib = HAVE_LIBXT \ 32963 || test $ac_tr_lib = HAVE_LIBXMU \ 32964 || test $ac_tr_lib = HAVE_LIBXPM \ 32965 || test $ac_tr_lib = HAVE_LIBXAW \ 32966 || test $ac_tr_lib = HAVE_LIBXAW3D); then 32967 32968printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 32969 32970 X_EXTRA_LIBS="-lXpm $X_EXTRA_LIBS" 32971 else 32972 as_fn_error $? "Invalid define of $ac_tr_lib in Xpm" "$LINENO" 5 32973 fi 32974 32975 else 32976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32977printf "%s\n" "no" >&6; } 32978 haveXpm=no 32979 fi 32980 32981 if test "x$haveXpm" != "xno"; then 32982 if test -n "$WITH_XAW3D"; then 32983 32984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in X library -lXaw3d" >&5 32985printf %s "checking for main in X library -lXaw3d... " >&6; } 32986 32987 32988 ac_lib_var=`echo Xaw3d'_'main | $SED 'y%./+-%__p_%'` 32989 if eval test \${ac_cv_lib_$ac_lib_var+y} 32990then : 32991 printf %s "(cached) " >&6 32992else $as_nop 32993 ac_save_LIBS="$LIBS" 32994 LIBS="$X_LIBS -lXaw3d $X_EXTRA_LIBS $LIBS" 32995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32996/* end confdefs.h. */ 32997 32998 32999 33000int 33001main (void) 33002{ 33003main() 33004 ; 33005 return 0; 33006} 33007_ACEOF 33008if ac_fn_c_try_link "$LINENO" 33009then : 33010 eval "ac_cv_lib_$ac_lib_var=yes" 33011else $as_nop 33012 eval "ac_cv_lib_$ac_lib_var=no" 33013fi 33014rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33015 conftest$ac_exeext conftest.$ac_ext 33016 LIBS="$ac_save_LIBS" 33017 33018fi 33019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 33020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33021printf "%s\n" "yes" >&6; } 33022 ac_tr_lib=HAVE_LIB`echo Xaw3d | $SED -e 's/[^a-zA-Z0-9_]/_/g' \ 33023 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 33024 33025 # The HAVE_LIBX** values are defined in FC_CHECK_X_LIB, but we need an 33026 # AH_TEMPLATE for them so that autoheader will know about them. 33027 33028 33029 33030 33031 33032 33033 33034 if (test $ac_tr_lib = HAVE_LIBX11 \ 33035 || test $ac_tr_lib = HAVE_LIBXEXT \ 33036 || test $ac_tr_lib = HAVE_LIBXT \ 33037 || test $ac_tr_lib = HAVE_LIBXMU \ 33038 || test $ac_tr_lib = HAVE_LIBXPM \ 33039 || test $ac_tr_lib = HAVE_LIBXAW \ 33040 || test $ac_tr_lib = HAVE_LIBXAW3D); then 33041 33042printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 33043 33044 X_EXTRA_LIBS="-lXaw3d $X_EXTRA_LIBS" 33045 else 33046 as_fn_error $? "Invalid define of $ac_tr_lib in Xaw3d" "$LINENO" 5 33047 fi 33048 33049 else 33050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33051printf "%s\n" "no" >&6; } 33052 as_fn_error $? "did not find Xaw3d library" "$LINENO" 5 33053 fi 33054 33055 else 33056 33057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in X library -lXaw" >&5 33058printf %s "checking for main in X library -lXaw... " >&6; } 33059 33060 33061 ac_lib_var=`echo Xaw'_'main | $SED 'y%./+-%__p_%'` 33062 if eval test \${ac_cv_lib_$ac_lib_var+y} 33063then : 33064 printf %s "(cached) " >&6 33065else $as_nop 33066 ac_save_LIBS="$LIBS" 33067 LIBS="$X_LIBS -lXaw $X_EXTRA_LIBS $LIBS" 33068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33069/* end confdefs.h. */ 33070 33071 33072 33073int 33074main (void) 33075{ 33076main() 33077 ; 33078 return 0; 33079} 33080_ACEOF 33081if ac_fn_c_try_link "$LINENO" 33082then : 33083 eval "ac_cv_lib_$ac_lib_var=yes" 33084else $as_nop 33085 eval "ac_cv_lib_$ac_lib_var=no" 33086fi 33087rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33088 conftest$ac_exeext conftest.$ac_ext 33089 LIBS="$ac_save_LIBS" 33090 33091fi 33092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 33093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33094printf "%s\n" "yes" >&6; } 33095 ac_tr_lib=HAVE_LIB`echo Xaw | $SED -e 's/[^a-zA-Z0-9_]/_/g' \ 33096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 33097 33098 # The HAVE_LIBX** values are defined in FC_CHECK_X_LIB, but we need an 33099 # AH_TEMPLATE for them so that autoheader will know about them. 33100 33101 33102 33103 33104 33105 33106 33107 if (test $ac_tr_lib = HAVE_LIBX11 \ 33108 || test $ac_tr_lib = HAVE_LIBXEXT \ 33109 || test $ac_tr_lib = HAVE_LIBXT \ 33110 || test $ac_tr_lib = HAVE_LIBXMU \ 33111 || test $ac_tr_lib = HAVE_LIBXPM \ 33112 || test $ac_tr_lib = HAVE_LIBXAW \ 33113 || test $ac_tr_lib = HAVE_LIBXAW3D); then 33114 33115printf "%s\n" "#define $ac_tr_lib 1" >>confdefs.h 33116 33117 X_EXTRA_LIBS="-lXaw $X_EXTRA_LIBS" 33118 else 33119 as_fn_error $? "Invalid define of $ac_tr_lib in Xaw" "$LINENO" 5 33120 fi 33121 33122 else 33123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33124printf "%s\n" "no" >&6; } 33125 as_fn_error $? "did not find Xaw library" "$LINENO" 5 33126 fi 33127 33128 fi 33129 33130 gui_xaw_cflags="$X_CFLAGS" 33131 gui_xaw_libs="$X_LIBS $X_EXTRA_LIBS" 33132 33133 found_client=yes 33134 fi 33135 fi 33136 33137 if test "x$found_client" = "xyes" && test "x$no_png" != "xyes"; then 33138 gui_xaw=yes 33139 if test "x$client" = "xauto" ; then 33140 client=yes 33141 fi 33142 elif test "x$gui_xaw" = "xyes"; then 33143 if test "x$haveXpm" = "xno"; then 33144 as_fn_error $? "specified client 'xaw' not configurable -- need Xpm library and development headers; perhaps try/adjust --with-xpm-lib" "$LINENO" 5 33145 else 33146 as_fn_error $? "specified client 'xaw' not configurable -- need X11 libraries and development headers; perhaps try/adjust --x-libraries" "$LINENO" 5 33147 fi 33148 fi 33149 fi 33150 33151 33152 if test "x$gui_stub" = "xyes" || test "x$client" = "xall" ; then 33153 gui_stub=yes 33154 if test "x$client" = "xauto" ; then 33155 client=yes 33156 fi 33157 gui_stub_libs="-lm" 33158 fi 33159 33160 if test "x$client" = "xauto" ; then 33161 as_fn_error $? "can not build any of the supported clients" "$LINENO" 5 33162 fi 33163fi 33164 33165if test "x$client" = "xall" ; then 33166 if test "x$gui_gtk2" = "xyes" || 33167 test "x$gui_gtk3_22" = "xyes" || 33168 test "x$gui_gtk3" = "xyes" || 33169 test "x$gui_sdl" = "xyes" || 33170 test "x$gui_sdl2" = "xyes" || 33171 test "x$gui_xaw" = "xyes" || 33172 test "x$gui_qt" = "xyes" || 33173 test "x$gui_stub" = "xyes" ; then 33174 client=yes 33175 else 33176 client=no 33177 fi 33178fi 33179 33180 33181flags_save=$LDFLAGS 33182accepted_flags="" 33183existing_flags="`eval echo '$'LDFLAGS`" 33184 33185for flag in "-Wl,-rpath=${lib_prefix}" 33186do 33187 LDFLAGS="$flags_save $existing_flags $accepted_flags $flag " 33188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33189/* end confdefs.h. */ 33190 33191int 33192main (void) 33193{ 33194int a; 33195 ; 33196 return 0; 33197} 33198_ACEOF 33199if ac_fn_c_try_link "$LINENO" 33200then : 33201 33202old_value="`eval echo '$'accepted_flags`" 33203if test "x$old_value" = "x" ; then 33204 accepted_flags="$flag" 33205elif test "x$flag" != "x" ; then 33206 accepted_flags="$old_value $flag" 33207fi 33208 33209fi 33210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33211 conftest$ac_exeext conftest.$ac_ext 33212done 33213 33214old_value="`eval echo '$'LDFLAGS`" 33215if test "x$old_value" = "x" ; then 33216 LDFLAGS="$accepted_flags" 33217elif test "x$accepted_flags" != "x" ; then 33218 LDFLAGS="$old_value $accepted_flags" 33219fi 33220 33221 33222LDFLAGS="$flags_save" 33223 33224 33225 if test "x$client" = "xyes"; then 33226 CLIENT_TRUE= 33227 CLIENT_FALSE='#' 33228else 33229 CLIENT_TRUE='#' 33230 CLIENT_FALSE= 33231fi 33232 33233 33234# Check whether --enable-freeciv-manual was given. 33235if test ${enable_freeciv_manual+y} 33236then : 33237 enableval=$enable_freeciv_manual; case "${enableval}" in 33238 yes|wiki) fcmanual=wiki ;; 33239 no) fcmanual=no ;; 33240 html) fcmanual=html ;; 33241 *) as_fn_error $? "bad value ${enableval} for --enable-freeciv-manual" "$LINENO" 5 ;; 33242esac 33243else $as_nop 33244 fcmanual=wiki 33245fi 33246 33247 33248 if test "x$fcmanual" != "xno"; then 33249 FCMANUAL_TRUE= 33250 FCMANUAL_FALSE='#' 33251else 33252 FCMANUAL_TRUE='#' 33253 FCMANUAL_FALSE= 33254fi 33255 33256 33257if test x$fcmanual = xhtml ; then 33258 33259printf "%s\n" "#define MANUAL_USE_HTML 1" >>confdefs.h 33260 33261fi 33262 33263# Check whether --enable-fcmp was given. 33264if test ${enable_fcmp+y} 33265then : 33266 enableval=$enable_fcmp; fc_mp=${enableval} 33267else $as_nop 33268 fc_mp=auto 33269fi 33270 33271 33272fcmp_cli=no 33273fcmp_gtk2=no 33274fcmp_gtk3=no 33275fcmp_qt=no 33276fcmp_list= 33277 33278if test "x$fc_mp" = "xcli" ; then 33279 modinst=cli 33280fi 33281 33282for mp in $(echo $fc_mp | $SED 's/,/ /g') ; do 33283 if test "x$mp" = "xno" ; then 33284 modinst=no 33285 elif test "x$mp" = "xauto" || test "x$mp" = "xyes" ; then 33286 modinst=auto 33287 elif test "x$mp" = "xall" ; then 33288 modinst=all 33289 else if test "x$mp" = "xgtk2" || 33290 test "x$mp" = "xgtk2.0" || 33291 test "x$mp" = "xgtk20" || 33292 test "x$mp" = "xgtk-2.0" ; then 33293 req_fcmp_gtk2=yes 33294 elif test "x$mp" = "xgtk3" || 33295 test "x$mp" = "xgtk3.0" || 33296 test "x$mp" = "xgtk30" || 33297 test "x$mp" = "xgtk-3.0" ; then 33298 req_fcmp_gtk3=yes 33299 elif test "x$mp" = "xqt" ; then 33300 req_fcmp_qt=yes 33301 elif test "x$mp" = "xcli" ; then 33302 req_fcmp_cli=yes 33303 elif test "x$mp" != "xyes" ; then 33304 as_fn_error $? "bad value ${mp} for --enable-fcmp" "$LINENO" 5 33305 fi 33306 fi 33307done 33308 33309if test "x$req_fcmp_gtk3" = "xyes" || 33310 test "x$modinst" = "xall" || test "x$modinst" = "xauto" ; then 33311 33312pkg_failed=no 33313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK3MP" >&5 33314printf %s "checking for GTK3MP... " >&6; } 33315 33316if test -n "$GTK3MP_CFLAGS"; then 33317 pkg_cv_GTK3MP_CFLAGS="$GTK3MP_CFLAGS" 33318 elif test -n "$PKG_CONFIG"; then 33319 if test -n "$PKG_CONFIG" && \ 33320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.8.0\""; } >&5 33321 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.8.0") 2>&5 33322 ac_status=$? 33323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33324 test $ac_status = 0; }; then 33325 pkg_cv_GTK3MP_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= 3.8.0" 2>/dev/null` 33326 test "x$?" != "x0" && pkg_failed=yes 33327else 33328 pkg_failed=yes 33329fi 33330 else 33331 pkg_failed=untried 33332fi 33333if test -n "$GTK3MP_LIBS"; then 33334 pkg_cv_GTK3MP_LIBS="$GTK3MP_LIBS" 33335 elif test -n "$PKG_CONFIG"; then 33336 if test -n "$PKG_CONFIG" && \ 33337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= 3.8.0\""; } >&5 33338 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= 3.8.0") 2>&5 33339 ac_status=$? 33340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33341 test $ac_status = 0; }; then 33342 pkg_cv_GTK3MP_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= 3.8.0" 2>/dev/null` 33343 test "x$?" != "x0" && pkg_failed=yes 33344else 33345 pkg_failed=yes 33346fi 33347 else 33348 pkg_failed=untried 33349fi 33350 33351 33352 33353if test $pkg_failed = yes; then 33354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33355printf "%s\n" "no" >&6; } 33356 33357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33358 _pkg_short_errors_supported=yes 33359else 33360 _pkg_short_errors_supported=no 33361fi 33362 if test $_pkg_short_errors_supported = yes; then 33363 GTK3MP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= 3.8.0" 2>&1` 33364 else 33365 GTK3MP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= 3.8.0" 2>&1` 33366 fi 33367 # Put the nasty error message in config.log where it belongs 33368 echo "$GTK3MP_PKG_ERRORS" >&5 33369 33370 fcmp_gtk3=no 33371elif test $pkg_failed = untried; then 33372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33373printf "%s\n" "no" >&6; } 33374 fcmp_gtk3=no 33375else 33376 GTK3MP_CFLAGS=$pkg_cv_GTK3MP_CFLAGS 33377 GTK3MP_LIBS=$pkg_cv_GTK3MP_LIBS 33378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33379printf "%s\n" "yes" >&6; } 33380 33381 GTK3MP_CFLAGS="$GTK3MP_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_8 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_8" 33382 GTK3MP_CFLAGS="$GTK3MP_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_36 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_36" 33383 33384pkg_failed=no 33385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTHREAD_GTK3" >&5 33386printf %s "checking for GTHREAD_GTK3... " >&6; } 33387 33388if test -n "$GTHREAD_GTK3_CFLAGS"; then 33389 pkg_cv_GTHREAD_GTK3_CFLAGS="$GTHREAD_GTK3_CFLAGS" 33390 elif test -n "$PKG_CONFIG"; then 33391 if test -n "$PKG_CONFIG" && \ 33392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5 33393 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5 33394 ac_status=$? 33395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33396 test $ac_status = 0; }; then 33397 pkg_cv_GTHREAD_GTK3_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null` 33398 test "x$?" != "x0" && pkg_failed=yes 33399else 33400 pkg_failed=yes 33401fi 33402 else 33403 pkg_failed=untried 33404fi 33405if test -n "$GTHREAD_GTK3_LIBS"; then 33406 pkg_cv_GTHREAD_GTK3_LIBS="$GTHREAD_GTK3_LIBS" 33407 elif test -n "$PKG_CONFIG"; then 33408 if test -n "$PKG_CONFIG" && \ 33409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5 33410 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5 33411 ac_status=$? 33412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33413 test $ac_status = 0; }; then 33414 pkg_cv_GTHREAD_GTK3_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null` 33415 test "x$?" != "x0" && pkg_failed=yes 33416else 33417 pkg_failed=yes 33418fi 33419 else 33420 pkg_failed=untried 33421fi 33422 33423 33424 33425if test $pkg_failed = yes; then 33426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33427printf "%s\n" "no" >&6; } 33428 33429if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33430 _pkg_short_errors_supported=yes 33431else 33432 _pkg_short_errors_supported=no 33433fi 33434 if test $_pkg_short_errors_supported = yes; then 33435 GTHREAD_GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1` 33436 else 33437 GTHREAD_GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1` 33438 fi 33439 # Put the nasty error message in config.log where it belongs 33440 echo "$GTHREAD_GTK3_PKG_ERRORS" >&5 33441 33442 fcmp_gtk3=no 33443elif test $pkg_failed = untried; then 33444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33445printf "%s\n" "no" >&6; } 33446 fcmp_gtk3=no 33447else 33448 GTHREAD_GTK3_CFLAGS=$pkg_cv_GTHREAD_GTK3_CFLAGS 33449 GTHREAD_GTK3_LIBS=$pkg_cv_GTHREAD_GTK3_LIBS 33450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33451printf "%s\n" "yes" >&6; } 33452 33453 fcmp_gtk3=yes 33454 fcmp_list="$fcmp_list gtk3" 33455 mp_gtk3_cflags="$GTK3MP_CFLAGS $GTHREAD_GTK3_CFLAGS" 33456 mp_gtk3_libs="$GTK3MP_LIBS $GTHREAD_GTK3_LIBS" 33457 if test "x$MINGW" = "xyes"; then 33458 mp_gtk3_cflags="$mp_gtk3_cflags -mms-bitfields" 33459 mp_gtk3_ldflags="$mp_gtk3_ldflags $MWINDOWS_FLAG" 33460 fi 33461 33462 if test "x$modinst" = "xauto" ; then 33463 modinst=found 33464 fi 33465 33466fi 33467fi 33468fi 33469 33470if test "x$req_fcmp_gtk3" = "xyes" && test "x$fcmp_gtk3" != "xyes" ; then 33471 as_fn_error $? "Cannot build gtk3-version of freeciv-modpack as requested" "$LINENO" 5 33472fi 33473 33474if test "x$req_fcmp_gtk2" = "xyes" || 33475 test "x$modinst" = "xauto" || test "x$modinst" = "xall" ; then 33476 # Check whether --enable-gtktest was given. 33477if test ${enable_gtktest+y} 33478then : 33479 enableval=$enable_gtktest; 33480else $as_nop 33481 enable_gtktest=yes 33482fi 33483 33484 33485 pkg_config_args=gtk+-2.0 33486 for module in . 33487 do 33488 case "$module" in 33489 gthread) 33490 pkg_config_args="$pkg_config_args gthread-2.0" 33491 ;; 33492 esac 33493 done 33494 33495 no_gtk="" 33496 33497 33498 33499 33500 33501 33502 33503 33504 33505if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 33506 if test -n "$ac_tool_prefix"; then 33507 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 33508set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 33509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33510printf %s "checking for $ac_word... " >&6; } 33511if test ${ac_cv_path_PKG_CONFIG+y} 33512then : 33513 printf %s "(cached) " >&6 33514else $as_nop 33515 case $PKG_CONFIG in 33516 [\\/]* | ?:[\\/]*) 33517 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 33518 ;; 33519 *) 33520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33521for as_dir in $PATH 33522do 33523 IFS=$as_save_IFS 33524 case $as_dir in #((( 33525 '') as_dir=./ ;; 33526 */) ;; 33527 *) as_dir=$as_dir/ ;; 33528 esac 33529 for ac_exec_ext in '' $ac_executable_extensions; do 33530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33531 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 33532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33533 break 2 33534 fi 33535done 33536 done 33537IFS=$as_save_IFS 33538 33539 ;; 33540esac 33541fi 33542PKG_CONFIG=$ac_cv_path_PKG_CONFIG 33543if test -n "$PKG_CONFIG"; then 33544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 33545printf "%s\n" "$PKG_CONFIG" >&6; } 33546else 33547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33548printf "%s\n" "no" >&6; } 33549fi 33550 33551 33552fi 33553if test -z "$ac_cv_path_PKG_CONFIG"; then 33554 ac_pt_PKG_CONFIG=$PKG_CONFIG 33555 # Extract the first word of "pkg-config", so it can be a program name with args. 33556set dummy pkg-config; ac_word=$2 33557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33558printf %s "checking for $ac_word... " >&6; } 33559if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 33560then : 33561 printf %s "(cached) " >&6 33562else $as_nop 33563 case $ac_pt_PKG_CONFIG in 33564 [\\/]* | ?:[\\/]*) 33565 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 33566 ;; 33567 *) 33568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33569for as_dir in $PATH 33570do 33571 IFS=$as_save_IFS 33572 case $as_dir in #((( 33573 '') as_dir=./ ;; 33574 */) ;; 33575 *) as_dir=$as_dir/ ;; 33576 esac 33577 for ac_exec_ext in '' $ac_executable_extensions; do 33578 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33579 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 33580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33581 break 2 33582 fi 33583done 33584 done 33585IFS=$as_save_IFS 33586 33587 ;; 33588esac 33589fi 33590ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 33591if test -n "$ac_pt_PKG_CONFIG"; then 33592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 33593printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 33594else 33595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33596printf "%s\n" "no" >&6; } 33597fi 33598 33599 if test "x$ac_pt_PKG_CONFIG" = x; then 33600 PKG_CONFIG="" 33601 else 33602 case $cross_compiling:$ac_tool_warned in 33603yes:) 33604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33605printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33606ac_tool_warned=yes ;; 33607esac 33608 PKG_CONFIG=$ac_pt_PKG_CONFIG 33609 fi 33610else 33611 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 33612fi 33613 33614fi 33615if test -n "$PKG_CONFIG"; then 33616 _pkg_min_version=0.7 33617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 33618printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 33619 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 33620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33621printf "%s\n" "yes" >&6; } 33622 else 33623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33624printf "%s\n" "no" >&6; } 33625 PKG_CONFIG="" 33626 fi 33627fi 33628 33629 min_gtk_version=2.12.0 33630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 33631printf %s "checking for GTK+ - version >= $min_gtk_version... " >&6; } 33632 33633 if test x$PKG_CONFIG != xno ; then 33634 ## don't try to run the test against uninstalled libtool libs 33635 if $PKG_CONFIG --uninstalled $pkg_config_args; then 33636 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" 33637 enable_gtktest=no 33638 fi 33639 33640 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then 33641 : 33642 else 33643 no_gtk=yes 33644 fi 33645 fi 33646 33647 if test x"$no_gtk" = x ; then 33648 GTK2_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` 33649 GTK2_CFLAGS="$GTK2_CFLAGS -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_2_12 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_2_12" 33650 GTK2_CFLAGS="$GTK2_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS" 33651 GTK2_LIBS=`$PKG_CONFIG $pkg_config_args --libs` 33652 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 33653 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 33654 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 33655 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 33656 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 33657 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 33658 if test "x$enable_gtktest" = "xyes" ; then 33659 ac_save_CFLAGS="$CFLAGS" 33660 ac_save_LIBS="$LIBS" 33661 CFLAGS="$CFLAGS $GTK2_CFLAGS" 33662 LIBS="$GTK2_LIBS $LIBS" 33663 rm -f conf.gtktest 33664 if test "$cross_compiling" = yes 33665then : 33666 echo $ac_n "cross compiling; assumed OK... $ac_c" 33667else $as_nop 33668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33669/* end confdefs.h. */ 33670 33671#include <gtk/gtk.h> 33672#include <stdio.h> 33673#include <stdlib.h> 33674 33675int 33676main () 33677{ 33678 int major, minor, micro; 33679 char *tmp_version; 33680 33681 fclose (fopen ("conf.gtktest", "w")); 33682 33683 /* HP/UX 9 (%@#!) writes to sscanf strings */ 33684 tmp_version = g_strdup("$min_gtk_version"); 33685 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 33686 printf("%s, bad version string\n", "$min_gtk_version"); 33687 exit(1); 33688 } 33689 33690 if ((gtk_major_version != $gtk_config_major_version) || 33691 (gtk_minor_version != $gtk_config_minor_version) || 33692 (gtk_micro_version != $gtk_config_micro_version)) 33693 { 33694 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 33695 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 33696 gtk_major_version, gtk_minor_version, gtk_micro_version); 33697 printf ("*** was found! If pkg-config was correct, then it is best\n"); 33698 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 33699 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 33700 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 33701 printf("*** required on your system.\n"); 33702 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); 33703 printf("*** to point to the correct configuration files\n"); 33704 } 33705 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 33706 (gtk_minor_version != GTK_MINOR_VERSION) || 33707 (gtk_micro_version != GTK_MICRO_VERSION)) 33708 { 33709 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 33710 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 33711 printf("*** library (version %d.%d.%d)\n", 33712 gtk_major_version, gtk_minor_version, gtk_micro_version); 33713 } 33714 else 33715 { 33716 if ((gtk_major_version > major) || 33717 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 33718 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 33719 { 33720 return 0; 33721 } 33722 else 33723 { 33724 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 33725 gtk_major_version, gtk_minor_version, gtk_micro_version); 33726 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 33727 major, minor, micro); 33728 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 33729 printf("***\n"); 33730 printf("*** If you have already installed a sufficiently new version, this error\n"); 33731 printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); 33732 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 33733 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); 33734 printf("*** correct copy of pkg-config. (In this case, you will have to\n"); 33735 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 33736 printf("*** so that the correct libraries are found at run-time))\n"); 33737 } 33738 } 33739 return 1; 33740} 33741 33742_ACEOF 33743if ac_fn_c_try_run "$LINENO" 33744then : 33745 33746else $as_nop 33747 no_gtk=yes 33748fi 33749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33750 conftest.$ac_objext conftest.beam conftest.$ac_ext 33751fi 33752 33753 CFLAGS="$ac_save_CFLAGS" 33754 LIBS="$ac_save_LIBS" 33755 fi 33756 fi 33757 if test "x$no_gtk" = x ; then 33758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 33759printf "%s\n" "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } 33760 33761 33762pkg_failed=no 33763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTHREAD_GTK2" >&5 33764printf %s "checking for GTHREAD_GTK2... " >&6; } 33765 33766if test -n "$GTHREAD_GTK2_CFLAGS"; then 33767 pkg_cv_GTHREAD_GTK2_CFLAGS="$GTHREAD_GTK2_CFLAGS" 33768 elif test -n "$PKG_CONFIG"; then 33769 if test -n "$PKG_CONFIG" && \ 33770 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5 33771 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5 33772 ac_status=$? 33773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33774 test $ac_status = 0; }; then 33775 pkg_cv_GTHREAD_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null` 33776 test "x$?" != "x0" && pkg_failed=yes 33777else 33778 pkg_failed=yes 33779fi 33780 else 33781 pkg_failed=untried 33782fi 33783if test -n "$GTHREAD_GTK2_LIBS"; then 33784 pkg_cv_GTHREAD_GTK2_LIBS="$GTHREAD_GTK2_LIBS" 33785 elif test -n "$PKG_CONFIG"; then 33786 if test -n "$PKG_CONFIG" && \ 33787 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5 33788 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5 33789 ac_status=$? 33790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33791 test $ac_status = 0; }; then 33792 pkg_cv_GTHREAD_GTK2_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null` 33793 test "x$?" != "x0" && pkg_failed=yes 33794else 33795 pkg_failed=yes 33796fi 33797 else 33798 pkg_failed=untried 33799fi 33800 33801 33802 33803if test $pkg_failed = yes; then 33804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33805printf "%s\n" "no" >&6; } 33806 33807if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 33808 _pkg_short_errors_supported=yes 33809else 33810 _pkg_short_errors_supported=no 33811fi 33812 if test $_pkg_short_errors_supported = yes; then 33813 GTHREAD_GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1` 33814 else 33815 GTHREAD_GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1` 33816 fi 33817 # Put the nasty error message in config.log where it belongs 33818 echo "$GTHREAD_GTK2_PKG_ERRORS" >&5 33819 33820 as_fn_error $? "Package requirements (gthread-2.0) were not met: 33821 33822$GTHREAD_GTK2_PKG_ERRORS 33823 33824Consider adjusting the PKG_CONFIG_PATH environment variable if you 33825installed software in a non-standard prefix. 33826 33827Alternatively, you may set the environment variables GTHREAD_GTK2_CFLAGS 33828and GTHREAD_GTK2_LIBS to avoid the need to call pkg-config. 33829See the pkg-config man page for more details." "$LINENO" 5 33830elif test $pkg_failed = untried; then 33831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33832printf "%s\n" "no" >&6; } 33833 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33834printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 33835as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 33836is in your PATH or set the PKG_CONFIG environment variable to the full 33837path to pkg-config. 33838 33839Alternatively, you may set the environment variables GTHREAD_GTK2_CFLAGS 33840and GTHREAD_GTK2_LIBS to avoid the need to call pkg-config. 33841See the pkg-config man page for more details. 33842 33843To get pkg-config, see <http://pkg-config.freedesktop.org/>. 33844See \`config.log' for more details" "$LINENO" 5; } 33845else 33846 GTHREAD_GTK2_CFLAGS=$pkg_cv_GTHREAD_GTK2_CFLAGS 33847 GTHREAD_GTK2_LIBS=$pkg_cv_GTHREAD_GTK2_LIBS 33848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33849printf "%s\n" "yes" >&6; } 33850 33851 fcmp_gtk2=yes 33852 fcmp_list="$fcmp_list gtk2" 33853 mp_gtk2_cflags="$GTK2_CFLAGS $GTHREAD_GTK2_CFLAGS" 33854 mp_gtk2_libs="$GTK2_LIBS $GTHREAD_GTK2_LIBS" 33855 if test "x$MINGW" = "xyes"; then 33856 mp_gtk2_cflags="$mp_gtk2_cflags -mms-bitfields" 33857 mp_gtk2_ldflags="$mp_gtk2_ldflags $MWINDOWS_FLAG" 33858 fi 33859 33860 if test "x$modinst" = "xauto" ; then 33861 modinst=found 33862 fi 33863 33864fi 33865 else 33866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33867printf "%s\n" "no" >&6; } 33868 if test "$PKG_CONFIG" = "no" ; then 33869 echo "*** A new enough version of pkg-config was not found." 33870 echo "*** See http://pkgconfig.sourceforge.net" 33871 else 33872 if test -f conf.gtktest ; then 33873 : 33874 else 33875 echo "*** Could not run GTK+ test program, checking why..." 33876 ac_save_CFLAGS="$CFLAGS" 33877 ac_save_LIBS="$LIBS" 33878 CFLAGS="$CFLAGS $GTK2_CFLAGS" 33879 LIBS="$LIBS $GTK_LIBS" 33880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33881/* end confdefs.h. */ 33882 33883#include <gtk/gtk.h> 33884#include <stdio.h> 33885 33886int 33887main (void) 33888{ 33889 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 33890 ; 33891 return 0; 33892} 33893_ACEOF 33894if ac_fn_c_try_link "$LINENO" 33895then : 33896 echo "*** The test program compiled, but did not run. This usually means" 33897 echo "*** that the run-time linker is not finding GTK+ or finding the wrong" 33898 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" 33899 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 33900 echo "*** to the installed location Also, make sure you have run ldconfig if that" 33901 echo "*** is required on your system" 33902 echo "***" 33903 echo "*** If you have an old version installed, it is best to remove it, although" 33904 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 33905else $as_nop 33906 echo "*** The test program failed to compile or link. See the file config.log for the" 33907 echo "*** exact error that occurred. This usually means GTK+ is incorrectly installed." 33908fi 33909rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33910 conftest$ac_exeext conftest.$ac_ext 33911 CFLAGS="$ac_save_CFLAGS" 33912 LIBS="$ac_save_LIBS" 33913 fi 33914 fi 33915 GTK2_CFLAGS="" 33916 GTK2_LIBS="" 33917 : 33918 fi 33919 33920 33921 rm -f conf.gtktest 33922 33923fi 33924 33925if test "x$req_fcmp_gtk2" = "xyes" && test "x$fcmp_gtk2" != "xyes" ; then 33926 as_fn_error $? "Cannot build gtk2-version of freeciv-modpack as requested" "$LINENO" 5 33927fi 33928 33929if test "x$req_fcmp_qt" = "xyes" || 33930 test "x$modinst" = "xauto" || test "x$modinst" = "xall" ; then 33931 33932 if test "x$cxx_works" = "xyes" ; then 33933 33934 if test "x$fc_qt5_usable" = "x" ; then 33935 FC_QT5_CPPFLAGS="-DQT_DISABLE_DEPRECATED_BEFORE=0x050200" 33936 case $host_os in 33937 darwin*) 33938 33939# Check whether --with-qt5_framework_bin was given. 33940if test ${with_qt5_framework_bin+y} 33941then : 33942 withval=$with_qt5_framework_bin; 33943fi 33944 33945 33946 # Extract the first word of "qtpaths", so it can be a program name with args. 33947set dummy qtpaths; ac_word=$2 33948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33949printf %s "checking for $ac_word... " >&6; } 33950if test ${ac_cv_prog_QTPATHS+y} 33951then : 33952 printf %s "(cached) " >&6 33953else $as_nop 33954 if test -n "$QTPATHS"; then 33955 ac_cv_prog_QTPATHS="$QTPATHS" # Let the user override the test. 33956else 33957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33958for as_dir in $PATH 33959do 33960 IFS=$as_save_IFS 33961 case $as_dir in #((( 33962 '') as_dir=./ ;; 33963 */) ;; 33964 *) as_dir=$as_dir/ ;; 33965 esac 33966 for ac_exec_ext in '' $ac_executable_extensions; do 33967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33968 ac_cv_prog_QTPATHS="qtpaths" 33969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33970 break 2 33971 fi 33972done 33973 done 33974IFS=$as_save_IFS 33975 33976 test -z "$ac_cv_prog_QTPATHS" && ac_cv_prog_QTPATHS="no" 33977fi 33978fi 33979QTPATHS=$ac_cv_prog_QTPATHS 33980if test -n "$QTPATHS"; then 33981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QTPATHS" >&5 33982printf "%s\n" "$QTPATHS" >&6; } 33983else 33984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33985printf "%s\n" "no" >&6; } 33986fi 33987 33988 33989 33990 if test "x$QTPATHS" != "xno" ; then 33991 33992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Qt5 framework" >&5 33993printf %s "checking Qt5 framework... " >&6; } 33994 33995 if test "x$qt5_framework_bin" = "x" ; then 33996 qt5_framework_bin="$($QTPATHS --binaries-dir)" 33997 fi 33998 qt5_path="$($QTPATHS --install-prefix)" 33999 34000 if test "x$qt5_path" != "x" ; then 34001 ac_ext=cpp 34002ac_cpp='$CXXCPP $CPPFLAGS' 34003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34006 34007 34008 CPPFADD=" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I$qt5_path/lib/QtWidgets.framework/Versions/5/Headers -I$qt5_path/lib/QtGui.framework/Versions/5/Headers -I$qt5_path/lib/QtCore.framework/Versions/5/Headers -I. -I$qt5_path/mkspecs/macx-clang -F$qt5_path/lib " 34009 34010 CPPFLAGS_SAVE="$CPPFLAGS" 34011 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 34012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34013/* end confdefs.h. */ 34014#include <QApplication> 34015int 34016main (void) 34017{ 34018int a; QApplication app(a, 0); 34019 ; 34020 return 0; 34021} 34022_ACEOF 34023if ac_fn_cxx_try_compile "$LINENO" 34024then : 34025 qt5_headers=yes 34026 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34027else $as_nop 34028 CXXFLAGS_SAVE="${CXXFLAGS}" 34029 CXXFLAGS="${CXXFLAGS} -fPIC" 34030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34031/* end confdefs.h. */ 34032#include <QApplication> 34033int 34034main (void) 34035{ 34036int a; QApplication app(a, 0); 34037 ; 34038 return 0; 34039} 34040_ACEOF 34041if ac_fn_cxx_try_compile "$LINENO" 34042then : 34043 qt5_headers=yes 34044 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34045 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 34046fi 34047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34048 CXXFLAGS="${CXXFLAGS_SAVE}" 34049fi 34050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34051 34052 CPPFLAGS="$CPPFLAGS_SAVE" 34053 34054 if test "x$qt5_headers" = "xyes" ; then 34055 34056 LIBSADD=" -F$qt5_path/lib -framework QtWidgets -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL" 34057 34058 CPPFLAGS_SAVE="$CPPFLAGS" 34059 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 34060 CXXFLAGS_SAVE="$CXXFLAGS" 34061 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 34062 LIBS_SAVE="$LIBS" 34063 LIBS="${LIBS}${LIBSADD}" 34064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34065/* end confdefs.h. */ 34066#include <QApplication> 34067int 34068main (void) 34069{ 34070int a; QApplication app(a, 0); 34071 ; 34072 return 0; 34073} 34074_ACEOF 34075if ac_fn_cxx_try_link "$LINENO" 34076then : 34077 qt5_libs=yes 34078 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 34079fi 34080rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34081 conftest$ac_exeext conftest.$ac_ext 34082 LIBS="$LIBS_SAVE" 34083 CPPFLAGS="${CPPFLAGS_SAVE}" 34084 CXXFLAGS="${CXXFLAGS_SAVE}" 34085 34086 else 34087 fc_qt5_usable=false 34088 fi 34089 ac_ext=c 34090ac_cpp='$CPP $CPPFLAGS' 34091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34093ac_compiler_gnu=$ac_cv_c_compiler_gnu 34094 34095 34096 if test "x$qt5_libs" = "xyes" ; then 34097 if test "x$MOCCMD" = "x" 34098then : 34099 MOCCMD="$qt5_framework_bin/moc" 34100fi 34101 if test -x $MOCCMD 34102then : 34103 fc_qt5_usable=true 34104else $as_nop 34105 fc_qt5_usable=false 34106fi 34107 else 34108 fc_qt5_usable=false 34109 fi 34110 fi 34111 34112 if test "x$fc_qt5_usable" = "xtrue" ; then 34113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 34114printf "%s\n" "found" >&6; } 34115 else 34116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34117printf "%s\n" "not found" >&6; } 34118 fi 34119 fi 34120;; 34121 *) 34122 ac_ext=cpp 34123ac_cpp='$CXXCPP $CPPFLAGS' 34124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34127 34128 34129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Qt5 headers" >&5 34130printf %s "checking Qt5 headers... " >&6; } 34131 34132 34133# Check whether --with-qt5-includes was given. 34134if test ${with_qt5_includes+y} 34135then : 34136 withval=$with_qt5_includes; 34137 if test "x$withval" != "x" ; then 34138 CPPFADD=" -I$withval -I$withval/QtCore -I$withval/QtGui -I$withval/QtWidgets" 34139 else 34140 CPPFADD="" 34141 fi 34142 34143 CPPFLAGS_SAVE="$CPPFLAGS" 34144 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 34145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34146/* end confdefs.h. */ 34147#include <QApplication> 34148int 34149main (void) 34150{ 34151int a; QApplication app(a, 0); 34152 ; 34153 return 0; 34154} 34155_ACEOF 34156if ac_fn_cxx_try_compile "$LINENO" 34157then : 34158 qt5_headers=yes 34159 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34160else $as_nop 34161 CXXFLAGS_SAVE="${CXXFLAGS}" 34162 CXXFLAGS="${CXXFLAGS} -fPIC" 34163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34164/* end confdefs.h. */ 34165#include <QApplication> 34166int 34167main (void) 34168{ 34169int a; QApplication app(a, 0); 34170 ; 34171 return 0; 34172} 34173_ACEOF 34174if ac_fn_cxx_try_compile "$LINENO" 34175then : 34176 qt5_headers=yes 34177 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34178 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 34179fi 34180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34181 CXXFLAGS="${CXXFLAGS_SAVE}" 34182fi 34183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34184 34185 CPPFLAGS="$CPPFLAGS_SAVE" 34186 34187else $as_nop 34188 POTENTIAL_PATHS="/usr/include /usr/include/qt5 /usr/include/qt" 34189 34190 # search multiarch paths too (if the multiarch tuple can be found) 34191 34192 # GCC has the --print-multiarch option 34193 if test "x$GCC" = "xyes" 34194then : 34195 34196 # unless it is an old version 34197 if ($CC --print-multiarch >/dev/null 2>/dev/null) 34198then : 34199 MULTIARCH_TUPLE=`$CC --print-multiarch` 34200else $as_nop 34201 MULTIARCH_TUPLE="$host_cpu-$host_os" 34202fi 34203else $as_nop 34204 MULTIARCH_TUPLE="$host_cpu-$host_os" 34205fi 34206 if test "x$MULTIARCH_TUPLE" != "x" 34207then : 34208 POTENTIAL_PATHS="$POTENTIAL_PATHS /usr/include/$MULTIARCH_TUPLE/qt5" 34209fi 34210 34211 34212 if test "x" != "x" ; then 34213 CPPFADD=" -I -I/QtCore -I/QtGui -I/QtWidgets" 34214 else 34215 CPPFADD="" 34216 fi 34217 34218 CPPFLAGS_SAVE="$CPPFLAGS" 34219 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 34220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34221/* end confdefs.h. */ 34222#include <QApplication> 34223int 34224main (void) 34225{ 34226int a; QApplication app(a, 0); 34227 ; 34228 return 0; 34229} 34230_ACEOF 34231if ac_fn_cxx_try_compile "$LINENO" 34232then : 34233 qt5_headers=yes 34234 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34235else $as_nop 34236 CXXFLAGS_SAVE="${CXXFLAGS}" 34237 CXXFLAGS="${CXXFLAGS} -fPIC" 34238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34239/* end confdefs.h. */ 34240#include <QApplication> 34241int 34242main (void) 34243{ 34244int a; QApplication app(a, 0); 34245 ; 34246 return 0; 34247} 34248_ACEOF 34249if ac_fn_cxx_try_compile "$LINENO" 34250then : 34251 qt5_headers=yes 34252 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34253 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 34254fi 34255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34256 CXXFLAGS="${CXXFLAGS_SAVE}" 34257fi 34258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34259 34260 CPPFLAGS="$CPPFLAGS_SAVE" 34261 34262 for TEST_PATH in $POTENTIAL_PATHS 34263 do 34264 if test "x$qt5_headers" != "xyes" ; then 34265 34266 if test "x$TEST_PATH" != "x" ; then 34267 CPPFADD=" -I$TEST_PATH -I$TEST_PATH/QtCore -I$TEST_PATH/QtGui -I$TEST_PATH/QtWidgets" 34268 else 34269 CPPFADD="" 34270 fi 34271 34272 CPPFLAGS_SAVE="$CPPFLAGS" 34273 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 34274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34275/* end confdefs.h. */ 34276#include <QApplication> 34277int 34278main (void) 34279{ 34280int a; QApplication app(a, 0); 34281 ; 34282 return 0; 34283} 34284_ACEOF 34285if ac_fn_cxx_try_compile "$LINENO" 34286then : 34287 qt5_headers=yes 34288 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34289else $as_nop 34290 CXXFLAGS_SAVE="${CXXFLAGS}" 34291 CXXFLAGS="${CXXFLAGS} -fPIC" 34292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34293/* end confdefs.h. */ 34294#include <QApplication> 34295int 34296main (void) 34297{ 34298int a; QApplication app(a, 0); 34299 ; 34300 return 0; 34301} 34302_ACEOF 34303if ac_fn_cxx_try_compile "$LINENO" 34304then : 34305 qt5_headers=yes 34306 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34307 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 34308fi 34309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34310 CXXFLAGS="${CXXFLAGS_SAVE}" 34311fi 34312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34313 34314 CPPFLAGS="$CPPFLAGS_SAVE" 34315 34316 fi 34317 done 34318fi 34319 34320 34321 if test "x$qt5_headers" = "xyes" ; then 34322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 34323printf "%s\n" "found" >&6; } 34324 34325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Qt5 libraries" >&5 34326printf %s "checking Qt5 libraries... " >&6; } 34327 34328# Check whether --with-qt5-libs was given. 34329if test ${with_qt5_libs+y} 34330then : 34331 withval=$with_qt5_libs; 34332 if test "x$withval" != "x" ; then 34333 LIBSADD=" -L$withval -lQt5Gui -lQt5Core -lQt5Widgets" 34334 else 34335 LIBSADD=" -lQt5Gui -lQt5Core -lQt5Widgets" 34336 fi 34337 34338 CPPFLAGS_SAVE="$CPPFLAGS" 34339 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 34340 CXXFLAGS_SAVE="$CXXFLAGS" 34341 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 34342 LIBS_SAVE="$LIBS" 34343 LIBS="${LIBS}${LIBSADD}" 34344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34345/* end confdefs.h. */ 34346#include <QApplication> 34347int 34348main (void) 34349{ 34350int a; QApplication app(a, 0); 34351 ; 34352 return 0; 34353} 34354_ACEOF 34355if ac_fn_cxx_try_link "$LINENO" 34356then : 34357 qt5_libs=yes 34358 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 34359fi 34360rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34361 conftest$ac_exeext conftest.$ac_ext 34362 LIBS="$LIBS_SAVE" 34363 CPPFLAGS="${CPPFLAGS_SAVE}" 34364 CXXFLAGS="${CXXFLAGS_SAVE}" 34365 34366else $as_nop 34367 POTENTIAL_PATHS="/usr/lib/qt5 /usr/lib/qt" 34368 34369 # search multiarch paths too (if the multiarch tuple can be found) 34370 34371 # GCC has the --print-multiarch option 34372 if test "x$GCC" = "xyes" 34373then : 34374 34375 # unless it is an old version 34376 if ($CC --print-multiarch >/dev/null 2>/dev/null) 34377then : 34378 MULTIARCH_TUPLE=`$CC --print-multiarch` 34379else $as_nop 34380 MULTIARCH_TUPLE="$host_cpu-$host_os" 34381fi 34382else $as_nop 34383 MULTIARCH_TUPLE="$host_cpu-$host_os" 34384fi 34385 if test "x$MULTIARCH_TUPLE" != "x" 34386then : 34387 POTENTIAL_PATHS="$POTENTIAL_PATHS /usr/lib/$MULTIARCH_TUPLE/qt5" 34388fi 34389 34390 34391 if test "x" != "x" ; then 34392 LIBSADD=" -L -lQt5Gui -lQt5Core -lQt5Widgets" 34393 else 34394 LIBSADD=" -lQt5Gui -lQt5Core -lQt5Widgets" 34395 fi 34396 34397 CPPFLAGS_SAVE="$CPPFLAGS" 34398 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 34399 CXXFLAGS_SAVE="$CXXFLAGS" 34400 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 34401 LIBS_SAVE="$LIBS" 34402 LIBS="${LIBS}${LIBSADD}" 34403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34404/* end confdefs.h. */ 34405#include <QApplication> 34406int 34407main (void) 34408{ 34409int a; QApplication app(a, 0); 34410 ; 34411 return 0; 34412} 34413_ACEOF 34414if ac_fn_cxx_try_link "$LINENO" 34415then : 34416 qt5_libs=yes 34417 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 34418fi 34419rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34420 conftest$ac_exeext conftest.$ac_ext 34421 LIBS="$LIBS_SAVE" 34422 CPPFLAGS="${CPPFLAGS_SAVE}" 34423 CXXFLAGS="${CXXFLAGS_SAVE}" 34424 34425 for TEST_PATH in $POTENTIAL_PATHS 34426 do 34427 if test "x$qt5_libs" != "xyes" ; then 34428 34429 if test "x$TEST_PATH" != "x" ; then 34430 LIBSADD=" -L$TEST_PATH -lQt5Gui -lQt5Core -lQt5Widgets" 34431 else 34432 LIBSADD=" -lQt5Gui -lQt5Core -lQt5Widgets" 34433 fi 34434 34435 CPPFLAGS_SAVE="$CPPFLAGS" 34436 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 34437 CXXFLAGS_SAVE="$CXXFLAGS" 34438 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 34439 LIBS_SAVE="$LIBS" 34440 LIBS="${LIBS}${LIBSADD}" 34441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34442/* end confdefs.h. */ 34443#include <QApplication> 34444int 34445main (void) 34446{ 34447int a; QApplication app(a, 0); 34448 ; 34449 return 0; 34450} 34451_ACEOF 34452if ac_fn_cxx_try_link "$LINENO" 34453then : 34454 qt5_libs=yes 34455 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 34456fi 34457rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34458 conftest$ac_exeext conftest.$ac_ext 34459 LIBS="$LIBS_SAVE" 34460 CPPFLAGS="${CPPFLAGS_SAVE}" 34461 CXXFLAGS="${CXXFLAGS_SAVE}" 34462 34463 fi 34464 done 34465fi 34466 34467 fi 34468 34469 if test "x$qt5_libs" = "xyes" ; then 34470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 34471printf "%s\n" "found" >&6; } 34472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5 >= 5.2" >&5 34473printf %s "checking for Qt5 >= 5.2... " >&6; } 34474 34475 CPPFLAGS_SAVE="$CPPFLAGS" 34476 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 34477 CXXFLAGS_SAVE="$CXXFLAGS" 34478 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 34479 LIBS_SAVE="$LIBS" 34480 LIBS="${LIBS}${LIBSADD}" 34481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34482/* end confdefs.h. */ 34483#include <QtCore> 34484int 34485main (void) 34486{ 34487 34488 #if QT_VERSION < 0x050200 34489 fail 34490 #endif 34491 34492 ; 34493 return 0; 34494} 34495_ACEOF 34496if ac_fn_cxx_try_compile "$LINENO" 34497then : 34498 fc_qt52=yes 34499else $as_nop 34500 fc_qt52=no 34501fi 34502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34503 LIBS="$LIBS_SAVE" 34504 CPPFLAGS="${CPPFLAGS_SAVE}" 34505 CXXFLAGS="${CXXFLAGS_SAVE}" 34506 34507 fi 34508 34509 ac_ext=c 34510ac_cpp='$CPP $CPPFLAGS' 34511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34513ac_compiler_gnu=$ac_cv_c_compiler_gnu 34514 34515 if test "x$fc_qt52" = "xyes" ; then 34516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 34517printf "%s\n" "ok" >&6; } 34518 34519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the Qt 5 moc command" >&5 34520printf %s "checking the Qt 5 moc command... " >&6; } 34521 34522 if test "x$MOCCMD" = "x" 34523then : 34524 if moc -v >/dev/null 2>/dev/null && 34525 (test "`moc -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 34526 test "`moc -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 34527 test "`moc -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 34528then : 34529 MOCCMD="moc" 34530else $as_nop 34531 if qtchooser -run-tool=moc -qt=5 -v >/dev/null 2>/dev/null && 34532 (test "`qtchooser -run-tool=moc -qt=5 -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 34533 test "`qtchooser -run-tool=moc -qt=5 -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 34534 test "`qtchooser -run-tool=moc -qt=5 -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 34535then : 34536 MOCCMD="qtchooser -run-tool=moc -qt=5" 34537else $as_nop 34538 if moc-qt5 -v >/dev/null 2>/dev/null && 34539 (test "`moc-qt5 -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 34540 test "`moc-qt5 -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 34541 test "`moc-qt5 -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 34542then : 34543 MOCCMD="moc-qt5" 34544else $as_nop 34545 MOCCMD="" 34546fi 34547fi 34548fi 34549else $as_nop 34550 if $MOCCMD -v >/dev/null 2>/dev/null && 34551 (test "`$MOCCMD -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 34552 test "`$MOCCMD -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 34553 test "`$MOCCMD -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 34554then : 34555 MOCCMD="$MOCCMD" 34556else $as_nop 34557 as_fn_error $? "\"MOCCMD set to a bad value ($MOCCMD)\"" "$LINENO" 5 34558fi 34559fi 34560 34561 if test "x$MOCCMD" = "x" 34562then : 34563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34564printf "%s\n" "not found" >&6; }; fc_qt5_usable=false 34565else $as_nop 34566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MOCCMD" >&5 34567printf "%s\n" "$MOCCMD" >&6; }; fc_qt5_usable=true 34568fi 34569 else 34570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34571printf "%s\n" "not found" >&6; } 34572 fc_qt5_usable=false 34573 fi 34574;; 34575 esac 34576 fi 34577 34578 34579 if test "x$fc_qt5_usable" = "xtrue" ; then 34580 fcmp_qt=yes 34581 fcmp_list="$fcmp_list qt" 34582 34583 mp_qt_cppflags=$FC_QT5_CPPFLAGS 34584 mp_qt_cxxflags=$FC_QT5_CXXFLAGS 34585 mp_qt_libs="$FC_QT5_LIBS $MWINDOWS_FLAG" 34586 34587 if test "x$modinst" = "xauto" ; then 34588 modinst=found 34589 fi 34590 fi 34591 fi 34592 34593fi 34594 34595if test "x$req_fcmp_qt" = "xyes" && test "x$fcmp_qt" != "xyes" ; then 34596 as_fn_error $? "Cannot build Qt-version of freeciv-modpack as requested" "$LINENO" 5 34597fi 34598 34599if test "x$req_fcmp_cli" = "xyes" || test "x$modinst" = "xall" ; then 34600 fcmp_cli=yes 34601 fcmp_list="$fcmp_list cli" 34602fi 34603 34604if test "x$modinst" != "xfound" && 34605 test "x$modinst" != "xno" && 34606 test "x$modinst" != "xcli" && 34607 test "x$fcmp_gtk3" != "xyes" && 34608 test "x$fcmp_gtk2" != "xyes" && 34609 test "x$fcmp_qt" != "xyes" ;then 34610 as_fn_error $? "Cannot build modpack installer with any gui" "$LINENO" 5 34611fi 34612 34613if test "x$modinst" != "xno" && test "x$MINGW" != "xyes" ; then 34614 mp_gtk2_cflags="$mp_gtk2_cflags -DMPICON_PATH=\"\\\"$datadir/freeciv/misc/mpicon.png\\\"\"" 34615 mp_gtk3_cflags="$mp_gtk3_cflags -DMPICON_PATH=\"\\\"$datadir/freeciv/misc/mpicon.png\\\"\"" 34616fi 34617 34618if test "x$fcmp_list" = "x" ; then 34619 fcmp_list="none" 34620fi 34621 34622 if test "x$modinst" != "xno"; then 34623 MODINST_TRUE= 34624 MODINST_FALSE='#' 34625else 34626 MODINST_TRUE='#' 34627 MODINST_FALSE= 34628fi 34629 34630 if test "x$fcmp_gtk3" = "xyes"; then 34631 MODINST_GTK3_TRUE= 34632 MODINST_GTK3_FALSE='#' 34633else 34634 MODINST_GTK3_TRUE='#' 34635 MODINST_GTK3_FALSE= 34636fi 34637 34638 if test "x$fcmp_gtk2" = "xyes"; then 34639 MODINST_GTK2_TRUE= 34640 MODINST_GTK2_FALSE='#' 34641else 34642 MODINST_GTK2_TRUE='#' 34643 MODINST_GTK2_FALSE= 34644fi 34645 34646 if test "x$fcmp_qt" = "xyes"; then 34647 MODINST_QT_TRUE= 34648 MODINST_QT_FALSE='#' 34649else 34650 MODINST_QT_TRUE='#' 34651 MODINST_QT_FALSE= 34652fi 34653 34654 if test "x$fcmp_cli" = "xyes"; then 34655 MODINST_CLI_TRUE= 34656 MODINST_CLI_FALSE='#' 34657else 34658 MODINST_CLI_TRUE='#' 34659 MODINST_CLI_FALSE= 34660fi 34661 34662 34663# Check whether --enable-ruledit was given. 34664if test ${enable_ruledit+y} 34665then : 34666 enableval=$enable_ruledit; case "${enableval}" in 34667 yes) ruledit=yes ;; 34668 no) ruledit=no ;; 34669 test) ruledit=test ;; 34670 *) as_fn_error $? "bad value ${enableval} for --enable-ruledit" "$LINENO" 5 ;; 34671esac 34672else $as_nop 34673 ruledit=test 34674fi 34675 34676if test "x$ruledit" = "xyes" || test "x$ruledit" = "xtest" ; then 34677 if test "x$cxx_works" = "xyes" ; then 34678 34679 if test "x$fc_qt5_usable" = "x" ; then 34680 FC_QT5_CPPFLAGS="-DQT_DISABLE_DEPRECATED_BEFORE=0x050200" 34681 case $host_os in 34682 darwin*) 34683 34684# Check whether --with-qt5_framework_bin was given. 34685if test ${with_qt5_framework_bin+y} 34686then : 34687 withval=$with_qt5_framework_bin; 34688fi 34689 34690 34691 # Extract the first word of "qtpaths", so it can be a program name with args. 34692set dummy qtpaths; ac_word=$2 34693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34694printf %s "checking for $ac_word... " >&6; } 34695if test ${ac_cv_prog_QTPATHS+y} 34696then : 34697 printf %s "(cached) " >&6 34698else $as_nop 34699 if test -n "$QTPATHS"; then 34700 ac_cv_prog_QTPATHS="$QTPATHS" # Let the user override the test. 34701else 34702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34703for as_dir in $PATH 34704do 34705 IFS=$as_save_IFS 34706 case $as_dir in #((( 34707 '') as_dir=./ ;; 34708 */) ;; 34709 *) as_dir=$as_dir/ ;; 34710 esac 34711 for ac_exec_ext in '' $ac_executable_extensions; do 34712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 34713 ac_cv_prog_QTPATHS="qtpaths" 34714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 34715 break 2 34716 fi 34717done 34718 done 34719IFS=$as_save_IFS 34720 34721 test -z "$ac_cv_prog_QTPATHS" && ac_cv_prog_QTPATHS="no" 34722fi 34723fi 34724QTPATHS=$ac_cv_prog_QTPATHS 34725if test -n "$QTPATHS"; then 34726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QTPATHS" >&5 34727printf "%s\n" "$QTPATHS" >&6; } 34728else 34729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34730printf "%s\n" "no" >&6; } 34731fi 34732 34733 34734 34735 if test "x$QTPATHS" != "xno" ; then 34736 34737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Qt5 framework" >&5 34738printf %s "checking Qt5 framework... " >&6; } 34739 34740 if test "x$qt5_framework_bin" = "x" ; then 34741 qt5_framework_bin="$($QTPATHS --binaries-dir)" 34742 fi 34743 qt5_path="$($QTPATHS --install-prefix)" 34744 34745 if test "x$qt5_path" != "x" ; then 34746 ac_ext=cpp 34747ac_cpp='$CXXCPP $CPPFLAGS' 34748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34751 34752 34753 CPPFADD=" -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I$qt5_path/lib/QtWidgets.framework/Versions/5/Headers -I$qt5_path/lib/QtGui.framework/Versions/5/Headers -I$qt5_path/lib/QtCore.framework/Versions/5/Headers -I. -I$qt5_path/mkspecs/macx-clang -F$qt5_path/lib " 34754 34755 CPPFLAGS_SAVE="$CPPFLAGS" 34756 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 34757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34758/* end confdefs.h. */ 34759#include <QApplication> 34760int 34761main (void) 34762{ 34763int a; QApplication app(a, 0); 34764 ; 34765 return 0; 34766} 34767_ACEOF 34768if ac_fn_cxx_try_compile "$LINENO" 34769then : 34770 qt5_headers=yes 34771 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34772else $as_nop 34773 CXXFLAGS_SAVE="${CXXFLAGS}" 34774 CXXFLAGS="${CXXFLAGS} -fPIC" 34775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34776/* end confdefs.h. */ 34777#include <QApplication> 34778int 34779main (void) 34780{ 34781int a; QApplication app(a, 0); 34782 ; 34783 return 0; 34784} 34785_ACEOF 34786if ac_fn_cxx_try_compile "$LINENO" 34787then : 34788 qt5_headers=yes 34789 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34790 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 34791fi 34792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34793 CXXFLAGS="${CXXFLAGS_SAVE}" 34794fi 34795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34796 34797 CPPFLAGS="$CPPFLAGS_SAVE" 34798 34799 if test "x$qt5_headers" = "xyes" ; then 34800 34801 LIBSADD=" -F$qt5_path/lib -framework QtWidgets -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL" 34802 34803 CPPFLAGS_SAVE="$CPPFLAGS" 34804 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 34805 CXXFLAGS_SAVE="$CXXFLAGS" 34806 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 34807 LIBS_SAVE="$LIBS" 34808 LIBS="${LIBS}${LIBSADD}" 34809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34810/* end confdefs.h. */ 34811#include <QApplication> 34812int 34813main (void) 34814{ 34815int a; QApplication app(a, 0); 34816 ; 34817 return 0; 34818} 34819_ACEOF 34820if ac_fn_cxx_try_link "$LINENO" 34821then : 34822 qt5_libs=yes 34823 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 34824fi 34825rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34826 conftest$ac_exeext conftest.$ac_ext 34827 LIBS="$LIBS_SAVE" 34828 CPPFLAGS="${CPPFLAGS_SAVE}" 34829 CXXFLAGS="${CXXFLAGS_SAVE}" 34830 34831 else 34832 fc_qt5_usable=false 34833 fi 34834 ac_ext=c 34835ac_cpp='$CPP $CPPFLAGS' 34836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34838ac_compiler_gnu=$ac_cv_c_compiler_gnu 34839 34840 34841 if test "x$qt5_libs" = "xyes" ; then 34842 if test "x$MOCCMD" = "x" 34843then : 34844 MOCCMD="$qt5_framework_bin/moc" 34845fi 34846 if test -x $MOCCMD 34847then : 34848 fc_qt5_usable=true 34849else $as_nop 34850 fc_qt5_usable=false 34851fi 34852 else 34853 fc_qt5_usable=false 34854 fi 34855 fi 34856 34857 if test "x$fc_qt5_usable" = "xtrue" ; then 34858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 34859printf "%s\n" "found" >&6; } 34860 else 34861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34862printf "%s\n" "not found" >&6; } 34863 fi 34864 fi 34865;; 34866 *) 34867 ac_ext=cpp 34868ac_cpp='$CXXCPP $CPPFLAGS' 34869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34872 34873 34874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Qt5 headers" >&5 34875printf %s "checking Qt5 headers... " >&6; } 34876 34877 34878# Check whether --with-qt5-includes was given. 34879if test ${with_qt5_includes+y} 34880then : 34881 withval=$with_qt5_includes; 34882 if test "x$withval" != "x" ; then 34883 CPPFADD=" -I$withval -I$withval/QtCore -I$withval/QtGui -I$withval/QtWidgets" 34884 else 34885 CPPFADD="" 34886 fi 34887 34888 CPPFLAGS_SAVE="$CPPFLAGS" 34889 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 34890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34891/* end confdefs.h. */ 34892#include <QApplication> 34893int 34894main (void) 34895{ 34896int a; QApplication app(a, 0); 34897 ; 34898 return 0; 34899} 34900_ACEOF 34901if ac_fn_cxx_try_compile "$LINENO" 34902then : 34903 qt5_headers=yes 34904 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34905else $as_nop 34906 CXXFLAGS_SAVE="${CXXFLAGS}" 34907 CXXFLAGS="${CXXFLAGS} -fPIC" 34908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34909/* end confdefs.h. */ 34910#include <QApplication> 34911int 34912main (void) 34913{ 34914int a; QApplication app(a, 0); 34915 ; 34916 return 0; 34917} 34918_ACEOF 34919if ac_fn_cxx_try_compile "$LINENO" 34920then : 34921 qt5_headers=yes 34922 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34923 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 34924fi 34925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34926 CXXFLAGS="${CXXFLAGS_SAVE}" 34927fi 34928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34929 34930 CPPFLAGS="$CPPFLAGS_SAVE" 34931 34932else $as_nop 34933 POTENTIAL_PATHS="/usr/include /usr/include/qt5 /usr/include/qt" 34934 34935 # search multiarch paths too (if the multiarch tuple can be found) 34936 34937 # GCC has the --print-multiarch option 34938 if test "x$GCC" = "xyes" 34939then : 34940 34941 # unless it is an old version 34942 if ($CC --print-multiarch >/dev/null 2>/dev/null) 34943then : 34944 MULTIARCH_TUPLE=`$CC --print-multiarch` 34945else $as_nop 34946 MULTIARCH_TUPLE="$host_cpu-$host_os" 34947fi 34948else $as_nop 34949 MULTIARCH_TUPLE="$host_cpu-$host_os" 34950fi 34951 if test "x$MULTIARCH_TUPLE" != "x" 34952then : 34953 POTENTIAL_PATHS="$POTENTIAL_PATHS /usr/include/$MULTIARCH_TUPLE/qt5" 34954fi 34955 34956 34957 if test "x" != "x" ; then 34958 CPPFADD=" -I -I/QtCore -I/QtGui -I/QtWidgets" 34959 else 34960 CPPFADD="" 34961 fi 34962 34963 CPPFLAGS_SAVE="$CPPFLAGS" 34964 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 34965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34966/* end confdefs.h. */ 34967#include <QApplication> 34968int 34969main (void) 34970{ 34971int a; QApplication app(a, 0); 34972 ; 34973 return 0; 34974} 34975_ACEOF 34976if ac_fn_cxx_try_compile "$LINENO" 34977then : 34978 qt5_headers=yes 34979 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34980else $as_nop 34981 CXXFLAGS_SAVE="${CXXFLAGS}" 34982 CXXFLAGS="${CXXFLAGS} -fPIC" 34983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34984/* end confdefs.h. */ 34985#include <QApplication> 34986int 34987main (void) 34988{ 34989int a; QApplication app(a, 0); 34990 ; 34991 return 0; 34992} 34993_ACEOF 34994if ac_fn_cxx_try_compile "$LINENO" 34995then : 34996 qt5_headers=yes 34997 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 34998 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 34999fi 35000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35001 CXXFLAGS="${CXXFLAGS_SAVE}" 35002fi 35003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35004 35005 CPPFLAGS="$CPPFLAGS_SAVE" 35006 35007 for TEST_PATH in $POTENTIAL_PATHS 35008 do 35009 if test "x$qt5_headers" != "xyes" ; then 35010 35011 if test "x$TEST_PATH" != "x" ; then 35012 CPPFADD=" -I$TEST_PATH -I$TEST_PATH/QtCore -I$TEST_PATH/QtGui -I$TEST_PATH/QtWidgets" 35013 else 35014 CPPFADD="" 35015 fi 35016 35017 CPPFLAGS_SAVE="$CPPFLAGS" 35018 CPPFLAGS="${CPPFLAGS}${CPPFADD}" 35019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35020/* end confdefs.h. */ 35021#include <QApplication> 35022int 35023main (void) 35024{ 35025int a; QApplication app(a, 0); 35026 ; 35027 return 0; 35028} 35029_ACEOF 35030if ac_fn_cxx_try_compile "$LINENO" 35031then : 35032 qt5_headers=yes 35033 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 35034else $as_nop 35035 CXXFLAGS_SAVE="${CXXFLAGS}" 35036 CXXFLAGS="${CXXFLAGS} -fPIC" 35037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35038/* end confdefs.h. */ 35039#include <QApplication> 35040int 35041main (void) 35042{ 35043int a; QApplication app(a, 0); 35044 ; 35045 return 0; 35046} 35047_ACEOF 35048if ac_fn_cxx_try_compile "$LINENO" 35049then : 35050 qt5_headers=yes 35051 FC_QT5_CPPFLAGS="${FC_QT5_CPPFLAGS}${CPPFADD}" 35052 FC_QT5_CXXFLAGS="${FC_QT5_CXXFLAGS} -fPIC" 35053fi 35054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35055 CXXFLAGS="${CXXFLAGS_SAVE}" 35056fi 35057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35058 35059 CPPFLAGS="$CPPFLAGS_SAVE" 35060 35061 fi 35062 done 35063fi 35064 35065 35066 if test "x$qt5_headers" = "xyes" ; then 35067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 35068printf "%s\n" "found" >&6; } 35069 35070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Qt5 libraries" >&5 35071printf %s "checking Qt5 libraries... " >&6; } 35072 35073# Check whether --with-qt5-libs was given. 35074if test ${with_qt5_libs+y} 35075then : 35076 withval=$with_qt5_libs; 35077 if test "x$withval" != "x" ; then 35078 LIBSADD=" -L$withval -lQt5Gui -lQt5Core -lQt5Widgets" 35079 else 35080 LIBSADD=" -lQt5Gui -lQt5Core -lQt5Widgets" 35081 fi 35082 35083 CPPFLAGS_SAVE="$CPPFLAGS" 35084 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 35085 CXXFLAGS_SAVE="$CXXFLAGS" 35086 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 35087 LIBS_SAVE="$LIBS" 35088 LIBS="${LIBS}${LIBSADD}" 35089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35090/* end confdefs.h. */ 35091#include <QApplication> 35092int 35093main (void) 35094{ 35095int a; QApplication app(a, 0); 35096 ; 35097 return 0; 35098} 35099_ACEOF 35100if ac_fn_cxx_try_link "$LINENO" 35101then : 35102 qt5_libs=yes 35103 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 35104fi 35105rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35106 conftest$ac_exeext conftest.$ac_ext 35107 LIBS="$LIBS_SAVE" 35108 CPPFLAGS="${CPPFLAGS_SAVE}" 35109 CXXFLAGS="${CXXFLAGS_SAVE}" 35110 35111else $as_nop 35112 POTENTIAL_PATHS="/usr/lib/qt5 /usr/lib/qt" 35113 35114 # search multiarch paths too (if the multiarch tuple can be found) 35115 35116 # GCC has the --print-multiarch option 35117 if test "x$GCC" = "xyes" 35118then : 35119 35120 # unless it is an old version 35121 if ($CC --print-multiarch >/dev/null 2>/dev/null) 35122then : 35123 MULTIARCH_TUPLE=`$CC --print-multiarch` 35124else $as_nop 35125 MULTIARCH_TUPLE="$host_cpu-$host_os" 35126fi 35127else $as_nop 35128 MULTIARCH_TUPLE="$host_cpu-$host_os" 35129fi 35130 if test "x$MULTIARCH_TUPLE" != "x" 35131then : 35132 POTENTIAL_PATHS="$POTENTIAL_PATHS /usr/lib/$MULTIARCH_TUPLE/qt5" 35133fi 35134 35135 35136 if test "x" != "x" ; then 35137 LIBSADD=" -L -lQt5Gui -lQt5Core -lQt5Widgets" 35138 else 35139 LIBSADD=" -lQt5Gui -lQt5Core -lQt5Widgets" 35140 fi 35141 35142 CPPFLAGS_SAVE="$CPPFLAGS" 35143 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 35144 CXXFLAGS_SAVE="$CXXFLAGS" 35145 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 35146 LIBS_SAVE="$LIBS" 35147 LIBS="${LIBS}${LIBSADD}" 35148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35149/* end confdefs.h. */ 35150#include <QApplication> 35151int 35152main (void) 35153{ 35154int a; QApplication app(a, 0); 35155 ; 35156 return 0; 35157} 35158_ACEOF 35159if ac_fn_cxx_try_link "$LINENO" 35160then : 35161 qt5_libs=yes 35162 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 35163fi 35164rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35165 conftest$ac_exeext conftest.$ac_ext 35166 LIBS="$LIBS_SAVE" 35167 CPPFLAGS="${CPPFLAGS_SAVE}" 35168 CXXFLAGS="${CXXFLAGS_SAVE}" 35169 35170 for TEST_PATH in $POTENTIAL_PATHS 35171 do 35172 if test "x$qt5_libs" != "xyes" ; then 35173 35174 if test "x$TEST_PATH" != "x" ; then 35175 LIBSADD=" -L$TEST_PATH -lQt5Gui -lQt5Core -lQt5Widgets" 35176 else 35177 LIBSADD=" -lQt5Gui -lQt5Core -lQt5Widgets" 35178 fi 35179 35180 CPPFLAGS_SAVE="$CPPFLAGS" 35181 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 35182 CXXFLAGS_SAVE="$CXXFLAGS" 35183 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 35184 LIBS_SAVE="$LIBS" 35185 LIBS="${LIBS}${LIBSADD}" 35186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35187/* end confdefs.h. */ 35188#include <QApplication> 35189int 35190main (void) 35191{ 35192int a; QApplication app(a, 0); 35193 ; 35194 return 0; 35195} 35196_ACEOF 35197if ac_fn_cxx_try_link "$LINENO" 35198then : 35199 qt5_libs=yes 35200 FC_QT5_LIBS="${FC_QT5_LIBS}${LIBSADD}" 35201fi 35202rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35203 conftest$ac_exeext conftest.$ac_ext 35204 LIBS="$LIBS_SAVE" 35205 CPPFLAGS="${CPPFLAGS_SAVE}" 35206 CXXFLAGS="${CXXFLAGS_SAVE}" 35207 35208 fi 35209 done 35210fi 35211 35212 fi 35213 35214 if test "x$qt5_libs" = "xyes" ; then 35215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 35216printf "%s\n" "found" >&6; } 35217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5 >= 5.2" >&5 35218printf %s "checking for Qt5 >= 5.2... " >&6; } 35219 35220 CPPFLAGS_SAVE="$CPPFLAGS" 35221 CPPFLAGS="$CPPFLAGS $FC_QT5_CPPFLAGS" 35222 CXXFLAGS_SAVE="$CXXFLAGS" 35223 CXXFLAGS="$CXXFLAGS $FC_QT5_CXXFLAGS" 35224 LIBS_SAVE="$LIBS" 35225 LIBS="${LIBS}${LIBSADD}" 35226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35227/* end confdefs.h. */ 35228#include <QtCore> 35229int 35230main (void) 35231{ 35232 35233 #if QT_VERSION < 0x050200 35234 fail 35235 #endif 35236 35237 ; 35238 return 0; 35239} 35240_ACEOF 35241if ac_fn_cxx_try_compile "$LINENO" 35242then : 35243 fc_qt52=yes 35244else $as_nop 35245 fc_qt52=no 35246fi 35247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35248 LIBS="$LIBS_SAVE" 35249 CPPFLAGS="${CPPFLAGS_SAVE}" 35250 CXXFLAGS="${CXXFLAGS_SAVE}" 35251 35252 fi 35253 35254 ac_ext=c 35255ac_cpp='$CPP $CPPFLAGS' 35256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35258ac_compiler_gnu=$ac_cv_c_compiler_gnu 35259 35260 if test "x$fc_qt52" = "xyes" ; then 35261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 35262printf "%s\n" "ok" >&6; } 35263 35264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the Qt 5 moc command" >&5 35265printf %s "checking the Qt 5 moc command... " >&6; } 35266 35267 if test "x$MOCCMD" = "x" 35268then : 35269 if moc -v >/dev/null 2>/dev/null && 35270 (test "`moc -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 35271 test "`moc -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 35272 test "`moc -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 35273then : 35274 MOCCMD="moc" 35275else $as_nop 35276 if qtchooser -run-tool=moc -qt=5 -v >/dev/null 2>/dev/null && 35277 (test "`qtchooser -run-tool=moc -qt=5 -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 35278 test "`qtchooser -run-tool=moc -qt=5 -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 35279 test "`qtchooser -run-tool=moc -qt=5 -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 35280then : 35281 MOCCMD="qtchooser -run-tool=moc -qt=5" 35282else $as_nop 35283 if moc-qt5 -v >/dev/null 2>/dev/null && 35284 (test "`moc-qt5 -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 35285 test "`moc-qt5 -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 35286 test "`moc-qt5 -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 35287then : 35288 MOCCMD="moc-qt5" 35289else $as_nop 35290 MOCCMD="" 35291fi 35292fi 35293fi 35294else $as_nop 35295 if $MOCCMD -v >/dev/null 2>/dev/null && 35296 (test "`$MOCCMD -v 2<&1 | grep -o 'Qt [0-9]\+'`" = "Qt 5" || 35297 test "`$MOCCMD -v 2<&1 | grep -o 'moc [0-9]\+'`" = "moc 5" || 35298 test "`$MOCCMD -v 2<&1 | grep -o 'moc-qt[0-9]\+'`" = "moc-qt5") 35299then : 35300 MOCCMD="$MOCCMD" 35301else $as_nop 35302 as_fn_error $? "\"MOCCMD set to a bad value ($MOCCMD)\"" "$LINENO" 5 35303fi 35304fi 35305 35306 if test "x$MOCCMD" = "x" 35307then : 35308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35309printf "%s\n" "not found" >&6; }; fc_qt5_usable=false 35310else $as_nop 35311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MOCCMD" >&5 35312printf "%s\n" "$MOCCMD" >&6; }; fc_qt5_usable=true 35313fi 35314 else 35315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35316printf "%s\n" "not found" >&6; } 35317 fc_qt5_usable=false 35318 fi 35319;; 35320 esac 35321 fi 35322 35323 35324 if test "x$fc_qt5_usable" = "xtrue" ; then 35325 ruledit_cppflags=$FC_QT5_CPPFLAGS 35326 ruledit_cxxflags=$FC_QT5_CXXFLAGS 35327 ruledit_libs=$FC_QT5_LIBS 35328 ruledit=yes 35329 ruledit_libs="$ruledit_libs $MWINDOWS_FLAG" 35330 elif test "x$ruledit" = "xyes" ; then 35331 as_fn_error $? "Qt5 not found for building freeciv-ruledit" "$LINENO" 5 35332 fi 35333 elif test "x$ruledit" = "xyes" ; then 35334 as_fn_error $? "No working C++ compiler found for building freeciv-ruledit" "$LINENO" 5 35335 fi 35336fi 35337if test "x$ruledit" = "xtest" ; then 35338 ruledit=no 35339 feature_ruledit=missing 35340fi 35341 if test "x$ruledit" = "xyes"; then 35342 RULEDIT_TRUE= 35343 RULEDIT_FALSE='#' 35344else 35345 RULEDIT_TRUE='#' 35346 RULEDIT_FALSE= 35347fi 35348 35349 35350 35351 35352 35353 35354 35355 35356 35357 35358 35359 35360 35361 35362 35363 35364 35365 35366 35367 35368 35369 35370 35371 35372 35373 35374 35375 35376 35377 35378 35379 35380 35381 35382 35383 35384 35385 35386 35387 35388 35389 35390 35391 35392 35393 35394 35395 35396 if test "x$SDL_mixer" != "xno"; then 35397 AUDIO_SDL_TRUE= 35398 AUDIO_SDL_FALSE='#' 35399else 35400 AUDIO_SDL_TRUE='#' 35401 AUDIO_SDL_FALSE= 35402fi 35403 35404 if test "x$gui_sdl" = "xyes"; then 35405 CLIENT_GUI_SDL_TRUE= 35406 CLIENT_GUI_SDL_FALSE='#' 35407else 35408 CLIENT_GUI_SDL_TRUE='#' 35409 CLIENT_GUI_SDL_FALSE= 35410fi 35411 35412 if test "x$gui_sdl2" = "xyes"; then 35413 CLIENT_GUI_SDL2_TRUE= 35414 CLIENT_GUI_SDL2_FALSE='#' 35415else 35416 CLIENT_GUI_SDL2_TRUE='#' 35417 CLIENT_GUI_SDL2_FALSE= 35418fi 35419 35420 if test "x$gui_gtk2" = "xyes"; then 35421 CLIENT_GUI_GTK_2_0_TRUE= 35422 CLIENT_GUI_GTK_2_0_FALSE='#' 35423else 35424 CLIENT_GUI_GTK_2_0_TRUE='#' 35425 CLIENT_GUI_GTK_2_0_FALSE= 35426fi 35427 35428 if test "x$gui_gtk3_22" = "xyes"; then 35429 CLIENT_GUI_GTK_3_22_TRUE= 35430 CLIENT_GUI_GTK_3_22_FALSE='#' 35431else 35432 CLIENT_GUI_GTK_3_22_TRUE='#' 35433 CLIENT_GUI_GTK_3_22_FALSE= 35434fi 35435 35436 if test "x$gui_gtk3" = "xyes"; then 35437 CLIENT_GUI_GTK_3_0_TRUE= 35438 CLIENT_GUI_GTK_3_0_FALSE='#' 35439else 35440 CLIENT_GUI_GTK_3_0_TRUE='#' 35441 CLIENT_GUI_GTK_3_0_FALSE= 35442fi 35443 35444 if test "x$gui_xaw" = "xyes"; then 35445 CLIENT_GUI_XAW_TRUE= 35446 CLIENT_GUI_XAW_FALSE='#' 35447else 35448 CLIENT_GUI_XAW_TRUE='#' 35449 CLIENT_GUI_XAW_FALSE= 35450fi 35451 35452 if test "x$gui_qt" = "xyes"; then 35453 CLIENT_GUI_QT_TRUE= 35454 CLIENT_GUI_QT_FALSE='#' 35455else 35456 CLIENT_GUI_QT_TRUE='#' 35457 CLIENT_GUI_QT_FALSE= 35458fi 35459 35460 if test "x$gui_stub" = "xyes"; then 35461 CLIENT_GUI_STUB_TRUE= 35462 CLIENT_GUI_STUB_FALSE='#' 35463else 35464 CLIENT_GUI_STUB_TRUE='#' 35465 CLIENT_GUI_STUB_FALSE= 35466fi 35467 35468 if test x"$MINGW" = "xyes"; then 35469 MINGW_TRUE= 35470 MINGW_FALSE='#' 35471else 35472 MINGW_TRUE='#' 35473 MINGW_FALSE= 35474fi 35475 35476 35477if test "x$client" = "xyes"; then 35478 CLIENT_LIBS=" -lm " 35479 35480fi 35481 35482if test "x$server" = "xyes"; then 35483 SERVER_LIBS="-lm ${SERVER_LIBS}" 35484 35485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5 35486printf %s "checking for gethostbyaddr in -lbind... " >&6; } 35487if test ${ac_cv_lib_bind_gethostbyaddr+y} 35488then : 35489 printf %s "(cached) " >&6 35490else $as_nop 35491 ac_check_lib_save_LIBS=$LIBS 35492LIBS="-lbind $LIBS" 35493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35494/* end confdefs.h. */ 35495 35496/* Override any GCC internal prototype to avoid an error. 35497 Use char because int might match the return type of a GCC 35498 builtin and then its argument prototype would still apply. */ 35499char gethostbyaddr (); 35500int 35501main (void) 35502{ 35503return gethostbyaddr (); 35504 ; 35505 return 0; 35506} 35507_ACEOF 35508if ac_fn_c_try_link "$LINENO" 35509then : 35510 ac_cv_lib_bind_gethostbyaddr=yes 35511else $as_nop 35512 ac_cv_lib_bind_gethostbyaddr=no 35513fi 35514rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35515 conftest$ac_exeext conftest.$ac_ext 35516LIBS=$ac_check_lib_save_LIBS 35517fi 35518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5 35519printf "%s\n" "$ac_cv_lib_bind_gethostbyaddr" >&6; } 35520if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes 35521then : 35522 SERVER_LIBS="-lbind $SERVER_LIBS" 35523fi 35524 35525 35526 35527 if test "$WITH_READLINE" = "yes" || test "$WITH_READLINE" = "maybe"; then 35528 HAVE_TERMCAP=""; 35529 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 35530if test "x$ac_cv_header_readline_readline_h" = xyes 35531then : 35532 have_readline_header=1 35533else $as_nop 35534 have_readline_header=0 35535fi 35536 35537 if test "$have_readline_header" = "0"; then 35538 if test "$WITH_READLINE" = "yes"; then 35539 as_fn_error $? "Did not find readline header file. 35540You may need to install a readline \"development\" package." "$LINENO" 5 35541 else 35542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Did not find readline header file. 35543Configuring server without readline support." >&5 35544printf "%s\n" "$as_me: WARNING: Did not find readline header file. 35545Configuring server without readline support." >&2;} 35546 feature_readline=missing 35547 fi 35548 else 35549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_suppress_append in -lreadline" >&5 35550printf %s "checking for rl_completion_suppress_append in -lreadline... " >&6; } 35551if test ${ac_cv_lib_readline_rl_completion_suppress_append+y} 35552then : 35553 printf %s "(cached) " >&6 35554else $as_nop 35555 ac_check_lib_save_LIBS=$LIBS 35556LIBS="-lreadline $LIBS" 35557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35558/* end confdefs.h. */ 35559 35560/* Override any GCC internal prototype to avoid an error. 35561 Use char because int might match the return type of a GCC 35562 builtin and then its argument prototype would still apply. */ 35563char rl_completion_suppress_append (); 35564int 35565main (void) 35566{ 35567return rl_completion_suppress_append (); 35568 ; 35569 return 0; 35570} 35571_ACEOF 35572if ac_fn_c_try_link "$LINENO" 35573then : 35574 ac_cv_lib_readline_rl_completion_suppress_append=yes 35575else $as_nop 35576 ac_cv_lib_readline_rl_completion_suppress_append=no 35577fi 35578rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35579 conftest$ac_exeext conftest.$ac_ext 35580LIBS=$ac_check_lib_save_LIBS 35581fi 35582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_suppress_append" >&5 35583printf "%s\n" "$ac_cv_lib_readline_rl_completion_suppress_append" >&6; } 35584if test "x$ac_cv_lib_readline_rl_completion_suppress_append" = xyes 35585then : 35586 have_readline_lib=1 35587else $as_nop 35588 have_readline_lib=0 35589fi 35590 35591 if test "$have_readline_lib" != "1" ; then 35592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 35593printf %s "checking for tgetent in -ltinfo... " >&6; } 35594if test ${ac_cv_lib_tinfo_tgetent+y} 35595then : 35596 printf %s "(cached) " >&6 35597else $as_nop 35598 ac_check_lib_save_LIBS=$LIBS 35599LIBS="-ltinfo $LIBS" 35600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35601/* end confdefs.h. */ 35602 35603/* Override any GCC internal prototype to avoid an error. 35604 Use char because int might match the return type of a GCC 35605 builtin and then its argument prototype would still apply. */ 35606char tgetent (); 35607int 35608main (void) 35609{ 35610return tgetent (); 35611 ; 35612 return 0; 35613} 35614_ACEOF 35615if ac_fn_c_try_link "$LINENO" 35616then : 35617 ac_cv_lib_tinfo_tgetent=yes 35618else $as_nop 35619 ac_cv_lib_tinfo_tgetent=no 35620fi 35621rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35622 conftest$ac_exeext conftest.$ac_ext 35623LIBS=$ac_check_lib_save_LIBS 35624fi 35625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 35626printf "%s\n" "$ac_cv_lib_tinfo_tgetent" >&6; } 35627if test "x$ac_cv_lib_tinfo_tgetent" = xyes 35628then : 35629 HAVE_TERMCAP="-ltinfo" 35630else $as_nop 35631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 35632printf %s "checking for tgetent in -lncurses... " >&6; } 35633if test ${ac_cv_lib_ncurses_tgetent+y} 35634then : 35635 printf %s "(cached) " >&6 35636else $as_nop 35637 ac_check_lib_save_LIBS=$LIBS 35638LIBS="-lncurses $LIBS" 35639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35640/* end confdefs.h. */ 35641 35642/* Override any GCC internal prototype to avoid an error. 35643 Use char because int might match the return type of a GCC 35644 builtin and then its argument prototype would still apply. */ 35645char tgetent (); 35646int 35647main (void) 35648{ 35649return tgetent (); 35650 ; 35651 return 0; 35652} 35653_ACEOF 35654if ac_fn_c_try_link "$LINENO" 35655then : 35656 ac_cv_lib_ncurses_tgetent=yes 35657else $as_nop 35658 ac_cv_lib_ncurses_tgetent=no 35659fi 35660rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35661 conftest$ac_exeext conftest.$ac_ext 35662LIBS=$ac_check_lib_save_LIBS 35663fi 35664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 35665printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; } 35666if test "x$ac_cv_lib_ncurses_tgetent" = xyes 35667then : 35668 HAVE_TERMCAP="-lncurses" 35669else $as_nop 35670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 35671printf %s "checking for tgetent in -lcurses... " >&6; } 35672if test ${ac_cv_lib_curses_tgetent+y} 35673then : 35674 printf %s "(cached) " >&6 35675else $as_nop 35676 ac_check_lib_save_LIBS=$LIBS 35677LIBS="-lcurses $LIBS" 35678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35679/* end confdefs.h. */ 35680 35681/* Override any GCC internal prototype to avoid an error. 35682 Use char because int might match the return type of a GCC 35683 builtin and then its argument prototype would still apply. */ 35684char tgetent (); 35685int 35686main (void) 35687{ 35688return tgetent (); 35689 ; 35690 return 0; 35691} 35692_ACEOF 35693if ac_fn_c_try_link "$LINENO" 35694then : 35695 ac_cv_lib_curses_tgetent=yes 35696else $as_nop 35697 ac_cv_lib_curses_tgetent=no 35698fi 35699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35700 conftest$ac_exeext conftest.$ac_ext 35701LIBS=$ac_check_lib_save_LIBS 35702fi 35703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 35704printf "%s\n" "$ac_cv_lib_curses_tgetent" >&6; } 35705if test "x$ac_cv_lib_curses_tgetent" = xyes 35706then : 35707 HAVE_TERMCAP="-lcurses" 35708else $as_nop 35709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 35710printf %s "checking for tgetent in -ltermcap... " >&6; } 35711if test ${ac_cv_lib_termcap_tgetent+y} 35712then : 35713 printf %s "(cached) " >&6 35714else $as_nop 35715 ac_check_lib_save_LIBS=$LIBS 35716LIBS="-ltermcap $LIBS" 35717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35718/* end confdefs.h. */ 35719 35720/* Override any GCC internal prototype to avoid an error. 35721 Use char because int might match the return type of a GCC 35722 builtin and then its argument prototype would still apply. */ 35723char tgetent (); 35724int 35725main (void) 35726{ 35727return tgetent (); 35728 ; 35729 return 0; 35730} 35731_ACEOF 35732if ac_fn_c_try_link "$LINENO" 35733then : 35734 ac_cv_lib_termcap_tgetent=yes 35735else $as_nop 35736 ac_cv_lib_termcap_tgetent=no 35737fi 35738rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35739 conftest$ac_exeext conftest.$ac_ext 35740LIBS=$ac_check_lib_save_LIBS 35741fi 35742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 35743printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; } 35744if test "x$ac_cv_lib_termcap_tgetent" = xyes 35745then : 35746 HAVE_TERMCAP="-ltermcap" 35747else $as_nop 35748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermlib" >&5 35749printf %s "checking for tgetent in -ltermlib... " >&6; } 35750if test ${ac_cv_lib_termlib_tgetent+y} 35751then : 35752 printf %s "(cached) " >&6 35753else $as_nop 35754 ac_check_lib_save_LIBS=$LIBS 35755LIBS="-ltermlib $LIBS" 35756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35757/* end confdefs.h. */ 35758 35759/* Override any GCC internal prototype to avoid an error. 35760 Use char because int might match the return type of a GCC 35761 builtin and then its argument prototype would still apply. */ 35762char tgetent (); 35763int 35764main (void) 35765{ 35766return tgetent (); 35767 ; 35768 return 0; 35769} 35770_ACEOF 35771if ac_fn_c_try_link "$LINENO" 35772then : 35773 ac_cv_lib_termlib_tgetent=yes 35774else $as_nop 35775 ac_cv_lib_termlib_tgetent=no 35776fi 35777rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35778 conftest$ac_exeext conftest.$ac_ext 35779LIBS=$ac_check_lib_save_LIBS 35780fi 35781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termlib_tgetent" >&5 35782printf "%s\n" "$ac_cv_lib_termlib_tgetent" >&6; } 35783if test "x$ac_cv_lib_termlib_tgetent" = xyes 35784then : 35785 HAVE_TERMCAP="-ltermlib" 35786fi 35787 35788 35789fi 35790 35791 35792fi 35793 35794 35795fi 35796 35797 35798fi 35799 35800 35801 if test x"$HAVE_TERMCAP" != "x"; then 35802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_mode in -lreadline" >&5 35803printf %s "checking for rl_completion_mode in -lreadline... " >&6; } 35804if test ${ac_cv_lib_readline_rl_completion_mode+y} 35805then : 35806 printf %s "(cached) " >&6 35807else $as_nop 35808 ac_check_lib_save_LIBS=$LIBS 35809LIBS="-lreadline "$HAVE_TERMCAP" $LIBS" 35810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35811/* end confdefs.h. */ 35812 35813/* Override any GCC internal prototype to avoid an error. 35814 Use char because int might match the return type of a GCC 35815 builtin and then its argument prototype would still apply. */ 35816char rl_completion_mode (); 35817int 35818main (void) 35819{ 35820return rl_completion_mode (); 35821 ; 35822 return 0; 35823} 35824_ACEOF 35825if ac_fn_c_try_link "$LINENO" 35826then : 35827 ac_cv_lib_readline_rl_completion_mode=yes 35828else $as_nop 35829 ac_cv_lib_readline_rl_completion_mode=no 35830fi 35831rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35832 conftest$ac_exeext conftest.$ac_ext 35833LIBS=$ac_check_lib_save_LIBS 35834fi 35835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_mode" >&5 35836printf "%s\n" "$ac_cv_lib_readline_rl_completion_mode" >&6; } 35837if test "x$ac_cv_lib_readline_rl_completion_mode" = xyes 35838then : 35839 have_readline_lib=1 35840else $as_nop 35841 have_readline_lib=0 35842fi 35843 35844 if test "$have_readline_lib" = "1"; then 35845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: I had to manually add $HAVE_TERMCAP dependency to 35846make readline library pass the test." >&5 35847printf "%s\n" "$as_me: WARNING: I had to manually add $HAVE_TERMCAP dependency to 35848make readline library pass the test." >&2;} 35849 fi 35850 fi 35851 fi 35852 35853 if test "$have_readline_lib" = "1"; then 35854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readline works at runtime" >&5 35855printf %s "checking whether readline works at runtime... " >&6; } 35856templibs="$LIBS" 35857LIBS="-lreadline $HAVE_TERMCAP $LIBS" 35858if test "$cross_compiling" = yes 35859then : 35860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown: cross-compiling" >&5 35861printf "%s\n" "unknown: cross-compiling" >&6; } 35862 have_readline_lib=1 35863else $as_nop 35864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35865/* end confdefs.h. */ 35866 35867/* 35868 * testrl.c 35869 * File revision 0 35870 * Check to make sure that readline works at runtime. 35871 * (Specifically, some readline packages link against a wrong 35872 * version of ncurses library and dump core at runtime.) 35873 * (c) 2000 Jacob Lundberg, jacob@chaos2.org 35874 */ 35875 35876#include <stdio.h> 35877/* We assume that the presence of readline has already been verified. */ 35878#include <readline/readline.h> 35879#include <readline/history.h> 35880 35881/* Setup for readline. */ 35882#define TEMP_FILE "./conftest.readline.runtime" 35883 35884static void handle_readline_input_callback(char *line) { 35885/* Generally taken from freeciv-1.11.4/server/sernet.c. */ 35886 if(line) { 35887 if(*line) 35888 add_history(line); 35889 /* printf(line); */ 35890 } 35891} 35892 35893int main(void) { 35894/* Try to init readline and see if it barfs. */ 35895 using_history(); 35896 read_history(TEMP_FILE); 35897 rl_initialize(); 35898 rl_callback_handler_install("_ ", handle_readline_input_callback); 35899 rl_callback_handler_remove(); /* needed to re-set terminal */ 35900 return(0); 35901} 35902 35903_ACEOF 35904if ac_fn_c_try_run "$LINENO" 35905then : 35906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35907printf "%s\n" "yes" >&6; } 35908 have_readline_lib=1 35909else $as_nop 35910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35911printf "%s\n" "no" >&6; } 35912 have_readline_lib=0 35913fi 35914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35915 conftest.$ac_objext conftest.beam conftest.$ac_ext 35916fi 35917 35918LIBS="$templibs" 35919 35920 if test "$have_readline_lib" = "1"; then 35921 SRV_LIB_LIBS="-lreadline $SRV_LIB_LIBS $HAVE_TERMCAP" 35922 35923printf "%s\n" "#define FREECIV_HAVE_LIBREADLINE 1" >>confdefs.h 35924 35925 else 35926 if test "$WITH_READLINE" = "yes"; then 35927 as_fn_error $? "Specified --with-readline but the 35928runtime test of readline failed." "$LINENO" 5 35929 else 35930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Runtime test of readline failed. 35931Configuring server without readline support." >&5 35932printf "%s\n" "$as_me: WARNING: Runtime test of readline failed. 35933Configuring server without readline support." >&2;} 35934 feature_readline=missing 35935 fi 35936 fi 35937 else 35938 if test "$WITH_READLINE" = "yes"; then 35939 as_fn_error $? "Specified --with-readline but the 35940test to link against the library failed." "$LINENO" 5 35941 else 35942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Test to link against readline library failed. 35943Configuring server without readline support." >&5 35944printf "%s\n" "$as_me: WARNING: Test to link against readline library failed. 35945Configuring server without readline support." >&2;} 35946 feature_readline=missing 35947 fi 35948 fi 35949 fi 35950 fi 35951 35952 35953 35954fi 35955 35956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnls" >&5 35957printf %s "checking for main in -lnls... " >&6; } 35958if test ${ac_cv_lib_nls_main+y} 35959then : 35960 printf %s "(cached) " >&6 35961else $as_nop 35962 ac_check_lib_save_LIBS=$LIBS 35963LIBS="-lnls $LIBS" 35964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35965/* end confdefs.h. */ 35966 35967 35968int 35969main (void) 35970{ 35971return main (); 35972 ; 35973 return 0; 35974} 35975_ACEOF 35976if ac_fn_c_try_link "$LINENO" 35977then : 35978 ac_cv_lib_nls_main=yes 35979else $as_nop 35980 ac_cv_lib_nls_main=no 35981fi 35982rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35983 conftest$ac_exeext conftest.$ac_ext 35984LIBS=$ac_check_lib_save_LIBS 35985fi 35986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nls_main" >&5 35987printf "%s\n" "$ac_cv_lib_nls_main" >&6; } 35988if test "x$ac_cv_lib_nls_main" = xyes 35989then : 35990 printf "%s\n" "#define HAVE_LIBNLS 1" >>confdefs.h 35991 35992 LIBS="-lnls $LIBS" 35993 35994fi 35995 35996 35997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 35998printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 35999if test ${ac_cv_header_sys_wait_h+y} 36000then : 36001 printf %s "(cached) " >&6 36002else $as_nop 36003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36004/* end confdefs.h. */ 36005#include <sys/types.h> 36006#include <sys/wait.h> 36007#ifndef WEXITSTATUS 36008# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 36009#endif 36010#ifndef WIFEXITED 36011# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 36012#endif 36013 36014int 36015main (void) 36016{ 36017 int s; 36018 wait (&s); 36019 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 36020 ; 36021 return 0; 36022} 36023_ACEOF 36024if ac_fn_c_try_compile "$LINENO" 36025then : 36026 ac_cv_header_sys_wait_h=yes 36027else $as_nop 36028 ac_cv_header_sys_wait_h=no 36029fi 36030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36031fi 36032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 36033printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } 36034if test $ac_cv_header_sys_wait_h = yes; then 36035 36036printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 36037 36038fi 36039 36040ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 36041if test "x$ac_cv_header_fcntl_h" = xyes 36042then : 36043 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 36044 36045fi 36046ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 36047if test "x$ac_cv_header_sys_utsname_h" = xyes 36048then : 36049 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h 36050 36051fi 36052ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" 36053if test "x$ac_cv_header_sys_file_h" = xyes 36054then : 36055 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h 36056 36057fi 36058ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 36059if test "x$ac_cv_header_signal_h" = xyes 36060then : 36061 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h 36062 36063fi 36064ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 36065if test "x$ac_cv_header_strings_h" = xyes 36066then : 36067 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h 36068 36069fi 36070ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 36071if test "x$ac_cv_header_execinfo_h" = xyes 36072then : 36073 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h 36074 36075fi 36076ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" 36077if test "x$ac_cv_header_libgen_h" = xyes 36078then : 36079 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h 36080 36081fi 36082ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 36083if test "x$ac_cv_header_time_h" = xyes 36084then : 36085 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 36086 36087fi 36088 36089 for ac_header in sys/time.h 36090do : 36091 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 36092if test "x$ac_cv_header_sys_time_h" = xyes 36093then : 36094 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 36095 36096printf "%s\n" "#define FREECIV_HAVE_SYS_TIME_H 1" >>confdefs.h 36097 36098fi 36099 36100done 36101 for ac_header in unistd.h 36102do : 36103 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 36104if test "x$ac_cv_header_unistd_h" = xyes 36105then : 36106 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 36107 36108printf "%s\n" "#define FREECIV_HAVE_UNISTD_H 1" >>confdefs.h 36109 36110fi 36111 36112done 36113 for ac_header in locale.h 36114do : 36115 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 36116if test "x$ac_cv_header_locale_h" = xyes 36117then : 36118 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h 36119 36120printf "%s\n" "#define FREECIV_HAVE_LOCALE_H 1" >>confdefs.h 36121 36122fi 36123 36124done 36125 for ac_header in libintl.h 36126do : 36127 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 36128if test "x$ac_cv_header_libintl_h" = xyes 36129then : 36130 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h 36131 36132printf "%s\n" "#define FREECIV_HAVE_LIBINTL_H 1" >>confdefs.h 36133 36134fi 36135 36136done 36137ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 36138if test "x$ac_cv_type__Bool" = xyes 36139then : 36140 36141printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h 36142 36143 36144fi 36145 36146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 36147printf %s "checking for stdbool.h that conforms to C99... " >&6; } 36148if test ${ac_cv_header_stdbool_h+y} 36149then : 36150 printf %s "(cached) " >&6 36151else $as_nop 36152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36153/* end confdefs.h. */ 36154#include <stdbool.h> 36155 36156 #ifndef __bool_true_false_are_defined 36157 #error "__bool_true_false_are_defined is not defined" 36158 #endif 36159 char a[__bool_true_false_are_defined == 1 ? 1 : -1]; 36160 36161 /* Regardless of whether this is C++ or "_Bool" is a 36162 valid type name, "true" and "false" should be usable 36163 in #if expressions and integer constant expressions, 36164 and "bool" should be a valid type name. */ 36165 36166 #if !true 36167 #error "'true' is not true" 36168 #endif 36169 #if true != 1 36170 #error "'true' is not equal to 1" 36171 #endif 36172 char b[true == 1 ? 1 : -1]; 36173 char c[true]; 36174 36175 #if false 36176 #error "'false' is not false" 36177 #endif 36178 #if false != 0 36179 #error "'false' is not equal to 0" 36180 #endif 36181 char d[false == 0 ? 1 : -1]; 36182 36183 enum { e = false, f = true, g = false * true, h = true * 256 }; 36184 36185 char i[(bool) 0.5 == true ? 1 : -1]; 36186 char j[(bool) 0.0 == false ? 1 : -1]; 36187 char k[sizeof (bool) > 0 ? 1 : -1]; 36188 36189 struct sb { bool s: 1; bool t; } s; 36190 char l[sizeof s.t > 0 ? 1 : -1]; 36191 36192 /* The following fails for 36193 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 36194 bool m[h]; 36195 char n[sizeof m == h * sizeof m[0] ? 1 : -1]; 36196 char o[-1 - (bool) 0 < 0 ? 1 : -1]; 36197 /* Catch a bug in an HP-UX C compiler. See 36198 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 36199 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 36200 */ 36201 bool p = true; 36202 bool *pp = &p; 36203 36204 /* C 1999 specifies that bool, true, and false are to be 36205 macros, but C++ 2011 and later overrule this. */ 36206 #if __cplusplus < 201103 36207 #ifndef bool 36208 #error "bool is not defined" 36209 #endif 36210 #ifndef false 36211 #error "false is not defined" 36212 #endif 36213 #ifndef true 36214 #error "true is not defined" 36215 #endif 36216 #endif 36217 36218 /* If _Bool is available, repeat with it all the tests 36219 above that used bool. */ 36220 #ifdef HAVE__BOOL 36221 struct sB { _Bool s: 1; _Bool t; } t; 36222 36223 char q[(_Bool) 0.5 == true ? 1 : -1]; 36224 char r[(_Bool) 0.0 == false ? 1 : -1]; 36225 char u[sizeof (_Bool) > 0 ? 1 : -1]; 36226 char v[sizeof t.t > 0 ? 1 : -1]; 36227 36228 _Bool w[h]; 36229 char x[sizeof m == h * sizeof m[0] ? 1 : -1]; 36230 char y[-1 - (_Bool) 0 < 0 ? 1 : -1]; 36231 _Bool z = true; 36232 _Bool *pz = &p; 36233 #endif 36234 36235int 36236main (void) 36237{ 36238 36239 bool ps = &s; 36240 *pp |= p; 36241 *pp |= ! p; 36242 36243 #ifdef HAVE__BOOL 36244 _Bool pt = &t; 36245 *pz |= z; 36246 *pz |= ! z; 36247 #endif 36248 36249 /* Refer to every declared value, so they cannot be 36250 discarded as unused. */ 36251 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k 36252 + !l + !m + !n + !o + !p + !pp + !ps 36253 #ifdef HAVE__BOOL 36254 + !q + !r + !u + !v + !w + !x + !y + !z + !pt 36255 #endif 36256 ); 36257 36258 ; 36259 return 0; 36260} 36261_ACEOF 36262if ac_fn_c_try_compile "$LINENO" 36263then : 36264 ac_cv_header_stdbool_h=yes 36265else $as_nop 36266 ac_cv_header_stdbool_h=no 36267fi 36268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36269fi 36270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 36271printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } 36272 36273if test $ac_cv_header_stdbool_h = yes; then 36274 36275printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h 36276 36277fi 36278 36279if test $ac_cv_header_stdbool_h = yes; then 36280 36281printf "%s\n" "#define FREECIV_HAVE_STDBOOL_H 1" >>confdefs.h 36282 36283fi 36284 36285ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 36286if test "x$ac_cv_header_pwd_h" = xyes 36287then : 36288 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 36289 36290fi 36291 36292 36293if test "x$MINGW" != "xyes"; then 36294 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 36295if test "x$ac_cv_header_arpa_inet_h" = xyes 36296then : 36297 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 36298 36299fi 36300ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" 36301if test "x$ac_cv_header_netdb_h" = xyes 36302then : 36303 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 36304 36305fi 36306ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 36307if test "x$ac_cv_header_sys_ioctl_h" = xyes 36308then : 36309 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 36310 36311fi 36312ac_fn_c_check_header_compile "$LINENO" "sys/signal.h" "ac_cv_header_sys_signal_h" "$ac_includes_default" 36313if test "x$ac_cv_header_sys_signal_h" = xyes 36314then : 36315 printf "%s\n" "#define HAVE_SYS_SIGNAL_H 1" >>confdefs.h 36316 36317fi 36318ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default" 36319if test "x$ac_cv_header_sys_termio_h" = xyes 36320then : 36321 printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h 36322 36323fi 36324ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" 36325if test "x$ac_cv_header_sys_uio_h" = xyes 36326then : 36327 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 36328 36329fi 36330ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 36331if test "x$ac_cv_header_termios_h" = xyes 36332then : 36333 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h 36334 36335fi 36336 36337 for ac_header in sys/select.h 36338do : 36339 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 36340if test "x$ac_cv_header_sys_select_h" = xyes 36341then : 36342 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 36343 36344printf "%s\n" "#define FREECIV_HAVE_SYS_SELECT_H 1" >>confdefs.h 36345 36346fi 36347 36348done 36349 for ac_header in netinet/in.h 36350do : 36351 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 36352if test "x$ac_cv_header_netinet_in_h" = xyes 36353then : 36354 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 36355 36356printf "%s\n" "#define FREECIV_HAVE_NETINET_IN_H 1" >>confdefs.h 36357 36358fi 36359 36360done 36361fi 36362if test "x$gui_xaw" = "xyes" ; then 36363 fc_save_CPPFLAGS="$CPPFLAGS" 36364 CPPFLAGS="$CPPFLAGS $gui_xaw_cflags" 36365 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" 36366if test "x$ac_cv_header_X11_xpm_h" = xyes 36367then : 36368 36369else $as_nop 36370 as_fn_error $? "need X11/xpm.h header; perhaps try/adjust --with-xpm-include" "$LINENO" 5 36371fi 36372 36373 CPPFLAGS="$fc_save_CPPFLAGS" 36374fi 36375 36376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 36377printf %s "checking for an ANSI C-conforming const... " >&6; } 36378if test ${ac_cv_c_const+y} 36379then : 36380 printf %s "(cached) " >&6 36381else $as_nop 36382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36383/* end confdefs.h. */ 36384 36385int 36386main (void) 36387{ 36388 36389#ifndef __cplusplus 36390 /* Ultrix mips cc rejects this sort of thing. */ 36391 typedef int charset[2]; 36392 const charset cs = { 0, 0 }; 36393 /* SunOS 4.1.1 cc rejects this. */ 36394 char const *const *pcpcc; 36395 char **ppc; 36396 /* NEC SVR4.0.2 mips cc rejects this. */ 36397 struct point {int x, y;}; 36398 static struct point const zero = {0,0}; 36399 /* IBM XL C 1.02.0.0 rejects this. 36400 It does not let you subtract one const X* pointer from another in 36401 an arm of an if-expression whose if-part is not a constant 36402 expression */ 36403 const char *g = "string"; 36404 pcpcc = &g + (g ? g-g : 0); 36405 /* HPUX 7.0 cc rejects these. */ 36406 ++pcpcc; 36407 ppc = (char**) pcpcc; 36408 pcpcc = (char const *const *) ppc; 36409 { /* SCO 3.2v4 cc rejects this sort of thing. */ 36410 char tx; 36411 char *t = &tx; 36412 char const *s = 0 ? (char *) 0 : (char const *) 0; 36413 36414 *t++ = 0; 36415 if (s) return 0; 36416 } 36417 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 36418 int x[] = {25, 17}; 36419 const int *foo = &x[0]; 36420 ++foo; 36421 } 36422 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 36423 typedef const int *iptr; 36424 iptr p = 0; 36425 ++p; 36426 } 36427 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 36428 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 36429 struct s { int j; const int *ap[3]; } bx; 36430 struct s *b = &bx; b->j = 5; 36431 } 36432 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 36433 const int foo = 10; 36434 if (!foo) return 0; 36435 } 36436 return !cs[0] && !zero.x; 36437#endif 36438 36439 ; 36440 return 0; 36441} 36442_ACEOF 36443if ac_fn_c_try_compile "$LINENO" 36444then : 36445 ac_cv_c_const=yes 36446else $as_nop 36447 ac_cv_c_const=no 36448fi 36449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36450fi 36451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 36452printf "%s\n" "$ac_cv_c_const" >&6; } 36453if test $ac_cv_c_const = no; then 36454 36455printf "%s\n" "#define const /**/" >>confdefs.h 36456 36457fi 36458 36459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 36460printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 36461if test ${ac_cv_struct_tm+y} 36462then : 36463 printf %s "(cached) " >&6 36464else $as_nop 36465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36466/* end confdefs.h. */ 36467#include <sys/types.h> 36468#include <time.h> 36469 36470int 36471main (void) 36472{ 36473struct tm tm; 36474 int *p = &tm.tm_sec; 36475 return !p; 36476 ; 36477 return 0; 36478} 36479_ACEOF 36480if ac_fn_c_try_compile "$LINENO" 36481then : 36482 ac_cv_struct_tm=time.h 36483else $as_nop 36484 ac_cv_struct_tm=sys/time.h 36485fi 36486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36487fi 36488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 36489printf "%s\n" "$ac_cv_struct_tm" >&6; } 36490if test $ac_cv_struct_tm = sys/time.h; then 36491 36492printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 36493 36494fi 36495 36496ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#ifdef FREECIV_HAVE_SYS_TYPES_H 36497#include <sys/types.h> 36498#endif 36499#ifdef FREECIV_HAVE_SYS_SOCKET_H 36500#include <sys/socket.h> 36501#endif 36502#ifdef FREECIV_HAVE_WS2TCPIP_H 36503#include <ws2tcpip.h> 36504#endif 36505 36506" 36507if test "x$ac_cv_type_socklen_t" = xyes 36508then : 36509 36510printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 36511 36512 36513printf "%s\n" "#define FREECIV_HAVE_SOCKLEN_T 1" >>confdefs.h 36514 36515fi 36516 36517 36518 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 36519if test "x$ac_cv_type_intptr_t" = xyes 36520then : 36521 36522printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h 36523 36524else $as_nop 36525 for ac_type in 'int' 'long int' 'long long int'; do 36526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36527/* end confdefs.h. */ 36528$ac_includes_default 36529int 36530main (void) 36531{ 36532static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 36533test_array [0] = 0; 36534return test_array [0]; 36535 36536 ; 36537 return 0; 36538} 36539_ACEOF 36540if ac_fn_c_try_compile "$LINENO" 36541then : 36542 36543printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h 36544 36545 ac_type= 36546fi 36547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36548 test -z "$ac_type" && break 36549 done 36550fi 36551 36552 36553 for ac_header in inttypes.h 36554do : 36555 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 36556if test "x$ac_cv_header_inttypes_h" = xyes 36557then : 36558 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h 36559 36560printf "%s\n" "#define FREECIV_HAVE_INTTYPES_H 1" >>confdefs.h 36561 36562fi 36563 36564done 36565 for ac_header in stdint.h 36566do : 36567 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 36568if test "x$ac_cv_header_stdint_h" = xyes 36569then : 36570 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 36571 36572printf "%s\n" "#define FREECIV_HAVE_STDINT_H 1" >>confdefs.h 36573 36574fi 36575 36576done 36577 36578 36579 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 36580" 36581if test "x$ac_cv_type_pid_t" = xyes 36582then : 36583 36584else $as_nop 36585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36586/* end confdefs.h. */ 36587 36588 #if defined _WIN64 && !defined __CYGWIN__ 36589 LLP64 36590 #endif 36591 36592int 36593main (void) 36594{ 36595 36596 ; 36597 return 0; 36598} 36599 36600_ACEOF 36601if ac_fn_c_try_compile "$LINENO" 36602then : 36603 ac_pid_type='int' 36604else $as_nop 36605 ac_pid_type='__int64' 36606fi 36607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36608 36609printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 36610 36611 36612fi 36613 36614 36615 36616ac_func= 36617for ac_item in $ac_func_c_list 36618do 36619 if test $ac_func; then 36620 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 36621 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 36622 echo "#define $ac_item 1" >> confdefs.h 36623 fi 36624 ac_func= 36625 else 36626 ac_func=$ac_item 36627 fi 36628done 36629 36630 36631 36632if test "x$ac_cv_func_fork" = xyes; then 36633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 36634printf %s "checking for working fork... " >&6; } 36635if test ${ac_cv_func_fork_works+y} 36636then : 36637 printf %s "(cached) " >&6 36638else $as_nop 36639 if test "$cross_compiling" = yes 36640then : 36641 ac_cv_func_fork_works=cross 36642else $as_nop 36643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36644/* end confdefs.h. */ 36645$ac_includes_default 36646int 36647main (void) 36648{ 36649 36650 /* By Ruediger Kuhlmann. */ 36651 return fork () < 0; 36652 36653 ; 36654 return 0; 36655} 36656_ACEOF 36657if ac_fn_c_try_run "$LINENO" 36658then : 36659 ac_cv_func_fork_works=yes 36660else $as_nop 36661 ac_cv_func_fork_works=no 36662fi 36663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36664 conftest.$ac_objext conftest.beam conftest.$ac_ext 36665fi 36666 36667fi 36668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 36669printf "%s\n" "$ac_cv_func_fork_works" >&6; } 36670 36671else 36672 ac_cv_func_fork_works=$ac_cv_func_fork 36673fi 36674if test "x$ac_cv_func_fork_works" = xcross; then 36675 case $host in 36676 *-*-amigaos* | *-*-msdosdjgpp*) 36677 # Override, as these systems have only a dummy fork() stub 36678 ac_cv_func_fork_works=no 36679 ;; 36680 *) 36681 ac_cv_func_fork_works=yes 36682 ;; 36683 esac 36684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 36685printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 36686fi 36687ac_cv_func_vfork_works=$ac_cv_func_vfork 36688if test "x$ac_cv_func_vfork" = xyes; then 36689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 36690printf %s "checking for working vfork... " >&6; } 36691if test ${ac_cv_func_vfork_works+y} 36692then : 36693 printf %s "(cached) " >&6 36694else $as_nop 36695 if test "$cross_compiling" = yes 36696then : 36697 ac_cv_func_vfork_works=cross 36698else $as_nop 36699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36700/* end confdefs.h. */ 36701/* Thanks to Paul Eggert for this test. */ 36702$ac_includes_default 36703#include <signal.h> 36704#include <sys/wait.h> 36705#ifdef HAVE_VFORK_H 36706# include <vfork.h> 36707#endif 36708 36709static void 36710do_nothing (int sig) 36711{ 36712 (void) sig; 36713} 36714 36715/* On some sparc systems, changes by the child to local and incoming 36716 argument registers are propagated back to the parent. The compiler 36717 is told about this with #include <vfork.h>, but some compilers 36718 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 36719 static variable whose address is put into a register that is 36720 clobbered by the vfork. */ 36721static void 36722sparc_address_test (int arg) 36723{ 36724 static pid_t child; 36725 if (!child) { 36726 child = vfork (); 36727 if (child < 0) { 36728 perror ("vfork"); 36729 _exit(2); 36730 } 36731 if (!child) { 36732 arg = getpid(); 36733 write(-1, "", 0); 36734 _exit (arg); 36735 } 36736 } 36737} 36738 36739int 36740main (void) 36741{ 36742 pid_t parent = getpid (); 36743 pid_t child; 36744 36745 sparc_address_test (0); 36746 36747 /* On Solaris 2.4, changes by the child to the signal handler 36748 also munge signal handlers in the parent. To detect this, 36749 start by putting the parent's handler in a known state. */ 36750 signal (SIGTERM, SIG_DFL); 36751 36752 child = vfork (); 36753 36754 if (child == 0) { 36755 /* Here is another test for sparc vfork register problems. This 36756 test uses lots of local variables, at least as many local 36757 variables as main has allocated so far including compiler 36758 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 36759 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 36760 reuse the register of parent for one of the local variables, 36761 since it will think that parent can't possibly be used any more 36762 in this routine. Assigning to the local variable will thus 36763 munge parent in the parent process. */ 36764 pid_t 36765 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 36766 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 36767 /* Convince the compiler that p..p7 are live; otherwise, it might 36768 use the same hardware register for all 8 local variables. */ 36769 if (p != p1 || p != p2 || p != p3 || p != p4 36770 || p != p5 || p != p6 || p != p7) 36771 _exit(1); 36772 36773 /* Alter the child's signal handler. */ 36774 if (signal (SIGTERM, do_nothing) != SIG_DFL) 36775 _exit(1); 36776 36777 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 36778 from child file descriptors. If the child closes a descriptor 36779 before it execs or exits, this munges the parent's descriptor 36780 as well. Test for this by closing stdout in the child. */ 36781 _exit(close(fileno(stdout)) != 0); 36782 } else { 36783 int status; 36784 struct stat st; 36785 36786 while (wait(&status) != child) 36787 ; 36788 return ( 36789 /* Was there some problem with vforking? */ 36790 child < 0 36791 36792 /* Did the child munge the parent's signal handler? */ 36793 || signal (SIGTERM, SIG_DFL) != SIG_DFL 36794 36795 /* Did the child fail? (This shouldn't happen.) */ 36796 || status 36797 36798 /* Did the vfork/compiler bug occur? */ 36799 || parent != getpid() 36800 36801 /* Did the file descriptor bug occur? */ 36802 || fstat(fileno(stdout), &st) != 0 36803 ); 36804 } 36805} 36806_ACEOF 36807if ac_fn_c_try_run "$LINENO" 36808then : 36809 ac_cv_func_vfork_works=yes 36810else $as_nop 36811 ac_cv_func_vfork_works=no 36812fi 36813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36814 conftest.$ac_objext conftest.beam conftest.$ac_ext 36815fi 36816 36817fi 36818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 36819printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 36820 36821fi; 36822if test "x$ac_cv_func_fork_works" = xcross; then 36823 ac_cv_func_vfork_works=$ac_cv_func_vfork 36824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 36825printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 36826fi 36827 36828if test "x$ac_cv_func_vfork_works" = xyes; then 36829 36830printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 36831 36832else 36833 36834printf "%s\n" "#define vfork fork" >>confdefs.h 36835 36836fi 36837if test "x$ac_cv_func_fork_works" = xyes; then 36838 36839printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 36840 36841fi 36842 36843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5 36844printf %s "checking for working strcoll... " >&6; } 36845if test ${ac_cv_func_strcoll_works+y} 36846then : 36847 printf %s "(cached) " >&6 36848else $as_nop 36849 if test "$cross_compiling" = yes 36850then : 36851 case "$host_os" in # (( 36852 # Guess yes on glibc systems. 36853 *-gnu*) ac_cv_func_strcoll_works=yes ;; 36854 # If we don't know, assume the worst. 36855 *) ac_cv_func_strcoll_works=no ;; 36856 esac 36857else $as_nop 36858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36859/* end confdefs.h. */ 36860$ac_includes_default 36861int 36862main (void) 36863{ 36864return (strcoll ("abc", "def") >= 0 || 36865 strcoll ("ABC", "DEF") >= 0 || 36866 strcoll ("123", "456") >= 0) 36867 ; 36868 return 0; 36869} 36870_ACEOF 36871if ac_fn_c_try_run "$LINENO" 36872then : 36873 ac_cv_func_strcoll_works=yes 36874else $as_nop 36875 ac_cv_func_strcoll_works=no 36876fi 36877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36878 conftest.$ac_objext conftest.beam conftest.$ac_ext 36879fi 36880 36881fi 36882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5 36883printf "%s\n" "$ac_cv_func_strcoll_works" >&6; } 36884if test $ac_cv_func_strcoll_works = yes; then 36885 36886printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h 36887 36888fi 36889 36890 36891 36892if test "x$ac_cv_func_vprintf" = xno 36893then : 36894 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 36895if test "x$ac_cv_func__doprnt" = xyes 36896then : 36897 36898printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h 36899 36900fi 36901 36902fi 36903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 36904printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 36905if test ${ac_cv_sys_largefile_source+y} 36906then : 36907 printf %s "(cached) " >&6 36908else $as_nop 36909 while :; do 36910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36911/* end confdefs.h. */ 36912#include <sys/types.h> /* for off_t */ 36913 #include <stdio.h> 36914int 36915main (void) 36916{ 36917int (*fp) (FILE *, off_t, int) = fseeko; 36918 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 36919 ; 36920 return 0; 36921} 36922_ACEOF 36923if ac_fn_c_try_link "$LINENO" 36924then : 36925 ac_cv_sys_largefile_source=no; break 36926fi 36927rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36928 conftest$ac_exeext conftest.$ac_ext 36929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36930/* end confdefs.h. */ 36931#define _LARGEFILE_SOURCE 1 36932#include <sys/types.h> /* for off_t */ 36933 #include <stdio.h> 36934int 36935main (void) 36936{ 36937int (*fp) (FILE *, off_t, int) = fseeko; 36938 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 36939 ; 36940 return 0; 36941} 36942_ACEOF 36943if ac_fn_c_try_link "$LINENO" 36944then : 36945 ac_cv_sys_largefile_source=1; break 36946fi 36947rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36948 conftest$ac_exeext conftest.$ac_ext 36949 ac_cv_sys_largefile_source=unknown 36950 break 36951done 36952fi 36953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 36954printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } 36955case $ac_cv_sys_largefile_source in #( 36956 no | unknown) ;; 36957 *) 36958printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h 36959;; 36960esac 36961rm -rf conftest* 36962 36963# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 36964# in glibc 2.1.3, but that breaks too many other things. 36965# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 36966if test $ac_cv_sys_largefile_source != unknown; then 36967 36968printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 36969 36970fi 36971 36972 36973if test "x$MINGW" != "xyes"; then 36974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5 36975printf %s "checking for working vsnprintf... " >&6; } 36976if test ${ac_cv_func_working_vsnprintf+y} 36977then : 36978 printf %s "(cached) " >&6 36979else $as_nop 36980 if test "$cross_compiling" = yes 36981then : 36982 ac_cv_func_working_vsnprintf=no 36983else $as_nop 36984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36985/* end confdefs.h. */ 36986#include <stdio.h> 36987#include <stdarg.h> 36988 36989int 36990doit(char * s, ...) 36991{ 36992 char buffer[32]; 36993 va_list args; 36994 int r; 36995 36996 buffer[5] = 'X'; 36997 36998 va_start(args, s); 36999 r = vsnprintf(buffer, 5, s, args); 37000 va_end(args); 37001 37002 /* -1 is pre-C99, 7 is C99. */ 37003 37004 if (r != -1 && r != 7) 37005 exit(1); 37006 37007 /* We deliberately do not care if the result is NUL-terminated or 37008 not, since this is easy to work around like this. */ 37009 37010 buffer[4] = 0; 37011 37012 /* Simple sanity check. */ 37013 37014 if (strcmp(buffer, "1234")) 37015 exit(1); 37016 37017 if (buffer[5] != 'X') 37018 exit(1); 37019 37020 exit(0); 37021} 37022 37023int 37024main(void) 37025{ 37026 doit("1234567"); 37027 exit(1); 37028} 37029_ACEOF 37030if ac_fn_c_try_run "$LINENO" 37031then : 37032 ac_cv_func_working_vsnprintf=yes 37033else $as_nop 37034 ac_cv_func_working_vsnprintf=no 37035fi 37036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 37037 conftest.$ac_objext conftest.beam conftest.$ac_ext 37038fi 37039 37040fi 37041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_vsnprintf" >&5 37042printf "%s\n" "$ac_cv_func_working_vsnprintf" >&6; } 37043if test $ac_cv_func_working_vsnprintf = yes; then 37044 37045printf "%s\n" "#define HAVE_WORKING_VSNPRINTF 1" >>confdefs.h 37046 37047fi 37048 37049ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 37050if test "x$ac_cv_func_vsnprintf" = xyes 37051then : 37052 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h 37053 37054fi 37055 37056fi 37057 37058ac_fn_c_check_func "$LINENO" "bind" "ac_cv_func_bind" 37059if test "x$ac_cv_func_bind" = xyes 37060then : 37061 printf "%s\n" "#define HAVE_BIND 1" >>confdefs.h 37062 37063fi 37064ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 37065if test "x$ac_cv_func_connect" = xyes 37066then : 37067 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h 37068 37069fi 37070ac_fn_c_check_func "$LINENO" "fileno" "ac_cv_func_fileno" 37071if test "x$ac_cv_func_fileno" = xyes 37072then : 37073 printf "%s\n" "#define HAVE_FILENO 1" >>confdefs.h 37074 37075fi 37076ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 37077if test "x$ac_cv_func_flock" = xyes 37078then : 37079 printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h 37080 37081fi 37082ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime" 37083if test "x$ac_cv_func_ftime" = xyes 37084then : 37085 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h 37086 37087fi 37088ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 37089if test "x$ac_cv_func_gethostbyname" = xyes 37090then : 37091 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 37092 37093fi 37094ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 37095if test "x$ac_cv_func_gethostname" = xyes 37096then : 37097 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 37098 37099fi 37100 37101ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" 37102if test "x$ac_cv_func_getpwuid" = xyes 37103then : 37104 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h 37105 37106fi 37107ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 37108if test "x$ac_cv_func_inet_aton" = xyes 37109then : 37110 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 37111 37112fi 37113ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 37114if test "x$ac_cv_func_select" = xyes 37115then : 37116 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h 37117 37118fi 37119ac_fn_c_check_func "$LINENO" "snooze" "ac_cv_func_snooze" 37120if test "x$ac_cv_func_snooze" = xyes 37121then : 37122 printf "%s\n" "#define HAVE_SNOOZE 1" >>confdefs.h 37123 37124fi 37125ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 37126if test "x$ac_cv_func_strcasecmp" = xyes 37127then : 37128 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 37129 37130fi 37131ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 37132if test "x$ac_cv_func_strcasestr" = xyes 37133then : 37134 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 37135 37136fi 37137 37138ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 37139if test "x$ac_cv_func_strerror" = xyes 37140then : 37141 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h 37142 37143fi 37144ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 37145if test "x$ac_cv_func_strlcat" = xyes 37146then : 37147 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 37148 37149fi 37150ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 37151if test "x$ac_cv_func_strlcpy" = xyes 37152then : 37153 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 37154 37155fi 37156ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 37157if test "x$ac_cv_func_strncasecmp" = xyes 37158then : 37159 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 37160 37161fi 37162ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" 37163if test "x$ac_cv_func_strstr" = xyes 37164then : 37165 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h 37166 37167fi 37168ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 37169if test "x$ac_cv_func_uname" = xyes 37170then : 37171 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h 37172 37173fi 37174ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 37175if test "x$ac_cv_func_nanosleep" = xyes 37176then : 37177 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 37178 37179fi 37180 37181ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 37182if test "x$ac_cv_func_usleep" = xyes 37183then : 37184 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h 37185 37186fi 37187ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 37188if test "x$ac_cv_func_getline" = xyes 37189then : 37190 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h 37191 37192fi 37193ac_fn_c_check_func "$LINENO" "_strcoll" "ac_cv_func__strcoll" 37194if test "x$ac_cv_func__strcoll" = xyes 37195then : 37196 printf "%s\n" "#define HAVE__STRCOLL 1" >>confdefs.h 37197 37198fi 37199ac_fn_c_check_func "$LINENO" "stricoll" "ac_cv_func_stricoll" 37200if test "x$ac_cv_func_stricoll" = xyes 37201then : 37202 printf "%s\n" "#define HAVE_STRICOLL 1" >>confdefs.h 37203 37204fi 37205ac_fn_c_check_func "$LINENO" "_stricoll" "ac_cv_func__stricoll" 37206if test "x$ac_cv_func__stricoll" = xyes 37207then : 37208 printf "%s\n" "#define HAVE__STRICOLL 1" >>confdefs.h 37209 37210fi 37211ac_fn_c_check_func "$LINENO" "strcasecoll" "ac_cv_func_strcasecoll" 37212if test "x$ac_cv_func_strcasecoll" = xyes 37213then : 37214 printf "%s\n" "#define HAVE_STRCASECOLL 1" >>confdefs.h 37215 37216fi 37217ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" 37218if test "x$ac_cv_func_backtrace" = xyes 37219then : 37220 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h 37221 37222fi 37223 37224 37225ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" 37226if test "x$ac_cv_header_sys_random_h" = xyes 37227then : 37228 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h 37229 37230fi 37231 37232 for ac_header in bcrypt.h 37233do : 37234 ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "$ac_includes_default" 37235if test "x$ac_cv_header_bcrypt_h" = xyes 37236then : 37237 printf "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h 37238 bcrypt_h_found=yes 37239else $as_nop 37240 bcrypt_h_found=no 37241fi 37242 37243done 37244if test "x$bcrypt_h_found" = "xyes" ; then 37245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BCryptGenRandom in -lbcrypt" >&5 37246printf %s "checking for BCryptGenRandom in -lbcrypt... " >&6; } 37247if test ${ac_cv_lib_bcrypt_BCryptGenRandom+y} 37248then : 37249 printf %s "(cached) " >&6 37250else $as_nop 37251 ac_check_lib_save_LIBS=$LIBS 37252LIBS="-lbcrypt $LIBS" 37253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37254/* end confdefs.h. */ 37255 37256/* Override any GCC internal prototype to avoid an error. 37257 Use char because int might match the return type of a GCC 37258 builtin and then its argument prototype would still apply. */ 37259char BCryptGenRandom (); 37260int 37261main (void) 37262{ 37263return BCryptGenRandom (); 37264 ; 37265 return 0; 37266} 37267_ACEOF 37268if ac_fn_c_try_link "$LINENO" 37269then : 37270 ac_cv_lib_bcrypt_BCryptGenRandom=yes 37271else $as_nop 37272 ac_cv_lib_bcrypt_BCryptGenRandom=no 37273fi 37274rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37275 conftest$ac_exeext conftest.$ac_ext 37276LIBS=$ac_check_lib_save_LIBS 37277fi 37278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bcrypt_BCryptGenRandom" >&5 37279printf "%s\n" "$ac_cv_lib_bcrypt_BCryptGenRandom" >&6; } 37280if test "x$ac_cv_lib_bcrypt_BCryptGenRandom" = xyes 37281then : 37282 37283 37284printf "%s\n" "#define HAVE_BCRYPTGENRANDOM 1" >>confdefs.h 37285 37286 UTILITY_LIBS="${UTILITY_LIBS} -lbcrypt" 37287fi 37288 37289fi 37290ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 37291if test "x$ac_cv_func_getentropy" = xyes 37292then : 37293 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h 37294 37295fi 37296ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 37297if test "x$ac_cv_func_clock_gettime" = xyes 37298then : 37299 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 37300 37301fi 37302 37303 37304if test "x$MINGW" != "xyes" ; then 37305 if test ${ac_cv_dev_urandom+y} 37306then : 37307 printf %s "(cached) " >&6 37308else $as_nop 37309 if test "x$cross_compiling" != "xyes" ; then 37310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5 37311printf %s "checking for /dev/urandom... " >&6; } 37312if test ${ac_cv_file__dev_urandom+y} 37313then : 37314 printf %s "(cached) " >&6 37315else $as_nop 37316 test "$cross_compiling" = yes && 37317 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 37318if test -r "/dev/urandom"; then 37319 ac_cv_file__dev_urandom=yes 37320else 37321 ac_cv_file__dev_urandom=no 37322fi 37323fi 37324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5 37325printf "%s\n" "$ac_cv_file__dev_urandom" >&6; } 37326if test "x$ac_cv_file__dev_urandom" = xyes 37327then : 37328 37329printf "%s\n" "#define HAVE__DEV_URANDOM 1" >>confdefs.h 37330ac_cv_dev_urandom=yes 37331else $as_nop 37332 ac_cv_dev_urandom=no 37333fi 37334 37335 else 37336 ac_cv_dev_urandom=no 37337 fi 37338fi 37339 37340 if test "x${ac_cv_dev_urandom}" = "xyes" ; then 37341 37342printf "%s\n" "#define HAVE_USABLE_URANDOM 1" >>confdefs.h 37343 37344 fi 37345fi 37346 37347fc_save_CPPFLAGS="$CPPFLAGS" 37348CPPFLAGS="$CPPFLAGS -Werror $EXTRA_DEBUG_CFLAGS" 37349ac_fn_c_check_func "$LINENO" "_mkdir" "ac_cv_func__mkdir" 37350if test "x$ac_cv_func__mkdir" = xyes 37351then : 37352 printf "%s\n" "#define HAVE__MKDIR 1" >>confdefs.h 37353 37354fi 37355 37356CPPFLAGS="$fc_save_CPPFLAGS" 37357 37358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working gettimeofday" >&5 37359printf %s "checking for working gettimeofday... " >&6; } 37360 37361templibs="$LIBS" 37362LIBS=" $LIBS" 37363if test "$cross_compiling" = yes 37364then : 37365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown: cross-compiling" >&5 37366printf "%s\n" "unknown: cross-compiling" >&6; } 37367 37368else $as_nop 37369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37370/* end confdefs.h. */ 37371 37372#include <sys/time.h> 37373#include <unistd.h> 37374#include <stdio.h> 37375#include <time.h> 37376#include <stdlib.h> 37377 37378#define VERBOSE 0 37379#define SECONDS 3 37380 37381int main(int argc, char **argv) 37382{ 37383 struct timeval tv[2], start, end; 37384 int calls; 37385 37386 if (gettimeofday(&start, NULL) == -1) { 37387 return 1; 37388 } 37389 end = start; 37390 end.tv_sec += SECONDS; 37391 37392 tv[0] = start; 37393 tv[1] = start; 37394 37395 for (calls = 0;; calls++) { 37396 time_t sec; 37397 37398 if (gettimeofday(&tv[0], NULL) == -1) { 37399 return 1; 37400 } 37401 37402 if (tv[0].tv_sec < tv[1].tv_sec) { 37403#if VERBOSE 37404 double diff = 37405 (tv[1].tv_sec - start.tv_sec) + 37406 ((tv[1].tv_usec - start.tv_usec) / 1e6); 37407 printf("after %fs: going backward by %lds\n", diff, 37408 tv[1].tv_sec - tv[0].tv_sec); 37409#endif 37410 return 1; 37411 } 37412 37413 if (tv[0].tv_sec == tv[1].tv_sec && tv[0].tv_usec < tv[1].tv_usec) { 37414#if VERBOSE 37415 double diff = 37416 (tv[1].tv_sec - start.tv_sec) + 37417 ((tv[1].tv_usec - start.tv_usec) / 1e6); 37418 printf("after %fs: going backward by %ldus\n", diff, 37419 tv[1].tv_usec - tv[0].tv_usec); 37420#endif 37421 return 1; 37422 } 37423 37424 if (tv[0].tv_sec > tv[1].tv_sec + 1) { 37425#if VERBOSE 37426 double diff = 37427 (tv[1].tv_sec - start.tv_sec) + 37428 ((tv[1].tv_usec - start.tv_usec) / 1e6); 37429 printf("after %fs: going forward by %lds\n", diff, 37430 tv[0].tv_sec - tv[1].tv_sec); 37431#endif 37432 return 1; 37433 } 37434 37435 sec = time(NULL); 37436 37437 if (abs(sec - tv[0].tv_sec) > 1) { 37438#if VERBOSE 37439 double diff = 37440 (tv[1].tv_sec - start.tv_sec) + 37441 ((tv[1].tv_usec - start.tv_usec) / 1e6); 37442 printf("after %fs: time() = %ld, gettimeofday = %ld, diff = %ld\n", diff, 37443 (long)sec, (long)tv[0].tv_sec, sec - (long)tv[0].tv_sec); 37444#endif 37445 return 1; 37446 } 37447 37448 if (timercmp(&tv[0], &end, >)) { 37449 break; 37450 } 37451 tv[1] = tv[0]; 37452 } 37453 37454#if VERBOSE 37455 { 37456 double diff = 37457 (tv[1].tv_sec - start.tv_sec) + 37458 ((tv[1].tv_usec - start.tv_usec) / 1e6); 37459 printf("%d calls in %fs = %fus/call\n", calls, diff, 1e6 * diff / calls); 37460 } 37461#endif 37462 return 0; 37463} 37464 37465_ACEOF 37466if ac_fn_c_try_run "$LINENO" 37467then : 37468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37469printf "%s\n" "yes" >&6; } 37470 37471printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 37472 37473else $as_nop 37474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37475printf "%s\n" "no" >&6; } 37476 37477fi 37478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 37479 conftest.$ac_objext conftest.beam conftest.$ac_ext 37480fi 37481 37482LIBS="$templibs" 37483 37484 37485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37486/* end confdefs.h. */ 37487#include <netinet/in.h> 37488int 37489main (void) 37490{ 37491struct ip_mreqn req; req.imr_ifindex = 0; 37492 ; 37493 return 0; 37494} 37495_ACEOF 37496if ac_fn_c_try_compile "$LINENO" 37497then : 37498 37499printf "%s\n" "#define HAVE_IP_MREQN 1" >>confdefs.h 37500 37501fi 37502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37503 37504if test $ac_cv_func_gethostbyname = no; then 37505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 37506printf %s "checking for gethostbyname in -lnsl... " >&6; } 37507if test ${ac_cv_lib_nsl_gethostbyname+y} 37508then : 37509 printf %s "(cached) " >&6 37510else $as_nop 37511 ac_check_lib_save_LIBS=$LIBS 37512LIBS="-lnsl $LIBS" 37513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37514/* end confdefs.h. */ 37515 37516/* Override any GCC internal prototype to avoid an error. 37517 Use char because int might match the return type of a GCC 37518 builtin and then its argument prototype would still apply. */ 37519char gethostbyname (); 37520int 37521main (void) 37522{ 37523return gethostbyname (); 37524 ; 37525 return 0; 37526} 37527_ACEOF 37528if ac_fn_c_try_link "$LINENO" 37529then : 37530 ac_cv_lib_nsl_gethostbyname=yes 37531else $as_nop 37532 ac_cv_lib_nsl_gethostbyname=no 37533fi 37534rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37535 conftest$ac_exeext conftest.$ac_ext 37536LIBS=$ac_check_lib_save_LIBS 37537fi 37538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 37539printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } 37540if test "x$ac_cv_lib_nsl_gethostbyname" = xyes 37541then : 37542 LIBS="-lnsl $LIBS" 37543fi 37544 37545fi 37546if test $ac_cv_func_connect = no; then 37547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 37548printf %s "checking for connect in -lsocket... " >&6; } 37549if test ${ac_cv_lib_socket_connect+y} 37550then : 37551 printf %s "(cached) " >&6 37552else $as_nop 37553 ac_check_lib_save_LIBS=$LIBS 37554LIBS="-lsocket $LIBS" 37555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37556/* end confdefs.h. */ 37557 37558/* Override any GCC internal prototype to avoid an error. 37559 Use char because int might match the return type of a GCC 37560 builtin and then its argument prototype would still apply. */ 37561char connect (); 37562int 37563main (void) 37564{ 37565return connect (); 37566 ; 37567 return 0; 37568} 37569_ACEOF 37570if ac_fn_c_try_link "$LINENO" 37571then : 37572 ac_cv_lib_socket_connect=yes 37573else $as_nop 37574 ac_cv_lib_socket_connect=no 37575fi 37576rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37577 conftest$ac_exeext conftest.$ac_ext 37578LIBS=$ac_check_lib_save_LIBS 37579fi 37580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 37581printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } 37582if test "x$ac_cv_lib_socket_connect" = xyes 37583then : 37584 LIBS="-lsocket $LIBS" 37585fi 37586 37587fi 37588if test $ac_cv_func_bind = no; then 37589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5 37590printf %s "checking for gethostbyaddr in -lbind... " >&6; } 37591if test ${ac_cv_lib_bind_gethostbyaddr+y} 37592then : 37593 printf %s "(cached) " >&6 37594else $as_nop 37595 ac_check_lib_save_LIBS=$LIBS 37596LIBS="-lbind $LIBS" 37597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37598/* end confdefs.h. */ 37599 37600/* Override any GCC internal prototype to avoid an error. 37601 Use char because int might match the return type of a GCC 37602 builtin and then its argument prototype would still apply. */ 37603char gethostbyaddr (); 37604int 37605main (void) 37606{ 37607return gethostbyaddr (); 37608 ; 37609 return 0; 37610} 37611_ACEOF 37612if ac_fn_c_try_link "$LINENO" 37613then : 37614 ac_cv_lib_bind_gethostbyaddr=yes 37615else $as_nop 37616 ac_cv_lib_bind_gethostbyaddr=no 37617fi 37618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37619 conftest$ac_exeext conftest.$ac_ext 37620LIBS=$ac_check_lib_save_LIBS 37621fi 37622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5 37623printf "%s\n" "$ac_cv_lib_bind_gethostbyaddr" >&6; } 37624if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes 37625then : 37626 LIBS="-lbind $LIBS" 37627fi 37628 37629fi 37630 37631if test "x$MINGW" != "xyes"; then 37632 ac_fn_c_check_func "$LINENO" "fdopen" "ac_cv_func_fdopen" 37633if test "x$ac_cv_func_fdopen" = xyes 37634then : 37635 printf "%s\n" "#define HAVE_FDOPEN 1" >>confdefs.h 37636 37637fi 37638 37639fi 37640 37641 37642 37643ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 37644if test "x$ac_cv_func_fcntl" = xyes 37645then : 37646 37647printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 37648 37649 37650printf "%s\n" "#define NONBLOCKING_SOCKETS 1" >>confdefs.h 37651 37652else $as_nop 37653 ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl" 37654if test "x$ac_cv_func_ioctl" = xyes 37655then : 37656 37657printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h 37658 37659 37660printf "%s\n" "#define NONBLOCKING_SOCKETS 1" >>confdefs.h 37661 37662fi 37663 37664fi 37665 37666 37667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5 37668printf %s "checking for SIGPIPE... " >&6; } 37669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37670/* end confdefs.h. */ 37671#include <signal.h> 37672int 37673main (void) 37674{ 37675signal (SIGPIPE, SIG_IGN) 37676 ; 37677 return 0; 37678} 37679_ACEOF 37680if ac_fn_c_try_compile "$LINENO" 37681then : 37682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37683printf "%s\n" "yes" >&6; } 37684 37685printf "%s\n" "#define HAVE_SIGPIPE 1" >>confdefs.h 37686 37687else $as_nop 37688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37689printf "%s\n" "no" >&6; } 37690fi 37691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37692 37693 37694 FREECIV_DATADIR="$datadir/freeciv" 37695 FREECIV_DATADIR=`( 37696 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 37697 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 37698 eval echo \""$FREECIV_DATADIR"\" 37699 )` 37700 37701 37702if test x"$MINGW" = xyes ; then 37703 DEFAULT_SAVE_PATH=".;~\\\\\\\\.freeciv\\\\\\\\saves" 37704 if test x$crosser = xyes ; then 37705 FC_CONF_PATH="../etc/freeciv" 37706 DEFAULT_DATA_PATH=".;data;~/.freeciv/$DATASUBDIR;$datadir/freeciv;../share/freeciv" 37707 DEFAULT_SCENARIO_PATH=".;data/scenarios;~/.freeciv/$DATASUBDIR/scenarios;~/.freeciv/scenarios;$datadir/freeciv/scenarios;../share/freeciv/scenarios" 37708 else 37709 FC_CONF_PATH="etc\\\\\\\\freeciv" 37710 DEFAULT_DATA_PATH=".;data;~\\\\\\\\.freeciv\\\\\\\\$DATASUBDIR;$datadir\\\\\\\\freeciv" 37711 DEFAULT_SCENARIO_PATH=".;data\\\\\\\\scenarios;~\\\\\\\\.freeciv\\\\\\\\$DATASUBDIR\\\\\\\\scenarios;~\\\\\\\\.freeciv\\\\\\\\scenarios;$datadir\\\\\\\\freeciv\\\\\\\\scenarios" 37712 fi 37713elif test x"$HAIKU" = xyes ; then 37714 FC_CONF_PATH="$sysconfdir/freeciv" 37715 DEFAULT_DATA_PATH=".:data:~/config/settings/freeciv/$DATASUBDIR:$datadir/freeciv" 37716 DEFAULT_SAVE_PATH=".:~/config/settings/freeciv/saves" 37717 DEFAULT_SCENARIO_PATH=".:data/scenarios:~/config/settings/freeciv/$DATASUBDIR/scenarios:~/config/settings/freeciv/scenarios:$datadir/freeciv/scenarios" 37718else 37719 FC_CONF_PATH="$sysconfdir/freeciv" 37720 DEFAULT_DATA_PATH=".:data:~/.freeciv/$DATASUBDIR:$datadir/freeciv" 37721 DEFAULT_SAVE_PATH=".:~/.freeciv/saves" 37722 DEFAULT_SCENARIO_PATH=".:data/scenarios:~/.freeciv/$DATASUBDIR/scenarios:~/.freeciv/scenarios:$datadir/freeciv/scenarios" 37723fi 37724CPPFLAGS="$CPPFLAGS -DFC_CONF_PATH=\"\\\"$FC_CONF_PATH\\\"\"" 37725CPPFLAGS="$CPPFLAGS -DDEFAULT_DATA_PATH=\"\\\"$DEFAULT_DATA_PATH\\\"\"" 37726CPPFLAGS="$CPPFLAGS -DDEFAULT_SAVE_PATH=\"\\\"$DEFAULT_SAVE_PATH\\\"\"" 37727CPPFLAGS="$CPPFLAGS -DDEFAULT_SCENARIO_PATH=\"\\\"$DEFAULT_SCENARIO_PATH\\\"\"" 37728 37729if test -n "$WITH_EFENCE"; then 37730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5 37731printf %s "checking for malloc in -lefence... " >&6; } 37732if test ${ac_cv_lib_efence_malloc+y} 37733then : 37734 printf %s "(cached) " >&6 37735else $as_nop 37736 ac_check_lib_save_LIBS=$LIBS 37737LIBS="-lefence $LIBS" 37738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37739/* end confdefs.h. */ 37740 37741/* Override any GCC internal prototype to avoid an error. 37742 Use char because int might match the return type of a GCC 37743 builtin and then its argument prototype would still apply. */ 37744char malloc (); 37745int 37746main (void) 37747{ 37748return malloc (); 37749 ; 37750 return 0; 37751} 37752_ACEOF 37753if ac_fn_c_try_link "$LINENO" 37754then : 37755 ac_cv_lib_efence_malloc=yes 37756else $as_nop 37757 ac_cv_lib_efence_malloc=no 37758fi 37759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37760 conftest$ac_exeext conftest.$ac_ext 37761LIBS=$ac_check_lib_save_LIBS 37762fi 37763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5 37764printf "%s\n" "$ac_cv_lib_efence_malloc" >&6; } 37765if test "x$ac_cv_lib_efence_malloc" = xyes 37766then : 37767 37768 if test "x$LIBS" = "x"; then 37769 LIBS = -lefence 37770 else 37771 LIBS="$LIBS -lefence" 37772 fi 37773fi 37774 37775fi 37776 37777# Check whether --enable-sys-lua was given. 37778if test ${enable_sys_lua+y} 37779then : 37780 enableval=$enable_sys_lua; case "${enableval}" in 37781 yes) 37782 sys_lua=true ;; 37783 no) 37784 sys_lua=false ;; 37785 test) 37786 sys_lua=test ;; 37787 *) as_fn_error $? "bad value ${enableval} for --enable-sys-lua" "$LINENO" 5 ;; 37788esac 37789else $as_nop 37790 sys_lua=test 37791fi 37792 37793 37794if test "x$sys_lua" = "xtrue" || test "x$sys_lua" = "xtest" ; then 37795 37796pkg_failed=no 37797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 37798printf %s "checking for LUA... " >&6; } 37799 37800if test -n "$LUA_CFLAGS"; then 37801 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 37802 elif test -n "$PKG_CONFIG"; then 37803 if test -n "$PKG_CONFIG" && \ 37804 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5 37805 ($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5 37806 ac_status=$? 37807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37808 test $ac_status = 0; }; then 37809 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.3" 2>/dev/null` 37810 test "x$?" != "x0" && pkg_failed=yes 37811else 37812 pkg_failed=yes 37813fi 37814 else 37815 pkg_failed=untried 37816fi 37817if test -n "$LUA_LIBS"; then 37818 pkg_cv_LUA_LIBS="$LUA_LIBS" 37819 elif test -n "$PKG_CONFIG"; then 37820 if test -n "$PKG_CONFIG" && \ 37821 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.3\""; } >&5 37822 ($PKG_CONFIG --exists --print-errors "lua5.3") 2>&5 37823 ac_status=$? 37824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37825 test $ac_status = 0; }; then 37826 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.3" 2>/dev/null` 37827 test "x$?" != "x0" && pkg_failed=yes 37828else 37829 pkg_failed=yes 37830fi 37831 else 37832 pkg_failed=untried 37833fi 37834 37835 37836 37837if test $pkg_failed = yes; then 37838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37839printf "%s\n" "no" >&6; } 37840 37841if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 37842 _pkg_short_errors_supported=yes 37843else 37844 _pkg_short_errors_supported=no 37845fi 37846 if test $_pkg_short_errors_supported = yes; then 37847 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.3" 2>&1` 37848 else 37849 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.3" 2>&1` 37850 fi 37851 # Put the nasty error message in config.log where it belongs 37852 echo "$LUA_PKG_ERRORS" >&5 37853 37854 37855pkg_failed=no 37856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 37857printf %s "checking for LUA... " >&6; } 37858 37859if test -n "$LUA_CFLAGS"; then 37860 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 37861 elif test -n "$PKG_CONFIG"; then 37862 if test -n "$PKG_CONFIG" && \ 37863 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5 37864 ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5 37865 ac_status=$? 37866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37867 test $ac_status = 0; }; then 37868 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.3" 2>/dev/null` 37869 test "x$?" != "x0" && pkg_failed=yes 37870else 37871 pkg_failed=yes 37872fi 37873 else 37874 pkg_failed=untried 37875fi 37876if test -n "$LUA_LIBS"; then 37877 pkg_cv_LUA_LIBS="$LUA_LIBS" 37878 elif test -n "$PKG_CONFIG"; then 37879 if test -n "$PKG_CONFIG" && \ 37880 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5 37881 ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5 37882 ac_status=$? 37883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37884 test $ac_status = 0; }; then 37885 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.3" 2>/dev/null` 37886 test "x$?" != "x0" && pkg_failed=yes 37887else 37888 pkg_failed=yes 37889fi 37890 else 37891 pkg_failed=untried 37892fi 37893 37894 37895 37896if test $pkg_failed = yes; then 37897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37898printf "%s\n" "no" >&6; } 37899 37900if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 37901 _pkg_short_errors_supported=yes 37902else 37903 _pkg_short_errors_supported=no 37904fi 37905 if test $_pkg_short_errors_supported = yes; then 37906 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.3" 2>&1` 37907 else 37908 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.3" 2>&1` 37909 fi 37910 # Put the nasty error message in config.log where it belongs 37911 echo "$LUA_PKG_ERRORS" >&5 37912 37913 37914pkg_failed=no 37915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 37916printf %s "checking for LUA... " >&6; } 37917 37918if test -n "$LUA_CFLAGS"; then 37919 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 37920 elif test -n "$PKG_CONFIG"; then 37921 if test -n "$PKG_CONFIG" && \ 37922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.3 lua < 5.4\""; } >&5 37923 ($PKG_CONFIG --exists --print-errors "lua >= 5.3 lua < 5.4") 2>&5 37924 ac_status=$? 37925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37926 test $ac_status = 0; }; then 37927 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.3 lua < 5.4" 2>/dev/null` 37928 test "x$?" != "x0" && pkg_failed=yes 37929else 37930 pkg_failed=yes 37931fi 37932 else 37933 pkg_failed=untried 37934fi 37935if test -n "$LUA_LIBS"; then 37936 pkg_cv_LUA_LIBS="$LUA_LIBS" 37937 elif test -n "$PKG_CONFIG"; then 37938 if test -n "$PKG_CONFIG" && \ 37939 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.3 lua < 5.4\""; } >&5 37940 ($PKG_CONFIG --exists --print-errors "lua >= 5.3 lua < 5.4") 2>&5 37941 ac_status=$? 37942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37943 test $ac_status = 0; }; then 37944 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.3 lua < 5.4" 2>/dev/null` 37945 test "x$?" != "x0" && pkg_failed=yes 37946else 37947 pkg_failed=yes 37948fi 37949 else 37950 pkg_failed=untried 37951fi 37952 37953 37954 37955if test $pkg_failed = yes; then 37956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37957printf "%s\n" "no" >&6; } 37958 37959if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 37960 _pkg_short_errors_supported=yes 37961else 37962 _pkg_short_errors_supported=no 37963fi 37964 if test $_pkg_short_errors_supported = yes; then 37965 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.3 lua < 5.4" 2>&1` 37966 else 37967 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.3 lua < 5.4" 2>&1` 37968 fi 37969 # Put the nasty error message in config.log where it belongs 37970 echo "$LUA_PKG_ERRORS" >&5 37971 37972 if test "x$sys_lua" = "xtrue" ; then 37973 as_fn_error $? "Use of included lua disabled, and no lua found from system" "$LINENO" 5 37974fi 37975feature_syslua=missing 37976sys_lua=false 37977elif test $pkg_failed = untried; then 37978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37979printf "%s\n" "no" >&6; } 37980 if test "x$sys_lua" = "xtrue" ; then 37981 as_fn_error $? "Use of included lua disabled, and no lua found from system" "$LINENO" 5 37982fi 37983feature_syslua=missing 37984sys_lua=false 37985else 37986 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 37987 LUA_LIBS=$pkg_cv_LUA_LIBS 37988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37989printf "%s\n" "yes" >&6; } 37990 sys_lua=true 37991fi 37992elif test $pkg_failed = untried; then 37993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37994printf "%s\n" "no" >&6; } 37995 37996pkg_failed=no 37997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 37998printf %s "checking for LUA... " >&6; } 37999 38000if test -n "$LUA_CFLAGS"; then 38001 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 38002 elif test -n "$PKG_CONFIG"; then 38003 if test -n "$PKG_CONFIG" && \ 38004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.3 lua < 5.4\""; } >&5 38005 ($PKG_CONFIG --exists --print-errors "lua >= 5.3 lua < 5.4") 2>&5 38006 ac_status=$? 38007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38008 test $ac_status = 0; }; then 38009 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.3 lua < 5.4" 2>/dev/null` 38010 test "x$?" != "x0" && pkg_failed=yes 38011else 38012 pkg_failed=yes 38013fi 38014 else 38015 pkg_failed=untried 38016fi 38017if test -n "$LUA_LIBS"; then 38018 pkg_cv_LUA_LIBS="$LUA_LIBS" 38019 elif test -n "$PKG_CONFIG"; then 38020 if test -n "$PKG_CONFIG" && \ 38021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.3 lua < 5.4\""; } >&5 38022 ($PKG_CONFIG --exists --print-errors "lua >= 5.3 lua < 5.4") 2>&5 38023 ac_status=$? 38024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38025 test $ac_status = 0; }; then 38026 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.3 lua < 5.4" 2>/dev/null` 38027 test "x$?" != "x0" && pkg_failed=yes 38028else 38029 pkg_failed=yes 38030fi 38031 else 38032 pkg_failed=untried 38033fi 38034 38035 38036 38037if test $pkg_failed = yes; then 38038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38039printf "%s\n" "no" >&6; } 38040 38041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 38042 _pkg_short_errors_supported=yes 38043else 38044 _pkg_short_errors_supported=no 38045fi 38046 if test $_pkg_short_errors_supported = yes; then 38047 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.3 lua < 5.4" 2>&1` 38048 else 38049 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.3 lua < 5.4" 2>&1` 38050 fi 38051 # Put the nasty error message in config.log where it belongs 38052 echo "$LUA_PKG_ERRORS" >&5 38053 38054 if test "x$sys_lua" = "xtrue" ; then 38055 as_fn_error $? "Use of included lua disabled, and no lua found from system" "$LINENO" 5 38056fi 38057feature_syslua=missing 38058sys_lua=false 38059elif test $pkg_failed = untried; then 38060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38061printf "%s\n" "no" >&6; } 38062 if test "x$sys_lua" = "xtrue" ; then 38063 as_fn_error $? "Use of included lua disabled, and no lua found from system" "$LINENO" 5 38064fi 38065feature_syslua=missing 38066sys_lua=false 38067else 38068 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 38069 LUA_LIBS=$pkg_cv_LUA_LIBS 38070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38071printf "%s\n" "yes" >&6; } 38072 sys_lua=true 38073fi 38074else 38075 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 38076 LUA_LIBS=$pkg_cv_LUA_LIBS 38077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38078printf "%s\n" "yes" >&6; } 38079 sys_lua=true 38080fi 38081elif test $pkg_failed = untried; then 38082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38083printf "%s\n" "no" >&6; } 38084 38085pkg_failed=no 38086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 38087printf %s "checking for LUA... " >&6; } 38088 38089if test -n "$LUA_CFLAGS"; then 38090 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 38091 elif test -n "$PKG_CONFIG"; then 38092 if test -n "$PKG_CONFIG" && \ 38093 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5 38094 ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5 38095 ac_status=$? 38096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38097 test $ac_status = 0; }; then 38098 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.3" 2>/dev/null` 38099 test "x$?" != "x0" && pkg_failed=yes 38100else 38101 pkg_failed=yes 38102fi 38103 else 38104 pkg_failed=untried 38105fi 38106if test -n "$LUA_LIBS"; then 38107 pkg_cv_LUA_LIBS="$LUA_LIBS" 38108 elif test -n "$PKG_CONFIG"; then 38109 if test -n "$PKG_CONFIG" && \ 38110 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.3\""; } >&5 38111 ($PKG_CONFIG --exists --print-errors "lua-5.3") 2>&5 38112 ac_status=$? 38113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38114 test $ac_status = 0; }; then 38115 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.3" 2>/dev/null` 38116 test "x$?" != "x0" && pkg_failed=yes 38117else 38118 pkg_failed=yes 38119fi 38120 else 38121 pkg_failed=untried 38122fi 38123 38124 38125 38126if test $pkg_failed = yes; then 38127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38128printf "%s\n" "no" >&6; } 38129 38130if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 38131 _pkg_short_errors_supported=yes 38132else 38133 _pkg_short_errors_supported=no 38134fi 38135 if test $_pkg_short_errors_supported = yes; then 38136 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.3" 2>&1` 38137 else 38138 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.3" 2>&1` 38139 fi 38140 # Put the nasty error message in config.log where it belongs 38141 echo "$LUA_PKG_ERRORS" >&5 38142 38143 38144pkg_failed=no 38145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 38146printf %s "checking for LUA... " >&6; } 38147 38148if test -n "$LUA_CFLAGS"; then 38149 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 38150 elif test -n "$PKG_CONFIG"; then 38151 if test -n "$PKG_CONFIG" && \ 38152 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.3 lua < 5.4\""; } >&5 38153 ($PKG_CONFIG --exists --print-errors "lua >= 5.3 lua < 5.4") 2>&5 38154 ac_status=$? 38155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38156 test $ac_status = 0; }; then 38157 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.3 lua < 5.4" 2>/dev/null` 38158 test "x$?" != "x0" && pkg_failed=yes 38159else 38160 pkg_failed=yes 38161fi 38162 else 38163 pkg_failed=untried 38164fi 38165if test -n "$LUA_LIBS"; then 38166 pkg_cv_LUA_LIBS="$LUA_LIBS" 38167 elif test -n "$PKG_CONFIG"; then 38168 if test -n "$PKG_CONFIG" && \ 38169 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.3 lua < 5.4\""; } >&5 38170 ($PKG_CONFIG --exists --print-errors "lua >= 5.3 lua < 5.4") 2>&5 38171 ac_status=$? 38172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38173 test $ac_status = 0; }; then 38174 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.3 lua < 5.4" 2>/dev/null` 38175 test "x$?" != "x0" && pkg_failed=yes 38176else 38177 pkg_failed=yes 38178fi 38179 else 38180 pkg_failed=untried 38181fi 38182 38183 38184 38185if test $pkg_failed = yes; then 38186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38187printf "%s\n" "no" >&6; } 38188 38189if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 38190 _pkg_short_errors_supported=yes 38191else 38192 _pkg_short_errors_supported=no 38193fi 38194 if test $_pkg_short_errors_supported = yes; then 38195 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.3 lua < 5.4" 2>&1` 38196 else 38197 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.3 lua < 5.4" 2>&1` 38198 fi 38199 # Put the nasty error message in config.log where it belongs 38200 echo "$LUA_PKG_ERRORS" >&5 38201 38202 if test "x$sys_lua" = "xtrue" ; then 38203 as_fn_error $? "Use of included lua disabled, and no lua found from system" "$LINENO" 5 38204fi 38205feature_syslua=missing 38206sys_lua=false 38207elif test $pkg_failed = untried; then 38208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38209printf "%s\n" "no" >&6; } 38210 if test "x$sys_lua" = "xtrue" ; then 38211 as_fn_error $? "Use of included lua disabled, and no lua found from system" "$LINENO" 5 38212fi 38213feature_syslua=missing 38214sys_lua=false 38215else 38216 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 38217 LUA_LIBS=$pkg_cv_LUA_LIBS 38218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38219printf "%s\n" "yes" >&6; } 38220 sys_lua=true 38221fi 38222elif test $pkg_failed = untried; then 38223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38224printf "%s\n" "no" >&6; } 38225 38226pkg_failed=no 38227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 38228printf %s "checking for LUA... " >&6; } 38229 38230if test -n "$LUA_CFLAGS"; then 38231 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 38232 elif test -n "$PKG_CONFIG"; then 38233 if test -n "$PKG_CONFIG" && \ 38234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.3 lua < 5.4\""; } >&5 38235 ($PKG_CONFIG --exists --print-errors "lua >= 5.3 lua < 5.4") 2>&5 38236 ac_status=$? 38237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38238 test $ac_status = 0; }; then 38239 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.3 lua < 5.4" 2>/dev/null` 38240 test "x$?" != "x0" && pkg_failed=yes 38241else 38242 pkg_failed=yes 38243fi 38244 else 38245 pkg_failed=untried 38246fi 38247if test -n "$LUA_LIBS"; then 38248 pkg_cv_LUA_LIBS="$LUA_LIBS" 38249 elif test -n "$PKG_CONFIG"; then 38250 if test -n "$PKG_CONFIG" && \ 38251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.3 lua < 5.4\""; } >&5 38252 ($PKG_CONFIG --exists --print-errors "lua >= 5.3 lua < 5.4") 2>&5 38253 ac_status=$? 38254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 38255 test $ac_status = 0; }; then 38256 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.3 lua < 5.4" 2>/dev/null` 38257 test "x$?" != "x0" && pkg_failed=yes 38258else 38259 pkg_failed=yes 38260fi 38261 else 38262 pkg_failed=untried 38263fi 38264 38265 38266 38267if test $pkg_failed = yes; then 38268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38269printf "%s\n" "no" >&6; } 38270 38271if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 38272 _pkg_short_errors_supported=yes 38273else 38274 _pkg_short_errors_supported=no 38275fi 38276 if test $_pkg_short_errors_supported = yes; then 38277 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.3 lua < 5.4" 2>&1` 38278 else 38279 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.3 lua < 5.4" 2>&1` 38280 fi 38281 # Put the nasty error message in config.log where it belongs 38282 echo "$LUA_PKG_ERRORS" >&5 38283 38284 if test "x$sys_lua" = "xtrue" ; then 38285 as_fn_error $? "Use of included lua disabled, and no lua found from system" "$LINENO" 5 38286fi 38287feature_syslua=missing 38288sys_lua=false 38289elif test $pkg_failed = untried; then 38290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38291printf "%s\n" "no" >&6; } 38292 if test "x$sys_lua" = "xtrue" ; then 38293 as_fn_error $? "Use of included lua disabled, and no lua found from system" "$LINENO" 5 38294fi 38295feature_syslua=missing 38296sys_lua=false 38297else 38298 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 38299 LUA_LIBS=$pkg_cv_LUA_LIBS 38300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38301printf "%s\n" "yes" >&6; } 38302 sys_lua=true 38303fi 38304else 38305 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 38306 LUA_LIBS=$pkg_cv_LUA_LIBS 38307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38308printf "%s\n" "yes" >&6; } 38309 sys_lua=true 38310fi 38311else 38312 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 38313 LUA_LIBS=$pkg_cv_LUA_LIBS 38314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38315printf "%s\n" "yes" >&6; } 38316 sys_lua=true 38317fi 38318fi 38319 38320if test "x$sys_lua" != "xtrue" ; then 38321 38322 HAVE__EXIT=1; 38323 HAVE_ALIGNED_ALLOC=1; 38324 HAVE_ATOLL=1; 38325 HAVE_CANONICALIZE_FILE_NAME=1; 38326 HAVE_DECL_ECVT=1; 38327 HAVE_DECL_FCVT=1; 38328 HAVE_DECL_GCVT=1; 38329 HAVE_DECL_GETLOADAVG=1; 38330 HAVE_GETSUBOPT=1; 38331 HAVE_GRANTPT=1; 38332 HAVE_INITSTATE=1; 38333 HAVE_DECL_INITSTATE=1; 38334 HAVE_MBTOWC=1; 38335 HAVE_MKDTEMP=1; 38336 HAVE_MKOSTEMP=1; 38337 HAVE_MKOSTEMPS=1; 38338 HAVE_MKSTEMP=1; 38339 HAVE_MKSTEMPS=1; 38340 HAVE_POSIX_MEMALIGN=1; 38341 HAVE_POSIX_OPENPT=1; 38342 HAVE_PTSNAME=1; 38343 HAVE_PTSNAME_R=1; 38344 HAVE_QSORT_R=1; 38345 HAVE_RANDOM=1; 38346 HAVE_RANDOM_H=1; 38347 HAVE_RANDOM_R=1; 38348 HAVE_REALLOCARRAY=1; 38349 HAVE_REALPATH=1; 38350 HAVE_RPMATCH=1; 38351 HAVE_SECURE_GETENV=1; 38352 HAVE_SETENV=1; 38353 HAVE_DECL_SETENV=1; 38354 HAVE_SETSTATE=1; 38355 HAVE_DECL_SETSTATE=1; 38356 HAVE_STRTOD=1; 38357 HAVE_STRTOL=1; 38358 HAVE_STRTOLD=1; 38359 HAVE_STRTOLL=1; 38360 HAVE_STRTOUL=1; 38361 HAVE_STRTOULL=1; 38362 HAVE_STRUCT_RANDOM_DATA=1; 38363 HAVE_SYS_LOADAVG_H=0; 38364 HAVE_UNLOCKPT=1; 38365 HAVE_DECL_UNSETENV=1; 38366 REPLACE_ALIGNED_ALLOC=0; 38367 REPLACE_CALLOC=0; 38368 REPLACE_CANONICALIZE_FILE_NAME=0; 38369 REPLACE_FREE=0; 38370 REPLACE_INITSTATE=0; 38371 REPLACE_MALLOC=0; 38372 REPLACE_MBTOWC=0; 38373 REPLACE_MKSTEMP=0; 38374 REPLACE_POSIX_MEMALIGN=0; 38375 REPLACE_PTSNAME=0; 38376 REPLACE_PTSNAME_R=0; 38377 REPLACE_PUTENV=0; 38378 REPLACE_QSORT_R=0; 38379 REPLACE_RANDOM=0; 38380 REPLACE_RANDOM_R=0; 38381 REPLACE_REALLOC=0; 38382 REPLACE_REALPATH=0; 38383 REPLACE_SETENV=0; 38384 REPLACE_SETSTATE=0; 38385 REPLACE_STRTOD=0; 38386 REPLACE_STRTOL=0; 38387 REPLACE_STRTOLD=0; 38388 REPLACE_STRTOLL=0; 38389 REPLACE_STRTOUL=0; 38390 REPLACE_STRTOULL=0; 38391 REPLACE_UNSETENV=0; 38392 REPLACE_WCTOMB=0; 38393 38394 38395gl_mda_defines=' 38396#if defined _WIN32 && !defined __CYGWIN__ 38397#define access _access 38398#define chdir _chdir 38399#define chmod _chmod 38400#define close _close 38401#define creat _creat 38402#define dup _dup 38403#define dup2 _dup2 38404#define ecvt _ecvt 38405#define execl _execl 38406#define execle _execle 38407#define execlp _execlp 38408#define execv _execv 38409#define execve _execve 38410#define execvp _execvp 38411#define execvpe _execvpe 38412#define fcloseall _fcloseall 38413#define fcvt _fcvt 38414#define fdopen _fdopen 38415#define fileno _fileno 38416#define gcvt _gcvt 38417#define getcwd _getcwd 38418#define getpid _getpid 38419#define getw _getw 38420#define isatty _isatty 38421#define j0 _j0 38422#define j1 _j1 38423#define jn _jn 38424#define lfind _lfind 38425#define lsearch _lsearch 38426#define lseek _lseek 38427#define memccpy _memccpy 38428#define mkdir _mkdir 38429#define mktemp _mktemp 38430#define open _open 38431#define putenv _putenv 38432#define putw _putw 38433#define read _read 38434#define rmdir _rmdir 38435#define strdup _strdup 38436#define swab _swab 38437#define tempnam _tempnam 38438#define tzset _tzset 38439#define umask _umask 38440#define unlink _unlink 38441#define utime _utime 38442#define wcsdup _wcsdup 38443#define write _write 38444#define y0 _y0 38445#define y1 _y1 38446#define yn _yn 38447#endif 38448' 38449 38450 38451 38452 38453 38454 if test $ac_cv_func_mkstemp = yes; then 38455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5 38456printf %s "checking for working mkstemp... " >&6; } 38457if test ${gl_cv_func_working_mkstemp+y} 38458then : 38459 printf %s "(cached) " >&6 38460else $as_nop 38461 38462 mkdir conftest.mkstemp 38463 if test "$cross_compiling" = yes 38464then : 38465 case "$host_os" in 38466 # Guess yes on glibc systems. 38467 *-gnu* | gnu*) gl_cv_func_working_mkstemp="guessing yes" ;; 38468 # Guess yes on musl systems. 38469 *-musl*) gl_cv_func_working_mkstemp="guessing yes" ;; 38470 # Guess no on native Windows. 38471 mingw*) gl_cv_func_working_mkstemp="guessing no" ;; 38472 # If we don't know, obey --enable-cross-guesses. 38473 *) gl_cv_func_working_mkstemp="$gl_cross_guess_normal" ;; 38474 esac 38475 38476else $as_nop 38477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38478/* end confdefs.h. */ 38479$ac_includes_default 38480 38481 38482$gl_mda_defines 38483 38484int 38485main (void) 38486{ 38487int result = 0; 38488 int i; 38489 off_t large = (off_t) 4294967295u; 38490 if (large < 0) 38491 large = 2147483647; 38492 umask (0); 38493 for (i = 0; i < 70; i++) 38494 { 38495 char templ[] = "conftest.mkstemp/coXXXXXX"; 38496 int (*mkstemp_function) (char *) = mkstemp; 38497 int fd = mkstemp_function (templ); 38498 if (fd < 0) 38499 result |= 1; 38500 else 38501 { 38502 struct stat st; 38503 if (lseek (fd, large, SEEK_SET) != large) 38504 result |= 2; 38505 if (fstat (fd, &st) < 0) 38506 result |= 4; 38507 else if (st.st_mode & 0077) 38508 result |= 8; 38509 if (close (fd)) 38510 result |= 16; 38511 } 38512 } 38513 return result; 38514 ; 38515 return 0; 38516} 38517_ACEOF 38518if ac_fn_c_try_run "$LINENO" 38519then : 38520 gl_cv_func_working_mkstemp=yes 38521else $as_nop 38522 gl_cv_func_working_mkstemp=no 38523fi 38524rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38525 conftest.$ac_objext conftest.beam conftest.$ac_ext 38526fi 38527 38528 rm -rf conftest.mkstemp 38529 38530fi 38531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5 38532printf "%s\n" "$gl_cv_func_working_mkstemp" >&6; } 38533 case "$gl_cv_func_working_mkstemp" in 38534 *yes) ;; 38535 *) 38536 REPLACE_MKSTEMP=1 38537 ;; 38538 esac 38539 else 38540 HAVE_MKSTEMP=0 38541 fi 38542 38543 if test "x$gl_cv_func_working_mkstemp" = xyes ; then 38544 38545printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 38546 38547 fi 38548 ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen" 38549if test "x$ac_cv_func_popen" = xyes 38550then : 38551 printf "%s\n" "#define HAVE_POPEN 1" >>confdefs.h 38552 38553fi 38554ac_fn_c_check_func "$LINENO" "pclose" "ac_cv_func_pclose" 38555if test "x$ac_cv_func_pclose" = xyes 38556then : 38557 printf "%s\n" "#define HAVE_PCLOSE 1" >>confdefs.h 38558 38559fi 38560ac_fn_c_check_func "$LINENO" "_longjmp" "ac_cv_func__longjmp" 38561if test "x$ac_cv_func__longjmp" = xyes 38562then : 38563 printf "%s\n" "#define HAVE__LONGJMP 1" >>confdefs.h 38564 38565fi 38566ac_fn_c_check_func "$LINENO" "_setjmp" "ac_cv_func__setjmp" 38567if test "x$ac_cv_func__setjmp" = xyes 38568then : 38569 printf "%s\n" "#define HAVE__SETJMP 1" >>confdefs.h 38570 38571fi 38572ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 38573if test "x$ac_cv_func_gmtime_r" = xyes 38574then : 38575 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 38576 38577fi 38578ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 38579if test "x$ac_cv_func_localtime_r" = xyes 38580then : 38581 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 38582 38583fi 38584 38585 38586 LUA_CFLAGS="-I\$(top_srcdir)/dependencies/lua-5.3/src" 38587 LUA_LIBS="\$(top_builddir)/dependencies/lua-5.3/src/liblua.la" 38588fi 38589 38590 38591 38592 if test "x$sys_lua" = "xtrue"; then 38593 SYS_LUA_TRUE= 38594 SYS_LUA_FALSE='#' 38595else 38596 SYS_LUA_TRUE='#' 38597 SYS_LUA_FALSE= 38598fi 38599 38600 38601if test x$enable_fcdb = xyes ; then 38602 LUASQL_CFLAGS="-I\$(top_srcdir)/dependencies/luasql/src" 38603 LUASQL_LIBS="\$(top_builddir)/dependencies/luasql/src/libluasql_base.la" 38604 if test x$fcdb_mysql = xyes ; then 38605 LUASQL_LIBS="$LUASQL_LIBS \$(top_builddir)/dependencies/luasql/src/libluasql_mysql.la" 38606 fi 38607 if test x$fcdb_postgres = xyes ; then 38608 LUASQL_LIBS="$LUASQL_LIBS \$(top_builddir)/dependencies/luasql/src/libluasql_postgres.la" 38609 fi 38610 if test x$fcdb_sqlite3 = xyes ; then 38611 LUASQL_LIBS="$LUASQL_LIBS \$(top_builddir)/dependencies/luasql/src/libluasql_sqlite3.la" 38612 fi 38613 LUASQL_AS_DEPENDENCY="$LUASQL_LIBS" 38614 LUASQL_LIBS="$LUASQL_LIBS $FCDB_MYSQL_LIBS $FCDB_POSTGRES_LIBS $FCDB_SQLITE3_LIBS" 38615 38616 38617 38618 38619fi 38620 38621# Check whether --enable-sys-tolua-cmd was given. 38622if test ${enable_sys_tolua_cmd+y} 38623then : 38624 enableval=$enable_sys_tolua_cmd; case "${enableval}" in 38625 yes) 38626 sys_tolua_cmd=true ;; 38627 no) 38628 if test "x$cross_compiling" = "xyes" ; then 38629 as_fn_error $? "Must use external build system tolua command when cross-compiling" "$LINENO" 5 38630 fi 38631 sys_tolua_cmd=false ;; 38632 *) 38633 sys_tolua_cmd=${enableval} ;; 38634esac 38635else $as_nop 38636 38637if test "x$cross_compiling" = "xyes" ; then 38638 sys_tolua_cmd=true 38639else 38640 sys_tolua_cmd=test 38641fi 38642fi 38643 38644 38645if test "x$sys_tolua_cmd" = "xtrue" || test "x$sys_tolua_cmd" = "xtest" ; then 38646 # Extract the first word of "tolua", so it can be a program name with args. 38647set dummy tolua; ac_word=$2 38648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38649printf %s "checking for $ac_word... " >&6; } 38650if test ${ac_cv_path_TOLUA+y} 38651then : 38652 printf %s "(cached) " >&6 38653else $as_nop 38654 case $TOLUA in 38655 [\\/]* | ?:[\\/]*) 38656 ac_cv_path_TOLUA="$TOLUA" # Let the user override the test with a path. 38657 ;; 38658 *) 38659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38660for as_dir in $PATH 38661do 38662 IFS=$as_save_IFS 38663 case $as_dir in #((( 38664 '') as_dir=./ ;; 38665 */) ;; 38666 *) as_dir=$as_dir/ ;; 38667 esac 38668 for ac_exec_ext in '' $ac_executable_extensions; do 38669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 38670 ac_cv_path_TOLUA="$as_dir$ac_word$ac_exec_ext" 38671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 38672 break 2 38673 fi 38674done 38675 done 38676IFS=$as_save_IFS 38677 38678 test -z "$ac_cv_path_TOLUA" && ac_cv_path_TOLUA="notfound" 38679 ;; 38680esac 38681fi 38682TOLUA=$ac_cv_path_TOLUA 38683if test -n "$TOLUA"; then 38684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TOLUA" >&5 38685printf "%s\n" "$TOLUA" >&6; } 38686else 38687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38688printf "%s\n" "no" >&6; } 38689fi 38690 38691 38692 if test "x$TOLUA" = "xnotfound" ; then 38693 if test "x$sys_tolua_cmd" = "xtest" ; then 38694 TOLUA="\$(top_builddir)/dependencies/tolua-5.2/src/bin/tolua$EXEEXT" 38695 sys_tolua_cmd=false 38696 else 38697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: tolua command not found" >&5 38698printf "%s\n" "$as_me: WARNING: tolua command not found" >&2;} 38699 TOLUA="unavailable" 38700 fi 38701 feature_systolua_cmd=missing 38702 else 38703 sys_tolua_cmd=true 38704 fi 38705elif test "x$sys_tolua_cmd" != "xfalse" ; then 38706 TOLUA=$sys_tolua_cmd 38707else 38708 TOLUA="\$(top_builddir)/dependencies/tolua-5.2/src/bin/tolua$EXEEXT" 38709fi 38710 38711 38712 38713TOLUA_CFLAGS="-I\$(top_srcdir)/dependencies/tolua-5.2/include" 38714TOLUA_LIBS="\$(top_builddir)/dependencies/tolua-5.2/src/lib/libtolua.la" 38715 38716 38717 38718 if test "x$sys_tolua_cmd" != "xfalse"; then 38719 SYS_TOLUA_CMD_TRUE= 38720 SYS_TOLUA_CMD_FALSE='#' 38721else 38722 SYS_TOLUA_CMD_TRUE='#' 38723 SYS_TOLUA_CMD_FALSE= 38724fi 38725 38726 38727ac_config_commands="$ac_config_commands fc_default-5" 38728 38729 38730CFLAGS="$EXTRA_DEBUG_CFLAGS $CFLAGS" 38731CXXFLAGS="$EXTRA_DEBUG_CXXFLAGS $CXXFLAGS" 38732LDFLAGS="$EXTRA_DEBUG_LDFLAGS $LDFLAGS" 38733 38734 38735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking needs to return value after exit()" >&5 38736printf %s "checking needs to return value after exit()... " >&6; } 38737if test ${ac_cv_value_after_exit+y} 38738then : 38739 printf %s "(cached) " >&6 38740else $as_nop 38741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38742/* end confdefs.h. */ 38743#include <stdlib.h> 38744int func(void); 38745int func(void) 38746{ 38747 exit(1); 38748} 38749int 38750main (void) 38751{ 38752 38753 ; 38754 return 0; 38755} 38756_ACEOF 38757if ac_fn_c_try_compile "$LINENO" 38758then : 38759 ac_cv_value_after_exit=no 38760else $as_nop 38761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38762/* end confdefs.h. */ 38763 38764#include <stdlib.h> 38765int func(void); 38766int func(void) 38767{ 38768 exit(1); 38769 return 0; 38770} 38771int 38772main (void) 38773{ 38774 38775 ; 38776 return 0; 38777} 38778_ACEOF 38779if ac_fn_c_try_compile "$LINENO" 38780then : 38781 ac_cv_value_after_exit=yes 38782else $as_nop 38783 ac_cv_value_after_exit=unknown 38784fi 38785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38786fi 38787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38788fi 38789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_value_after_exit" >&5 38790printf "%s\n" "$ac_cv_value_after_exit" >&6; } 38791 if test "x${ac_cv_value_after_exit}" = "xyes" ; then 38792 38793printf "%s\n" "#define FREECIV_RETURN_VALUE_AFTER_EXIT 1" >>confdefs.h 38794 38795 fi 38796 38797 38798if test "x$gui_xaw" = "xyes" ; then 38799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 'const' for XawListChange()" >&5 38800printf %s "checking 'const' for XawListChange()... " >&6; } 38801if test ${ac_cv_const_for_xaw_list_change+y} 38802then : 38803 printf %s "(cached) " >&6 38804else $as_nop 38805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38806/* end confdefs.h. */ 38807#include <X11/Xaw/List.h> 38808 38809int 38810main (void) 38811{ 38812char *test_strings[2]; 38813XawListChange(NULL, test_strings, 0, 0, False); 38814 ; 38815 return 0; 38816} 38817_ACEOF 38818if ac_fn_c_try_compile "$LINENO" 38819then : 38820 ac_cv_const_for_xaw_list_change=no 38821else $as_nop 38822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38823/* end confdefs.h. */ 38824#include <X11/Xaw/List.h> 38825 38826int 38827main (void) 38828{ 38829const char *test_strings[2]; 38830XawListChange(NULL, test_strings, 0, 0, False); 38831 ; 38832 return 0; 38833} 38834_ACEOF 38835if ac_fn_c_try_compile "$LINENO" 38836then : 38837 ac_cv_const_for_xaw_list_change=yes 38838else $as_nop 38839 ac_cv_const_for_xaw_list_change=unknown 38840fi 38841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38842fi 38843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38844fi 38845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_const_for_xaw_list_change" >&5 38846printf "%s\n" "$ac_cv_const_for_xaw_list_change" >&6; } 38847 if test "x${ac_cv_const_for_xaw_list_change}" = "xyes" ; then 38848 38849printf "%s\n" "#define CONST_FOR_XAW_LIST_CHANGE const" >>confdefs.h 38850 38851 else 38852 38853printf "%s\n" "#define CONST_FOR_XAW_LIST_CHANGE /**/" >>confdefs.h 38854 38855 fi 38856fi 38857 38858CONFIGURE_DEPENDENCIES="$CONFIGURE_DEPENDENCIES \$(top_srcdir)/fc_version" 38859 38860 38861FC_STORE_CPPFLAGS="$(echo $CPPFLAGS | $SED 's/\\/\\\\/g' | $SED 's/\"/\\\"/g')" 38862 38863printf "%s\n" "#define FC_STORE_CPPFLAGS \"$FC_STORE_CPPFLAGS\"" >>confdefs.h 38864 38865FC_STORE_CFLAGS="$(echo $CFLAGS | $SED 's/\\/\\\\/g' | $SED 's/\"/\\\"/g')" 38866 38867printf "%s\n" "#define FC_STORE_CFLAGS \"$FC_STORE_CFLAGS\"" >>confdefs.h 38868 38869FC_STORE_CXXFLAGS="$(echo $CXXFLAGS | $SED 's/\\/\\\\/g' | $SED 's/\"/\\\"/g')" 38870 38871printf "%s\n" "#define FC_STORE_CXXFLAGS \"$FC_STORE_CXXFLAGS\"" >>confdefs.h 38872 38873 38874if test "x$AR_FLAGS" = "xcru" ; then 38875 AR_FLAGS="cr" 38876fi 38877 38878ac_config_files="$ac_config_files Makefile data/Makefile data/hex2t/Makefile data/hexemplio/Makefile data/amplio2/Makefile data/buildings/Makefile data/flags/Makefile data/misc/Makefile data/cimpletoon/Makefile data/trident/Makefile data/isophex/Makefile data/isotrident/Makefile data/stdsounds/Makefile data/stdmusic/Makefile data/override/Makefile data/default/Makefile data/classic/Makefile data/multiplayer/Makefile data/experimental/Makefile data/civ2civ3/Makefile data/civ1/Makefile data/civ2/Makefile data/sandbox/Makefile data/scenarios/Makefile data/nation/Makefile data/themes/Makefile data/themes/gui-gtk-2.0/Makefile data/themes/gui-gtk-2.0/Freeciv/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Arrows/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Buttons/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Check-Radio/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Combo/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Frame-Gap/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Handles/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Lines/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ListHeaders/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Menu-Menubar/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Others/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Panel/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ProgressBar/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Range/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Scrollbars/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Shadows/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Spin/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Tabs/Makefile data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Toolbar/Makefile data/themes/gui-gtk-3.0/Makefile data/themes/gui-gtk-3.0/Freeciv/Makefile data/themes/gui-gtk-3.0/Freeciv/gtk-3.0/Makefile data/themes/gui-gtk-3.22/Makefile data/themes/gui-gtk-3.22/Freeciv/Makefile data/themes/gui-gtk-3.22/Freeciv/gtk-3.0/Makefile data/themes/gui-qt/Makefile data/themes/gui-qt/icons/Makefile data/themes/gui-qt/Classic/Makefile data/themes/gui-qt/Necrophos/Makefile data/themes/gui-qt/NightStalker/Makefile data/themes/gui-qt/System/Makefile data/themes/gui-sdl/Makefile data/themes/gui-sdl/human/Makefile data/themes/gui-sdl2/Makefile data/themes/gui-sdl2/human/Makefile data/wonders/Makefile data/icons/Makefile utility/Makefile dependencies/Makefile dependencies/lua-5.3/Makefile dependencies/lua-5.3/src/Makefile dependencies/tolua-5.2/Makefile dependencies/tolua-5.2/src/Makefile dependencies/tolua-5.2/src/lib/Makefile dependencies/tolua-5.2/src/bin/Makefile dependencies/luasql/Makefile dependencies/luasql/src/Makefile dependencies/cvercmp/Makefile common/Makefile common/aicore/Makefile common/scriptcore/Makefile ai/Makefile ai/default/Makefile ai/classic/Makefile ai/stub/Makefile ai/threaded/Makefile tests/Makefile win32/Makefile client/Makefile client/agents/Makefile client/include/Makefile client/gui-sdl/Makefile client/gui-sdl2/Makefile client/gui-gtk-2.0/Makefile client/gui-gtk-3.0/Makefile client/gui-gtk-3.22/Makefile client/gui-xaw/Makefile client/gui-qt/Makefile client/gui-stub/Makefile client/luascript/Makefile server/Makefile server/advisors/Makefile server/generator/Makefile server/scripting/Makefile tools/Makefile tools/ruledit/Makefile gen_headers/Makefile translations/Makefile translations/freeciv/Makefile.in translations/nations/Makefile.in translations/ruledit/Makefile.in doc/Makefile doc/man/Makefile doc/man/freeciv.6 doc/man/freeciv-client.6 doc/man/freeciv-server.6 doc/man/freeciv-manual.6 doc/man/freeciv-modpack.6 doc/man/freeciv-ruledit.6 doc/ca/Makefile doc/de/Makefile doc/fr/Makefile doc/it/Makefile doc/ja/Makefile doc/nl/Makefile doc/sv/Makefile bootstrap/Makefile data/Freeciv lua/Makefile client/org.freeciv.gtk3.desktop:bootstrap/org.freeciv.gtk3.desktop.in client/org.freeciv.gtk322.desktop:bootstrap/org.freeciv.gtk322.desktop.in client/org.freeciv.gtk2.desktop:bootstrap/org.freeciv.gtk2.desktop.in client/org.freeciv.sdl.desktop:bootstrap/org.freeciv.sdl.desktop.in client/org.freeciv.sdl2.desktop:bootstrap/org.freeciv.sdl2.desktop.in client/org.freeciv.qt.desktop:bootstrap/org.freeciv.qt.desktop.in server/org.freeciv.server.desktop:bootstrap/org.freeciv.server.desktop.in tools/org.freeciv.mp.gtk3.desktop:bootstrap/org.freeciv.mp.gtk3.desktop.in tools/org.freeciv.mp.gtk2.desktop:bootstrap/org.freeciv.mp.gtk2.desktop.in tools/org.freeciv.mp.qt.desktop:bootstrap/org.freeciv.mp.qt.desktop.in tools/ruledit/org.freeciv.ruledit.desktop:bootstrap/org.freeciv.ruledit.desktop.in client/freeciv-gtk2.appdata.xml:bootstrap/freeciv-gtk2.appdata.xml.in client/freeciv-gtk3.appdata.xml:bootstrap/freeciv-gtk3.appdata.xml.in client/freeciv-gtk3.22.appdata.xml:bootstrap/freeciv-gtk3.22.appdata.xml.in client/freeciv-sdl.appdata.xml:bootstrap/freeciv-sdl.appdata.xml.in client/freeciv-sdl2.appdata.xml:bootstrap/freeciv-sdl2.appdata.xml.in client/freeciv-qt.appdata.xml:bootstrap/freeciv-qt.appdata.xml.in server/freeciv-server.appdata.xml:bootstrap/freeciv-server.appdata.xml.in tools/freeciv-mp-gtk2.appdata.xml:bootstrap/freeciv-mp-gtk2.appdata.xml.in tools/freeciv-mp-gtk3.appdata.xml:bootstrap/freeciv-mp-gtk3.appdata.xml.in tools/freeciv-mp-qt.appdata.xml:bootstrap/freeciv-mp-qt.appdata.xml.in tools/ruledit/freeciv-ruledit.appdata.xml:bootstrap/freeciv-ruledit.appdata.xml.in" 38879 38880ac_config_files="$ac_config_files fcgui:bootstrap/fcgui.in" 38881 38882ac_config_files="$ac_config_files fcser:bootstrap/fcser.in" 38883 38884if test "x$ruledit" = "xyes" ; then 38885 ac_config_files="$ac_config_files fcruledit:bootstrap/fcruledit.in" 38886 38887fi 38888 38889cat >confcache <<\_ACEOF 38890# This file is a shell script that caches the results of configure 38891# tests run on this system so they can be shared between configure 38892# scripts and configure runs, see configure's option --config-cache. 38893# It is not useful on other systems. If it contains results you don't 38894# want to keep, you may remove or edit it. 38895# 38896# config.status only pays attention to the cache file if you give it 38897# the --recheck option to rerun configure. 38898# 38899# `ac_cv_env_foo' variables (set or unset) will be overridden when 38900# loading this file, other *unset* `ac_cv_foo' will be assigned the 38901# following values. 38902 38903_ACEOF 38904 38905# The following way of writing the cache mishandles newlines in values, 38906# but we know of no workaround that is simple, portable, and efficient. 38907# So, we kill variables containing newlines. 38908# Ultrix sh set writes to stderr and can't be redirected directly, 38909# and sets the high bit in the cache file unless we assign to the vars. 38910( 38911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 38912 eval ac_val=\$$ac_var 38913 case $ac_val in #( 38914 *${as_nl}*) 38915 case $ac_var in #( 38916 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 38917printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 38918 esac 38919 case $ac_var in #( 38920 _ | IFS | as_nl) ;; #( 38921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 38922 *) { eval $ac_var=; unset $ac_var;} ;; 38923 esac ;; 38924 esac 38925 done 38926 38927 (set) 2>&1 | 38928 case $as_nl`(ac_space=' '; set) 2>&1` in #( 38929 *${as_nl}ac_space=\ *) 38930 # `set' does not quote correctly, so add quotes: double-quote 38931 # substitution turns \\\\ into \\, and sed turns \\ into \. 38932 sed -n \ 38933 "s/'/'\\\\''/g; 38934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 38935 ;; #( 38936 *) 38937 # `set' quotes correctly as required by POSIX, so do not add quotes. 38938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 38939 ;; 38940 esac | 38941 sort 38942) | 38943 sed ' 38944 /^ac_cv_env_/b end 38945 t clear 38946 :clear 38947 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 38948 t end 38949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 38950 :end' >>confcache 38951if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 38952 if test -w "$cache_file"; then 38953 if test "x$cache_file" != "x/dev/null"; then 38954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 38955printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 38956 if test ! -f "$cache_file" || test -h "$cache_file"; then 38957 cat confcache >"$cache_file" 38958 else 38959 case $cache_file in #( 38960 */* | ?:*) 38961 mv -f confcache "$cache_file"$$ && 38962 mv -f "$cache_file"$$ "$cache_file" ;; #( 38963 *) 38964 mv -f confcache "$cache_file" ;; 38965 esac 38966 fi 38967 fi 38968 else 38969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 38970printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 38971 fi 38972fi 38973rm -f confcache 38974 38975test "x$prefix" = xNONE && prefix=$ac_default_prefix 38976# Let make expand exec_prefix. 38977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 38978 38979DEFS=-DHAVE_CONFIG_H 38980 38981ac_libobjs= 38982ac_ltlibobjs= 38983U= 38984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 38985 # 1. Remove the extension, and $U if already installed. 38986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 38987 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 38988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 38989 # will be set to the directory where LIBOBJS objects are built. 38990 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 38991 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 38992done 38993LIBOBJS=$ac_libobjs 38994 38995LTLIBOBJS=$ac_ltlibobjs 38996 38997 38998 38999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 39000printf %s "checking that generated files are newer than configure... " >&6; } 39001 if test -n "$am_sleep_pid"; then 39002 # Hide warnings about reused PIDs. 39003 wait $am_sleep_pid 2>/dev/null 39004 fi 39005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 39006printf "%s\n" "done" >&6; } 39007if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 39008 as_fn_error $? "conditional \"AMDEP\" was never defined. 39009Usually this means the macro was only invoked conditionally." "$LINENO" 5 39010fi 39011if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 39012 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 39013Usually this means the macro was only invoked conditionally." "$LINENO" 5 39014fi 39015 if test -n "$EXEEXT"; then 39016 am__EXEEXT_TRUE= 39017 am__EXEEXT_FALSE='#' 39018else 39019 am__EXEEXT_TRUE='#' 39020 am__EXEEXT_FALSE= 39021fi 39022 39023if test -z "${FCDB_MYSQL_TRUE}" && test -z "${FCDB_MYSQL_FALSE}"; then 39024 as_fn_error $? "conditional \"FCDB_MYSQL\" was never defined. 39025Usually this means the macro was only invoked conditionally." "$LINENO" 5 39026fi 39027if test -z "${FCDB_POSTGRES_TRUE}" && test -z "${FCDB_POSTGRES_FALSE}"; then 39028 as_fn_error $? "conditional \"FCDB_POSTGRES\" was never defined. 39029Usually this means the macro was only invoked conditionally." "$LINENO" 5 39030fi 39031if test -z "${FCDB_SQLITE3_TRUE}" && test -z "${FCDB_SQLITE3_FALSE}"; then 39032 as_fn_error $? "conditional \"FCDB_SQLITE3\" was never defined. 39033Usually this means the macro was only invoked conditionally." "$LINENO" 5 39034fi 39035if test -z "${FCDB_DB_TRUE}" && test -z "${FCDB_DB_FALSE}"; then 39036 as_fn_error $? "conditional \"FCDB_DB\" was never defined. 39037Usually this means the macro was only invoked conditionally." "$LINENO" 5 39038fi 39039if test -z "${SERVER_TRUE}" && test -z "${SERVER_FALSE}"; then 39040 as_fn_error $? "conditional \"SERVER\" was never defined. 39041Usually this means the macro was only invoked conditionally." "$LINENO" 5 39042fi 39043if test -z "${FREECIV_WEB_TRUE}" && test -z "${FREECIV_WEB_FALSE}"; then 39044 as_fn_error $? "conditional \"FREECIV_WEB\" was never defined. 39045Usually this means the macro was only invoked conditionally." "$LINENO" 5 39046fi 39047if test -z "${GITREV_TRUE}" && test -z "${GITREV_FALSE}"; then 39048 as_fn_error $? "conditional \"GITREV\" was never defined. 39049Usually this means the macro was only invoked conditionally." "$LINENO" 5 39050fi 39051if test -z "${MAKE_DATA_TRUE}" && test -z "${MAKE_DATA_FALSE}"; then 39052 as_fn_error $? "conditional \"MAKE_DATA\" was never defined. 39053Usually this means the macro was only invoked conditionally." "$LINENO" 5 39054fi 39055if test -z "${MAKE_CLIENT_INCLUDE_TRUE}" && test -z "${MAKE_CLIENT_INCLUDE_FALSE}"; then 39056 as_fn_error $? "conditional \"MAKE_CLIENT_INCLUDE\" was never defined. 39057Usually this means the macro was only invoked conditionally." "$LINENO" 5 39058fi 39059if test -z "${AI_MODULES_TRUE}" && test -z "${AI_MODULES_FALSE}"; then 39060 as_fn_error $? "conditional \"AI_MODULES\" was never defined. 39061Usually this means the macro was only invoked conditionally." "$LINENO" 5 39062fi 39063if test -z "${EXP_AI_MODULES_TRUE}" && test -z "${EXP_AI_MODULES_FALSE}"; then 39064 as_fn_error $? "conditional \"EXP_AI_MODULES\" was never defined. 39065Usually this means the macro was only invoked conditionally." "$LINENO" 5 39066fi 39067if test -z "${AI_MOD_STATIC_CLASSIC_TRUE}" && test -z "${AI_MOD_STATIC_CLASSIC_FALSE}"; then 39068 as_fn_error $? "conditional \"AI_MOD_STATIC_CLASSIC\" was never defined. 39069Usually this means the macro was only invoked conditionally." "$LINENO" 5 39070fi 39071if test -z "${AI_MOD_STATIC_THREADED_TRUE}" && test -z "${AI_MOD_STATIC_THREADED_FALSE}"; then 39072 as_fn_error $? "conditional \"AI_MOD_STATIC_THREADED\" was never defined. 39073Usually this means the macro was only invoked conditionally." "$LINENO" 5 39074fi 39075if test -z "${AI_MOD_STATIC_STUB_TRUE}" && test -z "${AI_MOD_STATIC_STUB_FALSE}"; then 39076 as_fn_error $? "conditional \"AI_MOD_STATIC_STUB\" was never defined. 39077Usually this means the macro was only invoked conditionally." "$LINENO" 5 39078fi 39079if test -z "${AI_MOD_DEFAULT_NEEDED_TRUE}" && test -z "${AI_MOD_DEFAULT_NEEDED_FALSE}"; then 39080 as_fn_error $? "conditional \"AI_MOD_DEFAULT_NEEDED\" was never defined. 39081Usually this means the macro was only invoked conditionally." "$LINENO" 5 39082fi 39083if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 39084 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 39085Usually this means the macro was only invoked conditionally." "$LINENO" 5 39086fi 39087if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then 39088 as_fn_error $? "conditional \"CLIENT\" was never defined. 39089Usually this means the macro was only invoked conditionally." "$LINENO" 5 39090fi 39091if test -z "${FCMANUAL_TRUE}" && test -z "${FCMANUAL_FALSE}"; then 39092 as_fn_error $? "conditional \"FCMANUAL\" was never defined. 39093Usually this means the macro was only invoked conditionally." "$LINENO" 5 39094fi 39095if test -z "${MODINST_TRUE}" && test -z "${MODINST_FALSE}"; then 39096 as_fn_error $? "conditional \"MODINST\" was never defined. 39097Usually this means the macro was only invoked conditionally." "$LINENO" 5 39098fi 39099if test -z "${MODINST_GTK3_TRUE}" && test -z "${MODINST_GTK3_FALSE}"; then 39100 as_fn_error $? "conditional \"MODINST_GTK3\" was never defined. 39101Usually this means the macro was only invoked conditionally." "$LINENO" 5 39102fi 39103if test -z "${MODINST_GTK2_TRUE}" && test -z "${MODINST_GTK2_FALSE}"; then 39104 as_fn_error $? "conditional \"MODINST_GTK2\" was never defined. 39105Usually this means the macro was only invoked conditionally." "$LINENO" 5 39106fi 39107if test -z "${MODINST_QT_TRUE}" && test -z "${MODINST_QT_FALSE}"; then 39108 as_fn_error $? "conditional \"MODINST_QT\" was never defined. 39109Usually this means the macro was only invoked conditionally." "$LINENO" 5 39110fi 39111if test -z "${MODINST_CLI_TRUE}" && test -z "${MODINST_CLI_FALSE}"; then 39112 as_fn_error $? "conditional \"MODINST_CLI\" was never defined. 39113Usually this means the macro was only invoked conditionally." "$LINENO" 5 39114fi 39115if test -z "${RULEDIT_TRUE}" && test -z "${RULEDIT_FALSE}"; then 39116 as_fn_error $? "conditional \"RULEDIT\" was never defined. 39117Usually this means the macro was only invoked conditionally." "$LINENO" 5 39118fi 39119if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then 39120 as_fn_error $? "conditional \"AUDIO_SDL\" was never defined. 39121Usually this means the macro was only invoked conditionally." "$LINENO" 5 39122fi 39123if test -z "${CLIENT_GUI_SDL_TRUE}" && test -z "${CLIENT_GUI_SDL_FALSE}"; then 39124 as_fn_error $? "conditional \"CLIENT_GUI_SDL\" was never defined. 39125Usually this means the macro was only invoked conditionally." "$LINENO" 5 39126fi 39127if test -z "${CLIENT_GUI_SDL2_TRUE}" && test -z "${CLIENT_GUI_SDL2_FALSE}"; then 39128 as_fn_error $? "conditional \"CLIENT_GUI_SDL2\" was never defined. 39129Usually this means the macro was only invoked conditionally." "$LINENO" 5 39130fi 39131if test -z "${CLIENT_GUI_GTK_2_0_TRUE}" && test -z "${CLIENT_GUI_GTK_2_0_FALSE}"; then 39132 as_fn_error $? "conditional \"CLIENT_GUI_GTK_2_0\" was never defined. 39133Usually this means the macro was only invoked conditionally." "$LINENO" 5 39134fi 39135if test -z "${CLIENT_GUI_GTK_3_22_TRUE}" && test -z "${CLIENT_GUI_GTK_3_22_FALSE}"; then 39136 as_fn_error $? "conditional \"CLIENT_GUI_GTK_3_22\" was never defined. 39137Usually this means the macro was only invoked conditionally." "$LINENO" 5 39138fi 39139if test -z "${CLIENT_GUI_GTK_3_0_TRUE}" && test -z "${CLIENT_GUI_GTK_3_0_FALSE}"; then 39140 as_fn_error $? "conditional \"CLIENT_GUI_GTK_3_0\" was never defined. 39141Usually this means the macro was only invoked conditionally." "$LINENO" 5 39142fi 39143if test -z "${CLIENT_GUI_XAW_TRUE}" && test -z "${CLIENT_GUI_XAW_FALSE}"; then 39144 as_fn_error $? "conditional \"CLIENT_GUI_XAW\" was never defined. 39145Usually this means the macro was only invoked conditionally." "$LINENO" 5 39146fi 39147if test -z "${CLIENT_GUI_QT_TRUE}" && test -z "${CLIENT_GUI_QT_FALSE}"; then 39148 as_fn_error $? "conditional \"CLIENT_GUI_QT\" was never defined. 39149Usually this means the macro was only invoked conditionally." "$LINENO" 5 39150fi 39151if test -z "${CLIENT_GUI_STUB_TRUE}" && test -z "${CLIENT_GUI_STUB_FALSE}"; then 39152 as_fn_error $? "conditional \"CLIENT_GUI_STUB\" was never defined. 39153Usually this means the macro was only invoked conditionally." "$LINENO" 5 39154fi 39155if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 39156 as_fn_error $? "conditional \"MINGW\" was never defined. 39157Usually this means the macro was only invoked conditionally." "$LINENO" 5 39158fi 39159if test -z "${SYS_LUA_TRUE}" && test -z "${SYS_LUA_FALSE}"; then 39160 as_fn_error $? "conditional \"SYS_LUA\" was never defined. 39161Usually this means the macro was only invoked conditionally." "$LINENO" 5 39162fi 39163if test -z "${SYS_TOLUA_CMD_TRUE}" && test -z "${SYS_TOLUA_CMD_FALSE}"; then 39164 as_fn_error $? "conditional \"SYS_TOLUA_CMD\" was never defined. 39165Usually this means the macro was only invoked conditionally." "$LINENO" 5 39166fi 39167 39168: "${CONFIG_STATUS=./config.status}" 39169ac_write_fail=0 39170ac_clean_files_save=$ac_clean_files 39171ac_clean_files="$ac_clean_files $CONFIG_STATUS" 39172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 39173printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 39174as_write_fail=0 39175cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 39176#! $SHELL 39177# Generated by $as_me. 39178# Run this file to recreate the current configuration. 39179# Compiler output produced by configure, useful for debugging 39180# configure, is in config.log if it exists. 39181 39182debug=false 39183ac_cs_recheck=false 39184ac_cs_silent=false 39185 39186SHELL=\${CONFIG_SHELL-$SHELL} 39187export SHELL 39188_ASEOF 39189cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 39190## -------------------- ## 39191## M4sh Initialization. ## 39192## -------------------- ## 39193 39194# Be more Bourne compatible 39195DUALCASE=1; export DUALCASE # for MKS sh 39196as_nop=: 39197if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 39198then : 39199 emulate sh 39200 NULLCMD=: 39201 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 39202 # is contrary to our usage. Disable this feature. 39203 alias -g '${1+"$@"}'='"$@"' 39204 setopt NO_GLOB_SUBST 39205else $as_nop 39206 case `(set -o) 2>/dev/null` in #( 39207 *posix*) : 39208 set -o posix ;; #( 39209 *) : 39210 ;; 39211esac 39212fi 39213 39214 39215 39216# Reset variables that may have inherited troublesome values from 39217# the environment. 39218 39219# IFS needs to be set, to space, tab, and newline, in precisely that order. 39220# (If _AS_PATH_WALK were called with IFS unset, it would have the 39221# side effect of setting IFS to empty, thus disabling word splitting.) 39222# Quoting is to prevent editors from complaining about space-tab. 39223as_nl=' 39224' 39225export as_nl 39226IFS=" "" $as_nl" 39227 39228PS1='$ ' 39229PS2='> ' 39230PS4='+ ' 39231 39232# Ensure predictable behavior from utilities with locale-dependent output. 39233LC_ALL=C 39234export LC_ALL 39235LANGUAGE=C 39236export LANGUAGE 39237 39238# We cannot yet rely on "unset" to work, but we need these variables 39239# to be unset--not just set to an empty or harmless value--now, to 39240# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 39241# also avoids known problems related to "unset" and subshell syntax 39242# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 39243for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 39244do eval test \${$as_var+y} \ 39245 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 39246done 39247 39248# Ensure that fds 0, 1, and 2 are open. 39249if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 39250if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 39251if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 39252 39253# The user is always right. 39254if ${PATH_SEPARATOR+false} :; then 39255 PATH_SEPARATOR=: 39256 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 39257 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 39258 PATH_SEPARATOR=';' 39259 } 39260fi 39261 39262 39263# Find who we are. Look in the path if we contain no directory separator. 39264as_myself= 39265case $0 in #(( 39266 *[\\/]* ) as_myself=$0 ;; 39267 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39268for as_dir in $PATH 39269do 39270 IFS=$as_save_IFS 39271 case $as_dir in #((( 39272 '') as_dir=./ ;; 39273 */) ;; 39274 *) as_dir=$as_dir/ ;; 39275 esac 39276 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 39277 done 39278IFS=$as_save_IFS 39279 39280 ;; 39281esac 39282# We did not find ourselves, most probably we were run as `sh COMMAND' 39283# in which case we are not to be found in the path. 39284if test "x$as_myself" = x; then 39285 as_myself=$0 39286fi 39287if test ! -f "$as_myself"; then 39288 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 39289 exit 1 39290fi 39291 39292 39293 39294# as_fn_error STATUS ERROR [LINENO LOG_FD] 39295# ---------------------------------------- 39296# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 39297# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 39298# script with STATUS, using 1 if that was 0. 39299as_fn_error () 39300{ 39301 as_status=$1; test $as_status -eq 0 && as_status=1 39302 if test "$4"; then 39303 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 39304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 39305 fi 39306 printf "%s\n" "$as_me: error: $2" >&2 39307 as_fn_exit $as_status 39308} # as_fn_error 39309 39310 39311 39312# as_fn_set_status STATUS 39313# ----------------------- 39314# Set $? to STATUS, without forking. 39315as_fn_set_status () 39316{ 39317 return $1 39318} # as_fn_set_status 39319 39320# as_fn_exit STATUS 39321# ----------------- 39322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 39323as_fn_exit () 39324{ 39325 set +e 39326 as_fn_set_status $1 39327 exit $1 39328} # as_fn_exit 39329 39330# as_fn_unset VAR 39331# --------------- 39332# Portably unset VAR. 39333as_fn_unset () 39334{ 39335 { eval $1=; unset $1;} 39336} 39337as_unset=as_fn_unset 39338 39339# as_fn_append VAR VALUE 39340# ---------------------- 39341# Append the text in VALUE to the end of the definition contained in VAR. Take 39342# advantage of any shell optimizations that allow amortized linear growth over 39343# repeated appends, instead of the typical quadratic growth present in naive 39344# implementations. 39345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 39346then : 39347 eval 'as_fn_append () 39348 { 39349 eval $1+=\$2 39350 }' 39351else $as_nop 39352 as_fn_append () 39353 { 39354 eval $1=\$$1\$2 39355 } 39356fi # as_fn_append 39357 39358# as_fn_arith ARG... 39359# ------------------ 39360# Perform arithmetic evaluation on the ARGs, and store the result in the 39361# global $as_val. Take advantage of shells that can avoid forks. The arguments 39362# must be portable across $(()) and expr. 39363if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 39364then : 39365 eval 'as_fn_arith () 39366 { 39367 as_val=$(( $* )) 39368 }' 39369else $as_nop 39370 as_fn_arith () 39371 { 39372 as_val=`expr "$@" || test $? -eq 1` 39373 } 39374fi # as_fn_arith 39375 39376 39377if expr a : '\(a\)' >/dev/null 2>&1 && 39378 test "X`expr 00001 : '.*\(...\)'`" = X001; then 39379 as_expr=expr 39380else 39381 as_expr=false 39382fi 39383 39384if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 39385 as_basename=basename 39386else 39387 as_basename=false 39388fi 39389 39390if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 39391 as_dirname=dirname 39392else 39393 as_dirname=false 39394fi 39395 39396as_me=`$as_basename -- "$0" || 39397$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 39398 X"$0" : 'X\(//\)$' \| \ 39399 X"$0" : 'X\(/\)' \| . 2>/dev/null || 39400printf "%s\n" X/"$0" | 39401 sed '/^.*\/\([^/][^/]*\)\/*$/{ 39402 s//\1/ 39403 q 39404 } 39405 /^X\/\(\/\/\)$/{ 39406 s//\1/ 39407 q 39408 } 39409 /^X\/\(\/\).*/{ 39410 s//\1/ 39411 q 39412 } 39413 s/.*/./; q'` 39414 39415# Avoid depending upon Character Ranges. 39416as_cr_letters='abcdefghijklmnopqrstuvwxyz' 39417as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 39418as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39419as_cr_digits='0123456789' 39420as_cr_alnum=$as_cr_Letters$as_cr_digits 39421 39422 39423# Determine whether it's possible to make 'echo' print without a newline. 39424# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 39425# for compatibility with existing Makefiles. 39426ECHO_C= ECHO_N= ECHO_T= 39427case `echo -n x` in #((((( 39428-n*) 39429 case `echo 'xy\c'` in 39430 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 39431 xy) ECHO_C='\c';; 39432 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 39433 ECHO_T=' ';; 39434 esac;; 39435*) 39436 ECHO_N='-n';; 39437esac 39438 39439# For backward compatibility with old third-party macros, we provide 39440# the shell variables $as_echo and $as_echo_n. New code should use 39441# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 39442as_echo='printf %s\n' 39443as_echo_n='printf %s' 39444 39445rm -f conf$$ conf$$.exe conf$$.file 39446if test -d conf$$.dir; then 39447 rm -f conf$$.dir/conf$$.file 39448else 39449 rm -f conf$$.dir 39450 mkdir conf$$.dir 2>/dev/null 39451fi 39452if (echo >conf$$.file) 2>/dev/null; then 39453 if ln -s conf$$.file conf$$ 2>/dev/null; then 39454 as_ln_s='ln -s' 39455 # ... but there are two gotchas: 39456 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 39457 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 39458 # In both cases, we have to default to `cp -pR'. 39459 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 39460 as_ln_s='cp -pR' 39461 elif ln conf$$.file conf$$ 2>/dev/null; then 39462 as_ln_s=ln 39463 else 39464 as_ln_s='cp -pR' 39465 fi 39466else 39467 as_ln_s='cp -pR' 39468fi 39469rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 39470rmdir conf$$.dir 2>/dev/null 39471 39472 39473# as_fn_mkdir_p 39474# ------------- 39475# Create "$as_dir" as a directory, including parents if necessary. 39476as_fn_mkdir_p () 39477{ 39478 39479 case $as_dir in #( 39480 -*) as_dir=./$as_dir;; 39481 esac 39482 test -d "$as_dir" || eval $as_mkdir_p || { 39483 as_dirs= 39484 while :; do 39485 case $as_dir in #( 39486 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 39487 *) as_qdir=$as_dir;; 39488 esac 39489 as_dirs="'$as_qdir' $as_dirs" 39490 as_dir=`$as_dirname -- "$as_dir" || 39491$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 39492 X"$as_dir" : 'X\(//\)[^/]' \| \ 39493 X"$as_dir" : 'X\(//\)$' \| \ 39494 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 39495printf "%s\n" X"$as_dir" | 39496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 39497 s//\1/ 39498 q 39499 } 39500 /^X\(\/\/\)[^/].*/{ 39501 s//\1/ 39502 q 39503 } 39504 /^X\(\/\/\)$/{ 39505 s//\1/ 39506 q 39507 } 39508 /^X\(\/\).*/{ 39509 s//\1/ 39510 q 39511 } 39512 s/.*/./; q'` 39513 test -d "$as_dir" && break 39514 done 39515 test -z "$as_dirs" || eval "mkdir $as_dirs" 39516 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 39517 39518 39519} # as_fn_mkdir_p 39520if mkdir -p . 2>/dev/null; then 39521 as_mkdir_p='mkdir -p "$as_dir"' 39522else 39523 test -d ./-p && rmdir ./-p 39524 as_mkdir_p=false 39525fi 39526 39527 39528# as_fn_executable_p FILE 39529# ----------------------- 39530# Test if FILE is an executable regular file. 39531as_fn_executable_p () 39532{ 39533 test -f "$1" && test -x "$1" 39534} # as_fn_executable_p 39535as_test_x='test -x' 39536as_executable_p=as_fn_executable_p 39537 39538# Sed expression to map a string onto a valid CPP name. 39539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 39540 39541# Sed expression to map a string onto a valid variable name. 39542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 39543 39544 39545exec 6>&1 39546## ----------------------------------- ## 39547## Main body of $CONFIG_STATUS script. ## 39548## ----------------------------------- ## 39549_ASEOF 39550test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 39551 39552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39553# Save the log message, to keep $0 and so on meaningful, and to 39554# report actual input values of CONFIG_FILES etc. instead of their 39555# values after options handling. 39556ac_log=" 39557This file was extended by Freeciv $as_me 2.6.6, which was 39558generated by GNU Autoconf 2.71. Invocation command line was 39559 39560 CONFIG_FILES = $CONFIG_FILES 39561 CONFIG_HEADERS = $CONFIG_HEADERS 39562 CONFIG_LINKS = $CONFIG_LINKS 39563 CONFIG_COMMANDS = $CONFIG_COMMANDS 39564 $ $0 $@ 39565 39566on `(hostname || uname -n) 2>/dev/null | sed 1q` 39567" 39568 39569_ACEOF 39570 39571case $ac_config_files in *" 39572"*) set x $ac_config_files; shift; ac_config_files=$*;; 39573esac 39574 39575case $ac_config_headers in *" 39576"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 39577esac 39578 39579 39580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39581# Files that config.status was made for. 39582config_files="$ac_config_files" 39583config_headers="$ac_config_headers" 39584config_commands="$ac_config_commands" 39585 39586_ACEOF 39587 39588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39589ac_cs_usage="\ 39590\`$as_me' instantiates files and other configuration actions 39591from templates according to the current configuration. Unless the files 39592and actions are specified as TAGs, all are instantiated by default. 39593 39594Usage: $0 [OPTION]... [TAG]... 39595 39596 -h, --help print this help, then exit 39597 -V, --version print version number and configuration settings, then exit 39598 --config print configuration, then exit 39599 -q, --quiet, --silent 39600 do not print progress messages 39601 -d, --debug don't remove temporary files 39602 --recheck update $as_me by reconfiguring in the same conditions 39603 --file=FILE[:TEMPLATE] 39604 instantiate the configuration file FILE 39605 --header=FILE[:TEMPLATE] 39606 instantiate the configuration header FILE 39607 39608Configuration files: 39609$config_files 39610 39611Configuration headers: 39612$config_headers 39613 39614Configuration commands: 39615$config_commands 39616 39617Report bugs to <https://osdn.net/projects/freeciv/ticket/>." 39618 39619_ACEOF 39620ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 39621ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 39622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39623ac_cs_config='$ac_cs_config_escaped' 39624ac_cs_version="\\ 39625Freeciv config.status 2.6.6 39626configured by $0, generated by GNU Autoconf 2.71, 39627 with options \\"\$ac_cs_config\\" 39628 39629Copyright (C) 2021 Free Software Foundation, Inc. 39630This config.status script is free software; the Free Software Foundation 39631gives unlimited permission to copy, distribute and modify it." 39632 39633ac_pwd='$ac_pwd' 39634srcdir='$srcdir' 39635INSTALL='$INSTALL' 39636MKDIR_P='$MKDIR_P' 39637AWK='$AWK' 39638test -n "\$AWK" || AWK=awk 39639_ACEOF 39640 39641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39642# The default lists apply if the user does not specify any file. 39643ac_need_defaults=: 39644while test $# != 0 39645do 39646 case $1 in 39647 --*=?*) 39648 ac_option=`expr "X$1" : 'X\([^=]*\)='` 39649 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 39650 ac_shift=: 39651 ;; 39652 --*=) 39653 ac_option=`expr "X$1" : 'X\([^=]*\)='` 39654 ac_optarg= 39655 ac_shift=: 39656 ;; 39657 *) 39658 ac_option=$1 39659 ac_optarg=$2 39660 ac_shift=shift 39661 ;; 39662 esac 39663 39664 case $ac_option in 39665 # Handling of the options. 39666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 39667 ac_cs_recheck=: ;; 39668 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 39669 printf "%s\n" "$ac_cs_version"; exit ;; 39670 --config | --confi | --conf | --con | --co | --c ) 39671 printf "%s\n" "$ac_cs_config"; exit ;; 39672 --debug | --debu | --deb | --de | --d | -d ) 39673 debug=: ;; 39674 --file | --fil | --fi | --f ) 39675 $ac_shift 39676 case $ac_optarg in 39677 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 39678 '') as_fn_error $? "missing file argument" ;; 39679 esac 39680 as_fn_append CONFIG_FILES " '$ac_optarg'" 39681 ac_need_defaults=false;; 39682 --header | --heade | --head | --hea ) 39683 $ac_shift 39684 case $ac_optarg in 39685 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 39686 esac 39687 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 39688 ac_need_defaults=false;; 39689 --he | --h) 39690 # Conflict between --help and --header 39691 as_fn_error $? "ambiguous option: \`$1' 39692Try \`$0 --help' for more information.";; 39693 --help | --hel | -h ) 39694 printf "%s\n" "$ac_cs_usage"; exit ;; 39695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 39696 | -silent | --silent | --silen | --sile | --sil | --si | --s) 39697 ac_cs_silent=: ;; 39698 39699 # This is an error. 39700 -*) as_fn_error $? "unrecognized option: \`$1' 39701Try \`$0 --help' for more information." ;; 39702 39703 *) as_fn_append ac_config_targets " $1" 39704 ac_need_defaults=false ;; 39705 39706 esac 39707 shift 39708done 39709 39710ac_configure_extra_args= 39711 39712if $ac_cs_silent; then 39713 exec 6>/dev/null 39714 ac_configure_extra_args="$ac_configure_extra_args --silent" 39715fi 39716 39717_ACEOF 39718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39719if \$ac_cs_recheck; then 39720 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 39721 shift 39722 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 39723 CONFIG_SHELL='$SHELL' 39724 export CONFIG_SHELL 39725 exec "\$@" 39726fi 39727 39728_ACEOF 39729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 39730exec 5>>config.log 39731{ 39732 echo 39733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 39734## Running $as_me. ## 39735_ASBOX 39736 printf "%s\n" "$ac_log" 39737} >&5 39738 39739_ACEOF 39740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 39741# 39742# INIT-COMMANDS 39743# 39744AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 39745 39746 39747# The HP-UX ksh and POSIX shell print the target directory to stdout 39748# if CDPATH is set. 39749(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 39750 39751sed_quote_subst='$sed_quote_subst' 39752double_quote_subst='$double_quote_subst' 39753delay_variable_subst='$delay_variable_subst' 39754enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 39755macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 39756macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 39757enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 39758pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 39759enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 39760shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 39761SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 39762ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 39763PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 39764host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 39765host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 39766host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 39767build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 39768build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 39769build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 39770SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 39771Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 39772GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 39773EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 39774FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 39775LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 39776NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 39777LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 39778max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 39779ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 39780exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 39781lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 39782lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 39783lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 39784lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 39785lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 39786reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 39787reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 39788OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 39789deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 39790file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 39791file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 39792want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 39793DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 39794sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 39795AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 39796AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 39797archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 39798STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 39799RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 39800old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 39801old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 39802old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 39803lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 39804CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 39805CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 39806compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 39807GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 39808lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 39809lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 39810lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 39811lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 39812lt_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"`' 39813lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 39814nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 39815lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 39816lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 39817objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 39818MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 39819lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 39820lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 39821lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 39822lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 39823lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 39824need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 39825MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 39826DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 39827NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 39828LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 39829OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 39830OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 39831libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 39832shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 39833extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 39834archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 39835enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 39836export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 39837whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 39838compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 39839old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 39840old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 39841archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 39842archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 39843module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 39844module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 39845with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 39846allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 39847no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 39848hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 39849hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 39850hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 39851hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 39852hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 39853hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 39854hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 39855inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 39856link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 39857always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 39858export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 39859exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 39860include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 39861prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 39862postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 39863file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 39864variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 39865need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 39866need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 39867version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 39868runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 39869shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 39870shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 39871libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 39872library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 39873soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 39874install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 39875postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 39876postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 39877finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 39878finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 39879hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 39880sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 39881configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 39882configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 39883hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 39884enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 39885enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 39886enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 39887old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 39888striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 39889compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 39890predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 39891postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 39892predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 39893postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 39894compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 39895LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 39896reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 39897reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 39898old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 39899compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 39900GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 39901lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 39902lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 39903lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 39904lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 39905lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 39906archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 39907enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 39908export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 39909whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 39910compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 39911old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 39912old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 39913archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 39914archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 39915module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 39916module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 39917with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 39918allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 39919no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 39920hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 39921hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 39922hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 39923hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 39924hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 39925hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 39926hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 39927inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 39928link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 39929always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 39930export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 39931exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 39932include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 39933prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 39934postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 39935file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 39936hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 39937compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 39938predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 39939postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 39940predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 39941postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 39942compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 39943 39944LTCC='$LTCC' 39945LTCFLAGS='$LTCFLAGS' 39946compiler='$compiler_DEFAULT' 39947 39948# A function that is used when there is no print builtin or printf. 39949func_fallback_echo () 39950{ 39951 eval 'cat <<_LTECHO_EOF 39952\$1 39953_LTECHO_EOF' 39954} 39955 39956# Quote evaled strings. 39957for var in SHELL \ 39958ECHO \ 39959PATH_SEPARATOR \ 39960SED \ 39961GREP \ 39962EGREP \ 39963FGREP \ 39964LD \ 39965NM \ 39966LN_S \ 39967lt_SP2NL \ 39968lt_NL2SP \ 39969reload_flag \ 39970OBJDUMP \ 39971deplibs_check_method \ 39972file_magic_cmd \ 39973file_magic_glob \ 39974want_nocaseglob \ 39975DLLTOOL \ 39976sharedlib_from_linklib_cmd \ 39977AR \ 39978AR_FLAGS \ 39979archiver_list_spec \ 39980STRIP \ 39981RANLIB \ 39982CC \ 39983CFLAGS \ 39984compiler \ 39985lt_cv_sys_global_symbol_pipe \ 39986lt_cv_sys_global_symbol_to_cdecl \ 39987lt_cv_sys_global_symbol_to_import \ 39988lt_cv_sys_global_symbol_to_c_name_address \ 39989lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 39990lt_cv_nm_interface \ 39991nm_file_list_spec \ 39992lt_cv_truncate_bin \ 39993lt_prog_compiler_no_builtin_flag \ 39994lt_prog_compiler_pic \ 39995lt_prog_compiler_wl \ 39996lt_prog_compiler_static \ 39997lt_cv_prog_compiler_c_o \ 39998need_locks \ 39999MANIFEST_TOOL \ 40000DSYMUTIL \ 40001NMEDIT \ 40002LIPO \ 40003OTOOL \ 40004OTOOL64 \ 40005shrext_cmds \ 40006export_dynamic_flag_spec \ 40007whole_archive_flag_spec \ 40008compiler_needs_object \ 40009with_gnu_ld \ 40010allow_undefined_flag \ 40011no_undefined_flag \ 40012hardcode_libdir_flag_spec \ 40013hardcode_libdir_separator \ 40014exclude_expsyms \ 40015include_expsyms \ 40016file_list_spec \ 40017variables_saved_for_relink \ 40018libname_spec \ 40019library_names_spec \ 40020soname_spec \ 40021install_override_mode \ 40022finish_eval \ 40023old_striplib \ 40024striplib \ 40025compiler_lib_search_dirs \ 40026predep_objects \ 40027postdep_objects \ 40028predeps \ 40029postdeps \ 40030compiler_lib_search_path \ 40031LD_CXX \ 40032reload_flag_CXX \ 40033compiler_CXX \ 40034lt_prog_compiler_no_builtin_flag_CXX \ 40035lt_prog_compiler_pic_CXX \ 40036lt_prog_compiler_wl_CXX \ 40037lt_prog_compiler_static_CXX \ 40038lt_cv_prog_compiler_c_o_CXX \ 40039export_dynamic_flag_spec_CXX \ 40040whole_archive_flag_spec_CXX \ 40041compiler_needs_object_CXX \ 40042with_gnu_ld_CXX \ 40043allow_undefined_flag_CXX \ 40044no_undefined_flag_CXX \ 40045hardcode_libdir_flag_spec_CXX \ 40046hardcode_libdir_separator_CXX \ 40047exclude_expsyms_CXX \ 40048include_expsyms_CXX \ 40049file_list_spec_CXX \ 40050compiler_lib_search_dirs_CXX \ 40051predep_objects_CXX \ 40052postdep_objects_CXX \ 40053predeps_CXX \ 40054postdeps_CXX \ 40055compiler_lib_search_path_CXX; do 40056 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 40057 *[\\\\\\\`\\"\\\$]*) 40058 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 40059 ;; 40060 *) 40061 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 40062 ;; 40063 esac 40064done 40065 40066# Double-quote double-evaled strings. 40067for var in reload_cmds \ 40068old_postinstall_cmds \ 40069old_postuninstall_cmds \ 40070old_archive_cmds \ 40071extract_expsyms_cmds \ 40072old_archive_from_new_cmds \ 40073old_archive_from_expsyms_cmds \ 40074archive_cmds \ 40075archive_expsym_cmds \ 40076module_cmds \ 40077module_expsym_cmds \ 40078export_symbols_cmds \ 40079prelink_cmds \ 40080postlink_cmds \ 40081postinstall_cmds \ 40082postuninstall_cmds \ 40083finish_cmds \ 40084sys_lib_search_path_spec \ 40085configure_time_dlsearch_path \ 40086configure_time_lt_sys_library_path \ 40087reload_cmds_CXX \ 40088old_archive_cmds_CXX \ 40089old_archive_from_new_cmds_CXX \ 40090old_archive_from_expsyms_cmds_CXX \ 40091archive_cmds_CXX \ 40092archive_expsym_cmds_CXX \ 40093module_cmds_CXX \ 40094module_expsym_cmds_CXX \ 40095export_symbols_cmds_CXX \ 40096prelink_cmds_CXX \ 40097postlink_cmds_CXX; do 40098 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 40099 *[\\\\\\\`\\"\\\$]*) 40100 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 40101 ;; 40102 *) 40103 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 40104 ;; 40105 esac 40106done 40107 40108ac_aux_dir='$ac_aux_dir' 40109 40110# See if we are running on zsh, and set the options that allow our 40111# commands through without removal of \ escapes INIT. 40112if test -n "\${ZSH_VERSION+set}"; then 40113 setopt NO_GLOB_SUBST 40114fi 40115 40116 40117 PACKAGE='$PACKAGE' 40118 VERSION='$VERSION' 40119 RM='$RM' 40120 ofile='$ofile' 40121 40122 40123 40124 40125 40126# Capture the value of obsolete ALL_LINGUAS because we need it to compute 40127 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. 40128 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" 40129 # Capture the value of LINGUAS because we need it to compute CATALOGS. 40130 LINGUAS="${LINGUAS-%UNSET%}" 40131 40132 40133 40134_ACEOF 40135 40136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 40137 40138# Handling of arguments. 40139for ac_config_target in $ac_config_targets 40140do 40141 case $ac_config_target in 40142 "gen_headers/fc_config.h") CONFIG_HEADERS="$CONFIG_HEADERS gen_headers/fc_config.h" ;; 40143 "gen_headers/freeciv_config.h") CONFIG_HEADERS="$CONFIG_HEADERS gen_headers/freeciv_config.h" ;; 40144 "gen_headers/liblua_config.h") CONFIG_HEADERS="$CONFIG_HEADERS gen_headers/liblua_config.h" ;; 40145 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 40146 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 40147 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 40148 "fc_default-5") CONFIG_COMMANDS="$CONFIG_COMMANDS fc_default-5" ;; 40149 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 40150 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 40151 "data/hex2t/Makefile") CONFIG_FILES="$CONFIG_FILES data/hex2t/Makefile" ;; 40152 "data/hexemplio/Makefile") CONFIG_FILES="$CONFIG_FILES data/hexemplio/Makefile" ;; 40153 "data/amplio2/Makefile") CONFIG_FILES="$CONFIG_FILES data/amplio2/Makefile" ;; 40154 "data/buildings/Makefile") CONFIG_FILES="$CONFIG_FILES data/buildings/Makefile" ;; 40155 "data/flags/Makefile") CONFIG_FILES="$CONFIG_FILES data/flags/Makefile" ;; 40156 "data/misc/Makefile") CONFIG_FILES="$CONFIG_FILES data/misc/Makefile" ;; 40157 "data/cimpletoon/Makefile") CONFIG_FILES="$CONFIG_FILES data/cimpletoon/Makefile" ;; 40158 "data/trident/Makefile") CONFIG_FILES="$CONFIG_FILES data/trident/Makefile" ;; 40159 "data/isophex/Makefile") CONFIG_FILES="$CONFIG_FILES data/isophex/Makefile" ;; 40160 "data/isotrident/Makefile") CONFIG_FILES="$CONFIG_FILES data/isotrident/Makefile" ;; 40161 "data/stdsounds/Makefile") CONFIG_FILES="$CONFIG_FILES data/stdsounds/Makefile" ;; 40162 "data/stdmusic/Makefile") CONFIG_FILES="$CONFIG_FILES data/stdmusic/Makefile" ;; 40163 "data/override/Makefile") CONFIG_FILES="$CONFIG_FILES data/override/Makefile" ;; 40164 "data/default/Makefile") CONFIG_FILES="$CONFIG_FILES data/default/Makefile" ;; 40165 "data/classic/Makefile") CONFIG_FILES="$CONFIG_FILES data/classic/Makefile" ;; 40166 "data/multiplayer/Makefile") CONFIG_FILES="$CONFIG_FILES data/multiplayer/Makefile" ;; 40167 "data/experimental/Makefile") CONFIG_FILES="$CONFIG_FILES data/experimental/Makefile" ;; 40168 "data/civ2civ3/Makefile") CONFIG_FILES="$CONFIG_FILES data/civ2civ3/Makefile" ;; 40169 "data/civ1/Makefile") CONFIG_FILES="$CONFIG_FILES data/civ1/Makefile" ;; 40170 "data/civ2/Makefile") CONFIG_FILES="$CONFIG_FILES data/civ2/Makefile" ;; 40171 "data/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES data/sandbox/Makefile" ;; 40172 "data/scenarios/Makefile") CONFIG_FILES="$CONFIG_FILES data/scenarios/Makefile" ;; 40173 "data/nation/Makefile") CONFIG_FILES="$CONFIG_FILES data/nation/Makefile" ;; 40174 "data/themes/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/Makefile" ;; 40175 "data/themes/gui-gtk-2.0/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Makefile" ;; 40176 "data/themes/gui-gtk-2.0/Freeciv/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/Makefile" ;; 40177 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Makefile" ;; 40178 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Arrows/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Arrows/Makefile" ;; 40179 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Buttons/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Buttons/Makefile" ;; 40180 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Check-Radio/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Check-Radio/Makefile" ;; 40181 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Combo/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Combo/Makefile" ;; 40182 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Frame-Gap/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Frame-Gap/Makefile" ;; 40183 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Handles/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Handles/Makefile" ;; 40184 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Lines/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Lines/Makefile" ;; 40185 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ListHeaders/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ListHeaders/Makefile" ;; 40186 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Menu-Menubar/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Menu-Menubar/Makefile" ;; 40187 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Others/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Others/Makefile" ;; 40188 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Panel/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Panel/Makefile" ;; 40189 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ProgressBar/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/ProgressBar/Makefile" ;; 40190 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Range/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Range/Makefile" ;; 40191 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Scrollbars/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Scrollbars/Makefile" ;; 40192 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Shadows/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Shadows/Makefile" ;; 40193 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Spin/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Spin/Makefile" ;; 40194 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Tabs/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Tabs/Makefile" ;; 40195 "data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Toolbar/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-2.0/Freeciv/gtk-2.0/Toolbar/Makefile" ;; 40196 "data/themes/gui-gtk-3.0/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-3.0/Makefile" ;; 40197 "data/themes/gui-gtk-3.0/Freeciv/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-3.0/Freeciv/Makefile" ;; 40198 "data/themes/gui-gtk-3.0/Freeciv/gtk-3.0/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-3.0/Freeciv/gtk-3.0/Makefile" ;; 40199 "data/themes/gui-gtk-3.22/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-3.22/Makefile" ;; 40200 "data/themes/gui-gtk-3.22/Freeciv/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-3.22/Freeciv/Makefile" ;; 40201 "data/themes/gui-gtk-3.22/Freeciv/gtk-3.0/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-gtk-3.22/Freeciv/gtk-3.0/Makefile" ;; 40202 "data/themes/gui-qt/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-qt/Makefile" ;; 40203 "data/themes/gui-qt/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-qt/icons/Makefile" ;; 40204 "data/themes/gui-qt/Classic/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-qt/Classic/Makefile" ;; 40205 "data/themes/gui-qt/Necrophos/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-qt/Necrophos/Makefile" ;; 40206 "data/themes/gui-qt/NightStalker/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-qt/NightStalker/Makefile" ;; 40207 "data/themes/gui-qt/System/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-qt/System/Makefile" ;; 40208 "data/themes/gui-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-sdl/Makefile" ;; 40209 "data/themes/gui-sdl/human/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-sdl/human/Makefile" ;; 40210 "data/themes/gui-sdl2/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-sdl2/Makefile" ;; 40211 "data/themes/gui-sdl2/human/Makefile") CONFIG_FILES="$CONFIG_FILES data/themes/gui-sdl2/human/Makefile" ;; 40212 "data/wonders/Makefile") CONFIG_FILES="$CONFIG_FILES data/wonders/Makefile" ;; 40213 "data/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/icons/Makefile" ;; 40214 "utility/Makefile") CONFIG_FILES="$CONFIG_FILES utility/Makefile" ;; 40215 "dependencies/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/Makefile" ;; 40216 "dependencies/lua-5.3/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/lua-5.3/Makefile" ;; 40217 "dependencies/lua-5.3/src/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/lua-5.3/src/Makefile" ;; 40218 "dependencies/tolua-5.2/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/tolua-5.2/Makefile" ;; 40219 "dependencies/tolua-5.2/src/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/tolua-5.2/src/Makefile" ;; 40220 "dependencies/tolua-5.2/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/tolua-5.2/src/lib/Makefile" ;; 40221 "dependencies/tolua-5.2/src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/tolua-5.2/src/bin/Makefile" ;; 40222 "dependencies/luasql/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/luasql/Makefile" ;; 40223 "dependencies/luasql/src/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/luasql/src/Makefile" ;; 40224 "dependencies/cvercmp/Makefile") CONFIG_FILES="$CONFIG_FILES dependencies/cvercmp/Makefile" ;; 40225 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; 40226 "common/aicore/Makefile") CONFIG_FILES="$CONFIG_FILES common/aicore/Makefile" ;; 40227 "common/scriptcore/Makefile") CONFIG_FILES="$CONFIG_FILES common/scriptcore/Makefile" ;; 40228 "ai/Makefile") CONFIG_FILES="$CONFIG_FILES ai/Makefile" ;; 40229 "ai/default/Makefile") CONFIG_FILES="$CONFIG_FILES ai/default/Makefile" ;; 40230 "ai/classic/Makefile") CONFIG_FILES="$CONFIG_FILES ai/classic/Makefile" ;; 40231 "ai/stub/Makefile") CONFIG_FILES="$CONFIG_FILES ai/stub/Makefile" ;; 40232 "ai/threaded/Makefile") CONFIG_FILES="$CONFIG_FILES ai/threaded/Makefile" ;; 40233 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 40234 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;; 40235 "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;; 40236 "client/agents/Makefile") CONFIG_FILES="$CONFIG_FILES client/agents/Makefile" ;; 40237 "client/include/Makefile") CONFIG_FILES="$CONFIG_FILES client/include/Makefile" ;; 40238 "client/gui-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES client/gui-sdl/Makefile" ;; 40239 "client/gui-sdl2/Makefile") CONFIG_FILES="$CONFIG_FILES client/gui-sdl2/Makefile" ;; 40240 "client/gui-gtk-2.0/Makefile") CONFIG_FILES="$CONFIG_FILES client/gui-gtk-2.0/Makefile" ;; 40241 "client/gui-gtk-3.0/Makefile") CONFIG_FILES="$CONFIG_FILES client/gui-gtk-3.0/Makefile" ;; 40242 "client/gui-gtk-3.22/Makefile") CONFIG_FILES="$CONFIG_FILES client/gui-gtk-3.22/Makefile" ;; 40243 "client/gui-xaw/Makefile") CONFIG_FILES="$CONFIG_FILES client/gui-xaw/Makefile" ;; 40244 "client/gui-qt/Makefile") CONFIG_FILES="$CONFIG_FILES client/gui-qt/Makefile" ;; 40245 "client/gui-stub/Makefile") CONFIG_FILES="$CONFIG_FILES client/gui-stub/Makefile" ;; 40246 "client/luascript/Makefile") CONFIG_FILES="$CONFIG_FILES client/luascript/Makefile" ;; 40247 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; 40248 "server/advisors/Makefile") CONFIG_FILES="$CONFIG_FILES server/advisors/Makefile" ;; 40249 "server/generator/Makefile") CONFIG_FILES="$CONFIG_FILES server/generator/Makefile" ;; 40250 "server/scripting/Makefile") CONFIG_FILES="$CONFIG_FILES server/scripting/Makefile" ;; 40251 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 40252 "tools/ruledit/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ruledit/Makefile" ;; 40253 "gen_headers/Makefile") CONFIG_FILES="$CONFIG_FILES gen_headers/Makefile" ;; 40254 "translations/Makefile") CONFIG_FILES="$CONFIG_FILES translations/Makefile" ;; 40255 "translations/freeciv/Makefile.in") CONFIG_FILES="$CONFIG_FILES translations/freeciv/Makefile.in" ;; 40256 "translations/nations/Makefile.in") CONFIG_FILES="$CONFIG_FILES translations/nations/Makefile.in" ;; 40257 "translations/ruledit/Makefile.in") CONFIG_FILES="$CONFIG_FILES translations/ruledit/Makefile.in" ;; 40258 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 40259 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 40260 "doc/man/freeciv.6") CONFIG_FILES="$CONFIG_FILES doc/man/freeciv.6" ;; 40261 "doc/man/freeciv-client.6") CONFIG_FILES="$CONFIG_FILES doc/man/freeciv-client.6" ;; 40262 "doc/man/freeciv-server.6") CONFIG_FILES="$CONFIG_FILES doc/man/freeciv-server.6" ;; 40263 "doc/man/freeciv-manual.6") CONFIG_FILES="$CONFIG_FILES doc/man/freeciv-manual.6" ;; 40264 "doc/man/freeciv-modpack.6") CONFIG_FILES="$CONFIG_FILES doc/man/freeciv-modpack.6" ;; 40265 "doc/man/freeciv-ruledit.6") CONFIG_FILES="$CONFIG_FILES doc/man/freeciv-ruledit.6" ;; 40266 "doc/ca/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ca/Makefile" ;; 40267 "doc/de/Makefile") CONFIG_FILES="$CONFIG_FILES doc/de/Makefile" ;; 40268 "doc/fr/Makefile") CONFIG_FILES="$CONFIG_FILES doc/fr/Makefile" ;; 40269 "doc/it/Makefile") CONFIG_FILES="$CONFIG_FILES doc/it/Makefile" ;; 40270 "doc/ja/Makefile") CONFIG_FILES="$CONFIG_FILES doc/ja/Makefile" ;; 40271 "doc/nl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/nl/Makefile" ;; 40272 "doc/sv/Makefile") CONFIG_FILES="$CONFIG_FILES doc/sv/Makefile" ;; 40273 "bootstrap/Makefile") CONFIG_FILES="$CONFIG_FILES bootstrap/Makefile" ;; 40274 "data/Freeciv") CONFIG_FILES="$CONFIG_FILES data/Freeciv" ;; 40275 "lua/Makefile") CONFIG_FILES="$CONFIG_FILES lua/Makefile" ;; 40276 "client/org.freeciv.gtk3.desktop") CONFIG_FILES="$CONFIG_FILES client/org.freeciv.gtk3.desktop:bootstrap/org.freeciv.gtk3.desktop.in" ;; 40277 "client/org.freeciv.gtk322.desktop") CONFIG_FILES="$CONFIG_FILES client/org.freeciv.gtk322.desktop:bootstrap/org.freeciv.gtk322.desktop.in" ;; 40278 "client/org.freeciv.gtk2.desktop") CONFIG_FILES="$CONFIG_FILES client/org.freeciv.gtk2.desktop:bootstrap/org.freeciv.gtk2.desktop.in" ;; 40279 "client/org.freeciv.sdl.desktop") CONFIG_FILES="$CONFIG_FILES client/org.freeciv.sdl.desktop:bootstrap/org.freeciv.sdl.desktop.in" ;; 40280 "client/org.freeciv.sdl2.desktop") CONFIG_FILES="$CONFIG_FILES client/org.freeciv.sdl2.desktop:bootstrap/org.freeciv.sdl2.desktop.in" ;; 40281 "client/org.freeciv.qt.desktop") CONFIG_FILES="$CONFIG_FILES client/org.freeciv.qt.desktop:bootstrap/org.freeciv.qt.desktop.in" ;; 40282 "server/org.freeciv.server.desktop") CONFIG_FILES="$CONFIG_FILES server/org.freeciv.server.desktop:bootstrap/org.freeciv.server.desktop.in" ;; 40283 "tools/org.freeciv.mp.gtk3.desktop") CONFIG_FILES="$CONFIG_FILES tools/org.freeciv.mp.gtk3.desktop:bootstrap/org.freeciv.mp.gtk3.desktop.in" ;; 40284 "tools/org.freeciv.mp.gtk2.desktop") CONFIG_FILES="$CONFIG_FILES tools/org.freeciv.mp.gtk2.desktop:bootstrap/org.freeciv.mp.gtk2.desktop.in" ;; 40285 "tools/org.freeciv.mp.qt.desktop") CONFIG_FILES="$CONFIG_FILES tools/org.freeciv.mp.qt.desktop:bootstrap/org.freeciv.mp.qt.desktop.in" ;; 40286 "tools/ruledit/org.freeciv.ruledit.desktop") CONFIG_FILES="$CONFIG_FILES tools/ruledit/org.freeciv.ruledit.desktop:bootstrap/org.freeciv.ruledit.desktop.in" ;; 40287 "client/freeciv-gtk2.appdata.xml") CONFIG_FILES="$CONFIG_FILES client/freeciv-gtk2.appdata.xml:bootstrap/freeciv-gtk2.appdata.xml.in" ;; 40288 "client/freeciv-gtk3.appdata.xml") CONFIG_FILES="$CONFIG_FILES client/freeciv-gtk3.appdata.xml:bootstrap/freeciv-gtk3.appdata.xml.in" ;; 40289 "client/freeciv-gtk3.22.appdata.xml") CONFIG_FILES="$CONFIG_FILES client/freeciv-gtk3.22.appdata.xml:bootstrap/freeciv-gtk3.22.appdata.xml.in" ;; 40290 "client/freeciv-sdl.appdata.xml") CONFIG_FILES="$CONFIG_FILES client/freeciv-sdl.appdata.xml:bootstrap/freeciv-sdl.appdata.xml.in" ;; 40291 "client/freeciv-sdl2.appdata.xml") CONFIG_FILES="$CONFIG_FILES client/freeciv-sdl2.appdata.xml:bootstrap/freeciv-sdl2.appdata.xml.in" ;; 40292 "client/freeciv-qt.appdata.xml") CONFIG_FILES="$CONFIG_FILES client/freeciv-qt.appdata.xml:bootstrap/freeciv-qt.appdata.xml.in" ;; 40293 "server/freeciv-server.appdata.xml") CONFIG_FILES="$CONFIG_FILES server/freeciv-server.appdata.xml:bootstrap/freeciv-server.appdata.xml.in" ;; 40294 "tools/freeciv-mp-gtk2.appdata.xml") CONFIG_FILES="$CONFIG_FILES tools/freeciv-mp-gtk2.appdata.xml:bootstrap/freeciv-mp-gtk2.appdata.xml.in" ;; 40295 "tools/freeciv-mp-gtk3.appdata.xml") CONFIG_FILES="$CONFIG_FILES tools/freeciv-mp-gtk3.appdata.xml:bootstrap/freeciv-mp-gtk3.appdata.xml.in" ;; 40296 "tools/freeciv-mp-qt.appdata.xml") CONFIG_FILES="$CONFIG_FILES tools/freeciv-mp-qt.appdata.xml:bootstrap/freeciv-mp-qt.appdata.xml.in" ;; 40297 "tools/ruledit/freeciv-ruledit.appdata.xml") CONFIG_FILES="$CONFIG_FILES tools/ruledit/freeciv-ruledit.appdata.xml:bootstrap/freeciv-ruledit.appdata.xml.in" ;; 40298 "fcgui") CONFIG_FILES="$CONFIG_FILES fcgui:bootstrap/fcgui.in" ;; 40299 "fcser") CONFIG_FILES="$CONFIG_FILES fcser:bootstrap/fcser.in" ;; 40300 "fcruledit") CONFIG_FILES="$CONFIG_FILES fcruledit:bootstrap/fcruledit.in" ;; 40301 40302 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 40303 esac 40304done 40305 40306 40307# If the user did not use the arguments to specify the items to instantiate, 40308# then the envvar interface is used. Set only those that are not. 40309# We use the long form for the default assignment because of an extremely 40310# bizarre bug on SunOS 4.1.3. 40311if $ac_need_defaults; then 40312 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 40313 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 40314 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 40315fi 40316 40317# Have a temporary directory for convenience. Make it in the build tree 40318# simply because there is no reason against having it here, and in addition, 40319# creating and moving files from /tmp can sometimes cause problems. 40320# Hook for its removal unless debugging. 40321# Note that there is a small window in which the directory will not be cleaned: 40322# after its creation but before its name has been assigned to `$tmp'. 40323$debug || 40324{ 40325 tmp= ac_tmp= 40326 trap 'exit_status=$? 40327 : "${ac_tmp:=$tmp}" 40328 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 40329' 0 40330 trap 'as_fn_exit 1' 1 2 13 15 40331} 40332# Create a (secure) tmp directory for tmp files. 40333 40334{ 40335 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 40336 test -d "$tmp" 40337} || 40338{ 40339 tmp=./conf$$-$RANDOM 40340 (umask 077 && mkdir "$tmp") 40341} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 40342ac_tmp=$tmp 40343 40344# Set up the scripts for CONFIG_FILES section. 40345# No need to generate them if there are no CONFIG_FILES. 40346# This happens for instance with `./config.status config.h'. 40347if test -n "$CONFIG_FILES"; then 40348 40349 40350ac_cr=`echo X | tr X '\015'` 40351# On cygwin, bash can eat \r inside `` if the user requested igncr. 40352# But we know of no other shell where ac_cr would be empty at this 40353# point, so we can use a bashism as a fallback. 40354if test "x$ac_cr" = x; then 40355 eval ac_cr=\$\'\\r\' 40356fi 40357ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 40358if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 40359 ac_cs_awk_cr='\\r' 40360else 40361 ac_cs_awk_cr=$ac_cr 40362fi 40363 40364echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 40365_ACEOF 40366 40367 40368{ 40369 echo "cat >conf$$subs.awk <<_ACEOF" && 40370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 40371 echo "_ACEOF" 40372} >conf$$subs.sh || 40373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 40374ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 40375ac_delim='%!_!# ' 40376for ac_last_try in false false false false false :; do 40377 . ./conf$$subs.sh || 40378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 40379 40380 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 40381 if test $ac_delim_n = $ac_delim_num; then 40382 break 40383 elif $ac_last_try; then 40384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 40385 else 40386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 40387 fi 40388done 40389rm -f conf$$subs.sh 40390 40391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 40392cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 40393_ACEOF 40394sed -n ' 40395h 40396s/^/S["/; s/!.*/"]=/ 40397p 40398g 40399s/^[^!]*!// 40400:repl 40401t repl 40402s/'"$ac_delim"'$// 40403t delim 40404:nl 40405h 40406s/\(.\{148\}\)..*/\1/ 40407t more1 40408s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 40409p 40410n 40411b repl 40412:more1 40413s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 40414p 40415g 40416s/.\{148\}// 40417t nl 40418:delim 40419h 40420s/\(.\{148\}\)..*/\1/ 40421t more2 40422s/["\\]/\\&/g; s/^/"/; s/$/"/ 40423p 40424b 40425:more2 40426s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 40427p 40428g 40429s/.\{148\}// 40430t delim 40431' <conf$$subs.awk | sed ' 40432/^[^""]/{ 40433 N 40434 s/\n// 40435} 40436' >>$CONFIG_STATUS || ac_write_fail=1 40437rm -f conf$$subs.awk 40438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 40439_ACAWK 40440cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 40441 for (key in S) S_is_set[key] = 1 40442 FS = "" 40443 40444} 40445{ 40446 line = $ 0 40447 nfields = split(line, field, "@") 40448 substed = 0 40449 len = length(field[1]) 40450 for (i = 2; i < nfields; i++) { 40451 key = field[i] 40452 keylen = length(key) 40453 if (S_is_set[key]) { 40454 value = S[key] 40455 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 40456 len += length(value) + length(field[++i]) 40457 substed = 1 40458 } else 40459 len += 1 + keylen 40460 } 40461 40462 print line 40463} 40464 40465_ACAWK 40466_ACEOF 40467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 40468if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 40469 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 40470else 40471 cat 40472fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 40473 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 40474_ACEOF 40475 40476# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 40477# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 40478# trailing colons and then remove the whole line if VPATH becomes empty 40479# (actually we leave an empty line to preserve line numbers). 40480if test "x$srcdir" = x.; then 40481 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 40482h 40483s/// 40484s/^/:/ 40485s/[ ]*$/:/ 40486s/:\$(srcdir):/:/g 40487s/:\${srcdir}:/:/g 40488s/:@srcdir@:/:/g 40489s/^:*// 40490s/:*$// 40491x 40492s/\(=[ ]*\).*/\1/ 40493G 40494s/\n// 40495s/^[^=]*=[ ]*$// 40496}' 40497fi 40498 40499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 40500fi # test -n "$CONFIG_FILES" 40501 40502# Set up the scripts for CONFIG_HEADERS section. 40503# No need to generate them if there are no CONFIG_HEADERS. 40504# This happens for instance with `./config.status Makefile'. 40505if test -n "$CONFIG_HEADERS"; then 40506cat >"$ac_tmp/defines.awk" <<\_ACAWK || 40507BEGIN { 40508_ACEOF 40509 40510# Transform confdefs.h into an awk script `defines.awk', embedded as 40511# here-document in config.status, that substitutes the proper values into 40512# config.h.in to produce config.h. 40513 40514# Create a delimiter string that does not exist in confdefs.h, to ease 40515# handling of long lines. 40516ac_delim='%!_!# ' 40517for ac_last_try in false false :; do 40518 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 40519 if test -z "$ac_tt"; then 40520 break 40521 elif $ac_last_try; then 40522 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 40523 else 40524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 40525 fi 40526done 40527 40528# For the awk script, D is an array of macro values keyed by name, 40529# likewise P contains macro parameters if any. Preserve backslash 40530# newline sequences. 40531 40532ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 40533sed -n ' 40534s/.\{148\}/&'"$ac_delim"'/g 40535t rset 40536:rset 40537s/^[ ]*#[ ]*define[ ][ ]*/ / 40538t def 40539d 40540:def 40541s/\\$// 40542t bsnl 40543s/["\\]/\\&/g 40544s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 40545D["\1"]=" \3"/p 40546s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 40547d 40548:bsnl 40549s/["\\]/\\&/g 40550s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 40551D["\1"]=" \3\\\\\\n"\\/p 40552t cont 40553s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 40554t cont 40555d 40556:cont 40557n 40558s/.\{148\}/&'"$ac_delim"'/g 40559t clear 40560:clear 40561s/\\$// 40562t bsnlc 40563s/["\\]/\\&/g; s/^/"/; s/$/"/p 40564d 40565:bsnlc 40566s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 40567b cont 40568' <confdefs.h | sed ' 40569s/'"$ac_delim"'/"\\\ 40570"/g' >>$CONFIG_STATUS || ac_write_fail=1 40571 40572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 40573 for (key in D) D_is_set[key] = 1 40574 FS = "" 40575} 40576/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 40577 line = \$ 0 40578 split(line, arg, " ") 40579 if (arg[1] == "#") { 40580 defundef = arg[2] 40581 mac1 = arg[3] 40582 } else { 40583 defundef = substr(arg[1], 2) 40584 mac1 = arg[2] 40585 } 40586 split(mac1, mac2, "(") #) 40587 macro = mac2[1] 40588 prefix = substr(line, 1, index(line, defundef) - 1) 40589 if (D_is_set[macro]) { 40590 # Preserve the white space surrounding the "#". 40591 print prefix "define", macro P[macro] D[macro] 40592 next 40593 } else { 40594 # Replace #undef with comments. This is necessary, for example, 40595 # in the case of _POSIX_SOURCE, which is predefined and required 40596 # on some systems where configure will not decide to define it. 40597 if (defundef == "undef") { 40598 print "/*", prefix defundef, macro, "*/" 40599 next 40600 } 40601 } 40602} 40603{ print } 40604_ACAWK 40605_ACEOF 40606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 40607 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 40608fi # test -n "$CONFIG_HEADERS" 40609 40610 40611eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 40612shift 40613for ac_tag 40614do 40615 case $ac_tag in 40616 :[FHLC]) ac_mode=$ac_tag; continue;; 40617 esac 40618 case $ac_mode$ac_tag in 40619 :[FHL]*:*);; 40620 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 40621 :[FH]-) ac_tag=-:-;; 40622 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 40623 esac 40624 ac_save_IFS=$IFS 40625 IFS=: 40626 set x $ac_tag 40627 IFS=$ac_save_IFS 40628 shift 40629 ac_file=$1 40630 shift 40631 40632 case $ac_mode in 40633 :L) ac_source=$1;; 40634 :[FH]) 40635 ac_file_inputs= 40636 for ac_f 40637 do 40638 case $ac_f in 40639 -) ac_f="$ac_tmp/stdin";; 40640 *) # Look for the file first in the build tree, then in the source tree 40641 # (if the path is not absolute). The absolute path cannot be DOS-style, 40642 # because $ac_f cannot contain `:'. 40643 test -f "$ac_f" || 40644 case $ac_f in 40645 [\\/$]*) false;; 40646 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 40647 esac || 40648 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 40649 esac 40650 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 40651 as_fn_append ac_file_inputs " '$ac_f'" 40652 done 40653 40654 # Let's still pretend it is `configure' which instantiates (i.e., don't 40655 # use $as_me), people would be surprised to read: 40656 # /* config.h. Generated by config.status. */ 40657 configure_input='Generated from '` 40658 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 40659 `' by configure.' 40660 if test x"$ac_file" != x-; then 40661 configure_input="$ac_file. $configure_input" 40662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 40663printf "%s\n" "$as_me: creating $ac_file" >&6;} 40664 fi 40665 # Neutralize special characters interpreted by sed in replacement strings. 40666 case $configure_input in #( 40667 *\&* | *\|* | *\\* ) 40668 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 40669 sed 's/[\\\\&|]/\\\\&/g'`;; #( 40670 *) ac_sed_conf_input=$configure_input;; 40671 esac 40672 40673 case $ac_tag in 40674 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 40675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 40676 esac 40677 ;; 40678 esac 40679 40680 ac_dir=`$as_dirname -- "$ac_file" || 40681$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 40682 X"$ac_file" : 'X\(//\)[^/]' \| \ 40683 X"$ac_file" : 'X\(//\)$' \| \ 40684 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 40685printf "%s\n" X"$ac_file" | 40686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 40687 s//\1/ 40688 q 40689 } 40690 /^X\(\/\/\)[^/].*/{ 40691 s//\1/ 40692 q 40693 } 40694 /^X\(\/\/\)$/{ 40695 s//\1/ 40696 q 40697 } 40698 /^X\(\/\).*/{ 40699 s//\1/ 40700 q 40701 } 40702 s/.*/./; q'` 40703 as_dir="$ac_dir"; as_fn_mkdir_p 40704 ac_builddir=. 40705 40706case "$ac_dir" in 40707.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 40708*) 40709 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 40710 # A ".." for each directory in $ac_dir_suffix. 40711 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 40712 case $ac_top_builddir_sub in 40713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 40714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 40715 esac ;; 40716esac 40717ac_abs_top_builddir=$ac_pwd 40718ac_abs_builddir=$ac_pwd$ac_dir_suffix 40719# for backward compatibility: 40720ac_top_builddir=$ac_top_build_prefix 40721 40722case $srcdir in 40723 .) # We are building in place. 40724 ac_srcdir=. 40725 ac_top_srcdir=$ac_top_builddir_sub 40726 ac_abs_top_srcdir=$ac_pwd ;; 40727 [\\/]* | ?:[\\/]* ) # Absolute name. 40728 ac_srcdir=$srcdir$ac_dir_suffix; 40729 ac_top_srcdir=$srcdir 40730 ac_abs_top_srcdir=$srcdir ;; 40731 *) # Relative name. 40732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 40733 ac_top_srcdir=$ac_top_build_prefix$srcdir 40734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 40735esac 40736ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 40737 40738 40739 case $ac_mode in 40740 :F) 40741 # 40742 # CONFIG_FILE 40743 # 40744 40745 case $INSTALL in 40746 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 40747 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 40748 esac 40749 ac_MKDIR_P=$MKDIR_P 40750 case $MKDIR_P in 40751 [\\/$]* | ?:[\\/]* ) ;; 40752 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 40753 esac 40754_ACEOF 40755 40756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 40757# If the template does not know about datarootdir, expand it. 40758# FIXME: This hack should be removed a few years after 2.60. 40759ac_datarootdir_hack=; ac_datarootdir_seen= 40760ac_sed_dataroot=' 40761/datarootdir/ { 40762 p 40763 q 40764} 40765/@datadir@/p 40766/@docdir@/p 40767/@infodir@/p 40768/@localedir@/p 40769/@mandir@/p' 40770case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 40771*datarootdir*) ac_datarootdir_seen=yes;; 40772*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 40773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 40774printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 40775_ACEOF 40776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 40777 ac_datarootdir_hack=' 40778 s&@datadir@&$datadir&g 40779 s&@docdir@&$docdir&g 40780 s&@infodir@&$infodir&g 40781 s&@localedir@&$localedir&g 40782 s&@mandir@&$mandir&g 40783 s&\\\${datarootdir}&$datarootdir&g' ;; 40784esac 40785_ACEOF 40786 40787# Neutralize VPATH when `$srcdir' = `.'. 40788# Shell code in configure.ac might set extrasub. 40789# FIXME: do we really want to maintain this feature? 40790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 40791ac_sed_extra="$ac_vpsub 40792$extrasub 40793_ACEOF 40794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 40795:t 40796/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 40797s|@configure_input@|$ac_sed_conf_input|;t t 40798s&@top_builddir@&$ac_top_builddir_sub&;t t 40799s&@top_build_prefix@&$ac_top_build_prefix&;t t 40800s&@srcdir@&$ac_srcdir&;t t 40801s&@abs_srcdir@&$ac_abs_srcdir&;t t 40802s&@top_srcdir@&$ac_top_srcdir&;t t 40803s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 40804s&@builddir@&$ac_builddir&;t t 40805s&@abs_builddir@&$ac_abs_builddir&;t t 40806s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 40807s&@INSTALL@&$ac_INSTALL&;t t 40808s&@MKDIR_P@&$ac_MKDIR_P&;t t 40809$ac_datarootdir_hack 40810" 40811eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 40812 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 40813 40814test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 40815 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 40816 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 40817 "$ac_tmp/out"`; test -z "$ac_out"; } && 40818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 40819which seems to be undefined. Please make sure it is defined" >&5 40820printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 40821which seems to be undefined. Please make sure it is defined" >&2;} 40822 40823 rm -f "$ac_tmp/stdin" 40824 case $ac_file in 40825 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 40826 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 40827 esac \ 40828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 40829 ;; 40830 :H) 40831 # 40832 # CONFIG_HEADER 40833 # 40834 if test x"$ac_file" != x-; then 40835 { 40836 printf "%s\n" "/* $configure_input */" >&1 \ 40837 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 40838 } >"$ac_tmp/config.h" \ 40839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 40840 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 40841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 40842printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 40843 else 40844 rm -f "$ac_file" 40845 mv "$ac_tmp/config.h" "$ac_file" \ 40846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 40847 fi 40848 else 40849 printf "%s\n" "/* $configure_input */" >&1 \ 40850 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 40851 || as_fn_error $? "could not create -" "$LINENO" 5 40852 fi 40853# Compute "$ac_file"'s index in $config_headers. 40854_am_arg="$ac_file" 40855_am_stamp_count=1 40856for _am_header in $config_headers :; do 40857 case $_am_header in 40858 $_am_arg | $_am_arg:* ) 40859 break ;; 40860 * ) 40861 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 40862 esac 40863done 40864echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 40865$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 40866 X"$_am_arg" : 'X\(//\)[^/]' \| \ 40867 X"$_am_arg" : 'X\(//\)$' \| \ 40868 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 40869printf "%s\n" X"$_am_arg" | 40870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 40871 s//\1/ 40872 q 40873 } 40874 /^X\(\/\/\)[^/].*/{ 40875 s//\1/ 40876 q 40877 } 40878 /^X\(\/\/\)$/{ 40879 s//\1/ 40880 q 40881 } 40882 /^X\(\/\).*/{ 40883 s//\1/ 40884 q 40885 } 40886 s/.*/./; q'`/stamp-h$_am_stamp_count 40887 ;; 40888 40889 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 40890printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 40891 ;; 40892 esac 40893 40894 40895 case $ac_file$ac_mode in 40896 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 40897 # Older Autoconf quotes --file arguments for eval, but not when files 40898 # are listed without --file. Let's play safe and only enable the eval 40899 # if we detect the quoting. 40900 # TODO: see whether this extra hack can be removed once we start 40901 # requiring Autoconf 2.70 or later. 40902 case $CONFIG_FILES in #( 40903 *\'*) : 40904 eval set x "$CONFIG_FILES" ;; #( 40905 *) : 40906 set x $CONFIG_FILES ;; #( 40907 *) : 40908 ;; 40909esac 40910 shift 40911 # Used to flag and report bootstrapping failures. 40912 am_rc=0 40913 for am_mf 40914 do 40915 # Strip MF so we end up with the name of the file. 40916 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 40917 # Check whether this is an Automake generated Makefile which includes 40918 # dependency-tracking related rules and includes. 40919 # Grep'ing the whole file directly is not great: AIX grep has a line 40920 # limit of 2048, but all sed's we know have understand at least 4000. 40921 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 40922 || continue 40923 am_dirpart=`$as_dirname -- "$am_mf" || 40924$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 40925 X"$am_mf" : 'X\(//\)[^/]' \| \ 40926 X"$am_mf" : 'X\(//\)$' \| \ 40927 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 40928printf "%s\n" X"$am_mf" | 40929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 40930 s//\1/ 40931 q 40932 } 40933 /^X\(\/\/\)[^/].*/{ 40934 s//\1/ 40935 q 40936 } 40937 /^X\(\/\/\)$/{ 40938 s//\1/ 40939 q 40940 } 40941 /^X\(\/\).*/{ 40942 s//\1/ 40943 q 40944 } 40945 s/.*/./; q'` 40946 am_filepart=`$as_basename -- "$am_mf" || 40947$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 40948 X"$am_mf" : 'X\(//\)$' \| \ 40949 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 40950printf "%s\n" X/"$am_mf" | 40951 sed '/^.*\/\([^/][^/]*\)\/*$/{ 40952 s//\1/ 40953 q 40954 } 40955 /^X\/\(\/\/\)$/{ 40956 s//\1/ 40957 q 40958 } 40959 /^X\/\(\/\).*/{ 40960 s//\1/ 40961 q 40962 } 40963 s/.*/./; q'` 40964 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 40965 && sed -e '/# am--include-marker/d' "$am_filepart" \ 40966 | $MAKE -f - am--depfiles" >&5 40967 (cd "$am_dirpart" \ 40968 && sed -e '/# am--include-marker/d' "$am_filepart" \ 40969 | $MAKE -f - am--depfiles) >&5 2>&5 40970 ac_status=$? 40971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 40972 (exit $ac_status); } || am_rc=$? 40973 done 40974 if test $am_rc -ne 0; then 40975 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40976printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 40977as_fn_error $? "Something went wrong bootstrapping makefile fragments 40978 for automatic dependency tracking. If GNU make was not used, consider 40979 re-running the configure script with MAKE=\"gmake\" (or whatever is 40980 necessary). You can also try re-running configure with the 40981 '--disable-dependency-tracking' option to at least be able to build 40982 the package (albeit without support for automatic dependency tracking). 40983See \`config.log' for more details" "$LINENO" 5; } 40984 fi 40985 { am_dirpart=; unset am_dirpart;} 40986 { am_filepart=; unset am_filepart;} 40987 { am_mf=; unset am_mf;} 40988 { am_rc=; unset am_rc;} 40989 rm -f conftest-deps.mk 40990} 40991 ;; 40992 "libtool":C) 40993 40994 # See if we are running on zsh, and set the options that allow our 40995 # commands through without removal of \ escapes. 40996 if test -n "${ZSH_VERSION+set}"; then 40997 setopt NO_GLOB_SUBST 40998 fi 40999 41000 cfgfile=${ofile}T 41001 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 41002 $RM "$cfgfile" 41003 41004 cat <<_LT_EOF >> "$cfgfile" 41005#! $SHELL 41006# Generated automatically by $as_me ($PACKAGE) $VERSION 41007# NOTE: Changes made to this file will be lost: look at ltmain.sh. 41008 41009# Provide generalized library-building support services. 41010# Written by Gordon Matzigkeit, 1996 41011 41012# Copyright (C) 2014 Free Software Foundation, Inc. 41013# This is free software; see the source for copying conditions. There is NO 41014# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 41015 41016# GNU Libtool is free software; you can redistribute it and/or modify 41017# it under the terms of the GNU General Public License as published by 41018# the Free Software Foundation; either version 2 of of the License, or 41019# (at your option) any later version. 41020# 41021# As a special exception to the GNU General Public License, if you 41022# distribute this file as part of a program or library that is built 41023# using GNU Libtool, you may include this file under the same 41024# distribution terms that you use for the rest of that program. 41025# 41026# GNU Libtool is distributed in the hope that it will be useful, but 41027# WITHOUT ANY WARRANTY; without even the implied warranty of 41028# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 41029# GNU General Public License for more details. 41030# 41031# You should have received a copy of the GNU General Public License 41032# along with this program. If not, see <http://www.gnu.org/licenses/>. 41033 41034 41035# The names of the tagged configurations supported by this script. 41036available_tags='CXX ' 41037 41038# Configured defaults for sys_lib_dlsearch_path munging. 41039: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 41040 41041# ### BEGIN LIBTOOL CONFIG 41042 41043# Whether or not to build shared libraries. 41044build_libtool_libs=$enable_shared 41045 41046# Which release of libtool.m4 was used? 41047macro_version=$macro_version 41048macro_revision=$macro_revision 41049 41050# Whether or not to build static libraries. 41051build_old_libs=$enable_static 41052 41053# What type of objects to build. 41054pic_mode=$pic_mode 41055 41056# Whether or not to optimize for fast installation. 41057fast_install=$enable_fast_install 41058 41059# Shared archive member basename,for filename based shared library versioning on AIX. 41060shared_archive_member_spec=$shared_archive_member_spec 41061 41062# Shell to use when invoking shell scripts. 41063SHELL=$lt_SHELL 41064 41065# An echo program that protects backslashes. 41066ECHO=$lt_ECHO 41067 41068# The PATH separator for the build system. 41069PATH_SEPARATOR=$lt_PATH_SEPARATOR 41070 41071# The host system. 41072host_alias=$host_alias 41073host=$host 41074host_os=$host_os 41075 41076# The build system. 41077build_alias=$build_alias 41078build=$build 41079build_os=$build_os 41080 41081# A sed program that does not truncate output. 41082SED=$lt_SED 41083 41084# Sed that helps us avoid accidentally triggering echo(1) options like -n. 41085Xsed="\$SED -e 1s/^X//" 41086 41087# A grep program that handles long lines. 41088GREP=$lt_GREP 41089 41090# An ERE matcher. 41091EGREP=$lt_EGREP 41092 41093# A literal string matcher. 41094FGREP=$lt_FGREP 41095 41096# A BSD- or MS-compatible name lister. 41097NM=$lt_NM 41098 41099# Whether we need soft or hard links. 41100LN_S=$lt_LN_S 41101 41102# What is the maximum length of a command? 41103max_cmd_len=$max_cmd_len 41104 41105# Object file suffix (normally "o"). 41106objext=$ac_objext 41107 41108# Executable file suffix (normally ""). 41109exeext=$exeext 41110 41111# whether the shell understands "unset". 41112lt_unset=$lt_unset 41113 41114# turn spaces into newlines. 41115SP2NL=$lt_lt_SP2NL 41116 41117# turn newlines into spaces. 41118NL2SP=$lt_lt_NL2SP 41119 41120# convert \$build file names to \$host format. 41121to_host_file_cmd=$lt_cv_to_host_file_cmd 41122 41123# convert \$build files to toolchain format. 41124to_tool_file_cmd=$lt_cv_to_tool_file_cmd 41125 41126# An object symbol dumper. 41127OBJDUMP=$lt_OBJDUMP 41128 41129# Method to check whether dependent libraries are shared objects. 41130deplibs_check_method=$lt_deplibs_check_method 41131 41132# Command to use when deplibs_check_method = "file_magic". 41133file_magic_cmd=$lt_file_magic_cmd 41134 41135# How to find potential files when deplibs_check_method = "file_magic". 41136file_magic_glob=$lt_file_magic_glob 41137 41138# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 41139want_nocaseglob=$lt_want_nocaseglob 41140 41141# DLL creation program. 41142DLLTOOL=$lt_DLLTOOL 41143 41144# Command to associate shared and link libraries. 41145sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 41146 41147# The archiver. 41148AR=$lt_AR 41149 41150# Flags to create an archive. 41151AR_FLAGS=$lt_AR_FLAGS 41152 41153# How to feed a file listing to the archiver. 41154archiver_list_spec=$lt_archiver_list_spec 41155 41156# A symbol stripping program. 41157STRIP=$lt_STRIP 41158 41159# Commands used to install an old-style archive. 41160RANLIB=$lt_RANLIB 41161old_postinstall_cmds=$lt_old_postinstall_cmds 41162old_postuninstall_cmds=$lt_old_postuninstall_cmds 41163 41164# Whether to use a lock for old archive extraction. 41165lock_old_archive_extraction=$lock_old_archive_extraction 41166 41167# A C compiler. 41168LTCC=$lt_CC 41169 41170# LTCC compiler flags. 41171LTCFLAGS=$lt_CFLAGS 41172 41173# Take the output of nm and produce a listing of raw symbols and C names. 41174global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 41175 41176# Transform the output of nm in a proper C declaration. 41177global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 41178 41179# Transform the output of nm into a list of symbols to manually relocate. 41180global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 41181 41182# Transform the output of nm in a C name address pair. 41183global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 41184 41185# Transform the output of nm in a C name address pair when lib prefix is needed. 41186global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 41187 41188# The name lister interface. 41189nm_interface=$lt_lt_cv_nm_interface 41190 41191# Specify filename containing input files for \$NM. 41192nm_file_list_spec=$lt_nm_file_list_spec 41193 41194# The root where to search for dependent libraries,and where our libraries should be installed. 41195lt_sysroot=$lt_sysroot 41196 41197# Command to truncate a binary pipe. 41198lt_truncate_bin=$lt_lt_cv_truncate_bin 41199 41200# The name of the directory that contains temporary libtool files. 41201objdir=$objdir 41202 41203# Used to examine libraries when file_magic_cmd begins with "file". 41204MAGIC_CMD=$MAGIC_CMD 41205 41206# Must we lock files when doing compilation? 41207need_locks=$lt_need_locks 41208 41209# Manifest tool. 41210MANIFEST_TOOL=$lt_MANIFEST_TOOL 41211 41212# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 41213DSYMUTIL=$lt_DSYMUTIL 41214 41215# Tool to change global to local symbols on Mac OS X. 41216NMEDIT=$lt_NMEDIT 41217 41218# Tool to manipulate fat objects and archives on Mac OS X. 41219LIPO=$lt_LIPO 41220 41221# ldd/readelf like tool for Mach-O binaries on Mac OS X. 41222OTOOL=$lt_OTOOL 41223 41224# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 41225OTOOL64=$lt_OTOOL64 41226 41227# Old archive suffix (normally "a"). 41228libext=$libext 41229 41230# Shared library suffix (normally ".so"). 41231shrext_cmds=$lt_shrext_cmds 41232 41233# The commands to extract the exported symbol list from a shared archive. 41234extract_expsyms_cmds=$lt_extract_expsyms_cmds 41235 41236# Variables whose values should be saved in libtool wrapper scripts and 41237# restored at link time. 41238variables_saved_for_relink=$lt_variables_saved_for_relink 41239 41240# Do we need the "lib" prefix for modules? 41241need_lib_prefix=$need_lib_prefix 41242 41243# Do we need a version for libraries? 41244need_version=$need_version 41245 41246# Library versioning type. 41247version_type=$version_type 41248 41249# Shared library runtime path variable. 41250runpath_var=$runpath_var 41251 41252# Shared library path variable. 41253shlibpath_var=$shlibpath_var 41254 41255# Is shlibpath searched before the hard-coded library search path? 41256shlibpath_overrides_runpath=$shlibpath_overrides_runpath 41257 41258# Format of library name prefix. 41259libname_spec=$lt_libname_spec 41260 41261# List of archive names. First name is the real one, the rest are links. 41262# The last name is the one that the linker finds with -lNAME 41263library_names_spec=$lt_library_names_spec 41264 41265# The coded name of the library, if different from the real name. 41266soname_spec=$lt_soname_spec 41267 41268# Permission mode override for installation of shared libraries. 41269install_override_mode=$lt_install_override_mode 41270 41271# Command to use after installation of a shared archive. 41272postinstall_cmds=$lt_postinstall_cmds 41273 41274# Command to use after uninstallation of a shared archive. 41275postuninstall_cmds=$lt_postuninstall_cmds 41276 41277# Commands used to finish a libtool library installation in a directory. 41278finish_cmds=$lt_finish_cmds 41279 41280# As "finish_cmds", except a single script fragment to be evaled but 41281# not shown. 41282finish_eval=$lt_finish_eval 41283 41284# Whether we should hardcode library paths into libraries. 41285hardcode_into_libs=$hardcode_into_libs 41286 41287# Compile-time system search path for libraries. 41288sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 41289 41290# Detected run-time system search path for libraries. 41291sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 41292 41293# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 41294configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 41295 41296# Whether dlopen is supported. 41297dlopen_support=$enable_dlopen 41298 41299# Whether dlopen of programs is supported. 41300dlopen_self=$enable_dlopen_self 41301 41302# Whether dlopen of statically linked programs is supported. 41303dlopen_self_static=$enable_dlopen_self_static 41304 41305# Commands to strip libraries. 41306old_striplib=$lt_old_striplib 41307striplib=$lt_striplib 41308 41309 41310# The linker used to build libraries. 41311LD=$lt_LD 41312 41313# How to create reloadable object files. 41314reload_flag=$lt_reload_flag 41315reload_cmds=$lt_reload_cmds 41316 41317# Commands used to build an old-style archive. 41318old_archive_cmds=$lt_old_archive_cmds 41319 41320# A language specific compiler. 41321CC=$lt_compiler 41322 41323# Is the compiler the GNU compiler? 41324with_gcc=$GCC 41325 41326# Compiler flag to turn off builtin functions. 41327no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 41328 41329# Additional compiler flags for building library objects. 41330pic_flag=$lt_lt_prog_compiler_pic 41331 41332# How to pass a linker flag through the compiler. 41333wl=$lt_lt_prog_compiler_wl 41334 41335# Compiler flag to prevent dynamic linking. 41336link_static_flag=$lt_lt_prog_compiler_static 41337 41338# Does compiler simultaneously support -c and -o options? 41339compiler_c_o=$lt_lt_cv_prog_compiler_c_o 41340 41341# Whether or not to add -lc for building shared libraries. 41342build_libtool_need_lc=$archive_cmds_need_lc 41343 41344# Whether or not to disallow shared libs when runtime libs are static. 41345allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 41346 41347# Compiler flag to allow reflexive dlopens. 41348export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 41349 41350# Compiler flag to generate shared objects directly from archives. 41351whole_archive_flag_spec=$lt_whole_archive_flag_spec 41352 41353# Whether the compiler copes with passing no objects directly. 41354compiler_needs_object=$lt_compiler_needs_object 41355 41356# Create an old-style archive from a shared archive. 41357old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 41358 41359# Create a temporary old-style archive to link instead of a shared archive. 41360old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 41361 41362# Commands used to build a shared archive. 41363archive_cmds=$lt_archive_cmds 41364archive_expsym_cmds=$lt_archive_expsym_cmds 41365 41366# Commands used to build a loadable module if different from building 41367# a shared archive. 41368module_cmds=$lt_module_cmds 41369module_expsym_cmds=$lt_module_expsym_cmds 41370 41371# Whether we are building with GNU ld or not. 41372with_gnu_ld=$lt_with_gnu_ld 41373 41374# Flag that allows shared libraries with undefined symbols to be built. 41375allow_undefined_flag=$lt_allow_undefined_flag 41376 41377# Flag that enforces no undefined symbols. 41378no_undefined_flag=$lt_no_undefined_flag 41379 41380# Flag to hardcode \$libdir into a binary during linking. 41381# This must work even if \$libdir does not exist 41382hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 41383 41384# Whether we need a single "-rpath" flag with a separated argument. 41385hardcode_libdir_separator=$lt_hardcode_libdir_separator 41386 41387# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 41388# DIR into the resulting binary. 41389hardcode_direct=$hardcode_direct 41390 41391# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 41392# DIR into the resulting binary and the resulting library dependency is 41393# "absolute",i.e impossible to change by setting \$shlibpath_var if the 41394# library is relocated. 41395hardcode_direct_absolute=$hardcode_direct_absolute 41396 41397# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 41398# into the resulting binary. 41399hardcode_minus_L=$hardcode_minus_L 41400 41401# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 41402# into the resulting binary. 41403hardcode_shlibpath_var=$hardcode_shlibpath_var 41404 41405# Set to "yes" if building a shared library automatically hardcodes DIR 41406# into the library and all subsequent libraries and executables linked 41407# against it. 41408hardcode_automatic=$hardcode_automatic 41409 41410# Set to yes if linker adds runtime paths of dependent libraries 41411# to runtime path list. 41412inherit_rpath=$inherit_rpath 41413 41414# Whether libtool must link a program against all its dependency libraries. 41415link_all_deplibs=$link_all_deplibs 41416 41417# Set to "yes" if exported symbols are required. 41418always_export_symbols=$always_export_symbols 41419 41420# The commands to list exported symbols. 41421export_symbols_cmds=$lt_export_symbols_cmds 41422 41423# Symbols that should not be listed in the preloaded symbols. 41424exclude_expsyms=$lt_exclude_expsyms 41425 41426# Symbols that must always be exported. 41427include_expsyms=$lt_include_expsyms 41428 41429# Commands necessary for linking programs (against libraries) with templates. 41430prelink_cmds=$lt_prelink_cmds 41431 41432# Commands necessary for finishing linking programs. 41433postlink_cmds=$lt_postlink_cmds 41434 41435# Specify filename containing input files. 41436file_list_spec=$lt_file_list_spec 41437 41438# How to hardcode a shared library path into an executable. 41439hardcode_action=$hardcode_action 41440 41441# The directories searched by this compiler when creating a shared library. 41442compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 41443 41444# Dependencies to place before and after the objects being linked to 41445# create a shared library. 41446predep_objects=$lt_predep_objects 41447postdep_objects=$lt_postdep_objects 41448predeps=$lt_predeps 41449postdeps=$lt_postdeps 41450 41451# The library search path used internally by the compiler when linking 41452# a shared library. 41453compiler_lib_search_path=$lt_compiler_lib_search_path 41454 41455# ### END LIBTOOL CONFIG 41456 41457_LT_EOF 41458 41459 cat <<'_LT_EOF' >> "$cfgfile" 41460 41461# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 41462 41463# func_munge_path_list VARIABLE PATH 41464# ----------------------------------- 41465# VARIABLE is name of variable containing _space_ separated list of 41466# directories to be munged by the contents of PATH, which is string 41467# having a format: 41468# "DIR[:DIR]:" 41469# string "DIR[ DIR]" will be prepended to VARIABLE 41470# ":DIR[:DIR]" 41471# string "DIR[ DIR]" will be appended to VARIABLE 41472# "DIRP[:DIRP]::[DIRA:]DIRA" 41473# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 41474# "DIRA[ DIRA]" will be appended to VARIABLE 41475# "DIR[:DIR]" 41476# VARIABLE will be replaced by "DIR[ DIR]" 41477func_munge_path_list () 41478{ 41479 case x$2 in 41480 x) 41481 ;; 41482 *:) 41483 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 41484 ;; 41485 x:*) 41486 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 41487 ;; 41488 *::*) 41489 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 41490 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 41491 ;; 41492 *) 41493 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 41494 ;; 41495 esac 41496} 41497 41498 41499# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 41500func_cc_basename () 41501{ 41502 for cc_temp in $*""; do 41503 case $cc_temp in 41504 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 41505 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 41506 \-*) ;; 41507 *) break;; 41508 esac 41509 done 41510 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 41511} 41512 41513 41514# ### END FUNCTIONS SHARED WITH CONFIGURE 41515 41516_LT_EOF 41517 41518 case $host_os in 41519 aix3*) 41520 cat <<\_LT_EOF >> "$cfgfile" 41521# AIX sometimes has problems with the GCC collect2 program. For some 41522# reason, if we set the COLLECT_NAMES environment variable, the problems 41523# vanish in a puff of smoke. 41524if test set != "${COLLECT_NAMES+set}"; then 41525 COLLECT_NAMES= 41526 export COLLECT_NAMES 41527fi 41528_LT_EOF 41529 ;; 41530 esac 41531 41532 41533 41534ltmain=$ac_aux_dir/ltmain.sh 41535 41536 41537 # We use sed instead of cat because bash on DJGPP gets confused if 41538 # if finds mixed CR/LF and LF-only lines. Since sed operates in 41539 # text mode, it properly converts lines to CR/LF. This bash problem 41540 # is reportedly fixed, but why not run on old versions too? 41541 sed '$q' "$ltmain" >> "$cfgfile" \ 41542 || (rm -f "$cfgfile"; exit 1) 41543 41544 mv -f "$cfgfile" "$ofile" || 41545 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 41546 chmod +x "$ofile" 41547 41548 41549 cat <<_LT_EOF >> "$ofile" 41550 41551# ### BEGIN LIBTOOL TAG CONFIG: CXX 41552 41553# The linker used to build libraries. 41554LD=$lt_LD_CXX 41555 41556# How to create reloadable object files. 41557reload_flag=$lt_reload_flag_CXX 41558reload_cmds=$lt_reload_cmds_CXX 41559 41560# Commands used to build an old-style archive. 41561old_archive_cmds=$lt_old_archive_cmds_CXX 41562 41563# A language specific compiler. 41564CC=$lt_compiler_CXX 41565 41566# Is the compiler the GNU compiler? 41567with_gcc=$GCC_CXX 41568 41569# Compiler flag to turn off builtin functions. 41570no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 41571 41572# Additional compiler flags for building library objects. 41573pic_flag=$lt_lt_prog_compiler_pic_CXX 41574 41575# How to pass a linker flag through the compiler. 41576wl=$lt_lt_prog_compiler_wl_CXX 41577 41578# Compiler flag to prevent dynamic linking. 41579link_static_flag=$lt_lt_prog_compiler_static_CXX 41580 41581# Does compiler simultaneously support -c and -o options? 41582compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 41583 41584# Whether or not to add -lc for building shared libraries. 41585build_libtool_need_lc=$archive_cmds_need_lc_CXX 41586 41587# Whether or not to disallow shared libs when runtime libs are static. 41588allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 41589 41590# Compiler flag to allow reflexive dlopens. 41591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 41592 41593# Compiler flag to generate shared objects directly from archives. 41594whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 41595 41596# Whether the compiler copes with passing no objects directly. 41597compiler_needs_object=$lt_compiler_needs_object_CXX 41598 41599# Create an old-style archive from a shared archive. 41600old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 41601 41602# Create a temporary old-style archive to link instead of a shared archive. 41603old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 41604 41605# Commands used to build a shared archive. 41606archive_cmds=$lt_archive_cmds_CXX 41607archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 41608 41609# Commands used to build a loadable module if different from building 41610# a shared archive. 41611module_cmds=$lt_module_cmds_CXX 41612module_expsym_cmds=$lt_module_expsym_cmds_CXX 41613 41614# Whether we are building with GNU ld or not. 41615with_gnu_ld=$lt_with_gnu_ld_CXX 41616 41617# Flag that allows shared libraries with undefined symbols to be built. 41618allow_undefined_flag=$lt_allow_undefined_flag_CXX 41619 41620# Flag that enforces no undefined symbols. 41621no_undefined_flag=$lt_no_undefined_flag_CXX 41622 41623# Flag to hardcode \$libdir into a binary during linking. 41624# This must work even if \$libdir does not exist 41625hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 41626 41627# Whether we need a single "-rpath" flag with a separated argument. 41628hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 41629 41630# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 41631# DIR into the resulting binary. 41632hardcode_direct=$hardcode_direct_CXX 41633 41634# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 41635# DIR into the resulting binary and the resulting library dependency is 41636# "absolute",i.e impossible to change by setting \$shlibpath_var if the 41637# library is relocated. 41638hardcode_direct_absolute=$hardcode_direct_absolute_CXX 41639 41640# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 41641# into the resulting binary. 41642hardcode_minus_L=$hardcode_minus_L_CXX 41643 41644# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 41645# into the resulting binary. 41646hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 41647 41648# Set to "yes" if building a shared library automatically hardcodes DIR 41649# into the library and all subsequent libraries and executables linked 41650# against it. 41651hardcode_automatic=$hardcode_automatic_CXX 41652 41653# Set to yes if linker adds runtime paths of dependent libraries 41654# to runtime path list. 41655inherit_rpath=$inherit_rpath_CXX 41656 41657# Whether libtool must link a program against all its dependency libraries. 41658link_all_deplibs=$link_all_deplibs_CXX 41659 41660# Set to "yes" if exported symbols are required. 41661always_export_symbols=$always_export_symbols_CXX 41662 41663# The commands to list exported symbols. 41664export_symbols_cmds=$lt_export_symbols_cmds_CXX 41665 41666# Symbols that should not be listed in the preloaded symbols. 41667exclude_expsyms=$lt_exclude_expsyms_CXX 41668 41669# Symbols that must always be exported. 41670include_expsyms=$lt_include_expsyms_CXX 41671 41672# Commands necessary for linking programs (against libraries) with templates. 41673prelink_cmds=$lt_prelink_cmds_CXX 41674 41675# Commands necessary for finishing linking programs. 41676postlink_cmds=$lt_postlink_cmds_CXX 41677 41678# Specify filename containing input files. 41679file_list_spec=$lt_file_list_spec_CXX 41680 41681# How to hardcode a shared library path into an executable. 41682hardcode_action=$hardcode_action_CXX 41683 41684# The directories searched by this compiler when creating a shared library. 41685compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 41686 41687# Dependencies to place before and after the objects being linked to 41688# create a shared library. 41689predep_objects=$lt_predep_objects_CXX 41690postdep_objects=$lt_postdep_objects_CXX 41691predeps=$lt_predeps_CXX 41692postdeps=$lt_postdeps_CXX 41693 41694# The library search path used internally by the compiler when linking 41695# a shared library. 41696compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 41697 41698# ### END LIBTOOL TAG CONFIG: CXX 41699_LT_EOF 41700 41701 ;; 41702 "po-directories":C) 41703 for ac_file in $CONFIG_FILES; do 41704 # Support "outfile[:infile[:infile...]]" 41705 case "$ac_file" in 41706 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 41707 esac 41708 # PO directories have a Makefile.in generated from Makefile.in.in. 41709 case "$ac_file" in */Makefile.in) 41710 # Adjust a relative srcdir. 41711 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 41712 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 41713 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 41714 # In autoconf-2.13 it is called $ac_given_srcdir. 41715 # In autoconf-2.50 it is called $srcdir. 41716 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 41717 case "$ac_given_srcdir" in 41718 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 41719 /*) top_srcdir="$ac_given_srcdir" ;; 41720 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 41721 esac 41722 # Treat a directory as a PO directory if and only if it has a 41723 # POTFILES.in file. This allows packages to have multiple PO 41724 # directories under different names or in different locations. 41725 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 41726 rm -f "$ac_dir/POTFILES" 41727 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 41728 gt_tab=`printf '\t'` 41729 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 41730 POMAKEFILEDEPS="POTFILES.in" 41731 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 41732 # on $ac_dir but don't depend on user-specified configuration 41733 # parameters. 41734 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 41735 # The LINGUAS file contains the set of available languages. 41736 if test -n "$OBSOLETE_ALL_LINGUAS"; then 41737 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 41738 fi 41739 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 41740 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 41741 else 41742 # The set of available languages was given in configure.in. 41743 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS 41744 fi 41745 # Compute POFILES 41746 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 41747 # Compute UPDATEPOFILES 41748 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 41749 # Compute DUMMYPOFILES 41750 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 41751 # Compute GMOFILES 41752 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 41753 case "$ac_given_srcdir" in 41754 .) srcdirpre= ;; 41755 *) srcdirpre='$(srcdir)/' ;; 41756 esac 41757 POFILES= 41758 UPDATEPOFILES= 41759 DUMMYPOFILES= 41760 GMOFILES= 41761 for lang in $ALL_LINGUAS; do 41762 POFILES="$POFILES $srcdirpre$lang.po" 41763 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 41764 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 41765 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 41766 done 41767 # CATALOGS depends on both $ac_dir and the user's LINGUAS 41768 # environment variable. 41769 INST_LINGUAS= 41770 if test -n "$ALL_LINGUAS"; then 41771 for presentlang in $ALL_LINGUAS; do 41772 useit=no 41773 if test "%UNSET%" != "$LINGUAS"; then 41774 desiredlanguages="$LINGUAS" 41775 else 41776 desiredlanguages="$ALL_LINGUAS" 41777 fi 41778 for desiredlang in $desiredlanguages; do 41779 # Use the presentlang catalog if desiredlang is 41780 # a. equal to presentlang, or 41781 # b. a variant of presentlang (because in this case, 41782 # presentlang can be used as a fallback for messages 41783 # which are not translated in the desiredlang catalog). 41784 case "$desiredlang" in 41785 "$presentlang"*) useit=yes;; 41786 esac 41787 done 41788 if test $useit = yes; then 41789 INST_LINGUAS="$INST_LINGUAS $presentlang" 41790 fi 41791 done 41792 fi 41793 CATALOGS= 41794 if test -n "$INST_LINGUAS"; then 41795 for lang in $INST_LINGUAS; do 41796 CATALOGS="$CATALOGS $lang.gmo" 41797 done 41798 fi 41799 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 41800 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 41801 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 41802 if test -f "$f"; then 41803 case "$f" in 41804 *.orig | *.bak | *~) ;; 41805 *) cat "$f" >> "$ac_dir/Makefile" ;; 41806 esac 41807 fi 41808 done 41809 fi 41810 ;; 41811 esac 41812 done ;; 41813 "fc_default-5":C) if test x`uname -s` = xBeOS ; then 41814 if grep '#define HAVE_SYS_UIO_H 1' fc_config.h >/dev/null 2>&1 ; then 41815 echo kluging fc_config.h 41816 mv -f fc_config.h fc_config.h.tmp 41817 sed -e 's/#define HAVE_SYS_UIO_H 1/#undef HAVE_SYS_UIO_H/g' fc_config.h.tmp > fc_config.h 41818 rm fc_config.h.tmp 41819 fi 41820 fi ;; 41821 "fcgui":F) chmod +x fcgui ;; 41822 "fcser":F) chmod +x fcser ;; 41823 "fcruledit":F) chmod +x fcruledit ;; 41824 41825 esac 41826done # for ac_tag 41827 41828 41829as_fn_exit 0 41830_ACEOF 41831ac_clean_files=$ac_clean_files_save 41832 41833test $ac_write_fail = 0 || 41834 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 41835 41836 41837# configure is writing to config.log, and then calls config.status. 41838# config.status does its own redirection, appending to config.log. 41839# Unfortunately, on DOS this fails, as config.log is still kept open 41840# by configure, so config.status won't be able to write to it; its 41841# output is simply discarded. So we exec the FD to /dev/null, 41842# effectively closing config.log, so it can be properly (re)opened and 41843# appended to by config.status. When coming back to configure, we 41844# need to make the FD available again. 41845if test "$no_create" != yes; then 41846 ac_cs_success=: 41847 ac_config_status_args= 41848 test "$silent" = yes && 41849 ac_config_status_args="$ac_config_status_args --quiet" 41850 exec 5>/dev/null 41851 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 41852 exec 5>>config.log 41853 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 41854 # would make configure fail if this is the last instruction. 41855 $ac_cs_success || as_fn_exit 1 41856fi 41857if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 41858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 41859printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 41860fi 41861 41862 41863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: 41864****************** Configuration Summary ****************** 41865 41866 == General build options == 41867 Shared libraries: $enable_shared 41868 Debugging support: $enable_debug 41869 Profiling support: $enable_gprof 41870 IPv6 support: $enable_ipv6 41871 Map image toolkits: $enable_mapimg 41872 ppm: built-in 41873 MagickWand: $mapimg_magickwand 41874 41875 == Client == 41876 Build freeciv client: $client 41877 41878 Maintained client frontends: 41879 Gtk-3.0: $gui_gtk3 41880 Gtk-2.0: $gui_gtk2 41881 Gtk-3.22: $gui_gtk3_22 41882 SDL: $gui_sdl 41883 QT: $gui_qt 41884 Stub: $gui_stub 41885 41886 In-development client frontends: 41887 (these are not yet ready for general use) 41888 SDL2: $gui_sdl2 41889 41890 Not maintained client frontends: 41891 Xaw: $gui_xaw 41892 41893 == Server == 41894 Build freeciv server: $server 41895 AI modules support: $enable_aimodules 41896 Database support: $enable_fcdb 41897 mysql: $fcdb_mysql 41898 postgres: $fcdb_postgres 41899 sqlite3: $fcdb_sqlite3 41900 41901 == Tools == 41902 Modpack installers: $fcmp_list 41903 Ruleset editor: $ruledit 41904 Manual generator: $fcmanual 41905" >&5 41906printf "%s\n" "$as_me: 41907****************** Configuration Summary ****************** 41908 41909 == General build options == 41910 Shared libraries: $enable_shared 41911 Debugging support: $enable_debug 41912 Profiling support: $enable_gprof 41913 IPv6 support: $enable_ipv6 41914 Map image toolkits: $enable_mapimg 41915 ppm: built-in 41916 MagickWand: $mapimg_magickwand 41917 41918 == Client == 41919 Build freeciv client: $client 41920 41921 Maintained client frontends: 41922 Gtk-3.0: $gui_gtk3 41923 Gtk-2.0: $gui_gtk2 41924 Gtk-3.22: $gui_gtk3_22 41925 SDL: $gui_sdl 41926 QT: $gui_qt 41927 Stub: $gui_stub 41928 41929 In-development client frontends: 41930 (these are not yet ready for general use) 41931 SDL2: $gui_sdl2 41932 41933 Not maintained client frontends: 41934 Xaw: $gui_xaw 41935 41936 == Server == 41937 Build freeciv server: $server 41938 AI modules support: $enable_aimodules 41939 Database support: $enable_fcdb 41940 mysql: $fcdb_mysql 41941 postgres: $fcdb_postgres 41942 sqlite3: $fcdb_sqlite3 41943 41944 == Tools == 41945 Modpack installers: $fcmp_list 41946 Ruleset editor: $ruledit 41947 Manual generator: $fcmanual 41948" >&6;} 41949 41950 41951 41952# Check whether --with-missinglist was given. 41953if test ${with_missinglist+y} 41954then : 41955 withval=$with_missinglist; list_missing_features=${withval} 41956else $as_nop 41957 list_missing_features=no 41958fi 41959 41960 41961if test "x$list_missing_features" = "xyes" ; then 41962 41963 if test "x$feature_readline" = "xmissing" ; then 41964 missing_list="${missing_list} 41965readline" 41966 if test "x" != "x" ; then 41967 missing_list="${missing_list} - requires " 41968 fi 41969 fi 41970 41971 41972 if test "x$feature_sound" = "xmissing" ; then 41973 missing_list="${missing_list} 41974sound" 41975 if test "xSDL_mixer" != "x" ; then 41976 missing_list="${missing_list} - requires SDL_mixer" 41977 fi 41978 fi 41979 41980 41981 if test "x$feature_magickwand" = "xmissing" ; then 41982 missing_list="${missing_list} 41983additional mapimg formats" 41984 if test "xMagickWand" != "x" ; then 41985 missing_list="${missing_list} - requires MagickWand" 41986 fi 41987 fi 41988 41989 41990 if test "x$feature_bz2" = "xmissing" ; then 41991 missing_list="${missing_list} 41992bz2 savegame compression" 41993 if test "xlibbz2" != "x" ; then 41994 missing_list="${missing_list} - requires libbz2" 41995 fi 41996 fi 41997 41998 41999 if test "x$feature_xz" = "xmissing" ; then 42000 missing_list="${missing_list} 42001xz savegame compression" 42002 if test "xliblzma" != "x" ; then 42003 missing_list="${missing_list} - requires liblzma" 42004 fi 42005 fi 42006 42007 42008 if test "x$feature_thr_cond" = "xmissing" ; then 42009 missing_list="${missing_list} 42010threads suitable for threaded ai" 42011 if test "xpthreads" != "x" ; then 42012 missing_list="${missing_list} - requires pthreads" 42013 fi 42014 fi 42015 42016 42017 if test "x$feature_syslua" = "xmissing" ; then 42018 missing_list="${missing_list} 42019lua linked from system" 42020 if test "xlua-5.3" != "x" ; then 42021 missing_list="${missing_list} - requires lua-5.3" 42022 fi 42023 fi 42024 42025 42026 if test "x$feature_systolua_cmd" = "xmissing" ; then 42027 missing_list="${missing_list} 42028tolua command from system" 42029 if test "xtolua" != "x" ; then 42030 missing_list="${missing_list} - requires tolua" 42031 fi 42032 fi 42033 42034 42035 if test "x$feature_ipv6" = "xmissing" ; then 42036 missing_list="${missing_list} 42037IPv6 support" 42038 if test "xIPv6 functions" != "x" ; then 42039 missing_list="${missing_list} - requires IPv6 functions" 42040 fi 42041 fi 42042 42043 42044 if test "x$feature_ruledit" = "xmissing" ; then 42045 missing_list="${missing_list} 42046Ruleset Editor" 42047 if test "xQt5 development packages" != "x" ; then 42048 missing_list="${missing_list} - requires Qt5 development packages" 42049 fi 42050 fi 42051 42052 42053 if test "x$missing_list" = "x" ; then 42054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: 42055************** No optional features missing ***************" >&5 42056printf "%s\n" "$as_me: 42057************** No optional features missing ***************" >&6;} 42058 else 42059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: 42060**************** Missing optional features **************** 42061$missing_list" >&5 42062printf "%s\n" "$as_me: 42063**************** Missing optional features **************** 42064$missing_list" >&6;} 42065 fi 42066fi 42067 42068 42069