1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libgnomekbd 3.26.1. 4# 5# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomekbd>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomekbd 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libgnomekbd' 593PACKAGE_TARNAME='libgnomekbd' 594PACKAGE_VERSION='3.26.1' 595PACKAGE_STRING='libgnomekbd 3.26.1' 596PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomekbd' 597PACKAGE_URL='' 598 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635gt_needs= 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640HAVE_INTROSPECTION_FALSE 641HAVE_INTROSPECTION_TRUE 642INTROSPECTION_MAKEFILE 643INTROSPECTION_LIBS 644INTROSPECTION_CFLAGS 645INTROSPECTION_TYPELIBDIR 646INTROSPECTION_GIRDIR 647INTROSPECTION_GENERATE 648INTROSPECTION_COMPILER 649INTROSPECTION_SCANNER 650BUILD_TESTS_FALSE 651BUILD_TESTS_TRUE 652XLIB_LIBS 653XLIB_CFLAGS 654X_EXTRA_LIBS 655X_LIBS 656X_PRE_LIBS 657X_CFLAGS 658XMKMF 659LIBXKLAVIER_LIBS 660LIBXKLAVIER_CFLAGS 661GTK_LIBS 662GTK_CFLAGS 663GDK_LIBS 664GDK_CFLAGS 665GLIB_LIBS 666GLIB_CFLAGS 667LIBM 668GETTEXT_PACKAGE 669POSUB 670LTLIBINTL 671LIBINTL 672INTLLIBS 673LTLIBICONV 674LIBICONV 675INTL_MACOSX_LIBS 676XGETTEXT_EXTRA_OPTIONS 677MSGMERGE 678XGETTEXT_015 679XGETTEXT 680GMSGFMT_015 681MSGFMT_015 682GMSGFMT 683MSGFMT 684GETTEXT_MACRO_VERSION 685USE_NLS 686LT_SYS_LIBRARY_PATH 687OTOOL64 688OTOOL 689LIPO 690NMEDIT 691DSYMUTIL 692MANIFEST_TOOL 693RANLIB 694ac_ct_AR 695AR 696DLLTOOL 697OBJDUMP 698LN_S 699NM 700ac_ct_DUMPBIN 701DUMPBIN 702LD 703FGREP 704SED 705host_os 706host_vendor 707host_cpu 708host 709build_os 710build_vendor 711build_cpu 712build 713LIBTOOL 714EGREP 715GREP 716CPP 717am__fastdepCC_FALSE 718am__fastdepCC_TRUE 719CCDEPMODE 720am__nodep 721AMDEPBACKSLASH 722AMDEP_FALSE 723AMDEP_TRUE 724am__include 725DEPDIR 726OBJEXT 727EXEEXT 728ac_ct_CC 729CPPFLAGS 730LDFLAGS 731CFLAGS 732CC 733GSETTINGS_RULES 734GLIB_COMPILE_SCHEMAS 735gsettingsschemadir 736PKG_CONFIG_LIBDIR 737PKG_CONFIG_PATH 738PKG_CONFIG 739GSETTINGS_DISABLE_SCHEMAS_COMPILE 740LIBXKLAVIER_REQUIRED 741GTK_REQUIRED 742GDK_REQUIRED 743AM_BACKSLASH 744AM_DEFAULT_VERBOSITY 745AM_DEFAULT_V 746AM_V 747am__untar 748am__tar 749AMTAR 750am__leading_dot 751SET_MAKE 752AWK 753mkdir_p 754MKDIR_P 755INSTALL_STRIP_PROGRAM 756STRIP 757install_sh 758MAKEINFO 759AUTOHEADER 760AUTOMAKE 761AUTOCONF 762ACLOCAL 763VERSION 764PACKAGE 765CYGPATH_W 766am__isrc 767INSTALL_DATA 768INSTALL_SCRIPT 769INSTALL_PROGRAM 770VERSION_INFO 771target_alias 772host_alias 773build_alias 774LIBS 775ECHO_T 776ECHO_N 777ECHO_C 778DEFS 779mandir 780localedir 781libdir 782psdir 783pdfdir 784dvidir 785htmldir 786infodir 787docdir 788oldincludedir 789includedir 790localstatedir 791sharedstatedir 792sysconfdir 793datadir 794datarootdir 795libexecdir 796sbindir 797bindir 798program_transform_name 799prefix 800exec_prefix 801PACKAGE_URL 802PACKAGE_BUGREPORT 803PACKAGE_STRING 804PACKAGE_VERSION 805PACKAGE_TARNAME 806PACKAGE_NAME 807PATH_SEPARATOR 808SHELL 809am__quote' 810ac_subst_files='' 811ac_user_opts=' 812enable_option_checking 813enable_silent_rules 814enable_schemas_compile 815enable_dependency_tracking 816enable_shared 817enable_static 818with_pic 819enable_fast_install 820with_aix_soname 821with_gnu_ld 822with_sysroot 823enable_libtool_lock 824enable_nls 825enable_rpath 826with_libiconv_prefix 827with_libintl_prefix 828with_x 829enable_tests 830enable_introspection 831' 832 ac_precious_vars='build_alias 833host_alias 834target_alias 835PKG_CONFIG 836PKG_CONFIG_PATH 837PKG_CONFIG_LIBDIR 838GLIB_COMPILE_SCHEMAS 839CC 840CFLAGS 841LDFLAGS 842LIBS 843CPPFLAGS 844CPP 845LT_SYS_LIBRARY_PATH 846GLIB_CFLAGS 847GLIB_LIBS 848GDK_CFLAGS 849GDK_LIBS 850GTK_CFLAGS 851GTK_LIBS 852LIBXKLAVIER_CFLAGS 853LIBXKLAVIER_LIBS 854XMKMF' 855 856 857# Initialize some variables set by options. 858ac_init_help= 859ac_init_version=false 860ac_unrecognized_opts= 861ac_unrecognized_sep= 862# The variables have the same names as the options, with 863# dashes changed to underlines. 864cache_file=/dev/null 865exec_prefix=NONE 866no_create= 867no_recursion= 868prefix=NONE 869program_prefix=NONE 870program_suffix=NONE 871program_transform_name=s,x,x, 872silent= 873site= 874srcdir= 875verbose= 876x_includes=NONE 877x_libraries=NONE 878 879# Installation directory options. 880# These are left unexpanded so users can "make install exec_prefix=/foo" 881# and all the variables that are supposed to be based on exec_prefix 882# by default will actually change. 883# Use braces instead of parens because sh, perl, etc. also accept them. 884# (The list follows the same order as the GNU Coding Standards.) 885bindir='${exec_prefix}/bin' 886sbindir='${exec_prefix}/sbin' 887libexecdir='${exec_prefix}/libexec' 888datarootdir='${prefix}/share' 889datadir='${datarootdir}' 890sysconfdir='${prefix}/etc' 891sharedstatedir='${prefix}/com' 892localstatedir='${prefix}/var' 893includedir='${prefix}/include' 894oldincludedir='/usr/include' 895docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 896infodir='${datarootdir}/info' 897htmldir='${docdir}' 898dvidir='${docdir}' 899pdfdir='${docdir}' 900psdir='${docdir}' 901libdir='${exec_prefix}/lib' 902localedir='${datarootdir}/locale' 903mandir='${datarootdir}/man' 904 905ac_prev= 906ac_dashdash= 907for ac_option 908do 909 # If the previous option needs an argument, assign it. 910 if test -n "$ac_prev"; then 911 eval $ac_prev=\$ac_option 912 ac_prev= 913 continue 914 fi 915 916 case $ac_option in 917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 918 *=) ac_optarg= ;; 919 *) ac_optarg=yes ;; 920 esac 921 922 # Accept the important Cygnus configure options, so we can diagnose typos. 923 924 case $ac_dashdash$ac_option in 925 --) 926 ac_dashdash=yes ;; 927 928 -bindir | --bindir | --bindi | --bind | --bin | --bi) 929 ac_prev=bindir ;; 930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 931 bindir=$ac_optarg ;; 932 933 -build | --build | --buil | --bui | --bu) 934 ac_prev=build_alias ;; 935 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 936 build_alias=$ac_optarg ;; 937 938 -cache-file | --cache-file | --cache-fil | --cache-fi \ 939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 940 ac_prev=cache_file ;; 941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 943 cache_file=$ac_optarg ;; 944 945 --config-cache | -C) 946 cache_file=config.cache ;; 947 948 -datadir | --datadir | --datadi | --datad) 949 ac_prev=datadir ;; 950 -datadir=* | --datadir=* | --datadi=* | --datad=*) 951 datadir=$ac_optarg ;; 952 953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 954 | --dataroo | --dataro | --datar) 955 ac_prev=datarootdir ;; 956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 958 datarootdir=$ac_optarg ;; 959 960 -disable-* | --disable-*) 961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 962 # Reject names that are not valid shell variable names. 963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 964 as_fn_error $? "invalid feature name: $ac_useropt" 965 ac_useropt_orig=$ac_useropt 966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 967 case $ac_user_opts in 968 *" 969"enable_$ac_useropt" 970"*) ;; 971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 972 ac_unrecognized_sep=', ';; 973 esac 974 eval enable_$ac_useropt=no ;; 975 976 -docdir | --docdir | --docdi | --doc | --do) 977 ac_prev=docdir ;; 978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 979 docdir=$ac_optarg ;; 980 981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 982 ac_prev=dvidir ;; 983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 984 dvidir=$ac_optarg ;; 985 986 -enable-* | --enable-*) 987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 988 # Reject names that are not valid shell variable names. 989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 990 as_fn_error $? "invalid feature name: $ac_useropt" 991 ac_useropt_orig=$ac_useropt 992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 993 case $ac_user_opts in 994 *" 995"enable_$ac_useropt" 996"*) ;; 997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 998 ac_unrecognized_sep=', ';; 999 esac 1000 eval enable_$ac_useropt=\$ac_optarg ;; 1001 1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1004 | --exec | --exe | --ex) 1005 ac_prev=exec_prefix ;; 1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1008 | --exec=* | --exe=* | --ex=*) 1009 exec_prefix=$ac_optarg ;; 1010 1011 -gas | --gas | --ga | --g) 1012 # Obsolete; use --with-gas. 1013 with_gas=yes ;; 1014 1015 -help | --help | --hel | --he | -h) 1016 ac_init_help=long ;; 1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1018 ac_init_help=recursive ;; 1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1020 ac_init_help=short ;; 1021 1022 -host | --host | --hos | --ho) 1023 ac_prev=host_alias ;; 1024 -host=* | --host=* | --hos=* | --ho=*) 1025 host_alias=$ac_optarg ;; 1026 1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1028 ac_prev=htmldir ;; 1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1030 | --ht=*) 1031 htmldir=$ac_optarg ;; 1032 1033 -includedir | --includedir | --includedi | --included | --include \ 1034 | --includ | --inclu | --incl | --inc) 1035 ac_prev=includedir ;; 1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1037 | --includ=* | --inclu=* | --incl=* | --inc=*) 1038 includedir=$ac_optarg ;; 1039 1040 -infodir | --infodir | --infodi | --infod | --info | --inf) 1041 ac_prev=infodir ;; 1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1043 infodir=$ac_optarg ;; 1044 1045 -libdir | --libdir | --libdi | --libd) 1046 ac_prev=libdir ;; 1047 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1048 libdir=$ac_optarg ;; 1049 1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1051 | --libexe | --libex | --libe) 1052 ac_prev=libexecdir ;; 1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1054 | --libexe=* | --libex=* | --libe=*) 1055 libexecdir=$ac_optarg ;; 1056 1057 -localedir | --localedir | --localedi | --localed | --locale) 1058 ac_prev=localedir ;; 1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1060 localedir=$ac_optarg ;; 1061 1062 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1063 | --localstate | --localstat | --localsta | --localst | --locals) 1064 ac_prev=localstatedir ;; 1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1067 localstatedir=$ac_optarg ;; 1068 1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1070 ac_prev=mandir ;; 1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1072 mandir=$ac_optarg ;; 1073 1074 -nfp | --nfp | --nf) 1075 # Obsolete; use --without-fp. 1076 with_fp=no ;; 1077 1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1079 | --no-cr | --no-c | -n) 1080 no_create=yes ;; 1081 1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1084 no_recursion=yes ;; 1085 1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1088 | --oldin | --oldi | --old | --ol | --o) 1089 ac_prev=oldincludedir ;; 1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1093 oldincludedir=$ac_optarg ;; 1094 1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1096 ac_prev=prefix ;; 1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1098 prefix=$ac_optarg ;; 1099 1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1101 | --program-pre | --program-pr | --program-p) 1102 ac_prev=program_prefix ;; 1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1105 program_prefix=$ac_optarg ;; 1106 1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1108 | --program-suf | --program-su | --program-s) 1109 ac_prev=program_suffix ;; 1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1112 program_suffix=$ac_optarg ;; 1113 1114 -program-transform-name | --program-transform-name \ 1115 | --program-transform-nam | --program-transform-na \ 1116 | --program-transform-n | --program-transform- \ 1117 | --program-transform | --program-transfor \ 1118 | --program-transfo | --program-transf \ 1119 | --program-trans | --program-tran \ 1120 | --progr-tra | --program-tr | --program-t) 1121 ac_prev=program_transform_name ;; 1122 -program-transform-name=* | --program-transform-name=* \ 1123 | --program-transform-nam=* | --program-transform-na=* \ 1124 | --program-transform-n=* | --program-transform-=* \ 1125 | --program-transform=* | --program-transfor=* \ 1126 | --program-transfo=* | --program-transf=* \ 1127 | --program-trans=* | --program-tran=* \ 1128 | --progr-tra=* | --program-tr=* | --program-t=*) 1129 program_transform_name=$ac_optarg ;; 1130 1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1132 ac_prev=pdfdir ;; 1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1134 pdfdir=$ac_optarg ;; 1135 1136 -psdir | --psdir | --psdi | --psd | --ps) 1137 ac_prev=psdir ;; 1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1139 psdir=$ac_optarg ;; 1140 1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1142 | -silent | --silent | --silen | --sile | --sil) 1143 silent=yes ;; 1144 1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1146 ac_prev=sbindir ;; 1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1148 | --sbi=* | --sb=*) 1149 sbindir=$ac_optarg ;; 1150 1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1153 | --sharedst | --shareds | --shared | --share | --shar \ 1154 | --sha | --sh) 1155 ac_prev=sharedstatedir ;; 1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1159 | --sha=* | --sh=*) 1160 sharedstatedir=$ac_optarg ;; 1161 1162 -site | --site | --sit) 1163 ac_prev=site ;; 1164 -site=* | --site=* | --sit=*) 1165 site=$ac_optarg ;; 1166 1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1168 ac_prev=srcdir ;; 1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1170 srcdir=$ac_optarg ;; 1171 1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1173 | --syscon | --sysco | --sysc | --sys | --sy) 1174 ac_prev=sysconfdir ;; 1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1177 sysconfdir=$ac_optarg ;; 1178 1179 -target | --target | --targe | --targ | --tar | --ta | --t) 1180 ac_prev=target_alias ;; 1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1182 target_alias=$ac_optarg ;; 1183 1184 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1185 verbose=yes ;; 1186 1187 -version | --version | --versio | --versi | --vers | -V) 1188 ac_init_version=: ;; 1189 1190 -with-* | --with-*) 1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1192 # Reject names that are not valid shell variable names. 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 as_fn_error $? "invalid package name: $ac_useropt" 1195 ac_useropt_orig=$ac_useropt 1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 case $ac_user_opts in 1198 *" 1199"with_$ac_useropt" 1200"*) ;; 1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1202 ac_unrecognized_sep=', ';; 1203 esac 1204 eval with_$ac_useropt=\$ac_optarg ;; 1205 1206 -without-* | --without-*) 1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1208 # Reject names that are not valid shell variable names. 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1210 as_fn_error $? "invalid package name: $ac_useropt" 1211 ac_useropt_orig=$ac_useropt 1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1213 case $ac_user_opts in 1214 *" 1215"with_$ac_useropt" 1216"*) ;; 1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1218 ac_unrecognized_sep=', ';; 1219 esac 1220 eval with_$ac_useropt=no ;; 1221 1222 --x) 1223 # Obsolete; use --with-x. 1224 with_x=yes ;; 1225 1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1227 | --x-incl | --x-inc | --x-in | --x-i) 1228 ac_prev=x_includes ;; 1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1231 x_includes=$ac_optarg ;; 1232 1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1235 ac_prev=x_libraries ;; 1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1238 x_libraries=$ac_optarg ;; 1239 1240 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1241Try \`$0 --help' for more information" 1242 ;; 1243 1244 *=*) 1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1246 # Reject names that are not valid shell variable names. 1247 case $ac_envvar in #( 1248 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1250 esac 1251 eval $ac_envvar=\$ac_optarg 1252 export $ac_envvar ;; 1253 1254 *) 1255 # FIXME: should be removed in autoconf 3.0. 1256 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1258 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1260 ;; 1261 1262 esac 1263done 1264 1265if test -n "$ac_prev"; then 1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1267 as_fn_error $? "missing argument to $ac_option" 1268fi 1269 1270if test -n "$ac_unrecognized_opts"; then 1271 case $enable_option_checking in 1272 no) ;; 1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1274 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1275 esac 1276fi 1277 1278# Check all directory arguments for consistency. 1279for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1280 datadir sysconfdir sharedstatedir localstatedir includedir \ 1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1282 libdir localedir mandir 1283do 1284 eval ac_val=\$$ac_var 1285 # Remove trailing slashes. 1286 case $ac_val in 1287 */ ) 1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1289 eval $ac_var=\$ac_val;; 1290 esac 1291 # Be sure to have absolute directory names. 1292 case $ac_val in 1293 [\\/$]* | ?:[\\/]* ) continue;; 1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1295 esac 1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1297done 1298 1299# There might be people who depend on the old broken behavior: `$host' 1300# used to hold the argument of --host etc. 1301# FIXME: To remove some day. 1302build=$build_alias 1303host=$host_alias 1304target=$target_alias 1305 1306# FIXME: To remove some day. 1307if test "x$host_alias" != x; then 1308 if test "x$build_alias" = x; then 1309 cross_compiling=maybe 1310 elif test "x$build_alias" != "x$host_alias"; then 1311 cross_compiling=yes 1312 fi 1313fi 1314 1315ac_tool_prefix= 1316test -n "$host_alias" && ac_tool_prefix=$host_alias- 1317 1318test "$silent" = yes && exec 6>/dev/null 1319 1320 1321ac_pwd=`pwd` && test -n "$ac_pwd" && 1322ac_ls_di=`ls -di .` && 1323ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1324 as_fn_error $? "working directory cannot be determined" 1325test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1326 as_fn_error $? "pwd does not report name of working directory" 1327 1328 1329# Find the source files, if location was not specified. 1330if test -z "$srcdir"; then 1331 ac_srcdir_defaulted=yes 1332 # Try the directory containing this script, then the parent directory. 1333 ac_confdir=`$as_dirname -- "$as_myself" || 1334$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1335 X"$as_myself" : 'X\(//\)[^/]' \| \ 1336 X"$as_myself" : 'X\(//\)$' \| \ 1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1338$as_echo X"$as_myself" | 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)[^/].*/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)$/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\).*/{ 1352 s//\1/ 1353 q 1354 } 1355 s/.*/./; q'` 1356 srcdir=$ac_confdir 1357 if test ! -r "$srcdir/$ac_unique_file"; then 1358 srcdir=.. 1359 fi 1360else 1361 ac_srcdir_defaulted=no 1362fi 1363if test ! -r "$srcdir/$ac_unique_file"; then 1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1366fi 1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1368ac_abs_confdir=`( 1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1370 pwd)` 1371# When building in place, set srcdir=. 1372if test "$ac_abs_confdir" = "$ac_pwd"; then 1373 srcdir=. 1374fi 1375# Remove unnecessary trailing slashes from srcdir. 1376# Double slashes in file names in object file debugging info 1377# mess up M-x gdb in Emacs. 1378case $srcdir in 1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1380esac 1381for ac_var in $ac_precious_vars; do 1382 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1383 eval ac_env_${ac_var}_value=\$${ac_var} 1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1386done 1387 1388# 1389# Report the --help message. 1390# 1391if test "$ac_init_help" = "long"; then 1392 # Omit some internal or obsolete options to make the list less imposing. 1393 # This message is too long to be a string in the A/UX 3.1 sh. 1394 cat <<_ACEOF 1395\`configure' configures libgnomekbd 3.26.1 to adapt to many kinds of systems. 1396 1397Usage: $0 [OPTION]... [VAR=VALUE]... 1398 1399To assign environment variables (e.g., CC, CFLAGS...), specify them as 1400VAR=VALUE. See below for descriptions of some of the useful variables. 1401 1402Defaults for the options are specified in brackets. 1403 1404Configuration: 1405 -h, --help display this help and exit 1406 --help=short display options specific to this package 1407 --help=recursive display the short help of all the included packages 1408 -V, --version display version information and exit 1409 -q, --quiet, --silent do not print \`checking ...' messages 1410 --cache-file=FILE cache test results in FILE [disabled] 1411 -C, --config-cache alias for \`--cache-file=config.cache' 1412 -n, --no-create do not create output files 1413 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1414 1415Installation directories: 1416 --prefix=PREFIX install architecture-independent files in PREFIX 1417 [$ac_default_prefix] 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1419 [PREFIX] 1420 1421By default, \`make install' will install all the files in 1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1423an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1424for instance \`--prefix=\$HOME'. 1425 1426For better control, use the options below. 1427 1428Fine tuning of the installation directories: 1429 --bindir=DIR user executables [EPREFIX/bin] 1430 --sbindir=DIR system admin executables [EPREFIX/sbin] 1431 --libexecdir=DIR program executables [EPREFIX/libexec] 1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1435 --libdir=DIR object code libraries [EPREFIX/lib] 1436 --includedir=DIR C header files [PREFIX/include] 1437 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1440 --infodir=DIR info documentation [DATAROOTDIR/info] 1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1442 --mandir=DIR man documentation [DATAROOTDIR/man] 1443 --docdir=DIR documentation root [DATAROOTDIR/doc/libgnomekbd] 1444 --htmldir=DIR html documentation [DOCDIR] 1445 --dvidir=DIR dvi documentation [DOCDIR] 1446 --pdfdir=DIR pdf documentation [DOCDIR] 1447 --psdir=DIR ps documentation [DOCDIR] 1448_ACEOF 1449 1450 cat <<\_ACEOF 1451 1452Program names: 1453 --program-prefix=PREFIX prepend PREFIX to installed program names 1454 --program-suffix=SUFFIX append SUFFIX to installed program names 1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1456 1457X features: 1458 --x-includes=DIR X include files are in DIR 1459 --x-libraries=DIR X library files are in DIR 1460 1461System types: 1462 --build=BUILD configure for building on BUILD [guessed] 1463 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1464_ACEOF 1465fi 1466 1467if test -n "$ac_init_help"; then 1468 case $ac_init_help in 1469 short | recursive ) echo "Configuration of libgnomekbd 3.26.1:";; 1470 esac 1471 cat <<\_ACEOF 1472 1473Optional Features: 1474 --disable-option-checking ignore unrecognized --enable/--with options 1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1477 --enable-silent-rules less verbose build output (undo: "make V=1") 1478 --disable-silent-rules verbose build output (undo: "make V=0") 1479 --disable-schemas-compile 1480 Disable regeneration of gschemas.compiled on install 1481 --enable-dependency-tracking 1482 do not reject slow dependency extractors 1483 --disable-dependency-tracking 1484 speeds up one-time build 1485 --enable-shared[=PKGS] build shared libraries [default=yes] 1486 --enable-static[=PKGS] build static libraries [default=yes] 1487 --enable-fast-install[=PKGS] 1488 optimize for fast installation [default=yes] 1489 --disable-libtool-lock avoid locking (might break parallel builds) 1490 --disable-nls do not use Native Language Support 1491 --disable-rpath do not hardcode runtime library paths 1492 --disable-tests Dont build the test apps 1493 --enable-introspection=[no/auto/yes] 1494 Enable introspection for this build 1495 1496Optional Packages: 1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1500 both] 1501 --with-aix-soname=aix|svr4|both 1502 shared library versioning (aka "SONAME") variant to 1503 provide on AIX, [default=aix]. 1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1505 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1506 compiler's sysroot if not specified). 1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1508 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1509 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1510 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1511 --without-libintl-prefix don't search for libintl in includedir and libdir 1512 --with-x use the X Window System 1513 1514Some influential environment variables: 1515 PKG_CONFIG path to pkg-config utility 1516 PKG_CONFIG_PATH 1517 directories to add to pkg-config's search path 1518 PKG_CONFIG_LIBDIR 1519 path overriding pkg-config's built-in search path 1520 GLIB_COMPILE_SCHEMAS 1521 value of glib_compile_schemas for gio-2.0, overriding pkg-config 1522 CC C compiler command 1523 CFLAGS C compiler flags 1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1525 nonstandard directory <lib dir> 1526 LIBS libraries to pass to the linker, e.g. -l<library> 1527 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1528 you have headers in a nonstandard directory <include dir> 1529 CPP C preprocessor 1530 LT_SYS_LIBRARY_PATH 1531 User-defined run-time library search path. 1532 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1533 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1534 GDK_CFLAGS C compiler flags for GDK, overriding pkg-config 1535 GDK_LIBS linker flags for GDK, overriding pkg-config 1536 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config 1537 GTK_LIBS linker flags for GTK, overriding pkg-config 1538 LIBXKLAVIER_CFLAGS 1539 C compiler flags for LIBXKLAVIER, overriding pkg-config 1540 LIBXKLAVIER_LIBS 1541 linker flags for LIBXKLAVIER, overriding pkg-config 1542 XMKMF Path to xmkmf, Makefile generator for X Window System 1543 1544Use these variables to override the choices made by `configure' or to help 1545it to find libraries and programs with nonstandard names/locations. 1546 1547Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomekbd>. 1548_ACEOF 1549ac_status=$? 1550fi 1551 1552if test "$ac_init_help" = "recursive"; then 1553 # If there are subdirs, report their specific --help. 1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1555 test -d "$ac_dir" || 1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1557 continue 1558 ac_builddir=. 1559 1560case "$ac_dir" in 1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1562*) 1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1564 # A ".." for each directory in $ac_dir_suffix. 1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1566 case $ac_top_builddir_sub in 1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1569 esac ;; 1570esac 1571ac_abs_top_builddir=$ac_pwd 1572ac_abs_builddir=$ac_pwd$ac_dir_suffix 1573# for backward compatibility: 1574ac_top_builddir=$ac_top_build_prefix 1575 1576case $srcdir in 1577 .) # We are building in place. 1578 ac_srcdir=. 1579 ac_top_srcdir=$ac_top_builddir_sub 1580 ac_abs_top_srcdir=$ac_pwd ;; 1581 [\\/]* | ?:[\\/]* ) # Absolute name. 1582 ac_srcdir=$srcdir$ac_dir_suffix; 1583 ac_top_srcdir=$srcdir 1584 ac_abs_top_srcdir=$srcdir ;; 1585 *) # Relative name. 1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1587 ac_top_srcdir=$ac_top_build_prefix$srcdir 1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1589esac 1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1591 1592 cd "$ac_dir" || { ac_status=$?; continue; } 1593 # Check for guested configure. 1594 if test -f "$ac_srcdir/configure.gnu"; then 1595 echo && 1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1597 elif test -f "$ac_srcdir/configure"; then 1598 echo && 1599 $SHELL "$ac_srcdir/configure" --help=recursive 1600 else 1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1602 fi || ac_status=$? 1603 cd "$ac_pwd" || { ac_status=$?; break; } 1604 done 1605fi 1606 1607test -n "$ac_init_help" && exit $ac_status 1608if $ac_init_version; then 1609 cat <<\_ACEOF 1610libgnomekbd configure 3.26.1 1611generated by GNU Autoconf 2.69 1612 1613Copyright (C) 2012 Free Software Foundation, Inc. 1614This configure script is free software; the Free Software Foundation 1615gives unlimited permission to copy, distribute and modify it. 1616_ACEOF 1617 exit 1618fi 1619 1620## ------------------------ ## 1621## Autoconf initialization. ## 1622## ------------------------ ## 1623 1624# ac_fn_c_try_compile LINENO 1625# -------------------------- 1626# Try to compile conftest.$ac_ext, and return whether this succeeded. 1627ac_fn_c_try_compile () 1628{ 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 rm -f conftest.$ac_objext 1631 if { { ac_try="$ac_compile" 1632case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635esac 1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1637$as_echo "$ac_try_echo"; } >&5 1638 (eval "$ac_compile") 2>conftest.err 1639 ac_status=$? 1640 if test -s conftest.err; then 1641 grep -v '^ *+' conftest.err >conftest.er1 1642 cat conftest.er1 >&5 1643 mv -f conftest.er1 conftest.err 1644 fi 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; } && { 1647 test -z "$ac_c_werror_flag" || 1648 test ! -s conftest.err 1649 } && test -s conftest.$ac_objext; then : 1650 ac_retval=0 1651else 1652 $as_echo "$as_me: failed program was:" >&5 1653sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=1 1656fi 1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1658 as_fn_set_status $ac_retval 1659 1660} # ac_fn_c_try_compile 1661 1662# ac_fn_c_try_link LINENO 1663# ----------------------- 1664# Try to link conftest.$ac_ext, and return whether this succeeded. 1665ac_fn_c_try_link () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 rm -f conftest.$ac_objext conftest$ac_exeext 1669 if { { ac_try="$ac_link" 1670case "(($ac_try" in 1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1672 *) ac_try_echo=$ac_try;; 1673esac 1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1675$as_echo "$ac_try_echo"; } >&5 1676 (eval "$ac_link") 2>conftest.err 1677 ac_status=$? 1678 if test -s conftest.err; then 1679 grep -v '^ *+' conftest.err >conftest.er1 1680 cat conftest.er1 >&5 1681 mv -f conftest.er1 conftest.err 1682 fi 1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } && { 1685 test -z "$ac_c_werror_flag" || 1686 test ! -s conftest.err 1687 } && test -s conftest$ac_exeext && { 1688 test "$cross_compiling" = yes || 1689 test -x conftest$ac_exeext 1690 }; then : 1691 ac_retval=0 1692else 1693 $as_echo "$as_me: failed program was:" >&5 1694sed 's/^/| /' conftest.$ac_ext >&5 1695 1696 ac_retval=1 1697fi 1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1700 # interfere with the next link command; also delete a directory that is 1701 # left behind by Apple's compiler. We do this before executing the actions. 1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 as_fn_set_status $ac_retval 1705 1706} # ac_fn_c_try_link 1707 1708# ac_fn_c_try_cpp LINENO 1709# ---------------------- 1710# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_cpp () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if { { ac_try="$ac_cpp conftest.$ac_ext" 1715case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720$as_echo "$ac_try_echo"; } >&5 1721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1722 ac_status=$? 1723 if test -s conftest.err; then 1724 grep -v '^ *+' conftest.err >conftest.er1 1725 cat conftest.er1 >&5 1726 mv -f conftest.er1 conftest.err 1727 fi 1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1729 test $ac_status = 0; } > conftest.i && { 1730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1731 test ! -s conftest.err 1732 }; then : 1733 ac_retval=0 1734else 1735 $as_echo "$as_me: failed program was:" >&5 1736sed 's/^/| /' conftest.$ac_ext >&5 1737 1738 ac_retval=1 1739fi 1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1741 as_fn_set_status $ac_retval 1742 1743} # ac_fn_c_try_cpp 1744 1745# ac_fn_c_try_run LINENO 1746# ---------------------- 1747# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1748# that executables *can* be run. 1749ac_fn_c_try_run () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 if { { ac_try="$ac_link" 1753case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758$as_echo "$ac_try_echo"; } >&5 1759 (eval "$ac_link") 2>&5 1760 ac_status=$? 1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1763 { { case "(($ac_try" in 1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1765 *) ac_try_echo=$ac_try;; 1766esac 1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1768$as_echo "$ac_try_echo"; } >&5 1769 (eval "$ac_try") 2>&5 1770 ac_status=$? 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; }; }; then : 1773 ac_retval=0 1774else 1775 $as_echo "$as_me: program exited with status $ac_status" >&5 1776 $as_echo "$as_me: failed program was:" >&5 1777sed 's/^/| /' conftest.$ac_ext >&5 1778 1779 ac_retval=$ac_status 1780fi 1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 as_fn_set_status $ac_retval 1784 1785} # ac_fn_c_try_run 1786 1787# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1788# ------------------------------------------------------- 1789# Tests whether HEADER exists and can be compiled using the include files in 1790# INCLUDES, setting the cache variable VAR accordingly. 1791ac_fn_c_check_header_compile () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1795$as_echo_n "checking for $2... " >&6; } 1796if eval \${$3+:} false; then : 1797 $as_echo_n "(cached) " >&6 1798else 1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801$4 1802#include <$2> 1803_ACEOF 1804if ac_fn_c_try_compile "$LINENO"; then : 1805 eval "$3=yes" 1806else 1807 eval "$3=no" 1808fi 1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1810fi 1811eval ac_res=\$$3 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1813$as_echo "$ac_res" >&6; } 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 1816} # ac_fn_c_check_header_compile 1817 1818# ac_fn_c_check_func LINENO FUNC VAR 1819# ---------------------------------- 1820# Tests whether FUNC exists, setting the cache variable VAR accordingly 1821ac_fn_c_check_func () 1822{ 1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1825$as_echo_n "checking for $2... " >&6; } 1826if eval \${$3+:} false; then : 1827 $as_echo_n "(cached) " >&6 1828else 1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1830/* end confdefs.h. */ 1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1833#define $2 innocuous_$2 1834 1835/* System header to define __stub macros and hopefully few prototypes, 1836 which can conflict with char $2 (); below. 1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1838 <limits.h> exists even on freestanding compilers. */ 1839 1840#ifdef __STDC__ 1841# include <limits.h> 1842#else 1843# include <assert.h> 1844#endif 1845 1846#undef $2 1847 1848/* Override any GCC internal prototype to avoid an error. 1849 Use char because int might match the return type of a GCC 1850 builtin and then its argument prototype would still apply. */ 1851#ifdef __cplusplus 1852extern "C" 1853#endif 1854char $2 (); 1855/* The GNU C library defines this for functions which it implements 1856 to always fail with ENOSYS. Some functions are actually named 1857 something starting with __ and the normal name is an alias. */ 1858#if defined __stub_$2 || defined __stub___$2 1859choke me 1860#endif 1861 1862int 1863main () 1864{ 1865return $2 (); 1866 ; 1867 return 0; 1868} 1869_ACEOF 1870if ac_fn_c_try_link "$LINENO"; then : 1871 eval "$3=yes" 1872else 1873 eval "$3=no" 1874fi 1875rm -f core conftest.err conftest.$ac_objext \ 1876 conftest$ac_exeext conftest.$ac_ext 1877fi 1878eval ac_res=\$$3 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1880$as_echo "$ac_res" >&6; } 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 1883} # ac_fn_c_check_func 1884cat >config.log <<_ACEOF 1885This file contains any messages produced by compilers while 1886running configure, to aid debugging if configure makes a mistake. 1887 1888It was created by libgnomekbd $as_me 3.26.1, which was 1889generated by GNU Autoconf 2.69. Invocation command line was 1890 1891 $ $0 $@ 1892 1893_ACEOF 1894exec 5>>config.log 1895{ 1896cat <<_ASUNAME 1897## --------- ## 1898## Platform. ## 1899## --------- ## 1900 1901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1902uname -m = `(uname -m) 2>/dev/null || echo unknown` 1903uname -r = `(uname -r) 2>/dev/null || echo unknown` 1904uname -s = `(uname -s) 2>/dev/null || echo unknown` 1905uname -v = `(uname -v) 2>/dev/null || echo unknown` 1906 1907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1909 1910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1913/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1917 1918_ASUNAME 1919 1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1921for as_dir in $PATH 1922do 1923 IFS=$as_save_IFS 1924 test -z "$as_dir" && as_dir=. 1925 $as_echo "PATH: $as_dir" 1926 done 1927IFS=$as_save_IFS 1928 1929} >&5 1930 1931cat >&5 <<_ACEOF 1932 1933 1934## ----------- ## 1935## Core tests. ## 1936## ----------- ## 1937 1938_ACEOF 1939 1940 1941# Keep a trace of the command line. 1942# Strip out --no-create and --no-recursion so they do not pile up. 1943# Strip out --silent because we don't want to record it for future runs. 1944# Also quote any args containing shell meta-characters. 1945# Make two passes to allow for proper duplicate-argument suppression. 1946ac_configure_args= 1947ac_configure_args0= 1948ac_configure_args1= 1949ac_must_keep_next=false 1950for ac_pass in 1 2 1951do 1952 for ac_arg 1953 do 1954 case $ac_arg in 1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1957 | -silent | --silent | --silen | --sile | --sil) 1958 continue ;; 1959 *\'*) 1960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1961 esac 1962 case $ac_pass in 1963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1964 2) 1965 as_fn_append ac_configure_args1 " '$ac_arg'" 1966 if test $ac_must_keep_next = true; then 1967 ac_must_keep_next=false # Got value, back to normal. 1968 else 1969 case $ac_arg in 1970 *=* | --config-cache | -C | -disable-* | --disable-* \ 1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1973 | -with-* | --with-* | -without-* | --without-* | --x) 1974 case "$ac_configure_args0 " in 1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1976 esac 1977 ;; 1978 -* ) ac_must_keep_next=true ;; 1979 esac 1980 fi 1981 as_fn_append ac_configure_args " '$ac_arg'" 1982 ;; 1983 esac 1984 done 1985done 1986{ ac_configure_args0=; unset ac_configure_args0;} 1987{ ac_configure_args1=; unset ac_configure_args1;} 1988 1989# When interrupted or exit'd, cleanup temporary files, and complete 1990# config.log. We remove comments because anyway the quotes in there 1991# would cause problems or look ugly. 1992# WARNING: Use '\'' to represent an apostrophe within the trap. 1993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1994trap 'exit_status=$? 1995 # Save into config.log some information that might help in debugging. 1996 { 1997 echo 1998 1999 $as_echo "## ---------------- ## 2000## Cache variables. ## 2001## ---------------- ##" 2002 echo 2003 # The following way of writing the cache mishandles newlines in values, 2004( 2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2006 eval ac_val=\$$ac_var 2007 case $ac_val in #( 2008 *${as_nl}*) 2009 case $ac_var in #( 2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2012 esac 2013 case $ac_var in #( 2014 _ | IFS | as_nl) ;; #( 2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2016 *) { eval $ac_var=; unset $ac_var;} ;; 2017 esac ;; 2018 esac 2019 done 2020 (set) 2>&1 | 2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2022 *${as_nl}ac_space=\ *) 2023 sed -n \ 2024 "s/'\''/'\''\\\\'\'''\''/g; 2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2026 ;; #( 2027 *) 2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2029 ;; 2030 esac | 2031 sort 2032) 2033 echo 2034 2035 $as_echo "## ----------------- ## 2036## Output variables. ## 2037## ----------------- ##" 2038 echo 2039 for ac_var in $ac_subst_vars 2040 do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in 2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2044 esac 2045 $as_echo "$ac_var='\''$ac_val'\''" 2046 done | sort 2047 echo 2048 2049 if test -n "$ac_subst_files"; then 2050 $as_echo "## ------------------- ## 2051## File substitutions. ## 2052## ------------------- ##" 2053 echo 2054 for ac_var in $ac_subst_files 2055 do 2056 eval ac_val=\$$ac_var 2057 case $ac_val in 2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2059 esac 2060 $as_echo "$ac_var='\''$ac_val'\''" 2061 done | sort 2062 echo 2063 fi 2064 2065 if test -s confdefs.h; then 2066 $as_echo "## ----------- ## 2067## confdefs.h. ## 2068## ----------- ##" 2069 echo 2070 cat confdefs.h 2071 echo 2072 fi 2073 test "$ac_signal" != 0 && 2074 $as_echo "$as_me: caught signal $ac_signal" 2075 $as_echo "$as_me: exit $exit_status" 2076 } >&5 2077 rm -f core *.core core.conftest.* && 2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2079 exit $exit_status 2080' 0 2081for ac_signal in 1 2 13 15; do 2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2083done 2084ac_signal=0 2085 2086# confdefs.h avoids OS command line length limits that DEFS can exceed. 2087rm -f -r conftest* confdefs.h 2088 2089$as_echo "/* confdefs.h */" > confdefs.h 2090 2091# Predefined preprocessor variables. 2092 2093cat >>confdefs.h <<_ACEOF 2094#define PACKAGE_NAME "$PACKAGE_NAME" 2095_ACEOF 2096 2097cat >>confdefs.h <<_ACEOF 2098#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2099_ACEOF 2100 2101cat >>confdefs.h <<_ACEOF 2102#define PACKAGE_VERSION "$PACKAGE_VERSION" 2103_ACEOF 2104 2105cat >>confdefs.h <<_ACEOF 2106#define PACKAGE_STRING "$PACKAGE_STRING" 2107_ACEOF 2108 2109cat >>confdefs.h <<_ACEOF 2110#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2111_ACEOF 2112 2113cat >>confdefs.h <<_ACEOF 2114#define PACKAGE_URL "$PACKAGE_URL" 2115_ACEOF 2116 2117 2118# Let the site file select an alternate cache file if it wants to. 2119# Prefer an explicitly selected file to automatically selected ones. 2120ac_site_file1=NONE 2121ac_site_file2=NONE 2122if test -n "$CONFIG_SITE"; then 2123 # We do not want a PATH search for config.site. 2124 case $CONFIG_SITE in #(( 2125 -*) ac_site_file1=./$CONFIG_SITE;; 2126 */*) ac_site_file1=$CONFIG_SITE;; 2127 *) ac_site_file1=./$CONFIG_SITE;; 2128 esac 2129elif test "x$prefix" != xNONE; then 2130 ac_site_file1=$prefix/share/config.site 2131 ac_site_file2=$prefix/etc/config.site 2132else 2133 ac_site_file1=$ac_default_prefix/share/config.site 2134 ac_site_file2=$ac_default_prefix/etc/config.site 2135fi 2136for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2137do 2138 test "x$ac_site_file" = xNONE && continue 2139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2141$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2142 sed 's/^/| /' "$ac_site_file" >&5 2143 . "$ac_site_file" \ 2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2146as_fn_error $? "failed to load site script $ac_site_file 2147See \`config.log' for more details" "$LINENO" 5; } 2148 fi 2149done 2150 2151if test -r "$cache_file"; then 2152 # Some versions of bash will fail to source /dev/null (special files 2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2156$as_echo "$as_me: loading cache $cache_file" >&6;} 2157 case $cache_file in 2158 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2159 *) . "./$cache_file";; 2160 esac 2161 fi 2162else 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2164$as_echo "$as_me: creating cache $cache_file" >&6;} 2165 >$cache_file 2166fi 2167 2168gt_needs="$gt_needs " 2169# Check that the precious variables saved in the cache have kept the same 2170# value. 2171ac_cache_corrupted=false 2172for ac_var in $ac_precious_vars; do 2173 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2174 eval ac_new_set=\$ac_env_${ac_var}_set 2175 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2176 eval ac_new_val=\$ac_env_${ac_var}_value 2177 case $ac_old_set,$ac_new_set in 2178 set,) 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2180$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2181 ac_cache_corrupted=: ;; 2182 ,set) 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2184$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2185 ac_cache_corrupted=: ;; 2186 ,);; 2187 *) 2188 if test "x$ac_old_val" != "x$ac_new_val"; then 2189 # differences in whitespace do not lead to failure. 2190 ac_old_val_w=`echo x $ac_old_val` 2191 ac_new_val_w=`echo x $ac_new_val` 2192 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2194$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2195 ac_cache_corrupted=: 2196 else 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2198$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2199 eval $ac_var=\$ac_old_val 2200 fi 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2202$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2204$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2205 fi;; 2206 esac 2207 # Pass precious variables to config.status. 2208 if test "$ac_new_set" = set; then 2209 case $ac_new_val in 2210 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2211 *) ac_arg=$ac_var=$ac_new_val ;; 2212 esac 2213 case " $ac_configure_args " in 2214 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2215 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2216 esac 2217 fi 2218done 2219if $ac_cache_corrupted; then 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2223$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2224 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2225fi 2226## -------------------- ## 2227## Main body of script. ## 2228## -------------------- ## 2229 2230ac_ext=c 2231ac_cpp='$CPP $CPPFLAGS' 2232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2234ac_compiler_gnu=$ac_cv_c_compiler_gnu 2235 2236 2237 2238 2239VERSION_INFO=8:0:0 2240 2241 2242ac_config_headers="$ac_config_headers config.h" 2243 2244am__api_version='1.16' 2245 2246ac_aux_dir= 2247for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2248 if test -f "$ac_dir/install-sh"; then 2249 ac_aux_dir=$ac_dir 2250 ac_install_sh="$ac_aux_dir/install-sh -c" 2251 break 2252 elif test -f "$ac_dir/install.sh"; then 2253 ac_aux_dir=$ac_dir 2254 ac_install_sh="$ac_aux_dir/install.sh -c" 2255 break 2256 elif test -f "$ac_dir/shtool"; then 2257 ac_aux_dir=$ac_dir 2258 ac_install_sh="$ac_aux_dir/shtool install -c" 2259 break 2260 fi 2261done 2262if test -z "$ac_aux_dir"; then 2263 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2264fi 2265 2266# These three variables are undocumented and unsupported, 2267# and are intended to be withdrawn in a future Autoconf release. 2268# They can cause serious problems if a builder's source tree is in a directory 2269# whose full name contains unusual characters. 2270ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2271ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2272ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2273 2274 2275# Find a good install program. We prefer a C program (faster), 2276# so one script is as good as another. But avoid the broken or 2277# incompatible versions: 2278# SysV /etc/install, /usr/sbin/install 2279# SunOS /usr/etc/install 2280# IRIX /sbin/install 2281# AIX /bin/install 2282# AmigaOS /C/install, which installs bootblocks on floppy discs 2283# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2284# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2285# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2286# OS/2's system install, which has a completely different semantic 2287# ./install, which can be erroneously created by make from ./install.sh. 2288# Reject install programs that cannot install multiple files. 2289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2290$as_echo_n "checking for a BSD-compatible install... " >&6; } 2291if test -z "$INSTALL"; then 2292if ${ac_cv_path_install+:} false; then : 2293 $as_echo_n "(cached) " >&6 2294else 2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2296for as_dir in $PATH 2297do 2298 IFS=$as_save_IFS 2299 test -z "$as_dir" && as_dir=. 2300 # Account for people who put trailing slashes in PATH elements. 2301case $as_dir/ in #(( 2302 ./ | .// | /[cC]/* | \ 2303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2304 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2305 /usr/ucb/* ) ;; 2306 *) 2307 # OSF1 and SCO ODT 3.0 have their own names for install. 2308 # Don't use installbsd from OSF since it installs stuff as root 2309 # by default. 2310 for ac_prog in ginstall scoinst install; do 2311 for ac_exec_ext in '' $ac_executable_extensions; do 2312 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2313 if test $ac_prog = install && 2314 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2315 # AIX install. It has an incompatible calling convention. 2316 : 2317 elif test $ac_prog = install && 2318 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2319 # program-specific install script used by HP pwplus--don't use. 2320 : 2321 else 2322 rm -rf conftest.one conftest.two conftest.dir 2323 echo one > conftest.one 2324 echo two > conftest.two 2325 mkdir conftest.dir 2326 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2327 test -s conftest.one && test -s conftest.two && 2328 test -s conftest.dir/conftest.one && 2329 test -s conftest.dir/conftest.two 2330 then 2331 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2332 break 3 2333 fi 2334 fi 2335 fi 2336 done 2337 done 2338 ;; 2339esac 2340 2341 done 2342IFS=$as_save_IFS 2343 2344rm -rf conftest.one conftest.two conftest.dir 2345 2346fi 2347 if test "${ac_cv_path_install+set}" = set; then 2348 INSTALL=$ac_cv_path_install 2349 else 2350 # As a last resort, use the slow shell script. Don't cache a 2351 # value for INSTALL within a source directory, because that will 2352 # break other packages using the cache if that directory is 2353 # removed, or if the value is a relative name. 2354 INSTALL=$ac_install_sh 2355 fi 2356fi 2357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2358$as_echo "$INSTALL" >&6; } 2359 2360# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2361# It thinks the first close brace ends the variable substitution. 2362test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2363 2364test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2365 2366test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2367 2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2369$as_echo_n "checking whether build environment is sane... " >&6; } 2370# Reject unsafe characters in $srcdir or the absolute working directory 2371# name. Accept space and tab only in the latter. 2372am_lf=' 2373' 2374case `pwd` in 2375 *[\\\"\#\$\&\'\`$am_lf]*) 2376 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2377esac 2378case $srcdir in 2379 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2380 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2381esac 2382 2383# Do 'set' in a subshell so we don't clobber the current shell's 2384# arguments. Must try -L first in case configure is actually a 2385# symlink; some systems play weird games with the mod time of symlinks 2386# (eg FreeBSD returns the mod time of the symlink's containing 2387# directory). 2388if ( 2389 am_has_slept=no 2390 for am_try in 1 2; do 2391 echo "timestamp, slept: $am_has_slept" > conftest.file 2392 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2393 if test "$*" = "X"; then 2394 # -L didn't work. 2395 set X `ls -t "$srcdir/configure" conftest.file` 2396 fi 2397 if test "$*" != "X $srcdir/configure conftest.file" \ 2398 && test "$*" != "X conftest.file $srcdir/configure"; then 2399 2400 # If neither matched, then we have a broken ls. This can happen 2401 # if, for instance, CONFIG_SHELL is bash and it inherits a 2402 # broken ls alias from the environment. This has actually 2403 # happened. Such a system could not be considered "sane". 2404 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2405 alias in your environment" "$LINENO" 5 2406 fi 2407 if test "$2" = conftest.file || test $am_try -eq 2; then 2408 break 2409 fi 2410 # Just in case. 2411 sleep 1 2412 am_has_slept=yes 2413 done 2414 test "$2" = conftest.file 2415 ) 2416then 2417 # Ok. 2418 : 2419else 2420 as_fn_error $? "newly created file is older than distributed files! 2421Check your system clock" "$LINENO" 5 2422fi 2423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2424$as_echo "yes" >&6; } 2425# If we didn't sleep, we still need to ensure time stamps of config.status and 2426# generated files are strictly newer. 2427am_sleep_pid= 2428if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2429 ( sleep 1 ) & 2430 am_sleep_pid=$! 2431fi 2432 2433rm -f conftest.file 2434 2435test "$program_prefix" != NONE && 2436 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2437# Use a double $ so make ignores it. 2438test "$program_suffix" != NONE && 2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2440# Double any \ or $. 2441# By default was `s,x,x', remove it if useless. 2442ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2443program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2444 2445# Expand $ac_aux_dir to an absolute path. 2446am_aux_dir=`cd "$ac_aux_dir" && pwd` 2447 2448if test x"${MISSING+set}" != xset; then 2449 case $am_aux_dir in 2450 *\ * | *\ *) 2451 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2452 *) 2453 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2454 esac 2455fi 2456# Use eval to expand $SHELL 2457if eval "$MISSING --is-lightweight"; then 2458 am_missing_run="$MISSING " 2459else 2460 am_missing_run= 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2462$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2463fi 2464 2465if test x"${install_sh+set}" != xset; then 2466 case $am_aux_dir in 2467 *\ * | *\ *) 2468 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2469 *) 2470 install_sh="\${SHELL} $am_aux_dir/install-sh" 2471 esac 2472fi 2473 2474# Installed binaries are usually stripped using 'strip' when the user 2475# run "make install-strip". However 'strip' might not be the right 2476# tool to use in cross-compilation environments, therefore Automake 2477# will honor the 'STRIP' environment variable to overrule this program. 2478if test "$cross_compiling" != no; then 2479 if test -n "$ac_tool_prefix"; then 2480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2481set dummy ${ac_tool_prefix}strip; ac_word=$2 2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2483$as_echo_n "checking for $ac_word... " >&6; } 2484if ${ac_cv_prog_STRIP+:} false; then : 2485 $as_echo_n "(cached) " >&6 2486else 2487 if test -n "$STRIP"; then 2488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2489else 2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491for as_dir in $PATH 2492do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 for ac_exec_ext in '' $ac_executable_extensions; do 2496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2497 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2499 break 2 2500 fi 2501done 2502 done 2503IFS=$as_save_IFS 2504 2505fi 2506fi 2507STRIP=$ac_cv_prog_STRIP 2508if test -n "$STRIP"; then 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2510$as_echo "$STRIP" >&6; } 2511else 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2513$as_echo "no" >&6; } 2514fi 2515 2516 2517fi 2518if test -z "$ac_cv_prog_STRIP"; then 2519 ac_ct_STRIP=$STRIP 2520 # Extract the first word of "strip", so it can be a program name with args. 2521set dummy strip; ac_word=$2 2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2523$as_echo_n "checking for $ac_word... " >&6; } 2524if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2525 $as_echo_n "(cached) " >&6 2526else 2527 if test -n "$ac_ct_STRIP"; then 2528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2529else 2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531for as_dir in $PATH 2532do 2533 IFS=$as_save_IFS 2534 test -z "$as_dir" && as_dir=. 2535 for ac_exec_ext in '' $ac_executable_extensions; do 2536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2537 ac_cv_prog_ac_ct_STRIP="strip" 2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2539 break 2 2540 fi 2541done 2542 done 2543IFS=$as_save_IFS 2544 2545fi 2546fi 2547ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2548if test -n "$ac_ct_STRIP"; then 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2550$as_echo "$ac_ct_STRIP" >&6; } 2551else 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2553$as_echo "no" >&6; } 2554fi 2555 2556 if test "x$ac_ct_STRIP" = x; then 2557 STRIP=":" 2558 else 2559 case $cross_compiling:$ac_tool_warned in 2560yes:) 2561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2563ac_tool_warned=yes ;; 2564esac 2565 STRIP=$ac_ct_STRIP 2566 fi 2567else 2568 STRIP="$ac_cv_prog_STRIP" 2569fi 2570 2571fi 2572INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2573 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2575$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2576if test -z "$MKDIR_P"; then 2577 if ${ac_cv_path_mkdir+:} false; then : 2578 $as_echo_n "(cached) " >&6 2579else 2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2581for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2582do 2583 IFS=$as_save_IFS 2584 test -z "$as_dir" && as_dir=. 2585 for ac_prog in mkdir gmkdir; do 2586 for ac_exec_ext in '' $ac_executable_extensions; do 2587 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2588 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2589 'mkdir (GNU coreutils) '* | \ 2590 'mkdir (coreutils) '* | \ 2591 'mkdir (fileutils) '4.1*) 2592 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2593 break 3;; 2594 esac 2595 done 2596 done 2597 done 2598IFS=$as_save_IFS 2599 2600fi 2601 2602 test -d ./--version && rmdir ./--version 2603 if test "${ac_cv_path_mkdir+set}" = set; then 2604 MKDIR_P="$ac_cv_path_mkdir -p" 2605 else 2606 # As a last resort, use the slow shell script. Don't cache a 2607 # value for MKDIR_P within a source directory, because that will 2608 # break other packages using the cache if that directory is 2609 # removed, or if the value is a relative name. 2610 MKDIR_P="$ac_install_sh -d" 2611 fi 2612fi 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2614$as_echo "$MKDIR_P" >&6; } 2615 2616for ac_prog in gawk mawk nawk awk 2617do 2618 # Extract the first word of "$ac_prog", so it can be a program name with args. 2619set dummy $ac_prog; ac_word=$2 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621$as_echo_n "checking for $ac_word... " >&6; } 2622if ${ac_cv_prog_AWK+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 if test -n "$AWK"; then 2626 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2627else 2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2635 ac_cv_prog_AWK="$ac_prog" 2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639done 2640 done 2641IFS=$as_save_IFS 2642 2643fi 2644fi 2645AWK=$ac_cv_prog_AWK 2646if test -n "$AWK"; then 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2648$as_echo "$AWK" >&6; } 2649else 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2651$as_echo "no" >&6; } 2652fi 2653 2654 2655 test -n "$AWK" && break 2656done 2657 2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2659$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2660set x ${MAKE-make} 2661ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2662if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2663 $as_echo_n "(cached) " >&6 2664else 2665 cat >conftest.make <<\_ACEOF 2666SHELL = /bin/sh 2667all: 2668 @echo '@@@%%%=$(MAKE)=@@@%%%' 2669_ACEOF 2670# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2671case `${MAKE-make} -f conftest.make 2>/dev/null` in 2672 *@@@%%%=?*=@@@%%%*) 2673 eval ac_cv_prog_make_${ac_make}_set=yes;; 2674 *) 2675 eval ac_cv_prog_make_${ac_make}_set=no;; 2676esac 2677rm -f conftest.make 2678fi 2679if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2681$as_echo "yes" >&6; } 2682 SET_MAKE= 2683else 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2685$as_echo "no" >&6; } 2686 SET_MAKE="MAKE=${MAKE-make}" 2687fi 2688 2689rm -rf .tst 2>/dev/null 2690mkdir .tst 2>/dev/null 2691if test -d .tst; then 2692 am__leading_dot=. 2693else 2694 am__leading_dot=_ 2695fi 2696rmdir .tst 2>/dev/null 2697 2698# Check whether --enable-silent-rules was given. 2699if test "${enable_silent_rules+set}" = set; then : 2700 enableval=$enable_silent_rules; 2701fi 2702 2703case $enable_silent_rules in # ((( 2704 yes) AM_DEFAULT_VERBOSITY=0;; 2705 no) AM_DEFAULT_VERBOSITY=1;; 2706 *) AM_DEFAULT_VERBOSITY=1;; 2707esac 2708am_make=${MAKE-make} 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2710$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2711if ${am_cv_make_support_nested_variables+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 if $as_echo 'TRUE=$(BAR$(V)) 2715BAR0=false 2716BAR1=true 2717V=1 2718am__doit: 2719 @$(TRUE) 2720.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2721 am_cv_make_support_nested_variables=yes 2722else 2723 am_cv_make_support_nested_variables=no 2724fi 2725fi 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2727$as_echo "$am_cv_make_support_nested_variables" >&6; } 2728if test $am_cv_make_support_nested_variables = yes; then 2729 AM_V='$(V)' 2730 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2731else 2732 AM_V=$AM_DEFAULT_VERBOSITY 2733 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2734fi 2735AM_BACKSLASH='\' 2736 2737if test "`cd $srcdir && pwd`" != "`pwd`"; then 2738 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2739 # is not polluted with repeated "-I." 2740 am__isrc=' -I$(srcdir)' 2741 # test to see if srcdir already configured 2742 if test -f $srcdir/config.status; then 2743 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2744 fi 2745fi 2746 2747# test whether we have cygpath 2748if test -z "$CYGPATH_W"; then 2749 if (cygpath --version) >/dev/null 2>/dev/null; then 2750 CYGPATH_W='cygpath -w' 2751 else 2752 CYGPATH_W=echo 2753 fi 2754fi 2755 2756 2757# Define the identity of the package. 2758 PACKAGE='libgnomekbd' 2759 VERSION='3.26.1' 2760 2761 2762cat >>confdefs.h <<_ACEOF 2763#define PACKAGE "$PACKAGE" 2764_ACEOF 2765 2766 2767cat >>confdefs.h <<_ACEOF 2768#define VERSION "$VERSION" 2769_ACEOF 2770 2771# Some tools Automake needs. 2772 2773ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2774 2775 2776AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2777 2778 2779AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2780 2781 2782AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2783 2784 2785MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2786 2787# For better backward compatibility. To be removed once Automake 1.9.x 2788# dies out for good. For more background, see: 2789# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2790# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2791mkdir_p='$(MKDIR_P)' 2792 2793# We need awk for the "check" target (and possibly the TAP driver). The 2794# system "awk" is bad on some platforms. 2795# Always define AMTAR for backward compatibility. Yes, it's still used 2796# in the wild :-( We should find a proper way to deprecate it ... 2797AMTAR='$${TAR-tar}' 2798 2799 2800# We'll loop over all known methods to create a tar archive until one works. 2801_am_tools='gnutar pax cpio none' 2802 2803am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2804 2805 2806 2807 2808 2809 2810# POSIX will say in a future version that running "rm -f" with no argument 2811# is OK; and we want to be able to make that assumption in our Makefile 2812# recipes. So use an aggressive probe to check that the usage we want is 2813# actually supported "in the wild" to an acceptable degree. 2814# See automake bug#10828. 2815# To make any issue more visible, cause the running configure to be aborted 2816# by default if the 'rm' program in use doesn't match our expectations; the 2817# user can still override this though. 2818if rm -f && rm -fr && rm -rf; then : OK; else 2819 cat >&2 <<'END' 2820Oops! 2821 2822Your 'rm' program seems unable to run without file operands specified 2823on the command line, even when the '-f' option is present. This is contrary 2824to the behaviour of most rm programs out there, and not conforming with 2825the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2826 2827Please tell bug-automake@gnu.org about your system, including the value 2828of your $PATH and any error possibly output before this message. This 2829can help us improve future automake versions. 2830 2831END 2832 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2833 echo 'Configuration will proceed anyway, since you have set the' >&2 2834 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2835 echo >&2 2836 else 2837 cat >&2 <<'END' 2838Aborting the configuration process, to ensure you take notice of the issue. 2839 2840You can download and install GNU coreutils to get an 'rm' implementation 2841that behaves properly: <https://www.gnu.org/software/coreutils/>. 2842 2843If you want to complete the configuration process using your problematic 2844'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2845to "yes", and re-run configure. 2846 2847END 2848 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2849 fi 2850fi 2851 2852# Check whether --enable-silent-rules was given. 2853if test "${enable_silent_rules+set}" = set; then : 2854 enableval=$enable_silent_rules; 2855fi 2856 2857case $enable_silent_rules in # ((( 2858 yes) AM_DEFAULT_VERBOSITY=0;; 2859 no) AM_DEFAULT_VERBOSITY=1;; 2860 *) AM_DEFAULT_VERBOSITY=0;; 2861esac 2862am_make=${MAKE-make} 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2864$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2865if ${am_cv_make_support_nested_variables+:} false; then : 2866 $as_echo_n "(cached) " >&6 2867else 2868 if $as_echo 'TRUE=$(BAR$(V)) 2869BAR0=false 2870BAR1=true 2871V=1 2872am__doit: 2873 @$(TRUE) 2874.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2875 am_cv_make_support_nested_variables=yes 2876else 2877 am_cv_make_support_nested_variables=no 2878fi 2879fi 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2881$as_echo "$am_cv_make_support_nested_variables" >&6; } 2882if test $am_cv_make_support_nested_variables = yes; then 2883 AM_V='$(V)' 2884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2885else 2886 AM_V=$AM_DEFAULT_VERBOSITY 2887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2888fi 2889AM_BACKSLASH='\' 2890 2891 2892 2893GLIB_REQUIRED=2.18 2894GDK_REQUIRED=2.91.7 2895GTK_REQUIRED=2.90 2896LIBXKLAVIER_REQUIRED=5.2 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 # Check whether --enable-schemas-compile was given. 2908if test "${enable_schemas_compile+set}" = set; then : 2909 enableval=$enable_schemas_compile; case ${enableval} in 2910 yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;; 2911 no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;; 2912 *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;; 2913 esac 2914fi 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 2925 if test -n "$ac_tool_prefix"; then 2926 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 2927set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929$as_echo_n "checking for $ac_word... " >&6; } 2930if ${ac_cv_path_PKG_CONFIG+:} false; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 case $PKG_CONFIG in 2934 [\\/]* | ?:[\\/]*) 2935 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 2936 ;; 2937 *) 2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 test -z "$as_dir" && as_dir=. 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2945 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2947 break 2 2948 fi 2949done 2950 done 2951IFS=$as_save_IFS 2952 2953 ;; 2954esac 2955fi 2956PKG_CONFIG=$ac_cv_path_PKG_CONFIG 2957if test -n "$PKG_CONFIG"; then 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 2959$as_echo "$PKG_CONFIG" >&6; } 2960else 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2962$as_echo "no" >&6; } 2963fi 2964 2965 2966fi 2967if test -z "$ac_cv_path_PKG_CONFIG"; then 2968 ac_pt_PKG_CONFIG=$PKG_CONFIG 2969 # Extract the first word of "pkg-config", so it can be a program name with args. 2970set dummy pkg-config; ac_word=$2 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2972$as_echo_n "checking for $ac_word... " >&6; } 2973if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 2974 $as_echo_n "(cached) " >&6 2975else 2976 case $ac_pt_PKG_CONFIG in 2977 [\\/]* | ?:[\\/]*) 2978 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 2979 ;; 2980 *) 2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2982for as_dir in $PATH 2983do 2984 IFS=$as_save_IFS 2985 test -z "$as_dir" && as_dir=. 2986 for ac_exec_ext in '' $ac_executable_extensions; do 2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2988 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2990 break 2 2991 fi 2992done 2993 done 2994IFS=$as_save_IFS 2995 2996 ;; 2997esac 2998fi 2999ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3000if test -n "$ac_pt_PKG_CONFIG"; then 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 3002$as_echo "$ac_pt_PKG_CONFIG" >&6; } 3003else 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3005$as_echo "no" >&6; } 3006fi 3007 3008 if test "x$ac_pt_PKG_CONFIG" = x; then 3009 PKG_CONFIG="" 3010 else 3011 case $cross_compiling:$ac_tool_warned in 3012yes:) 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3015ac_tool_warned=yes ;; 3016esac 3017 PKG_CONFIG=$ac_pt_PKG_CONFIG 3018 fi 3019else 3020 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3021fi 3022 3023fi 3024if test -n "$PKG_CONFIG"; then 3025 _pkg_min_version=0.16 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 3027$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 3028 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3030$as_echo "yes" >&6; } 3031 else 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3033$as_echo "no" >&6; } 3034 PKG_CONFIG="" 3035 fi 3036fi 3037 gsettingsschemadir=${datadir}/glib-2.0/schemas 3038 3039 if test x$cross_compiling != xyes; then : 3040 3041if test -n "$GLIB_COMPILE_SCHEMAS"; then 3042 pkg_cv_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" 3043 elif test -n "$PKG_CONFIG"; then 3044 if test -n "$PKG_CONFIG" && \ 3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5 3046 ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5 3047 ac_status=$? 3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3049 test $ac_status = 0; }; then 3050 pkg_cv_GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable="glib_compile_schemas" "gio-2.0" 2>/dev/null` 3051 test "x$?" != "x0" && pkg_failed=yes 3052else 3053 pkg_failed=yes 3054fi 3055 else 3056 pkg_failed=untried 3057fi 3058GLIB_COMPILE_SCHEMAS=$pkg_cv_GLIB_COMPILE_SCHEMAS 3059 3060if test "x$GLIB_COMPILE_SCHEMAS" = x""; then : 3061 3062fi 3063else 3064 # Extract the first word of "glib-compile-schemas", so it can be a program name with args. 3065set dummy glib-compile-schemas; ac_word=$2 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3067$as_echo_n "checking for $ac_word... " >&6; } 3068if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then : 3069 $as_echo_n "(cached) " >&6 3070else 3071 case $GLIB_COMPILE_SCHEMAS in 3072 [\\/]* | ?:[\\/]*) 3073 ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path. 3074 ;; 3075 *) 3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3077for as_dir in $PATH 3078do 3079 IFS=$as_save_IFS 3080 test -z "$as_dir" && as_dir=. 3081 for ac_exec_ext in '' $ac_executable_extensions; do 3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3083 ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext" 3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3085 break 2 3086 fi 3087done 3088 done 3089IFS=$as_save_IFS 3090 3091 ;; 3092esac 3093fi 3094GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS 3095if test -n "$GLIB_COMPILE_SCHEMAS"; then 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5 3097$as_echo "$GLIB_COMPILE_SCHEMAS" >&6; } 3098else 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3100$as_echo "no" >&6; } 3101fi 3102 3103 3104fi 3105 3106 if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then 3107 as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5 3108 else 3109 : 3110 fi 3111 3112 GSETTINGS_RULES=' 3113.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas 3114 3115mostlyclean-am: clean-gsettings-schemas 3116 3117gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE)) 3118 3119%.gschema.valid: %.gschema.xml $(gsettings__enum_file) 3120 $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$< && mkdir -p $(@D) && touch $@ 3121 3122all-am: $(gsettings_SCHEMAS:.xml=.valid) 3123uninstall-am: uninstall-gsettings-schemas 3124install-data-am: install-gsettings-schemas 3125 3126.SECONDARY: $(gsettings_SCHEMAS) 3127 3128install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file) 3129 @$(NORMAL_INSTALL) 3130 if test -n "$^"; then \ 3131 test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \ 3132 $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \ 3133 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \ 3134 fi 3135 3136uninstall-gsettings-schemas: 3137 @$(NORMAL_UNINSTALL) 3138 @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ 3139 files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ 3140 test -n "$$files" || exit 0; \ 3141 echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ 3142 cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files 3143 test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir) 3144 3145clean-gsettings-schemas: 3146 rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file) 3147 3148ifdef gsettings_ENUM_NAMESPACE 3149$(gsettings__enum_file): $(gsettings_ENUM_FILES) 3150 $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@ 3151endif 3152' 3153 3154 3155 3156 3157 3158 3159 3160DEPDIR="${am__leading_dot}deps" 3161 3162ac_config_commands="$ac_config_commands depfiles" 3163 3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3165$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3166cat > confinc.mk << 'END' 3167am__doit: 3168 @echo this is the am__doit target >confinc.out 3169.PHONY: am__doit 3170END 3171am__include="#" 3172am__quote= 3173# BSD make does it like this. 3174echo '.include "confinc.mk" # ignored' > confmf.BSD 3175# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3176echo 'include confinc.mk # ignored' > confmf.GNU 3177_am_result=no 3178for s in GNU BSD; do 3179 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3180 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3181 ac_status=$? 3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3183 (exit $ac_status); } 3184 case $?:`cat confinc.out 2>/dev/null` in #( 3185 '0:this is the am__doit target') : 3186 case $s in #( 3187 BSD) : 3188 am__include='.include' am__quote='"' ;; #( 3189 *) : 3190 am__include='include' am__quote='' ;; 3191esac ;; #( 3192 *) : 3193 ;; 3194esac 3195 if test "$am__include" != "#"; then 3196 _am_result="yes ($s style)" 3197 break 3198 fi 3199done 3200rm -f confinc.* confmf.* 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3202$as_echo "${_am_result}" >&6; } 3203 3204# Check whether --enable-dependency-tracking was given. 3205if test "${enable_dependency_tracking+set}" = set; then : 3206 enableval=$enable_dependency_tracking; 3207fi 3208 3209if test "x$enable_dependency_tracking" != xno; then 3210 am_depcomp="$ac_aux_dir/depcomp" 3211 AMDEPBACKSLASH='\' 3212 am__nodep='_no' 3213fi 3214 if test "x$enable_dependency_tracking" != xno; then 3215 AMDEP_TRUE= 3216 AMDEP_FALSE='#' 3217else 3218 AMDEP_TRUE='#' 3219 AMDEP_FALSE= 3220fi 3221 3222 3223ac_ext=c 3224ac_cpp='$CPP $CPPFLAGS' 3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3227ac_compiler_gnu=$ac_cv_c_compiler_gnu 3228if test -n "$ac_tool_prefix"; then 3229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3230set dummy ${ac_tool_prefix}gcc; ac_word=$2 3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3232$as_echo_n "checking for $ac_word... " >&6; } 3233if ${ac_cv_prog_CC+:} false; then : 3234 $as_echo_n "(cached) " >&6 3235else 3236 if test -n "$CC"; then 3237 ac_cv_prog_CC="$CC" # Let the user override the test. 3238else 3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3240for as_dir in $PATH 3241do 3242 IFS=$as_save_IFS 3243 test -z "$as_dir" && as_dir=. 3244 for ac_exec_ext in '' $ac_executable_extensions; do 3245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3246 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3248 break 2 3249 fi 3250done 3251 done 3252IFS=$as_save_IFS 3253 3254fi 3255fi 3256CC=$ac_cv_prog_CC 3257if test -n "$CC"; then 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3259$as_echo "$CC" >&6; } 3260else 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3262$as_echo "no" >&6; } 3263fi 3264 3265 3266fi 3267if test -z "$ac_cv_prog_CC"; then 3268 ac_ct_CC=$CC 3269 # Extract the first word of "gcc", so it can be a program name with args. 3270set dummy gcc; ac_word=$2 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3272$as_echo_n "checking for $ac_word... " >&6; } 3273if ${ac_cv_prog_ac_ct_CC+:} false; then : 3274 $as_echo_n "(cached) " >&6 3275else 3276 if test -n "$ac_ct_CC"; then 3277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3278else 3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3280for as_dir in $PATH 3281do 3282 IFS=$as_save_IFS 3283 test -z "$as_dir" && as_dir=. 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3286 ac_cv_prog_ac_ct_CC="gcc" 3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3288 break 2 3289 fi 3290done 3291 done 3292IFS=$as_save_IFS 3293 3294fi 3295fi 3296ac_ct_CC=$ac_cv_prog_ac_ct_CC 3297if test -n "$ac_ct_CC"; then 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3299$as_echo "$ac_ct_CC" >&6; } 3300else 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3302$as_echo "no" >&6; } 3303fi 3304 3305 if test "x$ac_ct_CC" = x; then 3306 CC="" 3307 else 3308 case $cross_compiling:$ac_tool_warned in 3309yes:) 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3312ac_tool_warned=yes ;; 3313esac 3314 CC=$ac_ct_CC 3315 fi 3316else 3317 CC="$ac_cv_prog_CC" 3318fi 3319 3320if test -z "$CC"; then 3321 if test -n "$ac_tool_prefix"; then 3322 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3323set dummy ${ac_tool_prefix}cc; ac_word=$2 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3325$as_echo_n "checking for $ac_word... " >&6; } 3326if ${ac_cv_prog_CC+:} false; then : 3327 $as_echo_n "(cached) " >&6 3328else 3329 if test -n "$CC"; then 3330 ac_cv_prog_CC="$CC" # Let the user override the test. 3331else 3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3333for as_dir in $PATH 3334do 3335 IFS=$as_save_IFS 3336 test -z "$as_dir" && as_dir=. 3337 for ac_exec_ext in '' $ac_executable_extensions; do 3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3339 ac_cv_prog_CC="${ac_tool_prefix}cc" 3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3341 break 2 3342 fi 3343done 3344 done 3345IFS=$as_save_IFS 3346 3347fi 3348fi 3349CC=$ac_cv_prog_CC 3350if test -n "$CC"; then 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3352$as_echo "$CC" >&6; } 3353else 3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355$as_echo "no" >&6; } 3356fi 3357 3358 3359 fi 3360fi 3361if test -z "$CC"; then 3362 # Extract the first word of "cc", so it can be a program name with args. 3363set dummy cc; ac_word=$2 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3365$as_echo_n "checking for $ac_word... " >&6; } 3366if ${ac_cv_prog_CC+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 if test -n "$CC"; then 3370 ac_cv_prog_CC="$CC" # Let the user override the test. 3371else 3372 ac_prog_rejected=no 3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3374for as_dir in $PATH 3375do 3376 IFS=$as_save_IFS 3377 test -z "$as_dir" && as_dir=. 3378 for ac_exec_ext in '' $ac_executable_extensions; do 3379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3380 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3381 ac_prog_rejected=yes 3382 continue 3383 fi 3384 ac_cv_prog_CC="cc" 3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3386 break 2 3387 fi 3388done 3389 done 3390IFS=$as_save_IFS 3391 3392if test $ac_prog_rejected = yes; then 3393 # We found a bogon in the path, so make sure we never use it. 3394 set dummy $ac_cv_prog_CC 3395 shift 3396 if test $# != 0; then 3397 # We chose a different compiler from the bogus one. 3398 # However, it has the same basename, so the bogon will be chosen 3399 # first if we set CC to just the basename; use the full file name. 3400 shift 3401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3402 fi 3403fi 3404fi 3405fi 3406CC=$ac_cv_prog_CC 3407if test -n "$CC"; then 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3409$as_echo "$CC" >&6; } 3410else 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3412$as_echo "no" >&6; } 3413fi 3414 3415 3416fi 3417if test -z "$CC"; then 3418 if test -n "$ac_tool_prefix"; then 3419 for ac_prog in cl.exe 3420 do 3421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3422set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3424$as_echo_n "checking for $ac_word... " >&6; } 3425if ${ac_cv_prog_CC+:} false; then : 3426 $as_echo_n "(cached) " >&6 3427else 3428 if test -n "$CC"; then 3429 ac_cv_prog_CC="$CC" # Let the user override the test. 3430else 3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3432for as_dir in $PATH 3433do 3434 IFS=$as_save_IFS 3435 test -z "$as_dir" && as_dir=. 3436 for ac_exec_ext in '' $ac_executable_extensions; do 3437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3440 break 2 3441 fi 3442done 3443 done 3444IFS=$as_save_IFS 3445 3446fi 3447fi 3448CC=$ac_cv_prog_CC 3449if test -n "$CC"; then 3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3451$as_echo "$CC" >&6; } 3452else 3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3454$as_echo "no" >&6; } 3455fi 3456 3457 3458 test -n "$CC" && break 3459 done 3460fi 3461if test -z "$CC"; then 3462 ac_ct_CC=$CC 3463 for ac_prog in cl.exe 3464do 3465 # Extract the first word of "$ac_prog", so it can be a program name with args. 3466set dummy $ac_prog; ac_word=$2 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3468$as_echo_n "checking for $ac_word... " >&6; } 3469if ${ac_cv_prog_ac_ct_CC+:} false; then : 3470 $as_echo_n "(cached) " >&6 3471else 3472 if test -n "$ac_ct_CC"; then 3473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3474else 3475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3476for as_dir in $PATH 3477do 3478 IFS=$as_save_IFS 3479 test -z "$as_dir" && as_dir=. 3480 for ac_exec_ext in '' $ac_executable_extensions; do 3481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3482 ac_cv_prog_ac_ct_CC="$ac_prog" 3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3484 break 2 3485 fi 3486done 3487 done 3488IFS=$as_save_IFS 3489 3490fi 3491fi 3492ac_ct_CC=$ac_cv_prog_ac_ct_CC 3493if test -n "$ac_ct_CC"; then 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3495$as_echo "$ac_ct_CC" >&6; } 3496else 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3498$as_echo "no" >&6; } 3499fi 3500 3501 3502 test -n "$ac_ct_CC" && break 3503done 3504 3505 if test "x$ac_ct_CC" = x; then 3506 CC="" 3507 else 3508 case $cross_compiling:$ac_tool_warned in 3509yes:) 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3512ac_tool_warned=yes ;; 3513esac 3514 CC=$ac_ct_CC 3515 fi 3516fi 3517 3518fi 3519 3520 3521test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3523as_fn_error $? "no acceptable C compiler found in \$PATH 3524See \`config.log' for more details" "$LINENO" 5; } 3525 3526# Provide some information about the compiler. 3527$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3528set X $ac_compile 3529ac_compiler=$2 3530for ac_option in --version -v -V -qversion; do 3531 { { ac_try="$ac_compiler $ac_option >&5" 3532case "(($ac_try" in 3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3534 *) ac_try_echo=$ac_try;; 3535esac 3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3537$as_echo "$ac_try_echo"; } >&5 3538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3539 ac_status=$? 3540 if test -s conftest.err; then 3541 sed '10a\ 3542... rest of stderr output deleted ... 3543 10q' conftest.err >conftest.er1 3544 cat conftest.er1 >&5 3545 fi 3546 rm -f conftest.er1 conftest.err 3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3548 test $ac_status = 0; } 3549done 3550 3551cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3552/* end confdefs.h. */ 3553 3554int 3555main () 3556{ 3557 3558 ; 3559 return 0; 3560} 3561_ACEOF 3562ac_clean_files_save=$ac_clean_files 3563ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3564# Try to create an executable without -o first, disregard a.out. 3565# It will help us diagnose broken compilers, and finding out an intuition 3566# of exeext. 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3568$as_echo_n "checking whether the C compiler works... " >&6; } 3569ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3570 3571# The possible output files: 3572ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3573 3574ac_rmfiles= 3575for ac_file in $ac_files 3576do 3577 case $ac_file in 3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3579 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3580 esac 3581done 3582rm -f $ac_rmfiles 3583 3584if { { ac_try="$ac_link_default" 3585case "(($ac_try" in 3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3587 *) ac_try_echo=$ac_try;; 3588esac 3589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3590$as_echo "$ac_try_echo"; } >&5 3591 (eval "$ac_link_default") 2>&5 3592 ac_status=$? 3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3594 test $ac_status = 0; }; then : 3595 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3596# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3597# in a Makefile. We should not override ac_cv_exeext if it was cached, 3598# so that the user can short-circuit this test for compilers unknown to 3599# Autoconf. 3600for ac_file in $ac_files '' 3601do 3602 test -f "$ac_file" || continue 3603 case $ac_file in 3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3605 ;; 3606 [ab].out ) 3607 # We found the default executable, but exeext='' is most 3608 # certainly right. 3609 break;; 3610 *.* ) 3611 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3612 then :; else 3613 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3614 fi 3615 # We set ac_cv_exeext here because the later test for it is not 3616 # safe: cross compilers may not add the suffix if given an `-o' 3617 # argument, so we may need to know it at that point already. 3618 # Even if this section looks crufty: it has the advantage of 3619 # actually working. 3620 break;; 3621 * ) 3622 break;; 3623 esac 3624done 3625test "$ac_cv_exeext" = no && ac_cv_exeext= 3626 3627else 3628 ac_file='' 3629fi 3630if test -z "$ac_file"; then : 3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3632$as_echo "no" >&6; } 3633$as_echo "$as_me: failed program was:" >&5 3634sed 's/^/| /' conftest.$ac_ext >&5 3635 3636{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3638as_fn_error 77 "C compiler cannot create executables 3639See \`config.log' for more details" "$LINENO" 5; } 3640else 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3642$as_echo "yes" >&6; } 3643fi 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3645$as_echo_n "checking for C compiler default output file name... " >&6; } 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3647$as_echo "$ac_file" >&6; } 3648ac_exeext=$ac_cv_exeext 3649 3650rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3651ac_clean_files=$ac_clean_files_save 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3653$as_echo_n "checking for suffix of executables... " >&6; } 3654if { { ac_try="$ac_link" 3655case "(($ac_try" in 3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3657 *) ac_try_echo=$ac_try;; 3658esac 3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3660$as_echo "$ac_try_echo"; } >&5 3661 (eval "$ac_link") 2>&5 3662 ac_status=$? 3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3664 test $ac_status = 0; }; then : 3665 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3666# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3667# work properly (i.e., refer to `conftest.exe'), while it won't with 3668# `rm'. 3669for ac_file in conftest.exe conftest conftest.*; do 3670 test -f "$ac_file" || continue 3671 case $ac_file in 3672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3673 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3674 break;; 3675 * ) break;; 3676 esac 3677done 3678else 3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3681as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3682See \`config.log' for more details" "$LINENO" 5; } 3683fi 3684rm -f conftest conftest$ac_cv_exeext 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3686$as_echo "$ac_cv_exeext" >&6; } 3687 3688rm -f conftest.$ac_ext 3689EXEEXT=$ac_cv_exeext 3690ac_exeext=$EXEEXT 3691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3692/* end confdefs.h. */ 3693#include <stdio.h> 3694int 3695main () 3696{ 3697FILE *f = fopen ("conftest.out", "w"); 3698 return ferror (f) || fclose (f) != 0; 3699 3700 ; 3701 return 0; 3702} 3703_ACEOF 3704ac_clean_files="$ac_clean_files conftest.out" 3705# Check that the compiler produces executables we can run. If not, either 3706# the compiler is broken, or we cross compile. 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3708$as_echo_n "checking whether we are cross compiling... " >&6; } 3709if test "$cross_compiling" != yes; then 3710 { { ac_try="$ac_link" 3711case "(($ac_try" in 3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3713 *) ac_try_echo=$ac_try;; 3714esac 3715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3716$as_echo "$ac_try_echo"; } >&5 3717 (eval "$ac_link") 2>&5 3718 ac_status=$? 3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3720 test $ac_status = 0; } 3721 if { ac_try='./conftest$ac_cv_exeext' 3722 { { case "(($ac_try" in 3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3724 *) ac_try_echo=$ac_try;; 3725esac 3726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3727$as_echo "$ac_try_echo"; } >&5 3728 (eval "$ac_try") 2>&5 3729 ac_status=$? 3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3731 test $ac_status = 0; }; }; then 3732 cross_compiling=no 3733 else 3734 if test "$cross_compiling" = maybe; then 3735 cross_compiling=yes 3736 else 3737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3739as_fn_error $? "cannot run C compiled programs. 3740If you meant to cross compile, use \`--host'. 3741See \`config.log' for more details" "$LINENO" 5; } 3742 fi 3743 fi 3744fi 3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3746$as_echo "$cross_compiling" >&6; } 3747 3748rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3749ac_clean_files=$ac_clean_files_save 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3751$as_echo_n "checking for suffix of object files... " >&6; } 3752if ${ac_cv_objext+:} false; then : 3753 $as_echo_n "(cached) " >&6 3754else 3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756/* end confdefs.h. */ 3757 3758int 3759main () 3760{ 3761 3762 ; 3763 return 0; 3764} 3765_ACEOF 3766rm -f conftest.o conftest.obj 3767if { { ac_try="$ac_compile" 3768case "(($ac_try" in 3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3770 *) ac_try_echo=$ac_try;; 3771esac 3772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3773$as_echo "$ac_try_echo"; } >&5 3774 (eval "$ac_compile") 2>&5 3775 ac_status=$? 3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3777 test $ac_status = 0; }; then : 3778 for ac_file in conftest.o conftest.obj conftest.*; do 3779 test -f "$ac_file" || continue; 3780 case $ac_file in 3781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3782 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3783 break;; 3784 esac 3785done 3786else 3787 $as_echo "$as_me: failed program was:" >&5 3788sed 's/^/| /' conftest.$ac_ext >&5 3789 3790{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3792as_fn_error $? "cannot compute suffix of object files: cannot compile 3793See \`config.log' for more details" "$LINENO" 5; } 3794fi 3795rm -f conftest.$ac_cv_objext conftest.$ac_ext 3796fi 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3798$as_echo "$ac_cv_objext" >&6; } 3799OBJEXT=$ac_cv_objext 3800ac_objext=$OBJEXT 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3802$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3803if ${ac_cv_c_compiler_gnu+:} false; then : 3804 $as_echo_n "(cached) " >&6 3805else 3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807/* end confdefs.h. */ 3808 3809int 3810main () 3811{ 3812#ifndef __GNUC__ 3813 choke me 3814#endif 3815 3816 ; 3817 return 0; 3818} 3819_ACEOF 3820if ac_fn_c_try_compile "$LINENO"; then : 3821 ac_compiler_gnu=yes 3822else 3823 ac_compiler_gnu=no 3824fi 3825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3826ac_cv_c_compiler_gnu=$ac_compiler_gnu 3827 3828fi 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3830$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3831if test $ac_compiler_gnu = yes; then 3832 GCC=yes 3833else 3834 GCC= 3835fi 3836ac_test_CFLAGS=${CFLAGS+set} 3837ac_save_CFLAGS=$CFLAGS 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3839$as_echo_n "checking whether $CC accepts -g... " >&6; } 3840if ${ac_cv_prog_cc_g+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 ac_save_c_werror_flag=$ac_c_werror_flag 3844 ac_c_werror_flag=yes 3845 ac_cv_prog_cc_g=no 3846 CFLAGS="-g" 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3848/* end confdefs.h. */ 3849 3850int 3851main () 3852{ 3853 3854 ; 3855 return 0; 3856} 3857_ACEOF 3858if ac_fn_c_try_compile "$LINENO"; then : 3859 ac_cv_prog_cc_g=yes 3860else 3861 CFLAGS="" 3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3863/* end confdefs.h. */ 3864 3865int 3866main () 3867{ 3868 3869 ; 3870 return 0; 3871} 3872_ACEOF 3873if ac_fn_c_try_compile "$LINENO"; then : 3874 3875else 3876 ac_c_werror_flag=$ac_save_c_werror_flag 3877 CFLAGS="-g" 3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3879/* end confdefs.h. */ 3880 3881int 3882main () 3883{ 3884 3885 ; 3886 return 0; 3887} 3888_ACEOF 3889if ac_fn_c_try_compile "$LINENO"; then : 3890 ac_cv_prog_cc_g=yes 3891fi 3892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3893fi 3894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3895fi 3896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3897 ac_c_werror_flag=$ac_save_c_werror_flag 3898fi 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3900$as_echo "$ac_cv_prog_cc_g" >&6; } 3901if test "$ac_test_CFLAGS" = set; then 3902 CFLAGS=$ac_save_CFLAGS 3903elif test $ac_cv_prog_cc_g = yes; then 3904 if test "$GCC" = yes; then 3905 CFLAGS="-g -O2" 3906 else 3907 CFLAGS="-g" 3908 fi 3909else 3910 if test "$GCC" = yes; then 3911 CFLAGS="-O2" 3912 else 3913 CFLAGS= 3914 fi 3915fi 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3917$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3918if ${ac_cv_prog_cc_c89+:} false; then : 3919 $as_echo_n "(cached) " >&6 3920else 3921 ac_cv_prog_cc_c89=no 3922ac_save_CC=$CC 3923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3924/* end confdefs.h. */ 3925#include <stdarg.h> 3926#include <stdio.h> 3927struct stat; 3928/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3929struct buf { int x; }; 3930FILE * (*rcsopen) (struct buf *, struct stat *, int); 3931static char *e (p, i) 3932 char **p; 3933 int i; 3934{ 3935 return p[i]; 3936} 3937static char *f (char * (*g) (char **, int), char **p, ...) 3938{ 3939 char *s; 3940 va_list v; 3941 va_start (v,p); 3942 s = g (p, va_arg (v,int)); 3943 va_end (v); 3944 return s; 3945} 3946 3947/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3948 function prototypes and stuff, but not '\xHH' hex character constants. 3949 These don't provoke an error unfortunately, instead are silently treated 3950 as 'x'. The following induces an error, until -std is added to get 3951 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3952 array size at least. It's necessary to write '\x00'==0 to get something 3953 that's true only with -std. */ 3954int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3955 3956/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3957 inside strings and character constants. */ 3958#define FOO(x) 'x' 3959int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3960 3961int test (int i, double x); 3962struct s1 {int (*f) (int a);}; 3963struct s2 {int (*f) (double a);}; 3964int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3965int argc; 3966char **argv; 3967int 3968main () 3969{ 3970return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3971 ; 3972 return 0; 3973} 3974_ACEOF 3975for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3976 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3977do 3978 CC="$ac_save_CC $ac_arg" 3979 if ac_fn_c_try_compile "$LINENO"; then : 3980 ac_cv_prog_cc_c89=$ac_arg 3981fi 3982rm -f core conftest.err conftest.$ac_objext 3983 test "x$ac_cv_prog_cc_c89" != "xno" && break 3984done 3985rm -f conftest.$ac_ext 3986CC=$ac_save_CC 3987 3988fi 3989# AC_CACHE_VAL 3990case "x$ac_cv_prog_cc_c89" in 3991 x) 3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3993$as_echo "none needed" >&6; } ;; 3994 xno) 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3996$as_echo "unsupported" >&6; } ;; 3997 *) 3998 CC="$CC $ac_cv_prog_cc_c89" 3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4000$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4001esac 4002if test "x$ac_cv_prog_cc_c89" != xno; then : 4003 4004fi 4005 4006ac_ext=c 4007ac_cpp='$CPP $CPPFLAGS' 4008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4010ac_compiler_gnu=$ac_cv_c_compiler_gnu 4011 4012ac_ext=c 4013ac_cpp='$CPP $CPPFLAGS' 4014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4016ac_compiler_gnu=$ac_cv_c_compiler_gnu 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4018$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4019if ${am_cv_prog_cc_c_o+:} false; then : 4020 $as_echo_n "(cached) " >&6 4021else 4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4023/* end confdefs.h. */ 4024 4025int 4026main () 4027{ 4028 4029 ; 4030 return 0; 4031} 4032_ACEOF 4033 # Make sure it works both with $CC and with simple cc. 4034 # Following AC_PROG_CC_C_O, we do the test twice because some 4035 # compilers refuse to overwrite an existing .o file with -o, 4036 # though they will create one. 4037 am_cv_prog_cc_c_o=yes 4038 for am_i in 1 2; do 4039 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4040 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4041 ac_status=$? 4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4043 (exit $ac_status); } \ 4044 && test -f conftest2.$ac_objext; then 4045 : OK 4046 else 4047 am_cv_prog_cc_c_o=no 4048 break 4049 fi 4050 done 4051 rm -f core conftest* 4052 unset am_i 4053fi 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4055$as_echo "$am_cv_prog_cc_c_o" >&6; } 4056if test "$am_cv_prog_cc_c_o" != yes; then 4057 # Losing compiler, so override with the script. 4058 # FIXME: It is wrong to rewrite CC. 4059 # But if we don't then we get into trouble of one sort or another. 4060 # A longer-term fix would be to have automake use am__CC in this case, 4061 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4062 CC="$am_aux_dir/compile $CC" 4063fi 4064ac_ext=c 4065ac_cpp='$CPP $CPPFLAGS' 4066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4068ac_compiler_gnu=$ac_cv_c_compiler_gnu 4069 4070 4071depcc="$CC" am_compiler_list= 4072 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4074$as_echo_n "checking dependency style of $depcc... " >&6; } 4075if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4076 $as_echo_n "(cached) " >&6 4077else 4078 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4079 # We make a subdir and do the tests there. Otherwise we can end up 4080 # making bogus files that we don't know about and never remove. For 4081 # instance it was reported that on HP-UX the gcc test will end up 4082 # making a dummy file named 'D' -- because '-MD' means "put the output 4083 # in D". 4084 rm -rf conftest.dir 4085 mkdir conftest.dir 4086 # Copy depcomp to subdir because otherwise we won't find it if we're 4087 # using a relative directory. 4088 cp "$am_depcomp" conftest.dir 4089 cd conftest.dir 4090 # We will build objects and dependencies in a subdirectory because 4091 # it helps to detect inapplicable dependency modes. For instance 4092 # both Tru64's cc and ICC support -MD to output dependencies as a 4093 # side effect of compilation, but ICC will put the dependencies in 4094 # the current directory while Tru64 will put them in the object 4095 # directory. 4096 mkdir sub 4097 4098 am_cv_CC_dependencies_compiler_type=none 4099 if test "$am_compiler_list" = ""; then 4100 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4101 fi 4102 am__universal=false 4103 case " $depcc " in #( 4104 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4105 esac 4106 4107 for depmode in $am_compiler_list; do 4108 # Setup a source with many dependencies, because some compilers 4109 # like to wrap large dependency lists on column 80 (with \), and 4110 # we should not choose a depcomp mode which is confused by this. 4111 # 4112 # We need to recreate these files for each test, as the compiler may 4113 # overwrite some of them when testing with obscure command lines. 4114 # This happens at least with the AIX C compiler. 4115 : > sub/conftest.c 4116 for i in 1 2 3 4 5 6; do 4117 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4118 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4119 # Solaris 10 /bin/sh. 4120 echo '/* dummy */' > sub/conftst$i.h 4121 done 4122 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4123 4124 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4125 # mode. It turns out that the SunPro C++ compiler does not properly 4126 # handle '-M -o', and we need to detect this. Also, some Intel 4127 # versions had trouble with output in subdirs. 4128 am__obj=sub/conftest.${OBJEXT-o} 4129 am__minus_obj="-o $am__obj" 4130 case $depmode in 4131 gcc) 4132 # This depmode causes a compiler race in universal mode. 4133 test "$am__universal" = false || continue 4134 ;; 4135 nosideeffect) 4136 # After this tag, mechanisms are not by side-effect, so they'll 4137 # only be used when explicitly requested. 4138 if test "x$enable_dependency_tracking" = xyes; then 4139 continue 4140 else 4141 break 4142 fi 4143 ;; 4144 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4145 # This compiler won't grok '-c -o', but also, the minuso test has 4146 # not run yet. These depmodes are late enough in the game, and 4147 # so weak that their functioning should not be impacted. 4148 am__obj=conftest.${OBJEXT-o} 4149 am__minus_obj= 4150 ;; 4151 none) break ;; 4152 esac 4153 if depmode=$depmode \ 4154 source=sub/conftest.c object=$am__obj \ 4155 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4156 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4157 >/dev/null 2>conftest.err && 4158 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4159 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4160 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4161 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4162 # icc doesn't choke on unknown options, it will just issue warnings 4163 # or remarks (even with -Werror). So we grep stderr for any message 4164 # that says an option was ignored or not supported. 4165 # When given -MP, icc 7.0 and 7.1 complain thusly: 4166 # icc: Command line warning: ignoring option '-M'; no argument required 4167 # The diagnosis changed in icc 8.0: 4168 # icc: Command line remark: option '-MP' not supported 4169 if (grep 'ignoring option' conftest.err || 4170 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4171 am_cv_CC_dependencies_compiler_type=$depmode 4172 break 4173 fi 4174 fi 4175 done 4176 4177 cd .. 4178 rm -rf conftest.dir 4179else 4180 am_cv_CC_dependencies_compiler_type=none 4181fi 4182 4183fi 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4185$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4186CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4187 4188 if 4189 test "x$enable_dependency_tracking" != xno \ 4190 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4191 am__fastdepCC_TRUE= 4192 am__fastdepCC_FALSE='#' 4193else 4194 am__fastdepCC_TRUE='#' 4195 am__fastdepCC_FALSE= 4196fi 4197 4198 4199 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 4201$as_echo_n "checking for library containing strerror... " >&6; } 4202if ${ac_cv_search_strerror+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 ac_func_search_save_LIBS=$LIBS 4206cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4207/* end confdefs.h. */ 4208 4209/* Override any GCC internal prototype to avoid an error. 4210 Use char because int might match the return type of a GCC 4211 builtin and then its argument prototype would still apply. */ 4212#ifdef __cplusplus 4213extern "C" 4214#endif 4215char strerror (); 4216int 4217main () 4218{ 4219return strerror (); 4220 ; 4221 return 0; 4222} 4223_ACEOF 4224for ac_lib in '' cposix; do 4225 if test -z "$ac_lib"; then 4226 ac_res="none required" 4227 else 4228 ac_res=-l$ac_lib 4229 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4230 fi 4231 if ac_fn_c_try_link "$LINENO"; then : 4232 ac_cv_search_strerror=$ac_res 4233fi 4234rm -f core conftest.err conftest.$ac_objext \ 4235 conftest$ac_exeext 4236 if ${ac_cv_search_strerror+:} false; then : 4237 break 4238fi 4239done 4240if ${ac_cv_search_strerror+:} false; then : 4241 4242else 4243 ac_cv_search_strerror=no 4244fi 4245rm conftest.$ac_ext 4246LIBS=$ac_func_search_save_LIBS 4247fi 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 4249$as_echo "$ac_cv_search_strerror" >&6; } 4250ac_res=$ac_cv_search_strerror 4251if test "$ac_res" != no; then : 4252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4253 4254fi 4255 4256ac_ext=c 4257ac_cpp='$CPP $CPPFLAGS' 4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4260ac_compiler_gnu=$ac_cv_c_compiler_gnu 4261if test -n "$ac_tool_prefix"; then 4262 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4263set dummy ${ac_tool_prefix}gcc; ac_word=$2 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4265$as_echo_n "checking for $ac_word... " >&6; } 4266if ${ac_cv_prog_CC+:} false; then : 4267 $as_echo_n "(cached) " >&6 4268else 4269 if test -n "$CC"; then 4270 ac_cv_prog_CC="$CC" # Let the user override the test. 4271else 4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4273for as_dir in $PATH 4274do 4275 IFS=$as_save_IFS 4276 test -z "$as_dir" && as_dir=. 4277 for ac_exec_ext in '' $ac_executable_extensions; do 4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4279 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4281 break 2 4282 fi 4283done 4284 done 4285IFS=$as_save_IFS 4286 4287fi 4288fi 4289CC=$ac_cv_prog_CC 4290if test -n "$CC"; then 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4292$as_echo "$CC" >&6; } 4293else 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4295$as_echo "no" >&6; } 4296fi 4297 4298 4299fi 4300if test -z "$ac_cv_prog_CC"; then 4301 ac_ct_CC=$CC 4302 # Extract the first word of "gcc", so it can be a program name with args. 4303set dummy gcc; ac_word=$2 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4305$as_echo_n "checking for $ac_word... " >&6; } 4306if ${ac_cv_prog_ac_ct_CC+:} false; then : 4307 $as_echo_n "(cached) " >&6 4308else 4309 if test -n "$ac_ct_CC"; then 4310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4311else 4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4313for as_dir in $PATH 4314do 4315 IFS=$as_save_IFS 4316 test -z "$as_dir" && as_dir=. 4317 for ac_exec_ext in '' $ac_executable_extensions; do 4318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4319 ac_cv_prog_ac_ct_CC="gcc" 4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4321 break 2 4322 fi 4323done 4324 done 4325IFS=$as_save_IFS 4326 4327fi 4328fi 4329ac_ct_CC=$ac_cv_prog_ac_ct_CC 4330if test -n "$ac_ct_CC"; then 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4332$as_echo "$ac_ct_CC" >&6; } 4333else 4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4335$as_echo "no" >&6; } 4336fi 4337 4338 if test "x$ac_ct_CC" = x; then 4339 CC="" 4340 else 4341 case $cross_compiling:$ac_tool_warned in 4342yes:) 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4345ac_tool_warned=yes ;; 4346esac 4347 CC=$ac_ct_CC 4348 fi 4349else 4350 CC="$ac_cv_prog_CC" 4351fi 4352 4353if test -z "$CC"; then 4354 if test -n "$ac_tool_prefix"; then 4355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4356set dummy ${ac_tool_prefix}cc; ac_word=$2 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4358$as_echo_n "checking for $ac_word... " >&6; } 4359if ${ac_cv_prog_CC+:} false; then : 4360 $as_echo_n "(cached) " >&6 4361else 4362 if test -n "$CC"; then 4363 ac_cv_prog_CC="$CC" # Let the user override the test. 4364else 4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4366for as_dir in $PATH 4367do 4368 IFS=$as_save_IFS 4369 test -z "$as_dir" && as_dir=. 4370 for ac_exec_ext in '' $ac_executable_extensions; do 4371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4372 ac_cv_prog_CC="${ac_tool_prefix}cc" 4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4374 break 2 4375 fi 4376done 4377 done 4378IFS=$as_save_IFS 4379 4380fi 4381fi 4382CC=$ac_cv_prog_CC 4383if test -n "$CC"; then 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4385$as_echo "$CC" >&6; } 4386else 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4388$as_echo "no" >&6; } 4389fi 4390 4391 4392 fi 4393fi 4394if test -z "$CC"; then 4395 # Extract the first word of "cc", so it can be a program name with args. 4396set dummy cc; ac_word=$2 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4398$as_echo_n "checking for $ac_word... " >&6; } 4399if ${ac_cv_prog_CC+:} false; then : 4400 $as_echo_n "(cached) " >&6 4401else 4402 if test -n "$CC"; then 4403 ac_cv_prog_CC="$CC" # Let the user override the test. 4404else 4405 ac_prog_rejected=no 4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4407for as_dir in $PATH 4408do 4409 IFS=$as_save_IFS 4410 test -z "$as_dir" && as_dir=. 4411 for ac_exec_ext in '' $ac_executable_extensions; do 4412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4413 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4414 ac_prog_rejected=yes 4415 continue 4416 fi 4417 ac_cv_prog_CC="cc" 4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4419 break 2 4420 fi 4421done 4422 done 4423IFS=$as_save_IFS 4424 4425if test $ac_prog_rejected = yes; then 4426 # We found a bogon in the path, so make sure we never use it. 4427 set dummy $ac_cv_prog_CC 4428 shift 4429 if test $# != 0; then 4430 # We chose a different compiler from the bogus one. 4431 # However, it has the same basename, so the bogon will be chosen 4432 # first if we set CC to just the basename; use the full file name. 4433 shift 4434 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4435 fi 4436fi 4437fi 4438fi 4439CC=$ac_cv_prog_CC 4440if test -n "$CC"; then 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4442$as_echo "$CC" >&6; } 4443else 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4445$as_echo "no" >&6; } 4446fi 4447 4448 4449fi 4450if test -z "$CC"; then 4451 if test -n "$ac_tool_prefix"; then 4452 for ac_prog in cl.exe 4453 do 4454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4455set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4457$as_echo_n "checking for $ac_word... " >&6; } 4458if ${ac_cv_prog_CC+:} false; then : 4459 $as_echo_n "(cached) " >&6 4460else 4461 if test -n "$CC"; then 4462 ac_cv_prog_CC="$CC" # Let the user override the test. 4463else 4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4465for as_dir in $PATH 4466do 4467 IFS=$as_save_IFS 4468 test -z "$as_dir" && as_dir=. 4469 for ac_exec_ext in '' $ac_executable_extensions; do 4470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4471 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4473 break 2 4474 fi 4475done 4476 done 4477IFS=$as_save_IFS 4478 4479fi 4480fi 4481CC=$ac_cv_prog_CC 4482if test -n "$CC"; then 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4484$as_echo "$CC" >&6; } 4485else 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4487$as_echo "no" >&6; } 4488fi 4489 4490 4491 test -n "$CC" && break 4492 done 4493fi 4494if test -z "$CC"; then 4495 ac_ct_CC=$CC 4496 for ac_prog in cl.exe 4497do 4498 # Extract the first word of "$ac_prog", so it can be a program name with args. 4499set dummy $ac_prog; ac_word=$2 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4501$as_echo_n "checking for $ac_word... " >&6; } 4502if ${ac_cv_prog_ac_ct_CC+:} false; then : 4503 $as_echo_n "(cached) " >&6 4504else 4505 if test -n "$ac_ct_CC"; then 4506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4507else 4508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4509for as_dir in $PATH 4510do 4511 IFS=$as_save_IFS 4512 test -z "$as_dir" && as_dir=. 4513 for ac_exec_ext in '' $ac_executable_extensions; do 4514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4515 ac_cv_prog_ac_ct_CC="$ac_prog" 4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4517 break 2 4518 fi 4519done 4520 done 4521IFS=$as_save_IFS 4522 4523fi 4524fi 4525ac_ct_CC=$ac_cv_prog_ac_ct_CC 4526if test -n "$ac_ct_CC"; then 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4528$as_echo "$ac_ct_CC" >&6; } 4529else 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4531$as_echo "no" >&6; } 4532fi 4533 4534 4535 test -n "$ac_ct_CC" && break 4536done 4537 4538 if test "x$ac_ct_CC" = x; then 4539 CC="" 4540 else 4541 case $cross_compiling:$ac_tool_warned in 4542yes:) 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4545ac_tool_warned=yes ;; 4546esac 4547 CC=$ac_ct_CC 4548 fi 4549fi 4550 4551fi 4552 4553 4554test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4556as_fn_error $? "no acceptable C compiler found in \$PATH 4557See \`config.log' for more details" "$LINENO" 5; } 4558 4559# Provide some information about the compiler. 4560$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4561set X $ac_compile 4562ac_compiler=$2 4563for ac_option in --version -v -V -qversion; do 4564 { { ac_try="$ac_compiler $ac_option >&5" 4565case "(($ac_try" in 4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4567 *) ac_try_echo=$ac_try;; 4568esac 4569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4570$as_echo "$ac_try_echo"; } >&5 4571 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4572 ac_status=$? 4573 if test -s conftest.err; then 4574 sed '10a\ 4575... rest of stderr output deleted ... 4576 10q' conftest.err >conftest.er1 4577 cat conftest.er1 >&5 4578 fi 4579 rm -f conftest.er1 conftest.err 4580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4581 test $ac_status = 0; } 4582done 4583 4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4585$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4586if ${ac_cv_c_compiler_gnu+:} false; then : 4587 $as_echo_n "(cached) " >&6 4588else 4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4590/* end confdefs.h. */ 4591 4592int 4593main () 4594{ 4595#ifndef __GNUC__ 4596 choke me 4597#endif 4598 4599 ; 4600 return 0; 4601} 4602_ACEOF 4603if ac_fn_c_try_compile "$LINENO"; then : 4604 ac_compiler_gnu=yes 4605else 4606 ac_compiler_gnu=no 4607fi 4608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4609ac_cv_c_compiler_gnu=$ac_compiler_gnu 4610 4611fi 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4613$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4614if test $ac_compiler_gnu = yes; then 4615 GCC=yes 4616else 4617 GCC= 4618fi 4619ac_test_CFLAGS=${CFLAGS+set} 4620ac_save_CFLAGS=$CFLAGS 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4622$as_echo_n "checking whether $CC accepts -g... " >&6; } 4623if ${ac_cv_prog_cc_g+:} false; then : 4624 $as_echo_n "(cached) " >&6 4625else 4626 ac_save_c_werror_flag=$ac_c_werror_flag 4627 ac_c_werror_flag=yes 4628 ac_cv_prog_cc_g=no 4629 CFLAGS="-g" 4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4631/* end confdefs.h. */ 4632 4633int 4634main () 4635{ 4636 4637 ; 4638 return 0; 4639} 4640_ACEOF 4641if ac_fn_c_try_compile "$LINENO"; then : 4642 ac_cv_prog_cc_g=yes 4643else 4644 CFLAGS="" 4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4646/* end confdefs.h. */ 4647 4648int 4649main () 4650{ 4651 4652 ; 4653 return 0; 4654} 4655_ACEOF 4656if ac_fn_c_try_compile "$LINENO"; then : 4657 4658else 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 () 4666{ 4667 4668 ; 4669 return 0; 4670} 4671_ACEOF 4672if ac_fn_c_try_compile "$LINENO"; then : 4673 ac_cv_prog_cc_g=yes 4674fi 4675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4676fi 4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4678fi 4679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4680 ac_c_werror_flag=$ac_save_c_werror_flag 4681fi 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4683$as_echo "$ac_cv_prog_cc_g" >&6; } 4684if test "$ac_test_CFLAGS" = set; then 4685 CFLAGS=$ac_save_CFLAGS 4686elif test $ac_cv_prog_cc_g = yes; then 4687 if test "$GCC" = yes; then 4688 CFLAGS="-g -O2" 4689 else 4690 CFLAGS="-g" 4691 fi 4692else 4693 if test "$GCC" = yes; then 4694 CFLAGS="-O2" 4695 else 4696 CFLAGS= 4697 fi 4698fi 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4700$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4701if ${ac_cv_prog_cc_c89+:} false; then : 4702 $as_echo_n "(cached) " >&6 4703else 4704 ac_cv_prog_cc_c89=no 4705ac_save_CC=$CC 4706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4707/* end confdefs.h. */ 4708#include <stdarg.h> 4709#include <stdio.h> 4710struct stat; 4711/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4712struct buf { int x; }; 4713FILE * (*rcsopen) (struct buf *, struct stat *, int); 4714static char *e (p, i) 4715 char **p; 4716 int i; 4717{ 4718 return p[i]; 4719} 4720static char *f (char * (*g) (char **, int), char **p, ...) 4721{ 4722 char *s; 4723 va_list v; 4724 va_start (v,p); 4725 s = g (p, va_arg (v,int)); 4726 va_end (v); 4727 return s; 4728} 4729 4730/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4731 function prototypes and stuff, but not '\xHH' hex character constants. 4732 These don't provoke an error unfortunately, instead are silently treated 4733 as 'x'. The following induces an error, until -std is added to get 4734 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4735 array size at least. It's necessary to write '\x00'==0 to get something 4736 that's true only with -std. */ 4737int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4738 4739/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4740 inside strings and character constants. */ 4741#define FOO(x) 'x' 4742int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4743 4744int test (int i, double x); 4745struct s1 {int (*f) (int a);}; 4746struct s2 {int (*f) (double a);}; 4747int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4748int argc; 4749char **argv; 4750int 4751main () 4752{ 4753return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4754 ; 4755 return 0; 4756} 4757_ACEOF 4758for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4759 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4760do 4761 CC="$ac_save_CC $ac_arg" 4762 if ac_fn_c_try_compile "$LINENO"; then : 4763 ac_cv_prog_cc_c89=$ac_arg 4764fi 4765rm -f core conftest.err conftest.$ac_objext 4766 test "x$ac_cv_prog_cc_c89" != "xno" && break 4767done 4768rm -f conftest.$ac_ext 4769CC=$ac_save_CC 4770 4771fi 4772# AC_CACHE_VAL 4773case "x$ac_cv_prog_cc_c89" in 4774 x) 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4776$as_echo "none needed" >&6; } ;; 4777 xno) 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4779$as_echo "unsupported" >&6; } ;; 4780 *) 4781 CC="$CC $ac_cv_prog_cc_c89" 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4783$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4784esac 4785if test "x$ac_cv_prog_cc_c89" != xno; then : 4786 4787fi 4788 4789ac_ext=c 4790ac_cpp='$CPP $CPPFLAGS' 4791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4793ac_compiler_gnu=$ac_cv_c_compiler_gnu 4794 4795ac_ext=c 4796ac_cpp='$CPP $CPPFLAGS' 4797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4799ac_compiler_gnu=$ac_cv_c_compiler_gnu 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4801$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4802if ${am_cv_prog_cc_c_o+:} false; then : 4803 $as_echo_n "(cached) " >&6 4804else 4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4806/* end confdefs.h. */ 4807 4808int 4809main () 4810{ 4811 4812 ; 4813 return 0; 4814} 4815_ACEOF 4816 # Make sure it works both with $CC and with simple cc. 4817 # Following AC_PROG_CC_C_O, we do the test twice because some 4818 # compilers refuse to overwrite an existing .o file with -o, 4819 # though they will create one. 4820 am_cv_prog_cc_c_o=yes 4821 for am_i in 1 2; do 4822 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4823 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4824 ac_status=$? 4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4826 (exit $ac_status); } \ 4827 && test -f conftest2.$ac_objext; then 4828 : OK 4829 else 4830 am_cv_prog_cc_c_o=no 4831 break 4832 fi 4833 done 4834 rm -f core conftest* 4835 unset am_i 4836fi 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4838$as_echo "$am_cv_prog_cc_c_o" >&6; } 4839if test "$am_cv_prog_cc_c_o" != yes; then 4840 # Losing compiler, so override with the script. 4841 # FIXME: It is wrong to rewrite CC. 4842 # But if we don't then we get into trouble of one sort or another. 4843 # A longer-term fix would be to have automake use am__CC in this case, 4844 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4845 CC="$am_aux_dir/compile $CC" 4846fi 4847ac_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 4853 4854depcc="$CC" am_compiler_list= 4855 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4857$as_echo_n "checking dependency style of $depcc... " >&6; } 4858if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4859 $as_echo_n "(cached) " >&6 4860else 4861 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4862 # We make a subdir and do the tests there. Otherwise we can end up 4863 # making bogus files that we don't know about and never remove. For 4864 # instance it was reported that on HP-UX the gcc test will end up 4865 # making a dummy file named 'D' -- because '-MD' means "put the output 4866 # in D". 4867 rm -rf conftest.dir 4868 mkdir conftest.dir 4869 # Copy depcomp to subdir because otherwise we won't find it if we're 4870 # using a relative directory. 4871 cp "$am_depcomp" conftest.dir 4872 cd conftest.dir 4873 # We will build objects and dependencies in a subdirectory because 4874 # it helps to detect inapplicable dependency modes. For instance 4875 # both Tru64's cc and ICC support -MD to output dependencies as a 4876 # side effect of compilation, but ICC will put the dependencies in 4877 # the current directory while Tru64 will put them in the object 4878 # directory. 4879 mkdir sub 4880 4881 am_cv_CC_dependencies_compiler_type=none 4882 if test "$am_compiler_list" = ""; then 4883 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4884 fi 4885 am__universal=false 4886 case " $depcc " in #( 4887 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4888 esac 4889 4890 for depmode in $am_compiler_list; do 4891 # Setup a source with many dependencies, because some compilers 4892 # like to wrap large dependency lists on column 80 (with \), and 4893 # we should not choose a depcomp mode which is confused by this. 4894 # 4895 # We need to recreate these files for each test, as the compiler may 4896 # overwrite some of them when testing with obscure command lines. 4897 # This happens at least with the AIX C compiler. 4898 : > sub/conftest.c 4899 for i in 1 2 3 4 5 6; do 4900 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4901 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4902 # Solaris 10 /bin/sh. 4903 echo '/* dummy */' > sub/conftst$i.h 4904 done 4905 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4906 4907 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4908 # mode. It turns out that the SunPro C++ compiler does not properly 4909 # handle '-M -o', and we need to detect this. Also, some Intel 4910 # versions had trouble with output in subdirs. 4911 am__obj=sub/conftest.${OBJEXT-o} 4912 am__minus_obj="-o $am__obj" 4913 case $depmode in 4914 gcc) 4915 # This depmode causes a compiler race in universal mode. 4916 test "$am__universal" = false || continue 4917 ;; 4918 nosideeffect) 4919 # After this tag, mechanisms are not by side-effect, so they'll 4920 # only be used when explicitly requested. 4921 if test "x$enable_dependency_tracking" = xyes; then 4922 continue 4923 else 4924 break 4925 fi 4926 ;; 4927 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4928 # This compiler won't grok '-c -o', but also, the minuso test has 4929 # not run yet. These depmodes are late enough in the game, and 4930 # so weak that their functioning should not be impacted. 4931 am__obj=conftest.${OBJEXT-o} 4932 am__minus_obj= 4933 ;; 4934 none) break ;; 4935 esac 4936 if depmode=$depmode \ 4937 source=sub/conftest.c object=$am__obj \ 4938 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4939 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4940 >/dev/null 2>conftest.err && 4941 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4942 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4943 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4944 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4945 # icc doesn't choke on unknown options, it will just issue warnings 4946 # or remarks (even with -Werror). So we grep stderr for any message 4947 # that says an option was ignored or not supported. 4948 # When given -MP, icc 7.0 and 7.1 complain thusly: 4949 # icc: Command line warning: ignoring option '-M'; no argument required 4950 # The diagnosis changed in icc 8.0: 4951 # icc: Command line remark: option '-MP' not supported 4952 if (grep 'ignoring option' conftest.err || 4953 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4954 am_cv_CC_dependencies_compiler_type=$depmode 4955 break 4956 fi 4957 fi 4958 done 4959 4960 cd .. 4961 rm -rf conftest.dir 4962else 4963 am_cv_CC_dependencies_compiler_type=none 4964fi 4965 4966fi 4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4968$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4969CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4970 4971 if 4972 test "x$enable_dependency_tracking" != xno \ 4973 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4974 am__fastdepCC_TRUE= 4975 am__fastdepCC_FALSE='#' 4976else 4977 am__fastdepCC_TRUE='#' 4978 am__fastdepCC_FALSE= 4979fi 4980 4981 4982if test "x$CC" != xcc; then 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4984$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4985else 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4987$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4988fi 4989set dummy $CC; ac_cc=`$as_echo "$2" | 4990 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4991if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993else 4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4995/* end confdefs.h. */ 4996 4997int 4998main () 4999{ 5000 5001 ; 5002 return 0; 5003} 5004_ACEOF 5005# Make sure it works both with $CC and with simple cc. 5006# We do the test twice because some compilers refuse to overwrite an 5007# existing .o file with -o, though they will create one. 5008ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5009rm -f conftest2.* 5010if { { case "(($ac_try" in 5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5012 *) ac_try_echo=$ac_try;; 5013esac 5014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5015$as_echo "$ac_try_echo"; } >&5 5016 (eval "$ac_try") 2>&5 5017 ac_status=$? 5018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5019 test $ac_status = 0; } && 5020 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5022 *) ac_try_echo=$ac_try;; 5023esac 5024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5025$as_echo "$ac_try_echo"; } >&5 5026 (eval "$ac_try") 2>&5 5027 ac_status=$? 5028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5029 test $ac_status = 0; }; 5030then 5031 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5032 if test "x$CC" != xcc; then 5033 # Test first that cc exists at all. 5034 if { ac_try='cc -c conftest.$ac_ext >&5' 5035 { { case "(($ac_try" in 5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5037 *) ac_try_echo=$ac_try;; 5038esac 5039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5040$as_echo "$ac_try_echo"; } >&5 5041 (eval "$ac_try") 2>&5 5042 ac_status=$? 5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5044 test $ac_status = 0; }; }; then 5045 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5046 rm -f conftest2.* 5047 if { { case "(($ac_try" in 5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5049 *) ac_try_echo=$ac_try;; 5050esac 5051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5052$as_echo "$ac_try_echo"; } >&5 5053 (eval "$ac_try") 2>&5 5054 ac_status=$? 5055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5056 test $ac_status = 0; } && 5057 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5059 *) ac_try_echo=$ac_try;; 5060esac 5061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5062$as_echo "$ac_try_echo"; } >&5 5063 (eval "$ac_try") 2>&5 5064 ac_status=$? 5065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5066 test $ac_status = 0; }; 5067 then 5068 # cc works too. 5069 : 5070 else 5071 # cc exists but doesn't like -o. 5072 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5073 fi 5074 fi 5075 fi 5076else 5077 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5078fi 5079rm -f core conftest* 5080 5081fi 5082if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5084$as_echo "yes" >&6; } 5085else 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5087$as_echo "no" >&6; } 5088 5089$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5090 5091fi 5092 5093ac_ext=c 5094ac_cpp='$CPP $CPPFLAGS' 5095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5097ac_compiler_gnu=$ac_cv_c_compiler_gnu 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5099$as_echo_n "checking how to run the C preprocessor... " >&6; } 5100# On Suns, sometimes $CPP names a directory. 5101if test -n "$CPP" && test -d "$CPP"; then 5102 CPP= 5103fi 5104if test -z "$CPP"; then 5105 if ${ac_cv_prog_CPP+:} false; then : 5106 $as_echo_n "(cached) " >&6 5107else 5108 # Double quotes because CPP needs to be expanded 5109 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5110 do 5111 ac_preproc_ok=false 5112for ac_c_preproc_warn_flag in '' yes 5113do 5114 # Use a header file that comes with gcc, so configuring glibc 5115 # with a fresh cross-compiler works. 5116 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5117 # <limits.h> exists even on freestanding compilers. 5118 # On the NeXT, cc -E runs the code through the compiler's parser, 5119 # not just through cpp. "Syntax error" is here to catch this case. 5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5121/* end confdefs.h. */ 5122#ifdef __STDC__ 5123# include <limits.h> 5124#else 5125# include <assert.h> 5126#endif 5127 Syntax error 5128_ACEOF 5129if ac_fn_c_try_cpp "$LINENO"; then : 5130 5131else 5132 # Broken: fails on valid input. 5133continue 5134fi 5135rm -f conftest.err conftest.i conftest.$ac_ext 5136 5137 # OK, works on sane cases. Now check whether nonexistent headers 5138 # can be detected and how. 5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5140/* end confdefs.h. */ 5141#include <ac_nonexistent.h> 5142_ACEOF 5143if ac_fn_c_try_cpp "$LINENO"; then : 5144 # Broken: success on invalid input. 5145continue 5146else 5147 # Passes both tests. 5148ac_preproc_ok=: 5149break 5150fi 5151rm -f conftest.err conftest.i conftest.$ac_ext 5152 5153done 5154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5155rm -f conftest.i conftest.err conftest.$ac_ext 5156if $ac_preproc_ok; then : 5157 break 5158fi 5159 5160 done 5161 ac_cv_prog_CPP=$CPP 5162 5163fi 5164 CPP=$ac_cv_prog_CPP 5165else 5166 ac_cv_prog_CPP=$CPP 5167fi 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5169$as_echo "$CPP" >&6; } 5170ac_preproc_ok=false 5171for ac_c_preproc_warn_flag in '' yes 5172do 5173 # Use a header file that comes with gcc, so configuring glibc 5174 # with a fresh cross-compiler works. 5175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5176 # <limits.h> exists even on freestanding compilers. 5177 # On the NeXT, cc -E runs the code through the compiler's parser, 5178 # not just through cpp. "Syntax error" is here to catch this case. 5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5180/* end confdefs.h. */ 5181#ifdef __STDC__ 5182# include <limits.h> 5183#else 5184# include <assert.h> 5185#endif 5186 Syntax error 5187_ACEOF 5188if ac_fn_c_try_cpp "$LINENO"; then : 5189 5190else 5191 # Broken: fails on valid input. 5192continue 5193fi 5194rm -f conftest.err conftest.i conftest.$ac_ext 5195 5196 # OK, works on sane cases. Now check whether nonexistent headers 5197 # can be detected and how. 5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5199/* end confdefs.h. */ 5200#include <ac_nonexistent.h> 5201_ACEOF 5202if ac_fn_c_try_cpp "$LINENO"; then : 5203 # Broken: success on invalid input. 5204continue 5205else 5206 # Passes both tests. 5207ac_preproc_ok=: 5208break 5209fi 5210rm -f conftest.err conftest.i conftest.$ac_ext 5211 5212done 5213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5214rm -f conftest.i conftest.err conftest.$ac_ext 5215if $ac_preproc_ok; then : 5216 5217else 5218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5220as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5221See \`config.log' for more details" "$LINENO" 5; } 5222fi 5223 5224ac_ext=c 5225ac_cpp='$CPP $CPPFLAGS' 5226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5228ac_compiler_gnu=$ac_cv_c_compiler_gnu 5229 5230 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5232$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5233if ${ac_cv_path_GREP+:} false; then : 5234 $as_echo_n "(cached) " >&6 5235else 5236 if test -z "$GREP"; then 5237 ac_path_GREP_found=false 5238 # Loop through the user's path and test for each of PROGNAME-LIST 5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5241do 5242 IFS=$as_save_IFS 5243 test -z "$as_dir" && as_dir=. 5244 for ac_prog in grep ggrep; do 5245 for ac_exec_ext in '' $ac_executable_extensions; do 5246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5247 as_fn_executable_p "$ac_path_GREP" || continue 5248# Check for GNU ac_path_GREP and select it if it is found. 5249 # Check for GNU $ac_path_GREP 5250case `"$ac_path_GREP" --version 2>&1` in 5251*GNU*) 5252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5253*) 5254 ac_count=0 5255 $as_echo_n 0123456789 >"conftest.in" 5256 while : 5257 do 5258 cat "conftest.in" "conftest.in" >"conftest.tmp" 5259 mv "conftest.tmp" "conftest.in" 5260 cp "conftest.in" "conftest.nl" 5261 $as_echo 'GREP' >> "conftest.nl" 5262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5264 as_fn_arith $ac_count + 1 && ac_count=$as_val 5265 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5266 # Best one so far, save it but keep looking for a better one 5267 ac_cv_path_GREP="$ac_path_GREP" 5268 ac_path_GREP_max=$ac_count 5269 fi 5270 # 10*(2^10) chars as input seems more than enough 5271 test $ac_count -gt 10 && break 5272 done 5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5274esac 5275 5276 $ac_path_GREP_found && break 3 5277 done 5278 done 5279 done 5280IFS=$as_save_IFS 5281 if test -z "$ac_cv_path_GREP"; then 5282 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5283 fi 5284else 5285 ac_cv_path_GREP=$GREP 5286fi 5287 5288fi 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5290$as_echo "$ac_cv_path_GREP" >&6; } 5291 GREP="$ac_cv_path_GREP" 5292 5293 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5295$as_echo_n "checking for egrep... " >&6; } 5296if ${ac_cv_path_EGREP+:} false; then : 5297 $as_echo_n "(cached) " >&6 5298else 5299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5300 then ac_cv_path_EGREP="$GREP -E" 5301 else 5302 if test -z "$EGREP"; then 5303 ac_path_EGREP_found=false 5304 # Loop through the user's path and test for each of PROGNAME-LIST 5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5306for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5307do 5308 IFS=$as_save_IFS 5309 test -z "$as_dir" && as_dir=. 5310 for ac_prog in egrep; do 5311 for ac_exec_ext in '' $ac_executable_extensions; do 5312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5313 as_fn_executable_p "$ac_path_EGREP" || continue 5314# Check for GNU ac_path_EGREP and select it if it is found. 5315 # Check for GNU $ac_path_EGREP 5316case `"$ac_path_EGREP" --version 2>&1` in 5317*GNU*) 5318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5319*) 5320 ac_count=0 5321 $as_echo_n 0123456789 >"conftest.in" 5322 while : 5323 do 5324 cat "conftest.in" "conftest.in" >"conftest.tmp" 5325 mv "conftest.tmp" "conftest.in" 5326 cp "conftest.in" "conftest.nl" 5327 $as_echo 'EGREP' >> "conftest.nl" 5328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5330 as_fn_arith $ac_count + 1 && ac_count=$as_val 5331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5332 # Best one so far, save it but keep looking for a better one 5333 ac_cv_path_EGREP="$ac_path_EGREP" 5334 ac_path_EGREP_max=$ac_count 5335 fi 5336 # 10*(2^10) chars as input seems more than enough 5337 test $ac_count -gt 10 && break 5338 done 5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5340esac 5341 5342 $ac_path_EGREP_found && break 3 5343 done 5344 done 5345 done 5346IFS=$as_save_IFS 5347 if test -z "$ac_cv_path_EGREP"; then 5348 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5349 fi 5350else 5351 ac_cv_path_EGREP=$EGREP 5352fi 5353 5354 fi 5355fi 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5357$as_echo "$ac_cv_path_EGREP" >&6; } 5358 EGREP="$ac_cv_path_EGREP" 5359 5360 5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5362$as_echo_n "checking for ANSI C header files... " >&6; } 5363if ${ac_cv_header_stdc+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365else 5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5367/* end confdefs.h. */ 5368#include <stdlib.h> 5369#include <stdarg.h> 5370#include <string.h> 5371#include <float.h> 5372 5373int 5374main () 5375{ 5376 5377 ; 5378 return 0; 5379} 5380_ACEOF 5381if ac_fn_c_try_compile "$LINENO"; then : 5382 ac_cv_header_stdc=yes 5383else 5384 ac_cv_header_stdc=no 5385fi 5386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5387 5388if test $ac_cv_header_stdc = yes; then 5389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5391/* end confdefs.h. */ 5392#include <string.h> 5393 5394_ACEOF 5395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5396 $EGREP "memchr" >/dev/null 2>&1; then : 5397 5398else 5399 ac_cv_header_stdc=no 5400fi 5401rm -f conftest* 5402 5403fi 5404 5405if test $ac_cv_header_stdc = yes; then 5406 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408/* end confdefs.h. */ 5409#include <stdlib.h> 5410 5411_ACEOF 5412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5413 $EGREP "free" >/dev/null 2>&1; then : 5414 5415else 5416 ac_cv_header_stdc=no 5417fi 5418rm -f conftest* 5419 5420fi 5421 5422if test $ac_cv_header_stdc = yes; then 5423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5424 if test "$cross_compiling" = yes; then : 5425 : 5426else 5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5428/* end confdefs.h. */ 5429#include <ctype.h> 5430#include <stdlib.h> 5431#if ((' ' & 0x0FF) == 0x020) 5432# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5433# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5434#else 5435# define ISLOWER(c) \ 5436 (('a' <= (c) && (c) <= 'i') \ 5437 || ('j' <= (c) && (c) <= 'r') \ 5438 || ('s' <= (c) && (c) <= 'z')) 5439# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5440#endif 5441 5442#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5443int 5444main () 5445{ 5446 int i; 5447 for (i = 0; i < 256; i++) 5448 if (XOR (islower (i), ISLOWER (i)) 5449 || toupper (i) != TOUPPER (i)) 5450 return 2; 5451 return 0; 5452} 5453_ACEOF 5454if ac_fn_c_try_run "$LINENO"; then : 5455 5456else 5457 ac_cv_header_stdc=no 5458fi 5459rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5460 conftest.$ac_objext conftest.beam conftest.$ac_ext 5461fi 5462 5463fi 5464fi 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5466$as_echo "$ac_cv_header_stdc" >&6; } 5467if test $ac_cv_header_stdc = yes; then 5468 5469$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5470 5471fi 5472 5473case `pwd` in 5474 *\ * | *\ *) 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5476$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5477esac 5478 5479 5480 5481macro_version='2.4.6' 5482macro_revision='2.4.6' 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496ltmain=$ac_aux_dir/ltmain.sh 5497 5498# Make sure we can run config.sub. 5499$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5501 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5503$as_echo_n "checking build system type... " >&6; } 5504if ${ac_cv_build+:} false; then : 5505 $as_echo_n "(cached) " >&6 5506else 5507 ac_build_alias=$build_alias 5508test "x$ac_build_alias" = x && 5509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5510test "x$ac_build_alias" = x && 5511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5512ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5514 5515fi 5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5517$as_echo "$ac_cv_build" >&6; } 5518case $ac_cv_build in 5519*-*-*) ;; 5520*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5521esac 5522build=$ac_cv_build 5523ac_save_IFS=$IFS; IFS='-' 5524set x $ac_cv_build 5525shift 5526build_cpu=$1 5527build_vendor=$2 5528shift; shift 5529# Remember, the first character of IFS is used to create $*, 5530# except with old shells: 5531build_os=$* 5532IFS=$ac_save_IFS 5533case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5534 5535 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5537$as_echo_n "checking host system type... " >&6; } 5538if ${ac_cv_host+:} false; then : 5539 $as_echo_n "(cached) " >&6 5540else 5541 if test "x$host_alias" = x; then 5542 ac_cv_host=$ac_cv_build 5543else 5544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5546fi 5547 5548fi 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5550$as_echo "$ac_cv_host" >&6; } 5551case $ac_cv_host in 5552*-*-*) ;; 5553*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5554esac 5555host=$ac_cv_host 5556ac_save_IFS=$IFS; IFS='-' 5557set x $ac_cv_host 5558shift 5559host_cpu=$1 5560host_vendor=$2 5561shift; shift 5562# Remember, the first character of IFS is used to create $*, 5563# except with old shells: 5564host_os=$* 5565IFS=$ac_save_IFS 5566case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5567 5568 5569# Backslashify metacharacters that are still active within 5570# double-quoted strings. 5571sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5572 5573# Same as above, but do not quote variable references. 5574double_quote_subst='s/\(["`\\]\)/\\\1/g' 5575 5576# Sed substitution to delay expansion of an escaped shell variable in a 5577# double_quote_subst'ed string. 5578delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5579 5580# Sed substitution to delay expansion of an escaped single quote. 5581delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5582 5583# Sed substitution to avoid accidental globbing in evaled expressions 5584no_glob_subst='s/\*/\\\*/g' 5585 5586ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5587ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5588ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5589 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5591$as_echo_n "checking how to print strings... " >&6; } 5592# Test print first, because it will be a builtin if present. 5593if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5594 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5595 ECHO='print -r --' 5596elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5597 ECHO='printf %s\n' 5598else 5599 # Use this function as a fallback that always works. 5600 func_fallback_echo () 5601 { 5602 eval 'cat <<_LTECHO_EOF 5603$1 5604_LTECHO_EOF' 5605 } 5606 ECHO='func_fallback_echo' 5607fi 5608 5609# func_echo_all arg... 5610# Invoke $ECHO with all args, space-separated. 5611func_echo_all () 5612{ 5613 $ECHO "" 5614} 5615 5616case $ECHO in 5617 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5618$as_echo "printf" >&6; } ;; 5619 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5620$as_echo "print -r" >&6; } ;; 5621 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5622$as_echo "cat" >&6; } ;; 5623esac 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5639$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5640if ${ac_cv_path_SED+:} false; then : 5641 $as_echo_n "(cached) " >&6 5642else 5643 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5644 for ac_i in 1 2 3 4 5 6 7; do 5645 ac_script="$ac_script$as_nl$ac_script" 5646 done 5647 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5648 { ac_script=; unset ac_script;} 5649 if test -z "$SED"; then 5650 ac_path_SED_found=false 5651 # Loop through the user's path and test for each of PROGNAME-LIST 5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5653for as_dir in $PATH 5654do 5655 IFS=$as_save_IFS 5656 test -z "$as_dir" && as_dir=. 5657 for ac_prog in sed gsed; do 5658 for ac_exec_ext in '' $ac_executable_extensions; do 5659 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5660 as_fn_executable_p "$ac_path_SED" || continue 5661# Check for GNU ac_path_SED and select it if it is found. 5662 # Check for GNU $ac_path_SED 5663case `"$ac_path_SED" --version 2>&1` in 5664*GNU*) 5665 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5666*) 5667 ac_count=0 5668 $as_echo_n 0123456789 >"conftest.in" 5669 while : 5670 do 5671 cat "conftest.in" "conftest.in" >"conftest.tmp" 5672 mv "conftest.tmp" "conftest.in" 5673 cp "conftest.in" "conftest.nl" 5674 $as_echo '' >> "conftest.nl" 5675 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5677 as_fn_arith $ac_count + 1 && ac_count=$as_val 5678 if test $ac_count -gt ${ac_path_SED_max-0}; then 5679 # Best one so far, save it but keep looking for a better one 5680 ac_cv_path_SED="$ac_path_SED" 5681 ac_path_SED_max=$ac_count 5682 fi 5683 # 10*(2^10) chars as input seems more than enough 5684 test $ac_count -gt 10 && break 5685 done 5686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5687esac 5688 5689 $ac_path_SED_found && break 3 5690 done 5691 done 5692 done 5693IFS=$as_save_IFS 5694 if test -z "$ac_cv_path_SED"; then 5695 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5696 fi 5697else 5698 ac_cv_path_SED=$SED 5699fi 5700 5701fi 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5703$as_echo "$ac_cv_path_SED" >&6; } 5704 SED="$ac_cv_path_SED" 5705 rm -f conftest.sed 5706 5707test -z "$SED" && SED=sed 5708Xsed="$SED -e 1s/^X//" 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5721$as_echo_n "checking for fgrep... " >&6; } 5722if ${ac_cv_path_FGREP+:} false; then : 5723 $as_echo_n "(cached) " >&6 5724else 5725 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5726 then ac_cv_path_FGREP="$GREP -F" 5727 else 5728 if test -z "$FGREP"; then 5729 ac_path_FGREP_found=false 5730 # Loop through the user's path and test for each of PROGNAME-LIST 5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5733do 5734 IFS=$as_save_IFS 5735 test -z "$as_dir" && as_dir=. 5736 for ac_prog in fgrep; do 5737 for ac_exec_ext in '' $ac_executable_extensions; do 5738 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5739 as_fn_executable_p "$ac_path_FGREP" || continue 5740# Check for GNU ac_path_FGREP and select it if it is found. 5741 # Check for GNU $ac_path_FGREP 5742case `"$ac_path_FGREP" --version 2>&1` in 5743*GNU*) 5744 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5745*) 5746 ac_count=0 5747 $as_echo_n 0123456789 >"conftest.in" 5748 while : 5749 do 5750 cat "conftest.in" "conftest.in" >"conftest.tmp" 5751 mv "conftest.tmp" "conftest.in" 5752 cp "conftest.in" "conftest.nl" 5753 $as_echo 'FGREP' >> "conftest.nl" 5754 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5756 as_fn_arith $ac_count + 1 && ac_count=$as_val 5757 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5758 # Best one so far, save it but keep looking for a better one 5759 ac_cv_path_FGREP="$ac_path_FGREP" 5760 ac_path_FGREP_max=$ac_count 5761 fi 5762 # 10*(2^10) chars as input seems more than enough 5763 test $ac_count -gt 10 && break 5764 done 5765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5766esac 5767 5768 $ac_path_FGREP_found && break 3 5769 done 5770 done 5771 done 5772IFS=$as_save_IFS 5773 if test -z "$ac_cv_path_FGREP"; then 5774 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5775 fi 5776else 5777 ac_cv_path_FGREP=$FGREP 5778fi 5779 5780 fi 5781fi 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5783$as_echo "$ac_cv_path_FGREP" >&6; } 5784 FGREP="$ac_cv_path_FGREP" 5785 5786 5787test -z "$GREP" && GREP=grep 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807# Check whether --with-gnu-ld was given. 5808if test "${with_gnu_ld+set}" = set; then : 5809 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5810else 5811 with_gnu_ld=no 5812fi 5813 5814ac_prog=ld 5815if test yes = "$GCC"; then 5816 # Check if gcc -print-prog-name=ld gives a path. 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5818$as_echo_n "checking for ld used by $CC... " >&6; } 5819 case $host in 5820 *-*-mingw*) 5821 # gcc leaves a trailing carriage return, which upsets mingw 5822 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5823 *) 5824 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5825 esac 5826 case $ac_prog in 5827 # Accept absolute paths. 5828 [\\/]* | ?:[\\/]*) 5829 re_direlt='/[^/][^/]*/\.\./' 5830 # Canonicalize the pathname of ld 5831 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5832 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5833 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5834 done 5835 test -z "$LD" && LD=$ac_prog 5836 ;; 5837 "") 5838 # If it fails, then pretend we aren't using GCC. 5839 ac_prog=ld 5840 ;; 5841 *) 5842 # If it is relative, then search for the first ld in PATH. 5843 with_gnu_ld=unknown 5844 ;; 5845 esac 5846elif test yes = "$with_gnu_ld"; then 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5848$as_echo_n "checking for GNU ld... " >&6; } 5849else 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5851$as_echo_n "checking for non-GNU ld... " >&6; } 5852fi 5853if ${lt_cv_path_LD+:} false; then : 5854 $as_echo_n "(cached) " >&6 5855else 5856 if test -z "$LD"; then 5857 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5858 for ac_dir in $PATH; do 5859 IFS=$lt_save_ifs 5860 test -z "$ac_dir" && ac_dir=. 5861 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5862 lt_cv_path_LD=$ac_dir/$ac_prog 5863 # Check to see if the program is GNU ld. I'd rather use --version, 5864 # but apparently some variants of GNU ld only accept -v. 5865 # Break only if it was the GNU/non-GNU ld that we prefer. 5866 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5867 *GNU* | *'with BFD'*) 5868 test no != "$with_gnu_ld" && break 5869 ;; 5870 *) 5871 test yes != "$with_gnu_ld" && break 5872 ;; 5873 esac 5874 fi 5875 done 5876 IFS=$lt_save_ifs 5877else 5878 lt_cv_path_LD=$LD # Let the user override the test with a path. 5879fi 5880fi 5881 5882LD=$lt_cv_path_LD 5883if test -n "$LD"; then 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5885$as_echo "$LD" >&6; } 5886else 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5888$as_echo "no" >&6; } 5889fi 5890test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5892$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5893if ${lt_cv_prog_gnu_ld+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5897case `$LD -v 2>&1 </dev/null` in 5898*GNU* | *'with BFD'*) 5899 lt_cv_prog_gnu_ld=yes 5900 ;; 5901*) 5902 lt_cv_prog_gnu_ld=no 5903 ;; 5904esac 5905fi 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5907$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5908with_gnu_ld=$lt_cv_prog_gnu_ld 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5919$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5920if ${lt_cv_path_NM+:} false; then : 5921 $as_echo_n "(cached) " >&6 5922else 5923 if test -n "$NM"; then 5924 # Let the user override the test. 5925 lt_cv_path_NM=$NM 5926else 5927 lt_nm_to_check=${ac_tool_prefix}nm 5928 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5929 lt_nm_to_check="$lt_nm_to_check nm" 5930 fi 5931 for lt_tmp_nm in $lt_nm_to_check; do 5932 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5933 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5934 IFS=$lt_save_ifs 5935 test -z "$ac_dir" && ac_dir=. 5936 tmp_nm=$ac_dir/$lt_tmp_nm 5937 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5938 # Check to see if the nm accepts a BSD-compat flag. 5939 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5940 # nm: unknown option "B" ignored 5941 # Tru64's nm complains that /dev/null is an invalid object file 5942 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5943 case $build_os in 5944 mingw*) lt_bad_file=conftest.nm/nofile ;; 5945 *) lt_bad_file=/dev/null ;; 5946 esac 5947 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5948 *$lt_bad_file* | *'Invalid file or object type'*) 5949 lt_cv_path_NM="$tmp_nm -B" 5950 break 2 5951 ;; 5952 *) 5953 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5954 */dev/null*) 5955 lt_cv_path_NM="$tmp_nm -p" 5956 break 2 5957 ;; 5958 *) 5959 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5960 continue # so that we can try to find one that supports BSD flags 5961 ;; 5962 esac 5963 ;; 5964 esac 5965 fi 5966 done 5967 IFS=$lt_save_ifs 5968 done 5969 : ${lt_cv_path_NM=no} 5970fi 5971fi 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5973$as_echo "$lt_cv_path_NM" >&6; } 5974if test no != "$lt_cv_path_NM"; then 5975 NM=$lt_cv_path_NM 5976else 5977 # Didn't find any BSD compatible name lister, look for dumpbin. 5978 if test -n "$DUMPBIN"; then : 5979 # Let the user override the test. 5980 else 5981 if test -n "$ac_tool_prefix"; then 5982 for ac_prog in dumpbin "link -dump" 5983 do 5984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5985set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5987$as_echo_n "checking for $ac_word... " >&6; } 5988if ${ac_cv_prog_DUMPBIN+:} false; then : 5989 $as_echo_n "(cached) " >&6 5990else 5991 if test -n "$DUMPBIN"; then 5992 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5993else 5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5995for as_dir in $PATH 5996do 5997 IFS=$as_save_IFS 5998 test -z "$as_dir" && as_dir=. 5999 for ac_exec_ext in '' $ac_executable_extensions; do 6000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6001 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6003 break 2 6004 fi 6005done 6006 done 6007IFS=$as_save_IFS 6008 6009fi 6010fi 6011DUMPBIN=$ac_cv_prog_DUMPBIN 6012if test -n "$DUMPBIN"; then 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6014$as_echo "$DUMPBIN" >&6; } 6015else 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6017$as_echo "no" >&6; } 6018fi 6019 6020 6021 test -n "$DUMPBIN" && break 6022 done 6023fi 6024if test -z "$DUMPBIN"; then 6025 ac_ct_DUMPBIN=$DUMPBIN 6026 for ac_prog in dumpbin "link -dump" 6027do 6028 # Extract the first word of "$ac_prog", so it can be a program name with args. 6029set dummy $ac_prog; ac_word=$2 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6031$as_echo_n "checking for $ac_word... " >&6; } 6032if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034else 6035 if test -n "$ac_ct_DUMPBIN"; then 6036 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6037else 6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6039for as_dir in $PATH 6040do 6041 IFS=$as_save_IFS 6042 test -z "$as_dir" && as_dir=. 6043 for ac_exec_ext in '' $ac_executable_extensions; do 6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6045 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6047 break 2 6048 fi 6049done 6050 done 6051IFS=$as_save_IFS 6052 6053fi 6054fi 6055ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6056if test -n "$ac_ct_DUMPBIN"; then 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6058$as_echo "$ac_ct_DUMPBIN" >&6; } 6059else 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6061$as_echo "no" >&6; } 6062fi 6063 6064 6065 test -n "$ac_ct_DUMPBIN" && break 6066done 6067 6068 if test "x$ac_ct_DUMPBIN" = x; then 6069 DUMPBIN=":" 6070 else 6071 case $cross_compiling:$ac_tool_warned in 6072yes:) 6073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6075ac_tool_warned=yes ;; 6076esac 6077 DUMPBIN=$ac_ct_DUMPBIN 6078 fi 6079fi 6080 6081 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6082 *COFF*) 6083 DUMPBIN="$DUMPBIN -symbols -headers" 6084 ;; 6085 *) 6086 DUMPBIN=: 6087 ;; 6088 esac 6089 fi 6090 6091 if test : != "$DUMPBIN"; then 6092 NM=$DUMPBIN 6093 fi 6094fi 6095test -z "$NM" && NM=nm 6096 6097 6098 6099 6100 6101 6102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6103$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6104if ${lt_cv_nm_interface+:} false; then : 6105 $as_echo_n "(cached) " >&6 6106else 6107 lt_cv_nm_interface="BSD nm" 6108 echo "int some_variable = 0;" > conftest.$ac_ext 6109 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6110 (eval "$ac_compile" 2>conftest.err) 6111 cat conftest.err >&5 6112 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6113 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6114 cat conftest.err >&5 6115 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6116 cat conftest.out >&5 6117 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6118 lt_cv_nm_interface="MS dumpbin" 6119 fi 6120 rm -f conftest* 6121fi 6122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6123$as_echo "$lt_cv_nm_interface" >&6; } 6124 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6126$as_echo_n "checking whether ln -s works... " >&6; } 6127LN_S=$as_ln_s 6128if test "$LN_S" = "ln -s"; then 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6130$as_echo "yes" >&6; } 6131else 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6133$as_echo "no, using $LN_S" >&6; } 6134fi 6135 6136# find the maximum length of command line arguments 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6138$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6139if ${lt_cv_sys_max_cmd_len+:} false; then : 6140 $as_echo_n "(cached) " >&6 6141else 6142 i=0 6143 teststring=ABCD 6144 6145 case $build_os in 6146 msdosdjgpp*) 6147 # On DJGPP, this test can blow up pretty badly due to problems in libc 6148 # (any single argument exceeding 2000 bytes causes a buffer overrun 6149 # during glob expansion). Even if it were fixed, the result of this 6150 # check would be larger than it should be. 6151 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6152 ;; 6153 6154 gnu*) 6155 # Under GNU Hurd, this test is not required because there is 6156 # no limit to the length of command line arguments. 6157 # Libtool will interpret -1 as no limit whatsoever 6158 lt_cv_sys_max_cmd_len=-1; 6159 ;; 6160 6161 cygwin* | mingw* | cegcc*) 6162 # On Win9x/ME, this test blows up -- it succeeds, but takes 6163 # about 5 minutes as the teststring grows exponentially. 6164 # Worse, since 9x/ME are not pre-emptively multitasking, 6165 # you end up with a "frozen" computer, even though with patience 6166 # the test eventually succeeds (with a max line length of 256k). 6167 # Instead, let's just punt: use the minimum linelength reported by 6168 # all of the supported platforms: 8192 (on NT/2K/XP). 6169 lt_cv_sys_max_cmd_len=8192; 6170 ;; 6171 6172 mint*) 6173 # On MiNT this can take a long time and run out of memory. 6174 lt_cv_sys_max_cmd_len=8192; 6175 ;; 6176 6177 amigaos*) 6178 # On AmigaOS with pdksh, this test takes hours, literally. 6179 # So we just punt and use a minimum line length of 8192. 6180 lt_cv_sys_max_cmd_len=8192; 6181 ;; 6182 6183 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6184 # This has been around since 386BSD, at least. Likely further. 6185 if test -x /sbin/sysctl; then 6186 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6187 elif test -x /usr/sbin/sysctl; then 6188 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6189 else 6190 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6191 fi 6192 # And add a safety zone 6193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6195 ;; 6196 6197 interix*) 6198 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6199 lt_cv_sys_max_cmd_len=196608 6200 ;; 6201 6202 os2*) 6203 # The test takes a long time on OS/2. 6204 lt_cv_sys_max_cmd_len=8192 6205 ;; 6206 6207 osf*) 6208 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6209 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6210 # nice to cause kernel panics so lets avoid the loop below. 6211 # First set a reasonable default. 6212 lt_cv_sys_max_cmd_len=16384 6213 # 6214 if test -x /sbin/sysconfig; then 6215 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6216 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6217 esac 6218 fi 6219 ;; 6220 sco3.2v5*) 6221 lt_cv_sys_max_cmd_len=102400 6222 ;; 6223 sysv5* | sco5v6* | sysv4.2uw2*) 6224 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6225 if test -n "$kargmax"; then 6226 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6227 else 6228 lt_cv_sys_max_cmd_len=32768 6229 fi 6230 ;; 6231 *) 6232 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6233 if test -n "$lt_cv_sys_max_cmd_len" && \ 6234 test undefined != "$lt_cv_sys_max_cmd_len"; then 6235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6237 else 6238 # Make teststring a little bigger before we do anything with it. 6239 # a 1K string should be a reasonable start. 6240 for i in 1 2 3 4 5 6 7 8; do 6241 teststring=$teststring$teststring 6242 done 6243 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6244 # If test is not a shell built-in, we'll probably end up computing a 6245 # maximum length that is only half of the actual maximum length, but 6246 # we can't tell. 6247 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6248 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6249 test 17 != "$i" # 1/2 MB should be enough 6250 do 6251 i=`expr $i + 1` 6252 teststring=$teststring$teststring 6253 done 6254 # Only check the string length outside the loop. 6255 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6256 teststring= 6257 # Add a significant safety factor because C++ compilers can tack on 6258 # massive amounts of additional arguments before passing them to the 6259 # linker. It appears as though 1/2 is a usable value. 6260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6261 fi 6262 ;; 6263 esac 6264 6265fi 6266 6267if test -n "$lt_cv_sys_max_cmd_len"; then 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6269$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6270else 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6272$as_echo "none" >&6; } 6273fi 6274max_cmd_len=$lt_cv_sys_max_cmd_len 6275 6276 6277 6278 6279 6280 6281: ${CP="cp -f"} 6282: ${MV="mv -f"} 6283: ${RM="rm -f"} 6284 6285if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6286 lt_unset=unset 6287else 6288 lt_unset=false 6289fi 6290 6291 6292 6293 6294 6295# test EBCDIC or ASCII 6296case `echo X|tr X '\101'` in 6297 A) # ASCII based system 6298 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6299 lt_SP2NL='tr \040 \012' 6300 lt_NL2SP='tr \015\012 \040\040' 6301 ;; 6302 *) # EBCDIC based system 6303 lt_SP2NL='tr \100 \n' 6304 lt_NL2SP='tr \r\n \100\100' 6305 ;; 6306esac 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6317$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6318if ${lt_cv_to_host_file_cmd+:} false; then : 6319 $as_echo_n "(cached) " >&6 6320else 6321 case $host in 6322 *-*-mingw* ) 6323 case $build in 6324 *-*-mingw* ) # actually msys 6325 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6326 ;; 6327 *-*-cygwin* ) 6328 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6329 ;; 6330 * ) # otherwise, assume *nix 6331 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6332 ;; 6333 esac 6334 ;; 6335 *-*-cygwin* ) 6336 case $build in 6337 *-*-mingw* ) # actually msys 6338 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6339 ;; 6340 *-*-cygwin* ) 6341 lt_cv_to_host_file_cmd=func_convert_file_noop 6342 ;; 6343 * ) # otherwise, assume *nix 6344 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6345 ;; 6346 esac 6347 ;; 6348 * ) # unhandled hosts (and "normal" native builds) 6349 lt_cv_to_host_file_cmd=func_convert_file_noop 6350 ;; 6351esac 6352 6353fi 6354 6355to_host_file_cmd=$lt_cv_to_host_file_cmd 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6357$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6358 6359 6360 6361 6362 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6364$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6365if ${lt_cv_to_tool_file_cmd+:} false; then : 6366 $as_echo_n "(cached) " >&6 6367else 6368 #assume ordinary cross tools, or native build. 6369lt_cv_to_tool_file_cmd=func_convert_file_noop 6370case $host in 6371 *-*-mingw* ) 6372 case $build in 6373 *-*-mingw* ) # actually msys 6374 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6375 ;; 6376 esac 6377 ;; 6378esac 6379 6380fi 6381 6382to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6384$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6385 6386 6387 6388 6389 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6391$as_echo_n "checking for $LD option to reload object files... " >&6; } 6392if ${lt_cv_ld_reload_flag+:} false; then : 6393 $as_echo_n "(cached) " >&6 6394else 6395 lt_cv_ld_reload_flag='-r' 6396fi 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6398$as_echo "$lt_cv_ld_reload_flag" >&6; } 6399reload_flag=$lt_cv_ld_reload_flag 6400case $reload_flag in 6401"" | " "*) ;; 6402*) reload_flag=" $reload_flag" ;; 6403esac 6404reload_cmds='$LD$reload_flag -o $output$reload_objs' 6405case $host_os in 6406 cygwin* | mingw* | pw32* | cegcc*) 6407 if test yes != "$GCC"; then 6408 reload_cmds=false 6409 fi 6410 ;; 6411 darwin*) 6412 if test yes = "$GCC"; then 6413 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6414 else 6415 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6416 fi 6417 ;; 6418esac 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428if test -n "$ac_tool_prefix"; then 6429 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6430set dummy ${ac_tool_prefix}objdump; ac_word=$2 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6432$as_echo_n "checking for $ac_word... " >&6; } 6433if ${ac_cv_prog_OBJDUMP+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435else 6436 if test -n "$OBJDUMP"; then 6437 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6438else 6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6440for as_dir in $PATH 6441do 6442 IFS=$as_save_IFS 6443 test -z "$as_dir" && as_dir=. 6444 for ac_exec_ext in '' $ac_executable_extensions; do 6445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6446 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6448 break 2 6449 fi 6450done 6451 done 6452IFS=$as_save_IFS 6453 6454fi 6455fi 6456OBJDUMP=$ac_cv_prog_OBJDUMP 6457if test -n "$OBJDUMP"; then 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6459$as_echo "$OBJDUMP" >&6; } 6460else 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6462$as_echo "no" >&6; } 6463fi 6464 6465 6466fi 6467if test -z "$ac_cv_prog_OBJDUMP"; then 6468 ac_ct_OBJDUMP=$OBJDUMP 6469 # Extract the first word of "objdump", so it can be a program name with args. 6470set dummy objdump; ac_word=$2 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6472$as_echo_n "checking for $ac_word... " >&6; } 6473if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 if test -n "$ac_ct_OBJDUMP"; then 6477 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6478else 6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480for as_dir in $PATH 6481do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6486 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490done 6491 done 6492IFS=$as_save_IFS 6493 6494fi 6495fi 6496ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6497if test -n "$ac_ct_OBJDUMP"; then 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6499$as_echo "$ac_ct_OBJDUMP" >&6; } 6500else 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6502$as_echo "no" >&6; } 6503fi 6504 6505 if test "x$ac_ct_OBJDUMP" = x; then 6506 OBJDUMP="false" 6507 else 6508 case $cross_compiling:$ac_tool_warned in 6509yes:) 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6512ac_tool_warned=yes ;; 6513esac 6514 OBJDUMP=$ac_ct_OBJDUMP 6515 fi 6516else 6517 OBJDUMP="$ac_cv_prog_OBJDUMP" 6518fi 6519 6520test -z "$OBJDUMP" && OBJDUMP=objdump 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6531$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6532if ${lt_cv_deplibs_check_method+:} false; then : 6533 $as_echo_n "(cached) " >&6 6534else 6535 lt_cv_file_magic_cmd='$MAGIC_CMD' 6536lt_cv_file_magic_test_file= 6537lt_cv_deplibs_check_method='unknown' 6538# Need to set the preceding variable on all platforms that support 6539# interlibrary dependencies. 6540# 'none' -- dependencies not supported. 6541# 'unknown' -- same as none, but documents that we really don't know. 6542# 'pass_all' -- all dependencies passed with no checks. 6543# 'test_compile' -- check by making test program. 6544# 'file_magic [[regex]]' -- check by looking for files in library path 6545# that responds to the $file_magic_cmd with a given extended regex. 6546# If you have 'file' or equivalent on your system and you're not sure 6547# whether 'pass_all' will *always* work, you probably want this one. 6548 6549case $host_os in 6550aix[4-9]*) 6551 lt_cv_deplibs_check_method=pass_all 6552 ;; 6553 6554beos*) 6555 lt_cv_deplibs_check_method=pass_all 6556 ;; 6557 6558bsdi[45]*) 6559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6560 lt_cv_file_magic_cmd='/usr/bin/file -L' 6561 lt_cv_file_magic_test_file=/shlib/libc.so 6562 ;; 6563 6564cygwin*) 6565 # func_win32_libid is a shell function defined in ltmain.sh 6566 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6567 lt_cv_file_magic_cmd='func_win32_libid' 6568 ;; 6569 6570mingw* | pw32*) 6571 # Base MSYS/MinGW do not provide the 'file' command needed by 6572 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6573 # unless we find 'file', for example because we are cross-compiling. 6574 if ( file / ) >/dev/null 2>&1; then 6575 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6576 lt_cv_file_magic_cmd='func_win32_libid' 6577 else 6578 # Keep this pattern in sync with the one in func_win32_libid. 6579 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6580 lt_cv_file_magic_cmd='$OBJDUMP -f' 6581 fi 6582 ;; 6583 6584cegcc*) 6585 # use the weaker test based on 'objdump'. See mingw*. 6586 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6587 lt_cv_file_magic_cmd='$OBJDUMP -f' 6588 ;; 6589 6590darwin* | rhapsody*) 6591 lt_cv_deplibs_check_method=pass_all 6592 ;; 6593 6594freebsd* | dragonfly*) 6595 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6596 case $host_cpu in 6597 i*86 ) 6598 # Not sure whether the presence of OpenBSD here was a mistake. 6599 # Let's accept both of them until this is cleared up. 6600 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6601 lt_cv_file_magic_cmd=/usr/bin/file 6602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6603 ;; 6604 esac 6605 else 6606 lt_cv_deplibs_check_method=pass_all 6607 fi 6608 ;; 6609 6610haiku*) 6611 lt_cv_deplibs_check_method=pass_all 6612 ;; 6613 6614hpux10.20* | hpux11*) 6615 lt_cv_file_magic_cmd=/usr/bin/file 6616 case $host_cpu in 6617 ia64*) 6618 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6619 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6620 ;; 6621 hppa*64*) 6622 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]' 6623 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6624 ;; 6625 *) 6626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6627 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6628 ;; 6629 esac 6630 ;; 6631 6632interix[3-9]*) 6633 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6635 ;; 6636 6637irix5* | irix6* | nonstopux*) 6638 case $LD in 6639 *-32|*"-32 ") libmagic=32-bit;; 6640 *-n32|*"-n32 ") libmagic=N32;; 6641 *-64|*"-64 ") libmagic=64-bit;; 6642 *) libmagic=never-match;; 6643 esac 6644 lt_cv_deplibs_check_method=pass_all 6645 ;; 6646 6647# This must be glibc/ELF. 6648linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6649 lt_cv_deplibs_check_method=pass_all 6650 ;; 6651 6652netbsd*) 6653 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6654 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6655 else 6656 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6657 fi 6658 ;; 6659 6660newos6*) 6661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6662 lt_cv_file_magic_cmd=/usr/bin/file 6663 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6664 ;; 6665 6666*nto* | *qnx*) 6667 lt_cv_deplibs_check_method=pass_all 6668 ;; 6669 6670openbsd* | bitrig*) 6671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6673 else 6674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6675 fi 6676 ;; 6677 6678osf3* | osf4* | osf5*) 6679 lt_cv_deplibs_check_method=pass_all 6680 ;; 6681 6682rdos*) 6683 lt_cv_deplibs_check_method=pass_all 6684 ;; 6685 6686solaris*) 6687 lt_cv_deplibs_check_method=pass_all 6688 ;; 6689 6690sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6691 lt_cv_deplibs_check_method=pass_all 6692 ;; 6693 6694sysv4 | sysv4.3*) 6695 case $host_vendor in 6696 motorola) 6697 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]' 6698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6699 ;; 6700 ncr) 6701 lt_cv_deplibs_check_method=pass_all 6702 ;; 6703 sequent) 6704 lt_cv_file_magic_cmd='/bin/file' 6705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6706 ;; 6707 sni) 6708 lt_cv_file_magic_cmd='/bin/file' 6709 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6710 lt_cv_file_magic_test_file=/lib/libc.so 6711 ;; 6712 siemens) 6713 lt_cv_deplibs_check_method=pass_all 6714 ;; 6715 pc) 6716 lt_cv_deplibs_check_method=pass_all 6717 ;; 6718 esac 6719 ;; 6720 6721tpf*) 6722 lt_cv_deplibs_check_method=pass_all 6723 ;; 6724os2*) 6725 lt_cv_deplibs_check_method=pass_all 6726 ;; 6727esac 6728 6729fi 6730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6731$as_echo "$lt_cv_deplibs_check_method" >&6; } 6732 6733file_magic_glob= 6734want_nocaseglob=no 6735if test "$build" = "$host"; then 6736 case $host_os in 6737 mingw* | pw32*) 6738 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6739 want_nocaseglob=yes 6740 else 6741 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6742 fi 6743 ;; 6744 esac 6745fi 6746 6747file_magic_cmd=$lt_cv_file_magic_cmd 6748deplibs_check_method=$lt_cv_deplibs_check_method 6749test -z "$deplibs_check_method" && deplibs_check_method=unknown 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772if test -n "$ac_tool_prefix"; then 6773 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6774set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6776$as_echo_n "checking for $ac_word... " >&6; } 6777if ${ac_cv_prog_DLLTOOL+:} false; then : 6778 $as_echo_n "(cached) " >&6 6779else 6780 if test -n "$DLLTOOL"; then 6781 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6782else 6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6784for as_dir in $PATH 6785do 6786 IFS=$as_save_IFS 6787 test -z "$as_dir" && as_dir=. 6788 for ac_exec_ext in '' $ac_executable_extensions; do 6789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6790 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6792 break 2 6793 fi 6794done 6795 done 6796IFS=$as_save_IFS 6797 6798fi 6799fi 6800DLLTOOL=$ac_cv_prog_DLLTOOL 6801if test -n "$DLLTOOL"; then 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6803$as_echo "$DLLTOOL" >&6; } 6804else 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6806$as_echo "no" >&6; } 6807fi 6808 6809 6810fi 6811if test -z "$ac_cv_prog_DLLTOOL"; then 6812 ac_ct_DLLTOOL=$DLLTOOL 6813 # Extract the first word of "dlltool", so it can be a program name with args. 6814set dummy dlltool; ac_word=$2 6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6816$as_echo_n "checking for $ac_word... " >&6; } 6817if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6818 $as_echo_n "(cached) " >&6 6819else 6820 if test -n "$ac_ct_DLLTOOL"; then 6821 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6822else 6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6824for as_dir in $PATH 6825do 6826 IFS=$as_save_IFS 6827 test -z "$as_dir" && as_dir=. 6828 for ac_exec_ext in '' $ac_executable_extensions; do 6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6830 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6832 break 2 6833 fi 6834done 6835 done 6836IFS=$as_save_IFS 6837 6838fi 6839fi 6840ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6841if test -n "$ac_ct_DLLTOOL"; then 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6843$as_echo "$ac_ct_DLLTOOL" >&6; } 6844else 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6846$as_echo "no" >&6; } 6847fi 6848 6849 if test "x$ac_ct_DLLTOOL" = x; then 6850 DLLTOOL="false" 6851 else 6852 case $cross_compiling:$ac_tool_warned in 6853yes:) 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6856ac_tool_warned=yes ;; 6857esac 6858 DLLTOOL=$ac_ct_DLLTOOL 6859 fi 6860else 6861 DLLTOOL="$ac_cv_prog_DLLTOOL" 6862fi 6863 6864test -z "$DLLTOOL" && DLLTOOL=dlltool 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6876$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6877if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6878 $as_echo_n "(cached) " >&6 6879else 6880 lt_cv_sharedlib_from_linklib_cmd='unknown' 6881 6882case $host_os in 6883cygwin* | mingw* | pw32* | cegcc*) 6884 # two different shell functions defined in ltmain.sh; 6885 # decide which one to use based on capabilities of $DLLTOOL 6886 case `$DLLTOOL --help 2>&1` in 6887 *--identify-strict*) 6888 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6889 ;; 6890 *) 6891 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6892 ;; 6893 esac 6894 ;; 6895*) 6896 # fallback: assume linklib IS sharedlib 6897 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6898 ;; 6899esac 6900 6901fi 6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6903$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6904sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6905test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6906 6907 6908 6909 6910 6911 6912 6913if test -n "$ac_tool_prefix"; then 6914 for ac_prog in ar 6915 do 6916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6917set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6919$as_echo_n "checking for $ac_word... " >&6; } 6920if ${ac_cv_prog_AR+:} false; then : 6921 $as_echo_n "(cached) " >&6 6922else 6923 if test -n "$AR"; then 6924 ac_cv_prog_AR="$AR" # Let the user override the test. 6925else 6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6927for as_dir in $PATH 6928do 6929 IFS=$as_save_IFS 6930 test -z "$as_dir" && as_dir=. 6931 for ac_exec_ext in '' $ac_executable_extensions; do 6932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6933 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6935 break 2 6936 fi 6937done 6938 done 6939IFS=$as_save_IFS 6940 6941fi 6942fi 6943AR=$ac_cv_prog_AR 6944if test -n "$AR"; then 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6946$as_echo "$AR" >&6; } 6947else 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6949$as_echo "no" >&6; } 6950fi 6951 6952 6953 test -n "$AR" && break 6954 done 6955fi 6956if test -z "$AR"; then 6957 ac_ct_AR=$AR 6958 for ac_prog in ar 6959do 6960 # Extract the first word of "$ac_prog", so it can be a program name with args. 6961set dummy $ac_prog; ac_word=$2 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6963$as_echo_n "checking for $ac_word... " >&6; } 6964if ${ac_cv_prog_ac_ct_AR+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 if test -n "$ac_ct_AR"; then 6968 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6969else 6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6971for as_dir in $PATH 6972do 6973 IFS=$as_save_IFS 6974 test -z "$as_dir" && as_dir=. 6975 for ac_exec_ext in '' $ac_executable_extensions; do 6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6977 ac_cv_prog_ac_ct_AR="$ac_prog" 6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6979 break 2 6980 fi 6981done 6982 done 6983IFS=$as_save_IFS 6984 6985fi 6986fi 6987ac_ct_AR=$ac_cv_prog_ac_ct_AR 6988if test -n "$ac_ct_AR"; then 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6990$as_echo "$ac_ct_AR" >&6; } 6991else 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6993$as_echo "no" >&6; } 6994fi 6995 6996 6997 test -n "$ac_ct_AR" && break 6998done 6999 7000 if test "x$ac_ct_AR" = x; then 7001 AR="false" 7002 else 7003 case $cross_compiling:$ac_tool_warned in 7004yes:) 7005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7007ac_tool_warned=yes ;; 7008esac 7009 AR=$ac_ct_AR 7010 fi 7011fi 7012 7013: ${AR=ar} 7014: ${AR_FLAGS=cru} 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7027$as_echo_n "checking for archiver @FILE support... " >&6; } 7028if ${lt_cv_ar_at_file+:} false; then : 7029 $as_echo_n "(cached) " >&6 7030else 7031 lt_cv_ar_at_file=no 7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7033/* end confdefs.h. */ 7034 7035int 7036main () 7037{ 7038 7039 ; 7040 return 0; 7041} 7042_ACEOF 7043if ac_fn_c_try_compile "$LINENO"; then : 7044 echo conftest.$ac_objext > conftest.lst 7045 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7047 (eval $lt_ar_try) 2>&5 7048 ac_status=$? 7049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7050 test $ac_status = 0; } 7051 if test 0 -eq "$ac_status"; then 7052 # Ensure the archiver fails upon bogus file names. 7053 rm -f conftest.$ac_objext libconftest.a 7054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7055 (eval $lt_ar_try) 2>&5 7056 ac_status=$? 7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7058 test $ac_status = 0; } 7059 if test 0 -ne "$ac_status"; then 7060 lt_cv_ar_at_file=@ 7061 fi 7062 fi 7063 rm -f conftest.* libconftest.a 7064 7065fi 7066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7067 7068fi 7069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7070$as_echo "$lt_cv_ar_at_file" >&6; } 7071 7072if test no = "$lt_cv_ar_at_file"; then 7073 archiver_list_spec= 7074else 7075 archiver_list_spec=$lt_cv_ar_at_file 7076fi 7077 7078 7079 7080 7081 7082 7083 7084if test -n "$ac_tool_prefix"; then 7085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7086set dummy ${ac_tool_prefix}strip; ac_word=$2 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7088$as_echo_n "checking for $ac_word... " >&6; } 7089if ${ac_cv_prog_STRIP+:} false; then : 7090 $as_echo_n "(cached) " >&6 7091else 7092 if test -n "$STRIP"; then 7093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7094else 7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7096for as_dir in $PATH 7097do 7098 IFS=$as_save_IFS 7099 test -z "$as_dir" && as_dir=. 7100 for ac_exec_ext in '' $ac_executable_extensions; do 7101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7102 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7104 break 2 7105 fi 7106done 7107 done 7108IFS=$as_save_IFS 7109 7110fi 7111fi 7112STRIP=$ac_cv_prog_STRIP 7113if test -n "$STRIP"; then 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7115$as_echo "$STRIP" >&6; } 7116else 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7118$as_echo "no" >&6; } 7119fi 7120 7121 7122fi 7123if test -z "$ac_cv_prog_STRIP"; then 7124 ac_ct_STRIP=$STRIP 7125 # Extract the first word of "strip", so it can be a program name with args. 7126set dummy strip; ac_word=$2 7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7128$as_echo_n "checking for $ac_word... " >&6; } 7129if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7130 $as_echo_n "(cached) " >&6 7131else 7132 if test -n "$ac_ct_STRIP"; then 7133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7134else 7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7136for as_dir in $PATH 7137do 7138 IFS=$as_save_IFS 7139 test -z "$as_dir" && as_dir=. 7140 for ac_exec_ext in '' $ac_executable_extensions; do 7141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7142 ac_cv_prog_ac_ct_STRIP="strip" 7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7144 break 2 7145 fi 7146done 7147 done 7148IFS=$as_save_IFS 7149 7150fi 7151fi 7152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7153if test -n "$ac_ct_STRIP"; then 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7155$as_echo "$ac_ct_STRIP" >&6; } 7156else 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7158$as_echo "no" >&6; } 7159fi 7160 7161 if test "x$ac_ct_STRIP" = x; then 7162 STRIP=":" 7163 else 7164 case $cross_compiling:$ac_tool_warned in 7165yes:) 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7168ac_tool_warned=yes ;; 7169esac 7170 STRIP=$ac_ct_STRIP 7171 fi 7172else 7173 STRIP="$ac_cv_prog_STRIP" 7174fi 7175 7176test -z "$STRIP" && STRIP=: 7177 7178 7179 7180 7181 7182 7183if test -n "$ac_tool_prefix"; then 7184 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7185set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7187$as_echo_n "checking for $ac_word... " >&6; } 7188if ${ac_cv_prog_RANLIB+:} false; then : 7189 $as_echo_n "(cached) " >&6 7190else 7191 if test -n "$RANLIB"; then 7192 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7193else 7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7195for as_dir in $PATH 7196do 7197 IFS=$as_save_IFS 7198 test -z "$as_dir" && as_dir=. 7199 for ac_exec_ext in '' $ac_executable_extensions; do 7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7201 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7203 break 2 7204 fi 7205done 7206 done 7207IFS=$as_save_IFS 7208 7209fi 7210fi 7211RANLIB=$ac_cv_prog_RANLIB 7212if test -n "$RANLIB"; then 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7214$as_echo "$RANLIB" >&6; } 7215else 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7217$as_echo "no" >&6; } 7218fi 7219 7220 7221fi 7222if test -z "$ac_cv_prog_RANLIB"; then 7223 ac_ct_RANLIB=$RANLIB 7224 # Extract the first word of "ranlib", so it can be a program name with args. 7225set dummy ranlib; ac_word=$2 7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7227$as_echo_n "checking for $ac_word... " >&6; } 7228if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7229 $as_echo_n "(cached) " >&6 7230else 7231 if test -n "$ac_ct_RANLIB"; then 7232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7233else 7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7235for as_dir in $PATH 7236do 7237 IFS=$as_save_IFS 7238 test -z "$as_dir" && as_dir=. 7239 for ac_exec_ext in '' $ac_executable_extensions; do 7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7241 ac_cv_prog_ac_ct_RANLIB="ranlib" 7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7243 break 2 7244 fi 7245done 7246 done 7247IFS=$as_save_IFS 7248 7249fi 7250fi 7251ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7252if test -n "$ac_ct_RANLIB"; then 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7254$as_echo "$ac_ct_RANLIB" >&6; } 7255else 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7257$as_echo "no" >&6; } 7258fi 7259 7260 if test "x$ac_ct_RANLIB" = x; then 7261 RANLIB=":" 7262 else 7263 case $cross_compiling:$ac_tool_warned in 7264yes:) 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7267ac_tool_warned=yes ;; 7268esac 7269 RANLIB=$ac_ct_RANLIB 7270 fi 7271else 7272 RANLIB="$ac_cv_prog_RANLIB" 7273fi 7274 7275test -z "$RANLIB" && RANLIB=: 7276 7277 7278 7279 7280 7281 7282# Determine commands to create old-style static archives. 7283old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7284old_postinstall_cmds='chmod 644 $oldlib' 7285old_postuninstall_cmds= 7286 7287if test -n "$RANLIB"; then 7288 case $host_os in 7289 bitrig* | openbsd*) 7290 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7291 ;; 7292 *) 7293 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7294 ;; 7295 esac 7296 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7297fi 7298 7299case $host_os in 7300 darwin*) 7301 lock_old_archive_extraction=yes ;; 7302 *) 7303 lock_old_archive_extraction=no ;; 7304esac 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344# If no C compiler was specified, use CC. 7345LTCC=${LTCC-"$CC"} 7346 7347# If no C compiler flags were specified, use CFLAGS. 7348LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7349 7350# Allow CC to be a program name with arguments. 7351compiler=$CC 7352 7353 7354# Check for command to grab the raw symbol name followed by C symbol from nm. 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7356$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7357if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7358 $as_echo_n "(cached) " >&6 7359else 7360 7361# These are sane defaults that work on at least a few old systems. 7362# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7363 7364# Character class describing NM global symbol codes. 7365symcode='[BCDEGRST]' 7366 7367# Regexp to match symbols that can be accessed directly from C. 7368sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7369 7370# Define system-specific variables. 7371case $host_os in 7372aix*) 7373 symcode='[BCDT]' 7374 ;; 7375cygwin* | mingw* | pw32* | cegcc*) 7376 symcode='[ABCDGISTW]' 7377 ;; 7378hpux*) 7379 if test ia64 = "$host_cpu"; then 7380 symcode='[ABCDEGRST]' 7381 fi 7382 ;; 7383irix* | nonstopux*) 7384 symcode='[BCDEGRST]' 7385 ;; 7386osf*) 7387 symcode='[BCDEGQRST]' 7388 ;; 7389solaris*) 7390 symcode='[BDRT]' 7391 ;; 7392sco3.2v5*) 7393 symcode='[DT]' 7394 ;; 7395sysv4.2uw2*) 7396 symcode='[DT]' 7397 ;; 7398sysv5* | sco5v6* | unixware* | OpenUNIX*) 7399 symcode='[ABDT]' 7400 ;; 7401sysv4) 7402 symcode='[DFNSTU]' 7403 ;; 7404esac 7405 7406# If we're using GNU nm, then use its standard symbol codes. 7407case `$NM -V 2>&1` in 7408*GNU* | *'with BFD'*) 7409 symcode='[ABCDGIRSTW]' ;; 7410esac 7411 7412if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7413 # Gets list of data symbols to import. 7414 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7415 # Adjust the below global symbol transforms to fixup imported variables. 7416 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7417 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7418 lt_c_name_lib_hook="\ 7419 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7420 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7421else 7422 # Disable hooks by default. 7423 lt_cv_sys_global_symbol_to_import= 7424 lt_cdecl_hook= 7425 lt_c_name_hook= 7426 lt_c_name_lib_hook= 7427fi 7428 7429# Transform an extracted symbol line into a proper C declaration. 7430# Some systems (esp. on ia64) link data and code symbols differently, 7431# so use this general approach. 7432lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7433$lt_cdecl_hook\ 7434" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7435" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7436 7437# Transform an extracted symbol line into symbol name and symbol address 7438lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7439$lt_c_name_hook\ 7440" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7441" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7442 7443# Transform an extracted symbol line into symbol name with lib prefix and 7444# symbol address. 7445lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7446$lt_c_name_lib_hook\ 7447" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7448" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7449" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7450 7451# Handle CRLF in mingw tool chain 7452opt_cr= 7453case $build_os in 7454mingw*) 7455 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7456 ;; 7457esac 7458 7459# Try without a prefix underscore, then with it. 7460for ac_symprfx in "" "_"; do 7461 7462 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7463 symxfrm="\\1 $ac_symprfx\\2 \\2" 7464 7465 # Write the raw and C identifiers. 7466 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7467 # Fake it for dumpbin and say T for any non-static function, 7468 # D for any global variable and I for any imported variable. 7469 # Also find C++ and __fastcall symbols from MSVC++, 7470 # which start with @ or ?. 7471 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7472" {last_section=section; section=\$ 3};"\ 7473" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7474" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7475" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7476" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7477" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7478" \$ 0!~/External *\|/{next};"\ 7479" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7480" {if(hide[section]) next};"\ 7481" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7482" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7483" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7484" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7485" ' prfx=^$ac_symprfx" 7486 else 7487 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7488 fi 7489 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7490 7491 # Check to see that the pipe works correctly. 7492 pipe_works=no 7493 7494 rm -f conftest* 7495 cat > conftest.$ac_ext <<_LT_EOF 7496#ifdef __cplusplus 7497extern "C" { 7498#endif 7499char nm_test_var; 7500void nm_test_func(void); 7501void nm_test_func(void){} 7502#ifdef __cplusplus 7503} 7504#endif 7505int main(){nm_test_var='a';nm_test_func();return(0);} 7506_LT_EOF 7507 7508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7509 (eval $ac_compile) 2>&5 7510 ac_status=$? 7511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7512 test $ac_status = 0; }; then 7513 # Now try to grab the symbols. 7514 nlist=conftest.nm 7515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7516 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7517 ac_status=$? 7518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7519 test $ac_status = 0; } && test -s "$nlist"; then 7520 # Try sorting and uniquifying the output. 7521 if sort "$nlist" | uniq > "$nlist"T; then 7522 mv -f "$nlist"T "$nlist" 7523 else 7524 rm -f "$nlist"T 7525 fi 7526 7527 # Make sure that we snagged all the symbols we need. 7528 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7529 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7530 cat <<_LT_EOF > conftest.$ac_ext 7531/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7532#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7533/* DATA imports from DLLs on WIN32 can't be const, because runtime 7534 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7535# define LT_DLSYM_CONST 7536#elif defined __osf__ 7537/* This system does not cope well with relocations in const data. */ 7538# define LT_DLSYM_CONST 7539#else 7540# define LT_DLSYM_CONST const 7541#endif 7542 7543#ifdef __cplusplus 7544extern "C" { 7545#endif 7546 7547_LT_EOF 7548 # Now generate the symbol file. 7549 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7550 7551 cat <<_LT_EOF >> conftest.$ac_ext 7552 7553/* The mapping between symbol names and symbols. */ 7554LT_DLSYM_CONST struct { 7555 const char *name; 7556 void *address; 7557} 7558lt__PROGRAM__LTX_preloaded_symbols[] = 7559{ 7560 { "@PROGRAM@", (void *) 0 }, 7561_LT_EOF 7562 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7563 cat <<\_LT_EOF >> conftest.$ac_ext 7564 {0, (void *) 0} 7565}; 7566 7567/* This works around a problem in FreeBSD linker */ 7568#ifdef FREEBSD_WORKAROUND 7569static const void *lt_preloaded_setup() { 7570 return lt__PROGRAM__LTX_preloaded_symbols; 7571} 7572#endif 7573 7574#ifdef __cplusplus 7575} 7576#endif 7577_LT_EOF 7578 # Now try linking the two files. 7579 mv conftest.$ac_objext conftstm.$ac_objext 7580 lt_globsym_save_LIBS=$LIBS 7581 lt_globsym_save_CFLAGS=$CFLAGS 7582 LIBS=conftstm.$ac_objext 7583 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7585 (eval $ac_link) 2>&5 7586 ac_status=$? 7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7588 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7589 pipe_works=yes 7590 fi 7591 LIBS=$lt_globsym_save_LIBS 7592 CFLAGS=$lt_globsym_save_CFLAGS 7593 else 7594 echo "cannot find nm_test_func in $nlist" >&5 7595 fi 7596 else 7597 echo "cannot find nm_test_var in $nlist" >&5 7598 fi 7599 else 7600 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7601 fi 7602 else 7603 echo "$progname: failed program was:" >&5 7604 cat conftest.$ac_ext >&5 7605 fi 7606 rm -rf conftest* conftst* 7607 7608 # Do not use the global_symbol_pipe unless it works. 7609 if test yes = "$pipe_works"; then 7610 break 7611 else 7612 lt_cv_sys_global_symbol_pipe= 7613 fi 7614done 7615 7616fi 7617 7618if test -z "$lt_cv_sys_global_symbol_pipe"; then 7619 lt_cv_sys_global_symbol_to_cdecl= 7620fi 7621if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7623$as_echo "failed" >&6; } 7624else 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7626$as_echo "ok" >&6; } 7627fi 7628 7629# Response file support. 7630if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7631 nm_file_list_spec='@' 7632elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7633 nm_file_list_spec='@' 7634fi 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7673$as_echo_n "checking for sysroot... " >&6; } 7674 7675# Check whether --with-sysroot was given. 7676if test "${with_sysroot+set}" = set; then : 7677 withval=$with_sysroot; 7678else 7679 with_sysroot=no 7680fi 7681 7682 7683lt_sysroot= 7684case $with_sysroot in #( 7685 yes) 7686 if test yes = "$GCC"; then 7687 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7688 fi 7689 ;; #( 7690 /*) 7691 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7692 ;; #( 7693 no|'') 7694 ;; #( 7695 *) 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7697$as_echo "$with_sysroot" >&6; } 7698 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7699 ;; 7700esac 7701 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7703$as_echo "${lt_sysroot:-no}" >&6; } 7704 7705 7706 7707 7708 7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7710$as_echo_n "checking for a working dd... " >&6; } 7711if ${ac_cv_path_lt_DD+:} false; then : 7712 $as_echo_n "(cached) " >&6 7713else 7714 printf 0123456789abcdef0123456789abcdef >conftest.i 7715cat conftest.i conftest.i >conftest2.i 7716: ${lt_DD:=$DD} 7717if test -z "$lt_DD"; then 7718 ac_path_lt_DD_found=false 7719 # Loop through the user's path and test for each of PROGNAME-LIST 7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7721for as_dir in $PATH 7722do 7723 IFS=$as_save_IFS 7724 test -z "$as_dir" && as_dir=. 7725 for ac_prog in dd; do 7726 for ac_exec_ext in '' $ac_executable_extensions; do 7727 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7728 as_fn_executable_p "$ac_path_lt_DD" || continue 7729if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7730 cmp -s conftest.i conftest.out \ 7731 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7732fi 7733 $ac_path_lt_DD_found && break 3 7734 done 7735 done 7736 done 7737IFS=$as_save_IFS 7738 if test -z "$ac_cv_path_lt_DD"; then 7739 : 7740 fi 7741else 7742 ac_cv_path_lt_DD=$lt_DD 7743fi 7744 7745rm -f conftest.i conftest2.i conftest.out 7746fi 7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7748$as_echo "$ac_cv_path_lt_DD" >&6; } 7749 7750 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7752$as_echo_n "checking how to truncate binary pipes... " >&6; } 7753if ${lt_cv_truncate_bin+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755else 7756 printf 0123456789abcdef0123456789abcdef >conftest.i 7757cat conftest.i conftest.i >conftest2.i 7758lt_cv_truncate_bin= 7759if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7760 cmp -s conftest.i conftest.out \ 7761 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7762fi 7763rm -f conftest.i conftest2.i conftest.out 7764test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7765fi 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7767$as_echo "$lt_cv_truncate_bin" >&6; } 7768 7769 7770 7771 7772 7773 7774 7775# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7776func_cc_basename () 7777{ 7778 for cc_temp in $*""; do 7779 case $cc_temp in 7780 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7781 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7782 \-*) ;; 7783 *) break;; 7784 esac 7785 done 7786 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7787} 7788 7789# Check whether --enable-libtool-lock was given. 7790if test "${enable_libtool_lock+set}" = set; then : 7791 enableval=$enable_libtool_lock; 7792fi 7793 7794test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7795 7796# Some flags need to be propagated to the compiler or linker for good 7797# libtool support. 7798case $host in 7799ia64-*-hpux*) 7800 # Find out what ABI is being produced by ac_compile, and set mode 7801 # options accordingly. 7802 echo 'int i;' > conftest.$ac_ext 7803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7804 (eval $ac_compile) 2>&5 7805 ac_status=$? 7806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7807 test $ac_status = 0; }; then 7808 case `/usr/bin/file conftest.$ac_objext` in 7809 *ELF-32*) 7810 HPUX_IA64_MODE=32 7811 ;; 7812 *ELF-64*) 7813 HPUX_IA64_MODE=64 7814 ;; 7815 esac 7816 fi 7817 rm -rf conftest* 7818 ;; 7819*-*-irix6*) 7820 # Find out what ABI is being produced by ac_compile, and set linker 7821 # options accordingly. 7822 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7824 (eval $ac_compile) 2>&5 7825 ac_status=$? 7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7827 test $ac_status = 0; }; then 7828 if test yes = "$lt_cv_prog_gnu_ld"; then 7829 case `/usr/bin/file conftest.$ac_objext` in 7830 *32-bit*) 7831 LD="${LD-ld} -melf32bsmip" 7832 ;; 7833 *N32*) 7834 LD="${LD-ld} -melf32bmipn32" 7835 ;; 7836 *64-bit*) 7837 LD="${LD-ld} -melf64bmip" 7838 ;; 7839 esac 7840 else 7841 case `/usr/bin/file conftest.$ac_objext` in 7842 *32-bit*) 7843 LD="${LD-ld} -32" 7844 ;; 7845 *N32*) 7846 LD="${LD-ld} -n32" 7847 ;; 7848 *64-bit*) 7849 LD="${LD-ld} -64" 7850 ;; 7851 esac 7852 fi 7853 fi 7854 rm -rf conftest* 7855 ;; 7856 7857mips64*-*linux*) 7858 # Find out what ABI is being produced by ac_compile, and set linker 7859 # options accordingly. 7860 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7862 (eval $ac_compile) 2>&5 7863 ac_status=$? 7864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7865 test $ac_status = 0; }; then 7866 emul=elf 7867 case `/usr/bin/file conftest.$ac_objext` in 7868 *32-bit*) 7869 emul="${emul}32" 7870 ;; 7871 *64-bit*) 7872 emul="${emul}64" 7873 ;; 7874 esac 7875 case `/usr/bin/file conftest.$ac_objext` in 7876 *MSB*) 7877 emul="${emul}btsmip" 7878 ;; 7879 *LSB*) 7880 emul="${emul}ltsmip" 7881 ;; 7882 esac 7883 case `/usr/bin/file conftest.$ac_objext` in 7884 *N32*) 7885 emul="${emul}n32" 7886 ;; 7887 esac 7888 LD="${LD-ld} -m $emul" 7889 fi 7890 rm -rf conftest* 7891 ;; 7892 7893x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7894s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7895 # Find out what ABI is being produced by ac_compile, and set linker 7896 # options accordingly. Note that the listed cases only cover the 7897 # situations where additional linker options are needed (such as when 7898 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7899 # vice versa); the common cases where no linker options are needed do 7900 # not appear in the list. 7901 echo 'int i;' > conftest.$ac_ext 7902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7903 (eval $ac_compile) 2>&5 7904 ac_status=$? 7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7906 test $ac_status = 0; }; then 7907 case `/usr/bin/file conftest.o` in 7908 *32-bit*) 7909 case $host in 7910 x86_64-*kfreebsd*-gnu) 7911 LD="${LD-ld} -m elf_i386_fbsd" 7912 ;; 7913 x86_64-*linux*) 7914 case `/usr/bin/file conftest.o` in 7915 *x86-64*) 7916 LD="${LD-ld} -m elf32_x86_64" 7917 ;; 7918 *) 7919 LD="${LD-ld} -m elf_i386" 7920 ;; 7921 esac 7922 ;; 7923 powerpc64le-*linux*) 7924 LD="${LD-ld} -m elf32lppclinux" 7925 ;; 7926 powerpc64-*linux*) 7927 LD="${LD-ld} -m elf32ppclinux" 7928 ;; 7929 s390x-*linux*) 7930 LD="${LD-ld} -m elf_s390" 7931 ;; 7932 sparc64-*linux*) 7933 LD="${LD-ld} -m elf32_sparc" 7934 ;; 7935 esac 7936 ;; 7937 *64-bit*) 7938 case $host in 7939 x86_64-*kfreebsd*-gnu) 7940 LD="${LD-ld} -m elf_x86_64_fbsd" 7941 ;; 7942 x86_64-*linux*) 7943 LD="${LD-ld} -m elf_x86_64" 7944 ;; 7945 powerpcle-*linux*) 7946 LD="${LD-ld} -m elf64lppc" 7947 ;; 7948 powerpc-*linux*) 7949 LD="${LD-ld} -m elf64ppc" 7950 ;; 7951 s390*-*linux*|s390*-*tpf*) 7952 LD="${LD-ld} -m elf64_s390" 7953 ;; 7954 sparc*-*linux*) 7955 LD="${LD-ld} -m elf64_sparc" 7956 ;; 7957 esac 7958 ;; 7959 esac 7960 fi 7961 rm -rf conftest* 7962 ;; 7963 7964*-*-sco3.2v5*) 7965 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7966 SAVE_CFLAGS=$CFLAGS 7967 CFLAGS="$CFLAGS -belf" 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7969$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7970if ${lt_cv_cc_needs_belf+:} false; then : 7971 $as_echo_n "(cached) " >&6 7972else 7973 ac_ext=c 7974ac_cpp='$CPP $CPPFLAGS' 7975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7977ac_compiler_gnu=$ac_cv_c_compiler_gnu 7978 7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980/* end confdefs.h. */ 7981 7982int 7983main () 7984{ 7985 7986 ; 7987 return 0; 7988} 7989_ACEOF 7990if ac_fn_c_try_link "$LINENO"; then : 7991 lt_cv_cc_needs_belf=yes 7992else 7993 lt_cv_cc_needs_belf=no 7994fi 7995rm -f core conftest.err conftest.$ac_objext \ 7996 conftest$ac_exeext conftest.$ac_ext 7997 ac_ext=c 7998ac_cpp='$CPP $CPPFLAGS' 7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8001ac_compiler_gnu=$ac_cv_c_compiler_gnu 8002 8003fi 8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8005$as_echo "$lt_cv_cc_needs_belf" >&6; } 8006 if test yes != "$lt_cv_cc_needs_belf"; then 8007 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8008 CFLAGS=$SAVE_CFLAGS 8009 fi 8010 ;; 8011*-*solaris*) 8012 # Find out what ABI is being produced by ac_compile, and set linker 8013 # options accordingly. 8014 echo 'int i;' > conftest.$ac_ext 8015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8016 (eval $ac_compile) 2>&5 8017 ac_status=$? 8018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8019 test $ac_status = 0; }; then 8020 case `/usr/bin/file conftest.o` in 8021 *64-bit*) 8022 case $lt_cv_prog_gnu_ld in 8023 yes*) 8024 case $host in 8025 i?86-*-solaris*|x86_64-*-solaris*) 8026 LD="${LD-ld} -m elf_x86_64" 8027 ;; 8028 sparc*-*-solaris*) 8029 LD="${LD-ld} -m elf64_sparc" 8030 ;; 8031 esac 8032 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8033 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8034 LD=${LD-ld}_sol2 8035 fi 8036 ;; 8037 *) 8038 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8039 LD="${LD-ld} -64" 8040 fi 8041 ;; 8042 esac 8043 ;; 8044 esac 8045 fi 8046 rm -rf conftest* 8047 ;; 8048esac 8049 8050need_locks=$enable_libtool_lock 8051 8052if test -n "$ac_tool_prefix"; then 8053 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8054set dummy ${ac_tool_prefix}mt; ac_word=$2 8055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8056$as_echo_n "checking for $ac_word... " >&6; } 8057if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8058 $as_echo_n "(cached) " >&6 8059else 8060 if test -n "$MANIFEST_TOOL"; then 8061 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8062else 8063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8064for as_dir in $PATH 8065do 8066 IFS=$as_save_IFS 8067 test -z "$as_dir" && as_dir=. 8068 for ac_exec_ext in '' $ac_executable_extensions; do 8069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8070 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8072 break 2 8073 fi 8074done 8075 done 8076IFS=$as_save_IFS 8077 8078fi 8079fi 8080MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8081if test -n "$MANIFEST_TOOL"; then 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8083$as_echo "$MANIFEST_TOOL" >&6; } 8084else 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8086$as_echo "no" >&6; } 8087fi 8088 8089 8090fi 8091if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8092 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8093 # Extract the first word of "mt", so it can be a program name with args. 8094set dummy mt; ac_word=$2 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8096$as_echo_n "checking for $ac_word... " >&6; } 8097if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8098 $as_echo_n "(cached) " >&6 8099else 8100 if test -n "$ac_ct_MANIFEST_TOOL"; then 8101 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8102else 8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8104for as_dir in $PATH 8105do 8106 IFS=$as_save_IFS 8107 test -z "$as_dir" && as_dir=. 8108 for ac_exec_ext in '' $ac_executable_extensions; do 8109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8110 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8112 break 2 8113 fi 8114done 8115 done 8116IFS=$as_save_IFS 8117 8118fi 8119fi 8120ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8121if test -n "$ac_ct_MANIFEST_TOOL"; then 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8123$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8124else 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8126$as_echo "no" >&6; } 8127fi 8128 8129 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8130 MANIFEST_TOOL=":" 8131 else 8132 case $cross_compiling:$ac_tool_warned in 8133yes:) 8134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8136ac_tool_warned=yes ;; 8137esac 8138 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8139 fi 8140else 8141 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8142fi 8143 8144test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8146$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8147if ${lt_cv_path_mainfest_tool+:} false; then : 8148 $as_echo_n "(cached) " >&6 8149else 8150 lt_cv_path_mainfest_tool=no 8151 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8152 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8153 cat conftest.err >&5 8154 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8155 lt_cv_path_mainfest_tool=yes 8156 fi 8157 rm -f conftest* 8158fi 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8160$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8161if test yes != "$lt_cv_path_mainfest_tool"; then 8162 MANIFEST_TOOL=: 8163fi 8164 8165 8166 8167 8168 8169 8170 case $host_os in 8171 rhapsody* | darwin*) 8172 if test -n "$ac_tool_prefix"; then 8173 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8174set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8176$as_echo_n "checking for $ac_word... " >&6; } 8177if ${ac_cv_prog_DSYMUTIL+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179else 8180 if test -n "$DSYMUTIL"; then 8181 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8182else 8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8184for as_dir in $PATH 8185do 8186 IFS=$as_save_IFS 8187 test -z "$as_dir" && as_dir=. 8188 for ac_exec_ext in '' $ac_executable_extensions; do 8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8190 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8192 break 2 8193 fi 8194done 8195 done 8196IFS=$as_save_IFS 8197 8198fi 8199fi 8200DSYMUTIL=$ac_cv_prog_DSYMUTIL 8201if test -n "$DSYMUTIL"; then 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8203$as_echo "$DSYMUTIL" >&6; } 8204else 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8206$as_echo "no" >&6; } 8207fi 8208 8209 8210fi 8211if test -z "$ac_cv_prog_DSYMUTIL"; then 8212 ac_ct_DSYMUTIL=$DSYMUTIL 8213 # Extract the first word of "dsymutil", so it can be a program name with args. 8214set dummy dsymutil; ac_word=$2 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8216$as_echo_n "checking for $ac_word... " >&6; } 8217if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8218 $as_echo_n "(cached) " >&6 8219else 8220 if test -n "$ac_ct_DSYMUTIL"; then 8221 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8222else 8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8224for as_dir in $PATH 8225do 8226 IFS=$as_save_IFS 8227 test -z "$as_dir" && as_dir=. 8228 for ac_exec_ext in '' $ac_executable_extensions; do 8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8230 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8232 break 2 8233 fi 8234done 8235 done 8236IFS=$as_save_IFS 8237 8238fi 8239fi 8240ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8241if test -n "$ac_ct_DSYMUTIL"; then 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8243$as_echo "$ac_ct_DSYMUTIL" >&6; } 8244else 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8246$as_echo "no" >&6; } 8247fi 8248 8249 if test "x$ac_ct_DSYMUTIL" = x; then 8250 DSYMUTIL=":" 8251 else 8252 case $cross_compiling:$ac_tool_warned in 8253yes:) 8254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8256ac_tool_warned=yes ;; 8257esac 8258 DSYMUTIL=$ac_ct_DSYMUTIL 8259 fi 8260else 8261 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8262fi 8263 8264 if test -n "$ac_tool_prefix"; then 8265 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8266set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8268$as_echo_n "checking for $ac_word... " >&6; } 8269if ${ac_cv_prog_NMEDIT+:} false; then : 8270 $as_echo_n "(cached) " >&6 8271else 8272 if test -n "$NMEDIT"; then 8273 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8274else 8275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8276for as_dir in $PATH 8277do 8278 IFS=$as_save_IFS 8279 test -z "$as_dir" && as_dir=. 8280 for ac_exec_ext in '' $ac_executable_extensions; do 8281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8282 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8284 break 2 8285 fi 8286done 8287 done 8288IFS=$as_save_IFS 8289 8290fi 8291fi 8292NMEDIT=$ac_cv_prog_NMEDIT 8293if test -n "$NMEDIT"; then 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8295$as_echo "$NMEDIT" >&6; } 8296else 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8298$as_echo "no" >&6; } 8299fi 8300 8301 8302fi 8303if test -z "$ac_cv_prog_NMEDIT"; then 8304 ac_ct_NMEDIT=$NMEDIT 8305 # Extract the first word of "nmedit", so it can be a program name with args. 8306set dummy nmedit; ac_word=$2 8307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8308$as_echo_n "checking for $ac_word... " >&6; } 8309if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8310 $as_echo_n "(cached) " >&6 8311else 8312 if test -n "$ac_ct_NMEDIT"; then 8313 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8314else 8315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8316for as_dir in $PATH 8317do 8318 IFS=$as_save_IFS 8319 test -z "$as_dir" && as_dir=. 8320 for ac_exec_ext in '' $ac_executable_extensions; do 8321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8322 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8324 break 2 8325 fi 8326done 8327 done 8328IFS=$as_save_IFS 8329 8330fi 8331fi 8332ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8333if test -n "$ac_ct_NMEDIT"; then 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8335$as_echo "$ac_ct_NMEDIT" >&6; } 8336else 8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8338$as_echo "no" >&6; } 8339fi 8340 8341 if test "x$ac_ct_NMEDIT" = x; then 8342 NMEDIT=":" 8343 else 8344 case $cross_compiling:$ac_tool_warned in 8345yes:) 8346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8348ac_tool_warned=yes ;; 8349esac 8350 NMEDIT=$ac_ct_NMEDIT 8351 fi 8352else 8353 NMEDIT="$ac_cv_prog_NMEDIT" 8354fi 8355 8356 if test -n "$ac_tool_prefix"; then 8357 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8358set dummy ${ac_tool_prefix}lipo; ac_word=$2 8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8360$as_echo_n "checking for $ac_word... " >&6; } 8361if ${ac_cv_prog_LIPO+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363else 8364 if test -n "$LIPO"; then 8365 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8366else 8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8368for as_dir in $PATH 8369do 8370 IFS=$as_save_IFS 8371 test -z "$as_dir" && as_dir=. 8372 for ac_exec_ext in '' $ac_executable_extensions; do 8373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8374 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8376 break 2 8377 fi 8378done 8379 done 8380IFS=$as_save_IFS 8381 8382fi 8383fi 8384LIPO=$ac_cv_prog_LIPO 8385if test -n "$LIPO"; then 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8387$as_echo "$LIPO" >&6; } 8388else 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8390$as_echo "no" >&6; } 8391fi 8392 8393 8394fi 8395if test -z "$ac_cv_prog_LIPO"; then 8396 ac_ct_LIPO=$LIPO 8397 # Extract the first word of "lipo", so it can be a program name with args. 8398set dummy lipo; ac_word=$2 8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8400$as_echo_n "checking for $ac_word... " >&6; } 8401if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8402 $as_echo_n "(cached) " >&6 8403else 8404 if test -n "$ac_ct_LIPO"; then 8405 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8406else 8407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8408for as_dir in $PATH 8409do 8410 IFS=$as_save_IFS 8411 test -z "$as_dir" && as_dir=. 8412 for ac_exec_ext in '' $ac_executable_extensions; do 8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8414 ac_cv_prog_ac_ct_LIPO="lipo" 8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8416 break 2 8417 fi 8418done 8419 done 8420IFS=$as_save_IFS 8421 8422fi 8423fi 8424ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8425if test -n "$ac_ct_LIPO"; then 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8427$as_echo "$ac_ct_LIPO" >&6; } 8428else 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8430$as_echo "no" >&6; } 8431fi 8432 8433 if test "x$ac_ct_LIPO" = x; then 8434 LIPO=":" 8435 else 8436 case $cross_compiling:$ac_tool_warned in 8437yes:) 8438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8440ac_tool_warned=yes ;; 8441esac 8442 LIPO=$ac_ct_LIPO 8443 fi 8444else 8445 LIPO="$ac_cv_prog_LIPO" 8446fi 8447 8448 if test -n "$ac_tool_prefix"; then 8449 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8450set dummy ${ac_tool_prefix}otool; ac_word=$2 8451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8452$as_echo_n "checking for $ac_word... " >&6; } 8453if ${ac_cv_prog_OTOOL+:} false; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 if test -n "$OTOOL"; then 8457 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8458else 8459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8460for as_dir in $PATH 8461do 8462 IFS=$as_save_IFS 8463 test -z "$as_dir" && as_dir=. 8464 for ac_exec_ext in '' $ac_executable_extensions; do 8465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8466 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8468 break 2 8469 fi 8470done 8471 done 8472IFS=$as_save_IFS 8473 8474fi 8475fi 8476OTOOL=$ac_cv_prog_OTOOL 8477if test -n "$OTOOL"; then 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8479$as_echo "$OTOOL" >&6; } 8480else 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8482$as_echo "no" >&6; } 8483fi 8484 8485 8486fi 8487if test -z "$ac_cv_prog_OTOOL"; then 8488 ac_ct_OTOOL=$OTOOL 8489 # Extract the first word of "otool", so it can be a program name with args. 8490set dummy otool; ac_word=$2 8491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8492$as_echo_n "checking for $ac_word... " >&6; } 8493if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8494 $as_echo_n "(cached) " >&6 8495else 8496 if test -n "$ac_ct_OTOOL"; then 8497 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8498else 8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8500for as_dir in $PATH 8501do 8502 IFS=$as_save_IFS 8503 test -z "$as_dir" && as_dir=. 8504 for ac_exec_ext in '' $ac_executable_extensions; do 8505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8506 ac_cv_prog_ac_ct_OTOOL="otool" 8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8508 break 2 8509 fi 8510done 8511 done 8512IFS=$as_save_IFS 8513 8514fi 8515fi 8516ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8517if test -n "$ac_ct_OTOOL"; then 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8519$as_echo "$ac_ct_OTOOL" >&6; } 8520else 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8522$as_echo "no" >&6; } 8523fi 8524 8525 if test "x$ac_ct_OTOOL" = x; then 8526 OTOOL=":" 8527 else 8528 case $cross_compiling:$ac_tool_warned in 8529yes:) 8530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8532ac_tool_warned=yes ;; 8533esac 8534 OTOOL=$ac_ct_OTOOL 8535 fi 8536else 8537 OTOOL="$ac_cv_prog_OTOOL" 8538fi 8539 8540 if test -n "$ac_tool_prefix"; then 8541 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8542set dummy ${ac_tool_prefix}otool64; ac_word=$2 8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8544$as_echo_n "checking for $ac_word... " >&6; } 8545if ${ac_cv_prog_OTOOL64+:} false; then : 8546 $as_echo_n "(cached) " >&6 8547else 8548 if test -n "$OTOOL64"; then 8549 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8550else 8551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8552for as_dir in $PATH 8553do 8554 IFS=$as_save_IFS 8555 test -z "$as_dir" && as_dir=. 8556 for ac_exec_ext in '' $ac_executable_extensions; do 8557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8558 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8560 break 2 8561 fi 8562done 8563 done 8564IFS=$as_save_IFS 8565 8566fi 8567fi 8568OTOOL64=$ac_cv_prog_OTOOL64 8569if test -n "$OTOOL64"; then 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8571$as_echo "$OTOOL64" >&6; } 8572else 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8574$as_echo "no" >&6; } 8575fi 8576 8577 8578fi 8579if test -z "$ac_cv_prog_OTOOL64"; then 8580 ac_ct_OTOOL64=$OTOOL64 8581 # Extract the first word of "otool64", so it can be a program name with args. 8582set dummy otool64; ac_word=$2 8583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8584$as_echo_n "checking for $ac_word... " >&6; } 8585if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8586 $as_echo_n "(cached) " >&6 8587else 8588 if test -n "$ac_ct_OTOOL64"; then 8589 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8590else 8591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8592for as_dir in $PATH 8593do 8594 IFS=$as_save_IFS 8595 test -z "$as_dir" && as_dir=. 8596 for ac_exec_ext in '' $ac_executable_extensions; do 8597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8598 ac_cv_prog_ac_ct_OTOOL64="otool64" 8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8600 break 2 8601 fi 8602done 8603 done 8604IFS=$as_save_IFS 8605 8606fi 8607fi 8608ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8609if test -n "$ac_ct_OTOOL64"; then 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8611$as_echo "$ac_ct_OTOOL64" >&6; } 8612else 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8614$as_echo "no" >&6; } 8615fi 8616 8617 if test "x$ac_ct_OTOOL64" = x; then 8618 OTOOL64=":" 8619 else 8620 case $cross_compiling:$ac_tool_warned in 8621yes:) 8622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8624ac_tool_warned=yes ;; 8625esac 8626 OTOOL64=$ac_ct_OTOOL64 8627 fi 8628else 8629 OTOOL64="$ac_cv_prog_OTOOL64" 8630fi 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8659$as_echo_n "checking for -single_module linker flag... " >&6; } 8660if ${lt_cv_apple_cc_single_mod+:} false; then : 8661 $as_echo_n "(cached) " >&6 8662else 8663 lt_cv_apple_cc_single_mod=no 8664 if test -z "$LT_MULTI_MODULE"; then 8665 # By default we will add the -single_module flag. You can override 8666 # by either setting the environment variable LT_MULTI_MODULE 8667 # non-empty at configure time, or by adding -multi_module to the 8668 # link flags. 8669 rm -rf libconftest.dylib* 8670 echo "int foo(void){return 1;}" > conftest.c 8671 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8672-dynamiclib -Wl,-single_module conftest.c" >&5 8673 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8674 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8675 _lt_result=$? 8676 # If there is a non-empty error log, and "single_module" 8677 # appears in it, assume the flag caused a linker warning 8678 if test -s conftest.err && $GREP single_module conftest.err; then 8679 cat conftest.err >&5 8680 # Otherwise, if the output was created with a 0 exit code from 8681 # the compiler, it worked. 8682 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8683 lt_cv_apple_cc_single_mod=yes 8684 else 8685 cat conftest.err >&5 8686 fi 8687 rm -rf libconftest.dylib* 8688 rm -f conftest.* 8689 fi 8690fi 8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8692$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8693 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8695$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8696if ${lt_cv_ld_exported_symbols_list+:} false; then : 8697 $as_echo_n "(cached) " >&6 8698else 8699 lt_cv_ld_exported_symbols_list=no 8700 save_LDFLAGS=$LDFLAGS 8701 echo "_main" > conftest.sym 8702 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8704/* end confdefs.h. */ 8705 8706int 8707main () 8708{ 8709 8710 ; 8711 return 0; 8712} 8713_ACEOF 8714if ac_fn_c_try_link "$LINENO"; then : 8715 lt_cv_ld_exported_symbols_list=yes 8716else 8717 lt_cv_ld_exported_symbols_list=no 8718fi 8719rm -f core conftest.err conftest.$ac_objext \ 8720 conftest$ac_exeext conftest.$ac_ext 8721 LDFLAGS=$save_LDFLAGS 8722 8723fi 8724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8725$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8726 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8728$as_echo_n "checking for -force_load linker flag... " >&6; } 8729if ${lt_cv_ld_force_load+:} false; then : 8730 $as_echo_n "(cached) " >&6 8731else 8732 lt_cv_ld_force_load=no 8733 cat > conftest.c << _LT_EOF 8734int forced_loaded() { return 2;} 8735_LT_EOF 8736 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8737 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8738 echo "$AR cru libconftest.a conftest.o" >&5 8739 $AR cru libconftest.a conftest.o 2>&5 8740 echo "$RANLIB libconftest.a" >&5 8741 $RANLIB libconftest.a 2>&5 8742 cat > conftest.c << _LT_EOF 8743int main() { return 0;} 8744_LT_EOF 8745 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8746 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8747 _lt_result=$? 8748 if test -s conftest.err && $GREP force_load conftest.err; then 8749 cat conftest.err >&5 8750 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8751 lt_cv_ld_force_load=yes 8752 else 8753 cat conftest.err >&5 8754 fi 8755 rm -f conftest.err libconftest.a conftest conftest.c 8756 rm -rf conftest.dSYM 8757 8758fi 8759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8760$as_echo "$lt_cv_ld_force_load" >&6; } 8761 case $host_os in 8762 rhapsody* | darwin1.[012]) 8763 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8764 darwin1.*) 8765 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8766 darwin*) # darwin 5.x on 8767 # if running on 10.5 or later, the deployment target defaults 8768 # to the OS version, if on x86, and 10.4, the deployment 8769 # target defaults to 10.4. Don't you love it? 8770 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8771 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8772 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8773 10.[012][,.]*) 8774 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8775 10.*) 8776 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8777 esac 8778 ;; 8779 esac 8780 if test yes = "$lt_cv_apple_cc_single_mod"; then 8781 _lt_dar_single_mod='$single_module' 8782 fi 8783 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8784 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8785 else 8786 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8787 fi 8788 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8789 _lt_dsymutil='~$DSYMUTIL $lib || :' 8790 else 8791 _lt_dsymutil= 8792 fi 8793 ;; 8794 esac 8795 8796# func_munge_path_list VARIABLE PATH 8797# ----------------------------------- 8798# VARIABLE is name of variable containing _space_ separated list of 8799# directories to be munged by the contents of PATH, which is string 8800# having a format: 8801# "DIR[:DIR]:" 8802# string "DIR[ DIR]" will be prepended to VARIABLE 8803# ":DIR[:DIR]" 8804# string "DIR[ DIR]" will be appended to VARIABLE 8805# "DIRP[:DIRP]::[DIRA:]DIRA" 8806# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8807# "DIRA[ DIRA]" will be appended to VARIABLE 8808# "DIR[:DIR]" 8809# VARIABLE will be replaced by "DIR[ DIR]" 8810func_munge_path_list () 8811{ 8812 case x$2 in 8813 x) 8814 ;; 8815 *:) 8816 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8817 ;; 8818 x:*) 8819 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8820 ;; 8821 *::*) 8822 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8823 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8824 ;; 8825 *) 8826 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8827 ;; 8828 esac 8829} 8830 8831# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8832for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8833 inttypes.h stdint.h unistd.h 8834do : 8835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8836ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8837" 8838if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8839 cat >>confdefs.h <<_ACEOF 8840#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8841_ACEOF 8842 8843fi 8844 8845done 8846 8847 8848for ac_header in dlfcn.h 8849do : 8850 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8851" 8852if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8853 cat >>confdefs.h <<_ACEOF 8854#define HAVE_DLFCN_H 1 8855_ACEOF 8856 8857fi 8858 8859done 8860 8861 8862 8863 8864 8865# Set options 8866 8867 8868 8869 enable_dlopen=no 8870 8871 8872 enable_win32_dll=no 8873 8874 8875 # Check whether --enable-shared was given. 8876if test "${enable_shared+set}" = set; then : 8877 enableval=$enable_shared; p=${PACKAGE-default} 8878 case $enableval in 8879 yes) enable_shared=yes ;; 8880 no) enable_shared=no ;; 8881 *) 8882 enable_shared=no 8883 # Look at the argument we got. We use all the common list separators. 8884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8885 for pkg in $enableval; do 8886 IFS=$lt_save_ifs 8887 if test "X$pkg" = "X$p"; then 8888 enable_shared=yes 8889 fi 8890 done 8891 IFS=$lt_save_ifs 8892 ;; 8893 esac 8894else 8895 enable_shared=yes 8896fi 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 # Check whether --enable-static was given. 8907if test "${enable_static+set}" = set; then : 8908 enableval=$enable_static; p=${PACKAGE-default} 8909 case $enableval in 8910 yes) enable_static=yes ;; 8911 no) enable_static=no ;; 8912 *) 8913 enable_static=no 8914 # Look at the argument we got. We use all the common list separators. 8915 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8916 for pkg in $enableval; do 8917 IFS=$lt_save_ifs 8918 if test "X$pkg" = "X$p"; then 8919 enable_static=yes 8920 fi 8921 done 8922 IFS=$lt_save_ifs 8923 ;; 8924 esac 8925else 8926 enable_static=yes 8927fi 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938# Check whether --with-pic was given. 8939if test "${with_pic+set}" = set; then : 8940 withval=$with_pic; lt_p=${PACKAGE-default} 8941 case $withval in 8942 yes|no) pic_mode=$withval ;; 8943 *) 8944 pic_mode=default 8945 # Look at the argument we got. We use all the common list separators. 8946 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8947 for lt_pkg in $withval; do 8948 IFS=$lt_save_ifs 8949 if test "X$lt_pkg" = "X$lt_p"; then 8950 pic_mode=yes 8951 fi 8952 done 8953 IFS=$lt_save_ifs 8954 ;; 8955 esac 8956else 8957 pic_mode=default 8958fi 8959 8960 8961 8962 8963 8964 8965 8966 8967 # Check whether --enable-fast-install was given. 8968if test "${enable_fast_install+set}" = set; then : 8969 enableval=$enable_fast_install; p=${PACKAGE-default} 8970 case $enableval in 8971 yes) enable_fast_install=yes ;; 8972 no) enable_fast_install=no ;; 8973 *) 8974 enable_fast_install=no 8975 # Look at the argument we got. We use all the common list separators. 8976 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8977 for pkg in $enableval; do 8978 IFS=$lt_save_ifs 8979 if test "X$pkg" = "X$p"; then 8980 enable_fast_install=yes 8981 fi 8982 done 8983 IFS=$lt_save_ifs 8984 ;; 8985 esac 8986else 8987 enable_fast_install=yes 8988fi 8989 8990 8991 8992 8993 8994 8995 8996 8997 shared_archive_member_spec= 8998case $host,$enable_shared in 8999power*-*-aix[5-9]*,yes) 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9001$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9002 9003# Check whether --with-aix-soname was given. 9004if test "${with_aix_soname+set}" = set; then : 9005 withval=$with_aix_soname; case $withval in 9006 aix|svr4|both) 9007 ;; 9008 *) 9009 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9010 ;; 9011 esac 9012 lt_cv_with_aix_soname=$with_aix_soname 9013else 9014 if ${lt_cv_with_aix_soname+:} false; then : 9015 $as_echo_n "(cached) " >&6 9016else 9017 lt_cv_with_aix_soname=aix 9018fi 9019 9020 with_aix_soname=$lt_cv_with_aix_soname 9021fi 9022 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9024$as_echo "$with_aix_soname" >&6; } 9025 if test aix != "$with_aix_soname"; then 9026 # For the AIX way of multilib, we name the shared archive member 9027 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9028 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9029 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9030 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9031 if test 64 = "${OBJECT_MODE-32}"; then 9032 shared_archive_member_spec=shr_64 9033 else 9034 shared_archive_member_spec=shr 9035 fi 9036 fi 9037 ;; 9038*) 9039 with_aix_soname=aix 9040 ;; 9041esac 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052# This can be used to rebuild libtool when needed 9053LIBTOOL_DEPS=$ltmain 9054 9055# Always use our own libtool. 9056LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087test -z "$LN_S" && LN_S="ln -s" 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102if test -n "${ZSH_VERSION+set}"; then 9103 setopt NO_GLOB_SUBST 9104fi 9105 9106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9107$as_echo_n "checking for objdir... " >&6; } 9108if ${lt_cv_objdir+:} false; then : 9109 $as_echo_n "(cached) " >&6 9110else 9111 rm -f .libs 2>/dev/null 9112mkdir .libs 2>/dev/null 9113if test -d .libs; then 9114 lt_cv_objdir=.libs 9115else 9116 # MS-DOS does not allow filenames that begin with a dot. 9117 lt_cv_objdir=_libs 9118fi 9119rmdir .libs 2>/dev/null 9120fi 9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9122$as_echo "$lt_cv_objdir" >&6; } 9123objdir=$lt_cv_objdir 9124 9125 9126 9127 9128 9129cat >>confdefs.h <<_ACEOF 9130#define LT_OBJDIR "$lt_cv_objdir/" 9131_ACEOF 9132 9133 9134 9135 9136case $host_os in 9137aix3*) 9138 # AIX sometimes has problems with the GCC collect2 program. For some 9139 # reason, if we set the COLLECT_NAMES environment variable, the problems 9140 # vanish in a puff of smoke. 9141 if test set != "${COLLECT_NAMES+set}"; then 9142 COLLECT_NAMES= 9143 export COLLECT_NAMES 9144 fi 9145 ;; 9146esac 9147 9148# Global variables: 9149ofile=libtool 9150can_build_shared=yes 9151 9152# All known linkers require a '.a' archive for static linking (except MSVC, 9153# which needs '.lib'). 9154libext=a 9155 9156with_gnu_ld=$lt_cv_prog_gnu_ld 9157 9158old_CC=$CC 9159old_CFLAGS=$CFLAGS 9160 9161# Set sane defaults for various variables 9162test -z "$CC" && CC=cc 9163test -z "$LTCC" && LTCC=$CC 9164test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9165test -z "$LD" && LD=ld 9166test -z "$ac_objext" && ac_objext=o 9167 9168func_cc_basename $compiler 9169cc_basename=$func_cc_basename_result 9170 9171 9172# Only perform the check for file, if the check method requires it 9173test -z "$MAGIC_CMD" && MAGIC_CMD=file 9174case $deplibs_check_method in 9175file_magic*) 9176 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9178$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9179if ${lt_cv_path_MAGIC_CMD+:} false; then : 9180 $as_echo_n "(cached) " >&6 9181else 9182 case $MAGIC_CMD in 9183[\\/*] | ?:[\\/]*) 9184 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9185 ;; 9186*) 9187 lt_save_MAGIC_CMD=$MAGIC_CMD 9188 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9190 for ac_dir in $ac_dummy; do 9191 IFS=$lt_save_ifs 9192 test -z "$ac_dir" && ac_dir=. 9193 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9194 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9195 if test -n "$file_magic_test_file"; then 9196 case $deplibs_check_method in 9197 "file_magic "*) 9198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9199 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9201 $EGREP "$file_magic_regex" > /dev/null; then 9202 : 9203 else 9204 cat <<_LT_EOF 1>&2 9205 9206*** Warning: the command libtool uses to detect shared libraries, 9207*** $file_magic_cmd, produces output that libtool cannot recognize. 9208*** The result is that libtool may fail to recognize shared libraries 9209*** as such. This will affect the creation of libtool libraries that 9210*** depend on shared libraries, but programs linked with such libtool 9211*** libraries will work regardless of this problem. Nevertheless, you 9212*** may want to report the problem to your system manager and/or to 9213*** bug-libtool@gnu.org 9214 9215_LT_EOF 9216 fi ;; 9217 esac 9218 fi 9219 break 9220 fi 9221 done 9222 IFS=$lt_save_ifs 9223 MAGIC_CMD=$lt_save_MAGIC_CMD 9224 ;; 9225esac 9226fi 9227 9228MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9229if test -n "$MAGIC_CMD"; then 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9231$as_echo "$MAGIC_CMD" >&6; } 9232else 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9234$as_echo "no" >&6; } 9235fi 9236 9237 9238 9239 9240 9241if test -z "$lt_cv_path_MAGIC_CMD"; then 9242 if test -n "$ac_tool_prefix"; then 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9244$as_echo_n "checking for file... " >&6; } 9245if ${lt_cv_path_MAGIC_CMD+:} false; then : 9246 $as_echo_n "(cached) " >&6 9247else 9248 case $MAGIC_CMD in 9249[\\/*] | ?:[\\/]*) 9250 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9251 ;; 9252*) 9253 lt_save_MAGIC_CMD=$MAGIC_CMD 9254 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9256 for ac_dir in $ac_dummy; do 9257 IFS=$lt_save_ifs 9258 test -z "$ac_dir" && ac_dir=. 9259 if test -f "$ac_dir/file"; then 9260 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9261 if test -n "$file_magic_test_file"; then 9262 case $deplibs_check_method in 9263 "file_magic "*) 9264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9265 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9267 $EGREP "$file_magic_regex" > /dev/null; then 9268 : 9269 else 9270 cat <<_LT_EOF 1>&2 9271 9272*** Warning: the command libtool uses to detect shared libraries, 9273*** $file_magic_cmd, produces output that libtool cannot recognize. 9274*** The result is that libtool may fail to recognize shared libraries 9275*** as such. This will affect the creation of libtool libraries that 9276*** depend on shared libraries, but programs linked with such libtool 9277*** libraries will work regardless of this problem. Nevertheless, you 9278*** may want to report the problem to your system manager and/or to 9279*** bug-libtool@gnu.org 9280 9281_LT_EOF 9282 fi ;; 9283 esac 9284 fi 9285 break 9286 fi 9287 done 9288 IFS=$lt_save_ifs 9289 MAGIC_CMD=$lt_save_MAGIC_CMD 9290 ;; 9291esac 9292fi 9293 9294MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9295if test -n "$MAGIC_CMD"; then 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9297$as_echo "$MAGIC_CMD" >&6; } 9298else 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9300$as_echo "no" >&6; } 9301fi 9302 9303 9304 else 9305 MAGIC_CMD=: 9306 fi 9307fi 9308 9309 fi 9310 ;; 9311esac 9312 9313# Use C for the default configuration in the libtool script 9314 9315lt_save_CC=$CC 9316ac_ext=c 9317ac_cpp='$CPP $CPPFLAGS' 9318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9320ac_compiler_gnu=$ac_cv_c_compiler_gnu 9321 9322 9323# Source file extension for C test sources. 9324ac_ext=c 9325 9326# Object file extension for compiled C test sources. 9327objext=o 9328objext=$objext 9329 9330# Code to be used in simple compile tests 9331lt_simple_compile_test_code="int some_variable = 0;" 9332 9333# Code to be used in simple link tests 9334lt_simple_link_test_code='int main(){return(0);}' 9335 9336 9337 9338 9339 9340 9341 9342# If no C compiler was specified, use CC. 9343LTCC=${LTCC-"$CC"} 9344 9345# If no C compiler flags were specified, use CFLAGS. 9346LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9347 9348# Allow CC to be a program name with arguments. 9349compiler=$CC 9350 9351# Save the default compiler, since it gets overwritten when the other 9352# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9353compiler_DEFAULT=$CC 9354 9355# save warnings/boilerplate of simple test code 9356ac_outfile=conftest.$ac_objext 9357echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9358eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9359_lt_compiler_boilerplate=`cat conftest.err` 9360$RM conftest* 9361 9362ac_outfile=conftest.$ac_objext 9363echo "$lt_simple_link_test_code" >conftest.$ac_ext 9364eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9365_lt_linker_boilerplate=`cat conftest.err` 9366$RM -r conftest* 9367 9368 9369## CAVEAT EMPTOR: 9370## There is no encapsulation within the following macros, do not change 9371## the running order or otherwise move them around unless you know exactly 9372## what you are doing... 9373if test -n "$compiler"; then 9374 9375lt_prog_compiler_no_builtin_flag= 9376 9377if test yes = "$GCC"; then 9378 case $cc_basename in 9379 nvcc*) 9380 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9381 *) 9382 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9383 esac 9384 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9386$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9387if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9388 $as_echo_n "(cached) " >&6 9389else 9390 lt_cv_prog_compiler_rtti_exceptions=no 9391 ac_outfile=conftest.$ac_objext 9392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9393 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9394 # Insert the option either (1) after the last *FLAGS variable, or 9395 # (2) before a word containing "conftest.", or (3) at the end. 9396 # Note that $ac_compile itself does not contain backslashes and begins 9397 # with a dollar sign (not a hyphen), so the echo should work correctly. 9398 # The option is referenced via a variable to avoid confusing sed. 9399 lt_compile=`echo "$ac_compile" | $SED \ 9400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9402 -e 's:$: $lt_compiler_flag:'` 9403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9404 (eval "$lt_compile" 2>conftest.err) 9405 ac_status=$? 9406 cat conftest.err >&5 9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9408 if (exit $ac_status) && test -s "$ac_outfile"; then 9409 # The compiler can only warn and ignore the option if not recognized 9410 # So say no if there are warnings other than the usual output. 9411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9414 lt_cv_prog_compiler_rtti_exceptions=yes 9415 fi 9416 fi 9417 $RM conftest* 9418 9419fi 9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9421$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9422 9423if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9424 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9425else 9426 : 9427fi 9428 9429fi 9430 9431 9432 9433 9434 9435 9436 lt_prog_compiler_wl= 9437lt_prog_compiler_pic= 9438lt_prog_compiler_static= 9439 9440 9441 if test yes = "$GCC"; then 9442 lt_prog_compiler_wl='-Wl,' 9443 lt_prog_compiler_static='-static' 9444 9445 case $host_os in 9446 aix*) 9447 # All AIX code is PIC. 9448 if test ia64 = "$host_cpu"; then 9449 # AIX 5 now supports IA64 processor 9450 lt_prog_compiler_static='-Bstatic' 9451 fi 9452 lt_prog_compiler_pic='-fPIC' 9453 ;; 9454 9455 amigaos*) 9456 case $host_cpu in 9457 powerpc) 9458 # see comment about AmigaOS4 .so support 9459 lt_prog_compiler_pic='-fPIC' 9460 ;; 9461 m68k) 9462 # FIXME: we need at least 68020 code to build shared libraries, but 9463 # adding the '-m68020' flag to GCC prevents building anything better, 9464 # like '-m68040'. 9465 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9466 ;; 9467 esac 9468 ;; 9469 9470 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9471 # PIC is the default for these OSes. 9472 ;; 9473 9474 mingw* | cygwin* | pw32* | os2* | cegcc*) 9475 # This hack is so that the source file can tell whether it is being 9476 # built for inclusion in a dll (and should export symbols for example). 9477 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9478 # (--disable-auto-import) libraries 9479 lt_prog_compiler_pic='-DDLL_EXPORT' 9480 case $host_os in 9481 os2*) 9482 lt_prog_compiler_static='$wl-static' 9483 ;; 9484 esac 9485 ;; 9486 9487 darwin* | rhapsody*) 9488 # PIC is the default on this platform 9489 # Common symbols not allowed in MH_DYLIB files 9490 lt_prog_compiler_pic='-fno-common' 9491 ;; 9492 9493 haiku*) 9494 # PIC is the default for Haiku. 9495 # The "-static" flag exists, but is broken. 9496 lt_prog_compiler_static= 9497 ;; 9498 9499 hpux*) 9500 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9501 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9502 # sets the default TLS model and affects inlining. 9503 case $host_cpu in 9504 hppa*64*) 9505 # +Z the default 9506 ;; 9507 *) 9508 lt_prog_compiler_pic='-fPIC' 9509 ;; 9510 esac 9511 ;; 9512 9513 interix[3-9]*) 9514 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9515 # Instead, we relocate shared libraries at runtime. 9516 ;; 9517 9518 msdosdjgpp*) 9519 # Just because we use GCC doesn't mean we suddenly get shared libraries 9520 # on systems that don't support them. 9521 lt_prog_compiler_can_build_shared=no 9522 enable_shared=no 9523 ;; 9524 9525 *nto* | *qnx*) 9526 # QNX uses GNU C++, but need to define -shared option too, otherwise 9527 # it will coredump. 9528 lt_prog_compiler_pic='-fPIC -shared' 9529 ;; 9530 9531 sysv4*MP*) 9532 if test -d /usr/nec; then 9533 lt_prog_compiler_pic=-Kconform_pic 9534 fi 9535 ;; 9536 9537 *) 9538 lt_prog_compiler_pic='-fPIC' 9539 ;; 9540 esac 9541 9542 case $cc_basename in 9543 nvcc*) # Cuda Compiler Driver 2.2 9544 lt_prog_compiler_wl='-Xlinker ' 9545 if test -n "$lt_prog_compiler_pic"; then 9546 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9547 fi 9548 ;; 9549 esac 9550 else 9551 # PORTME Check for flag to pass linker flags through the system compiler. 9552 case $host_os in 9553 aix*) 9554 lt_prog_compiler_wl='-Wl,' 9555 if test ia64 = "$host_cpu"; then 9556 # AIX 5 now supports IA64 processor 9557 lt_prog_compiler_static='-Bstatic' 9558 else 9559 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9560 fi 9561 ;; 9562 9563 darwin* | rhapsody*) 9564 # PIC is the default on this platform 9565 # Common symbols not allowed in MH_DYLIB files 9566 lt_prog_compiler_pic='-fno-common' 9567 case $cc_basename in 9568 nagfor*) 9569 # NAG Fortran compiler 9570 lt_prog_compiler_wl='-Wl,-Wl,,' 9571 lt_prog_compiler_pic='-PIC' 9572 lt_prog_compiler_static='-Bstatic' 9573 ;; 9574 esac 9575 ;; 9576 9577 mingw* | cygwin* | pw32* | os2* | cegcc*) 9578 # This hack is so that the source file can tell whether it is being 9579 # built for inclusion in a dll (and should export symbols for example). 9580 lt_prog_compiler_pic='-DDLL_EXPORT' 9581 case $host_os in 9582 os2*) 9583 lt_prog_compiler_static='$wl-static' 9584 ;; 9585 esac 9586 ;; 9587 9588 hpux9* | hpux10* | hpux11*) 9589 lt_prog_compiler_wl='-Wl,' 9590 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9591 # not for PA HP-UX. 9592 case $host_cpu in 9593 hppa*64*|ia64*) 9594 # +Z the default 9595 ;; 9596 *) 9597 lt_prog_compiler_pic='+Z' 9598 ;; 9599 esac 9600 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9601 lt_prog_compiler_static='$wl-a ${wl}archive' 9602 ;; 9603 9604 irix5* | irix6* | nonstopux*) 9605 lt_prog_compiler_wl='-Wl,' 9606 # PIC (with -KPIC) is the default. 9607 lt_prog_compiler_static='-non_shared' 9608 ;; 9609 9610 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9611 case $cc_basename in 9612 # old Intel for x86_64, which still supported -KPIC. 9613 ecc*) 9614 lt_prog_compiler_wl='-Wl,' 9615 lt_prog_compiler_pic='-KPIC' 9616 lt_prog_compiler_static='-static' 9617 ;; 9618 # icc used to be incompatible with GCC. 9619 # ICC 10 doesn't accept -KPIC any more. 9620 icc* | ifort*) 9621 lt_prog_compiler_wl='-Wl,' 9622 lt_prog_compiler_pic='-fPIC' 9623 lt_prog_compiler_static='-static' 9624 ;; 9625 # Lahey Fortran 8.1. 9626 lf95*) 9627 lt_prog_compiler_wl='-Wl,' 9628 lt_prog_compiler_pic='--shared' 9629 lt_prog_compiler_static='--static' 9630 ;; 9631 nagfor*) 9632 # NAG Fortran compiler 9633 lt_prog_compiler_wl='-Wl,-Wl,,' 9634 lt_prog_compiler_pic='-PIC' 9635 lt_prog_compiler_static='-Bstatic' 9636 ;; 9637 tcc*) 9638 # Fabrice Bellard et al's Tiny C Compiler 9639 lt_prog_compiler_wl='-Wl,' 9640 lt_prog_compiler_pic='-fPIC' 9641 lt_prog_compiler_static='-static' 9642 ;; 9643 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9644 # Portland Group compilers (*not* the Pentium gcc compiler, 9645 # which looks to be a dead project) 9646 lt_prog_compiler_wl='-Wl,' 9647 lt_prog_compiler_pic='-fpic' 9648 lt_prog_compiler_static='-Bstatic' 9649 ;; 9650 ccc*) 9651 lt_prog_compiler_wl='-Wl,' 9652 # All Alpha code is PIC. 9653 lt_prog_compiler_static='-non_shared' 9654 ;; 9655 xl* | bgxl* | bgf* | mpixl*) 9656 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9657 lt_prog_compiler_wl='-Wl,' 9658 lt_prog_compiler_pic='-qpic' 9659 lt_prog_compiler_static='-qstaticlink' 9660 ;; 9661 *) 9662 case `$CC -V 2>&1 | sed 5q` in 9663 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9664 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9665 lt_prog_compiler_pic='-KPIC' 9666 lt_prog_compiler_static='-Bstatic' 9667 lt_prog_compiler_wl='' 9668 ;; 9669 *Sun\ F* | *Sun*Fortran*) 9670 lt_prog_compiler_pic='-KPIC' 9671 lt_prog_compiler_static='-Bstatic' 9672 lt_prog_compiler_wl='-Qoption ld ' 9673 ;; 9674 *Sun\ C*) 9675 # Sun C 5.9 9676 lt_prog_compiler_pic='-KPIC' 9677 lt_prog_compiler_static='-Bstatic' 9678 lt_prog_compiler_wl='-Wl,' 9679 ;; 9680 *Intel*\ [CF]*Compiler*) 9681 lt_prog_compiler_wl='-Wl,' 9682 lt_prog_compiler_pic='-fPIC' 9683 lt_prog_compiler_static='-static' 9684 ;; 9685 *Portland\ Group*) 9686 lt_prog_compiler_wl='-Wl,' 9687 lt_prog_compiler_pic='-fpic' 9688 lt_prog_compiler_static='-Bstatic' 9689 ;; 9690 esac 9691 ;; 9692 esac 9693 ;; 9694 9695 newsos6) 9696 lt_prog_compiler_pic='-KPIC' 9697 lt_prog_compiler_static='-Bstatic' 9698 ;; 9699 9700 *nto* | *qnx*) 9701 # QNX uses GNU C++, but need to define -shared option too, otherwise 9702 # it will coredump. 9703 lt_prog_compiler_pic='-fPIC -shared' 9704 ;; 9705 9706 osf3* | osf4* | osf5*) 9707 lt_prog_compiler_wl='-Wl,' 9708 # All OSF/1 code is PIC. 9709 lt_prog_compiler_static='-non_shared' 9710 ;; 9711 9712 rdos*) 9713 lt_prog_compiler_static='-non_shared' 9714 ;; 9715 9716 solaris*) 9717 lt_prog_compiler_pic='-KPIC' 9718 lt_prog_compiler_static='-Bstatic' 9719 case $cc_basename in 9720 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9721 lt_prog_compiler_wl='-Qoption ld ';; 9722 *) 9723 lt_prog_compiler_wl='-Wl,';; 9724 esac 9725 ;; 9726 9727 sunos4*) 9728 lt_prog_compiler_wl='-Qoption ld ' 9729 lt_prog_compiler_pic='-PIC' 9730 lt_prog_compiler_static='-Bstatic' 9731 ;; 9732 9733 sysv4 | sysv4.2uw2* | sysv4.3*) 9734 lt_prog_compiler_wl='-Wl,' 9735 lt_prog_compiler_pic='-KPIC' 9736 lt_prog_compiler_static='-Bstatic' 9737 ;; 9738 9739 sysv4*MP*) 9740 if test -d /usr/nec; then 9741 lt_prog_compiler_pic='-Kconform_pic' 9742 lt_prog_compiler_static='-Bstatic' 9743 fi 9744 ;; 9745 9746 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9747 lt_prog_compiler_wl='-Wl,' 9748 lt_prog_compiler_pic='-KPIC' 9749 lt_prog_compiler_static='-Bstatic' 9750 ;; 9751 9752 unicos*) 9753 lt_prog_compiler_wl='-Wl,' 9754 lt_prog_compiler_can_build_shared=no 9755 ;; 9756 9757 uts4*) 9758 lt_prog_compiler_pic='-pic' 9759 lt_prog_compiler_static='-Bstatic' 9760 ;; 9761 9762 *) 9763 lt_prog_compiler_can_build_shared=no 9764 ;; 9765 esac 9766 fi 9767 9768case $host_os in 9769 # For platforms that do not support PIC, -DPIC is meaningless: 9770 *djgpp*) 9771 lt_prog_compiler_pic= 9772 ;; 9773 *) 9774 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9775 ;; 9776esac 9777 9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9779$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9780if ${lt_cv_prog_compiler_pic+:} false; then : 9781 $as_echo_n "(cached) " >&6 9782else 9783 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9784fi 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9786$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9787lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9788 9789# 9790# Check to make sure the PIC flag actually works. 9791# 9792if test -n "$lt_prog_compiler_pic"; then 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9794$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9795if ${lt_cv_prog_compiler_pic_works+:} false; then : 9796 $as_echo_n "(cached) " >&6 9797else 9798 lt_cv_prog_compiler_pic_works=no 9799 ac_outfile=conftest.$ac_objext 9800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9801 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9802 # Insert the option either (1) after the last *FLAGS variable, or 9803 # (2) before a word containing "conftest.", or (3) at the end. 9804 # Note that $ac_compile itself does not contain backslashes and begins 9805 # with a dollar sign (not a hyphen), so the echo should work correctly. 9806 # The option is referenced via a variable to avoid confusing sed. 9807 lt_compile=`echo "$ac_compile" | $SED \ 9808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9810 -e 's:$: $lt_compiler_flag:'` 9811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9812 (eval "$lt_compile" 2>conftest.err) 9813 ac_status=$? 9814 cat conftest.err >&5 9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9816 if (exit $ac_status) && test -s "$ac_outfile"; then 9817 # The compiler can only warn and ignore the option if not recognized 9818 # So say no if there are warnings other than the usual output. 9819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9822 lt_cv_prog_compiler_pic_works=yes 9823 fi 9824 fi 9825 $RM conftest* 9826 9827fi 9828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9829$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9830 9831if test yes = "$lt_cv_prog_compiler_pic_works"; then 9832 case $lt_prog_compiler_pic in 9833 "" | " "*) ;; 9834 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9835 esac 9836else 9837 lt_prog_compiler_pic= 9838 lt_prog_compiler_can_build_shared=no 9839fi 9840 9841fi 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853# 9854# Check to make sure the static flag actually works. 9855# 9856wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9858$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9859if ${lt_cv_prog_compiler_static_works+:} false; then : 9860 $as_echo_n "(cached) " >&6 9861else 9862 lt_cv_prog_compiler_static_works=no 9863 save_LDFLAGS=$LDFLAGS 9864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9865 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9867 # The linker can only warn and ignore the option if not recognized 9868 # So say no if there are warnings 9869 if test -s conftest.err; then 9870 # Append any errors to the config.log. 9871 cat conftest.err 1>&5 9872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9874 if diff conftest.exp conftest.er2 >/dev/null; then 9875 lt_cv_prog_compiler_static_works=yes 9876 fi 9877 else 9878 lt_cv_prog_compiler_static_works=yes 9879 fi 9880 fi 9881 $RM -r conftest* 9882 LDFLAGS=$save_LDFLAGS 9883 9884fi 9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9886$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9887 9888if test yes = "$lt_cv_prog_compiler_static_works"; then 9889 : 9890else 9891 lt_prog_compiler_static= 9892fi 9893 9894 9895 9896 9897 9898 9899 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9901$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9902if ${lt_cv_prog_compiler_c_o+:} false; then : 9903 $as_echo_n "(cached) " >&6 9904else 9905 lt_cv_prog_compiler_c_o=no 9906 $RM -r conftest 2>/dev/null 9907 mkdir conftest 9908 cd conftest 9909 mkdir out 9910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9911 9912 lt_compiler_flag="-o out/conftest2.$ac_objext" 9913 # Insert the option either (1) after the last *FLAGS variable, or 9914 # (2) before a word containing "conftest.", or (3) at the end. 9915 # Note that $ac_compile itself does not contain backslashes and begins 9916 # with a dollar sign (not a hyphen), so the echo should work correctly. 9917 lt_compile=`echo "$ac_compile" | $SED \ 9918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9920 -e 's:$: $lt_compiler_flag:'` 9921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9922 (eval "$lt_compile" 2>out/conftest.err) 9923 ac_status=$? 9924 cat out/conftest.err >&5 9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9926 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9927 then 9928 # The compiler can only warn and ignore the option if not recognized 9929 # So say no if there are warnings 9930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9933 lt_cv_prog_compiler_c_o=yes 9934 fi 9935 fi 9936 chmod u+w . 2>&5 9937 $RM conftest* 9938 # SGI C++ compiler will create directory out/ii_files/ for 9939 # template instantiation 9940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9941 $RM out/* && rmdir out 9942 cd .. 9943 $RM -r conftest 9944 $RM conftest* 9945 9946fi 9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9948$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9949 9950 9951 9952 9953 9954 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9956$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9957if ${lt_cv_prog_compiler_c_o+:} false; then : 9958 $as_echo_n "(cached) " >&6 9959else 9960 lt_cv_prog_compiler_c_o=no 9961 $RM -r conftest 2>/dev/null 9962 mkdir conftest 9963 cd conftest 9964 mkdir out 9965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9966 9967 lt_compiler_flag="-o out/conftest2.$ac_objext" 9968 # Insert the option either (1) after the last *FLAGS variable, or 9969 # (2) before a word containing "conftest.", or (3) at the end. 9970 # Note that $ac_compile itself does not contain backslashes and begins 9971 # with a dollar sign (not a hyphen), so the echo should work correctly. 9972 lt_compile=`echo "$ac_compile" | $SED \ 9973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9975 -e 's:$: $lt_compiler_flag:'` 9976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9977 (eval "$lt_compile" 2>out/conftest.err) 9978 ac_status=$? 9979 cat out/conftest.err >&5 9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9981 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9982 then 9983 # The compiler can only warn and ignore the option if not recognized 9984 # So say no if there are warnings 9985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9988 lt_cv_prog_compiler_c_o=yes 9989 fi 9990 fi 9991 chmod u+w . 2>&5 9992 $RM conftest* 9993 # SGI C++ compiler will create directory out/ii_files/ for 9994 # template instantiation 9995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9996 $RM out/* && rmdir out 9997 cd .. 9998 $RM -r conftest 9999 $RM conftest* 10000 10001fi 10002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10003$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10004 10005 10006 10007 10008hard_links=nottested 10009if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10010 # do not overwrite the value of need_locks provided by the user 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10012$as_echo_n "checking if we can lock with hard links... " >&6; } 10013 hard_links=yes 10014 $RM conftest* 10015 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10016 touch conftest.a 10017 ln conftest.a conftest.b 2>&5 || hard_links=no 10018 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10020$as_echo "$hard_links" >&6; } 10021 if test no = "$hard_links"; then 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10023$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10024 need_locks=warn 10025 fi 10026else 10027 need_locks=no 10028fi 10029 10030 10031 10032 10033 10034 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10036$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10037 10038 runpath_var= 10039 allow_undefined_flag= 10040 always_export_symbols=no 10041 archive_cmds= 10042 archive_expsym_cmds= 10043 compiler_needs_object=no 10044 enable_shared_with_static_runtimes=no 10045 export_dynamic_flag_spec= 10046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10047 hardcode_automatic=no 10048 hardcode_direct=no 10049 hardcode_direct_absolute=no 10050 hardcode_libdir_flag_spec= 10051 hardcode_libdir_separator= 10052 hardcode_minus_L=no 10053 hardcode_shlibpath_var=unsupported 10054 inherit_rpath=no 10055 link_all_deplibs=unknown 10056 module_cmds= 10057 module_expsym_cmds= 10058 old_archive_from_new_cmds= 10059 old_archive_from_expsyms_cmds= 10060 thread_safe_flag_spec= 10061 whole_archive_flag_spec= 10062 # include_expsyms should be a list of space-separated symbols to be *always* 10063 # included in the symbol list 10064 include_expsyms= 10065 # exclude_expsyms can be an extended regexp of symbols to exclude 10066 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10067 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10068 # as well as any symbol that contains 'd'. 10069 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10070 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10071 # platforms (ab)use it in PIC code, but their linkers get confused if 10072 # the symbol is explicitly referenced. Since portable code cannot 10073 # rely on this symbol name, it's probably fine to never include it in 10074 # preloaded symbol tables. 10075 # Exclude shared library initialization/finalization symbols. 10076 extract_expsyms_cmds= 10077 10078 case $host_os in 10079 cygwin* | mingw* | pw32* | cegcc*) 10080 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10081 # When not using gcc, we currently assume that we are using 10082 # Microsoft Visual C++. 10083 if test yes != "$GCC"; then 10084 with_gnu_ld=no 10085 fi 10086 ;; 10087 interix*) 10088 # we just hope/assume this is gcc and not c89 (= MSVC++) 10089 with_gnu_ld=yes 10090 ;; 10091 openbsd* | bitrig*) 10092 with_gnu_ld=no 10093 ;; 10094 esac 10095 10096 ld_shlibs=yes 10097 10098 # On some targets, GNU ld is compatible enough with the native linker 10099 # that we're better off using the native interface for both. 10100 lt_use_gnu_ld_interface=no 10101 if test yes = "$with_gnu_ld"; then 10102 case $host_os in 10103 aix*) 10104 # The AIX port of GNU ld has always aspired to compatibility 10105 # with the native linker. However, as the warning in the GNU ld 10106 # block says, versions before 2.19.5* couldn't really create working 10107 # shared libraries, regardless of the interface used. 10108 case `$LD -v 2>&1` in 10109 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10110 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10111 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10112 *) 10113 lt_use_gnu_ld_interface=yes 10114 ;; 10115 esac 10116 ;; 10117 *) 10118 lt_use_gnu_ld_interface=yes 10119 ;; 10120 esac 10121 fi 10122 10123 if test yes = "$lt_use_gnu_ld_interface"; then 10124 # If archive_cmds runs LD, not CC, wlarc should be empty 10125 wlarc='$wl' 10126 10127 # Set some defaults for GNU ld with shared library support. These 10128 # are reset later if shared libraries are not supported. Putting them 10129 # here allows them to be overridden if necessary. 10130 runpath_var=LD_RUN_PATH 10131 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10132 export_dynamic_flag_spec='$wl--export-dynamic' 10133 # ancient GNU ld didn't support --whole-archive et. al. 10134 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10135 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10136 else 10137 whole_archive_flag_spec= 10138 fi 10139 supports_anon_versioning=no 10140 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10141 *GNU\ gold*) supports_anon_versioning=yes ;; 10142 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10143 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10144 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10145 *\ 2.11.*) ;; # other 2.11 versions 10146 *) supports_anon_versioning=yes ;; 10147 esac 10148 10149 # See if GNU ld supports shared libraries. 10150 case $host_os in 10151 aix[3-9]*) 10152 # On AIX/PPC, the GNU linker is very broken 10153 if test ia64 != "$host_cpu"; then 10154 ld_shlibs=no 10155 cat <<_LT_EOF 1>&2 10156 10157*** Warning: the GNU linker, at least up to release 2.19, is reported 10158*** to be unable to reliably create shared libraries on AIX. 10159*** Therefore, libtool is disabling shared libraries support. If you 10160*** really care for shared libraries, you may want to install binutils 10161*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10162*** You will then need to restart the configuration process. 10163 10164_LT_EOF 10165 fi 10166 ;; 10167 10168 amigaos*) 10169 case $host_cpu in 10170 powerpc) 10171 # see comment about AmigaOS4 .so support 10172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10173 archive_expsym_cmds='' 10174 ;; 10175 m68k) 10176 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)' 10177 hardcode_libdir_flag_spec='-L$libdir' 10178 hardcode_minus_L=yes 10179 ;; 10180 esac 10181 ;; 10182 10183 beos*) 10184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10185 allow_undefined_flag=unsupported 10186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10187 # support --undefined. This deserves some investigation. FIXME 10188 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10189 else 10190 ld_shlibs=no 10191 fi 10192 ;; 10193 10194 cygwin* | mingw* | pw32* | cegcc*) 10195 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10196 # as there is no search path for DLLs. 10197 hardcode_libdir_flag_spec='-L$libdir' 10198 export_dynamic_flag_spec='$wl--export-all-symbols' 10199 allow_undefined_flag=unsupported 10200 always_export_symbols=no 10201 enable_shared_with_static_runtimes=yes 10202 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' 10203 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10204 10205 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10207 # If the export-symbols file already is a .def file, use it as 10208 # is; otherwise, prepend EXPORTS... 10209 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10210 cp $export_symbols $output_objdir/$soname.def; 10211 else 10212 echo EXPORTS > $output_objdir/$soname.def; 10213 cat $export_symbols >> $output_objdir/$soname.def; 10214 fi~ 10215 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10216 else 10217 ld_shlibs=no 10218 fi 10219 ;; 10220 10221 haiku*) 10222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10223 link_all_deplibs=yes 10224 ;; 10225 10226 os2*) 10227 hardcode_libdir_flag_spec='-L$libdir' 10228 hardcode_minus_L=yes 10229 allow_undefined_flag=unsupported 10230 shrext_cmds=.dll 10231 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10232 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10233 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10234 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10235 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10236 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10237 emximp -o $lib $output_objdir/$libname.def' 10238 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10239 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10240 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10241 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10242 prefix_cmds="$SED"~ 10243 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10244 prefix_cmds="$prefix_cmds -e 1d"; 10245 fi~ 10246 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10247 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10248 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10249 emximp -o $lib $output_objdir/$libname.def' 10250 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10251 enable_shared_with_static_runtimes=yes 10252 ;; 10253 10254 interix[3-9]*) 10255 hardcode_direct=no 10256 hardcode_shlibpath_var=no 10257 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10258 export_dynamic_flag_spec='$wl-E' 10259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10260 # Instead, shared libraries are loaded at an image base (0x10000000 by 10261 # default) and relocated if they conflict, which is a slow very memory 10262 # consuming and fragmenting process. To avoid this, we pick a random, 10263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10264 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10266 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' 10267 ;; 10268 10269 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10270 tmp_diet=no 10271 if test linux-dietlibc = "$host_os"; then 10272 case $cc_basename in 10273 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10274 esac 10275 fi 10276 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10277 && test no = "$tmp_diet" 10278 then 10279 tmp_addflag=' $pic_flag' 10280 tmp_sharedflag='-shared' 10281 case $cc_basename,$host_cpu in 10282 pgcc*) # Portland Group C compiler 10283 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' 10284 tmp_addflag=' $pic_flag' 10285 ;; 10286 pgf77* | pgf90* | pgf95* | pgfortran*) 10287 # Portland Group f77 and f90 compilers 10288 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' 10289 tmp_addflag=' $pic_flag -Mnomain' ;; 10290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10291 tmp_addflag=' -i_dynamic' ;; 10292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10293 tmp_addflag=' -i_dynamic -nofor_main' ;; 10294 ifc* | ifort*) # Intel Fortran compiler 10295 tmp_addflag=' -nofor_main' ;; 10296 lf95*) # Lahey Fortran 8.1 10297 whole_archive_flag_spec= 10298 tmp_sharedflag='--shared' ;; 10299 nagfor*) # NAGFOR 5.3 10300 tmp_sharedflag='-Wl,-shared' ;; 10301 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10302 tmp_sharedflag='-qmkshrobj' 10303 tmp_addflag= ;; 10304 nvcc*) # Cuda Compiler Driver 2.2 10305 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' 10306 compiler_needs_object=yes 10307 ;; 10308 esac 10309 case `$CC -V 2>&1 | sed 5q` in 10310 *Sun\ C*) # Sun C 5.9 10311 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' 10312 compiler_needs_object=yes 10313 tmp_sharedflag='-G' ;; 10314 *Sun\ F*) # Sun Fortran 8.3 10315 tmp_sharedflag='-G' ;; 10316 esac 10317 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10318 10319 if test yes = "$supports_anon_versioning"; then 10320 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10321 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10322 echo "local: *; };" >> $output_objdir/$libname.ver~ 10323 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10324 fi 10325 10326 case $cc_basename in 10327 tcc*) 10328 export_dynamic_flag_spec='-rdynamic' 10329 ;; 10330 xlf* | bgf* | bgxlf* | mpixlf*) 10331 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10332 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10333 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10334 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10335 if test yes = "$supports_anon_versioning"; then 10336 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10338 echo "local: *; };" >> $output_objdir/$libname.ver~ 10339 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10340 fi 10341 ;; 10342 esac 10343 else 10344 ld_shlibs=no 10345 fi 10346 ;; 10347 10348 netbsd*) 10349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10350 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10351 wlarc= 10352 else 10353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10354 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10355 fi 10356 ;; 10357 10358 solaris*) 10359 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10360 ld_shlibs=no 10361 cat <<_LT_EOF 1>&2 10362 10363*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10364*** create shared libraries on Solaris systems. Therefore, libtool 10365*** is disabling shared libraries support. We urge you to upgrade GNU 10366*** binutils to release 2.9.1 or newer. Another option is to modify 10367*** your PATH or compiler configuration so that the native linker is 10368*** used, and then restart. 10369 10370_LT_EOF 10371 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10372 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10373 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10374 else 10375 ld_shlibs=no 10376 fi 10377 ;; 10378 10379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10380 case `$LD -v 2>&1` in 10381 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10382 ld_shlibs=no 10383 cat <<_LT_EOF 1>&2 10384 10385*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10386*** reliably create shared libraries on SCO systems. Therefore, libtool 10387*** is disabling shared libraries support. We urge you to upgrade GNU 10388*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10389*** your PATH or compiler configuration so that the native linker is 10390*** used, and then restart. 10391 10392_LT_EOF 10393 ;; 10394 *) 10395 # For security reasons, it is highly recommended that you always 10396 # use absolute paths for naming shared libraries, and exclude the 10397 # DT_RUNPATH tag from executables and libraries. But doing so 10398 # requires that you compile everything twice, which is a pain. 10399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10400 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10403 else 10404 ld_shlibs=no 10405 fi 10406 ;; 10407 esac 10408 ;; 10409 10410 sunos4*) 10411 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10412 wlarc= 10413 hardcode_direct=yes 10414 hardcode_shlibpath_var=no 10415 ;; 10416 10417 *) 10418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10420 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10421 else 10422 ld_shlibs=no 10423 fi 10424 ;; 10425 esac 10426 10427 if test no = "$ld_shlibs"; then 10428 runpath_var= 10429 hardcode_libdir_flag_spec= 10430 export_dynamic_flag_spec= 10431 whole_archive_flag_spec= 10432 fi 10433 else 10434 # PORTME fill in a description of your system's linker (not GNU ld) 10435 case $host_os in 10436 aix3*) 10437 allow_undefined_flag=unsupported 10438 always_export_symbols=yes 10439 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' 10440 # Note: this linker hardcodes the directories in LIBPATH if there 10441 # are no directories specified by -L. 10442 hardcode_minus_L=yes 10443 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10444 # Neither direct hardcoding nor static linking is supported with a 10445 # broken collect2. 10446 hardcode_direct=unsupported 10447 fi 10448 ;; 10449 10450 aix[4-9]*) 10451 if test ia64 = "$host_cpu"; then 10452 # On IA64, the linker does run time linking by default, so we don't 10453 # have to do anything special. 10454 aix_use_runtimelinking=no 10455 exp_sym_flag='-Bexport' 10456 no_entry_flag= 10457 else 10458 # If we're using GNU nm, then we don't want the "-C" option. 10459 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10460 # Without the "-l" option, or with the "-B" option, AIX nm treats 10461 # weak defined symbols like other global defined symbols, whereas 10462 # GNU nm marks them as "W". 10463 # While the 'weak' keyword is ignored in the Export File, we need 10464 # it in the Import File for the 'aix-soname' feature, so we have 10465 # to replace the "-B" option with "-P" for AIX nm. 10466 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10467 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' 10468 else 10469 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' 10470 fi 10471 aix_use_runtimelinking=no 10472 10473 # Test if we are trying to use run time linking or normal 10474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10475 # have runtime linking enabled, and use it for executables. 10476 # For shared libraries, we enable/disable runtime linking 10477 # depending on the kind of the shared library created - 10478 # when "with_aix_soname,aix_use_runtimelinking" is: 10479 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10480 # "aix,yes" lib.so shared, rtl:yes, for executables 10481 # lib.a static archive 10482 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10483 # lib.a(lib.so.V) shared, rtl:no, for executables 10484 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10485 # lib.a(lib.so.V) shared, rtl:no 10486 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10487 # lib.a static archive 10488 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10489 for ld_flag in $LDFLAGS; do 10490 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10491 aix_use_runtimelinking=yes 10492 break 10493 fi 10494 done 10495 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10496 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10497 # so we don't have lib.a shared libs to link our executables. 10498 # We have to force runtime linking in this case. 10499 aix_use_runtimelinking=yes 10500 LDFLAGS="$LDFLAGS -Wl,-brtl" 10501 fi 10502 ;; 10503 esac 10504 10505 exp_sym_flag='-bexport' 10506 no_entry_flag='-bnoentry' 10507 fi 10508 10509 # When large executables or shared objects are built, AIX ld can 10510 # have problems creating the table of contents. If linking a library 10511 # or program results in "error TOC overflow" add -mminimal-toc to 10512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10514 10515 archive_cmds='' 10516 hardcode_direct=yes 10517 hardcode_direct_absolute=yes 10518 hardcode_libdir_separator=':' 10519 link_all_deplibs=yes 10520 file_list_spec='$wl-f,' 10521 case $with_aix_soname,$aix_use_runtimelinking in 10522 aix,*) ;; # traditional, no import file 10523 svr4,* | *,yes) # use import file 10524 # The Import File defines what to hardcode. 10525 hardcode_direct=no 10526 hardcode_direct_absolute=no 10527 ;; 10528 esac 10529 10530 if test yes = "$GCC"; then 10531 case $host_os in aix4.[012]|aix4.[012].*) 10532 # We only want to do this on AIX 4.2 and lower, the check 10533 # below for broken collect2 doesn't work under 4.3+ 10534 collect2name=`$CC -print-prog-name=collect2` 10535 if test -f "$collect2name" && 10536 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10537 then 10538 # We have reworked collect2 10539 : 10540 else 10541 # We have old collect2 10542 hardcode_direct=unsupported 10543 # It fails to find uninstalled libraries when the uninstalled 10544 # path is not listed in the libpath. Setting hardcode_minus_L 10545 # to unsupported forces relinking 10546 hardcode_minus_L=yes 10547 hardcode_libdir_flag_spec='-L$libdir' 10548 hardcode_libdir_separator= 10549 fi 10550 ;; 10551 esac 10552 shared_flag='-shared' 10553 if test yes = "$aix_use_runtimelinking"; then 10554 shared_flag="$shared_flag "'$wl-G' 10555 fi 10556 # Need to ensure runtime linking is disabled for the traditional 10557 # shared library, or the linker may eventually find shared libraries 10558 # /with/ Import File - we do not want to mix them. 10559 shared_flag_aix='-shared' 10560 shared_flag_svr4='-shared $wl-G' 10561 else 10562 # not using gcc 10563 if test ia64 = "$host_cpu"; then 10564 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10565 # chokes on -Wl,-G. The following line is correct: 10566 shared_flag='-G' 10567 else 10568 if test yes = "$aix_use_runtimelinking"; then 10569 shared_flag='$wl-G' 10570 else 10571 shared_flag='$wl-bM:SRE' 10572 fi 10573 shared_flag_aix='$wl-bM:SRE' 10574 shared_flag_svr4='$wl-G' 10575 fi 10576 fi 10577 10578 export_dynamic_flag_spec='$wl-bexpall' 10579 # It seems that -bexpall does not export symbols beginning with 10580 # underscore (_), so it is better to generate a list of symbols to export. 10581 always_export_symbols=yes 10582 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10583 # Warning - without using the other runtime loading flags (-brtl), 10584 # -berok will link without error, but may produce a broken library. 10585 allow_undefined_flag='-berok' 10586 # Determine the default libpath from the value encoded in an 10587 # empty executable. 10588 if test set = "${lt_cv_aix_libpath+set}"; then 10589 aix_libpath=$lt_cv_aix_libpath 10590else 10591 if ${lt_cv_aix_libpath_+:} false; then : 10592 $as_echo_n "(cached) " >&6 10593else 10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10595/* end confdefs.h. */ 10596 10597int 10598main () 10599{ 10600 10601 ; 10602 return 0; 10603} 10604_ACEOF 10605if ac_fn_c_try_link "$LINENO"; then : 10606 10607 lt_aix_libpath_sed=' 10608 /Import File Strings/,/^$/ { 10609 /^0/ { 10610 s/^0 *\([^ ]*\) *$/\1/ 10611 p 10612 } 10613 }' 10614 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10615 # Check for a 64-bit object if we didn't find anything. 10616 if test -z "$lt_cv_aix_libpath_"; then 10617 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10618 fi 10619fi 10620rm -f core conftest.err conftest.$ac_objext \ 10621 conftest$ac_exeext conftest.$ac_ext 10622 if test -z "$lt_cv_aix_libpath_"; then 10623 lt_cv_aix_libpath_=/usr/lib:/lib 10624 fi 10625 10626fi 10627 10628 aix_libpath=$lt_cv_aix_libpath_ 10629fi 10630 10631 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10632 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 10633 else 10634 if test ia64 = "$host_cpu"; then 10635 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10636 allow_undefined_flag="-z nodefs" 10637 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" 10638 else 10639 # Determine the default libpath from the value encoded in an 10640 # empty executable. 10641 if test set = "${lt_cv_aix_libpath+set}"; then 10642 aix_libpath=$lt_cv_aix_libpath 10643else 10644 if ${lt_cv_aix_libpath_+:} false; then : 10645 $as_echo_n "(cached) " >&6 10646else 10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10648/* end confdefs.h. */ 10649 10650int 10651main () 10652{ 10653 10654 ; 10655 return 0; 10656} 10657_ACEOF 10658if ac_fn_c_try_link "$LINENO"; then : 10659 10660 lt_aix_libpath_sed=' 10661 /Import File Strings/,/^$/ { 10662 /^0/ { 10663 s/^0 *\([^ ]*\) *$/\1/ 10664 p 10665 } 10666 }' 10667 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10668 # Check for a 64-bit object if we didn't find anything. 10669 if test -z "$lt_cv_aix_libpath_"; then 10670 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10671 fi 10672fi 10673rm -f core conftest.err conftest.$ac_objext \ 10674 conftest$ac_exeext conftest.$ac_ext 10675 if test -z "$lt_cv_aix_libpath_"; then 10676 lt_cv_aix_libpath_=/usr/lib:/lib 10677 fi 10678 10679fi 10680 10681 aix_libpath=$lt_cv_aix_libpath_ 10682fi 10683 10684 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10685 # Warning - without using the other run time loading flags, 10686 # -berok will link without error, but may produce a broken library. 10687 no_undefined_flag=' $wl-bernotok' 10688 allow_undefined_flag=' $wl-berok' 10689 if test yes = "$with_gnu_ld"; then 10690 # We only use this code for GNU lds that support --whole-archive. 10691 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10692 else 10693 # Exported symbols can be pulled into shared objects from archives 10694 whole_archive_flag_spec='$convenience' 10695 fi 10696 archive_cmds_need_lc=yes 10697 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10698 # -brtl affects multiple linker settings, -berok does not and is overridden later 10699 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10700 if test svr4 != "$with_aix_soname"; then 10701 # This is similar to how AIX traditionally builds its shared libraries. 10702 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' 10703 fi 10704 if test aix != "$with_aix_soname"; then 10705 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' 10706 else 10707 # used by -dlpreopen to get the symbols 10708 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10709 fi 10710 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10711 fi 10712 fi 10713 ;; 10714 10715 amigaos*) 10716 case $host_cpu in 10717 powerpc) 10718 # see comment about AmigaOS4 .so support 10719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10720 archive_expsym_cmds='' 10721 ;; 10722 m68k) 10723 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)' 10724 hardcode_libdir_flag_spec='-L$libdir' 10725 hardcode_minus_L=yes 10726 ;; 10727 esac 10728 ;; 10729 10730 bsdi[45]*) 10731 export_dynamic_flag_spec=-rdynamic 10732 ;; 10733 10734 cygwin* | mingw* | pw32* | cegcc*) 10735 # When not using gcc, we currently assume that we are using 10736 # Microsoft Visual C++. 10737 # hardcode_libdir_flag_spec is actually meaningless, as there is 10738 # no search path for DLLs. 10739 case $cc_basename in 10740 cl*) 10741 # Native MSVC 10742 hardcode_libdir_flag_spec=' ' 10743 allow_undefined_flag=unsupported 10744 always_export_symbols=yes 10745 file_list_spec='@' 10746 # Tell ltmain to make .lib files, not .a files. 10747 libext=lib 10748 # Tell ltmain to make .dll files, not .so files. 10749 shrext_cmds=.dll 10750 # FIXME: Setting linknames here is a bad hack. 10751 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10752 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10753 cp "$export_symbols" "$output_objdir/$soname.def"; 10754 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10755 else 10756 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10757 fi~ 10758 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10759 linknames=' 10760 # The linker will not automatically build a static lib if we build a DLL. 10761 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10762 enable_shared_with_static_runtimes=yes 10763 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10765 # Don't use ranlib 10766 old_postinstall_cmds='chmod 644 $oldlib' 10767 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10768 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10769 case $lt_outputfile in 10770 *.exe|*.EXE) ;; 10771 *) 10772 lt_outputfile=$lt_outputfile.exe 10773 lt_tool_outputfile=$lt_tool_outputfile.exe 10774 ;; 10775 esac~ 10776 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10777 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10778 $RM "$lt_outputfile.manifest"; 10779 fi' 10780 ;; 10781 *) 10782 # Assume MSVC wrapper 10783 hardcode_libdir_flag_spec=' ' 10784 allow_undefined_flag=unsupported 10785 # Tell ltmain to make .lib files, not .a files. 10786 libext=lib 10787 # Tell ltmain to make .dll files, not .so files. 10788 shrext_cmds=.dll 10789 # FIXME: Setting linknames here is a bad hack. 10790 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10791 # The linker will automatically build a .lib file if we build a DLL. 10792 old_archive_from_new_cmds='true' 10793 # FIXME: Should let the user specify the lib program. 10794 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10795 enable_shared_with_static_runtimes=yes 10796 ;; 10797 esac 10798 ;; 10799 10800 darwin* | rhapsody*) 10801 10802 10803 archive_cmds_need_lc=no 10804 hardcode_direct=no 10805 hardcode_automatic=yes 10806 hardcode_shlibpath_var=unsupported 10807 if test yes = "$lt_cv_ld_force_load"; then 10808 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\"`' 10809 10810 else 10811 whole_archive_flag_spec='' 10812 fi 10813 link_all_deplibs=yes 10814 allow_undefined_flag=$_lt_dar_allow_undefined 10815 case $cc_basename in 10816 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10817 *) _lt_dar_can_shared=$GCC ;; 10818 esac 10819 if test yes = "$_lt_dar_can_shared"; then 10820 output_verbose_link_cmd=func_echo_all 10821 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10822 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10823 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" 10824 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" 10825 10826 else 10827 ld_shlibs=no 10828 fi 10829 10830 ;; 10831 10832 dgux*) 10833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10834 hardcode_libdir_flag_spec='-L$libdir' 10835 hardcode_shlibpath_var=no 10836 ;; 10837 10838 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10839 # support. Future versions do this automatically, but an explicit c++rt0.o 10840 # does not break anything, and helps significantly (at the cost of a little 10841 # extra space). 10842 freebsd2.2*) 10843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10844 hardcode_libdir_flag_spec='-R$libdir' 10845 hardcode_direct=yes 10846 hardcode_shlibpath_var=no 10847 ;; 10848 10849 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10850 freebsd2.*) 10851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10852 hardcode_direct=yes 10853 hardcode_minus_L=yes 10854 hardcode_shlibpath_var=no 10855 ;; 10856 10857 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10858 freebsd* | dragonfly*) 10859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10860 hardcode_libdir_flag_spec='-R$libdir' 10861 hardcode_direct=yes 10862 hardcode_shlibpath_var=no 10863 ;; 10864 10865 hpux9*) 10866 if test yes = "$GCC"; then 10867 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' 10868 else 10869 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' 10870 fi 10871 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10872 hardcode_libdir_separator=: 10873 hardcode_direct=yes 10874 10875 # hardcode_minus_L: Not really in the search PATH, 10876 # but as the default location of the library. 10877 hardcode_minus_L=yes 10878 export_dynamic_flag_spec='$wl-E' 10879 ;; 10880 10881 hpux10*) 10882 if test yes,no = "$GCC,$with_gnu_ld"; then 10883 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10884 else 10885 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10886 fi 10887 if test no = "$with_gnu_ld"; then 10888 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10889 hardcode_libdir_separator=: 10890 hardcode_direct=yes 10891 hardcode_direct_absolute=yes 10892 export_dynamic_flag_spec='$wl-E' 10893 # hardcode_minus_L: Not really in the search PATH, 10894 # but as the default location of the library. 10895 hardcode_minus_L=yes 10896 fi 10897 ;; 10898 10899 hpux11*) 10900 if test yes,no = "$GCC,$with_gnu_ld"; then 10901 case $host_cpu in 10902 hppa*64*) 10903 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10904 ;; 10905 ia64*) 10906 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10907 ;; 10908 *) 10909 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10910 ;; 10911 esac 10912 else 10913 case $host_cpu in 10914 hppa*64*) 10915 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10916 ;; 10917 ia64*) 10918 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10919 ;; 10920 *) 10921 10922 # Older versions of the 11.00 compiler do not understand -b yet 10923 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10925$as_echo_n "checking if $CC understands -b... " >&6; } 10926if ${lt_cv_prog_compiler__b+:} false; then : 10927 $as_echo_n "(cached) " >&6 10928else 10929 lt_cv_prog_compiler__b=no 10930 save_LDFLAGS=$LDFLAGS 10931 LDFLAGS="$LDFLAGS -b" 10932 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10933 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10934 # The linker can only warn and ignore the option if not recognized 10935 # So say no if there are warnings 10936 if test -s conftest.err; then 10937 # Append any errors to the config.log. 10938 cat conftest.err 1>&5 10939 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10941 if diff conftest.exp conftest.er2 >/dev/null; then 10942 lt_cv_prog_compiler__b=yes 10943 fi 10944 else 10945 lt_cv_prog_compiler__b=yes 10946 fi 10947 fi 10948 $RM -r conftest* 10949 LDFLAGS=$save_LDFLAGS 10950 10951fi 10952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10953$as_echo "$lt_cv_prog_compiler__b" >&6; } 10954 10955if test yes = "$lt_cv_prog_compiler__b"; then 10956 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10957else 10958 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10959fi 10960 10961 ;; 10962 esac 10963 fi 10964 if test no = "$with_gnu_ld"; then 10965 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10966 hardcode_libdir_separator=: 10967 10968 case $host_cpu in 10969 hppa*64*|ia64*) 10970 hardcode_direct=no 10971 hardcode_shlibpath_var=no 10972 ;; 10973 *) 10974 hardcode_direct=yes 10975 hardcode_direct_absolute=yes 10976 export_dynamic_flag_spec='$wl-E' 10977 10978 # hardcode_minus_L: Not really in the search PATH, 10979 # but as the default location of the library. 10980 hardcode_minus_L=yes 10981 ;; 10982 esac 10983 fi 10984 ;; 10985 10986 irix5* | irix6* | nonstopux*) 10987 if test yes = "$GCC"; then 10988 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' 10989 # Try to use the -exported_symbol ld option, if it does not 10990 # work, assume that -exports_file does not work either and 10991 # implicitly export all symbols. 10992 # This should be the same for all languages, so no per-tag cache variable. 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10994$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10995if ${lt_cv_irix_exported_symbol+:} false; then : 10996 $as_echo_n "(cached) " >&6 10997else 10998 save_LDFLAGS=$LDFLAGS 10999 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002int foo (void) { return 0; } 11003_ACEOF 11004if ac_fn_c_try_link "$LINENO"; then : 11005 lt_cv_irix_exported_symbol=yes 11006else 11007 lt_cv_irix_exported_symbol=no 11008fi 11009rm -f core conftest.err conftest.$ac_objext \ 11010 conftest$ac_exeext conftest.$ac_ext 11011 LDFLAGS=$save_LDFLAGS 11012fi 11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11014$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11015 if test yes = "$lt_cv_irix_exported_symbol"; then 11016 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' 11017 fi 11018 else 11019 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' 11020 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' 11021 fi 11022 archive_cmds_need_lc='no' 11023 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11024 hardcode_libdir_separator=: 11025 inherit_rpath=yes 11026 link_all_deplibs=yes 11027 ;; 11028 11029 linux*) 11030 case $cc_basename in 11031 tcc*) 11032 # Fabrice Bellard et al's Tiny C Compiler 11033 ld_shlibs=yes 11034 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11035 ;; 11036 esac 11037 ;; 11038 11039 netbsd*) 11040 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11042 else 11043 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11044 fi 11045 hardcode_libdir_flag_spec='-R$libdir' 11046 hardcode_direct=yes 11047 hardcode_shlibpath_var=no 11048 ;; 11049 11050 newsos6) 11051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11052 hardcode_direct=yes 11053 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11054 hardcode_libdir_separator=: 11055 hardcode_shlibpath_var=no 11056 ;; 11057 11058 *nto* | *qnx*) 11059 ;; 11060 11061 openbsd* | bitrig*) 11062 if test -f /usr/libexec/ld.so; then 11063 hardcode_direct=yes 11064 hardcode_shlibpath_var=no 11065 hardcode_direct_absolute=yes 11066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11068 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11069 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11070 export_dynamic_flag_spec='$wl-E' 11071 else 11072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11073 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11074 fi 11075 else 11076 ld_shlibs=no 11077 fi 11078 ;; 11079 11080 os2*) 11081 hardcode_libdir_flag_spec='-L$libdir' 11082 hardcode_minus_L=yes 11083 allow_undefined_flag=unsupported 11084 shrext_cmds=.dll 11085 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11086 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11087 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11088 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11089 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11090 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11091 emximp -o $lib $output_objdir/$libname.def' 11092 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11093 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11094 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11095 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11096 prefix_cmds="$SED"~ 11097 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11098 prefix_cmds="$prefix_cmds -e 1d"; 11099 fi~ 11100 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11101 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11102 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11103 emximp -o $lib $output_objdir/$libname.def' 11104 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11105 enable_shared_with_static_runtimes=yes 11106 ;; 11107 11108 osf3*) 11109 if test yes = "$GCC"; then 11110 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11111 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' 11112 else 11113 allow_undefined_flag=' -expect_unresolved \*' 11114 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' 11115 fi 11116 archive_cmds_need_lc='no' 11117 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11118 hardcode_libdir_separator=: 11119 ;; 11120 11121 osf4* | osf5*) # as osf3* with the addition of -msym flag 11122 if test yes = "$GCC"; then 11123 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11124 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' 11125 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11126 else 11127 allow_undefined_flag=' -expect_unresolved \*' 11128 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' 11129 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~ 11130 $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' 11131 11132 # Both c and cxx compiler support -rpath directly 11133 hardcode_libdir_flag_spec='-rpath $libdir' 11134 fi 11135 archive_cmds_need_lc='no' 11136 hardcode_libdir_separator=: 11137 ;; 11138 11139 solaris*) 11140 no_undefined_flag=' -z defs' 11141 if test yes = "$GCC"; then 11142 wlarc='$wl' 11143 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11144 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11145 $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' 11146 else 11147 case `$CC -V 2>&1` in 11148 *"Compilers 5.0"*) 11149 wlarc='' 11150 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11151 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11152 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11153 ;; 11154 *) 11155 wlarc='$wl' 11156 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11158 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11159 ;; 11160 esac 11161 fi 11162 hardcode_libdir_flag_spec='-R$libdir' 11163 hardcode_shlibpath_var=no 11164 case $host_os in 11165 solaris2.[0-5] | solaris2.[0-5].*) ;; 11166 *) 11167 # The compiler driver will combine and reorder linker options, 11168 # but understands '-z linker_flag'. GCC discards it without '$wl', 11169 # but is careful enough not to reorder. 11170 # Supported since Solaris 2.6 (maybe 2.5.1?) 11171 if test yes = "$GCC"; then 11172 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11173 else 11174 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11175 fi 11176 ;; 11177 esac 11178 link_all_deplibs=yes 11179 ;; 11180 11181 sunos4*) 11182 if test sequent = "$host_vendor"; then 11183 # Use $CC to link under sequent, because it throws in some extra .o 11184 # files that make .init and .fini sections work. 11185 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11186 else 11187 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11188 fi 11189 hardcode_libdir_flag_spec='-L$libdir' 11190 hardcode_direct=yes 11191 hardcode_minus_L=yes 11192 hardcode_shlibpath_var=no 11193 ;; 11194 11195 sysv4) 11196 case $host_vendor in 11197 sni) 11198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11199 hardcode_direct=yes # is this really true??? 11200 ;; 11201 siemens) 11202 ## LD is ld it makes a PLAMLIB 11203 ## CC just makes a GrossModule. 11204 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11205 reload_cmds='$CC -r -o $output$reload_objs' 11206 hardcode_direct=no 11207 ;; 11208 motorola) 11209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11210 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11211 ;; 11212 esac 11213 runpath_var='LD_RUN_PATH' 11214 hardcode_shlibpath_var=no 11215 ;; 11216 11217 sysv4.3*) 11218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11219 hardcode_shlibpath_var=no 11220 export_dynamic_flag_spec='-Bexport' 11221 ;; 11222 11223 sysv4*MP*) 11224 if test -d /usr/nec; then 11225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11226 hardcode_shlibpath_var=no 11227 runpath_var=LD_RUN_PATH 11228 hardcode_runpath_var=yes 11229 ld_shlibs=yes 11230 fi 11231 ;; 11232 11233 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11234 no_undefined_flag='$wl-z,text' 11235 archive_cmds_need_lc=no 11236 hardcode_shlibpath_var=no 11237 runpath_var='LD_RUN_PATH' 11238 11239 if test yes = "$GCC"; then 11240 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11241 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11242 else 11243 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11244 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11245 fi 11246 ;; 11247 11248 sysv5* | sco3.2v5* | sco5v6*) 11249 # Note: We CANNOT use -z defs as we might desire, because we do not 11250 # link with -lc, and that would cause any symbols used from libc to 11251 # always be unresolved, which means just about no library would 11252 # ever link correctly. If we're not using GNU ld we use -z text 11253 # though, which does catch some bad symbols but isn't as heavy-handed 11254 # as -z defs. 11255 no_undefined_flag='$wl-z,text' 11256 allow_undefined_flag='$wl-z,nodefs' 11257 archive_cmds_need_lc=no 11258 hardcode_shlibpath_var=no 11259 hardcode_libdir_flag_spec='$wl-R,$libdir' 11260 hardcode_libdir_separator=':' 11261 link_all_deplibs=yes 11262 export_dynamic_flag_spec='$wl-Bexport' 11263 runpath_var='LD_RUN_PATH' 11264 11265 if test yes = "$GCC"; then 11266 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11267 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11268 else 11269 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11270 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11271 fi 11272 ;; 11273 11274 uts4*) 11275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11276 hardcode_libdir_flag_spec='-L$libdir' 11277 hardcode_shlibpath_var=no 11278 ;; 11279 11280 *) 11281 ld_shlibs=no 11282 ;; 11283 esac 11284 11285 if test sni = "$host_vendor"; then 11286 case $host in 11287 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11288 export_dynamic_flag_spec='$wl-Blargedynsym' 11289 ;; 11290 esac 11291 fi 11292 fi 11293 11294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11295$as_echo "$ld_shlibs" >&6; } 11296test no = "$ld_shlibs" && can_build_shared=no 11297 11298with_gnu_ld=$with_gnu_ld 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314# 11315# Do we need to explicitly link libc? 11316# 11317case "x$archive_cmds_need_lc" in 11318x|xyes) 11319 # Assume -lc should be added 11320 archive_cmds_need_lc=yes 11321 11322 if test yes,yes = "$GCC,$enable_shared"; then 11323 case $archive_cmds in 11324 *'~'*) 11325 # FIXME: we may have to deal with multi-command sequences. 11326 ;; 11327 '$CC '*) 11328 # Test whether the compiler implicitly links with -lc since on some 11329 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11330 # to ld, don't add -lc before -lgcc. 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11332$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11333if ${lt_cv_archive_cmds_need_lc+:} false; then : 11334 $as_echo_n "(cached) " >&6 11335else 11336 $RM conftest* 11337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11338 11339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11340 (eval $ac_compile) 2>&5 11341 ac_status=$? 11342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11343 test $ac_status = 0; } 2>conftest.err; then 11344 soname=conftest 11345 lib=conftest 11346 libobjs=conftest.$ac_objext 11347 deplibs= 11348 wl=$lt_prog_compiler_wl 11349 pic_flag=$lt_prog_compiler_pic 11350 compiler_flags=-v 11351 linker_flags=-v 11352 verstring= 11353 output_objdir=. 11354 libname=conftest 11355 lt_save_allow_undefined_flag=$allow_undefined_flag 11356 allow_undefined_flag= 11357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11358 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11359 ac_status=$? 11360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11361 test $ac_status = 0; } 11362 then 11363 lt_cv_archive_cmds_need_lc=no 11364 else 11365 lt_cv_archive_cmds_need_lc=yes 11366 fi 11367 allow_undefined_flag=$lt_save_allow_undefined_flag 11368 else 11369 cat conftest.err 1>&5 11370 fi 11371 $RM conftest* 11372 11373fi 11374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11375$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11376 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11377 ;; 11378 esac 11379 fi 11380 ;; 11381esac 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 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11535$as_echo_n "checking dynamic linker characteristics... " >&6; } 11536 11537if test yes = "$GCC"; then 11538 case $host_os in 11539 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11540 *) lt_awk_arg='/^libraries:/' ;; 11541 esac 11542 case $host_os in 11543 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11544 *) lt_sed_strip_eq='s|=/|/|g' ;; 11545 esac 11546 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11547 case $lt_search_path_spec in 11548 *\;*) 11549 # if the path contains ";" then we assume it to be the separator 11550 # otherwise default to the standard path separator (i.e. ":") - it is 11551 # assumed that no part of a normal pathname contains ";" but that should 11552 # okay in the real world where ";" in dirpaths is itself problematic. 11553 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11554 ;; 11555 *) 11556 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11557 ;; 11558 esac 11559 # Ok, now we have the path, separated by spaces, we can step through it 11560 # and add multilib dir if necessary... 11561 lt_tmp_lt_search_path_spec= 11562 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11563 # ...but if some path component already ends with the multilib dir we assume 11564 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11565 case "$lt_multi_os_dir; $lt_search_path_spec " in 11566 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11567 lt_multi_os_dir= 11568 ;; 11569 esac 11570 for lt_sys_path in $lt_search_path_spec; do 11571 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11573 elif test -n "$lt_multi_os_dir"; then 11574 test -d "$lt_sys_path" && \ 11575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11576 fi 11577 done 11578 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11579BEGIN {RS = " "; FS = "/|\n";} { 11580 lt_foo = ""; 11581 lt_count = 0; 11582 for (lt_i = NF; lt_i > 0; lt_i--) { 11583 if ($lt_i != "" && $lt_i != ".") { 11584 if ($lt_i == "..") { 11585 lt_count++; 11586 } else { 11587 if (lt_count == 0) { 11588 lt_foo = "/" $lt_i lt_foo; 11589 } else { 11590 lt_count--; 11591 } 11592 } 11593 } 11594 } 11595 if (lt_foo != "") { lt_freq[lt_foo]++; } 11596 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11597}'` 11598 # AWK program above erroneously prepends '/' to C:/dos/paths 11599 # for these hosts. 11600 case $host_os in 11601 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11602 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11603 esac 11604 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11605else 11606 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11607fi 11608library_names_spec= 11609libname_spec='lib$name' 11610soname_spec= 11611shrext_cmds=.so 11612postinstall_cmds= 11613postuninstall_cmds= 11614finish_cmds= 11615finish_eval= 11616shlibpath_var= 11617shlibpath_overrides_runpath=unknown 11618version_type=none 11619dynamic_linker="$host_os ld.so" 11620sys_lib_dlsearch_path_spec="/lib /usr/lib" 11621need_lib_prefix=unknown 11622hardcode_into_libs=no 11623 11624# when you set need_version to no, make sure it does not cause -set_version 11625# flags to be left without arguments 11626need_version=unknown 11627 11628 11629 11630case $host_os in 11631aix3*) 11632 version_type=linux # correct to gnu/linux during the next big refactor 11633 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11634 shlibpath_var=LIBPATH 11635 11636 # AIX 3 has no versioning support, so we append a major version to the name. 11637 soname_spec='$libname$release$shared_ext$major' 11638 ;; 11639 11640aix[4-9]*) 11641 version_type=linux # correct to gnu/linux during the next big refactor 11642 need_lib_prefix=no 11643 need_version=no 11644 hardcode_into_libs=yes 11645 if test ia64 = "$host_cpu"; then 11646 # AIX 5 supports IA64 11647 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11648 shlibpath_var=LD_LIBRARY_PATH 11649 else 11650 # With GCC up to 2.95.x, collect2 would create an import file 11651 # for dependence libraries. The import file would start with 11652 # the line '#! .'. This would cause the generated library to 11653 # depend on '.', always an invalid library. This was fixed in 11654 # development snapshots of GCC prior to 3.0. 11655 case $host_os in 11656 aix4 | aix4.[01] | aix4.[01].*) 11657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11658 echo ' yes ' 11659 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11660 : 11661 else 11662 can_build_shared=no 11663 fi 11664 ;; 11665 esac 11666 # Using Import Files as archive members, it is possible to support 11667 # filename-based versioning of shared library archives on AIX. While 11668 # this would work for both with and without runtime linking, it will 11669 # prevent static linking of such archives. So we do filename-based 11670 # shared library versioning with .so extension only, which is used 11671 # when both runtime linking and shared linking is enabled. 11672 # Unfortunately, runtime linking may impact performance, so we do 11673 # not want this to be the default eventually. Also, we use the 11674 # versioned .so libs for executables only if there is the -brtl 11675 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11676 # To allow for filename-based versioning support, we need to create 11677 # libNAME.so.V as an archive file, containing: 11678 # *) an Import File, referring to the versioned filename of the 11679 # archive as well as the shared archive member, telling the 11680 # bitwidth (32 or 64) of that shared object, and providing the 11681 # list of exported symbols of that shared object, eventually 11682 # decorated with the 'weak' keyword 11683 # *) the shared object with the F_LOADONLY flag set, to really avoid 11684 # it being seen by the linker. 11685 # At run time we better use the real file rather than another symlink, 11686 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11687 11688 case $with_aix_soname,$aix_use_runtimelinking in 11689 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11690 # soname into executable. Probably we can add versioning support to 11691 # collect2, so additional links can be useful in future. 11692 aix,yes) # traditional libtool 11693 dynamic_linker='AIX unversionable lib.so' 11694 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11695 # instead of lib<name>.a to let people know that these are not 11696 # typical AIX shared libraries. 11697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11698 ;; 11699 aix,no) # traditional AIX only 11700 dynamic_linker='AIX lib.a(lib.so.V)' 11701 # We preserve .a as extension for shared libraries through AIX4.2 11702 # and later when we are not doing run time linking. 11703 library_names_spec='$libname$release.a $libname.a' 11704 soname_spec='$libname$release$shared_ext$major' 11705 ;; 11706 svr4,*) # full svr4 only 11707 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11708 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11709 # We do not specify a path in Import Files, so LIBPATH fires. 11710 shlibpath_overrides_runpath=yes 11711 ;; 11712 *,yes) # both, prefer svr4 11713 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11714 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11715 # unpreferred sharedlib libNAME.a needs extra handling 11716 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"' 11717 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"' 11718 # We do not specify a path in Import Files, so LIBPATH fires. 11719 shlibpath_overrides_runpath=yes 11720 ;; 11721 *,no) # both, prefer aix 11722 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11723 library_names_spec='$libname$release.a $libname.a' 11724 soname_spec='$libname$release$shared_ext$major' 11725 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11726 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)' 11727 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"' 11728 ;; 11729 esac 11730 shlibpath_var=LIBPATH 11731 fi 11732 ;; 11733 11734amigaos*) 11735 case $host_cpu in 11736 powerpc) 11737 # Since July 2007 AmigaOS4 officially supports .so libraries. 11738 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11740 ;; 11741 m68k) 11742 library_names_spec='$libname.ixlibrary $libname.a' 11743 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11744 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' 11745 ;; 11746 esac 11747 ;; 11748 11749beos*) 11750 library_names_spec='$libname$shared_ext' 11751 dynamic_linker="$host_os ld.so" 11752 shlibpath_var=LIBRARY_PATH 11753 ;; 11754 11755bsdi[45]*) 11756 version_type=linux # correct to gnu/linux during the next big refactor 11757 need_version=no 11758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11759 soname_spec='$libname$release$shared_ext$major' 11760 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11761 shlibpath_var=LD_LIBRARY_PATH 11762 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11763 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11764 # the default ld.so.conf also contains /usr/contrib/lib and 11765 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11766 # libtool to hard-code these into programs 11767 ;; 11768 11769cygwin* | mingw* | pw32* | cegcc*) 11770 version_type=windows 11771 shrext_cmds=.dll 11772 need_version=no 11773 need_lib_prefix=no 11774 11775 case $GCC,$cc_basename in 11776 yes,*) 11777 # gcc 11778 library_names_spec='$libname.dll.a' 11779 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11780 postinstall_cmds='base_file=`basename \$file`~ 11781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11782 dldir=$destdir/`dirname \$dlpath`~ 11783 test -d \$dldir || mkdir -p \$dldir~ 11784 $install_prog $dir/$dlname \$dldir/$dlname~ 11785 chmod a+x \$dldir/$dlname~ 11786 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11787 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11788 fi' 11789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11790 dlpath=$dir/\$dldll~ 11791 $RM \$dlpath' 11792 shlibpath_overrides_runpath=yes 11793 11794 case $host_os in 11795 cygwin*) 11796 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11797 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11798 11799 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11800 ;; 11801 mingw* | cegcc*) 11802 # MinGW DLLs use traditional 'lib' prefix 11803 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11804 ;; 11805 pw32*) 11806 # pw32 DLLs use 'pw' prefix rather than 'lib' 11807 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11808 ;; 11809 esac 11810 dynamic_linker='Win32 ld.exe' 11811 ;; 11812 11813 *,cl*) 11814 # Native MSVC 11815 libname_spec='$name' 11816 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11817 library_names_spec='$libname.dll.lib' 11818 11819 case $build_os in 11820 mingw*) 11821 sys_lib_search_path_spec= 11822 lt_save_ifs=$IFS 11823 IFS=';' 11824 for lt_path in $LIB 11825 do 11826 IFS=$lt_save_ifs 11827 # Let DOS variable expansion print the short 8.3 style file name. 11828 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11829 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11830 done 11831 IFS=$lt_save_ifs 11832 # Convert to MSYS style. 11833 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11834 ;; 11835 cygwin*) 11836 # Convert to unix form, then to dos form, then back to unix form 11837 # but this time dos style (no spaces!) so that the unix form looks 11838 # like /cygdrive/c/PROGRA~1:/cygdr... 11839 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11840 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11841 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11842 ;; 11843 *) 11844 sys_lib_search_path_spec=$LIB 11845 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11846 # It is most probably a Windows format PATH. 11847 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11848 else 11849 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11850 fi 11851 # FIXME: find the short name or the path components, as spaces are 11852 # common. (e.g. "Program Files" -> "PROGRA~1") 11853 ;; 11854 esac 11855 11856 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11857 postinstall_cmds='base_file=`basename \$file`~ 11858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11859 dldir=$destdir/`dirname \$dlpath`~ 11860 test -d \$dldir || mkdir -p \$dldir~ 11861 $install_prog $dir/$dlname \$dldir/$dlname' 11862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11863 dlpath=$dir/\$dldll~ 11864 $RM \$dlpath' 11865 shlibpath_overrides_runpath=yes 11866 dynamic_linker='Win32 link.exe' 11867 ;; 11868 11869 *) 11870 # Assume MSVC wrapper 11871 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11872 dynamic_linker='Win32 ld.exe' 11873 ;; 11874 esac 11875 # FIXME: first we should search . and the directory the executable is in 11876 shlibpath_var=PATH 11877 ;; 11878 11879darwin* | rhapsody*) 11880 dynamic_linker="$host_os dyld" 11881 version_type=darwin 11882 need_lib_prefix=no 11883 need_version=no 11884 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11885 soname_spec='$libname$release$major$shared_ext' 11886 shlibpath_overrides_runpath=yes 11887 shlibpath_var=DYLD_LIBRARY_PATH 11888 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11889 11890 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11891 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11892 ;; 11893 11894dgux*) 11895 version_type=linux # correct to gnu/linux during the next big refactor 11896 need_lib_prefix=no 11897 need_version=no 11898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11899 soname_spec='$libname$release$shared_ext$major' 11900 shlibpath_var=LD_LIBRARY_PATH 11901 ;; 11902 11903freebsd* | dragonfly*) 11904 # DragonFly does not have aout. When/if they implement a new 11905 # versioning mechanism, adjust this. 11906 if test -x /usr/bin/objformat; then 11907 objformat=`/usr/bin/objformat` 11908 else 11909 case $host_os in 11910 freebsd[23].*) objformat=aout ;; 11911 *) objformat=elf ;; 11912 esac 11913 fi 11914 version_type=freebsd-$objformat 11915 case $version_type in 11916 freebsd-elf*) 11917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11918 soname_spec='$libname$release$shared_ext$major' 11919 need_version=no 11920 need_lib_prefix=no 11921 ;; 11922 freebsd-*) 11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11924 need_version=yes 11925 ;; 11926 esac 11927 shlibpath_var=LD_LIBRARY_PATH 11928 case $host_os in 11929 freebsd2.*) 11930 shlibpath_overrides_runpath=yes 11931 ;; 11932 freebsd3.[01]* | freebsdelf3.[01]*) 11933 shlibpath_overrides_runpath=yes 11934 hardcode_into_libs=yes 11935 ;; 11936 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11937 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11938 shlibpath_overrides_runpath=no 11939 hardcode_into_libs=yes 11940 ;; 11941 *) # from 4.6 on, and DragonFly 11942 shlibpath_overrides_runpath=yes 11943 hardcode_into_libs=yes 11944 ;; 11945 esac 11946 ;; 11947 11948haiku*) 11949 version_type=linux # correct to gnu/linux during the next big refactor 11950 need_lib_prefix=no 11951 need_version=no 11952 dynamic_linker="$host_os runtime_loader" 11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11954 soname_spec='$libname$release$shared_ext$major' 11955 shlibpath_var=LIBRARY_PATH 11956 shlibpath_overrides_runpath=no 11957 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11958 hardcode_into_libs=yes 11959 ;; 11960 11961hpux9* | hpux10* | hpux11*) 11962 # Give a soname corresponding to the major version so that dld.sl refuses to 11963 # link against other versions. 11964 version_type=sunos 11965 need_lib_prefix=no 11966 need_version=no 11967 case $host_cpu in 11968 ia64*) 11969 shrext_cmds='.so' 11970 hardcode_into_libs=yes 11971 dynamic_linker="$host_os dld.so" 11972 shlibpath_var=LD_LIBRARY_PATH 11973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11975 soname_spec='$libname$release$shared_ext$major' 11976 if test 32 = "$HPUX_IA64_MODE"; then 11977 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11978 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11979 else 11980 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11981 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11982 fi 11983 ;; 11984 hppa*64*) 11985 shrext_cmds='.sl' 11986 hardcode_into_libs=yes 11987 dynamic_linker="$host_os dld.sl" 11988 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11991 soname_spec='$libname$release$shared_ext$major' 11992 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11994 ;; 11995 *) 11996 shrext_cmds='.sl' 11997 dynamic_linker="$host_os dld.sl" 11998 shlibpath_var=SHLIB_PATH 11999 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12001 soname_spec='$libname$release$shared_ext$major' 12002 ;; 12003 esac 12004 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12005 postinstall_cmds='chmod 555 $lib' 12006 # or fails outright, so override atomically: 12007 install_override_mode=555 12008 ;; 12009 12010interix[3-9]*) 12011 version_type=linux # correct to gnu/linux during the next big refactor 12012 need_lib_prefix=no 12013 need_version=no 12014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12015 soname_spec='$libname$release$shared_ext$major' 12016 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12017 shlibpath_var=LD_LIBRARY_PATH 12018 shlibpath_overrides_runpath=no 12019 hardcode_into_libs=yes 12020 ;; 12021 12022irix5* | irix6* | nonstopux*) 12023 case $host_os in 12024 nonstopux*) version_type=nonstopux ;; 12025 *) 12026 if test yes = "$lt_cv_prog_gnu_ld"; then 12027 version_type=linux # correct to gnu/linux during the next big refactor 12028 else 12029 version_type=irix 12030 fi ;; 12031 esac 12032 need_lib_prefix=no 12033 need_version=no 12034 soname_spec='$libname$release$shared_ext$major' 12035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12036 case $host_os in 12037 irix5* | nonstopux*) 12038 libsuff= shlibsuff= 12039 ;; 12040 *) 12041 case $LD in # libtool.m4 will add one of these switches to LD 12042 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12043 libsuff= shlibsuff= libmagic=32-bit;; 12044 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12045 libsuff=32 shlibsuff=N32 libmagic=N32;; 12046 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12047 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12048 *) libsuff= shlibsuff= libmagic=never-match;; 12049 esac 12050 ;; 12051 esac 12052 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12053 shlibpath_overrides_runpath=no 12054 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12055 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12056 hardcode_into_libs=yes 12057 ;; 12058 12059# No shared lib support for Linux oldld, aout, or coff. 12060linux*oldld* | linux*aout* | linux*coff*) 12061 dynamic_linker=no 12062 ;; 12063 12064linux*android*) 12065 version_type=none # Android doesn't support versioned libraries. 12066 need_lib_prefix=no 12067 need_version=no 12068 library_names_spec='$libname$release$shared_ext' 12069 soname_spec='$libname$release$shared_ext' 12070 finish_cmds= 12071 shlibpath_var=LD_LIBRARY_PATH 12072 shlibpath_overrides_runpath=yes 12073 12074 # This implies no fast_install, which is unacceptable. 12075 # Some rework will be needed to allow for fast_install 12076 # before this can be enabled. 12077 hardcode_into_libs=yes 12078 12079 dynamic_linker='Android linker' 12080 # Don't embed -rpath directories since the linker doesn't support them. 12081 hardcode_libdir_flag_spec='-L$libdir' 12082 ;; 12083 12084# This must be glibc/ELF. 12085linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12086 version_type=linux # correct to gnu/linux during the next big refactor 12087 need_lib_prefix=no 12088 need_version=no 12089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12090 soname_spec='$libname$release$shared_ext$major' 12091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12092 shlibpath_var=LD_LIBRARY_PATH 12093 shlibpath_overrides_runpath=no 12094 12095 # Some binutils ld are patched to set DT_RUNPATH 12096 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12097 $as_echo_n "(cached) " >&6 12098else 12099 lt_cv_shlibpath_overrides_runpath=no 12100 save_LDFLAGS=$LDFLAGS 12101 save_libdir=$libdir 12102 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12103 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12105/* end confdefs.h. */ 12106 12107int 12108main () 12109{ 12110 12111 ; 12112 return 0; 12113} 12114_ACEOF 12115if ac_fn_c_try_link "$LINENO"; then : 12116 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12117 lt_cv_shlibpath_overrides_runpath=yes 12118fi 12119fi 12120rm -f core conftest.err conftest.$ac_objext \ 12121 conftest$ac_exeext conftest.$ac_ext 12122 LDFLAGS=$save_LDFLAGS 12123 libdir=$save_libdir 12124 12125fi 12126 12127 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12128 12129 # This implies no fast_install, which is unacceptable. 12130 # Some rework will be needed to allow for fast_install 12131 # before this can be enabled. 12132 hardcode_into_libs=yes 12133 12134 # Add ABI-specific directories to the system library path. 12135 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12136 12137 # Ideally, we could use ldconfig to report *all* directores which are 12138 # searched for libraries, however this is still not possible. Aside from not 12139 # being certain /sbin/ldconfig is available, command 12140 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12141 # even though it is searched at run-time. Try to do the best guess by 12142 # appending ld.so.conf contents (and includes) to the search path. 12143 if test -f /etc/ld.so.conf; then 12144 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' ' '` 12145 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12146 fi 12147 12148 # We used to test for /lib/ld.so.1 and disable shared libraries on 12149 # powerpc, because MkLinux only supported shared libraries with the 12150 # GNU dynamic linker. Since this was broken with cross compilers, 12151 # most powerpc-linux boxes support dynamic linking these days and 12152 # people can always --disable-shared, the test was removed, and we 12153 # assume the GNU/Linux dynamic linker is in use. 12154 dynamic_linker='GNU/Linux ld.so' 12155 ;; 12156 12157netbsd*) 12158 version_type=sunos 12159 need_lib_prefix=no 12160 need_version=no 12161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12162 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12164 dynamic_linker='NetBSD (a.out) ld.so' 12165 else 12166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12167 soname_spec='$libname$release$shared_ext$major' 12168 dynamic_linker='NetBSD ld.elf_so' 12169 fi 12170 shlibpath_var=LD_LIBRARY_PATH 12171 shlibpath_overrides_runpath=yes 12172 hardcode_into_libs=yes 12173 ;; 12174 12175newsos6) 12176 version_type=linux # correct to gnu/linux during the next big refactor 12177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12178 shlibpath_var=LD_LIBRARY_PATH 12179 shlibpath_overrides_runpath=yes 12180 ;; 12181 12182*nto* | *qnx*) 12183 version_type=qnx 12184 need_lib_prefix=no 12185 need_version=no 12186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12187 soname_spec='$libname$release$shared_ext$major' 12188 shlibpath_var=LD_LIBRARY_PATH 12189 shlibpath_overrides_runpath=no 12190 hardcode_into_libs=yes 12191 dynamic_linker='ldqnx.so' 12192 ;; 12193 12194openbsd* | bitrig*) 12195 version_type=sunos 12196 sys_lib_dlsearch_path_spec=/usr/lib 12197 need_lib_prefix=no 12198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12199 need_version=no 12200 else 12201 need_version=yes 12202 fi 12203 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12205 shlibpath_var=LD_LIBRARY_PATH 12206 shlibpath_overrides_runpath=yes 12207 ;; 12208 12209os2*) 12210 libname_spec='$name' 12211 version_type=windows 12212 shrext_cmds=.dll 12213 need_version=no 12214 need_lib_prefix=no 12215 # OS/2 can only load a DLL with a base name of 8 characters or less. 12216 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12217 v=$($ECHO $release$versuffix | tr -d .-); 12218 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12219 $ECHO $n$v`$shared_ext' 12220 library_names_spec='${libname}_dll.$libext' 12221 dynamic_linker='OS/2 ld.exe' 12222 shlibpath_var=BEGINLIBPATH 12223 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12225 postinstall_cmds='base_file=`basename \$file`~ 12226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12227 dldir=$destdir/`dirname \$dlpath`~ 12228 test -d \$dldir || mkdir -p \$dldir~ 12229 $install_prog $dir/$dlname \$dldir/$dlname~ 12230 chmod a+x \$dldir/$dlname~ 12231 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12232 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12233 fi' 12234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12235 dlpath=$dir/\$dldll~ 12236 $RM \$dlpath' 12237 ;; 12238 12239osf3* | osf4* | osf5*) 12240 version_type=osf 12241 need_lib_prefix=no 12242 need_version=no 12243 soname_spec='$libname$release$shared_ext$major' 12244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12245 shlibpath_var=LD_LIBRARY_PATH 12246 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12248 ;; 12249 12250rdos*) 12251 dynamic_linker=no 12252 ;; 12253 12254solaris*) 12255 version_type=linux # correct to gnu/linux during the next big refactor 12256 need_lib_prefix=no 12257 need_version=no 12258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12259 soname_spec='$libname$release$shared_ext$major' 12260 shlibpath_var=LD_LIBRARY_PATH 12261 shlibpath_overrides_runpath=yes 12262 hardcode_into_libs=yes 12263 # ldd complains unless libraries are executable 12264 postinstall_cmds='chmod +x $lib' 12265 ;; 12266 12267sunos4*) 12268 version_type=sunos 12269 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12270 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12271 shlibpath_var=LD_LIBRARY_PATH 12272 shlibpath_overrides_runpath=yes 12273 if test yes = "$with_gnu_ld"; then 12274 need_lib_prefix=no 12275 fi 12276 need_version=yes 12277 ;; 12278 12279sysv4 | sysv4.3*) 12280 version_type=linux # correct to gnu/linux during the next big refactor 12281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12282 soname_spec='$libname$release$shared_ext$major' 12283 shlibpath_var=LD_LIBRARY_PATH 12284 case $host_vendor in 12285 sni) 12286 shlibpath_overrides_runpath=no 12287 need_lib_prefix=no 12288 runpath_var=LD_RUN_PATH 12289 ;; 12290 siemens) 12291 need_lib_prefix=no 12292 ;; 12293 motorola) 12294 need_lib_prefix=no 12295 need_version=no 12296 shlibpath_overrides_runpath=no 12297 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12298 ;; 12299 esac 12300 ;; 12301 12302sysv4*MP*) 12303 if test -d /usr/nec; then 12304 version_type=linux # correct to gnu/linux during the next big refactor 12305 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12306 soname_spec='$libname$shared_ext.$major' 12307 shlibpath_var=LD_LIBRARY_PATH 12308 fi 12309 ;; 12310 12311sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12312 version_type=sco 12313 need_lib_prefix=no 12314 need_version=no 12315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12316 soname_spec='$libname$release$shared_ext$major' 12317 shlibpath_var=LD_LIBRARY_PATH 12318 shlibpath_overrides_runpath=yes 12319 hardcode_into_libs=yes 12320 if test yes = "$with_gnu_ld"; then 12321 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12322 else 12323 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12324 case $host_os in 12325 sco3.2v5*) 12326 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12327 ;; 12328 esac 12329 fi 12330 sys_lib_dlsearch_path_spec='/usr/lib' 12331 ;; 12332 12333tpf*) 12334 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12335 version_type=linux # correct to gnu/linux during the next big refactor 12336 need_lib_prefix=no 12337 need_version=no 12338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12339 shlibpath_var=LD_LIBRARY_PATH 12340 shlibpath_overrides_runpath=no 12341 hardcode_into_libs=yes 12342 ;; 12343 12344uts4*) 12345 version_type=linux # correct to gnu/linux during the next big refactor 12346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12347 soname_spec='$libname$release$shared_ext$major' 12348 shlibpath_var=LD_LIBRARY_PATH 12349 ;; 12350 12351*) 12352 dynamic_linker=no 12353 ;; 12354esac 12355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12356$as_echo "$dynamic_linker" >&6; } 12357test no = "$dynamic_linker" && can_build_shared=no 12358 12359variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12360if test yes = "$GCC"; then 12361 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12362fi 12363 12364if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12365 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12366fi 12367 12368if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12369 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12370fi 12371 12372# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12373configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12374 12375# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12376func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12377 12378# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12379configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12478$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12479hardcode_action= 12480if test -n "$hardcode_libdir_flag_spec" || 12481 test -n "$runpath_var" || 12482 test yes = "$hardcode_automatic"; then 12483 12484 # We can hardcode non-existent directories. 12485 if test no != "$hardcode_direct" && 12486 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12487 # have to relink, otherwise we might link with an installed library 12488 # when we should be linking with a yet-to-be-installed one 12489 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12490 test no != "$hardcode_minus_L"; then 12491 # Linking always hardcodes the temporary library directory. 12492 hardcode_action=relink 12493 else 12494 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12495 hardcode_action=immediate 12496 fi 12497else 12498 # We cannot hardcode anything, or else we can only hardcode existing 12499 # directories. 12500 hardcode_action=unsupported 12501fi 12502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12503$as_echo "$hardcode_action" >&6; } 12504 12505if test relink = "$hardcode_action" || 12506 test yes = "$inherit_rpath"; then 12507 # Fast installation is not supported 12508 enable_fast_install=no 12509elif test yes = "$shlibpath_overrides_runpath" || 12510 test no = "$enable_shared"; then 12511 # Fast installation is not necessary 12512 enable_fast_install=needless 12513fi 12514 12515 12516 12517 12518 12519 12520 if test yes != "$enable_dlopen"; then 12521 enable_dlopen=unknown 12522 enable_dlopen_self=unknown 12523 enable_dlopen_self_static=unknown 12524else 12525 lt_cv_dlopen=no 12526 lt_cv_dlopen_libs= 12527 12528 case $host_os in 12529 beos*) 12530 lt_cv_dlopen=load_add_on 12531 lt_cv_dlopen_libs= 12532 lt_cv_dlopen_self=yes 12533 ;; 12534 12535 mingw* | pw32* | cegcc*) 12536 lt_cv_dlopen=LoadLibrary 12537 lt_cv_dlopen_libs= 12538 ;; 12539 12540 cygwin*) 12541 lt_cv_dlopen=dlopen 12542 lt_cv_dlopen_libs= 12543 ;; 12544 12545 darwin*) 12546 # if libdl is installed we need to link against it 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12548$as_echo_n "checking for dlopen in -ldl... " >&6; } 12549if ${ac_cv_lib_dl_dlopen+:} false; then : 12550 $as_echo_n "(cached) " >&6 12551else 12552 ac_check_lib_save_LIBS=$LIBS 12553LIBS="-ldl $LIBS" 12554cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12555/* end confdefs.h. */ 12556 12557/* Override any GCC internal prototype to avoid an error. 12558 Use char because int might match the return type of a GCC 12559 builtin and then its argument prototype would still apply. */ 12560#ifdef __cplusplus 12561extern "C" 12562#endif 12563char dlopen (); 12564int 12565main () 12566{ 12567return dlopen (); 12568 ; 12569 return 0; 12570} 12571_ACEOF 12572if ac_fn_c_try_link "$LINENO"; then : 12573 ac_cv_lib_dl_dlopen=yes 12574else 12575 ac_cv_lib_dl_dlopen=no 12576fi 12577rm -f core conftest.err conftest.$ac_objext \ 12578 conftest$ac_exeext conftest.$ac_ext 12579LIBS=$ac_check_lib_save_LIBS 12580fi 12581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12582$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12583if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12584 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12585else 12586 12587 lt_cv_dlopen=dyld 12588 lt_cv_dlopen_libs= 12589 lt_cv_dlopen_self=yes 12590 12591fi 12592 12593 ;; 12594 12595 tpf*) 12596 # Don't try to run any link tests for TPF. We know it's impossible 12597 # because TPF is a cross-compiler, and we know how we open DSOs. 12598 lt_cv_dlopen=dlopen 12599 lt_cv_dlopen_libs= 12600 lt_cv_dlopen_self=no 12601 ;; 12602 12603 *) 12604 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12605if test "x$ac_cv_func_shl_load" = xyes; then : 12606 lt_cv_dlopen=shl_load 12607else 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12609$as_echo_n "checking for shl_load in -ldld... " >&6; } 12610if ${ac_cv_lib_dld_shl_load+:} false; then : 12611 $as_echo_n "(cached) " >&6 12612else 12613 ac_check_lib_save_LIBS=$LIBS 12614LIBS="-ldld $LIBS" 12615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12616/* end confdefs.h. */ 12617 12618/* Override any GCC internal prototype to avoid an error. 12619 Use char because int might match the return type of a GCC 12620 builtin and then its argument prototype would still apply. */ 12621#ifdef __cplusplus 12622extern "C" 12623#endif 12624char shl_load (); 12625int 12626main () 12627{ 12628return shl_load (); 12629 ; 12630 return 0; 12631} 12632_ACEOF 12633if ac_fn_c_try_link "$LINENO"; then : 12634 ac_cv_lib_dld_shl_load=yes 12635else 12636 ac_cv_lib_dld_shl_load=no 12637fi 12638rm -f core conftest.err conftest.$ac_objext \ 12639 conftest$ac_exeext conftest.$ac_ext 12640LIBS=$ac_check_lib_save_LIBS 12641fi 12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12643$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12644if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12645 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12646else 12647 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12648if test "x$ac_cv_func_dlopen" = xyes; then : 12649 lt_cv_dlopen=dlopen 12650else 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12652$as_echo_n "checking for dlopen in -ldl... " >&6; } 12653if ${ac_cv_lib_dl_dlopen+:} false; then : 12654 $as_echo_n "(cached) " >&6 12655else 12656 ac_check_lib_save_LIBS=$LIBS 12657LIBS="-ldl $LIBS" 12658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12659/* end confdefs.h. */ 12660 12661/* Override any GCC internal prototype to avoid an error. 12662 Use char because int might match the return type of a GCC 12663 builtin and then its argument prototype would still apply. */ 12664#ifdef __cplusplus 12665extern "C" 12666#endif 12667char dlopen (); 12668int 12669main () 12670{ 12671return dlopen (); 12672 ; 12673 return 0; 12674} 12675_ACEOF 12676if ac_fn_c_try_link "$LINENO"; then : 12677 ac_cv_lib_dl_dlopen=yes 12678else 12679 ac_cv_lib_dl_dlopen=no 12680fi 12681rm -f core conftest.err conftest.$ac_objext \ 12682 conftest$ac_exeext conftest.$ac_ext 12683LIBS=$ac_check_lib_save_LIBS 12684fi 12685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12686$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12687if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12688 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12689else 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12691$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12692if ${ac_cv_lib_svld_dlopen+:} false; then : 12693 $as_echo_n "(cached) " >&6 12694else 12695 ac_check_lib_save_LIBS=$LIBS 12696LIBS="-lsvld $LIBS" 12697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12698/* end confdefs.h. */ 12699 12700/* Override any GCC internal prototype to avoid an error. 12701 Use char because int might match the return type of a GCC 12702 builtin and then its argument prototype would still apply. */ 12703#ifdef __cplusplus 12704extern "C" 12705#endif 12706char dlopen (); 12707int 12708main () 12709{ 12710return dlopen (); 12711 ; 12712 return 0; 12713} 12714_ACEOF 12715if ac_fn_c_try_link "$LINENO"; then : 12716 ac_cv_lib_svld_dlopen=yes 12717else 12718 ac_cv_lib_svld_dlopen=no 12719fi 12720rm -f core conftest.err conftest.$ac_objext \ 12721 conftest$ac_exeext conftest.$ac_ext 12722LIBS=$ac_check_lib_save_LIBS 12723fi 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12725$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12726if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12727 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12728else 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12730$as_echo_n "checking for dld_link in -ldld... " >&6; } 12731if ${ac_cv_lib_dld_dld_link+:} false; then : 12732 $as_echo_n "(cached) " >&6 12733else 12734 ac_check_lib_save_LIBS=$LIBS 12735LIBS="-ldld $LIBS" 12736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12737/* end confdefs.h. */ 12738 12739/* Override any GCC internal prototype to avoid an error. 12740 Use char because int might match the return type of a GCC 12741 builtin and then its argument prototype would still apply. */ 12742#ifdef __cplusplus 12743extern "C" 12744#endif 12745char dld_link (); 12746int 12747main () 12748{ 12749return dld_link (); 12750 ; 12751 return 0; 12752} 12753_ACEOF 12754if ac_fn_c_try_link "$LINENO"; then : 12755 ac_cv_lib_dld_dld_link=yes 12756else 12757 ac_cv_lib_dld_dld_link=no 12758fi 12759rm -f core conftest.err conftest.$ac_objext \ 12760 conftest$ac_exeext conftest.$ac_ext 12761LIBS=$ac_check_lib_save_LIBS 12762fi 12763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12764$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12765if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12766 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12767fi 12768 12769 12770fi 12771 12772 12773fi 12774 12775 12776fi 12777 12778 12779fi 12780 12781 12782fi 12783 12784 ;; 12785 esac 12786 12787 if test no = "$lt_cv_dlopen"; then 12788 enable_dlopen=no 12789 else 12790 enable_dlopen=yes 12791 fi 12792 12793 case $lt_cv_dlopen in 12794 dlopen) 12795 save_CPPFLAGS=$CPPFLAGS 12796 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12797 12798 save_LDFLAGS=$LDFLAGS 12799 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12800 12801 save_LIBS=$LIBS 12802 LIBS="$lt_cv_dlopen_libs $LIBS" 12803 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12805$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12806if ${lt_cv_dlopen_self+:} false; then : 12807 $as_echo_n "(cached) " >&6 12808else 12809 if test yes = "$cross_compiling"; then : 12810 lt_cv_dlopen_self=cross 12811else 12812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12813 lt_status=$lt_dlunknown 12814 cat > conftest.$ac_ext <<_LT_EOF 12815#line $LINENO "configure" 12816#include "confdefs.h" 12817 12818#if HAVE_DLFCN_H 12819#include <dlfcn.h> 12820#endif 12821 12822#include <stdio.h> 12823 12824#ifdef RTLD_GLOBAL 12825# define LT_DLGLOBAL RTLD_GLOBAL 12826#else 12827# ifdef DL_GLOBAL 12828# define LT_DLGLOBAL DL_GLOBAL 12829# else 12830# define LT_DLGLOBAL 0 12831# endif 12832#endif 12833 12834/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12835 find out it does not work in some platform. */ 12836#ifndef LT_DLLAZY_OR_NOW 12837# ifdef RTLD_LAZY 12838# define LT_DLLAZY_OR_NOW RTLD_LAZY 12839# else 12840# ifdef DL_LAZY 12841# define LT_DLLAZY_OR_NOW DL_LAZY 12842# else 12843# ifdef RTLD_NOW 12844# define LT_DLLAZY_OR_NOW RTLD_NOW 12845# else 12846# ifdef DL_NOW 12847# define LT_DLLAZY_OR_NOW DL_NOW 12848# else 12849# define LT_DLLAZY_OR_NOW 0 12850# endif 12851# endif 12852# endif 12853# endif 12854#endif 12855 12856/* When -fvisibility=hidden is used, assume the code has been annotated 12857 correspondingly for the symbols needed. */ 12858#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12859int fnord () __attribute__((visibility("default"))); 12860#endif 12861 12862int fnord () { return 42; } 12863int main () 12864{ 12865 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12866 int status = $lt_dlunknown; 12867 12868 if (self) 12869 { 12870 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12871 else 12872 { 12873 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12874 else puts (dlerror ()); 12875 } 12876 /* dlclose (self); */ 12877 } 12878 else 12879 puts (dlerror ()); 12880 12881 return status; 12882} 12883_LT_EOF 12884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12885 (eval $ac_link) 2>&5 12886 ac_status=$? 12887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12888 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12889 (./conftest; exit; ) >&5 2>/dev/null 12890 lt_status=$? 12891 case x$lt_status in 12892 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12893 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12894 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12895 esac 12896 else : 12897 # compilation failed 12898 lt_cv_dlopen_self=no 12899 fi 12900fi 12901rm -fr conftest* 12902 12903 12904fi 12905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12906$as_echo "$lt_cv_dlopen_self" >&6; } 12907 12908 if test yes = "$lt_cv_dlopen_self"; then 12909 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12911$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12912if ${lt_cv_dlopen_self_static+:} false; then : 12913 $as_echo_n "(cached) " >&6 12914else 12915 if test yes = "$cross_compiling"; then : 12916 lt_cv_dlopen_self_static=cross 12917else 12918 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12919 lt_status=$lt_dlunknown 12920 cat > conftest.$ac_ext <<_LT_EOF 12921#line $LINENO "configure" 12922#include "confdefs.h" 12923 12924#if HAVE_DLFCN_H 12925#include <dlfcn.h> 12926#endif 12927 12928#include <stdio.h> 12929 12930#ifdef RTLD_GLOBAL 12931# define LT_DLGLOBAL RTLD_GLOBAL 12932#else 12933# ifdef DL_GLOBAL 12934# define LT_DLGLOBAL DL_GLOBAL 12935# else 12936# define LT_DLGLOBAL 0 12937# endif 12938#endif 12939 12940/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12941 find out it does not work in some platform. */ 12942#ifndef LT_DLLAZY_OR_NOW 12943# ifdef RTLD_LAZY 12944# define LT_DLLAZY_OR_NOW RTLD_LAZY 12945# else 12946# ifdef DL_LAZY 12947# define LT_DLLAZY_OR_NOW DL_LAZY 12948# else 12949# ifdef RTLD_NOW 12950# define LT_DLLAZY_OR_NOW RTLD_NOW 12951# else 12952# ifdef DL_NOW 12953# define LT_DLLAZY_OR_NOW DL_NOW 12954# else 12955# define LT_DLLAZY_OR_NOW 0 12956# endif 12957# endif 12958# endif 12959# endif 12960#endif 12961 12962/* When -fvisibility=hidden is used, assume the code has been annotated 12963 correspondingly for the symbols needed. */ 12964#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12965int fnord () __attribute__((visibility("default"))); 12966#endif 12967 12968int fnord () { return 42; } 12969int main () 12970{ 12971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12972 int status = $lt_dlunknown; 12973 12974 if (self) 12975 { 12976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12977 else 12978 { 12979 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12980 else puts (dlerror ()); 12981 } 12982 /* dlclose (self); */ 12983 } 12984 else 12985 puts (dlerror ()); 12986 12987 return status; 12988} 12989_LT_EOF 12990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12991 (eval $ac_link) 2>&5 12992 ac_status=$? 12993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12994 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12995 (./conftest; exit; ) >&5 2>/dev/null 12996 lt_status=$? 12997 case x$lt_status in 12998 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12999 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13000 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13001 esac 13002 else : 13003 # compilation failed 13004 lt_cv_dlopen_self_static=no 13005 fi 13006fi 13007rm -fr conftest* 13008 13009 13010fi 13011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13012$as_echo "$lt_cv_dlopen_self_static" >&6; } 13013 fi 13014 13015 CPPFLAGS=$save_CPPFLAGS 13016 LDFLAGS=$save_LDFLAGS 13017 LIBS=$save_LIBS 13018 ;; 13019 esac 13020 13021 case $lt_cv_dlopen_self in 13022 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13023 *) enable_dlopen_self=unknown ;; 13024 esac 13025 13026 case $lt_cv_dlopen_self_static in 13027 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13028 *) enable_dlopen_self_static=unknown ;; 13029 esac 13030fi 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048striplib= 13049old_striplib= 13050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13051$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13052if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13053 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13054 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13056$as_echo "yes" >&6; } 13057else 13058# FIXME - insert some real tests, host_os isn't really good enough 13059 case $host_os in 13060 darwin*) 13061 if test -n "$STRIP"; then 13062 striplib="$STRIP -x" 13063 old_striplib="$STRIP -S" 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13065$as_echo "yes" >&6; } 13066 else 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13068$as_echo "no" >&6; } 13069 fi 13070 ;; 13071 *) 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13073$as_echo "no" >&6; } 13074 ;; 13075 esac 13076fi 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 # Report what library types will actually be built 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13091$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13093$as_echo "$can_build_shared" >&6; } 13094 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13096$as_echo_n "checking whether to build shared libraries... " >&6; } 13097 test no = "$can_build_shared" && enable_shared=no 13098 13099 # On AIX, shared libraries and static libraries use the same namespace, and 13100 # are all built from PIC. 13101 case $host_os in 13102 aix3*) 13103 test yes = "$enable_shared" && enable_static=no 13104 if test -n "$RANLIB"; then 13105 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13106 postinstall_cmds='$RANLIB $lib' 13107 fi 13108 ;; 13109 13110 aix[4-9]*) 13111 if test ia64 != "$host_cpu"; then 13112 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13113 yes,aix,yes) ;; # shared object as lib.so file only 13114 yes,svr4,*) ;; # shared object as lib.so archive member only 13115 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13116 esac 13117 fi 13118 ;; 13119 esac 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13121$as_echo "$enable_shared" >&6; } 13122 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13124$as_echo_n "checking whether to build static libraries... " >&6; } 13125 # Make sure either enable_shared or enable_static is yes. 13126 test yes = "$enable_shared" || enable_static=yes 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13128$as_echo "$enable_static" >&6; } 13129 13130 13131 13132 13133fi 13134ac_ext=c 13135ac_cpp='$CPP $CPPFLAGS' 13136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13138ac_compiler_gnu=$ac_cv_c_compiler_gnu 13139 13140CC=$lt_save_CC 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 ac_config_commands="$ac_config_commands libtool" 13157 13158 13159 13160 13161# Only expand once: 13162 13163 13164 13165# **** 13166# i18n 13167# **** 13168 13169 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 13171$as_echo_n "checking whether NLS is requested... " >&6; } 13172 # Check whether --enable-nls was given. 13173if test "${enable_nls+set}" = set; then : 13174 enableval=$enable_nls; USE_NLS=$enableval 13175else 13176 USE_NLS=yes 13177fi 13178 13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 13180$as_echo "$USE_NLS" >&6; } 13181 13182 13183 13184 13185 GETTEXT_MACRO_VERSION=0.19 13186 13187 13188 13189 13190# Prepare PATH_SEPARATOR. 13191# The user is always right. 13192if test "${PATH_SEPARATOR+set}" != set; then 13193 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13194 # contains only /bin. Note that ksh looks also at the FPATH variable, 13195 # so we have to set that as well for the test. 13196 PATH_SEPARATOR=: 13197 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13198 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13199 || PATH_SEPARATOR=';' 13200 } 13201fi 13202 13203# Find out how to test for executable files. Don't use a zero-byte file, 13204# as systems may use methods other than mode bits to determine executability. 13205cat >conf$$.file <<_ASEOF 13206#! /bin/sh 13207exit 0 13208_ASEOF 13209chmod +x conf$$.file 13210if test -x conf$$.file >/dev/null 2>&1; then 13211 ac_executable_p="test -x" 13212else 13213 ac_executable_p="test -f" 13214fi 13215rm -f conf$$.file 13216 13217# Extract the first word of "msgfmt", so it can be a program name with args. 13218set dummy msgfmt; ac_word=$2 13219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13220$as_echo_n "checking for $ac_word... " >&6; } 13221if ${ac_cv_path_MSGFMT+:} false; then : 13222 $as_echo_n "(cached) " >&6 13223else 13224 case "$MSGFMT" in 13225 [\\/]* | ?:[\\/]*) 13226 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 13227 ;; 13228 *) 13229 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13230 for ac_dir in $PATH; do 13231 IFS="$ac_save_IFS" 13232 test -z "$ac_dir" && ac_dir=. 13233 for ac_exec_ext in '' $ac_executable_extensions; do 13234 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13235 echo "$as_me: trying $ac_dir/$ac_word..." >&5 13236 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 13237 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13238 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 13239 break 2 13240 fi 13241 fi 13242 done 13243 done 13244 IFS="$ac_save_IFS" 13245 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 13246 ;; 13247esac 13248fi 13249MSGFMT="$ac_cv_path_MSGFMT" 13250if test "$MSGFMT" != ":"; then 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13252$as_echo "$MSGFMT" >&6; } 13253else 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13255$as_echo "no" >&6; } 13256fi 13257 13258 # Extract the first word of "gmsgfmt", so it can be a program name with args. 13259set dummy gmsgfmt; ac_word=$2 13260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13261$as_echo_n "checking for $ac_word... " >&6; } 13262if ${ac_cv_path_GMSGFMT+:} false; then : 13263 $as_echo_n "(cached) " >&6 13264else 13265 case $GMSGFMT in 13266 [\\/]* | ?:[\\/]*) 13267 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 13268 ;; 13269 *) 13270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13271for as_dir in $PATH 13272do 13273 IFS=$as_save_IFS 13274 test -z "$as_dir" && as_dir=. 13275 for ac_exec_ext in '' $ac_executable_extensions; do 13276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13277 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 13278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13279 break 2 13280 fi 13281done 13282 done 13283IFS=$as_save_IFS 13284 13285 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 13286 ;; 13287esac 13288fi 13289GMSGFMT=$ac_cv_path_GMSGFMT 13290if test -n "$GMSGFMT"; then 13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 13292$as_echo "$GMSGFMT" >&6; } 13293else 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13295$as_echo "no" >&6; } 13296fi 13297 13298 13299 13300 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 13301 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 13302 *) MSGFMT_015=$MSGFMT ;; 13303 esac 13304 13305 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 13306 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 13307 *) GMSGFMT_015=$GMSGFMT ;; 13308 esac 13309 13310 13311 13312# Prepare PATH_SEPARATOR. 13313# The user is always right. 13314if test "${PATH_SEPARATOR+set}" != set; then 13315 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13316 # contains only /bin. Note that ksh looks also at the FPATH variable, 13317 # so we have to set that as well for the test. 13318 PATH_SEPARATOR=: 13319 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13320 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13321 || PATH_SEPARATOR=';' 13322 } 13323fi 13324 13325# Find out how to test for executable files. Don't use a zero-byte file, 13326# as systems may use methods other than mode bits to determine executability. 13327cat >conf$$.file <<_ASEOF 13328#! /bin/sh 13329exit 0 13330_ASEOF 13331chmod +x conf$$.file 13332if test -x conf$$.file >/dev/null 2>&1; then 13333 ac_executable_p="test -x" 13334else 13335 ac_executable_p="test -f" 13336fi 13337rm -f conf$$.file 13338 13339# Extract the first word of "xgettext", so it can be a program name with args. 13340set dummy xgettext; ac_word=$2 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13342$as_echo_n "checking for $ac_word... " >&6; } 13343if ${ac_cv_path_XGETTEXT+:} false; then : 13344 $as_echo_n "(cached) " >&6 13345else 13346 case "$XGETTEXT" in 13347 [\\/]* | ?:[\\/]*) 13348 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 13349 ;; 13350 *) 13351 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13352 for ac_dir in $PATH; do 13353 IFS="$ac_save_IFS" 13354 test -z "$ac_dir" && ac_dir=. 13355 for ac_exec_ext in '' $ac_executable_extensions; do 13356 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13357 echo "$as_me: trying $ac_dir/$ac_word..." >&5 13358 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 13359 (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 13360 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 13361 break 2 13362 fi 13363 fi 13364 done 13365 done 13366 IFS="$ac_save_IFS" 13367 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 13368 ;; 13369esac 13370fi 13371XGETTEXT="$ac_cv_path_XGETTEXT" 13372if test "$XGETTEXT" != ":"; then 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 13374$as_echo "$XGETTEXT" >&6; } 13375else 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13377$as_echo "no" >&6; } 13378fi 13379 13380 rm -f messages.po 13381 13382 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 13383 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 13384 *) XGETTEXT_015=$XGETTEXT ;; 13385 esac 13386 13387 13388 13389# Prepare PATH_SEPARATOR. 13390# The user is always right. 13391if test "${PATH_SEPARATOR+set}" != set; then 13392 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13393 # contains only /bin. Note that ksh looks also at the FPATH variable, 13394 # so we have to set that as well for the test. 13395 PATH_SEPARATOR=: 13396 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13397 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13398 || PATH_SEPARATOR=';' 13399 } 13400fi 13401 13402# Find out how to test for executable files. Don't use a zero-byte file, 13403# as systems may use methods other than mode bits to determine executability. 13404cat >conf$$.file <<_ASEOF 13405#! /bin/sh 13406exit 0 13407_ASEOF 13408chmod +x conf$$.file 13409if test -x conf$$.file >/dev/null 2>&1; then 13410 ac_executable_p="test -x" 13411else 13412 ac_executable_p="test -f" 13413fi 13414rm -f conf$$.file 13415 13416# Extract the first word of "msgmerge", so it can be a program name with args. 13417set dummy msgmerge; ac_word=$2 13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13419$as_echo_n "checking for $ac_word... " >&6; } 13420if ${ac_cv_path_MSGMERGE+:} false; then : 13421 $as_echo_n "(cached) " >&6 13422else 13423 case "$MSGMERGE" in 13424 [\\/]* | ?:[\\/]*) 13425 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 13426 ;; 13427 *) 13428 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13429 for ac_dir in $PATH; do 13430 IFS="$ac_save_IFS" 13431 test -z "$ac_dir" && ac_dir=. 13432 for ac_exec_ext in '' $ac_executable_extensions; do 13433 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13434 echo "$as_me: trying $ac_dir/$ac_word..." >&5 13435 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 13436 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 13437 break 2 13438 fi 13439 fi 13440 done 13441 done 13442 IFS="$ac_save_IFS" 13443 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 13444 ;; 13445esac 13446fi 13447MSGMERGE="$ac_cv_path_MSGMERGE" 13448if test "$MSGMERGE" != ":"; then 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 13450$as_echo "$MSGMERGE" >&6; } 13451else 13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13453$as_echo "no" >&6; } 13454fi 13455 13456 13457 test -n "$localedir" || localedir='${datadir}/locale' 13458 13459 13460 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 13461 13462 13463 ac_config_commands="$ac_config_commands po-directories" 13464 13465 13466 13467 if test "X$prefix" = "XNONE"; then 13468 acl_final_prefix="$ac_default_prefix" 13469 else 13470 acl_final_prefix="$prefix" 13471 fi 13472 if test "X$exec_prefix" = "XNONE"; then 13473 acl_final_exec_prefix='${prefix}' 13474 else 13475 acl_final_exec_prefix="$exec_prefix" 13476 fi 13477 acl_save_prefix="$prefix" 13478 prefix="$acl_final_prefix" 13479 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 13480 prefix="$acl_save_prefix" 13481 13482 13483 13484# Check whether --with-gnu-ld was given. 13485if test "${with_gnu_ld+set}" = set; then : 13486 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13487else 13488 with_gnu_ld=no 13489fi 13490 13491# Prepare PATH_SEPARATOR. 13492# The user is always right. 13493if test "${PATH_SEPARATOR+set}" != set; then 13494 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13495 # contains only /bin. Note that ksh looks also at the FPATH variable, 13496 # so we have to set that as well for the test. 13497 PATH_SEPARATOR=: 13498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13499 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13500 || PATH_SEPARATOR=';' 13501 } 13502fi 13503 13504ac_prog=ld 13505if test "$GCC" = yes; then 13506 # Check if gcc -print-prog-name=ld gives a path. 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13508$as_echo_n "checking for ld used by $CC... " >&6; } 13509 case $host in 13510 *-*-mingw*) 13511 # gcc leaves a trailing carriage return which upsets mingw 13512 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13513 *) 13514 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13515 esac 13516 case $ac_prog in 13517 # Accept absolute paths. 13518 [\\/]* | ?:[\\/]*) 13519 re_direlt='/[^/][^/]*/\.\./' 13520 # Canonicalize the pathname of ld 13521 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 13522 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 13523 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 13524 done 13525 test -z "$LD" && LD="$ac_prog" 13526 ;; 13527 "") 13528 # If it fails, then pretend we aren't using GCC. 13529 ac_prog=ld 13530 ;; 13531 *) 13532 # If it is relative, then search for the first ld in PATH. 13533 with_gnu_ld=unknown 13534 ;; 13535 esac 13536elif test "$with_gnu_ld" = yes; then 13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13538$as_echo_n "checking for GNU ld... " >&6; } 13539else 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13541$as_echo_n "checking for non-GNU ld... " >&6; } 13542fi 13543if ${acl_cv_path_LD+:} false; then : 13544 $as_echo_n "(cached) " >&6 13545else 13546 if test -z "$LD"; then 13547 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13548 for ac_dir in $PATH; do 13549 IFS="$acl_save_ifs" 13550 test -z "$ac_dir" && ac_dir=. 13551 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13552 acl_cv_path_LD="$ac_dir/$ac_prog" 13553 # Check to see if the program is GNU ld. I'd rather use --version, 13554 # but apparently some variants of GNU ld only accept -v. 13555 # Break only if it was the GNU/non-GNU ld that we prefer. 13556 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 13557 *GNU* | *'with BFD'*) 13558 test "$with_gnu_ld" != no && break 13559 ;; 13560 *) 13561 test "$with_gnu_ld" != yes && break 13562 ;; 13563 esac 13564 fi 13565 done 13566 IFS="$acl_save_ifs" 13567else 13568 acl_cv_path_LD="$LD" # Let the user override the test with a path. 13569fi 13570fi 13571 13572LD="$acl_cv_path_LD" 13573if test -n "$LD"; then 13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13575$as_echo "$LD" >&6; } 13576else 13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13578$as_echo "no" >&6; } 13579fi 13580test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13582$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13583if ${acl_cv_prog_gnu_ld+:} false; then : 13584 $as_echo_n "(cached) " >&6 13585else 13586 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13587case `$LD -v 2>&1 </dev/null` in 13588*GNU* | *'with BFD'*) 13589 acl_cv_prog_gnu_ld=yes 13590 ;; 13591*) 13592 acl_cv_prog_gnu_ld=no 13593 ;; 13594esac 13595fi 13596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13597$as_echo "$acl_cv_prog_gnu_ld" >&6; } 13598with_gnu_ld=$acl_cv_prog_gnu_ld 13599 13600 13601 13602 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13604$as_echo_n "checking for shared library run path origin... " >&6; } 13605if ${acl_cv_rpath+:} false; then : 13606 $as_echo_n "(cached) " >&6 13607else 13608 13609 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13610 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13611 . ./conftest.sh 13612 rm -f ./conftest.sh 13613 acl_cv_rpath=done 13614 13615fi 13616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13617$as_echo "$acl_cv_rpath" >&6; } 13618 wl="$acl_cv_wl" 13619 acl_libext="$acl_cv_libext" 13620 acl_shlibext="$acl_cv_shlibext" 13621 acl_libname_spec="$acl_cv_libname_spec" 13622 acl_library_names_spec="$acl_cv_library_names_spec" 13623 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13624 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13625 acl_hardcode_direct="$acl_cv_hardcode_direct" 13626 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 13627 # Check whether --enable-rpath was given. 13628if test "${enable_rpath+set}" = set; then : 13629 enableval=$enable_rpath; : 13630else 13631 enable_rpath=yes 13632fi 13633 13634 13635 13636 13637 acl_libdirstem=lib 13638 acl_libdirstem2= 13639 case "$host_os" in 13640 solaris*) 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 13642$as_echo_n "checking for 64-bit host... " >&6; } 13643if ${gl_cv_solaris_64bit+:} false; then : 13644 $as_echo_n "(cached) " >&6 13645else 13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13647/* end confdefs.h. */ 13648 13649#ifdef _LP64 13650sixtyfour bits 13651#endif 13652 13653_ACEOF 13654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13655 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 13656 gl_cv_solaris_64bit=yes 13657else 13658 gl_cv_solaris_64bit=no 13659fi 13660rm -f conftest* 13661 13662 13663fi 13664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 13665$as_echo "$gl_cv_solaris_64bit" >&6; } 13666 if test $gl_cv_solaris_64bit = yes; then 13667 acl_libdirstem=lib/64 13668 case "$host_cpu" in 13669 sparc*) acl_libdirstem2=lib/sparcv9 ;; 13670 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 13671 esac 13672 fi 13673 ;; 13674 *) 13675 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 13676 if test -n "$searchpath"; then 13677 acl_save_IFS="${IFS= }"; IFS=":" 13678 for searchdir in $searchpath; do 13679 if test -d "$searchdir"; then 13680 case "$searchdir" in 13681 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 13682 */../ | */.. ) 13683 # Better ignore directories of this form. They are misleading. 13684 ;; 13685 *) searchdir=`cd "$searchdir" && pwd` 13686 case "$searchdir" in 13687 */lib64 ) acl_libdirstem=lib64 ;; 13688 esac ;; 13689 esac 13690 fi 13691 done 13692 IFS="$acl_save_IFS" 13693 fi 13694 ;; 13695 esac 13696 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 use_additional=yes 13710 13711 acl_save_prefix="$prefix" 13712 prefix="$acl_final_prefix" 13713 acl_save_exec_prefix="$exec_prefix" 13714 exec_prefix="$acl_final_exec_prefix" 13715 13716 eval additional_includedir=\"$includedir\" 13717 eval additional_libdir=\"$libdir\" 13718 13719 exec_prefix="$acl_save_exec_prefix" 13720 prefix="$acl_save_prefix" 13721 13722 13723# Check whether --with-libiconv-prefix was given. 13724if test "${with_libiconv_prefix+set}" = set; then : 13725 withval=$with_libiconv_prefix; 13726 if test "X$withval" = "Xno"; then 13727 use_additional=no 13728 else 13729 if test "X$withval" = "X"; then 13730 13731 acl_save_prefix="$prefix" 13732 prefix="$acl_final_prefix" 13733 acl_save_exec_prefix="$exec_prefix" 13734 exec_prefix="$acl_final_exec_prefix" 13735 13736 eval additional_includedir=\"$includedir\" 13737 eval additional_libdir=\"$libdir\" 13738 13739 exec_prefix="$acl_save_exec_prefix" 13740 prefix="$acl_save_prefix" 13741 13742 else 13743 additional_includedir="$withval/include" 13744 additional_libdir="$withval/$acl_libdirstem" 13745 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 13746 && ! test -d "$withval/$acl_libdirstem"; then 13747 additional_libdir="$withval/$acl_libdirstem2" 13748 fi 13749 fi 13750 fi 13751 13752fi 13753 13754 LIBICONV= 13755 LTLIBICONV= 13756 INCICONV= 13757 LIBICONV_PREFIX= 13758 HAVE_LIBICONV= 13759 rpathdirs= 13760 ltrpathdirs= 13761 names_already_handled= 13762 names_next_round='iconv ' 13763 while test -n "$names_next_round"; do 13764 names_this_round="$names_next_round" 13765 names_next_round= 13766 for name in $names_this_round; do 13767 already_handled= 13768 for n in $names_already_handled; do 13769 if test "$n" = "$name"; then 13770 already_handled=yes 13771 break 13772 fi 13773 done 13774 if test -z "$already_handled"; then 13775 names_already_handled="$names_already_handled $name" 13776 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 13777 eval value=\"\$HAVE_LIB$uppername\" 13778 if test -n "$value"; then 13779 if test "$value" = yes; then 13780 eval value=\"\$LIB$uppername\" 13781 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 13782 eval value=\"\$LTLIB$uppername\" 13783 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 13784 else 13785 : 13786 fi 13787 else 13788 found_dir= 13789 found_la= 13790 found_so= 13791 found_a= 13792 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 13793 if test -n "$acl_shlibext"; then 13794 shrext=".$acl_shlibext" # typically: shrext=.so 13795 else 13796 shrext= 13797 fi 13798 if test $use_additional = yes; then 13799 dir="$additional_libdir" 13800 if test -n "$acl_shlibext"; then 13801 if test -f "$dir/$libname$shrext"; then 13802 found_dir="$dir" 13803 found_so="$dir/$libname$shrext" 13804 else 13805 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13806 ver=`(cd "$dir" && \ 13807 for f in "$libname$shrext".*; do echo "$f"; done \ 13808 | sed -e "s,^$libname$shrext\\\\.,," \ 13809 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13810 | sed 1q ) 2>/dev/null` 13811 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13812 found_dir="$dir" 13813 found_so="$dir/$libname$shrext.$ver" 13814 fi 13815 else 13816 eval library_names=\"$acl_library_names_spec\" 13817 for f in $library_names; do 13818 if test -f "$dir/$f"; then 13819 found_dir="$dir" 13820 found_so="$dir/$f" 13821 break 13822 fi 13823 done 13824 fi 13825 fi 13826 fi 13827 if test "X$found_dir" = "X"; then 13828 if test -f "$dir/$libname.$acl_libext"; then 13829 found_dir="$dir" 13830 found_a="$dir/$libname.$acl_libext" 13831 fi 13832 fi 13833 if test "X$found_dir" != "X"; then 13834 if test -f "$dir/$libname.la"; then 13835 found_la="$dir/$libname.la" 13836 fi 13837 fi 13838 fi 13839 if test "X$found_dir" = "X"; then 13840 for x in $LDFLAGS $LTLIBICONV; do 13841 13842 acl_save_prefix="$prefix" 13843 prefix="$acl_final_prefix" 13844 acl_save_exec_prefix="$exec_prefix" 13845 exec_prefix="$acl_final_exec_prefix" 13846 eval x=\"$x\" 13847 exec_prefix="$acl_save_exec_prefix" 13848 prefix="$acl_save_prefix" 13849 13850 case "$x" in 13851 -L*) 13852 dir=`echo "X$x" | sed -e 's/^X-L//'` 13853 if test -n "$acl_shlibext"; then 13854 if test -f "$dir/$libname$shrext"; then 13855 found_dir="$dir" 13856 found_so="$dir/$libname$shrext" 13857 else 13858 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13859 ver=`(cd "$dir" && \ 13860 for f in "$libname$shrext".*; do echo "$f"; done \ 13861 | sed -e "s,^$libname$shrext\\\\.,," \ 13862 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13863 | sed 1q ) 2>/dev/null` 13864 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13865 found_dir="$dir" 13866 found_so="$dir/$libname$shrext.$ver" 13867 fi 13868 else 13869 eval library_names=\"$acl_library_names_spec\" 13870 for f in $library_names; do 13871 if test -f "$dir/$f"; then 13872 found_dir="$dir" 13873 found_so="$dir/$f" 13874 break 13875 fi 13876 done 13877 fi 13878 fi 13879 fi 13880 if test "X$found_dir" = "X"; then 13881 if test -f "$dir/$libname.$acl_libext"; then 13882 found_dir="$dir" 13883 found_a="$dir/$libname.$acl_libext" 13884 fi 13885 fi 13886 if test "X$found_dir" != "X"; then 13887 if test -f "$dir/$libname.la"; then 13888 found_la="$dir/$libname.la" 13889 fi 13890 fi 13891 ;; 13892 esac 13893 if test "X$found_dir" != "X"; then 13894 break 13895 fi 13896 done 13897 fi 13898 if test "X$found_dir" != "X"; then 13899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 13900 if test "X$found_so" != "X"; then 13901 if test "$enable_rpath" = no \ 13902 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 13903 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 13904 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13905 else 13906 haveit= 13907 for x in $ltrpathdirs; do 13908 if test "X$x" = "X$found_dir"; then 13909 haveit=yes 13910 break 13911 fi 13912 done 13913 if test -z "$haveit"; then 13914 ltrpathdirs="$ltrpathdirs $found_dir" 13915 fi 13916 if test "$acl_hardcode_direct" = yes; then 13917 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13918 else 13919 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 13920 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13921 haveit= 13922 for x in $rpathdirs; do 13923 if test "X$x" = "X$found_dir"; then 13924 haveit=yes 13925 break 13926 fi 13927 done 13928 if test -z "$haveit"; then 13929 rpathdirs="$rpathdirs $found_dir" 13930 fi 13931 else 13932 haveit= 13933 for x in $LDFLAGS $LIBICONV; do 13934 13935 acl_save_prefix="$prefix" 13936 prefix="$acl_final_prefix" 13937 acl_save_exec_prefix="$exec_prefix" 13938 exec_prefix="$acl_final_exec_prefix" 13939 eval x=\"$x\" 13940 exec_prefix="$acl_save_exec_prefix" 13941 prefix="$acl_save_prefix" 13942 13943 if test "X$x" = "X-L$found_dir"; then 13944 haveit=yes 13945 break 13946 fi 13947 done 13948 if test -z "$haveit"; then 13949 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 13950 fi 13951 if test "$acl_hardcode_minus_L" != no; then 13952 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13953 else 13954 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13955 fi 13956 fi 13957 fi 13958 fi 13959 else 13960 if test "X$found_a" != "X"; then 13961 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 13962 else 13963 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 13964 fi 13965 fi 13966 additional_includedir= 13967 case "$found_dir" in 13968 */$acl_libdirstem | */$acl_libdirstem/) 13969 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 13970 if test "$name" = 'iconv'; then 13971 LIBICONV_PREFIX="$basedir" 13972 fi 13973 additional_includedir="$basedir/include" 13974 ;; 13975 */$acl_libdirstem2 | */$acl_libdirstem2/) 13976 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 13977 if test "$name" = 'iconv'; then 13978 LIBICONV_PREFIX="$basedir" 13979 fi 13980 additional_includedir="$basedir/include" 13981 ;; 13982 esac 13983 if test "X$additional_includedir" != "X"; then 13984 if test "X$additional_includedir" != "X/usr/include"; then 13985 haveit= 13986 if test "X$additional_includedir" = "X/usr/local/include"; then 13987 if test -n "$GCC"; then 13988 case $host_os in 13989 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13990 esac 13991 fi 13992 fi 13993 if test -z "$haveit"; then 13994 for x in $CPPFLAGS $INCICONV; do 13995 13996 acl_save_prefix="$prefix" 13997 prefix="$acl_final_prefix" 13998 acl_save_exec_prefix="$exec_prefix" 13999 exec_prefix="$acl_final_exec_prefix" 14000 eval x=\"$x\" 14001 exec_prefix="$acl_save_exec_prefix" 14002 prefix="$acl_save_prefix" 14003 14004 if test "X$x" = "X-I$additional_includedir"; then 14005 haveit=yes 14006 break 14007 fi 14008 done 14009 if test -z "$haveit"; then 14010 if test -d "$additional_includedir"; then 14011 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 14012 fi 14013 fi 14014 fi 14015 fi 14016 fi 14017 if test -n "$found_la"; then 14018 save_libdir="$libdir" 14019 case "$found_la" in 14020 */* | *\\*) . "$found_la" ;; 14021 *) . "./$found_la" ;; 14022 esac 14023 libdir="$save_libdir" 14024 for dep in $dependency_libs; do 14025 case "$dep" in 14026 -L*) 14027 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14028 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 14029 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 14030 haveit= 14031 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 14032 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 14033 if test -n "$GCC"; then 14034 case $host_os in 14035 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14036 esac 14037 fi 14038 fi 14039 if test -z "$haveit"; then 14040 haveit= 14041 for x in $LDFLAGS $LIBICONV; do 14042 14043 acl_save_prefix="$prefix" 14044 prefix="$acl_final_prefix" 14045 acl_save_exec_prefix="$exec_prefix" 14046 exec_prefix="$acl_final_exec_prefix" 14047 eval x=\"$x\" 14048 exec_prefix="$acl_save_exec_prefix" 14049 prefix="$acl_save_prefix" 14050 14051 if test "X$x" = "X-L$additional_libdir"; then 14052 haveit=yes 14053 break 14054 fi 14055 done 14056 if test -z "$haveit"; then 14057 if test -d "$additional_libdir"; then 14058 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 14059 fi 14060 fi 14061 haveit= 14062 for x in $LDFLAGS $LTLIBICONV; do 14063 14064 acl_save_prefix="$prefix" 14065 prefix="$acl_final_prefix" 14066 acl_save_exec_prefix="$exec_prefix" 14067 exec_prefix="$acl_final_exec_prefix" 14068 eval x=\"$x\" 14069 exec_prefix="$acl_save_exec_prefix" 14070 prefix="$acl_save_prefix" 14071 14072 if test "X$x" = "X-L$additional_libdir"; then 14073 haveit=yes 14074 break 14075 fi 14076 done 14077 if test -z "$haveit"; then 14078 if test -d "$additional_libdir"; then 14079 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 14080 fi 14081 fi 14082 fi 14083 fi 14084 ;; 14085 -R*) 14086 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14087 if test "$enable_rpath" != no; then 14088 haveit= 14089 for x in $rpathdirs; do 14090 if test "X$x" = "X$dir"; then 14091 haveit=yes 14092 break 14093 fi 14094 done 14095 if test -z "$haveit"; then 14096 rpathdirs="$rpathdirs $dir" 14097 fi 14098 haveit= 14099 for x in $ltrpathdirs; do 14100 if test "X$x" = "X$dir"; then 14101 haveit=yes 14102 break 14103 fi 14104 done 14105 if test -z "$haveit"; then 14106 ltrpathdirs="$ltrpathdirs $dir" 14107 fi 14108 fi 14109 ;; 14110 -l*) 14111 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14112 ;; 14113 *.la) 14114 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14115 ;; 14116 *) 14117 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 14118 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 14119 ;; 14120 esac 14121 done 14122 fi 14123 else 14124 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 14125 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 14126 fi 14127 fi 14128 fi 14129 done 14130 done 14131 if test "X$rpathdirs" != "X"; then 14132 if test -n "$acl_hardcode_libdir_separator"; then 14133 alldirs= 14134 for found_dir in $rpathdirs; do 14135 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 14136 done 14137 acl_save_libdir="$libdir" 14138 libdir="$alldirs" 14139 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14140 libdir="$acl_save_libdir" 14141 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14142 else 14143 for found_dir in $rpathdirs; do 14144 acl_save_libdir="$libdir" 14145 libdir="$found_dir" 14146 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14147 libdir="$acl_save_libdir" 14148 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14149 done 14150 fi 14151 fi 14152 if test "X$ltrpathdirs" != "X"; then 14153 for found_dir in $ltrpathdirs; do 14154 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 14155 done 14156 fi 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 14189$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 14190if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 14191 $as_echo_n "(cached) " >&6 14192else 14193 gt_save_LIBS="$LIBS" 14194 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14196/* end confdefs.h. */ 14197#include <CoreFoundation/CFPreferences.h> 14198int 14199main () 14200{ 14201CFPreferencesCopyAppValue(NULL, NULL) 14202 ; 14203 return 0; 14204} 14205_ACEOF 14206if ac_fn_c_try_link "$LINENO"; then : 14207 gt_cv_func_CFPreferencesCopyAppValue=yes 14208else 14209 gt_cv_func_CFPreferencesCopyAppValue=no 14210fi 14211rm -f core conftest.err conftest.$ac_objext \ 14212 conftest$ac_exeext conftest.$ac_ext 14213 LIBS="$gt_save_LIBS" 14214fi 14215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 14216$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 14217 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 14218 14219$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 14220 14221 fi 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 14223$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 14224if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 14225 $as_echo_n "(cached) " >&6 14226else 14227 gt_save_LIBS="$LIBS" 14228 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14230/* end confdefs.h. */ 14231#include <CoreFoundation/CFLocale.h> 14232int 14233main () 14234{ 14235CFLocaleCopyCurrent(); 14236 ; 14237 return 0; 14238} 14239_ACEOF 14240if ac_fn_c_try_link "$LINENO"; then : 14241 gt_cv_func_CFLocaleCopyCurrent=yes 14242else 14243 gt_cv_func_CFLocaleCopyCurrent=no 14244fi 14245rm -f core conftest.err conftest.$ac_objext \ 14246 conftest$ac_exeext conftest.$ac_ext 14247 LIBS="$gt_save_LIBS" 14248fi 14249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 14250$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 14251 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 14252 14253$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 14254 14255 fi 14256 INTL_MACOSX_LIBS= 14257 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 14258 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 14259 fi 14260 14261 14262 14263 14264 14265 14266 LIBINTL= 14267 LTLIBINTL= 14268 POSUB= 14269 14270 case " $gt_needs " in 14271 *" need-formatstring-macros "*) gt_api_version=3 ;; 14272 *" need-ngettext "*) gt_api_version=2 ;; 14273 *) gt_api_version=1 ;; 14274 esac 14275 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 14276 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 14277 14278 if test "$USE_NLS" = "yes"; then 14279 gt_use_preinstalled_gnugettext=no 14280 14281 14282 if test $gt_api_version -ge 3; then 14283 gt_revision_test_code=' 14284#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 14285#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 14286#endif 14287typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 14288' 14289 else 14290 gt_revision_test_code= 14291 fi 14292 if test $gt_api_version -ge 2; then 14293 gt_expression_test_code=' + * ngettext ("", "", 0)' 14294 else 14295 gt_expression_test_code= 14296 fi 14297 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 14299$as_echo_n "checking for GNU gettext in libc... " >&6; } 14300if eval \${$gt_func_gnugettext_libc+:} false; then : 14301 $as_echo_n "(cached) " >&6 14302else 14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14304/* end confdefs.h. */ 14305 14306#include <libintl.h> 14307#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 14308extern int _nl_msg_cat_cntr; 14309extern int *_nl_domain_bindings; 14310#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 14311#else 14312#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 14313#endif 14314$gt_revision_test_code 14315 14316int 14317main () 14318{ 14319 14320bindtextdomain ("", ""); 14321return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 14322 14323 ; 14324 return 0; 14325} 14326_ACEOF 14327if ac_fn_c_try_link "$LINENO"; then : 14328 eval "$gt_func_gnugettext_libc=yes" 14329else 14330 eval "$gt_func_gnugettext_libc=no" 14331fi 14332rm -f core conftest.err conftest.$ac_objext \ 14333 conftest$ac_exeext conftest.$ac_ext 14334fi 14335eval ac_res=\$$gt_func_gnugettext_libc 14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14337$as_echo "$ac_res" >&6; } 14338 14339 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 14340 14341 14342 14343 14344 14345 am_save_CPPFLAGS="$CPPFLAGS" 14346 14347 for element in $INCICONV; do 14348 haveit= 14349 for x in $CPPFLAGS; do 14350 14351 acl_save_prefix="$prefix" 14352 prefix="$acl_final_prefix" 14353 acl_save_exec_prefix="$exec_prefix" 14354 exec_prefix="$acl_final_exec_prefix" 14355 eval x=\"$x\" 14356 exec_prefix="$acl_save_exec_prefix" 14357 prefix="$acl_save_prefix" 14358 14359 if test "X$x" = "X$element"; then 14360 haveit=yes 14361 break 14362 fi 14363 done 14364 if test -z "$haveit"; then 14365 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14366 fi 14367 done 14368 14369 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 14371$as_echo_n "checking for iconv... " >&6; } 14372if ${am_cv_func_iconv+:} false; then : 14373 $as_echo_n "(cached) " >&6 14374else 14375 14376 am_cv_func_iconv="no, consider installing GNU libiconv" 14377 am_cv_lib_iconv=no 14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14379/* end confdefs.h. */ 14380 14381#include <stdlib.h> 14382#include <iconv.h> 14383 14384int 14385main () 14386{ 14387iconv_t cd = iconv_open("",""); 14388 iconv(cd,NULL,NULL,NULL,NULL); 14389 iconv_close(cd); 14390 ; 14391 return 0; 14392} 14393_ACEOF 14394if ac_fn_c_try_link "$LINENO"; then : 14395 am_cv_func_iconv=yes 14396fi 14397rm -f core conftest.err conftest.$ac_objext \ 14398 conftest$ac_exeext conftest.$ac_ext 14399 if test "$am_cv_func_iconv" != yes; then 14400 am_save_LIBS="$LIBS" 14401 LIBS="$LIBS $LIBICONV" 14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14403/* end confdefs.h. */ 14404 14405#include <stdlib.h> 14406#include <iconv.h> 14407 14408int 14409main () 14410{ 14411iconv_t cd = iconv_open("",""); 14412 iconv(cd,NULL,NULL,NULL,NULL); 14413 iconv_close(cd); 14414 ; 14415 return 0; 14416} 14417_ACEOF 14418if ac_fn_c_try_link "$LINENO"; then : 14419 am_cv_lib_iconv=yes 14420 am_cv_func_iconv=yes 14421fi 14422rm -f core conftest.err conftest.$ac_objext \ 14423 conftest$ac_exeext conftest.$ac_ext 14424 LIBS="$am_save_LIBS" 14425 fi 14426 14427fi 14428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 14429$as_echo "$am_cv_func_iconv" >&6; } 14430 if test "$am_cv_func_iconv" = yes; then 14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 14432$as_echo_n "checking for working iconv... " >&6; } 14433if ${am_cv_func_iconv_works+:} false; then : 14434 $as_echo_n "(cached) " >&6 14435else 14436 14437 am_save_LIBS="$LIBS" 14438 if test $am_cv_lib_iconv = yes; then 14439 LIBS="$LIBS $LIBICONV" 14440 fi 14441 am_cv_func_iconv_works=no 14442 for ac_iconv_const in '' 'const'; do 14443 if test "$cross_compiling" = yes; then : 14444 case "$host_os" in 14445 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 14446 *) am_cv_func_iconv_works="guessing yes" ;; 14447 esac 14448else 14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14450/* end confdefs.h. */ 14451 14452#include <iconv.h> 14453#include <string.h> 14454 14455#ifndef ICONV_CONST 14456# define ICONV_CONST $ac_iconv_const 14457#endif 14458 14459int 14460main () 14461{ 14462int result = 0; 14463 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 14464 returns. */ 14465 { 14466 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 14467 if (cd_utf8_to_88591 != (iconv_t)(-1)) 14468 { 14469 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 14470 char buf[10]; 14471 ICONV_CONST char *inptr = input; 14472 size_t inbytesleft = strlen (input); 14473 char *outptr = buf; 14474 size_t outbytesleft = sizeof (buf); 14475 size_t res = iconv (cd_utf8_to_88591, 14476 &inptr, &inbytesleft, 14477 &outptr, &outbytesleft); 14478 if (res == 0) 14479 result |= 1; 14480 iconv_close (cd_utf8_to_88591); 14481 } 14482 } 14483 /* Test against Solaris 10 bug: Failures are not distinguishable from 14484 successful returns. */ 14485 { 14486 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 14487 if (cd_ascii_to_88591 != (iconv_t)(-1)) 14488 { 14489 static ICONV_CONST char input[] = "\263"; 14490 char buf[10]; 14491 ICONV_CONST char *inptr = input; 14492 size_t inbytesleft = strlen (input); 14493 char *outptr = buf; 14494 size_t outbytesleft = sizeof (buf); 14495 size_t res = iconv (cd_ascii_to_88591, 14496 &inptr, &inbytesleft, 14497 &outptr, &outbytesleft); 14498 if (res == 0) 14499 result |= 2; 14500 iconv_close (cd_ascii_to_88591); 14501 } 14502 } 14503 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 14504 { 14505 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 14506 if (cd_88591_to_utf8 != (iconv_t)(-1)) 14507 { 14508 static ICONV_CONST char input[] = "\304"; 14509 static char buf[2] = { (char)0xDE, (char)0xAD }; 14510 ICONV_CONST char *inptr = input; 14511 size_t inbytesleft = 1; 14512 char *outptr = buf; 14513 size_t outbytesleft = 1; 14514 size_t res = iconv (cd_88591_to_utf8, 14515 &inptr, &inbytesleft, 14516 &outptr, &outbytesleft); 14517 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 14518 result |= 4; 14519 iconv_close (cd_88591_to_utf8); 14520 } 14521 } 14522#if 0 /* This bug could be worked around by the caller. */ 14523 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 14524 { 14525 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 14526 if (cd_88591_to_utf8 != (iconv_t)(-1)) 14527 { 14528 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 14529 char buf[50]; 14530 ICONV_CONST char *inptr = input; 14531 size_t inbytesleft = strlen (input); 14532 char *outptr = buf; 14533 size_t outbytesleft = sizeof (buf); 14534 size_t res = iconv (cd_88591_to_utf8, 14535 &inptr, &inbytesleft, 14536 &outptr, &outbytesleft); 14537 if ((int)res > 0) 14538 result |= 8; 14539 iconv_close (cd_88591_to_utf8); 14540 } 14541 } 14542#endif 14543 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 14544 provided. */ 14545 if (/* Try standardized names. */ 14546 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 14547 /* Try IRIX, OSF/1 names. */ 14548 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 14549 /* Try AIX names. */ 14550 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 14551 /* Try HP-UX names. */ 14552 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 14553 result |= 16; 14554 return result; 14555 14556 ; 14557 return 0; 14558} 14559_ACEOF 14560if ac_fn_c_try_run "$LINENO"; then : 14561 am_cv_func_iconv_works=yes 14562fi 14563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14564 conftest.$ac_objext conftest.beam conftest.$ac_ext 14565fi 14566 14567 test "$am_cv_func_iconv_works" = no || break 14568 done 14569 LIBS="$am_save_LIBS" 14570 14571fi 14572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 14573$as_echo "$am_cv_func_iconv_works" >&6; } 14574 case "$am_cv_func_iconv_works" in 14575 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 14576 *) am_func_iconv=yes ;; 14577 esac 14578 else 14579 am_func_iconv=no am_cv_lib_iconv=no 14580 fi 14581 if test "$am_func_iconv" = yes; then 14582 14583$as_echo "#define HAVE_ICONV 1" >>confdefs.h 14584 14585 fi 14586 if test "$am_cv_lib_iconv" = yes; then 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 14588$as_echo_n "checking how to link with libiconv... " >&6; } 14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 14590$as_echo "$LIBICONV" >&6; } 14591 else 14592 CPPFLAGS="$am_save_CPPFLAGS" 14593 LIBICONV= 14594 LTLIBICONV= 14595 fi 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 use_additional=yes 14608 14609 acl_save_prefix="$prefix" 14610 prefix="$acl_final_prefix" 14611 acl_save_exec_prefix="$exec_prefix" 14612 exec_prefix="$acl_final_exec_prefix" 14613 14614 eval additional_includedir=\"$includedir\" 14615 eval additional_libdir=\"$libdir\" 14616 14617 exec_prefix="$acl_save_exec_prefix" 14618 prefix="$acl_save_prefix" 14619 14620 14621# Check whether --with-libintl-prefix was given. 14622if test "${with_libintl_prefix+set}" = set; then : 14623 withval=$with_libintl_prefix; 14624 if test "X$withval" = "Xno"; then 14625 use_additional=no 14626 else 14627 if test "X$withval" = "X"; then 14628 14629 acl_save_prefix="$prefix" 14630 prefix="$acl_final_prefix" 14631 acl_save_exec_prefix="$exec_prefix" 14632 exec_prefix="$acl_final_exec_prefix" 14633 14634 eval additional_includedir=\"$includedir\" 14635 eval additional_libdir=\"$libdir\" 14636 14637 exec_prefix="$acl_save_exec_prefix" 14638 prefix="$acl_save_prefix" 14639 14640 else 14641 additional_includedir="$withval/include" 14642 additional_libdir="$withval/$acl_libdirstem" 14643 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 14644 && ! test -d "$withval/$acl_libdirstem"; then 14645 additional_libdir="$withval/$acl_libdirstem2" 14646 fi 14647 fi 14648 fi 14649 14650fi 14651 14652 LIBINTL= 14653 LTLIBINTL= 14654 INCINTL= 14655 LIBINTL_PREFIX= 14656 HAVE_LIBINTL= 14657 rpathdirs= 14658 ltrpathdirs= 14659 names_already_handled= 14660 names_next_round='intl ' 14661 while test -n "$names_next_round"; do 14662 names_this_round="$names_next_round" 14663 names_next_round= 14664 for name in $names_this_round; do 14665 already_handled= 14666 for n in $names_already_handled; do 14667 if test "$n" = "$name"; then 14668 already_handled=yes 14669 break 14670 fi 14671 done 14672 if test -z "$already_handled"; then 14673 names_already_handled="$names_already_handled $name" 14674 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 14675 eval value=\"\$HAVE_LIB$uppername\" 14676 if test -n "$value"; then 14677 if test "$value" = yes; then 14678 eval value=\"\$LIB$uppername\" 14679 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 14680 eval value=\"\$LTLIB$uppername\" 14681 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 14682 else 14683 : 14684 fi 14685 else 14686 found_dir= 14687 found_la= 14688 found_so= 14689 found_a= 14690 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 14691 if test -n "$acl_shlibext"; then 14692 shrext=".$acl_shlibext" # typically: shrext=.so 14693 else 14694 shrext= 14695 fi 14696 if test $use_additional = yes; then 14697 dir="$additional_libdir" 14698 if test -n "$acl_shlibext"; then 14699 if test -f "$dir/$libname$shrext"; then 14700 found_dir="$dir" 14701 found_so="$dir/$libname$shrext" 14702 else 14703 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 14704 ver=`(cd "$dir" && \ 14705 for f in "$libname$shrext".*; do echo "$f"; done \ 14706 | sed -e "s,^$libname$shrext\\\\.,," \ 14707 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 14708 | sed 1q ) 2>/dev/null` 14709 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 14710 found_dir="$dir" 14711 found_so="$dir/$libname$shrext.$ver" 14712 fi 14713 else 14714 eval library_names=\"$acl_library_names_spec\" 14715 for f in $library_names; do 14716 if test -f "$dir/$f"; then 14717 found_dir="$dir" 14718 found_so="$dir/$f" 14719 break 14720 fi 14721 done 14722 fi 14723 fi 14724 fi 14725 if test "X$found_dir" = "X"; then 14726 if test -f "$dir/$libname.$acl_libext"; then 14727 found_dir="$dir" 14728 found_a="$dir/$libname.$acl_libext" 14729 fi 14730 fi 14731 if test "X$found_dir" != "X"; then 14732 if test -f "$dir/$libname.la"; then 14733 found_la="$dir/$libname.la" 14734 fi 14735 fi 14736 fi 14737 if test "X$found_dir" = "X"; then 14738 for x in $LDFLAGS $LTLIBINTL; do 14739 14740 acl_save_prefix="$prefix" 14741 prefix="$acl_final_prefix" 14742 acl_save_exec_prefix="$exec_prefix" 14743 exec_prefix="$acl_final_exec_prefix" 14744 eval x=\"$x\" 14745 exec_prefix="$acl_save_exec_prefix" 14746 prefix="$acl_save_prefix" 14747 14748 case "$x" in 14749 -L*) 14750 dir=`echo "X$x" | sed -e 's/^X-L//'` 14751 if test -n "$acl_shlibext"; then 14752 if test -f "$dir/$libname$shrext"; then 14753 found_dir="$dir" 14754 found_so="$dir/$libname$shrext" 14755 else 14756 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 14757 ver=`(cd "$dir" && \ 14758 for f in "$libname$shrext".*; do echo "$f"; done \ 14759 | sed -e "s,^$libname$shrext\\\\.,," \ 14760 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 14761 | sed 1q ) 2>/dev/null` 14762 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 14763 found_dir="$dir" 14764 found_so="$dir/$libname$shrext.$ver" 14765 fi 14766 else 14767 eval library_names=\"$acl_library_names_spec\" 14768 for f in $library_names; do 14769 if test -f "$dir/$f"; then 14770 found_dir="$dir" 14771 found_so="$dir/$f" 14772 break 14773 fi 14774 done 14775 fi 14776 fi 14777 fi 14778 if test "X$found_dir" = "X"; then 14779 if test -f "$dir/$libname.$acl_libext"; then 14780 found_dir="$dir" 14781 found_a="$dir/$libname.$acl_libext" 14782 fi 14783 fi 14784 if test "X$found_dir" != "X"; then 14785 if test -f "$dir/$libname.la"; then 14786 found_la="$dir/$libname.la" 14787 fi 14788 fi 14789 ;; 14790 esac 14791 if test "X$found_dir" != "X"; then 14792 break 14793 fi 14794 done 14795 fi 14796 if test "X$found_dir" != "X"; then 14797 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 14798 if test "X$found_so" != "X"; then 14799 if test "$enable_rpath" = no \ 14800 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 14801 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 14802 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14803 else 14804 haveit= 14805 for x in $ltrpathdirs; do 14806 if test "X$x" = "X$found_dir"; then 14807 haveit=yes 14808 break 14809 fi 14810 done 14811 if test -z "$haveit"; then 14812 ltrpathdirs="$ltrpathdirs $found_dir" 14813 fi 14814 if test "$acl_hardcode_direct" = yes; then 14815 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14816 else 14817 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 14818 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14819 haveit= 14820 for x in $rpathdirs; do 14821 if test "X$x" = "X$found_dir"; then 14822 haveit=yes 14823 break 14824 fi 14825 done 14826 if test -z "$haveit"; then 14827 rpathdirs="$rpathdirs $found_dir" 14828 fi 14829 else 14830 haveit= 14831 for x in $LDFLAGS $LIBINTL; do 14832 14833 acl_save_prefix="$prefix" 14834 prefix="$acl_final_prefix" 14835 acl_save_exec_prefix="$exec_prefix" 14836 exec_prefix="$acl_final_exec_prefix" 14837 eval x=\"$x\" 14838 exec_prefix="$acl_save_exec_prefix" 14839 prefix="$acl_save_prefix" 14840 14841 if test "X$x" = "X-L$found_dir"; then 14842 haveit=yes 14843 break 14844 fi 14845 done 14846 if test -z "$haveit"; then 14847 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 14848 fi 14849 if test "$acl_hardcode_minus_L" != no; then 14850 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14851 else 14852 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14853 fi 14854 fi 14855 fi 14856 fi 14857 else 14858 if test "X$found_a" != "X"; then 14859 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 14860 else 14861 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 14862 fi 14863 fi 14864 additional_includedir= 14865 case "$found_dir" in 14866 */$acl_libdirstem | */$acl_libdirstem/) 14867 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 14868 if test "$name" = 'intl'; then 14869 LIBINTL_PREFIX="$basedir" 14870 fi 14871 additional_includedir="$basedir/include" 14872 ;; 14873 */$acl_libdirstem2 | */$acl_libdirstem2/) 14874 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 14875 if test "$name" = 'intl'; then 14876 LIBINTL_PREFIX="$basedir" 14877 fi 14878 additional_includedir="$basedir/include" 14879 ;; 14880 esac 14881 if test "X$additional_includedir" != "X"; then 14882 if test "X$additional_includedir" != "X/usr/include"; then 14883 haveit= 14884 if test "X$additional_includedir" = "X/usr/local/include"; then 14885 if test -n "$GCC"; then 14886 case $host_os in 14887 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14888 esac 14889 fi 14890 fi 14891 if test -z "$haveit"; then 14892 for x in $CPPFLAGS $INCINTL; do 14893 14894 acl_save_prefix="$prefix" 14895 prefix="$acl_final_prefix" 14896 acl_save_exec_prefix="$exec_prefix" 14897 exec_prefix="$acl_final_exec_prefix" 14898 eval x=\"$x\" 14899 exec_prefix="$acl_save_exec_prefix" 14900 prefix="$acl_save_prefix" 14901 14902 if test "X$x" = "X-I$additional_includedir"; then 14903 haveit=yes 14904 break 14905 fi 14906 done 14907 if test -z "$haveit"; then 14908 if test -d "$additional_includedir"; then 14909 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 14910 fi 14911 fi 14912 fi 14913 fi 14914 fi 14915 if test -n "$found_la"; then 14916 save_libdir="$libdir" 14917 case "$found_la" in 14918 */* | *\\*) . "$found_la" ;; 14919 *) . "./$found_la" ;; 14920 esac 14921 libdir="$save_libdir" 14922 for dep in $dependency_libs; do 14923 case "$dep" in 14924 -L*) 14925 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14926 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 14927 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 14928 haveit= 14929 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 14930 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 14931 if test -n "$GCC"; then 14932 case $host_os in 14933 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14934 esac 14935 fi 14936 fi 14937 if test -z "$haveit"; then 14938 haveit= 14939 for x in $LDFLAGS $LIBINTL; do 14940 14941 acl_save_prefix="$prefix" 14942 prefix="$acl_final_prefix" 14943 acl_save_exec_prefix="$exec_prefix" 14944 exec_prefix="$acl_final_exec_prefix" 14945 eval x=\"$x\" 14946 exec_prefix="$acl_save_exec_prefix" 14947 prefix="$acl_save_prefix" 14948 14949 if test "X$x" = "X-L$additional_libdir"; then 14950 haveit=yes 14951 break 14952 fi 14953 done 14954 if test -z "$haveit"; then 14955 if test -d "$additional_libdir"; then 14956 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 14957 fi 14958 fi 14959 haveit= 14960 for x in $LDFLAGS $LTLIBINTL; do 14961 14962 acl_save_prefix="$prefix" 14963 prefix="$acl_final_prefix" 14964 acl_save_exec_prefix="$exec_prefix" 14965 exec_prefix="$acl_final_exec_prefix" 14966 eval x=\"$x\" 14967 exec_prefix="$acl_save_exec_prefix" 14968 prefix="$acl_save_prefix" 14969 14970 if test "X$x" = "X-L$additional_libdir"; then 14971 haveit=yes 14972 break 14973 fi 14974 done 14975 if test -z "$haveit"; then 14976 if test -d "$additional_libdir"; then 14977 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 14978 fi 14979 fi 14980 fi 14981 fi 14982 ;; 14983 -R*) 14984 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14985 if test "$enable_rpath" != no; then 14986 haveit= 14987 for x in $rpathdirs; do 14988 if test "X$x" = "X$dir"; then 14989 haveit=yes 14990 break 14991 fi 14992 done 14993 if test -z "$haveit"; then 14994 rpathdirs="$rpathdirs $dir" 14995 fi 14996 haveit= 14997 for x in $ltrpathdirs; do 14998 if test "X$x" = "X$dir"; then 14999 haveit=yes 15000 break 15001 fi 15002 done 15003 if test -z "$haveit"; then 15004 ltrpathdirs="$ltrpathdirs $dir" 15005 fi 15006 fi 15007 ;; 15008 -l*) 15009 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 15010 ;; 15011 *.la) 15012 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 15013 ;; 15014 *) 15015 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 15016 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 15017 ;; 15018 esac 15019 done 15020 fi 15021 else 15022 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 15023 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 15024 fi 15025 fi 15026 fi 15027 done 15028 done 15029 if test "X$rpathdirs" != "X"; then 15030 if test -n "$acl_hardcode_libdir_separator"; then 15031 alldirs= 15032 for found_dir in $rpathdirs; do 15033 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 15034 done 15035 acl_save_libdir="$libdir" 15036 libdir="$alldirs" 15037 eval flag=\"$acl_hardcode_libdir_flag_spec\" 15038 libdir="$acl_save_libdir" 15039 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 15040 else 15041 for found_dir in $rpathdirs; do 15042 acl_save_libdir="$libdir" 15043 libdir="$found_dir" 15044 eval flag=\"$acl_hardcode_libdir_flag_spec\" 15045 libdir="$acl_save_libdir" 15046 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 15047 done 15048 fi 15049 fi 15050 if test "X$ltrpathdirs" != "X"; then 15051 for found_dir in $ltrpathdirs; do 15052 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 15053 done 15054 fi 15055 15056 15057 15058 15059 15060 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 15062$as_echo_n "checking for GNU gettext in libintl... " >&6; } 15063if eval \${$gt_func_gnugettext_libintl+:} false; then : 15064 $as_echo_n "(cached) " >&6 15065else 15066 gt_save_CPPFLAGS="$CPPFLAGS" 15067 CPPFLAGS="$CPPFLAGS $INCINTL" 15068 gt_save_LIBS="$LIBS" 15069 LIBS="$LIBS $LIBINTL" 15070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15071/* end confdefs.h. */ 15072 15073#include <libintl.h> 15074#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 15075extern int _nl_msg_cat_cntr; 15076extern 15077#ifdef __cplusplus 15078"C" 15079#endif 15080const char *_nl_expand_alias (const char *); 15081#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 15082#else 15083#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 15084#endif 15085$gt_revision_test_code 15086 15087int 15088main () 15089{ 15090 15091bindtextdomain ("", ""); 15092return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 15093 15094 ; 15095 return 0; 15096} 15097_ACEOF 15098if ac_fn_c_try_link "$LINENO"; then : 15099 eval "$gt_func_gnugettext_libintl=yes" 15100else 15101 eval "$gt_func_gnugettext_libintl=no" 15102fi 15103rm -f core conftest.err conftest.$ac_objext \ 15104 conftest$ac_exeext conftest.$ac_ext 15105 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 15106 LIBS="$LIBS $LIBICONV" 15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15108/* end confdefs.h. */ 15109 15110#include <libintl.h> 15111#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 15112extern int _nl_msg_cat_cntr; 15113extern 15114#ifdef __cplusplus 15115"C" 15116#endif 15117const char *_nl_expand_alias (const char *); 15118#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 15119#else 15120#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 15121#endif 15122$gt_revision_test_code 15123 15124int 15125main () 15126{ 15127 15128bindtextdomain ("", ""); 15129return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 15130 15131 ; 15132 return 0; 15133} 15134_ACEOF 15135if ac_fn_c_try_link "$LINENO"; then : 15136 LIBINTL="$LIBINTL $LIBICONV" 15137 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 15138 eval "$gt_func_gnugettext_libintl=yes" 15139 15140fi 15141rm -f core conftest.err conftest.$ac_objext \ 15142 conftest$ac_exeext conftest.$ac_ext 15143 fi 15144 CPPFLAGS="$gt_save_CPPFLAGS" 15145 LIBS="$gt_save_LIBS" 15146fi 15147eval ac_res=\$$gt_func_gnugettext_libintl 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15149$as_echo "$ac_res" >&6; } 15150 fi 15151 15152 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 15153 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 15154 && test "$PACKAGE" != gettext-runtime \ 15155 && test "$PACKAGE" != gettext-tools; }; then 15156 gt_use_preinstalled_gnugettext=yes 15157 else 15158 LIBINTL= 15159 LTLIBINTL= 15160 INCINTL= 15161 fi 15162 15163 15164 15165 if test -n "$INTL_MACOSX_LIBS"; then 15166 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 15167 || test "$nls_cv_use_gnu_gettext" = "yes"; then 15168 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 15169 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 15170 fi 15171 fi 15172 15173 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 15174 || test "$nls_cv_use_gnu_gettext" = "yes"; then 15175 15176$as_echo "#define ENABLE_NLS 1" >>confdefs.h 15177 15178 else 15179 USE_NLS=no 15180 fi 15181 fi 15182 15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 15184$as_echo_n "checking whether to use NLS... " >&6; } 15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 15186$as_echo "$USE_NLS" >&6; } 15187 if test "$USE_NLS" = "yes"; then 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 15189$as_echo_n "checking where the gettext function comes from... " >&6; } 15190 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 15191 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 15192 gt_source="external libintl" 15193 else 15194 gt_source="libc" 15195 fi 15196 else 15197 gt_source="included intl directory" 15198 fi 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 15200$as_echo "$gt_source" >&6; } 15201 fi 15202 15203 if test "$USE_NLS" = "yes"; then 15204 15205 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 15206 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 15208$as_echo_n "checking how to link with libintl... " >&6; } 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 15210$as_echo "$LIBINTL" >&6; } 15211 15212 for element in $INCINTL; do 15213 haveit= 15214 for x in $CPPFLAGS; do 15215 15216 acl_save_prefix="$prefix" 15217 prefix="$acl_final_prefix" 15218 acl_save_exec_prefix="$exec_prefix" 15219 exec_prefix="$acl_final_exec_prefix" 15220 eval x=\"$x\" 15221 exec_prefix="$acl_save_exec_prefix" 15222 prefix="$acl_save_prefix" 15223 15224 if test "X$x" = "X$element"; then 15225 haveit=yes 15226 break 15227 fi 15228 done 15229 if test -z "$haveit"; then 15230 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 15231 fi 15232 done 15233 15234 fi 15235 15236 15237$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 15238 15239 15240$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 15241 15242 fi 15243 15244 POSUB=po 15245 fi 15246 15247 15248 15249 INTLLIBS="$LIBINTL" 15250 15251 15252 15253 15254 15255 15256 15257GETTEXT_PACKAGE=libgnomekbd 15258 15259 15260cat >>confdefs.h <<_ACEOF 15261#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 15262_ACEOF 15263 15264 15265# ***************************************************************************** 15266 15267for ac_func in setlocale 15268do : 15269 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 15270if test "x$ac_cv_func_setlocale" = xyes; then : 15271 cat >>confdefs.h <<_ACEOF 15272#define HAVE_SETLOCALE 1 15273_ACEOF 15274 15275fi 15276done 15277 15278 15279LIBM= 15280case $host in 15281*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 15282 # These system don't have libm, or don't need it 15283 ;; 15284*-ncr-sysv4.3*) 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 15286$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 15287if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 15288 $as_echo_n "(cached) " >&6 15289else 15290 ac_check_lib_save_LIBS=$LIBS 15291LIBS="-lmw $LIBS" 15292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15293/* end confdefs.h. */ 15294 15295/* Override any GCC internal prototype to avoid an error. 15296 Use char because int might match the return type of a GCC 15297 builtin and then its argument prototype would still apply. */ 15298#ifdef __cplusplus 15299extern "C" 15300#endif 15301char _mwvalidcheckl (); 15302int 15303main () 15304{ 15305return _mwvalidcheckl (); 15306 ; 15307 return 0; 15308} 15309_ACEOF 15310if ac_fn_c_try_link "$LINENO"; then : 15311 ac_cv_lib_mw__mwvalidcheckl=yes 15312else 15313 ac_cv_lib_mw__mwvalidcheckl=no 15314fi 15315rm -f core conftest.err conftest.$ac_objext \ 15316 conftest$ac_exeext conftest.$ac_ext 15317LIBS=$ac_check_lib_save_LIBS 15318fi 15319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 15320$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 15321if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 15322 LIBM=-lmw 15323fi 15324 15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 15326$as_echo_n "checking for cos in -lm... " >&6; } 15327if ${ac_cv_lib_m_cos+:} false; then : 15328 $as_echo_n "(cached) " >&6 15329else 15330 ac_check_lib_save_LIBS=$LIBS 15331LIBS="-lm $LIBS" 15332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15333/* end confdefs.h. */ 15334 15335/* Override any GCC internal prototype to avoid an error. 15336 Use char because int might match the return type of a GCC 15337 builtin and then its argument prototype would still apply. */ 15338#ifdef __cplusplus 15339extern "C" 15340#endif 15341char cos (); 15342int 15343main () 15344{ 15345return cos (); 15346 ; 15347 return 0; 15348} 15349_ACEOF 15350if ac_fn_c_try_link "$LINENO"; then : 15351 ac_cv_lib_m_cos=yes 15352else 15353 ac_cv_lib_m_cos=no 15354fi 15355rm -f core conftest.err conftest.$ac_objext \ 15356 conftest$ac_exeext conftest.$ac_ext 15357LIBS=$ac_check_lib_save_LIBS 15358fi 15359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 15360$as_echo "$ac_cv_lib_m_cos" >&6; } 15361if test "x$ac_cv_lib_m_cos" = xyes; then : 15362 LIBM="$LIBM -lm" 15363fi 15364 15365 ;; 15366*) 15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 15368$as_echo_n "checking for cos in -lm... " >&6; } 15369if ${ac_cv_lib_m_cos+:} false; then : 15370 $as_echo_n "(cached) " >&6 15371else 15372 ac_check_lib_save_LIBS=$LIBS 15373LIBS="-lm $LIBS" 15374cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15375/* end confdefs.h. */ 15376 15377/* Override any GCC internal prototype to avoid an error. 15378 Use char because int might match the return type of a GCC 15379 builtin and then its argument prototype would still apply. */ 15380#ifdef __cplusplus 15381extern "C" 15382#endif 15383char cos (); 15384int 15385main () 15386{ 15387return cos (); 15388 ; 15389 return 0; 15390} 15391_ACEOF 15392if ac_fn_c_try_link "$LINENO"; then : 15393 ac_cv_lib_m_cos=yes 15394else 15395 ac_cv_lib_m_cos=no 15396fi 15397rm -f core conftest.err conftest.$ac_objext \ 15398 conftest$ac_exeext conftest.$ac_ext 15399LIBS=$ac_check_lib_save_LIBS 15400fi 15401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 15402$as_echo "$ac_cv_lib_m_cos" >&6; } 15403if test "x$ac_cv_lib_m_cos" = xyes; then : 15404 LIBM=-lm 15405fi 15406 15407 ;; 15408esac 15409 15410 15411 15412 15413 15414pkg_failed=no 15415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 15416$as_echo_n "checking for GLIB... " >&6; } 15417 15418if test -n "$GLIB_CFLAGS"; then 15419 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 15420 elif test -n "$PKG_CONFIG"; then 15421 if test -n "$PKG_CONFIG" && \ 15422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gio-2.0 >= \$GLIB_REQUIRED\""; } >&5 15423 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED") 2>&5 15424 ac_status=$? 15425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15426 test $ac_status = 0; }; then 15427 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED" 2>/dev/null` 15428 test "x$?" != "x0" && pkg_failed=yes 15429else 15430 pkg_failed=yes 15431fi 15432 else 15433 pkg_failed=untried 15434fi 15435if test -n "$GLIB_LIBS"; then 15436 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 15437 elif test -n "$PKG_CONFIG"; then 15438 if test -n "$PKG_CONFIG" && \ 15439 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gio-2.0 >= \$GLIB_REQUIRED\""; } >&5 15440 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED") 2>&5 15441 ac_status=$? 15442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15443 test $ac_status = 0; }; then 15444 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED" 2>/dev/null` 15445 test "x$?" != "x0" && pkg_failed=yes 15446else 15447 pkg_failed=yes 15448fi 15449 else 15450 pkg_failed=untried 15451fi 15452 15453 15454 15455if test $pkg_failed = yes; then 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15457$as_echo "no" >&6; } 15458 15459if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15460 _pkg_short_errors_supported=yes 15461else 15462 _pkg_short_errors_supported=no 15463fi 15464 if test $_pkg_short_errors_supported = yes; then 15465 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED" 2>&1` 15466 else 15467 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED" 2>&1` 15468 fi 15469 # Put the nasty error message in config.log where it belongs 15470 echo "$GLIB_PKG_ERRORS" >&5 15471 15472 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED gio-2.0 >= $GLIB_REQUIRED) were not met: 15473 15474$GLIB_PKG_ERRORS 15475 15476Consider adjusting the PKG_CONFIG_PATH environment variable if you 15477installed software in a non-standard prefix. 15478 15479Alternatively, you may set the environment variables GLIB_CFLAGS 15480and GLIB_LIBS to avoid the need to call pkg-config. 15481See the pkg-config man page for more details." "$LINENO" 5 15482elif test $pkg_failed = untried; then 15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15484$as_echo "no" >&6; } 15485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15487as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15488is in your PATH or set the PKG_CONFIG environment variable to the full 15489path to pkg-config. 15490 15491Alternatively, you may set the environment variables GLIB_CFLAGS 15492and GLIB_LIBS to avoid the need to call pkg-config. 15493See the pkg-config man page for more details. 15494 15495To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15496See \`config.log' for more details" "$LINENO" 5; } 15497else 15498 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 15499 GLIB_LIBS=$pkg_cv_GLIB_LIBS 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15501$as_echo "yes" >&6; } 15502 15503fi 15504 15505 15506 15507 15508 15509pkg_failed=no 15510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK" >&5 15511$as_echo_n "checking for GDK... " >&6; } 15512 15513if test -n "$GDK_CFLAGS"; then 15514 pkg_cv_GDK_CFLAGS="$GDK_CFLAGS" 15515 elif test -n "$PKG_CONFIG"; then 15516 if test -n "$PKG_CONFIG" && \ 15517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-3.0 >= \$GDK_REQUIRED\""; } >&5 15518 ($PKG_CONFIG --exists --print-errors "gdk-3.0 >= $GDK_REQUIRED") 2>&5 15519 ac_status=$? 15520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15521 test $ac_status = 0; }; then 15522 pkg_cv_GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-3.0 >= $GDK_REQUIRED" 2>/dev/null` 15523 test "x$?" != "x0" && pkg_failed=yes 15524else 15525 pkg_failed=yes 15526fi 15527 else 15528 pkg_failed=untried 15529fi 15530if test -n "$GDK_LIBS"; then 15531 pkg_cv_GDK_LIBS="$GDK_LIBS" 15532 elif test -n "$PKG_CONFIG"; then 15533 if test -n "$PKG_CONFIG" && \ 15534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdk-3.0 >= \$GDK_REQUIRED\""; } >&5 15535 ($PKG_CONFIG --exists --print-errors "gdk-3.0 >= $GDK_REQUIRED") 2>&5 15536 ac_status=$? 15537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15538 test $ac_status = 0; }; then 15539 pkg_cv_GDK_LIBS=`$PKG_CONFIG --libs "gdk-3.0 >= $GDK_REQUIRED" 2>/dev/null` 15540 test "x$?" != "x0" && pkg_failed=yes 15541else 15542 pkg_failed=yes 15543fi 15544 else 15545 pkg_failed=untried 15546fi 15547 15548 15549 15550if test $pkg_failed = yes; then 15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15552$as_echo "no" >&6; } 15553 15554if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15555 _pkg_short_errors_supported=yes 15556else 15557 _pkg_short_errors_supported=no 15558fi 15559 if test $_pkg_short_errors_supported = yes; then 15560 GDK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdk-3.0 >= $GDK_REQUIRED" 2>&1` 15561 else 15562 GDK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdk-3.0 >= $GDK_REQUIRED" 2>&1` 15563 fi 15564 # Put the nasty error message in config.log where it belongs 15565 echo "$GDK_PKG_ERRORS" >&5 15566 15567 as_fn_error $? "Package requirements (gdk-3.0 >= $GDK_REQUIRED) were not met: 15568 15569$GDK_PKG_ERRORS 15570 15571Consider adjusting the PKG_CONFIG_PATH environment variable if you 15572installed software in a non-standard prefix. 15573 15574Alternatively, you may set the environment variables GDK_CFLAGS 15575and GDK_LIBS to avoid the need to call pkg-config. 15576See the pkg-config man page for more details." "$LINENO" 5 15577elif test $pkg_failed = untried; then 15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15579$as_echo "no" >&6; } 15580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15582as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15583is in your PATH or set the PKG_CONFIG environment variable to the full 15584path to pkg-config. 15585 15586Alternatively, you may set the environment variables GDK_CFLAGS 15587and GDK_LIBS to avoid the need to call pkg-config. 15588See the pkg-config man page for more details. 15589 15590To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15591See \`config.log' for more details" "$LINENO" 5; } 15592else 15593 GDK_CFLAGS=$pkg_cv_GDK_CFLAGS 15594 GDK_LIBS=$pkg_cv_GDK_LIBS 15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15596$as_echo "yes" >&6; } 15597 15598fi 15599 15600 15601 15602 15603 15604pkg_failed=no 15605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 15606$as_echo_n "checking for GTK... " >&6; } 15607 15608if test -n "$GTK_CFLAGS"; then 15609 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 15610 elif test -n "$PKG_CONFIG"; then 15611 if test -n "$PKG_CONFIG" && \ 15612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_REQUIRED\""; } >&5 15613 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_REQUIRED") 2>&5 15614 ac_status=$? 15615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15616 test $ac_status = 0; }; then 15617 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= $GTK_REQUIRED" 2>/dev/null` 15618 test "x$?" != "x0" && pkg_failed=yes 15619else 15620 pkg_failed=yes 15621fi 15622 else 15623 pkg_failed=untried 15624fi 15625if test -n "$GTK_LIBS"; then 15626 pkg_cv_GTK_LIBS="$GTK_LIBS" 15627 elif test -n "$PKG_CONFIG"; then 15628 if test -n "$PKG_CONFIG" && \ 15629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_REQUIRED\""; } >&5 15630 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_REQUIRED") 2>&5 15631 ac_status=$? 15632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15633 test $ac_status = 0; }; then 15634 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= $GTK_REQUIRED" 2>/dev/null` 15635 test "x$?" != "x0" && pkg_failed=yes 15636else 15637 pkg_failed=yes 15638fi 15639 else 15640 pkg_failed=untried 15641fi 15642 15643 15644 15645if test $pkg_failed = yes; then 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15647$as_echo "no" >&6; } 15648 15649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15650 _pkg_short_errors_supported=yes 15651else 15652 _pkg_short_errors_supported=no 15653fi 15654 if test $_pkg_short_errors_supported = yes; then 15655 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= $GTK_REQUIRED" 2>&1` 15656 else 15657 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= $GTK_REQUIRED" 2>&1` 15658 fi 15659 # Put the nasty error message in config.log where it belongs 15660 echo "$GTK_PKG_ERRORS" >&5 15661 15662 as_fn_error $? "Package requirements (gtk+-3.0 >= $GTK_REQUIRED) were not met: 15663 15664$GTK_PKG_ERRORS 15665 15666Consider adjusting the PKG_CONFIG_PATH environment variable if you 15667installed software in a non-standard prefix. 15668 15669Alternatively, you may set the environment variables GTK_CFLAGS 15670and GTK_LIBS to avoid the need to call pkg-config. 15671See the pkg-config man page for more details." "$LINENO" 5 15672elif test $pkg_failed = untried; then 15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15674$as_echo "no" >&6; } 15675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15677as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15678is in your PATH or set the PKG_CONFIG environment variable to the full 15679path to pkg-config. 15680 15681Alternatively, you may set the environment variables GTK_CFLAGS 15682and GTK_LIBS to avoid the need to call pkg-config. 15683See the pkg-config man page for more details. 15684 15685To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15686See \`config.log' for more details" "$LINENO" 5; } 15687else 15688 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 15689 GTK_LIBS=$pkg_cv_GTK_LIBS 15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15691$as_echo "yes" >&6; } 15692 15693fi 15694 15695 15696 15697 15698 15699pkg_failed=no 15700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXKLAVIER" >&5 15701$as_echo_n "checking for LIBXKLAVIER... " >&6; } 15702 15703if test -n "$LIBXKLAVIER_CFLAGS"; then 15704 pkg_cv_LIBXKLAVIER_CFLAGS="$LIBXKLAVIER_CFLAGS" 15705 elif test -n "$PKG_CONFIG"; then 15706 if test -n "$PKG_CONFIG" && \ 15707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxklavier >= \$LIBXKLAVIER_REQUIRED\""; } >&5 15708 ($PKG_CONFIG --exists --print-errors "libxklavier >= $LIBXKLAVIER_REQUIRED") 2>&5 15709 ac_status=$? 15710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15711 test $ac_status = 0; }; then 15712 pkg_cv_LIBXKLAVIER_CFLAGS=`$PKG_CONFIG --cflags "libxklavier >= $LIBXKLAVIER_REQUIRED" 2>/dev/null` 15713 test "x$?" != "x0" && pkg_failed=yes 15714else 15715 pkg_failed=yes 15716fi 15717 else 15718 pkg_failed=untried 15719fi 15720if test -n "$LIBXKLAVIER_LIBS"; then 15721 pkg_cv_LIBXKLAVIER_LIBS="$LIBXKLAVIER_LIBS" 15722 elif test -n "$PKG_CONFIG"; then 15723 if test -n "$PKG_CONFIG" && \ 15724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxklavier >= \$LIBXKLAVIER_REQUIRED\""; } >&5 15725 ($PKG_CONFIG --exists --print-errors "libxklavier >= $LIBXKLAVIER_REQUIRED") 2>&5 15726 ac_status=$? 15727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15728 test $ac_status = 0; }; then 15729 pkg_cv_LIBXKLAVIER_LIBS=`$PKG_CONFIG --libs "libxklavier >= $LIBXKLAVIER_REQUIRED" 2>/dev/null` 15730 test "x$?" != "x0" && pkg_failed=yes 15731else 15732 pkg_failed=yes 15733fi 15734 else 15735 pkg_failed=untried 15736fi 15737 15738 15739 15740if test $pkg_failed = yes; then 15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15742$as_echo "no" >&6; } 15743 15744if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15745 _pkg_short_errors_supported=yes 15746else 15747 _pkg_short_errors_supported=no 15748fi 15749 if test $_pkg_short_errors_supported = yes; then 15750 LIBXKLAVIER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxklavier >= $LIBXKLAVIER_REQUIRED" 2>&1` 15751 else 15752 LIBXKLAVIER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxklavier >= $LIBXKLAVIER_REQUIRED" 2>&1` 15753 fi 15754 # Put the nasty error message in config.log where it belongs 15755 echo "$LIBXKLAVIER_PKG_ERRORS" >&5 15756 15757 as_fn_error $? "Package requirements (libxklavier >= $LIBXKLAVIER_REQUIRED) were not met: 15758 15759$LIBXKLAVIER_PKG_ERRORS 15760 15761Consider adjusting the PKG_CONFIG_PATH environment variable if you 15762installed software in a non-standard prefix. 15763 15764Alternatively, you may set the environment variables LIBXKLAVIER_CFLAGS 15765and LIBXKLAVIER_LIBS to avoid the need to call pkg-config. 15766See the pkg-config man page for more details." "$LINENO" 5 15767elif test $pkg_failed = untried; then 15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15769$as_echo "no" >&6; } 15770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15772as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15773is in your PATH or set the PKG_CONFIG environment variable to the full 15774path to pkg-config. 15775 15776Alternatively, you may set the environment variables LIBXKLAVIER_CFLAGS 15777and LIBXKLAVIER_LIBS to avoid the need to call pkg-config. 15778See the pkg-config man page for more details. 15779 15780To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15781See \`config.log' for more details" "$LINENO" 5; } 15782else 15783 LIBXKLAVIER_CFLAGS=$pkg_cv_LIBXKLAVIER_CFLAGS 15784 LIBXKLAVIER_LIBS=$pkg_cv_LIBXKLAVIER_LIBS 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15786$as_echo "yes" >&6; } 15787 15788fi 15789 15790 15791 15792 15793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 15794$as_echo_n "checking for X... " >&6; } 15795 15796 15797# Check whether --with-x was given. 15798if test "${with_x+set}" = set; then : 15799 withval=$with_x; 15800fi 15801 15802# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 15803if test "x$with_x" = xno; then 15804 # The user explicitly disabled X. 15805 have_x=disabled 15806else 15807 case $x_includes,$x_libraries in #( 15808 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 15809 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 15810 $as_echo_n "(cached) " >&6 15811else 15812 # One or both of the vars are not set, and there is no cached value. 15813ac_x_includes=no ac_x_libraries=no 15814rm -f -r conftest.dir 15815if mkdir conftest.dir; then 15816 cd conftest.dir 15817 cat >Imakefile <<'_ACEOF' 15818incroot: 15819 @echo incroot='${INCROOT}' 15820usrlibdir: 15821 @echo usrlibdir='${USRLIBDIR}' 15822libdir: 15823 @echo libdir='${LIBDIR}' 15824_ACEOF 15825 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 15826 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 15827 for ac_var in incroot usrlibdir libdir; do 15828 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 15829 done 15830 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 15831 for ac_extension in a so sl dylib la dll; do 15832 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 15833 test -f "$ac_im_libdir/libX11.$ac_extension"; then 15834 ac_im_usrlibdir=$ac_im_libdir; break 15835 fi 15836 done 15837 # Screen out bogus values from the imake configuration. They are 15838 # bogus both because they are the default anyway, and because 15839 # using them would break gcc on systems where it needs fixed includes. 15840 case $ac_im_incroot in 15841 /usr/include) ac_x_includes= ;; 15842 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 15843 esac 15844 case $ac_im_usrlibdir in 15845 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 15846 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 15847 esac 15848 fi 15849 cd .. 15850 rm -f -r conftest.dir 15851fi 15852 15853# Standard set of common directories for X headers. 15854# Check X11 before X11Rn because it is often a symlink to the current release. 15855ac_x_header_dirs=' 15856/usr/X11/include 15857/usr/X11R7/include 15858/usr/X11R6/include 15859/usr/X11R5/include 15860/usr/X11R4/include 15861 15862/usr/include/X11 15863/usr/include/X11R7 15864/usr/include/X11R6 15865/usr/include/X11R5 15866/usr/include/X11R4 15867 15868/usr/local/X11/include 15869/usr/local/X11R7/include 15870/usr/local/X11R6/include 15871/usr/local/X11R5/include 15872/usr/local/X11R4/include 15873 15874/usr/local/include/X11 15875/usr/local/include/X11R7 15876/usr/local/include/X11R6 15877/usr/local/include/X11R5 15878/usr/local/include/X11R4 15879 15880/usr/X386/include 15881/usr/x386/include 15882/usr/XFree86/include/X11 15883 15884/usr/include 15885/usr/local/include 15886/usr/unsupported/include 15887/usr/athena/include 15888/usr/local/x11r5/include 15889/usr/lpp/Xamples/include 15890 15891/usr/openwin/include 15892/usr/openwin/share/include' 15893 15894if test "$ac_x_includes" = no; then 15895 # Guess where to find include files, by looking for Xlib.h. 15896 # First, try using that file with no special directory specified. 15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15898/* end confdefs.h. */ 15899#include <X11/Xlib.h> 15900_ACEOF 15901if ac_fn_c_try_cpp "$LINENO"; then : 15902 # We can compile using X headers with no special include directory. 15903ac_x_includes= 15904else 15905 for ac_dir in $ac_x_header_dirs; do 15906 if test -r "$ac_dir/X11/Xlib.h"; then 15907 ac_x_includes=$ac_dir 15908 break 15909 fi 15910done 15911fi 15912rm -f conftest.err conftest.i conftest.$ac_ext 15913fi # $ac_x_includes = no 15914 15915if test "$ac_x_libraries" = no; then 15916 # Check for the libraries. 15917 # See if we find them without any special options. 15918 # Don't add to $LIBS permanently. 15919 ac_save_LIBS=$LIBS 15920 LIBS="-lX11 $LIBS" 15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15922/* end confdefs.h. */ 15923#include <X11/Xlib.h> 15924int 15925main () 15926{ 15927XrmInitialize () 15928 ; 15929 return 0; 15930} 15931_ACEOF 15932if ac_fn_c_try_link "$LINENO"; then : 15933 LIBS=$ac_save_LIBS 15934# We can link X programs with no special library path. 15935ac_x_libraries= 15936else 15937 LIBS=$ac_save_LIBS 15938for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 15939do 15940 # Don't even attempt the hair of trying to link an X program! 15941 for ac_extension in a so sl dylib la dll; do 15942 if test -r "$ac_dir/libX11.$ac_extension"; then 15943 ac_x_libraries=$ac_dir 15944 break 2 15945 fi 15946 done 15947done 15948fi 15949rm -f core conftest.err conftest.$ac_objext \ 15950 conftest$ac_exeext conftest.$ac_ext 15951fi # $ac_x_libraries = no 15952 15953case $ac_x_includes,$ac_x_libraries in #( 15954 no,* | *,no | *\'*) 15955 # Didn't find X, or a directory has "'" in its name. 15956 ac_cv_have_x="have_x=no";; #( 15957 *) 15958 # Record where we found X for the cache. 15959 ac_cv_have_x="have_x=yes\ 15960 ac_x_includes='$ac_x_includes'\ 15961 ac_x_libraries='$ac_x_libraries'" 15962esac 15963fi 15964;; #( 15965 *) have_x=yes;; 15966 esac 15967 eval "$ac_cv_have_x" 15968fi # $with_x != no 15969 15970if test "$have_x" != yes; then 15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 15972$as_echo "$have_x" >&6; } 15973 no_x=yes 15974else 15975 # If each of the values was on the command line, it overrides each guess. 15976 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 15977 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 15978 # Update the cache value to reflect the command line values. 15979 ac_cv_have_x="have_x=yes\ 15980 ac_x_includes='$x_includes'\ 15981 ac_x_libraries='$x_libraries'" 15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 15983$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 15984fi 15985 15986if test "$no_x" = yes; then 15987 # Not all programs may use this symbol, but it does not hurt to define it. 15988 15989$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 15990 15991 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 15992else 15993 if test -n "$x_includes"; then 15994 X_CFLAGS="$X_CFLAGS -I$x_includes" 15995 fi 15996 15997 # It would also be nice to do this for all -L options, not just this one. 15998 if test -n "$x_libraries"; then 15999 X_LIBS="$X_LIBS -L$x_libraries" 16000 # For Solaris; some versions of Sun CC require a space after -R and 16001 # others require no space. Words are not sufficient . . . . 16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 16003$as_echo_n "checking whether -R must be followed by a space... " >&6; } 16004 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 16005 ac_xsave_c_werror_flag=$ac_c_werror_flag 16006 ac_c_werror_flag=yes 16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16008/* end confdefs.h. */ 16009 16010int 16011main () 16012{ 16013 16014 ; 16015 return 0; 16016} 16017_ACEOF 16018if ac_fn_c_try_link "$LINENO"; then : 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16020$as_echo "no" >&6; } 16021 X_LIBS="$X_LIBS -R$x_libraries" 16022else 16023 LIBS="$ac_xsave_LIBS -R $x_libraries" 16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16025/* end confdefs.h. */ 16026 16027int 16028main () 16029{ 16030 16031 ; 16032 return 0; 16033} 16034_ACEOF 16035if ac_fn_c_try_link "$LINENO"; then : 16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16037$as_echo "yes" >&6; } 16038 X_LIBS="$X_LIBS -R $x_libraries" 16039else 16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 16041$as_echo "neither works" >&6; } 16042fi 16043rm -f core conftest.err conftest.$ac_objext \ 16044 conftest$ac_exeext conftest.$ac_ext 16045fi 16046rm -f core conftest.err conftest.$ac_objext \ 16047 conftest$ac_exeext conftest.$ac_ext 16048 ac_c_werror_flag=$ac_xsave_c_werror_flag 16049 LIBS=$ac_xsave_LIBS 16050 fi 16051 16052 # Check for system-dependent libraries X programs must link with. 16053 # Do this before checking for the system-independent R6 libraries 16054 # (-lICE), since we may need -lsocket or whatever for X linking. 16055 16056 if test "$ISC" = yes; then 16057 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 16058 else 16059 # Martyn Johnson says this is needed for Ultrix, if the X 16060 # libraries were built with DECnet support. And Karl Berry says 16061 # the Alpha needs dnet_stub (dnet does not exist). 16062 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16064/* end confdefs.h. */ 16065 16066/* Override any GCC internal prototype to avoid an error. 16067 Use char because int might match the return type of a GCC 16068 builtin and then its argument prototype would still apply. */ 16069#ifdef __cplusplus 16070extern "C" 16071#endif 16072char XOpenDisplay (); 16073int 16074main () 16075{ 16076return XOpenDisplay (); 16077 ; 16078 return 0; 16079} 16080_ACEOF 16081if ac_fn_c_try_link "$LINENO"; then : 16082 16083else 16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 16085$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 16086if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 16087 $as_echo_n "(cached) " >&6 16088else 16089 ac_check_lib_save_LIBS=$LIBS 16090LIBS="-ldnet $LIBS" 16091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16092/* end confdefs.h. */ 16093 16094/* Override any GCC internal prototype to avoid an error. 16095 Use char because int might match the return type of a GCC 16096 builtin and then its argument prototype would still apply. */ 16097#ifdef __cplusplus 16098extern "C" 16099#endif 16100char dnet_ntoa (); 16101int 16102main () 16103{ 16104return dnet_ntoa (); 16105 ; 16106 return 0; 16107} 16108_ACEOF 16109if ac_fn_c_try_link "$LINENO"; then : 16110 ac_cv_lib_dnet_dnet_ntoa=yes 16111else 16112 ac_cv_lib_dnet_dnet_ntoa=no 16113fi 16114rm -f core conftest.err conftest.$ac_objext \ 16115 conftest$ac_exeext conftest.$ac_ext 16116LIBS=$ac_check_lib_save_LIBS 16117fi 16118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 16119$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 16120if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 16121 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 16122fi 16123 16124 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 16126$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 16127if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 16128 $as_echo_n "(cached) " >&6 16129else 16130 ac_check_lib_save_LIBS=$LIBS 16131LIBS="-ldnet_stub $LIBS" 16132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16133/* end confdefs.h. */ 16134 16135/* Override any GCC internal prototype to avoid an error. 16136 Use char because int might match the return type of a GCC 16137 builtin and then its argument prototype would still apply. */ 16138#ifdef __cplusplus 16139extern "C" 16140#endif 16141char dnet_ntoa (); 16142int 16143main () 16144{ 16145return dnet_ntoa (); 16146 ; 16147 return 0; 16148} 16149_ACEOF 16150if ac_fn_c_try_link "$LINENO"; then : 16151 ac_cv_lib_dnet_stub_dnet_ntoa=yes 16152else 16153 ac_cv_lib_dnet_stub_dnet_ntoa=no 16154fi 16155rm -f core conftest.err conftest.$ac_objext \ 16156 conftest$ac_exeext conftest.$ac_ext 16157LIBS=$ac_check_lib_save_LIBS 16158fi 16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 16160$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 16161if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 16162 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 16163fi 16164 16165 fi 16166fi 16167rm -f core conftest.err conftest.$ac_objext \ 16168 conftest$ac_exeext conftest.$ac_ext 16169 LIBS="$ac_xsave_LIBS" 16170 16171 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 16172 # to get the SysV transport functions. 16173 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 16174 # needs -lnsl. 16175 # The nsl library prevents programs from opening the X display 16176 # on Irix 5.2, according to T.E. Dickey. 16177 # The functions gethostbyname, getservbyname, and inet_addr are 16178 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 16179 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 16180if test "x$ac_cv_func_gethostbyname" = xyes; then : 16181 16182fi 16183 16184 if test $ac_cv_func_gethostbyname = no; then 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 16186$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 16187if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 16188 $as_echo_n "(cached) " >&6 16189else 16190 ac_check_lib_save_LIBS=$LIBS 16191LIBS="-lnsl $LIBS" 16192cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16193/* end confdefs.h. */ 16194 16195/* Override any GCC internal prototype to avoid an error. 16196 Use char because int might match the return type of a GCC 16197 builtin and then its argument prototype would still apply. */ 16198#ifdef __cplusplus 16199extern "C" 16200#endif 16201char gethostbyname (); 16202int 16203main () 16204{ 16205return gethostbyname (); 16206 ; 16207 return 0; 16208} 16209_ACEOF 16210if ac_fn_c_try_link "$LINENO"; then : 16211 ac_cv_lib_nsl_gethostbyname=yes 16212else 16213 ac_cv_lib_nsl_gethostbyname=no 16214fi 16215rm -f core conftest.err conftest.$ac_objext \ 16216 conftest$ac_exeext conftest.$ac_ext 16217LIBS=$ac_check_lib_save_LIBS 16218fi 16219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 16220$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 16221if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 16222 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 16223fi 16224 16225 if test $ac_cv_lib_nsl_gethostbyname = no; then 16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 16227$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 16228if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 16229 $as_echo_n "(cached) " >&6 16230else 16231 ac_check_lib_save_LIBS=$LIBS 16232LIBS="-lbsd $LIBS" 16233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16234/* end confdefs.h. */ 16235 16236/* Override any GCC internal prototype to avoid an error. 16237 Use char because int might match the return type of a GCC 16238 builtin and then its argument prototype would still apply. */ 16239#ifdef __cplusplus 16240extern "C" 16241#endif 16242char gethostbyname (); 16243int 16244main () 16245{ 16246return gethostbyname (); 16247 ; 16248 return 0; 16249} 16250_ACEOF 16251if ac_fn_c_try_link "$LINENO"; then : 16252 ac_cv_lib_bsd_gethostbyname=yes 16253else 16254 ac_cv_lib_bsd_gethostbyname=no 16255fi 16256rm -f core conftest.err conftest.$ac_objext \ 16257 conftest$ac_exeext conftest.$ac_ext 16258LIBS=$ac_check_lib_save_LIBS 16259fi 16260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 16261$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 16262if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 16263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 16264fi 16265 16266 fi 16267 fi 16268 16269 # lieder@skyler.mavd.honeywell.com says without -lsocket, 16270 # socket/setsockopt and other routines are undefined under SCO ODT 16271 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 16272 # on later versions), says Simon Leinen: it contains gethostby* 16273 # variants that don't use the name server (or something). -lsocket 16274 # must be given before -lnsl if both are needed. We assume that 16275 # if connect needs -lnsl, so does gethostbyname. 16276 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 16277if test "x$ac_cv_func_connect" = xyes; then : 16278 16279fi 16280 16281 if test $ac_cv_func_connect = no; then 16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 16283$as_echo_n "checking for connect in -lsocket... " >&6; } 16284if ${ac_cv_lib_socket_connect+:} false; then : 16285 $as_echo_n "(cached) " >&6 16286else 16287 ac_check_lib_save_LIBS=$LIBS 16288LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 16289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16290/* end confdefs.h. */ 16291 16292/* Override any GCC internal prototype to avoid an error. 16293 Use char because int might match the return type of a GCC 16294 builtin and then its argument prototype would still apply. */ 16295#ifdef __cplusplus 16296extern "C" 16297#endif 16298char connect (); 16299int 16300main () 16301{ 16302return connect (); 16303 ; 16304 return 0; 16305} 16306_ACEOF 16307if ac_fn_c_try_link "$LINENO"; then : 16308 ac_cv_lib_socket_connect=yes 16309else 16310 ac_cv_lib_socket_connect=no 16311fi 16312rm -f core conftest.err conftest.$ac_objext \ 16313 conftest$ac_exeext conftest.$ac_ext 16314LIBS=$ac_check_lib_save_LIBS 16315fi 16316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 16317$as_echo "$ac_cv_lib_socket_connect" >&6; } 16318if test "x$ac_cv_lib_socket_connect" = xyes; then : 16319 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 16320fi 16321 16322 fi 16323 16324 # Guillermo Gomez says -lposix is necessary on A/UX. 16325 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 16326if test "x$ac_cv_func_remove" = xyes; then : 16327 16328fi 16329 16330 if test $ac_cv_func_remove = no; then 16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 16332$as_echo_n "checking for remove in -lposix... " >&6; } 16333if ${ac_cv_lib_posix_remove+:} false; then : 16334 $as_echo_n "(cached) " >&6 16335else 16336 ac_check_lib_save_LIBS=$LIBS 16337LIBS="-lposix $LIBS" 16338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16339/* end confdefs.h. */ 16340 16341/* Override any GCC internal prototype to avoid an error. 16342 Use char because int might match the return type of a GCC 16343 builtin and then its argument prototype would still apply. */ 16344#ifdef __cplusplus 16345extern "C" 16346#endif 16347char remove (); 16348int 16349main () 16350{ 16351return remove (); 16352 ; 16353 return 0; 16354} 16355_ACEOF 16356if ac_fn_c_try_link "$LINENO"; then : 16357 ac_cv_lib_posix_remove=yes 16358else 16359 ac_cv_lib_posix_remove=no 16360fi 16361rm -f core conftest.err conftest.$ac_objext \ 16362 conftest$ac_exeext conftest.$ac_ext 16363LIBS=$ac_check_lib_save_LIBS 16364fi 16365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 16366$as_echo "$ac_cv_lib_posix_remove" >&6; } 16367if test "x$ac_cv_lib_posix_remove" = xyes; then : 16368 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 16369fi 16370 16371 fi 16372 16373 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 16374 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 16375if test "x$ac_cv_func_shmat" = xyes; then : 16376 16377fi 16378 16379 if test $ac_cv_func_shmat = no; then 16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 16381$as_echo_n "checking for shmat in -lipc... " >&6; } 16382if ${ac_cv_lib_ipc_shmat+:} false; then : 16383 $as_echo_n "(cached) " >&6 16384else 16385 ac_check_lib_save_LIBS=$LIBS 16386LIBS="-lipc $LIBS" 16387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16388/* end confdefs.h. */ 16389 16390/* Override any GCC internal prototype to avoid an error. 16391 Use char because int might match the return type of a GCC 16392 builtin and then its argument prototype would still apply. */ 16393#ifdef __cplusplus 16394extern "C" 16395#endif 16396char shmat (); 16397int 16398main () 16399{ 16400return shmat (); 16401 ; 16402 return 0; 16403} 16404_ACEOF 16405if ac_fn_c_try_link "$LINENO"; then : 16406 ac_cv_lib_ipc_shmat=yes 16407else 16408 ac_cv_lib_ipc_shmat=no 16409fi 16410rm -f core conftest.err conftest.$ac_objext \ 16411 conftest$ac_exeext conftest.$ac_ext 16412LIBS=$ac_check_lib_save_LIBS 16413fi 16414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 16415$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 16416if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 16417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 16418fi 16419 16420 fi 16421 fi 16422 16423 # Check for libraries that X11R6 Xt/Xaw programs need. 16424 ac_save_LDFLAGS=$LDFLAGS 16425 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 16426 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 16427 # check for ICE first), but we must link in the order -lSM -lICE or 16428 # we get undefined symbols. So assume we have SM if we have ICE. 16429 # These have to be linked with before -lX11, unlike the other 16430 # libraries we check for below, so use a different variable. 16431 # John Interrante, Karl Berry 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 16433$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 16434if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 16435 $as_echo_n "(cached) " >&6 16436else 16437 ac_check_lib_save_LIBS=$LIBS 16438LIBS="-lICE $X_EXTRA_LIBS $LIBS" 16439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16440/* end confdefs.h. */ 16441 16442/* Override any GCC internal prototype to avoid an error. 16443 Use char because int might match the return type of a GCC 16444 builtin and then its argument prototype would still apply. */ 16445#ifdef __cplusplus 16446extern "C" 16447#endif 16448char IceConnectionNumber (); 16449int 16450main () 16451{ 16452return IceConnectionNumber (); 16453 ; 16454 return 0; 16455} 16456_ACEOF 16457if ac_fn_c_try_link "$LINENO"; then : 16458 ac_cv_lib_ICE_IceConnectionNumber=yes 16459else 16460 ac_cv_lib_ICE_IceConnectionNumber=no 16461fi 16462rm -f core conftest.err conftest.$ac_objext \ 16463 conftest$ac_exeext conftest.$ac_ext 16464LIBS=$ac_check_lib_save_LIBS 16465fi 16466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 16467$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 16468if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 16469 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 16470fi 16471 16472 LDFLAGS=$ac_save_LDFLAGS 16473 16474fi 16475 16476XLIB_CFLAGS="$X_CFLAGS" 16477XLIB_LIBS="$X_LIBS -lX11 $X_EXTRA_LIBS" 16478 16479 16480 16481# Check whether --enable-tests was given. 16482if test "${enable_tests+set}" = set; then : 16483 enableval=$enable_tests; 16484else 16485 enable_tests=yes 16486fi 16487 16488 16489 if test "$enable_tests" = "yes"; then 16490 BUILD_TESTS_TRUE= 16491 BUILD_TESTS_FALSE='#' 16492else 16493 BUILD_TESTS_TRUE='#' 16494 BUILD_TESTS_FALSE= 16495fi 16496 16497 16498 16499 16500 16501 # Check whether --enable-introspection was given. 16502if test "${enable_introspection+set}" = set; then : 16503 enableval=$enable_introspection; 16504else 16505 enable_introspection=auto 16506fi 16507 16508 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5 16510$as_echo_n "checking for gobject-introspection... " >&6; } 16511 16512 case $enable_introspection in #( 16513 no) : 16514 found_introspection="no (disabled, use --enable-introspection to enable)" 16515 ;; #( 16516 yes) : 16517 if test -n "$PKG_CONFIG" && \ 16518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5 16519 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5 16520 ac_status=$? 16521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16522 test $ac_status = 0; }; then 16523 : 16524else 16525 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5 16526fi 16527 if test -n "$PKG_CONFIG" && \ 16528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5 16529 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5 16530 ac_status=$? 16531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16532 test $ac_status = 0; }; then 16533 found_introspection=yes 16534else 16535 as_fn_error $? "You need to have gobject-introspection >= 0.6.7 installed to build libgnomekbd" "$LINENO" 5 16536fi 16537 ;; #( 16538 auto) : 16539 if test -n "$PKG_CONFIG" && \ 16540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5 16541 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5 16542 ac_status=$? 16543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16544 test $ac_status = 0; }; then 16545 found_introspection=yes 16546else 16547 found_introspection=no 16548fi 16549 enable_introspection=$found_introspection 16550 ;; #( 16551 *) : 16552 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5 16553 ;; 16554esac 16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5 16556$as_echo "$found_introspection" >&6; } 16557 16558 INTROSPECTION_SCANNER= 16559 INTROSPECTION_COMPILER= 16560 INTROSPECTION_GENERATE= 16561 INTROSPECTION_GIRDIR= 16562 INTROSPECTION_TYPELIBDIR= 16563 if test "x$found_introspection" = "xyes"; then 16564 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` 16565 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` 16566 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` 16567 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` 16568 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" 16569 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` 16570 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` 16571 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection 16572 fi 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 if test "x$found_introspection" = "xyes"; then 16583 HAVE_INTROSPECTION_TRUE= 16584 HAVE_INTROSPECTION_FALSE='#' 16585else 16586 HAVE_INTROSPECTION_TRUE='#' 16587 HAVE_INTROSPECTION_FALSE= 16588fi 16589 16590 16591 16592 16593ac_config_files="$ac_config_files Makefile libgnomekbd.pc libgnomekbdui.pc po/Makefile.in libgnomekbd/Makefile libgnomekbd/org.gnome.libgnomekbd.desktop.gschema.xml libgnomekbd/org.gnome.libgnomekbd.keyboard.gschema.xml libgnomekbd/org.gnome.libgnomekbd.gschema.xml libgnomekbd/gkbd-keyboard-display.desktop.in test/Makefile" 16594 16595cat >confcache <<\_ACEOF 16596# This file is a shell script that caches the results of configure 16597# tests run on this system so they can be shared between configure 16598# scripts and configure runs, see configure's option --config-cache. 16599# It is not useful on other systems. If it contains results you don't 16600# want to keep, you may remove or edit it. 16601# 16602# config.status only pays attention to the cache file if you give it 16603# the --recheck option to rerun configure. 16604# 16605# `ac_cv_env_foo' variables (set or unset) will be overridden when 16606# loading this file, other *unset* `ac_cv_foo' will be assigned the 16607# following values. 16608 16609_ACEOF 16610 16611# The following way of writing the cache mishandles newlines in values, 16612# but we know of no workaround that is simple, portable, and efficient. 16613# So, we kill variables containing newlines. 16614# Ultrix sh set writes to stderr and can't be redirected directly, 16615# and sets the high bit in the cache file unless we assign to the vars. 16616( 16617 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16618 eval ac_val=\$$ac_var 16619 case $ac_val in #( 16620 *${as_nl}*) 16621 case $ac_var in #( 16622 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16623$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16624 esac 16625 case $ac_var in #( 16626 _ | IFS | as_nl) ;; #( 16627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16628 *) { eval $ac_var=; unset $ac_var;} ;; 16629 esac ;; 16630 esac 16631 done 16632 16633 (set) 2>&1 | 16634 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16635 *${as_nl}ac_space=\ *) 16636 # `set' does not quote correctly, so add quotes: double-quote 16637 # substitution turns \\\\ into \\, and sed turns \\ into \. 16638 sed -n \ 16639 "s/'/'\\\\''/g; 16640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16641 ;; #( 16642 *) 16643 # `set' quotes correctly as required by POSIX, so do not add quotes. 16644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16645 ;; 16646 esac | 16647 sort 16648) | 16649 sed ' 16650 /^ac_cv_env_/b end 16651 t clear 16652 :clear 16653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16654 t end 16655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16656 :end' >>confcache 16657if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16658 if test -w "$cache_file"; then 16659 if test "x$cache_file" != "x/dev/null"; then 16660 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16661$as_echo "$as_me: updating cache $cache_file" >&6;} 16662 if test ! -f "$cache_file" || test -h "$cache_file"; then 16663 cat confcache >"$cache_file" 16664 else 16665 case $cache_file in #( 16666 */* | ?:*) 16667 mv -f confcache "$cache_file"$$ && 16668 mv -f "$cache_file"$$ "$cache_file" ;; #( 16669 *) 16670 mv -f confcache "$cache_file" ;; 16671 esac 16672 fi 16673 fi 16674 else 16675 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16676$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16677 fi 16678fi 16679rm -f confcache 16680 16681test "x$prefix" = xNONE && prefix=$ac_default_prefix 16682# Let make expand exec_prefix. 16683test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16684 16685DEFS=-DHAVE_CONFIG_H 16686 16687ac_libobjs= 16688ac_ltlibobjs= 16689for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16690 # 1. Remove the extension, and $U if already installed. 16691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16692 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16694 # will be set to the directory where LIBOBJS objects are built. 16695 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16696 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16697done 16698LIBOBJS=$ac_libobjs 16699 16700LTLIBOBJS=$ac_ltlibobjs 16701 16702 16703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16704$as_echo_n "checking that generated files are newer than configure... " >&6; } 16705 if test -n "$am_sleep_pid"; then 16706 # Hide warnings about reused PIDs. 16707 wait $am_sleep_pid 2>/dev/null 16708 fi 16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16710$as_echo "done" >&6; } 16711 if test -n "$EXEEXT"; then 16712 am__EXEEXT_TRUE= 16713 am__EXEEXT_FALSE='#' 16714else 16715 am__EXEEXT_TRUE='#' 16716 am__EXEEXT_FALSE= 16717fi 16718 16719if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16720 as_fn_error $? "conditional \"AMDEP\" was never defined. 16721Usually this means the macro was only invoked conditionally." "$LINENO" 5 16722fi 16723if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16724 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16725Usually this means the macro was only invoked conditionally." "$LINENO" 5 16726fi 16727if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16728 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16729Usually this means the macro was only invoked conditionally." "$LINENO" 5 16730fi 16731if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then 16732 as_fn_error $? "conditional \"BUILD_TESTS\" was never defined. 16733Usually this means the macro was only invoked conditionally." "$LINENO" 5 16734fi 16735if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then 16736 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. 16737Usually this means the macro was only invoked conditionally." "$LINENO" 5 16738fi 16739 16740: "${CONFIG_STATUS=./config.status}" 16741ac_write_fail=0 16742ac_clean_files_save=$ac_clean_files 16743ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16744{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16745$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16746as_write_fail=0 16747cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16748#! $SHELL 16749# Generated by $as_me. 16750# Run this file to recreate the current configuration. 16751# Compiler output produced by configure, useful for debugging 16752# configure, is in config.log if it exists. 16753 16754debug=false 16755ac_cs_recheck=false 16756ac_cs_silent=false 16757 16758SHELL=\${CONFIG_SHELL-$SHELL} 16759export SHELL 16760_ASEOF 16761cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16762## -------------------- ## 16763## M4sh Initialization. ## 16764## -------------------- ## 16765 16766# Be more Bourne compatible 16767DUALCASE=1; export DUALCASE # for MKS sh 16768if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16769 emulate sh 16770 NULLCMD=: 16771 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16772 # is contrary to our usage. Disable this feature. 16773 alias -g '${1+"$@"}'='"$@"' 16774 setopt NO_GLOB_SUBST 16775else 16776 case `(set -o) 2>/dev/null` in #( 16777 *posix*) : 16778 set -o posix ;; #( 16779 *) : 16780 ;; 16781esac 16782fi 16783 16784 16785as_nl=' 16786' 16787export as_nl 16788# Printing a long string crashes Solaris 7 /usr/bin/printf. 16789as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16790as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16791as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16792# Prefer a ksh shell builtin over an external printf program on Solaris, 16793# but without wasting forks for bash or zsh. 16794if test -z "$BASH_VERSION$ZSH_VERSION" \ 16795 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16796 as_echo='print -r --' 16797 as_echo_n='print -rn --' 16798elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16799 as_echo='printf %s\n' 16800 as_echo_n='printf %s' 16801else 16802 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16803 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16804 as_echo_n='/usr/ucb/echo -n' 16805 else 16806 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16807 as_echo_n_body='eval 16808 arg=$1; 16809 case $arg in #( 16810 *"$as_nl"*) 16811 expr "X$arg" : "X\\(.*\\)$as_nl"; 16812 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16813 esac; 16814 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16815 ' 16816 export as_echo_n_body 16817 as_echo_n='sh -c $as_echo_n_body as_echo' 16818 fi 16819 export as_echo_body 16820 as_echo='sh -c $as_echo_body as_echo' 16821fi 16822 16823# The user is always right. 16824if test "${PATH_SEPARATOR+set}" != set; then 16825 PATH_SEPARATOR=: 16826 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16827 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16828 PATH_SEPARATOR=';' 16829 } 16830fi 16831 16832 16833# IFS 16834# We need space, tab and new line, in precisely that order. Quoting is 16835# there to prevent editors from complaining about space-tab. 16836# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16837# splitting by setting IFS to empty value.) 16838IFS=" "" $as_nl" 16839 16840# Find who we are. Look in the path if we contain no directory separator. 16841as_myself= 16842case $0 in #(( 16843 *[\\/]* ) as_myself=$0 ;; 16844 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16845for as_dir in $PATH 16846do 16847 IFS=$as_save_IFS 16848 test -z "$as_dir" && as_dir=. 16849 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16850 done 16851IFS=$as_save_IFS 16852 16853 ;; 16854esac 16855# We did not find ourselves, most probably we were run as `sh COMMAND' 16856# in which case we are not to be found in the path. 16857if test "x$as_myself" = x; then 16858 as_myself=$0 16859fi 16860if test ! -f "$as_myself"; then 16861 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16862 exit 1 16863fi 16864 16865# Unset variables that we do not need and which cause bugs (e.g. in 16866# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16867# suppresses any "Segmentation fault" message there. '((' could 16868# trigger a bug in pdksh 5.2.14. 16869for as_var in BASH_ENV ENV MAIL MAILPATH 16870do eval test x\${$as_var+set} = xset \ 16871 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16872done 16873PS1='$ ' 16874PS2='> ' 16875PS4='+ ' 16876 16877# NLS nuisances. 16878LC_ALL=C 16879export LC_ALL 16880LANGUAGE=C 16881export LANGUAGE 16882 16883# CDPATH. 16884(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16885 16886 16887# as_fn_error STATUS ERROR [LINENO LOG_FD] 16888# ---------------------------------------- 16889# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16890# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16891# script with STATUS, using 1 if that was 0. 16892as_fn_error () 16893{ 16894 as_status=$1; test $as_status -eq 0 && as_status=1 16895 if test "$4"; then 16896 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16897 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16898 fi 16899 $as_echo "$as_me: error: $2" >&2 16900 as_fn_exit $as_status 16901} # as_fn_error 16902 16903 16904# as_fn_set_status STATUS 16905# ----------------------- 16906# Set $? to STATUS, without forking. 16907as_fn_set_status () 16908{ 16909 return $1 16910} # as_fn_set_status 16911 16912# as_fn_exit STATUS 16913# ----------------- 16914# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16915as_fn_exit () 16916{ 16917 set +e 16918 as_fn_set_status $1 16919 exit $1 16920} # as_fn_exit 16921 16922# as_fn_unset VAR 16923# --------------- 16924# Portably unset VAR. 16925as_fn_unset () 16926{ 16927 { eval $1=; unset $1;} 16928} 16929as_unset=as_fn_unset 16930# as_fn_append VAR VALUE 16931# ---------------------- 16932# Append the text in VALUE to the end of the definition contained in VAR. Take 16933# advantage of any shell optimizations that allow amortized linear growth over 16934# repeated appends, instead of the typical quadratic growth present in naive 16935# implementations. 16936if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16937 eval 'as_fn_append () 16938 { 16939 eval $1+=\$2 16940 }' 16941else 16942 as_fn_append () 16943 { 16944 eval $1=\$$1\$2 16945 } 16946fi # as_fn_append 16947 16948# as_fn_arith ARG... 16949# ------------------ 16950# Perform arithmetic evaluation on the ARGs, and store the result in the 16951# global $as_val. Take advantage of shells that can avoid forks. The arguments 16952# must be portable across $(()) and expr. 16953if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16954 eval 'as_fn_arith () 16955 { 16956 as_val=$(( $* )) 16957 }' 16958else 16959 as_fn_arith () 16960 { 16961 as_val=`expr "$@" || test $? -eq 1` 16962 } 16963fi # as_fn_arith 16964 16965 16966if expr a : '\(a\)' >/dev/null 2>&1 && 16967 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16968 as_expr=expr 16969else 16970 as_expr=false 16971fi 16972 16973if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16974 as_basename=basename 16975else 16976 as_basename=false 16977fi 16978 16979if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16980 as_dirname=dirname 16981else 16982 as_dirname=false 16983fi 16984 16985as_me=`$as_basename -- "$0" || 16986$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16987 X"$0" : 'X\(//\)$' \| \ 16988 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16989$as_echo X/"$0" | 16990 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16991 s//\1/ 16992 q 16993 } 16994 /^X\/\(\/\/\)$/{ 16995 s//\1/ 16996 q 16997 } 16998 /^X\/\(\/\).*/{ 16999 s//\1/ 17000 q 17001 } 17002 s/.*/./; q'` 17003 17004# Avoid depending upon Character Ranges. 17005as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17006as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17007as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17008as_cr_digits='0123456789' 17009as_cr_alnum=$as_cr_Letters$as_cr_digits 17010 17011ECHO_C= ECHO_N= ECHO_T= 17012case `echo -n x` in #((((( 17013-n*) 17014 case `echo 'xy\c'` in 17015 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17016 xy) ECHO_C='\c';; 17017 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17018 ECHO_T=' ';; 17019 esac;; 17020*) 17021 ECHO_N='-n';; 17022esac 17023 17024rm -f conf$$ conf$$.exe conf$$.file 17025if test -d conf$$.dir; then 17026 rm -f conf$$.dir/conf$$.file 17027else 17028 rm -f conf$$.dir 17029 mkdir conf$$.dir 2>/dev/null 17030fi 17031if (echo >conf$$.file) 2>/dev/null; then 17032 if ln -s conf$$.file conf$$ 2>/dev/null; then 17033 as_ln_s='ln -s' 17034 # ... but there are two gotchas: 17035 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17036 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17037 # In both cases, we have to default to `cp -pR'. 17038 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17039 as_ln_s='cp -pR' 17040 elif ln conf$$.file conf$$ 2>/dev/null; then 17041 as_ln_s=ln 17042 else 17043 as_ln_s='cp -pR' 17044 fi 17045else 17046 as_ln_s='cp -pR' 17047fi 17048rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17049rmdir conf$$.dir 2>/dev/null 17050 17051 17052# as_fn_mkdir_p 17053# ------------- 17054# Create "$as_dir" as a directory, including parents if necessary. 17055as_fn_mkdir_p () 17056{ 17057 17058 case $as_dir in #( 17059 -*) as_dir=./$as_dir;; 17060 esac 17061 test -d "$as_dir" || eval $as_mkdir_p || { 17062 as_dirs= 17063 while :; do 17064 case $as_dir in #( 17065 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17066 *) as_qdir=$as_dir;; 17067 esac 17068 as_dirs="'$as_qdir' $as_dirs" 17069 as_dir=`$as_dirname -- "$as_dir" || 17070$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17071 X"$as_dir" : 'X\(//\)[^/]' \| \ 17072 X"$as_dir" : 'X\(//\)$' \| \ 17073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17074$as_echo X"$as_dir" | 17075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17076 s//\1/ 17077 q 17078 } 17079 /^X\(\/\/\)[^/].*/{ 17080 s//\1/ 17081 q 17082 } 17083 /^X\(\/\/\)$/{ 17084 s//\1/ 17085 q 17086 } 17087 /^X\(\/\).*/{ 17088 s//\1/ 17089 q 17090 } 17091 s/.*/./; q'` 17092 test -d "$as_dir" && break 17093 done 17094 test -z "$as_dirs" || eval "mkdir $as_dirs" 17095 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17096 17097 17098} # as_fn_mkdir_p 17099if mkdir -p . 2>/dev/null; then 17100 as_mkdir_p='mkdir -p "$as_dir"' 17101else 17102 test -d ./-p && rmdir ./-p 17103 as_mkdir_p=false 17104fi 17105 17106 17107# as_fn_executable_p FILE 17108# ----------------------- 17109# Test if FILE is an executable regular file. 17110as_fn_executable_p () 17111{ 17112 test -f "$1" && test -x "$1" 17113} # as_fn_executable_p 17114as_test_x='test -x' 17115as_executable_p=as_fn_executable_p 17116 17117# Sed expression to map a string onto a valid CPP name. 17118as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17119 17120# Sed expression to map a string onto a valid variable name. 17121as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17122 17123 17124exec 6>&1 17125## ----------------------------------- ## 17126## Main body of $CONFIG_STATUS script. ## 17127## ----------------------------------- ## 17128_ASEOF 17129test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17130 17131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17132# Save the log message, to keep $0 and so on meaningful, and to 17133# report actual input values of CONFIG_FILES etc. instead of their 17134# values after options handling. 17135ac_log=" 17136This file was extended by libgnomekbd $as_me 3.26.1, which was 17137generated by GNU Autoconf 2.69. Invocation command line was 17138 17139 CONFIG_FILES = $CONFIG_FILES 17140 CONFIG_HEADERS = $CONFIG_HEADERS 17141 CONFIG_LINKS = $CONFIG_LINKS 17142 CONFIG_COMMANDS = $CONFIG_COMMANDS 17143 $ $0 $@ 17144 17145on `(hostname || uname -n) 2>/dev/null | sed 1q` 17146" 17147 17148_ACEOF 17149 17150case $ac_config_files in *" 17151"*) set x $ac_config_files; shift; ac_config_files=$*;; 17152esac 17153 17154case $ac_config_headers in *" 17155"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17156esac 17157 17158 17159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17160# Files that config.status was made for. 17161config_files="$ac_config_files" 17162config_headers="$ac_config_headers" 17163config_commands="$ac_config_commands" 17164 17165_ACEOF 17166 17167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17168ac_cs_usage="\ 17169\`$as_me' instantiates files and other configuration actions 17170from templates according to the current configuration. Unless the files 17171and actions are specified as TAGs, all are instantiated by default. 17172 17173Usage: $0 [OPTION]... [TAG]... 17174 17175 -h, --help print this help, then exit 17176 -V, --version print version number and configuration settings, then exit 17177 --config print configuration, then exit 17178 -q, --quiet, --silent 17179 do not print progress messages 17180 -d, --debug don't remove temporary files 17181 --recheck update $as_me by reconfiguring in the same conditions 17182 --file=FILE[:TEMPLATE] 17183 instantiate the configuration file FILE 17184 --header=FILE[:TEMPLATE] 17185 instantiate the configuration header FILE 17186 17187Configuration files: 17188$config_files 17189 17190Configuration headers: 17191$config_headers 17192 17193Configuration commands: 17194$config_commands 17195 17196Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomekbd>." 17197 17198_ACEOF 17199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17200ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17201ac_cs_version="\\ 17202libgnomekbd config.status 3.26.1 17203configured by $0, generated by GNU Autoconf 2.69, 17204 with options \\"\$ac_cs_config\\" 17205 17206Copyright (C) 2012 Free Software Foundation, Inc. 17207This config.status script is free software; the Free Software Foundation 17208gives unlimited permission to copy, distribute and modify it." 17209 17210ac_pwd='$ac_pwd' 17211srcdir='$srcdir' 17212INSTALL='$INSTALL' 17213MKDIR_P='$MKDIR_P' 17214AWK='$AWK' 17215test -n "\$AWK" || AWK=awk 17216_ACEOF 17217 17218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17219# The default lists apply if the user does not specify any file. 17220ac_need_defaults=: 17221while test $# != 0 17222do 17223 case $1 in 17224 --*=?*) 17225 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17226 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17227 ac_shift=: 17228 ;; 17229 --*=) 17230 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17231 ac_optarg= 17232 ac_shift=: 17233 ;; 17234 *) 17235 ac_option=$1 17236 ac_optarg=$2 17237 ac_shift=shift 17238 ;; 17239 esac 17240 17241 case $ac_option in 17242 # Handling of the options. 17243 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17244 ac_cs_recheck=: ;; 17245 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17246 $as_echo "$ac_cs_version"; exit ;; 17247 --config | --confi | --conf | --con | --co | --c ) 17248 $as_echo "$ac_cs_config"; exit ;; 17249 --debug | --debu | --deb | --de | --d | -d ) 17250 debug=: ;; 17251 --file | --fil | --fi | --f ) 17252 $ac_shift 17253 case $ac_optarg in 17254 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17255 '') as_fn_error $? "missing file argument" ;; 17256 esac 17257 as_fn_append CONFIG_FILES " '$ac_optarg'" 17258 ac_need_defaults=false;; 17259 --header | --heade | --head | --hea ) 17260 $ac_shift 17261 case $ac_optarg in 17262 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17263 esac 17264 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17265 ac_need_defaults=false;; 17266 --he | --h) 17267 # Conflict between --help and --header 17268 as_fn_error $? "ambiguous option: \`$1' 17269Try \`$0 --help' for more information.";; 17270 --help | --hel | -h ) 17271 $as_echo "$ac_cs_usage"; exit ;; 17272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17273 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17274 ac_cs_silent=: ;; 17275 17276 # This is an error. 17277 -*) as_fn_error $? "unrecognized option: \`$1' 17278Try \`$0 --help' for more information." ;; 17279 17280 *) as_fn_append ac_config_targets " $1" 17281 ac_need_defaults=false ;; 17282 17283 esac 17284 shift 17285done 17286 17287ac_configure_extra_args= 17288 17289if $ac_cs_silent; then 17290 exec 6>/dev/null 17291 ac_configure_extra_args="$ac_configure_extra_args --silent" 17292fi 17293 17294_ACEOF 17295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17296if \$ac_cs_recheck; then 17297 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17298 shift 17299 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17300 CONFIG_SHELL='$SHELL' 17301 export CONFIG_SHELL 17302 exec "\$@" 17303fi 17304 17305_ACEOF 17306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17307exec 5>>config.log 17308{ 17309 echo 17310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17311## Running $as_me. ## 17312_ASBOX 17313 $as_echo "$ac_log" 17314} >&5 17315 17316_ACEOF 17317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17318# 17319# INIT-COMMANDS 17320# 17321AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17322 17323 17324# The HP-UX ksh and POSIX shell print the target directory to stdout 17325# if CDPATH is set. 17326(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17327 17328sed_quote_subst='$sed_quote_subst' 17329double_quote_subst='$double_quote_subst' 17330delay_variable_subst='$delay_variable_subst' 17331macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17332macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17333enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17334enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17335pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17336enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17337shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17338SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17339ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17340PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17341host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17342host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17343host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17344build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17345build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17346build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17347SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17348Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17349GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17350EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17351FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17352LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17353NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17354LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17355max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17356ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17357exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17358lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17359lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17360lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17361lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17362lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17363reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17364reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17365OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17366deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17367file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17368file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17369want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17370DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17371sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17372AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17373AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17374archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17375STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17376RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17377old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17378old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17379old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17380lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17381CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17382CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17383compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17384GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17385lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17386lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17387lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17388lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17389lt_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"`' 17390lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17391nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17392lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17393lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17394objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17395MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17396lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17397lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17398lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17399lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17400lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17401need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17402MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17403DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17404NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17405LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17406OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17407OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17408libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17409shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17410extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17411archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17412enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17413export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17414whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17415compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17416old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17417old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17418archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17419archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17420module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17421module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17422with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17423allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17424no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17425hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17426hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17427hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17428hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17429hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17430hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17431hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17432inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17433link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17434always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17435export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17436exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17437include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17438prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17439postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17440file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17441variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17442need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17443need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17444version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17445runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17446shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17447shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17448libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17449library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17450soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17451install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17452postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17453postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17454finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17455finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17456hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17457sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17458configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17459configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17460hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17461enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17462enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17463enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17464old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17465striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17466 17467LTCC='$LTCC' 17468LTCFLAGS='$LTCFLAGS' 17469compiler='$compiler_DEFAULT' 17470 17471# A function that is used when there is no print builtin or printf. 17472func_fallback_echo () 17473{ 17474 eval 'cat <<_LTECHO_EOF 17475\$1 17476_LTECHO_EOF' 17477} 17478 17479# Quote evaled strings. 17480for var in SHELL \ 17481ECHO \ 17482PATH_SEPARATOR \ 17483SED \ 17484GREP \ 17485EGREP \ 17486FGREP \ 17487LD \ 17488NM \ 17489LN_S \ 17490lt_SP2NL \ 17491lt_NL2SP \ 17492reload_flag \ 17493OBJDUMP \ 17494deplibs_check_method \ 17495file_magic_cmd \ 17496file_magic_glob \ 17497want_nocaseglob \ 17498DLLTOOL \ 17499sharedlib_from_linklib_cmd \ 17500AR \ 17501AR_FLAGS \ 17502archiver_list_spec \ 17503STRIP \ 17504RANLIB \ 17505CC \ 17506CFLAGS \ 17507compiler \ 17508lt_cv_sys_global_symbol_pipe \ 17509lt_cv_sys_global_symbol_to_cdecl \ 17510lt_cv_sys_global_symbol_to_import \ 17511lt_cv_sys_global_symbol_to_c_name_address \ 17512lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17513lt_cv_nm_interface \ 17514nm_file_list_spec \ 17515lt_cv_truncate_bin \ 17516lt_prog_compiler_no_builtin_flag \ 17517lt_prog_compiler_pic \ 17518lt_prog_compiler_wl \ 17519lt_prog_compiler_static \ 17520lt_cv_prog_compiler_c_o \ 17521need_locks \ 17522MANIFEST_TOOL \ 17523DSYMUTIL \ 17524NMEDIT \ 17525LIPO \ 17526OTOOL \ 17527OTOOL64 \ 17528shrext_cmds \ 17529export_dynamic_flag_spec \ 17530whole_archive_flag_spec \ 17531compiler_needs_object \ 17532with_gnu_ld \ 17533allow_undefined_flag \ 17534no_undefined_flag \ 17535hardcode_libdir_flag_spec \ 17536hardcode_libdir_separator \ 17537exclude_expsyms \ 17538include_expsyms \ 17539file_list_spec \ 17540variables_saved_for_relink \ 17541libname_spec \ 17542library_names_spec \ 17543soname_spec \ 17544install_override_mode \ 17545finish_eval \ 17546old_striplib \ 17547striplib; do 17548 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17549 *[\\\\\\\`\\"\\\$]*) 17550 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17551 ;; 17552 *) 17553 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17554 ;; 17555 esac 17556done 17557 17558# Double-quote double-evaled strings. 17559for var in reload_cmds \ 17560old_postinstall_cmds \ 17561old_postuninstall_cmds \ 17562old_archive_cmds \ 17563extract_expsyms_cmds \ 17564old_archive_from_new_cmds \ 17565old_archive_from_expsyms_cmds \ 17566archive_cmds \ 17567archive_expsym_cmds \ 17568module_cmds \ 17569module_expsym_cmds \ 17570export_symbols_cmds \ 17571prelink_cmds \ 17572postlink_cmds \ 17573postinstall_cmds \ 17574postuninstall_cmds \ 17575finish_cmds \ 17576sys_lib_search_path_spec \ 17577configure_time_dlsearch_path \ 17578configure_time_lt_sys_library_path; do 17579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17580 *[\\\\\\\`\\"\\\$]*) 17581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17582 ;; 17583 *) 17584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17585 ;; 17586 esac 17587done 17588 17589ac_aux_dir='$ac_aux_dir' 17590 17591# See if we are running on zsh, and set the options that allow our 17592# commands through without removal of \ escapes INIT. 17593if test -n "\${ZSH_VERSION+set}"; then 17594 setopt NO_GLOB_SUBST 17595fi 17596 17597 17598 PACKAGE='$PACKAGE' 17599 VERSION='$VERSION' 17600 RM='$RM' 17601 ofile='$ofile' 17602 17603 17604 17605# Capture the value of obsolete ALL_LINGUAS because we need it to compute 17606 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 17607 # from automake < 1.5. 17608 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 17609 # Capture the value of LINGUAS because we need it to compute CATALOGS. 17610 LINGUAS="${LINGUAS-%UNSET%}" 17611 17612 17613_ACEOF 17614 17615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17616 17617# Handling of arguments. 17618for ac_config_target in $ac_config_targets 17619do 17620 case $ac_config_target in 17621 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17622 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17623 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17624 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 17625 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17626 "libgnomekbd.pc") CONFIG_FILES="$CONFIG_FILES libgnomekbd.pc" ;; 17627 "libgnomekbdui.pc") CONFIG_FILES="$CONFIG_FILES libgnomekbdui.pc" ;; 17628 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 17629 "libgnomekbd/Makefile") CONFIG_FILES="$CONFIG_FILES libgnomekbd/Makefile" ;; 17630 "libgnomekbd/org.gnome.libgnomekbd.desktop.gschema.xml") CONFIG_FILES="$CONFIG_FILES libgnomekbd/org.gnome.libgnomekbd.desktop.gschema.xml" ;; 17631 "libgnomekbd/org.gnome.libgnomekbd.keyboard.gschema.xml") CONFIG_FILES="$CONFIG_FILES libgnomekbd/org.gnome.libgnomekbd.keyboard.gschema.xml" ;; 17632 "libgnomekbd/org.gnome.libgnomekbd.gschema.xml") CONFIG_FILES="$CONFIG_FILES libgnomekbd/org.gnome.libgnomekbd.gschema.xml" ;; 17633 "libgnomekbd/gkbd-keyboard-display.desktop.in") CONFIG_FILES="$CONFIG_FILES libgnomekbd/gkbd-keyboard-display.desktop.in" ;; 17634 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 17635 17636 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17637 esac 17638done 17639 17640 17641# If the user did not use the arguments to specify the items to instantiate, 17642# then the envvar interface is used. Set only those that are not. 17643# We use the long form for the default assignment because of an extremely 17644# bizarre bug on SunOS 4.1.3. 17645if $ac_need_defaults; then 17646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17649fi 17650 17651# Have a temporary directory for convenience. Make it in the build tree 17652# simply because there is no reason against having it here, and in addition, 17653# creating and moving files from /tmp can sometimes cause problems. 17654# Hook for its removal unless debugging. 17655# Note that there is a small window in which the directory will not be cleaned: 17656# after its creation but before its name has been assigned to `$tmp'. 17657$debug || 17658{ 17659 tmp= ac_tmp= 17660 trap 'exit_status=$? 17661 : "${ac_tmp:=$tmp}" 17662 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17663' 0 17664 trap 'as_fn_exit 1' 1 2 13 15 17665} 17666# Create a (secure) tmp directory for tmp files. 17667 17668{ 17669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17670 test -d "$tmp" 17671} || 17672{ 17673 tmp=./conf$$-$RANDOM 17674 (umask 077 && mkdir "$tmp") 17675} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17676ac_tmp=$tmp 17677 17678# Set up the scripts for CONFIG_FILES section. 17679# No need to generate them if there are no CONFIG_FILES. 17680# This happens for instance with `./config.status config.h'. 17681if test -n "$CONFIG_FILES"; then 17682 17683 17684ac_cr=`echo X | tr X '\015'` 17685# On cygwin, bash can eat \r inside `` if the user requested igncr. 17686# But we know of no other shell where ac_cr would be empty at this 17687# point, so we can use a bashism as a fallback. 17688if test "x$ac_cr" = x; then 17689 eval ac_cr=\$\'\\r\' 17690fi 17691ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17692if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17693 ac_cs_awk_cr='\\r' 17694else 17695 ac_cs_awk_cr=$ac_cr 17696fi 17697 17698echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17699_ACEOF 17700 17701 17702{ 17703 echo "cat >conf$$subs.awk <<_ACEOF" && 17704 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17705 echo "_ACEOF" 17706} >conf$$subs.sh || 17707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17708ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17709ac_delim='%!_!# ' 17710for ac_last_try in false false false false false :; do 17711 . ./conf$$subs.sh || 17712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17713 17714 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17715 if test $ac_delim_n = $ac_delim_num; then 17716 break 17717 elif $ac_last_try; then 17718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17719 else 17720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17721 fi 17722done 17723rm -f conf$$subs.sh 17724 17725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17726cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17727_ACEOF 17728sed -n ' 17729h 17730s/^/S["/; s/!.*/"]=/ 17731p 17732g 17733s/^[^!]*!// 17734:repl 17735t repl 17736s/'"$ac_delim"'$// 17737t delim 17738:nl 17739h 17740s/\(.\{148\}\)..*/\1/ 17741t more1 17742s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17743p 17744n 17745b repl 17746:more1 17747s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17748p 17749g 17750s/.\{148\}// 17751t nl 17752:delim 17753h 17754s/\(.\{148\}\)..*/\1/ 17755t more2 17756s/["\\]/\\&/g; s/^/"/; s/$/"/ 17757p 17758b 17759:more2 17760s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17761p 17762g 17763s/.\{148\}// 17764t delim 17765' <conf$$subs.awk | sed ' 17766/^[^""]/{ 17767 N 17768 s/\n// 17769} 17770' >>$CONFIG_STATUS || ac_write_fail=1 17771rm -f conf$$subs.awk 17772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17773_ACAWK 17774cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17775 for (key in S) S_is_set[key] = 1 17776 FS = "" 17777 17778} 17779{ 17780 line = $ 0 17781 nfields = split(line, field, "@") 17782 substed = 0 17783 len = length(field[1]) 17784 for (i = 2; i < nfields; i++) { 17785 key = field[i] 17786 keylen = length(key) 17787 if (S_is_set[key]) { 17788 value = S[key] 17789 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17790 len += length(value) + length(field[++i]) 17791 substed = 1 17792 } else 17793 len += 1 + keylen 17794 } 17795 17796 print line 17797} 17798 17799_ACAWK 17800_ACEOF 17801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17802if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17803 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17804else 17805 cat 17806fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17807 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17808_ACEOF 17809 17810# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17811# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17812# trailing colons and then remove the whole line if VPATH becomes empty 17813# (actually we leave an empty line to preserve line numbers). 17814if test "x$srcdir" = x.; then 17815 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17816h 17817s/// 17818s/^/:/ 17819s/[ ]*$/:/ 17820s/:\$(srcdir):/:/g 17821s/:\${srcdir}:/:/g 17822s/:@srcdir@:/:/g 17823s/^:*// 17824s/:*$// 17825x 17826s/\(=[ ]*\).*/\1/ 17827G 17828s/\n// 17829s/^[^=]*=[ ]*$// 17830}' 17831fi 17832 17833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17834fi # test -n "$CONFIG_FILES" 17835 17836# Set up the scripts for CONFIG_HEADERS section. 17837# No need to generate them if there are no CONFIG_HEADERS. 17838# This happens for instance with `./config.status Makefile'. 17839if test -n "$CONFIG_HEADERS"; then 17840cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17841BEGIN { 17842_ACEOF 17843 17844# Transform confdefs.h into an awk script `defines.awk', embedded as 17845# here-document in config.status, that substitutes the proper values into 17846# config.h.in to produce config.h. 17847 17848# Create a delimiter string that does not exist in confdefs.h, to ease 17849# handling of long lines. 17850ac_delim='%!_!# ' 17851for ac_last_try in false false :; do 17852 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17853 if test -z "$ac_tt"; then 17854 break 17855 elif $ac_last_try; then 17856 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17857 else 17858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17859 fi 17860done 17861 17862# For the awk script, D is an array of macro values keyed by name, 17863# likewise P contains macro parameters if any. Preserve backslash 17864# newline sequences. 17865 17866ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17867sed -n ' 17868s/.\{148\}/&'"$ac_delim"'/g 17869t rset 17870:rset 17871s/^[ ]*#[ ]*define[ ][ ]*/ / 17872t def 17873d 17874:def 17875s/\\$// 17876t bsnl 17877s/["\\]/\\&/g 17878s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17879D["\1"]=" \3"/p 17880s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17881d 17882:bsnl 17883s/["\\]/\\&/g 17884s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17885D["\1"]=" \3\\\\\\n"\\/p 17886t cont 17887s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17888t cont 17889d 17890:cont 17891n 17892s/.\{148\}/&'"$ac_delim"'/g 17893t clear 17894:clear 17895s/\\$// 17896t bsnlc 17897s/["\\]/\\&/g; s/^/"/; s/$/"/p 17898d 17899:bsnlc 17900s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17901b cont 17902' <confdefs.h | sed ' 17903s/'"$ac_delim"'/"\\\ 17904"/g' >>$CONFIG_STATUS || ac_write_fail=1 17905 17906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17907 for (key in D) D_is_set[key] = 1 17908 FS = "" 17909} 17910/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17911 line = \$ 0 17912 split(line, arg, " ") 17913 if (arg[1] == "#") { 17914 defundef = arg[2] 17915 mac1 = arg[3] 17916 } else { 17917 defundef = substr(arg[1], 2) 17918 mac1 = arg[2] 17919 } 17920 split(mac1, mac2, "(") #) 17921 macro = mac2[1] 17922 prefix = substr(line, 1, index(line, defundef) - 1) 17923 if (D_is_set[macro]) { 17924 # Preserve the white space surrounding the "#". 17925 print prefix "define", macro P[macro] D[macro] 17926 next 17927 } else { 17928 # Replace #undef with comments. This is necessary, for example, 17929 # in the case of _POSIX_SOURCE, which is predefined and required 17930 # on some systems where configure will not decide to define it. 17931 if (defundef == "undef") { 17932 print "/*", prefix defundef, macro, "*/" 17933 next 17934 } 17935 } 17936} 17937{ print } 17938_ACAWK 17939_ACEOF 17940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17941 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17942fi # test -n "$CONFIG_HEADERS" 17943 17944 17945eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17946shift 17947for ac_tag 17948do 17949 case $ac_tag in 17950 :[FHLC]) ac_mode=$ac_tag; continue;; 17951 esac 17952 case $ac_mode$ac_tag in 17953 :[FHL]*:*);; 17954 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17955 :[FH]-) ac_tag=-:-;; 17956 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17957 esac 17958 ac_save_IFS=$IFS 17959 IFS=: 17960 set x $ac_tag 17961 IFS=$ac_save_IFS 17962 shift 17963 ac_file=$1 17964 shift 17965 17966 case $ac_mode in 17967 :L) ac_source=$1;; 17968 :[FH]) 17969 ac_file_inputs= 17970 for ac_f 17971 do 17972 case $ac_f in 17973 -) ac_f="$ac_tmp/stdin";; 17974 *) # Look for the file first in the build tree, then in the source tree 17975 # (if the path is not absolute). The absolute path cannot be DOS-style, 17976 # because $ac_f cannot contain `:'. 17977 test -f "$ac_f" || 17978 case $ac_f in 17979 [\\/$]*) false;; 17980 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17981 esac || 17982 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17983 esac 17984 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17985 as_fn_append ac_file_inputs " '$ac_f'" 17986 done 17987 17988 # Let's still pretend it is `configure' which instantiates (i.e., don't 17989 # use $as_me), people would be surprised to read: 17990 # /* config.h. Generated by config.status. */ 17991 configure_input='Generated from '` 17992 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17993 `' by configure.' 17994 if test x"$ac_file" != x-; then 17995 configure_input="$ac_file. $configure_input" 17996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17997$as_echo "$as_me: creating $ac_file" >&6;} 17998 fi 17999 # Neutralize special characters interpreted by sed in replacement strings. 18000 case $configure_input in #( 18001 *\&* | *\|* | *\\* ) 18002 ac_sed_conf_input=`$as_echo "$configure_input" | 18003 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18004 *) ac_sed_conf_input=$configure_input;; 18005 esac 18006 18007 case $ac_tag in 18008 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18010 esac 18011 ;; 18012 esac 18013 18014 ac_dir=`$as_dirname -- "$ac_file" || 18015$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18016 X"$ac_file" : 'X\(//\)[^/]' \| \ 18017 X"$ac_file" : 'X\(//\)$' \| \ 18018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18019$as_echo X"$ac_file" | 18020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18021 s//\1/ 18022 q 18023 } 18024 /^X\(\/\/\)[^/].*/{ 18025 s//\1/ 18026 q 18027 } 18028 /^X\(\/\/\)$/{ 18029 s//\1/ 18030 q 18031 } 18032 /^X\(\/\).*/{ 18033 s//\1/ 18034 q 18035 } 18036 s/.*/./; q'` 18037 as_dir="$ac_dir"; as_fn_mkdir_p 18038 ac_builddir=. 18039 18040case "$ac_dir" in 18041.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18042*) 18043 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18044 # A ".." for each directory in $ac_dir_suffix. 18045 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18046 case $ac_top_builddir_sub in 18047 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18048 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18049 esac ;; 18050esac 18051ac_abs_top_builddir=$ac_pwd 18052ac_abs_builddir=$ac_pwd$ac_dir_suffix 18053# for backward compatibility: 18054ac_top_builddir=$ac_top_build_prefix 18055 18056case $srcdir in 18057 .) # We are building in place. 18058 ac_srcdir=. 18059 ac_top_srcdir=$ac_top_builddir_sub 18060 ac_abs_top_srcdir=$ac_pwd ;; 18061 [\\/]* | ?:[\\/]* ) # Absolute name. 18062 ac_srcdir=$srcdir$ac_dir_suffix; 18063 ac_top_srcdir=$srcdir 18064 ac_abs_top_srcdir=$srcdir ;; 18065 *) # Relative name. 18066 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18067 ac_top_srcdir=$ac_top_build_prefix$srcdir 18068 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18069esac 18070ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18071 18072 18073 case $ac_mode in 18074 :F) 18075 # 18076 # CONFIG_FILE 18077 # 18078 18079 case $INSTALL in 18080 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18081 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18082 esac 18083 ac_MKDIR_P=$MKDIR_P 18084 case $MKDIR_P in 18085 [\\/$]* | ?:[\\/]* ) ;; 18086 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18087 esac 18088_ACEOF 18089 18090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18091# If the template does not know about datarootdir, expand it. 18092# FIXME: This hack should be removed a few years after 2.60. 18093ac_datarootdir_hack=; ac_datarootdir_seen= 18094ac_sed_dataroot=' 18095/datarootdir/ { 18096 p 18097 q 18098} 18099/@datadir@/p 18100/@docdir@/p 18101/@infodir@/p 18102/@localedir@/p 18103/@mandir@/p' 18104case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18105*datarootdir*) ac_datarootdir_seen=yes;; 18106*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18108$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18109_ACEOF 18110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18111 ac_datarootdir_hack=' 18112 s&@datadir@&$datadir&g 18113 s&@docdir@&$docdir&g 18114 s&@infodir@&$infodir&g 18115 s&@localedir@&$localedir&g 18116 s&@mandir@&$mandir&g 18117 s&\\\${datarootdir}&$datarootdir&g' ;; 18118esac 18119_ACEOF 18120 18121# Neutralize VPATH when `$srcdir' = `.'. 18122# Shell code in configure.ac might set extrasub. 18123# FIXME: do we really want to maintain this feature? 18124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18125ac_sed_extra="$ac_vpsub 18126$extrasub 18127_ACEOF 18128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18129:t 18130/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18131s|@configure_input@|$ac_sed_conf_input|;t t 18132s&@top_builddir@&$ac_top_builddir_sub&;t t 18133s&@top_build_prefix@&$ac_top_build_prefix&;t t 18134s&@srcdir@&$ac_srcdir&;t t 18135s&@abs_srcdir@&$ac_abs_srcdir&;t t 18136s&@top_srcdir@&$ac_top_srcdir&;t t 18137s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18138s&@builddir@&$ac_builddir&;t t 18139s&@abs_builddir@&$ac_abs_builddir&;t t 18140s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18141s&@INSTALL@&$ac_INSTALL&;t t 18142s&@MKDIR_P@&$ac_MKDIR_P&;t t 18143$ac_datarootdir_hack 18144" 18145eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18146 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18147 18148test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18149 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18150 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18151 "$ac_tmp/out"`; test -z "$ac_out"; } && 18152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18153which seems to be undefined. Please make sure it is defined" >&5 18154$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18155which seems to be undefined. Please make sure it is defined" >&2;} 18156 18157 rm -f "$ac_tmp/stdin" 18158 case $ac_file in 18159 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18160 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18161 esac \ 18162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18163 ;; 18164 :H) 18165 # 18166 # CONFIG_HEADER 18167 # 18168 if test x"$ac_file" != x-; then 18169 { 18170 $as_echo "/* $configure_input */" \ 18171 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18172 } >"$ac_tmp/config.h" \ 18173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18174 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18175 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18176$as_echo "$as_me: $ac_file is unchanged" >&6;} 18177 else 18178 rm -f "$ac_file" 18179 mv "$ac_tmp/config.h" "$ac_file" \ 18180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18181 fi 18182 else 18183 $as_echo "/* $configure_input */" \ 18184 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18185 || as_fn_error $? "could not create -" "$LINENO" 5 18186 fi 18187# Compute "$ac_file"'s index in $config_headers. 18188_am_arg="$ac_file" 18189_am_stamp_count=1 18190for _am_header in $config_headers :; do 18191 case $_am_header in 18192 $_am_arg | $_am_arg:* ) 18193 break ;; 18194 * ) 18195 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18196 esac 18197done 18198echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18199$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18200 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18201 X"$_am_arg" : 'X\(//\)$' \| \ 18202 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18203$as_echo X"$_am_arg" | 18204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18205 s//\1/ 18206 q 18207 } 18208 /^X\(\/\/\)[^/].*/{ 18209 s//\1/ 18210 q 18211 } 18212 /^X\(\/\/\)$/{ 18213 s//\1/ 18214 q 18215 } 18216 /^X\(\/\).*/{ 18217 s//\1/ 18218 q 18219 } 18220 s/.*/./; q'`/stamp-h$_am_stamp_count 18221 ;; 18222 18223 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18224$as_echo "$as_me: executing $ac_file commands" >&6;} 18225 ;; 18226 esac 18227 18228 18229 case $ac_file$ac_mode in 18230 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18231 # Older Autoconf quotes --file arguments for eval, but not when files 18232 # are listed without --file. Let's play safe and only enable the eval 18233 # if we detect the quoting. 18234 # TODO: see whether this extra hack can be removed once we start 18235 # requiring Autoconf 2.70 or later. 18236 case $CONFIG_FILES in #( 18237 *\'*) : 18238 eval set x "$CONFIG_FILES" ;; #( 18239 *) : 18240 set x $CONFIG_FILES ;; #( 18241 *) : 18242 ;; 18243esac 18244 shift 18245 # Used to flag and report bootstrapping failures. 18246 am_rc=0 18247 for am_mf 18248 do 18249 # Strip MF so we end up with the name of the file. 18250 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 18251 # Check whether this is an Automake generated Makefile which includes 18252 # dependency-tracking related rules and includes. 18253 # Grep'ing the whole file directly is not great: AIX grep has a line 18254 # limit of 2048, but all sed's we know have understand at least 4000. 18255 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18256 || continue 18257 am_dirpart=`$as_dirname -- "$am_mf" || 18258$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18259 X"$am_mf" : 'X\(//\)[^/]' \| \ 18260 X"$am_mf" : 'X\(//\)$' \| \ 18261 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18262$as_echo X"$am_mf" | 18263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18264 s//\1/ 18265 q 18266 } 18267 /^X\(\/\/\)[^/].*/{ 18268 s//\1/ 18269 q 18270 } 18271 /^X\(\/\/\)$/{ 18272 s//\1/ 18273 q 18274 } 18275 /^X\(\/\).*/{ 18276 s//\1/ 18277 q 18278 } 18279 s/.*/./; q'` 18280 am_filepart=`$as_basename -- "$am_mf" || 18281$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18282 X"$am_mf" : 'X\(//\)$' \| \ 18283 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18284$as_echo X/"$am_mf" | 18285 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18286 s//\1/ 18287 q 18288 } 18289 /^X\/\(\/\/\)$/{ 18290 s//\1/ 18291 q 18292 } 18293 /^X\/\(\/\).*/{ 18294 s//\1/ 18295 q 18296 } 18297 s/.*/./; q'` 18298 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18299 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18300 | $MAKE -f - am--depfiles" >&5 18301 (cd "$am_dirpart" \ 18302 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18303 | $MAKE -f - am--depfiles) >&5 2>&5 18304 ac_status=$? 18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18306 (exit $ac_status); } || am_rc=$? 18307 done 18308 if test $am_rc -ne 0; then 18309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18311as_fn_error $? "Something went wrong bootstrapping makefile fragments 18312 for automatic dependency tracking. Try re-running configure with the 18313 '--disable-dependency-tracking' option to at least be able to build 18314 the package (albeit without support for automatic dependency tracking). 18315See \`config.log' for more details" "$LINENO" 5; } 18316 fi 18317 { am_dirpart=; unset am_dirpart;} 18318 { am_filepart=; unset am_filepart;} 18319 { am_mf=; unset am_mf;} 18320 { am_rc=; unset am_rc;} 18321 rm -f conftest-deps.mk 18322} 18323 ;; 18324 "libtool":C) 18325 18326 # See if we are running on zsh, and set the options that allow our 18327 # commands through without removal of \ escapes. 18328 if test -n "${ZSH_VERSION+set}"; then 18329 setopt NO_GLOB_SUBST 18330 fi 18331 18332 cfgfile=${ofile}T 18333 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18334 $RM "$cfgfile" 18335 18336 cat <<_LT_EOF >> "$cfgfile" 18337#! $SHELL 18338# Generated automatically by $as_me ($PACKAGE) $VERSION 18339# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18340# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18341 18342# Provide generalized library-building support services. 18343# Written by Gordon Matzigkeit, 1996 18344 18345# Copyright (C) 2014 Free Software Foundation, Inc. 18346# This is free software; see the source for copying conditions. There is NO 18347# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18348 18349# GNU Libtool is free software; you can redistribute it and/or modify 18350# it under the terms of the GNU General Public License as published by 18351# the Free Software Foundation; either version 2 of of the License, or 18352# (at your option) any later version. 18353# 18354# As a special exception to the GNU General Public License, if you 18355# distribute this file as part of a program or library that is built 18356# using GNU Libtool, you may include this file under the same 18357# distribution terms that you use for the rest of that program. 18358# 18359# GNU Libtool is distributed in the hope that it will be useful, but 18360# WITHOUT ANY WARRANTY; without even the implied warranty of 18361# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18362# GNU General Public License for more details. 18363# 18364# You should have received a copy of the GNU General Public License 18365# along with this program. If not, see <http://www.gnu.org/licenses/>. 18366 18367 18368# The names of the tagged configurations supported by this script. 18369available_tags='' 18370 18371# Configured defaults for sys_lib_dlsearch_path munging. 18372: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18373 18374# ### BEGIN LIBTOOL CONFIG 18375 18376# Which release of libtool.m4 was used? 18377macro_version=$macro_version 18378macro_revision=$macro_revision 18379 18380# Whether or not to build shared libraries. 18381build_libtool_libs=$enable_shared 18382 18383# Whether or not to build static libraries. 18384build_old_libs=$enable_static 18385 18386# What type of objects to build. 18387pic_mode=$pic_mode 18388 18389# Whether or not to optimize for fast installation. 18390fast_install=$enable_fast_install 18391 18392# Shared archive member basename,for filename based shared library versioning on AIX. 18393shared_archive_member_spec=$shared_archive_member_spec 18394 18395# Shell to use when invoking shell scripts. 18396SHELL=$lt_SHELL 18397 18398# An echo program that protects backslashes. 18399ECHO=$lt_ECHO 18400 18401# The PATH separator for the build system. 18402PATH_SEPARATOR=$lt_PATH_SEPARATOR 18403 18404# The host system. 18405host_alias=$host_alias 18406host=$host 18407host_os=$host_os 18408 18409# The build system. 18410build_alias=$build_alias 18411build=$build 18412build_os=$build_os 18413 18414# A sed program that does not truncate output. 18415SED=$lt_SED 18416 18417# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18418Xsed="\$SED -e 1s/^X//" 18419 18420# A grep program that handles long lines. 18421GREP=$lt_GREP 18422 18423# An ERE matcher. 18424EGREP=$lt_EGREP 18425 18426# A literal string matcher. 18427FGREP=$lt_FGREP 18428 18429# A BSD- or MS-compatible name lister. 18430NM=$lt_NM 18431 18432# Whether we need soft or hard links. 18433LN_S=$lt_LN_S 18434 18435# What is the maximum length of a command? 18436max_cmd_len=$max_cmd_len 18437 18438# Object file suffix (normally "o"). 18439objext=$ac_objext 18440 18441# Executable file suffix (normally ""). 18442exeext=$exeext 18443 18444# whether the shell understands "unset". 18445lt_unset=$lt_unset 18446 18447# turn spaces into newlines. 18448SP2NL=$lt_lt_SP2NL 18449 18450# turn newlines into spaces. 18451NL2SP=$lt_lt_NL2SP 18452 18453# convert \$build file names to \$host format. 18454to_host_file_cmd=$lt_cv_to_host_file_cmd 18455 18456# convert \$build files to toolchain format. 18457to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18458 18459# An object symbol dumper. 18460OBJDUMP=$lt_OBJDUMP 18461 18462# Method to check whether dependent libraries are shared objects. 18463deplibs_check_method=$lt_deplibs_check_method 18464 18465# Command to use when deplibs_check_method = "file_magic". 18466file_magic_cmd=$lt_file_magic_cmd 18467 18468# How to find potential files when deplibs_check_method = "file_magic". 18469file_magic_glob=$lt_file_magic_glob 18470 18471# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18472want_nocaseglob=$lt_want_nocaseglob 18473 18474# DLL creation program. 18475DLLTOOL=$lt_DLLTOOL 18476 18477# Command to associate shared and link libraries. 18478sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18479 18480# The archiver. 18481AR=$lt_AR 18482 18483# Flags to create an archive. 18484AR_FLAGS=$lt_AR_FLAGS 18485 18486# How to feed a file listing to the archiver. 18487archiver_list_spec=$lt_archiver_list_spec 18488 18489# A symbol stripping program. 18490STRIP=$lt_STRIP 18491 18492# Commands used to install an old-style archive. 18493RANLIB=$lt_RANLIB 18494old_postinstall_cmds=$lt_old_postinstall_cmds 18495old_postuninstall_cmds=$lt_old_postuninstall_cmds 18496 18497# Whether to use a lock for old archive extraction. 18498lock_old_archive_extraction=$lock_old_archive_extraction 18499 18500# A C compiler. 18501LTCC=$lt_CC 18502 18503# LTCC compiler flags. 18504LTCFLAGS=$lt_CFLAGS 18505 18506# Take the output of nm and produce a listing of raw symbols and C names. 18507global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18508 18509# Transform the output of nm in a proper C declaration. 18510global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18511 18512# Transform the output of nm into a list of symbols to manually relocate. 18513global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18514 18515# Transform the output of nm in a C name address pair. 18516global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18517 18518# Transform the output of nm in a C name address pair when lib prefix is needed. 18519global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18520 18521# The name lister interface. 18522nm_interface=$lt_lt_cv_nm_interface 18523 18524# Specify filename containing input files for \$NM. 18525nm_file_list_spec=$lt_nm_file_list_spec 18526 18527# The root where to search for dependent libraries,and where our libraries should be installed. 18528lt_sysroot=$lt_sysroot 18529 18530# Command to truncate a binary pipe. 18531lt_truncate_bin=$lt_lt_cv_truncate_bin 18532 18533# The name of the directory that contains temporary libtool files. 18534objdir=$objdir 18535 18536# Used to examine libraries when file_magic_cmd begins with "file". 18537MAGIC_CMD=$MAGIC_CMD 18538 18539# Must we lock files when doing compilation? 18540need_locks=$lt_need_locks 18541 18542# Manifest tool. 18543MANIFEST_TOOL=$lt_MANIFEST_TOOL 18544 18545# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18546DSYMUTIL=$lt_DSYMUTIL 18547 18548# Tool to change global to local symbols on Mac OS X. 18549NMEDIT=$lt_NMEDIT 18550 18551# Tool to manipulate fat objects and archives on Mac OS X. 18552LIPO=$lt_LIPO 18553 18554# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18555OTOOL=$lt_OTOOL 18556 18557# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18558OTOOL64=$lt_OTOOL64 18559 18560# Old archive suffix (normally "a"). 18561libext=$libext 18562 18563# Shared library suffix (normally ".so"). 18564shrext_cmds=$lt_shrext_cmds 18565 18566# The commands to extract the exported symbol list from a shared archive. 18567extract_expsyms_cmds=$lt_extract_expsyms_cmds 18568 18569# Variables whose values should be saved in libtool wrapper scripts and 18570# restored at link time. 18571variables_saved_for_relink=$lt_variables_saved_for_relink 18572 18573# Do we need the "lib" prefix for modules? 18574need_lib_prefix=$need_lib_prefix 18575 18576# Do we need a version for libraries? 18577need_version=$need_version 18578 18579# Library versioning type. 18580version_type=$version_type 18581 18582# Shared library runtime path variable. 18583runpath_var=$runpath_var 18584 18585# Shared library path variable. 18586shlibpath_var=$shlibpath_var 18587 18588# Is shlibpath searched before the hard-coded library search path? 18589shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18590 18591# Format of library name prefix. 18592libname_spec=$lt_libname_spec 18593 18594# List of archive names. First name is the real one, the rest are links. 18595# The last name is the one that the linker finds with -lNAME 18596library_names_spec=$lt_library_names_spec 18597 18598# The coded name of the library, if different from the real name. 18599soname_spec=$lt_soname_spec 18600 18601# Permission mode override for installation of shared libraries. 18602install_override_mode=$lt_install_override_mode 18603 18604# Command to use after installation of a shared archive. 18605postinstall_cmds=$lt_postinstall_cmds 18606 18607# Command to use after uninstallation of a shared archive. 18608postuninstall_cmds=$lt_postuninstall_cmds 18609 18610# Commands used to finish a libtool library installation in a directory. 18611finish_cmds=$lt_finish_cmds 18612 18613# As "finish_cmds", except a single script fragment to be evaled but 18614# not shown. 18615finish_eval=$lt_finish_eval 18616 18617# Whether we should hardcode library paths into libraries. 18618hardcode_into_libs=$hardcode_into_libs 18619 18620# Compile-time system search path for libraries. 18621sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18622 18623# Detected run-time system search path for libraries. 18624sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18625 18626# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18627configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18628 18629# Whether dlopen is supported. 18630dlopen_support=$enable_dlopen 18631 18632# Whether dlopen of programs is supported. 18633dlopen_self=$enable_dlopen_self 18634 18635# Whether dlopen of statically linked programs is supported. 18636dlopen_self_static=$enable_dlopen_self_static 18637 18638# Commands to strip libraries. 18639old_striplib=$lt_old_striplib 18640striplib=$lt_striplib 18641 18642 18643# The linker used to build libraries. 18644LD=$lt_LD 18645 18646# How to create reloadable object files. 18647reload_flag=$lt_reload_flag 18648reload_cmds=$lt_reload_cmds 18649 18650# Commands used to build an old-style archive. 18651old_archive_cmds=$lt_old_archive_cmds 18652 18653# A language specific compiler. 18654CC=$lt_compiler 18655 18656# Is the compiler the GNU compiler? 18657with_gcc=$GCC 18658 18659# Compiler flag to turn off builtin functions. 18660no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18661 18662# Additional compiler flags for building library objects. 18663pic_flag=$lt_lt_prog_compiler_pic 18664 18665# How to pass a linker flag through the compiler. 18666wl=$lt_lt_prog_compiler_wl 18667 18668# Compiler flag to prevent dynamic linking. 18669link_static_flag=$lt_lt_prog_compiler_static 18670 18671# Does compiler simultaneously support -c and -o options? 18672compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18673 18674# Whether or not to add -lc for building shared libraries. 18675build_libtool_need_lc=$archive_cmds_need_lc 18676 18677# Whether or not to disallow shared libs when runtime libs are static. 18678allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18679 18680# Compiler flag to allow reflexive dlopens. 18681export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18682 18683# Compiler flag to generate shared objects directly from archives. 18684whole_archive_flag_spec=$lt_whole_archive_flag_spec 18685 18686# Whether the compiler copes with passing no objects directly. 18687compiler_needs_object=$lt_compiler_needs_object 18688 18689# Create an old-style archive from a shared archive. 18690old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18691 18692# Create a temporary old-style archive to link instead of a shared archive. 18693old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18694 18695# Commands used to build a shared archive. 18696archive_cmds=$lt_archive_cmds 18697archive_expsym_cmds=$lt_archive_expsym_cmds 18698 18699# Commands used to build a loadable module if different from building 18700# a shared archive. 18701module_cmds=$lt_module_cmds 18702module_expsym_cmds=$lt_module_expsym_cmds 18703 18704# Whether we are building with GNU ld or not. 18705with_gnu_ld=$lt_with_gnu_ld 18706 18707# Flag that allows shared libraries with undefined symbols to be built. 18708allow_undefined_flag=$lt_allow_undefined_flag 18709 18710# Flag that enforces no undefined symbols. 18711no_undefined_flag=$lt_no_undefined_flag 18712 18713# Flag to hardcode \$libdir into a binary during linking. 18714# This must work even if \$libdir does not exist 18715hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18716 18717# Whether we need a single "-rpath" flag with a separated argument. 18718hardcode_libdir_separator=$lt_hardcode_libdir_separator 18719 18720# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18721# DIR into the resulting binary. 18722hardcode_direct=$hardcode_direct 18723 18724# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18725# DIR into the resulting binary and the resulting library dependency is 18726# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18727# library is relocated. 18728hardcode_direct_absolute=$hardcode_direct_absolute 18729 18730# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18731# into the resulting binary. 18732hardcode_minus_L=$hardcode_minus_L 18733 18734# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18735# into the resulting binary. 18736hardcode_shlibpath_var=$hardcode_shlibpath_var 18737 18738# Set to "yes" if building a shared library automatically hardcodes DIR 18739# into the library and all subsequent libraries and executables linked 18740# against it. 18741hardcode_automatic=$hardcode_automatic 18742 18743# Set to yes if linker adds runtime paths of dependent libraries 18744# to runtime path list. 18745inherit_rpath=$inherit_rpath 18746 18747# Whether libtool must link a program against all its dependency libraries. 18748link_all_deplibs=$link_all_deplibs 18749 18750# Set to "yes" if exported symbols are required. 18751always_export_symbols=$always_export_symbols 18752 18753# The commands to list exported symbols. 18754export_symbols_cmds=$lt_export_symbols_cmds 18755 18756# Symbols that should not be listed in the preloaded symbols. 18757exclude_expsyms=$lt_exclude_expsyms 18758 18759# Symbols that must always be exported. 18760include_expsyms=$lt_include_expsyms 18761 18762# Commands necessary for linking programs (against libraries) with templates. 18763prelink_cmds=$lt_prelink_cmds 18764 18765# Commands necessary for finishing linking programs. 18766postlink_cmds=$lt_postlink_cmds 18767 18768# Specify filename containing input files. 18769file_list_spec=$lt_file_list_spec 18770 18771# How to hardcode a shared library path into an executable. 18772hardcode_action=$hardcode_action 18773 18774# ### END LIBTOOL CONFIG 18775 18776_LT_EOF 18777 18778 cat <<'_LT_EOF' >> "$cfgfile" 18779 18780# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18781 18782# func_munge_path_list VARIABLE PATH 18783# ----------------------------------- 18784# VARIABLE is name of variable containing _space_ separated list of 18785# directories to be munged by the contents of PATH, which is string 18786# having a format: 18787# "DIR[:DIR]:" 18788# string "DIR[ DIR]" will be prepended to VARIABLE 18789# ":DIR[:DIR]" 18790# string "DIR[ DIR]" will be appended to VARIABLE 18791# "DIRP[:DIRP]::[DIRA:]DIRA" 18792# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18793# "DIRA[ DIRA]" will be appended to VARIABLE 18794# "DIR[:DIR]" 18795# VARIABLE will be replaced by "DIR[ DIR]" 18796func_munge_path_list () 18797{ 18798 case x$2 in 18799 x) 18800 ;; 18801 *:) 18802 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18803 ;; 18804 x:*) 18805 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18806 ;; 18807 *::*) 18808 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18809 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18810 ;; 18811 *) 18812 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18813 ;; 18814 esac 18815} 18816 18817 18818# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18819func_cc_basename () 18820{ 18821 for cc_temp in $*""; do 18822 case $cc_temp in 18823 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18824 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18825 \-*) ;; 18826 *) break;; 18827 esac 18828 done 18829 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18830} 18831 18832 18833# ### END FUNCTIONS SHARED WITH CONFIGURE 18834 18835_LT_EOF 18836 18837 case $host_os in 18838 aix3*) 18839 cat <<\_LT_EOF >> "$cfgfile" 18840# AIX sometimes has problems with the GCC collect2 program. For some 18841# reason, if we set the COLLECT_NAMES environment variable, the problems 18842# vanish in a puff of smoke. 18843if test set != "${COLLECT_NAMES+set}"; then 18844 COLLECT_NAMES= 18845 export COLLECT_NAMES 18846fi 18847_LT_EOF 18848 ;; 18849 esac 18850 18851 18852ltmain=$ac_aux_dir/ltmain.sh 18853 18854 18855 # We use sed instead of cat because bash on DJGPP gets confused if 18856 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18857 # text mode, it properly converts lines to CR/LF. This bash problem 18858 # is reportedly fixed, but why not run on old versions too? 18859 sed '$q' "$ltmain" >> "$cfgfile" \ 18860 || (rm -f "$cfgfile"; exit 1) 18861 18862 mv -f "$cfgfile" "$ofile" || 18863 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18864 chmod +x "$ofile" 18865 18866 ;; 18867 "po-directories":C) 18868 for ac_file in $CONFIG_FILES; do 18869 # Support "outfile[:infile[:infile...]]" 18870 case "$ac_file" in 18871 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 18872 esac 18873 # PO directories have a Makefile.in generated from Makefile.in.in. 18874 case "$ac_file" in */Makefile.in) 18875 # Adjust a relative srcdir. 18876 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 18877 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 18878 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 18879 # In autoconf-2.13 it is called $ac_given_srcdir. 18880 # In autoconf-2.50 it is called $srcdir. 18881 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 18882 case "$ac_given_srcdir" in 18883 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 18884 /*) top_srcdir="$ac_given_srcdir" ;; 18885 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 18886 esac 18887 # Treat a directory as a PO directory if and only if it has a 18888 # POTFILES.in file. This allows packages to have multiple PO 18889 # directories under different names or in different locations. 18890 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 18891 rm -f "$ac_dir/POTFILES" 18892 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 18893 gt_tab=`printf '\t'` 18894 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" 18895 POMAKEFILEDEPS="POTFILES.in" 18896 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 18897 # on $ac_dir but don't depend on user-specified configuration 18898 # parameters. 18899 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 18900 # The LINGUAS file contains the set of available languages. 18901 if test -n "$OBSOLETE_ALL_LINGUAS"; then 18902 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 18903 fi 18904 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 18905 # Hide the ALL_LINGUAS assignment from automake < 1.5. 18906 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 18907 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 18908 else 18909 # The set of available languages was given in configure.in. 18910 # Hide the ALL_LINGUAS assignment from automake < 1.5. 18911 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 18912 fi 18913 # Compute POFILES 18914 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 18915 # Compute UPDATEPOFILES 18916 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 18917 # Compute DUMMYPOFILES 18918 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 18919 # Compute GMOFILES 18920 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 18921 case "$ac_given_srcdir" in 18922 .) srcdirpre= ;; 18923 *) srcdirpre='$(srcdir)/' ;; 18924 esac 18925 POFILES= 18926 UPDATEPOFILES= 18927 DUMMYPOFILES= 18928 GMOFILES= 18929 for lang in $ALL_LINGUAS; do 18930 POFILES="$POFILES $srcdirpre$lang.po" 18931 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 18932 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 18933 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 18934 done 18935 # CATALOGS depends on both $ac_dir and the user's LINGUAS 18936 # environment variable. 18937 INST_LINGUAS= 18938 if test -n "$ALL_LINGUAS"; then 18939 for presentlang in $ALL_LINGUAS; do 18940 useit=no 18941 if test "%UNSET%" != "$LINGUAS"; then 18942 desiredlanguages="$LINGUAS" 18943 else 18944 desiredlanguages="$ALL_LINGUAS" 18945 fi 18946 for desiredlang in $desiredlanguages; do 18947 # Use the presentlang catalog if desiredlang is 18948 # a. equal to presentlang, or 18949 # b. a variant of presentlang (because in this case, 18950 # presentlang can be used as a fallback for messages 18951 # which are not translated in the desiredlang catalog). 18952 case "$desiredlang" in 18953 "$presentlang"*) useit=yes;; 18954 esac 18955 done 18956 if test $useit = yes; then 18957 INST_LINGUAS="$INST_LINGUAS $presentlang" 18958 fi 18959 done 18960 fi 18961 CATALOGS= 18962 if test -n "$INST_LINGUAS"; then 18963 for lang in $INST_LINGUAS; do 18964 CATALOGS="$CATALOGS $lang.gmo" 18965 done 18966 fi 18967 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 18968 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" 18969 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 18970 if test -f "$f"; then 18971 case "$f" in 18972 *.orig | *.bak | *~) ;; 18973 *) cat "$f" >> "$ac_dir/Makefile" ;; 18974 esac 18975 fi 18976 done 18977 fi 18978 ;; 18979 esac 18980 done ;; 18981 18982 esac 18983done # for ac_tag 18984 18985 18986as_fn_exit 0 18987_ACEOF 18988ac_clean_files=$ac_clean_files_save 18989 18990test $ac_write_fail = 0 || 18991 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18992 18993 18994# configure is writing to config.log, and then calls config.status. 18995# config.status does its own redirection, appending to config.log. 18996# Unfortunately, on DOS this fails, as config.log is still kept open 18997# by configure, so config.status won't be able to write to it; its 18998# output is simply discarded. So we exec the FD to /dev/null, 18999# effectively closing config.log, so it can be properly (re)opened and 19000# appended to by config.status. When coming back to configure, we 19001# need to make the FD available again. 19002if test "$no_create" != yes; then 19003 ac_cs_success=: 19004 ac_config_status_args= 19005 test "$silent" = yes && 19006 ac_config_status_args="$ac_config_status_args --quiet" 19007 exec 5>/dev/null 19008 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19009 exec 5>>config.log 19010 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19011 # would make configure fail if this is the last instruction. 19012 $ac_cs_success || as_fn_exit 1 19013fi 19014if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19016$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19017fi 19018 19019