1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for gnokii 0.6.31. 4# 5# Report bugs to <gnokii-users@nongnu.org>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: gnokii-users@nongnu.org about your system, including 251$0: any error possibly output before this message. Then 252$0: install a modern shell, or manually run the script 253$0: under such a shell if you do have one." 254 fi 255 exit 1 256fi 257fi 258fi 259SHELL=${CONFIG_SHELL-/bin/sh} 260export SHELL 261# Unset more variables known to interfere with behavior of common tools. 262CLICOLOR_FORCE= GREP_OPTIONS= 263unset CLICOLOR_FORCE GREP_OPTIONS 264 265## --------------------- ## 266## M4sh Shell Functions. ## 267## --------------------- ## 268# as_fn_unset VAR 269# --------------- 270# Portably unset VAR. 271as_fn_unset () 272{ 273 { eval $1=; unset $1;} 274} 275as_unset=as_fn_unset 276 277# as_fn_set_status STATUS 278# ----------------------- 279# Set $? to STATUS, without forking. 280as_fn_set_status () 281{ 282 return $1 283} # as_fn_set_status 284 285# as_fn_exit STATUS 286# ----------------- 287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 288as_fn_exit () 289{ 290 set +e 291 as_fn_set_status $1 292 exit $1 293} # as_fn_exit 294 295# as_fn_mkdir_p 296# ------------- 297# Create "$as_dir" as a directory, including parents if necessary. 298as_fn_mkdir_p () 299{ 300 301 case $as_dir in #( 302 -*) as_dir=./$as_dir;; 303 esac 304 test -d "$as_dir" || eval $as_mkdir_p || { 305 as_dirs= 306 while :; do 307 case $as_dir in #( 308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 309 *) as_qdir=$as_dir;; 310 esac 311 as_dirs="'$as_qdir' $as_dirs" 312 as_dir=`$as_dirname -- "$as_dir" || 313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 314 X"$as_dir" : 'X\(//\)[^/]' \| \ 315 X"$as_dir" : 'X\(//\)$' \| \ 316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 317$as_echo X"$as_dir" | 318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\/\)[^/].*/{ 323 s//\1/ 324 q 325 } 326 /^X\(\/\/\)$/{ 327 s//\1/ 328 q 329 } 330 /^X\(\/\).*/{ 331 s//\1/ 332 q 333 } 334 s/.*/./; q'` 335 test -d "$as_dir" && break 336 done 337 test -z "$as_dirs" || eval "mkdir $as_dirs" 338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 339 340 341} # as_fn_mkdir_p 342# as_fn_append VAR VALUE 343# ---------------------- 344# Append the text in VALUE to the end of the definition contained in VAR. Take 345# advantage of any shell optimizations that allow amortized linear growth over 346# repeated appends, instead of the typical quadratic growth present in naive 347# implementations. 348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 349 eval 'as_fn_append () 350 { 351 eval $1+=\$2 352 }' 353else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358fi # as_fn_append 359 360# as_fn_arith ARG... 361# ------------------ 362# Perform arithmetic evaluation on the ARGs, and store the result in the 363# global $as_val. Take advantage of shells that can avoid forks. The arguments 364# must be portable across $(()) and expr. 365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375fi # as_fn_arith 376 377 378# as_fn_error STATUS ERROR [LINENO LOG_FD] 379# ---------------------------------------- 380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 382# script with STATUS, using 1 if that was 0. 383as_fn_error () 384{ 385 as_status=$1; test $as_status -eq 0 && as_status=1 386 if test "$4"; then 387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 389 fi 390 $as_echo "$as_me: error: $2" >&2 391 as_fn_exit $as_status 392} # as_fn_error 393 394if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397else 398 as_expr=false 399fi 400 401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403else 404 as_basename=false 405fi 406 407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409else 410 as_dirname=false 411fi 412 413as_me=`$as_basename -- "$0" || 414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 415 X"$0" : 'X\(//\)$' \| \ 416 X"$0" : 'X\(/\)' \| . 2>/dev/null || 417$as_echo X/"$0" | 418 sed '/^.*\/\([^/][^/]*\)\/*$/{ 419 s//\1/ 420 q 421 } 422 /^X\/\(\/\/\)$/{ 423 s//\1/ 424 q 425 } 426 /^X\/\(\/\).*/{ 427 s//\1/ 428 q 429 } 430 s/.*/./; q'` 431 432# Avoid depending upon Character Ranges. 433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436as_cr_digits='0123456789' 437as_cr_alnum=$as_cr_Letters$as_cr_digits 438 439 440 as_lineno_1=$LINENO as_lineno_1a=$LINENO 441 as_lineno_2=$LINENO as_lineno_2a=$LINENO 442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 445 sed -n ' 446 p 447 /[$]LINENO/= 448 ' <$as_myself | 449 sed ' 450 s/[$]LINENO.*/&-/ 451 t lineno 452 b 453 :lineno 454 N 455 :loop 456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 457 t loop 458 s/-\n.*// 459 ' >$as_me.lineno && 460 chmod +x "$as_me.lineno" || 461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469} 470 471ECHO_C= ECHO_N= ECHO_T= 472case `echo -n x` in #((((( 473-n*) 474 case `echo 'xy\c'` in 475 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 476 xy) ECHO_C='\c';; 477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 478 ECHO_T=' ';; 479 esac;; 480*) 481 ECHO_N='-n';; 482esac 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490fi 491if (echo >conf$$.file) 2>/dev/null; then 492 if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500 elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502 else 503 as_ln_s='cp -p' 504 fi 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520else 521 if ls -dL / >/dev/null 2>&1; then 522 as_ls_L_option=L 523 else 524 as_ls_L_option= 525 fi 526 as_test_x=' 527 eval sh -c '\'' 528 if test -d "$1"; then 529 test -d "$1/."; 530 else 531 case $1 in #( 532 -*)set "./$1";; 533 esac; 534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 535 ???[sx]*):;;*)false;;esac;fi 536 '\'' sh 537 ' 538fi 539as_executable_p=$as_test_x 540 541# Sed expression to map a string onto a valid CPP name. 542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 543 544# Sed expression to map a string onto a valid variable name. 545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550test -n "$DJDIR" || exec 7<&0 </dev/null 551exec 6>&1 552 553# Name of the host. 554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 555# so uname gets run too. 556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558# 559# Initializations. 560# 561ac_default_prefix=/usr/local 562ac_clean_files= 563ac_config_libobj_dir=. 564LIBOBJS= 565cross_compiling=no 566subdirs= 567MFLAGS= 568MAKEFLAGS= 569 570# Identity of this package. 571PACKAGE_NAME='gnokii' 572PACKAGE_TARNAME='gnokii' 573PACKAGE_VERSION='0.6.31' 574PACKAGE_STRING='gnokii 0.6.31' 575PACKAGE_BUGREPORT='gnokii-users@nongnu.org' 576PACKAGE_URL='http://www.gnokii.org/' 577 578# Factoring default headers for most tests. 579ac_includes_default="\ 580#include <stdio.h> 581#ifdef HAVE_SYS_TYPES_H 582# include <sys/types.h> 583#endif 584#ifdef HAVE_SYS_STAT_H 585# include <sys/stat.h> 586#endif 587#ifdef STDC_HEADERS 588# include <stdlib.h> 589# include <stddef.h> 590#else 591# ifdef HAVE_STDLIB_H 592# include <stdlib.h> 593# endif 594#endif 595#ifdef HAVE_STRING_H 596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 597# include <memory.h> 598# endif 599# include <string.h> 600#endif 601#ifdef HAVE_STRINGS_H 602# include <strings.h> 603#endif 604#ifdef HAVE_INTTYPES_H 605# include <inttypes.h> 606#endif 607#ifdef HAVE_STDINT_H 608# include <stdint.h> 609#endif 610#ifdef HAVE_UNISTD_H 611# include <unistd.h> 612#endif" 613 614ac_unique_file="gnokii/gnokii.c" 615ac_default_prefix="/usr/local" 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619HAVE_SOCKETPHONET 620HAVE_LIBUSB 621HAVE_LIBICAL 622WIN32_CROSS 623WIN32 624HAVE_XGNOKII 625XPM_LIBS 626XPM_CFLAGS 627NEED_LOCALE_CHARSET 628USE_UNIX98PTYS 629OWN_GETOPT 630GLDFLAGS 631XPACKAGE 632XVERSION 633LIBOBJS 634WIN32_FALSE 635WIN32_TRUE 636LIBPCSCLITE_LIBS 637LIBPCSCLITE_CFLAGS 638HAVE_MYSQL_FALSE 639HAVE_MYSQL_TRUE 640MYSQL_CFLAGS 641MYSQL_LIBS 642MYSQLCONFIG 643MYSQLCONFIG5 644HAVE_SQLITE_FALSE 645HAVE_SQLITE_TRUE 646SQLITE_CFLAGS 647SQLITE_LIBS 648SQLITE3_LIBS 649SQLITE3_CFLAGS 650HAVE_POSTGRES_FALSE 651HAVE_POSTGRES_TRUE 652POSTGRES_CFLAGS 653POSTGRES_LIBS 654PGCONFIG 655SMSD_FALSE 656SMSD_TRUE 657GMODULE_LIBS 658GMODULE_CFLAGS 659GLIB_LIBS 660GLIB_CFLAGS 661XGNOKII_FALSE 662XGNOKII_TRUE 663XMKMF 664GTK_LIBS 665GTK_CFLAGS 666PKG_CONFIG_LIBDIR 667PKG_CONFIG_PATH 668PKG_CONFIG 669BLUETOOTH_LIBS 670TCP_LIBS 671USB_LIBS 672ICAL_CFLAGS 673ICAL_LIBS 674TERMLDFLAGS 675TERMLIBS 676PTHREAD_CFLAGS 677PTHREAD_LIBS 678PTHREAD_CC 679acx_pthread_config 680LIBGNOKII_VERSION_STRING 681LIBGNOKII_VERSION_RELEASE 682LIBGNOKII_VERSION_MINOR 683LIBGNOKII_VERSION_MAJOR 684GNOKII_LT_VERSION 685OTOOL64 686OTOOL 687LIPO 688NMEDIT 689DSYMUTIL 690MANIFEST_TOOL 691RANLIB 692ac_ct_AR 693LN_S 694NM 695ac_ct_DUMPBIN 696DUMPBIN 697LD 698FGREP 699SED 700LIBTOOL 701OBJDUMP 702DLLTOOL 703AS 704LTLIBICONV 705LIBICONV 706MKINSTALLDIRS 707POSUB 708POFILES 709PO_IN_DATADIR_FALSE 710PO_IN_DATADIR_TRUE 711INTLLIBS 712INSTOBJEXT 713GMOFILES 714CATOBJEXT 715CATALOGS 716MSGFMT_OPTS 717GETTEXT_PACKAGE 718DATADIRNAME 719ALL_LINGUAS 720INTLTOOL_PERL 721GMSGFMT 722MSGFMT 723MSGMERGE 724XGETTEXT 725INTLTOOL_POLICY_RULE 726INTLTOOL_SERVICE_RULE 727INTLTOOL_THEME_RULE 728INTLTOOL_SCHEMAS_RULE 729INTLTOOL_CAVES_RULE 730INTLTOOL_XML_NOMERGE_RULE 731INTLTOOL_XML_RULE 732INTLTOOL_KBD_RULE 733INTLTOOL_XAM_RULE 734INTLTOOL_UI_RULE 735INTLTOOL_SOUNDLIST_RULE 736INTLTOOL_SHEET_RULE 737INTLTOOL_SERVER_RULE 738INTLTOOL_PONG_RULE 739INTLTOOL_OAF_RULE 740INTLTOOL_PROP_RULE 741INTLTOOL_KEYS_RULE 742INTLTOOL_DIRECTORY_RULE 743INTLTOOL_DESKTOP_RULE 744INTLTOOL_EXTRACT 745INTLTOOL_MERGE 746INTLTOOL_UPDATE 747USE_NLS 748AR 749MAKE 750FIND 751RM 752LEXLIB 753LEX_OUTPUT_ROOT 754LEX 755am__fastdepCC_FALSE 756am__fastdepCC_TRUE 757CCDEPMODE 758AMDEPBACKSLASH 759AMDEP_FALSE 760AMDEP_TRUE 761am__quote 762am__include 763DEPDIR 764am__untar 765am__tar 766AMTAR 767am__leading_dot 768SET_MAKE 769AWK 770mkdir_p 771MKDIR_P 772INSTALL_STRIP_PROGRAM 773STRIP 774install_sh 775MAKEINFO 776AUTOHEADER 777AUTOMAKE 778AUTOCONF 779ACLOCAL 780VERSION 781PACKAGE 782CYGPATH_W 783am__isrc 784INSTALL_DATA 785INSTALL_SCRIPT 786INSTALL_PROGRAM 787EGREP 788GREP 789CPP 790OBJEXT 791EXEEXT 792ac_ct_CC 793CPPFLAGS 794LDFLAGS 795CFLAGS 796CC 797target_os 798target_vendor 799target_cpu 800target 801host_os 802host_vendor 803host_cpu 804host 805build_os 806build_vendor 807build_cpu 808build 809GNOKII_LT_VERSION_AGE 810GNOKII_LT_VERSION_REVISION 811GNOKII_LT_VERSION_CURRENT 812target_alias 813host_alias 814build_alias 815LIBS 816ECHO_T 817ECHO_N 818ECHO_C 819DEFS 820mandir 821localedir 822libdir 823psdir 824pdfdir 825dvidir 826htmldir 827infodir 828docdir 829oldincludedir 830includedir 831localstatedir 832sharedstatedir 833sysconfdir 834datadir 835datarootdir 836libexecdir 837sbindir 838bindir 839program_transform_name 840prefix 841exec_prefix 842PACKAGE_URL 843PACKAGE_BUGREPORT 844PACKAGE_STRING 845PACKAGE_VERSION 846PACKAGE_TARNAME 847PACKAGE_NAME 848PATH_SEPARATOR 849SHELL' 850ac_subst_files='' 851ac_user_opts=' 852enable_option_checking 853enable_dependency_tracking 854enable_nls 855with_gnu_ld 856enable_rpath 857with_libiconv_prefix 858enable_shared 859enable_static 860with_pic 861enable_fast_install 862with_sysroot 863enable_libtool_lock 864enable_fulldebug 865enable_xdebug 866enable_rlpdebug 867with_libpthread 868with_readline 869with_libical 870enable_libical 871enable_libusb 872enable_phonet 873enable_irda 874with_gettext 875with_bluetooth 876enable_bluetooth 877with_x 878enable_smsd 879enable_postgres 880enable_sqlite 881enable_mysql 882enable_security 883enable_libpcsclite 884enable_win 885enable_unix98test 886' 887 ac_precious_vars='build_alias 888host_alias 889target_alias 890CC 891CFLAGS 892LDFLAGS 893LIBS 894CPPFLAGS 895CPP 896PKG_CONFIG 897PKG_CONFIG_PATH 898PKG_CONFIG_LIBDIR 899GTK_CFLAGS 900GTK_LIBS 901XMKMF 902GLIB_CFLAGS 903GLIB_LIBS 904GMODULE_CFLAGS 905GMODULE_LIBS 906SQLITE3_CFLAGS 907SQLITE3_LIBS 908LIBPCSCLITE_CFLAGS 909LIBPCSCLITE_LIBS' 910 911 912# Initialize some variables set by options. 913ac_init_help= 914ac_init_version=false 915ac_unrecognized_opts= 916ac_unrecognized_sep= 917# The variables have the same names as the options, with 918# dashes changed to underlines. 919cache_file=/dev/null 920exec_prefix=NONE 921no_create= 922no_recursion= 923prefix=NONE 924program_prefix=NONE 925program_suffix=NONE 926program_transform_name=s,x,x, 927silent= 928site= 929srcdir= 930verbose= 931x_includes=NONE 932x_libraries=NONE 933 934# Installation directory options. 935# These are left unexpanded so users can "make install exec_prefix=/foo" 936# and all the variables that are supposed to be based on exec_prefix 937# by default will actually change. 938# Use braces instead of parens because sh, perl, etc. also accept them. 939# (The list follows the same order as the GNU Coding Standards.) 940bindir='${exec_prefix}/bin' 941sbindir='${exec_prefix}/sbin' 942libexecdir='${exec_prefix}/libexec' 943datarootdir='${prefix}/share' 944datadir='${datarootdir}' 945sysconfdir='${prefix}/etc' 946sharedstatedir='${prefix}/com' 947localstatedir='${prefix}/var' 948includedir='${prefix}/include' 949oldincludedir='/usr/include' 950docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 951infodir='${datarootdir}/info' 952htmldir='${docdir}' 953dvidir='${docdir}' 954pdfdir='${docdir}' 955psdir='${docdir}' 956libdir='${exec_prefix}/lib' 957localedir='${datarootdir}/locale' 958mandir='${prefix}/man' 959 960ac_prev= 961ac_dashdash= 962for ac_option 963do 964 # If the previous option needs an argument, assign it. 965 if test -n "$ac_prev"; then 966 eval $ac_prev=\$ac_option 967 ac_prev= 968 continue 969 fi 970 971 case $ac_option in 972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 973 *=) ac_optarg= ;; 974 *) ac_optarg=yes ;; 975 esac 976 977 # Accept the important Cygnus configure options, so we can diagnose typos. 978 979 case $ac_dashdash$ac_option in 980 --) 981 ac_dashdash=yes ;; 982 983 -bindir | --bindir | --bindi | --bind | --bin | --bi) 984 ac_prev=bindir ;; 985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 986 bindir=$ac_optarg ;; 987 988 -build | --build | --buil | --bui | --bu) 989 ac_prev=build_alias ;; 990 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 991 build_alias=$ac_optarg ;; 992 993 -cache-file | --cache-file | --cache-fil | --cache-fi \ 994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 995 ac_prev=cache_file ;; 996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 998 cache_file=$ac_optarg ;; 999 1000 --config-cache | -C) 1001 cache_file=config.cache ;; 1002 1003 -datadir | --datadir | --datadi | --datad) 1004 ac_prev=datadir ;; 1005 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1006 datadir=$ac_optarg ;; 1007 1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1009 | --dataroo | --dataro | --datar) 1010 ac_prev=datarootdir ;; 1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1013 datarootdir=$ac_optarg ;; 1014 1015 -disable-* | --disable-*) 1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1017 # Reject names that are not valid shell variable names. 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1019 as_fn_error $? "invalid feature name: $ac_useropt" 1020 ac_useropt_orig=$ac_useropt 1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1022 case $ac_user_opts in 1023 *" 1024"enable_$ac_useropt" 1025"*) ;; 1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1027 ac_unrecognized_sep=', ';; 1028 esac 1029 eval enable_$ac_useropt=no ;; 1030 1031 -docdir | --docdir | --docdi | --doc | --do) 1032 ac_prev=docdir ;; 1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1034 docdir=$ac_optarg ;; 1035 1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1037 ac_prev=dvidir ;; 1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1039 dvidir=$ac_optarg ;; 1040 1041 -enable-* | --enable-*) 1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1043 # Reject names that are not valid shell variable names. 1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1045 as_fn_error $? "invalid feature name: $ac_useropt" 1046 ac_useropt_orig=$ac_useropt 1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1048 case $ac_user_opts in 1049 *" 1050"enable_$ac_useropt" 1051"*) ;; 1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1053 ac_unrecognized_sep=', ';; 1054 esac 1055 eval enable_$ac_useropt=\$ac_optarg ;; 1056 1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1059 | --exec | --exe | --ex) 1060 ac_prev=exec_prefix ;; 1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1063 | --exec=* | --exe=* | --ex=*) 1064 exec_prefix=$ac_optarg ;; 1065 1066 -gas | --gas | --ga | --g) 1067 # Obsolete; use --with-gas. 1068 with_gas=yes ;; 1069 1070 -help | --help | --hel | --he | -h) 1071 ac_init_help=long ;; 1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1073 ac_init_help=recursive ;; 1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1075 ac_init_help=short ;; 1076 1077 -host | --host | --hos | --ho) 1078 ac_prev=host_alias ;; 1079 -host=* | --host=* | --hos=* | --ho=*) 1080 host_alias=$ac_optarg ;; 1081 1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1083 ac_prev=htmldir ;; 1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1085 | --ht=*) 1086 htmldir=$ac_optarg ;; 1087 1088 -includedir | --includedir | --includedi | --included | --include \ 1089 | --includ | --inclu | --incl | --inc) 1090 ac_prev=includedir ;; 1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1092 | --includ=* | --inclu=* | --incl=* | --inc=*) 1093 includedir=$ac_optarg ;; 1094 1095 -infodir | --infodir | --infodi | --infod | --info | --inf) 1096 ac_prev=infodir ;; 1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1098 infodir=$ac_optarg ;; 1099 1100 -libdir | --libdir | --libdi | --libd) 1101 ac_prev=libdir ;; 1102 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1103 libdir=$ac_optarg ;; 1104 1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1106 | --libexe | --libex | --libe) 1107 ac_prev=libexecdir ;; 1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1109 | --libexe=* | --libex=* | --libe=*) 1110 libexecdir=$ac_optarg ;; 1111 1112 -localedir | --localedir | --localedi | --localed | --locale) 1113 ac_prev=localedir ;; 1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1115 localedir=$ac_optarg ;; 1116 1117 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1118 | --localstate | --localstat | --localsta | --localst | --locals) 1119 ac_prev=localstatedir ;; 1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1122 localstatedir=$ac_optarg ;; 1123 1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1125 ac_prev=mandir ;; 1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1127 mandir=$ac_optarg ;; 1128 1129 -nfp | --nfp | --nf) 1130 # Obsolete; use --without-fp. 1131 with_fp=no ;; 1132 1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1134 | --no-cr | --no-c | -n) 1135 no_create=yes ;; 1136 1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1139 no_recursion=yes ;; 1140 1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1143 | --oldin | --oldi | --old | --ol | --o) 1144 ac_prev=oldincludedir ;; 1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1148 oldincludedir=$ac_optarg ;; 1149 1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1151 ac_prev=prefix ;; 1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1153 prefix=$ac_optarg ;; 1154 1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1156 | --program-pre | --program-pr | --program-p) 1157 ac_prev=program_prefix ;; 1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1160 program_prefix=$ac_optarg ;; 1161 1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1163 | --program-suf | --program-su | --program-s) 1164 ac_prev=program_suffix ;; 1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1167 program_suffix=$ac_optarg ;; 1168 1169 -program-transform-name | --program-transform-name \ 1170 | --program-transform-nam | --program-transform-na \ 1171 | --program-transform-n | --program-transform- \ 1172 | --program-transform | --program-transfor \ 1173 | --program-transfo | --program-transf \ 1174 | --program-trans | --program-tran \ 1175 | --progr-tra | --program-tr | --program-t) 1176 ac_prev=program_transform_name ;; 1177 -program-transform-name=* | --program-transform-name=* \ 1178 | --program-transform-nam=* | --program-transform-na=* \ 1179 | --program-transform-n=* | --program-transform-=* \ 1180 | --program-transform=* | --program-transfor=* \ 1181 | --program-transfo=* | --program-transf=* \ 1182 | --program-trans=* | --program-tran=* \ 1183 | --progr-tra=* | --program-tr=* | --program-t=*) 1184 program_transform_name=$ac_optarg ;; 1185 1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1187 ac_prev=pdfdir ;; 1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1189 pdfdir=$ac_optarg ;; 1190 1191 -psdir | --psdir | --psdi | --psd | --ps) 1192 ac_prev=psdir ;; 1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1194 psdir=$ac_optarg ;; 1195 1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1197 | -silent | --silent | --silen | --sile | --sil) 1198 silent=yes ;; 1199 1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1201 ac_prev=sbindir ;; 1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1203 | --sbi=* | --sb=*) 1204 sbindir=$ac_optarg ;; 1205 1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1208 | --sharedst | --shareds | --shared | --share | --shar \ 1209 | --sha | --sh) 1210 ac_prev=sharedstatedir ;; 1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1214 | --sha=* | --sh=*) 1215 sharedstatedir=$ac_optarg ;; 1216 1217 -site | --site | --sit) 1218 ac_prev=site ;; 1219 -site=* | --site=* | --sit=*) 1220 site=$ac_optarg ;; 1221 1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1223 ac_prev=srcdir ;; 1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1225 srcdir=$ac_optarg ;; 1226 1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1228 | --syscon | --sysco | --sysc | --sys | --sy) 1229 ac_prev=sysconfdir ;; 1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1232 sysconfdir=$ac_optarg ;; 1233 1234 -target | --target | --targe | --targ | --tar | --ta | --t) 1235 ac_prev=target_alias ;; 1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1237 target_alias=$ac_optarg ;; 1238 1239 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1240 verbose=yes ;; 1241 1242 -version | --version | --versio | --versi | --vers | -V) 1243 ac_init_version=: ;; 1244 1245 -with-* | --with-*) 1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1247 # Reject names that are not valid shell variable names. 1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1249 as_fn_error $? "invalid package name: $ac_useropt" 1250 ac_useropt_orig=$ac_useropt 1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1252 case $ac_user_opts in 1253 *" 1254"with_$ac_useropt" 1255"*) ;; 1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1257 ac_unrecognized_sep=', ';; 1258 esac 1259 eval with_$ac_useropt=\$ac_optarg ;; 1260 1261 -without-* | --without-*) 1262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1263 # Reject names that are not valid shell variable names. 1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1265 as_fn_error $? "invalid package name: $ac_useropt" 1266 ac_useropt_orig=$ac_useropt 1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1268 case $ac_user_opts in 1269 *" 1270"with_$ac_useropt" 1271"*) ;; 1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1273 ac_unrecognized_sep=', ';; 1274 esac 1275 eval with_$ac_useropt=no ;; 1276 1277 --x) 1278 # Obsolete; use --with-x. 1279 with_x=yes ;; 1280 1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1282 | --x-incl | --x-inc | --x-in | --x-i) 1283 ac_prev=x_includes ;; 1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1286 x_includes=$ac_optarg ;; 1287 1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1290 ac_prev=x_libraries ;; 1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1293 x_libraries=$ac_optarg ;; 1294 1295 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1296Try \`$0 --help' for more information" 1297 ;; 1298 1299 *=*) 1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1301 # Reject names that are not valid shell variable names. 1302 case $ac_envvar in #( 1303 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1305 esac 1306 eval $ac_envvar=\$ac_optarg 1307 export $ac_envvar ;; 1308 1309 *) 1310 # FIXME: should be removed in autoconf 3.0. 1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1315 ;; 1316 1317 esac 1318done 1319 1320if test -n "$ac_prev"; then 1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1322 as_fn_error $? "missing argument to $ac_option" 1323fi 1324 1325if test -n "$ac_unrecognized_opts"; then 1326 case $enable_option_checking in 1327 no) ;; 1328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1330 esac 1331fi 1332 1333# Check all directory arguments for consistency. 1334for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1335 datadir sysconfdir sharedstatedir localstatedir includedir \ 1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1337 libdir localedir mandir 1338do 1339 eval ac_val=\$$ac_var 1340 # Remove trailing slashes. 1341 case $ac_val in 1342 */ ) 1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1344 eval $ac_var=\$ac_val;; 1345 esac 1346 # Be sure to have absolute directory names. 1347 case $ac_val in 1348 [\\/$]* | ?:[\\/]* ) continue;; 1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1350 esac 1351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1352done 1353 1354# There might be people who depend on the old broken behavior: `$host' 1355# used to hold the argument of --host etc. 1356# FIXME: To remove some day. 1357build=$build_alias 1358host=$host_alias 1359target=$target_alias 1360 1361# FIXME: To remove some day. 1362if test "x$host_alias" != x; then 1363 if test "x$build_alias" = x; then 1364 cross_compiling=maybe 1365 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1366 If a cross compiler is detected then cross compile mode will be used" >&2 1367 elif test "x$build_alias" != "x$host_alias"; then 1368 cross_compiling=yes 1369 fi 1370fi 1371 1372ac_tool_prefix= 1373test -n "$host_alias" && ac_tool_prefix=$host_alias- 1374 1375test "$silent" = yes && exec 6>/dev/null 1376 1377 1378ac_pwd=`pwd` && test -n "$ac_pwd" && 1379ac_ls_di=`ls -di .` && 1380ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1381 as_fn_error $? "working directory cannot be determined" 1382test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1383 as_fn_error $? "pwd does not report name of working directory" 1384 1385 1386# Find the source files, if location was not specified. 1387if test -z "$srcdir"; then 1388 ac_srcdir_defaulted=yes 1389 # Try the directory containing this script, then the parent directory. 1390 ac_confdir=`$as_dirname -- "$as_myself" || 1391$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1392 X"$as_myself" : 'X\(//\)[^/]' \| \ 1393 X"$as_myself" : 'X\(//\)$' \| \ 1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1395$as_echo X"$as_myself" | 1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1397 s//\1/ 1398 q 1399 } 1400 /^X\(\/\/\)[^/].*/{ 1401 s//\1/ 1402 q 1403 } 1404 /^X\(\/\/\)$/{ 1405 s//\1/ 1406 q 1407 } 1408 /^X\(\/\).*/{ 1409 s//\1/ 1410 q 1411 } 1412 s/.*/./; q'` 1413 srcdir=$ac_confdir 1414 if test ! -r "$srcdir/$ac_unique_file"; then 1415 srcdir=.. 1416 fi 1417else 1418 ac_srcdir_defaulted=no 1419fi 1420if test ! -r "$srcdir/$ac_unique_file"; then 1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1423fi 1424ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1425ac_abs_confdir=`( 1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1427 pwd)` 1428# When building in place, set srcdir=. 1429if test "$ac_abs_confdir" = "$ac_pwd"; then 1430 srcdir=. 1431fi 1432# Remove unnecessary trailing slashes from srcdir. 1433# Double slashes in file names in object file debugging info 1434# mess up M-x gdb in Emacs. 1435case $srcdir in 1436*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1437esac 1438for ac_var in $ac_precious_vars; do 1439 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1440 eval ac_env_${ac_var}_value=\$${ac_var} 1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1442 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1443done 1444 1445# 1446# Report the --help message. 1447# 1448if test "$ac_init_help" = "long"; then 1449 # Omit some internal or obsolete options to make the list less imposing. 1450 # This message is too long to be a string in the A/UX 3.1 sh. 1451 cat <<_ACEOF 1452\`configure' configures gnokii 0.6.31 to adapt to many kinds of systems. 1453 1454Usage: $0 [OPTION]... [VAR=VALUE]... 1455 1456To assign environment variables (e.g., CC, CFLAGS...), specify them as 1457VAR=VALUE. See below for descriptions of some of the useful variables. 1458 1459Defaults for the options are specified in brackets. 1460 1461Configuration: 1462 -h, --help display this help and exit 1463 --help=short display options specific to this package 1464 --help=recursive display the short help of all the included packages 1465 -V, --version display version information and exit 1466 -q, --quiet, --silent do not print \`checking ...' messages 1467 --cache-file=FILE cache test results in FILE [disabled] 1468 -C, --config-cache alias for \`--cache-file=config.cache' 1469 -n, --no-create do not create output files 1470 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1471 1472Installation directories: 1473 --prefix=PREFIX install architecture-independent files in PREFIX 1474 [$ac_default_prefix] 1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1476 [PREFIX] 1477 1478By default, \`make install' will install all the files in 1479\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1480an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1481for instance \`--prefix=\$HOME'. 1482 1483For better control, use the options below. 1484 1485Fine tuning of the installation directories: 1486 --bindir=DIR user executables [EPREFIX/bin] 1487 --sbindir=DIR system admin executables [EPREFIX/sbin] 1488 --libexecdir=DIR program executables [EPREFIX/libexec] 1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1492 --libdir=DIR object code libraries [EPREFIX/lib] 1493 --includedir=DIR C header files [PREFIX/include] 1494 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1497 --infodir=DIR info documentation [DATAROOTDIR/info] 1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1499 --mandir=DIR man documentation [DATAROOTDIR/man] 1500 --docdir=DIR documentation root [DATAROOTDIR/doc/gnokii] 1501 --htmldir=DIR html documentation [DOCDIR] 1502 --dvidir=DIR dvi documentation [DOCDIR] 1503 --pdfdir=DIR pdf documentation [DOCDIR] 1504 --psdir=DIR ps documentation [DOCDIR] 1505_ACEOF 1506 1507 cat <<\_ACEOF 1508 1509Program names: 1510 --program-prefix=PREFIX prepend PREFIX to installed program names 1511 --program-suffix=SUFFIX append SUFFIX to installed program names 1512 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1513 1514X features: 1515 --x-includes=DIR X include files are in DIR 1516 --x-libraries=DIR X library files are in DIR 1517 1518System types: 1519 --build=BUILD configure for building on BUILD [guessed] 1520 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1521 --target=TARGET configure for building compilers for TARGET [HOST] 1522_ACEOF 1523fi 1524 1525if test -n "$ac_init_help"; then 1526 case $ac_init_help in 1527 short | recursive ) echo "Configuration of gnokii 0.6.31:";; 1528 esac 1529 cat <<\_ACEOF 1530 1531Optional Features: 1532 --disable-option-checking ignore unrecognized --enable/--with options 1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1535 --disable-dependency-tracking speeds up one-time build 1536 --enable-dependency-tracking do not reject slow dependency extractors 1537 --disable-nls do not use Native Language Support 1538 --disable-rpath do not hardcode runtime library paths 1539 --enable-shared[=PKGS] build shared libraries [default=yes] 1540 --enable-static[=PKGS] build static libraries [default=yes] 1541 --enable-fast-install[=PKGS] 1542 optimize for fast installation [default=yes] 1543 --disable-libtool-lock avoid locking (might break parallel builds) 1544 --enable-fulldebug compile with full debugging support 1545 --enable-xdebug compile with xdebug code 1546 --enable-rlpdebug compile with RLP debug code 1547 --disable-libical disable libical support (default is autodetected) 1548 --disable-libusb disable libusb support (default is autodetected) 1549 --disable-phonet disable phonet support (default is autodetected) 1550 --disable-irda disable irda support (default is autodetected) 1551 --disable-bluetooth disable Bluetooth support (default is autodetected) 1552 --disable-smsd disable smsd support (default is autodetected) 1553 --disable-postgres disable PostgreSQL support (default is autodetected) 1554 --disable-sqlite disable SQLite support (default is autodetected) 1555 --disable-mysql disable MySQL support (default is autodetected) 1556 --enable-security enable all security features [default=no] 1557 --disable-libpcsclite disable libpcsclite support (default is 1558 autodetected) 1559 --enable-win if you want Windows support 1560 --enable-unix98test if you want to disable UNIX98 test and assume to 1561 use it; default is enabled 1562 1563Optional Packages: 1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1566 --with-gnu-ld assume the C compiler uses GNU ld default=no 1567 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1568 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1569 --with-pic try to use only PIC/non-PIC objects [default=use 1570 both] 1571 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1572 --with-sysroot=DIR Search for dependent libraries within DIR 1573 (or the compiler's sysroot if not specified). 1574 --with-libpthread=DIR specifies the base libpthread 1575 --with-readline=DIR Look for readline include/libs in DIR 1576 --without-readline Don't include readline support 1577 --with-libical=DIR specifies the base libical 1578 --with-gettext=DIR specifies the base gettext 1579 --with-bluetooth=DIR specifies the base libbluetooth 1580 --with-x use the X Window System 1581 1582Some influential environment variables: 1583 CC C compiler command 1584 CFLAGS C compiler flags 1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1586 nonstandard directory <lib dir> 1587 LIBS libraries to pass to the linker, e.g. -l<library> 1588 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1589 you have headers in a nonstandard directory <include dir> 1590 CPP C preprocessor 1591 PKG_CONFIG path to pkg-config utility 1592 PKG_CONFIG_PATH 1593 directories to add to pkg-config's search path 1594 PKG_CONFIG_LIBDIR 1595 path overriding pkg-config's built-in search path 1596 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config 1597 GTK_LIBS linker flags for GTK, overriding pkg-config 1598 XMKMF Path to xmkmf, Makefile generator for X Window System 1599 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1600 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1601 GMODULE_CFLAGS 1602 C compiler flags for GMODULE, overriding pkg-config 1603 GMODULE_LIBS 1604 linker flags for GMODULE, overriding pkg-config 1605 SQLITE3_CFLAGS 1606 C compiler flags for SQLITE3, overriding pkg-config 1607 SQLITE3_LIBS 1608 linker flags for SQLITE3, overriding pkg-config 1609 LIBPCSCLITE_CFLAGS 1610 C compiler flags for LIBPCSCLITE, overriding pkg-config 1611 LIBPCSCLITE_LIBS 1612 linker flags for LIBPCSCLITE, overriding pkg-config 1613 1614Use these variables to override the choices made by `configure' or to help 1615it to find libraries and programs with nonstandard names/locations. 1616 1617Report bugs to <gnokii-users@nongnu.org>. 1618gnokii home page: <http://www.gnokii.org/>. 1619_ACEOF 1620ac_status=$? 1621fi 1622 1623if test "$ac_init_help" = "recursive"; then 1624 # If there are subdirs, report their specific --help. 1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1626 test -d "$ac_dir" || 1627 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1628 continue 1629 ac_builddir=. 1630 1631case "$ac_dir" in 1632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1633*) 1634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1635 # A ".." for each directory in $ac_dir_suffix. 1636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1637 case $ac_top_builddir_sub in 1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1640 esac ;; 1641esac 1642ac_abs_top_builddir=$ac_pwd 1643ac_abs_builddir=$ac_pwd$ac_dir_suffix 1644# for backward compatibility: 1645ac_top_builddir=$ac_top_build_prefix 1646 1647case $srcdir in 1648 .) # We are building in place. 1649 ac_srcdir=. 1650 ac_top_srcdir=$ac_top_builddir_sub 1651 ac_abs_top_srcdir=$ac_pwd ;; 1652 [\\/]* | ?:[\\/]* ) # Absolute name. 1653 ac_srcdir=$srcdir$ac_dir_suffix; 1654 ac_top_srcdir=$srcdir 1655 ac_abs_top_srcdir=$srcdir ;; 1656 *) # Relative name. 1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1658 ac_top_srcdir=$ac_top_build_prefix$srcdir 1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1660esac 1661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1662 1663 cd "$ac_dir" || { ac_status=$?; continue; } 1664 # Check for guested configure. 1665 if test -f "$ac_srcdir/configure.gnu"; then 1666 echo && 1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1668 elif test -f "$ac_srcdir/configure"; then 1669 echo && 1670 $SHELL "$ac_srcdir/configure" --help=recursive 1671 else 1672 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1673 fi || ac_status=$? 1674 cd "$ac_pwd" || { ac_status=$?; break; } 1675 done 1676fi 1677 1678test -n "$ac_init_help" && exit $ac_status 1679if $ac_init_version; then 1680 cat <<\_ACEOF 1681gnokii configure 0.6.31 1682generated by GNU Autoconf 2.68 1683 1684Copyright (C) 2010 Free Software Foundation, Inc. 1685This configure script is free software; the Free Software Foundation 1686gives unlimited permission to copy, distribute and modify it. 1687_ACEOF 1688 exit 1689fi 1690 1691## ------------------------ ## 1692## Autoconf initialization. ## 1693## ------------------------ ## 1694 1695# ac_fn_c_try_compile LINENO 1696# -------------------------- 1697# Try to compile conftest.$ac_ext, and return whether this succeeded. 1698ac_fn_c_try_compile () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 rm -f conftest.$ac_objext 1702 if { { ac_try="$ac_compile" 1703case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706esac 1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708$as_echo "$ac_try_echo"; } >&5 1709 (eval "$ac_compile") 2>conftest.err 1710 ac_status=$? 1711 if test -s conftest.err; then 1712 grep -v '^ *+' conftest.err >conftest.er1 1713 cat conftest.er1 >&5 1714 mv -f conftest.er1 conftest.err 1715 fi 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; } && { 1718 test -z "$ac_c_werror_flag" || 1719 test ! -s conftest.err 1720 } && test -s conftest.$ac_objext; then : 1721 ac_retval=0 1722else 1723 $as_echo "$as_me: failed program was:" >&5 1724sed 's/^/| /' conftest.$ac_ext >&5 1725 1726 ac_retval=1 1727fi 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 as_fn_set_status $ac_retval 1730 1731} # ac_fn_c_try_compile 1732 1733# ac_fn_c_try_cpp LINENO 1734# ---------------------- 1735# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1736ac_fn_c_try_cpp () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 if { { ac_try="$ac_cpp conftest.$ac_ext" 1740case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745$as_echo "$ac_try_echo"; } >&5 1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1747 ac_status=$? 1748 if test -s conftest.err; then 1749 grep -v '^ *+' conftest.err >conftest.er1 1750 cat conftest.er1 >&5 1751 mv -f conftest.er1 conftest.err 1752 fi 1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1754 test $ac_status = 0; } > conftest.i && { 1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1756 test ! -s conftest.err 1757 }; then : 1758 ac_retval=0 1759else 1760 $as_echo "$as_me: failed program was:" >&5 1761sed 's/^/| /' conftest.$ac_ext >&5 1762 1763 ac_retval=1 1764fi 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 as_fn_set_status $ac_retval 1767 1768} # ac_fn_c_try_cpp 1769 1770# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1771# ------------------------------------------------------- 1772# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1773# the include files in INCLUDES and setting the cache variable VAR 1774# accordingly. 1775ac_fn_c_check_header_mongrel () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 if eval \${$3+:} false; then : 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1780$as_echo_n "checking for $2... " >&6; } 1781if eval \${$3+:} false; then : 1782 $as_echo_n "(cached) " >&6 1783fi 1784eval ac_res=\$$3 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1786$as_echo "$ac_res" >&6; } 1787else 1788 # Is the header compilable? 1789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1790$as_echo_n "checking $2 usability... " >&6; } 1791cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1792/* end confdefs.h. */ 1793$4 1794#include <$2> 1795_ACEOF 1796if ac_fn_c_try_compile "$LINENO"; then : 1797 ac_header_compiler=yes 1798else 1799 ac_header_compiler=no 1800fi 1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1803$as_echo "$ac_header_compiler" >&6; } 1804 1805# Is the header present? 1806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1807$as_echo_n "checking $2 presence... " >&6; } 1808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1809/* end confdefs.h. */ 1810#include <$2> 1811_ACEOF 1812if ac_fn_c_try_cpp "$LINENO"; then : 1813 ac_header_preproc=yes 1814else 1815 ac_header_preproc=no 1816fi 1817rm -f conftest.err conftest.i conftest.$ac_ext 1818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1819$as_echo "$ac_header_preproc" >&6; } 1820 1821# So? What about this header? 1822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1823 yes:no: ) 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1825$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1827$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1828 ;; 1829 no:yes:* ) 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1831$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1833$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1835$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1837$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1839$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1840( $as_echo "## -------------------------------------- ## 1841## Report this to gnokii-users@nongnu.org ## 1842## -------------------------------------- ##" 1843 ) | sed "s/^/$as_me: WARNING: /" >&2 1844 ;; 1845esac 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1847$as_echo_n "checking for $2... " >&6; } 1848if eval \${$3+:} false; then : 1849 $as_echo_n "(cached) " >&6 1850else 1851 eval "$3=\$ac_header_compiler" 1852fi 1853eval ac_res=\$$3 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1855$as_echo "$ac_res" >&6; } 1856fi 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 1859} # ac_fn_c_check_header_mongrel 1860 1861# ac_fn_c_try_run LINENO 1862# ---------------------- 1863# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1864# that executables *can* be run. 1865ac_fn_c_try_run () 1866{ 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 if { { ac_try="$ac_link" 1869case "(($ac_try" in 1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1871 *) ac_try_echo=$ac_try;; 1872esac 1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1874$as_echo "$ac_try_echo"; } >&5 1875 (eval "$ac_link") 2>&5 1876 ac_status=$? 1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1878 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1879 { { case "(($ac_try" in 1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1881 *) ac_try_echo=$ac_try;; 1882esac 1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1884$as_echo "$ac_try_echo"; } >&5 1885 (eval "$ac_try") 2>&5 1886 ac_status=$? 1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1888 test $ac_status = 0; }; }; then : 1889 ac_retval=0 1890else 1891 $as_echo "$as_me: program exited with status $ac_status" >&5 1892 $as_echo "$as_me: failed program was:" >&5 1893sed 's/^/| /' conftest.$ac_ext >&5 1894 1895 ac_retval=$ac_status 1896fi 1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1899 as_fn_set_status $ac_retval 1900 1901} # ac_fn_c_try_run 1902 1903# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1904# ------------------------------------------------------- 1905# Tests whether HEADER exists and can be compiled using the include files in 1906# INCLUDES, setting the cache variable VAR accordingly. 1907ac_fn_c_check_header_compile () 1908{ 1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1911$as_echo_n "checking for $2... " >&6; } 1912if eval \${$3+:} false; then : 1913 $as_echo_n "(cached) " >&6 1914else 1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916/* end confdefs.h. */ 1917$4 1918#include <$2> 1919_ACEOF 1920if ac_fn_c_try_compile "$LINENO"; then : 1921 eval "$3=yes" 1922else 1923 eval "$3=no" 1924fi 1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1926fi 1927eval ac_res=\$$3 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1929$as_echo "$ac_res" >&6; } 1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1931 1932} # ac_fn_c_check_header_compile 1933 1934# ac_fn_c_try_link LINENO 1935# ----------------------- 1936# Try to link conftest.$ac_ext, and return whether this succeeded. 1937ac_fn_c_try_link () 1938{ 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1940 rm -f conftest.$ac_objext conftest$ac_exeext 1941 if { { ac_try="$ac_link" 1942case "(($ac_try" in 1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1944 *) ac_try_echo=$ac_try;; 1945esac 1946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1947$as_echo "$ac_try_echo"; } >&5 1948 (eval "$ac_link") 2>conftest.err 1949 ac_status=$? 1950 if test -s conftest.err; then 1951 grep -v '^ *+' conftest.err >conftest.er1 1952 cat conftest.er1 >&5 1953 mv -f conftest.er1 conftest.err 1954 fi 1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1956 test $ac_status = 0; } && { 1957 test -z "$ac_c_werror_flag" || 1958 test ! -s conftest.err 1959 } && test -s conftest$ac_exeext && { 1960 test "$cross_compiling" = yes || 1961 $as_test_x conftest$ac_exeext 1962 }; then : 1963 ac_retval=0 1964else 1965 $as_echo "$as_me: failed program was:" >&5 1966sed 's/^/| /' conftest.$ac_ext >&5 1967 1968 ac_retval=1 1969fi 1970 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1971 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1972 # interfere with the next link command; also delete a directory that is 1973 # left behind by Apple's compiler. We do this before executing the actions. 1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1976 as_fn_set_status $ac_retval 1977 1978} # ac_fn_c_try_link 1979 1980# ac_fn_c_check_func LINENO FUNC VAR 1981# ---------------------------------- 1982# Tests whether FUNC exists, setting the cache variable VAR accordingly 1983ac_fn_c_check_func () 1984{ 1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1987$as_echo_n "checking for $2... " >&6; } 1988if eval \${$3+:} false; then : 1989 $as_echo_n "(cached) " >&6 1990else 1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1992/* end confdefs.h. */ 1993/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1994 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1995#define $2 innocuous_$2 1996 1997/* System header to define __stub macros and hopefully few prototypes, 1998 which can conflict with char $2 (); below. 1999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2000 <limits.h> exists even on freestanding compilers. */ 2001 2002#ifdef __STDC__ 2003# include <limits.h> 2004#else 2005# include <assert.h> 2006#endif 2007 2008#undef $2 2009 2010/* Override any GCC internal prototype to avoid an error. 2011 Use char because int might match the return type of a GCC 2012 builtin and then its argument prototype would still apply. */ 2013#ifdef __cplusplus 2014extern "C" 2015#endif 2016char $2 (); 2017/* The GNU C library defines this for functions which it implements 2018 to always fail with ENOSYS. Some functions are actually named 2019 something starting with __ and the normal name is an alias. */ 2020#if defined __stub_$2 || defined __stub___$2 2021choke me 2022#endif 2023 2024int 2025main () 2026{ 2027return $2 (); 2028 ; 2029 return 0; 2030} 2031_ACEOF 2032if ac_fn_c_try_link "$LINENO"; then : 2033 eval "$3=yes" 2034else 2035 eval "$3=no" 2036fi 2037rm -f core conftest.err conftest.$ac_objext \ 2038 conftest$ac_exeext conftest.$ac_ext 2039fi 2040eval ac_res=\$$3 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2042$as_echo "$ac_res" >&6; } 2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2044 2045} # ac_fn_c_check_func 2046 2047# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2048# ------------------------------------------- 2049# Tests whether TYPE exists after having included INCLUDES, setting cache 2050# variable VAR accordingly. 2051ac_fn_c_check_type () 2052{ 2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2055$as_echo_n "checking for $2... " >&6; } 2056if eval \${$3+:} false; then : 2057 $as_echo_n "(cached) " >&6 2058else 2059 eval "$3=no" 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061/* end confdefs.h. */ 2062$4 2063int 2064main () 2065{ 2066if (sizeof ($2)) 2067 return 0; 2068 ; 2069 return 0; 2070} 2071_ACEOF 2072if ac_fn_c_try_compile "$LINENO"; then : 2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2074/* end confdefs.h. */ 2075$4 2076int 2077main () 2078{ 2079if (sizeof (($2))) 2080 return 0; 2081 ; 2082 return 0; 2083} 2084_ACEOF 2085if ac_fn_c_try_compile "$LINENO"; then : 2086 2087else 2088 eval "$3=yes" 2089fi 2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2091fi 2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2093fi 2094eval ac_res=\$$3 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2096$as_echo "$ac_res" >&6; } 2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2098 2099} # ac_fn_c_check_type 2100cat >config.log <<_ACEOF 2101This file contains any messages produced by compilers while 2102running configure, to aid debugging if configure makes a mistake. 2103 2104It was created by gnokii $as_me 0.6.31, which was 2105generated by GNU Autoconf 2.68. Invocation command line was 2106 2107 $ $0 $@ 2108 2109_ACEOF 2110exec 5>>config.log 2111{ 2112cat <<_ASUNAME 2113## --------- ## 2114## Platform. ## 2115## --------- ## 2116 2117hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2118uname -m = `(uname -m) 2>/dev/null || echo unknown` 2119uname -r = `(uname -r) 2>/dev/null || echo unknown` 2120uname -s = `(uname -s) 2>/dev/null || echo unknown` 2121uname -v = `(uname -v) 2>/dev/null || echo unknown` 2122 2123/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2124/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2125 2126/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2127/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2128/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2129/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2130/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2131/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2132/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2133 2134_ASUNAME 2135 2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2137for as_dir in $PATH 2138do 2139 IFS=$as_save_IFS 2140 test -z "$as_dir" && as_dir=. 2141 $as_echo "PATH: $as_dir" 2142 done 2143IFS=$as_save_IFS 2144 2145} >&5 2146 2147cat >&5 <<_ACEOF 2148 2149 2150## ----------- ## 2151## Core tests. ## 2152## ----------- ## 2153 2154_ACEOF 2155 2156 2157# Keep a trace of the command line. 2158# Strip out --no-create and --no-recursion so they do not pile up. 2159# Strip out --silent because we don't want to record it for future runs. 2160# Also quote any args containing shell meta-characters. 2161# Make two passes to allow for proper duplicate-argument suppression. 2162ac_configure_args= 2163ac_configure_args0= 2164ac_configure_args1= 2165ac_must_keep_next=false 2166for ac_pass in 1 2 2167do 2168 for ac_arg 2169 do 2170 case $ac_arg in 2171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2173 | -silent | --silent | --silen | --sile | --sil) 2174 continue ;; 2175 *\'*) 2176 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2177 esac 2178 case $ac_pass in 2179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2180 2) 2181 as_fn_append ac_configure_args1 " '$ac_arg'" 2182 if test $ac_must_keep_next = true; then 2183 ac_must_keep_next=false # Got value, back to normal. 2184 else 2185 case $ac_arg in 2186 *=* | --config-cache | -C | -disable-* | --disable-* \ 2187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2189 | -with-* | --with-* | -without-* | --without-* | --x) 2190 case "$ac_configure_args0 " in 2191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2192 esac 2193 ;; 2194 -* ) ac_must_keep_next=true ;; 2195 esac 2196 fi 2197 as_fn_append ac_configure_args " '$ac_arg'" 2198 ;; 2199 esac 2200 done 2201done 2202{ ac_configure_args0=; unset ac_configure_args0;} 2203{ ac_configure_args1=; unset ac_configure_args1;} 2204 2205# When interrupted or exit'd, cleanup temporary files, and complete 2206# config.log. We remove comments because anyway the quotes in there 2207# would cause problems or look ugly. 2208# WARNING: Use '\'' to represent an apostrophe within the trap. 2209# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2210trap 'exit_status=$? 2211 # Save into config.log some information that might help in debugging. 2212 { 2213 echo 2214 2215 $as_echo "## ---------------- ## 2216## Cache variables. ## 2217## ---------------- ##" 2218 echo 2219 # The following way of writing the cache mishandles newlines in values, 2220( 2221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2222 eval ac_val=\$$ac_var 2223 case $ac_val in #( 2224 *${as_nl}*) 2225 case $ac_var in #( 2226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2227$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2228 esac 2229 case $ac_var in #( 2230 _ | IFS | as_nl) ;; #( 2231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2232 *) { eval $ac_var=; unset $ac_var;} ;; 2233 esac ;; 2234 esac 2235 done 2236 (set) 2>&1 | 2237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2238 *${as_nl}ac_space=\ *) 2239 sed -n \ 2240 "s/'\''/'\''\\\\'\'''\''/g; 2241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2242 ;; #( 2243 *) 2244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2245 ;; 2246 esac | 2247 sort 2248) 2249 echo 2250 2251 $as_echo "## ----------------- ## 2252## Output variables. ## 2253## ----------------- ##" 2254 echo 2255 for ac_var in $ac_subst_vars 2256 do 2257 eval ac_val=\$$ac_var 2258 case $ac_val in 2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2260 esac 2261 $as_echo "$ac_var='\''$ac_val'\''" 2262 done | sort 2263 echo 2264 2265 if test -n "$ac_subst_files"; then 2266 $as_echo "## ------------------- ## 2267## File substitutions. ## 2268## ------------------- ##" 2269 echo 2270 for ac_var in $ac_subst_files 2271 do 2272 eval ac_val=\$$ac_var 2273 case $ac_val in 2274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2275 esac 2276 $as_echo "$ac_var='\''$ac_val'\''" 2277 done | sort 2278 echo 2279 fi 2280 2281 if test -s confdefs.h; then 2282 $as_echo "## ----------- ## 2283## confdefs.h. ## 2284## ----------- ##" 2285 echo 2286 cat confdefs.h 2287 echo 2288 fi 2289 test "$ac_signal" != 0 && 2290 $as_echo "$as_me: caught signal $ac_signal" 2291 $as_echo "$as_me: exit $exit_status" 2292 } >&5 2293 rm -f core *.core core.conftest.* && 2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2295 exit $exit_status 2296' 0 2297for ac_signal in 1 2 13 15; do 2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2299done 2300ac_signal=0 2301 2302# confdefs.h avoids OS command line length limits that DEFS can exceed. 2303rm -f -r conftest* confdefs.h 2304 2305$as_echo "/* confdefs.h */" > confdefs.h 2306 2307# Predefined preprocessor variables. 2308 2309cat >>confdefs.h <<_ACEOF 2310#define PACKAGE_NAME "$PACKAGE_NAME" 2311_ACEOF 2312 2313cat >>confdefs.h <<_ACEOF 2314#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2315_ACEOF 2316 2317cat >>confdefs.h <<_ACEOF 2318#define PACKAGE_VERSION "$PACKAGE_VERSION" 2319_ACEOF 2320 2321cat >>confdefs.h <<_ACEOF 2322#define PACKAGE_STRING "$PACKAGE_STRING" 2323_ACEOF 2324 2325cat >>confdefs.h <<_ACEOF 2326#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2327_ACEOF 2328 2329cat >>confdefs.h <<_ACEOF 2330#define PACKAGE_URL "$PACKAGE_URL" 2331_ACEOF 2332 2333 2334# Let the site file select an alternate cache file if it wants to. 2335# Prefer an explicitly selected file to automatically selected ones. 2336ac_site_file1=NONE 2337ac_site_file2=NONE 2338if test -n "$CONFIG_SITE"; then 2339 # We do not want a PATH search for config.site. 2340 case $CONFIG_SITE in #(( 2341 -*) ac_site_file1=./$CONFIG_SITE;; 2342 */*) ac_site_file1=$CONFIG_SITE;; 2343 *) ac_site_file1=./$CONFIG_SITE;; 2344 esac 2345elif test "x$prefix" != xNONE; then 2346 ac_site_file1=$prefix/share/config.site 2347 ac_site_file2=$prefix/etc/config.site 2348else 2349 ac_site_file1=$ac_default_prefix/share/config.site 2350 ac_site_file2=$ac_default_prefix/etc/config.site 2351fi 2352for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2353do 2354 test "x$ac_site_file" = xNONE && continue 2355 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2357$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2358 sed 's/^/| /' "$ac_site_file" >&5 2359 . "$ac_site_file" \ 2360 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2362as_fn_error $? "failed to load site script $ac_site_file 2363See \`config.log' for more details" "$LINENO" 5; } 2364 fi 2365done 2366 2367if test -r "$cache_file"; then 2368 # Some versions of bash will fail to source /dev/null (special files 2369 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2370 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2372$as_echo "$as_me: loading cache $cache_file" >&6;} 2373 case $cache_file in 2374 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2375 *) . "./$cache_file";; 2376 esac 2377 fi 2378else 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2380$as_echo "$as_me: creating cache $cache_file" >&6;} 2381 >$cache_file 2382fi 2383 2384# Check that the precious variables saved in the cache have kept the same 2385# value. 2386ac_cache_corrupted=false 2387for ac_var in $ac_precious_vars; do 2388 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2389 eval ac_new_set=\$ac_env_${ac_var}_set 2390 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2391 eval ac_new_val=\$ac_env_${ac_var}_value 2392 case $ac_old_set,$ac_new_set in 2393 set,) 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2395$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2396 ac_cache_corrupted=: ;; 2397 ,set) 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2399$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2400 ac_cache_corrupted=: ;; 2401 ,);; 2402 *) 2403 if test "x$ac_old_val" != "x$ac_new_val"; then 2404 # differences in whitespace do not lead to failure. 2405 ac_old_val_w=`echo x $ac_old_val` 2406 ac_new_val_w=`echo x $ac_new_val` 2407 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2409$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2410 ac_cache_corrupted=: 2411 else 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2413$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2414 eval $ac_var=\$ac_old_val 2415 fi 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2417$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2419$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2420 fi;; 2421 esac 2422 # Pass precious variables to config.status. 2423 if test "$ac_new_set" = set; then 2424 case $ac_new_val in 2425 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2426 *) ac_arg=$ac_var=$ac_new_val ;; 2427 esac 2428 case " $ac_configure_args " in 2429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2430 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2431 esac 2432 fi 2433done 2434if $ac_cache_corrupted; then 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2438$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2439 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2440fi 2441## -------------------- ## 2442## Main body of script. ## 2443## -------------------- ## 2444 2445ac_ext=c 2446ac_cpp='$CPP $CPPFLAGS' 2447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2449ac_compiler_gnu=$ac_cv_c_compiler_gnu 2450 2451 2452 2453# Before making a release, the GNOKII_LT_VERSION string should be modified. 2454# The string is of the form C:R:A. 2455# - If interfaces have been changed or added, but binary compatibility has 2456# been preserved, change to C+1:0:A+1 2457# - If binary compatibility has been broken (eg removed or changed interfaces) 2458# change to C-A+1:0:0 2459# - If the interface is the same as the previous version, change to C:R+1:A 2460GNOKII_LT_VERSION_CURRENT=7 2461GNOKII_LT_VERSION_REVISION=0 2462GNOKII_LT_VERSION_AGE=0 2463 2464 2465 2466 2467XVERSION=1.0 2468 2469SVERSION=1.5.2 2470 2471ac_aux_dir= 2472for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2473 if test -f "$ac_dir/install-sh"; then 2474 ac_aux_dir=$ac_dir 2475 ac_install_sh="$ac_aux_dir/install-sh -c" 2476 break 2477 elif test -f "$ac_dir/install.sh"; then 2478 ac_aux_dir=$ac_dir 2479 ac_install_sh="$ac_aux_dir/install.sh -c" 2480 break 2481 elif test -f "$ac_dir/shtool"; then 2482 ac_aux_dir=$ac_dir 2483 ac_install_sh="$ac_aux_dir/shtool install -c" 2484 break 2485 fi 2486done 2487if test -z "$ac_aux_dir"; then 2488 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2489fi 2490 2491# These three variables are undocumented and unsupported, 2492# and are intended to be withdrawn in a future Autoconf release. 2493# They can cause serious problems if a builder's source tree is in a directory 2494# whose full name contains unusual characters. 2495ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2496ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2497ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2498 2499 2500# Make sure we can run config.sub. 2501$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2502 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2503 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2505$as_echo_n "checking build system type... " >&6; } 2506if ${ac_cv_build+:} false; then : 2507 $as_echo_n "(cached) " >&6 2508else 2509 ac_build_alias=$build_alias 2510test "x$ac_build_alias" = x && 2511 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2512test "x$ac_build_alias" = x && 2513 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2514ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2515 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2516 2517fi 2518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2519$as_echo "$ac_cv_build" >&6; } 2520case $ac_cv_build in 2521*-*-*) ;; 2522*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2523esac 2524build=$ac_cv_build 2525ac_save_IFS=$IFS; IFS='-' 2526set x $ac_cv_build 2527shift 2528build_cpu=$1 2529build_vendor=$2 2530shift; shift 2531# Remember, the first character of IFS is used to create $*, 2532# except with old shells: 2533build_os=$* 2534IFS=$ac_save_IFS 2535case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2536 2537 2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2539$as_echo_n "checking host system type... " >&6; } 2540if ${ac_cv_host+:} false; then : 2541 $as_echo_n "(cached) " >&6 2542else 2543 if test "x$host_alias" = x; then 2544 ac_cv_host=$ac_cv_build 2545else 2546 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2547 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2548fi 2549 2550fi 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2552$as_echo "$ac_cv_host" >&6; } 2553case $ac_cv_host in 2554*-*-*) ;; 2555*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2556esac 2557host=$ac_cv_host 2558ac_save_IFS=$IFS; IFS='-' 2559set x $ac_cv_host 2560shift 2561host_cpu=$1 2562host_vendor=$2 2563shift; shift 2564# Remember, the first character of IFS is used to create $*, 2565# except with old shells: 2566host_os=$* 2567IFS=$ac_save_IFS 2568case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2569 2570 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2572$as_echo_n "checking target system type... " >&6; } 2573if ${ac_cv_target+:} false; then : 2574 $as_echo_n "(cached) " >&6 2575else 2576 if test "x$target_alias" = x; then 2577 ac_cv_target=$ac_cv_host 2578else 2579 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2580 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2581fi 2582 2583fi 2584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2585$as_echo "$ac_cv_target" >&6; } 2586case $ac_cv_target in 2587*-*-*) ;; 2588*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2589esac 2590target=$ac_cv_target 2591ac_save_IFS=$IFS; IFS='-' 2592set x $ac_cv_target 2593shift 2594target_cpu=$1 2595target_vendor=$2 2596shift; shift 2597# Remember, the first character of IFS is used to create $*, 2598# except with old shells: 2599target_os=$* 2600IFS=$ac_save_IFS 2601case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2602 2603 2604# The aliases save the names the user supplied, while $host etc. 2605# will get canonicalized. 2606test -n "$target_alias" && 2607 test "$program_prefix$program_suffix$program_transform_name" = \ 2608 NONENONEs,x,x, && 2609 program_prefix=${target_alias}- 2610 2611ac_ext=c 2612ac_cpp='$CPP $CPPFLAGS' 2613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2615ac_compiler_gnu=$ac_cv_c_compiler_gnu 2616if test -n "$ac_tool_prefix"; then 2617 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2618set dummy ${ac_tool_prefix}gcc; ac_word=$2 2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2620$as_echo_n "checking for $ac_word... " >&6; } 2621if ${ac_cv_prog_CC+:} false; then : 2622 $as_echo_n "(cached) " >&6 2623else 2624 if test -n "$CC"; then 2625 ac_cv_prog_CC="$CC" # Let the user override the test. 2626else 2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2628for as_dir in $PATH 2629do 2630 IFS=$as_save_IFS 2631 test -z "$as_dir" && as_dir=. 2632 for ac_exec_ext in '' $ac_executable_extensions; do 2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2634 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2636 break 2 2637 fi 2638done 2639 done 2640IFS=$as_save_IFS 2641 2642fi 2643fi 2644CC=$ac_cv_prog_CC 2645if test -n "$CC"; then 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2647$as_echo "$CC" >&6; } 2648else 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2650$as_echo "no" >&6; } 2651fi 2652 2653 2654fi 2655if test -z "$ac_cv_prog_CC"; then 2656 ac_ct_CC=$CC 2657 # Extract the first word of "gcc", so it can be a program name with args. 2658set dummy gcc; ac_word=$2 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2660$as_echo_n "checking for $ac_word... " >&6; } 2661if ${ac_cv_prog_ac_ct_CC+:} false; then : 2662 $as_echo_n "(cached) " >&6 2663else 2664 if test -n "$ac_ct_CC"; then 2665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2666else 2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668for as_dir in $PATH 2669do 2670 IFS=$as_save_IFS 2671 test -z "$as_dir" && as_dir=. 2672 for ac_exec_ext in '' $ac_executable_extensions; do 2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2674 ac_cv_prog_ac_ct_CC="gcc" 2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2676 break 2 2677 fi 2678done 2679 done 2680IFS=$as_save_IFS 2681 2682fi 2683fi 2684ac_ct_CC=$ac_cv_prog_ac_ct_CC 2685if test -n "$ac_ct_CC"; then 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2687$as_echo "$ac_ct_CC" >&6; } 2688else 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2690$as_echo "no" >&6; } 2691fi 2692 2693 if test "x$ac_ct_CC" = x; then 2694 CC="" 2695 else 2696 case $cross_compiling:$ac_tool_warned in 2697yes:) 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2700ac_tool_warned=yes ;; 2701esac 2702 CC=$ac_ct_CC 2703 fi 2704else 2705 CC="$ac_cv_prog_CC" 2706fi 2707 2708if test -z "$CC"; then 2709 if test -n "$ac_tool_prefix"; then 2710 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2711set dummy ${ac_tool_prefix}cc; ac_word=$2 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2713$as_echo_n "checking for $ac_word... " >&6; } 2714if ${ac_cv_prog_CC+:} false; then : 2715 $as_echo_n "(cached) " >&6 2716else 2717 if test -n "$CC"; then 2718 ac_cv_prog_CC="$CC" # Let the user override the test. 2719else 2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2721for as_dir in $PATH 2722do 2723 IFS=$as_save_IFS 2724 test -z "$as_dir" && as_dir=. 2725 for ac_exec_ext in '' $ac_executable_extensions; do 2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2727 ac_cv_prog_CC="${ac_tool_prefix}cc" 2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2729 break 2 2730 fi 2731done 2732 done 2733IFS=$as_save_IFS 2734 2735fi 2736fi 2737CC=$ac_cv_prog_CC 2738if test -n "$CC"; then 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2740$as_echo "$CC" >&6; } 2741else 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2743$as_echo "no" >&6; } 2744fi 2745 2746 2747 fi 2748fi 2749if test -z "$CC"; then 2750 # Extract the first word of "cc", so it can be a program name with args. 2751set dummy cc; ac_word=$2 2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2753$as_echo_n "checking for $ac_word... " >&6; } 2754if ${ac_cv_prog_CC+:} false; then : 2755 $as_echo_n "(cached) " >&6 2756else 2757 if test -n "$CC"; then 2758 ac_cv_prog_CC="$CC" # Let the user override the test. 2759else 2760 ac_prog_rejected=no 2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2762for as_dir in $PATH 2763do 2764 IFS=$as_save_IFS 2765 test -z "$as_dir" && as_dir=. 2766 for ac_exec_ext in '' $ac_executable_extensions; do 2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2768 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2769 ac_prog_rejected=yes 2770 continue 2771 fi 2772 ac_cv_prog_CC="cc" 2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2774 break 2 2775 fi 2776done 2777 done 2778IFS=$as_save_IFS 2779 2780if test $ac_prog_rejected = yes; then 2781 # We found a bogon in the path, so make sure we never use it. 2782 set dummy $ac_cv_prog_CC 2783 shift 2784 if test $# != 0; then 2785 # We chose a different compiler from the bogus one. 2786 # However, it has the same basename, so the bogon will be chosen 2787 # first if we set CC to just the basename; use the full file name. 2788 shift 2789 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2790 fi 2791fi 2792fi 2793fi 2794CC=$ac_cv_prog_CC 2795if test -n "$CC"; then 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2797$as_echo "$CC" >&6; } 2798else 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800$as_echo "no" >&6; } 2801fi 2802 2803 2804fi 2805if test -z "$CC"; then 2806 if test -n "$ac_tool_prefix"; then 2807 for ac_prog in cl.exe 2808 do 2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2810set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2812$as_echo_n "checking for $ac_word... " >&6; } 2813if ${ac_cv_prog_CC+:} false; then : 2814 $as_echo_n "(cached) " >&6 2815else 2816 if test -n "$CC"; then 2817 ac_cv_prog_CC="$CC" # Let the user override the test. 2818else 2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2820for as_dir in $PATH 2821do 2822 IFS=$as_save_IFS 2823 test -z "$as_dir" && as_dir=. 2824 for ac_exec_ext in '' $ac_executable_extensions; do 2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2826 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2828 break 2 2829 fi 2830done 2831 done 2832IFS=$as_save_IFS 2833 2834fi 2835fi 2836CC=$ac_cv_prog_CC 2837if test -n "$CC"; then 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2839$as_echo "$CC" >&6; } 2840else 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2842$as_echo "no" >&6; } 2843fi 2844 2845 2846 test -n "$CC" && break 2847 done 2848fi 2849if test -z "$CC"; then 2850 ac_ct_CC=$CC 2851 for ac_prog in cl.exe 2852do 2853 # Extract the first word of "$ac_prog", so it can be a program name with args. 2854set dummy $ac_prog; ac_word=$2 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2856$as_echo_n "checking for $ac_word... " >&6; } 2857if ${ac_cv_prog_ac_ct_CC+:} false; then : 2858 $as_echo_n "(cached) " >&6 2859else 2860 if test -n "$ac_ct_CC"; then 2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2862else 2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2864for as_dir in $PATH 2865do 2866 IFS=$as_save_IFS 2867 test -z "$as_dir" && as_dir=. 2868 for ac_exec_ext in '' $ac_executable_extensions; do 2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2870 ac_cv_prog_ac_ct_CC="$ac_prog" 2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2872 break 2 2873 fi 2874done 2875 done 2876IFS=$as_save_IFS 2877 2878fi 2879fi 2880ac_ct_CC=$ac_cv_prog_ac_ct_CC 2881if test -n "$ac_ct_CC"; then 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2883$as_echo "$ac_ct_CC" >&6; } 2884else 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2886$as_echo "no" >&6; } 2887fi 2888 2889 2890 test -n "$ac_ct_CC" && break 2891done 2892 2893 if test "x$ac_ct_CC" = x; then 2894 CC="" 2895 else 2896 case $cross_compiling:$ac_tool_warned in 2897yes:) 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2900ac_tool_warned=yes ;; 2901esac 2902 CC=$ac_ct_CC 2903 fi 2904fi 2905 2906fi 2907 2908 2909test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2911as_fn_error $? "no acceptable C compiler found in \$PATH 2912See \`config.log' for more details" "$LINENO" 5; } 2913 2914# Provide some information about the compiler. 2915$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2916set X $ac_compile 2917ac_compiler=$2 2918for ac_option in --version -v -V -qversion; do 2919 { { ac_try="$ac_compiler $ac_option >&5" 2920case "(($ac_try" in 2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2922 *) ac_try_echo=$ac_try;; 2923esac 2924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2925$as_echo "$ac_try_echo"; } >&5 2926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2927 ac_status=$? 2928 if test -s conftest.err; then 2929 sed '10a\ 2930... rest of stderr output deleted ... 2931 10q' conftest.err >conftest.er1 2932 cat conftest.er1 >&5 2933 fi 2934 rm -f conftest.er1 conftest.err 2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2936 test $ac_status = 0; } 2937done 2938 2939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2940/* end confdefs.h. */ 2941 2942int 2943main () 2944{ 2945 2946 ; 2947 return 0; 2948} 2949_ACEOF 2950ac_clean_files_save=$ac_clean_files 2951ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2952# Try to create an executable without -o first, disregard a.out. 2953# It will help us diagnose broken compilers, and finding out an intuition 2954# of exeext. 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2956$as_echo_n "checking whether the C compiler works... " >&6; } 2957ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2958 2959# The possible output files: 2960ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2961 2962ac_rmfiles= 2963for ac_file in $ac_files 2964do 2965 case $ac_file in 2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2967 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2968 esac 2969done 2970rm -f $ac_rmfiles 2971 2972if { { ac_try="$ac_link_default" 2973case "(($ac_try" in 2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2975 *) ac_try_echo=$ac_try;; 2976esac 2977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2978$as_echo "$ac_try_echo"; } >&5 2979 (eval "$ac_link_default") 2>&5 2980 ac_status=$? 2981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2982 test $ac_status = 0; }; then : 2983 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2984# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2985# in a Makefile. We should not override ac_cv_exeext if it was cached, 2986# so that the user can short-circuit this test for compilers unknown to 2987# Autoconf. 2988for ac_file in $ac_files '' 2989do 2990 test -f "$ac_file" || continue 2991 case $ac_file in 2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2993 ;; 2994 [ab].out ) 2995 # We found the default executable, but exeext='' is most 2996 # certainly right. 2997 break;; 2998 *.* ) 2999 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3000 then :; else 3001 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3002 fi 3003 # We set ac_cv_exeext here because the later test for it is not 3004 # safe: cross compilers may not add the suffix if given an `-o' 3005 # argument, so we may need to know it at that point already. 3006 # Even if this section looks crufty: it has the advantage of 3007 # actually working. 3008 break;; 3009 * ) 3010 break;; 3011 esac 3012done 3013test "$ac_cv_exeext" = no && ac_cv_exeext= 3014 3015else 3016 ac_file='' 3017fi 3018if test -z "$ac_file"; then : 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3020$as_echo "no" >&6; } 3021$as_echo "$as_me: failed program was:" >&5 3022sed 's/^/| /' conftest.$ac_ext >&5 3023 3024{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3026as_fn_error 77 "C compiler cannot create executables 3027See \`config.log' for more details" "$LINENO" 5; } 3028else 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3030$as_echo "yes" >&6; } 3031fi 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3033$as_echo_n "checking for C compiler default output file name... " >&6; } 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3035$as_echo "$ac_file" >&6; } 3036ac_exeext=$ac_cv_exeext 3037 3038rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3039ac_clean_files=$ac_clean_files_save 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3041$as_echo_n "checking for suffix of executables... " >&6; } 3042if { { ac_try="$ac_link" 3043case "(($ac_try" in 3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3045 *) ac_try_echo=$ac_try;; 3046esac 3047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3048$as_echo "$ac_try_echo"; } >&5 3049 (eval "$ac_link") 2>&5 3050 ac_status=$? 3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3052 test $ac_status = 0; }; then : 3053 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3054# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3055# work properly (i.e., refer to `conftest.exe'), while it won't with 3056# `rm'. 3057for ac_file in conftest.exe conftest conftest.*; do 3058 test -f "$ac_file" || continue 3059 case $ac_file in 3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3061 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3062 break;; 3063 * ) break;; 3064 esac 3065done 3066else 3067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3069as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3070See \`config.log' for more details" "$LINENO" 5; } 3071fi 3072rm -f conftest conftest$ac_cv_exeext 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3074$as_echo "$ac_cv_exeext" >&6; } 3075 3076rm -f conftest.$ac_ext 3077EXEEXT=$ac_cv_exeext 3078ac_exeext=$EXEEXT 3079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3080/* end confdefs.h. */ 3081#include <stdio.h> 3082int 3083main () 3084{ 3085FILE *f = fopen ("conftest.out", "w"); 3086 return ferror (f) || fclose (f) != 0; 3087 3088 ; 3089 return 0; 3090} 3091_ACEOF 3092ac_clean_files="$ac_clean_files conftest.out" 3093# Check that the compiler produces executables we can run. If not, either 3094# the compiler is broken, or we cross compile. 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3096$as_echo_n "checking whether we are cross compiling... " >&6; } 3097if test "$cross_compiling" != yes; then 3098 { { ac_try="$ac_link" 3099case "(($ac_try" in 3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3101 *) ac_try_echo=$ac_try;; 3102esac 3103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3104$as_echo "$ac_try_echo"; } >&5 3105 (eval "$ac_link") 2>&5 3106 ac_status=$? 3107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3108 test $ac_status = 0; } 3109 if { ac_try='./conftest$ac_cv_exeext' 3110 { { case "(($ac_try" in 3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3112 *) ac_try_echo=$ac_try;; 3113esac 3114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3115$as_echo "$ac_try_echo"; } >&5 3116 (eval "$ac_try") 2>&5 3117 ac_status=$? 3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3119 test $ac_status = 0; }; }; then 3120 cross_compiling=no 3121 else 3122 if test "$cross_compiling" = maybe; then 3123 cross_compiling=yes 3124 else 3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3127as_fn_error $? "cannot run C compiled programs. 3128If you meant to cross compile, use \`--host'. 3129See \`config.log' for more details" "$LINENO" 5; } 3130 fi 3131 fi 3132fi 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3134$as_echo "$cross_compiling" >&6; } 3135 3136rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3137ac_clean_files=$ac_clean_files_save 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3139$as_echo_n "checking for suffix of object files... " >&6; } 3140if ${ac_cv_objext+:} false; then : 3141 $as_echo_n "(cached) " >&6 3142else 3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3144/* end confdefs.h. */ 3145 3146int 3147main () 3148{ 3149 3150 ; 3151 return 0; 3152} 3153_ACEOF 3154rm -f conftest.o conftest.obj 3155if { { ac_try="$ac_compile" 3156case "(($ac_try" in 3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3158 *) ac_try_echo=$ac_try;; 3159esac 3160eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3161$as_echo "$ac_try_echo"; } >&5 3162 (eval "$ac_compile") 2>&5 3163 ac_status=$? 3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3165 test $ac_status = 0; }; then : 3166 for ac_file in conftest.o conftest.obj conftest.*; do 3167 test -f "$ac_file" || continue; 3168 case $ac_file in 3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3170 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3171 break;; 3172 esac 3173done 3174else 3175 $as_echo "$as_me: failed program was:" >&5 3176sed 's/^/| /' conftest.$ac_ext >&5 3177 3178{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3180as_fn_error $? "cannot compute suffix of object files: cannot compile 3181See \`config.log' for more details" "$LINENO" 5; } 3182fi 3183rm -f conftest.$ac_cv_objext conftest.$ac_ext 3184fi 3185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3186$as_echo "$ac_cv_objext" >&6; } 3187OBJEXT=$ac_cv_objext 3188ac_objext=$OBJEXT 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3190$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3191if ${ac_cv_c_compiler_gnu+:} false; then : 3192 $as_echo_n "(cached) " >&6 3193else 3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3195/* end confdefs.h. */ 3196 3197int 3198main () 3199{ 3200#ifndef __GNUC__ 3201 choke me 3202#endif 3203 3204 ; 3205 return 0; 3206} 3207_ACEOF 3208if ac_fn_c_try_compile "$LINENO"; then : 3209 ac_compiler_gnu=yes 3210else 3211 ac_compiler_gnu=no 3212fi 3213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3214ac_cv_c_compiler_gnu=$ac_compiler_gnu 3215 3216fi 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3218$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3219if test $ac_compiler_gnu = yes; then 3220 GCC=yes 3221else 3222 GCC= 3223fi 3224ac_test_CFLAGS=${CFLAGS+set} 3225ac_save_CFLAGS=$CFLAGS 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3227$as_echo_n "checking whether $CC accepts -g... " >&6; } 3228if ${ac_cv_prog_cc_g+:} false; then : 3229 $as_echo_n "(cached) " >&6 3230else 3231 ac_save_c_werror_flag=$ac_c_werror_flag 3232 ac_c_werror_flag=yes 3233 ac_cv_prog_cc_g=no 3234 CFLAGS="-g" 3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3236/* end confdefs.h. */ 3237 3238int 3239main () 3240{ 3241 3242 ; 3243 return 0; 3244} 3245_ACEOF 3246if ac_fn_c_try_compile "$LINENO"; then : 3247 ac_cv_prog_cc_g=yes 3248else 3249 CFLAGS="" 3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3251/* end confdefs.h. */ 3252 3253int 3254main () 3255{ 3256 3257 ; 3258 return 0; 3259} 3260_ACEOF 3261if ac_fn_c_try_compile "$LINENO"; then : 3262 3263else 3264 ac_c_werror_flag=$ac_save_c_werror_flag 3265 CFLAGS="-g" 3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3267/* end confdefs.h. */ 3268 3269int 3270main () 3271{ 3272 3273 ; 3274 return 0; 3275} 3276_ACEOF 3277if ac_fn_c_try_compile "$LINENO"; then : 3278 ac_cv_prog_cc_g=yes 3279fi 3280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3281fi 3282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3283fi 3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3285 ac_c_werror_flag=$ac_save_c_werror_flag 3286fi 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3288$as_echo "$ac_cv_prog_cc_g" >&6; } 3289if test "$ac_test_CFLAGS" = set; then 3290 CFLAGS=$ac_save_CFLAGS 3291elif test $ac_cv_prog_cc_g = yes; then 3292 if test "$GCC" = yes; then 3293 CFLAGS="-g -O2" 3294 else 3295 CFLAGS="-g" 3296 fi 3297else 3298 if test "$GCC" = yes; then 3299 CFLAGS="-O2" 3300 else 3301 CFLAGS= 3302 fi 3303fi 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3305$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3306if ${ac_cv_prog_cc_c89+:} false; then : 3307 $as_echo_n "(cached) " >&6 3308else 3309 ac_cv_prog_cc_c89=no 3310ac_save_CC=$CC 3311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3312/* end confdefs.h. */ 3313#include <stdarg.h> 3314#include <stdio.h> 3315#include <sys/types.h> 3316#include <sys/stat.h> 3317/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3318struct buf { int x; }; 3319FILE * (*rcsopen) (struct buf *, struct stat *, int); 3320static char *e (p, i) 3321 char **p; 3322 int i; 3323{ 3324 return p[i]; 3325} 3326static char *f (char * (*g) (char **, int), char **p, ...) 3327{ 3328 char *s; 3329 va_list v; 3330 va_start (v,p); 3331 s = g (p, va_arg (v,int)); 3332 va_end (v); 3333 return s; 3334} 3335 3336/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3337 function prototypes and stuff, but not '\xHH' hex character constants. 3338 These don't provoke an error unfortunately, instead are silently treated 3339 as 'x'. The following induces an error, until -std is added to get 3340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3341 array size at least. It's necessary to write '\x00'==0 to get something 3342 that's true only with -std. */ 3343int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3344 3345/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3346 inside strings and character constants. */ 3347#define FOO(x) 'x' 3348int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3349 3350int test (int i, double x); 3351struct s1 {int (*f) (int a);}; 3352struct s2 {int (*f) (double a);}; 3353int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3354int argc; 3355char **argv; 3356int 3357main () 3358{ 3359return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3360 ; 3361 return 0; 3362} 3363_ACEOF 3364for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3366do 3367 CC="$ac_save_CC $ac_arg" 3368 if ac_fn_c_try_compile "$LINENO"; then : 3369 ac_cv_prog_cc_c89=$ac_arg 3370fi 3371rm -f core conftest.err conftest.$ac_objext 3372 test "x$ac_cv_prog_cc_c89" != "xno" && break 3373done 3374rm -f conftest.$ac_ext 3375CC=$ac_save_CC 3376 3377fi 3378# AC_CACHE_VAL 3379case "x$ac_cv_prog_cc_c89" in 3380 x) 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3382$as_echo "none needed" >&6; } ;; 3383 xno) 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3385$as_echo "unsupported" >&6; } ;; 3386 *) 3387 CC="$CC $ac_cv_prog_cc_c89" 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3389$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3390esac 3391if test "x$ac_cv_prog_cc_c89" != xno; then : 3392 3393fi 3394 3395ac_ext=c 3396ac_cpp='$CPP $CPPFLAGS' 3397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3399ac_compiler_gnu=$ac_cv_c_compiler_gnu 3400 3401 3402ac_ext=c 3403ac_cpp='$CPP $CPPFLAGS' 3404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3406ac_compiler_gnu=$ac_cv_c_compiler_gnu 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3408$as_echo_n "checking how to run the C preprocessor... " >&6; } 3409# On Suns, sometimes $CPP names a directory. 3410if test -n "$CPP" && test -d "$CPP"; then 3411 CPP= 3412fi 3413if test -z "$CPP"; then 3414 if ${ac_cv_prog_CPP+:} false; then : 3415 $as_echo_n "(cached) " >&6 3416else 3417 # Double quotes because CPP needs to be expanded 3418 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3419 do 3420 ac_preproc_ok=false 3421for ac_c_preproc_warn_flag in '' yes 3422do 3423 # Use a header file that comes with gcc, so configuring glibc 3424 # with a fresh cross-compiler works. 3425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3426 # <limits.h> exists even on freestanding compilers. 3427 # On the NeXT, cc -E runs the code through the compiler's parser, 3428 # not just through cpp. "Syntax error" is here to catch this case. 3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3430/* end confdefs.h. */ 3431#ifdef __STDC__ 3432# include <limits.h> 3433#else 3434# include <assert.h> 3435#endif 3436 Syntax error 3437_ACEOF 3438if ac_fn_c_try_cpp "$LINENO"; then : 3439 3440else 3441 # Broken: fails on valid input. 3442continue 3443fi 3444rm -f conftest.err conftest.i conftest.$ac_ext 3445 3446 # OK, works on sane cases. Now check whether nonexistent headers 3447 # can be detected and how. 3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3449/* end confdefs.h. */ 3450#include <ac_nonexistent.h> 3451_ACEOF 3452if ac_fn_c_try_cpp "$LINENO"; then : 3453 # Broken: success on invalid input. 3454continue 3455else 3456 # Passes both tests. 3457ac_preproc_ok=: 3458break 3459fi 3460rm -f conftest.err conftest.i conftest.$ac_ext 3461 3462done 3463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3464rm -f conftest.i conftest.err conftest.$ac_ext 3465if $ac_preproc_ok; then : 3466 break 3467fi 3468 3469 done 3470 ac_cv_prog_CPP=$CPP 3471 3472fi 3473 CPP=$ac_cv_prog_CPP 3474else 3475 ac_cv_prog_CPP=$CPP 3476fi 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3478$as_echo "$CPP" >&6; } 3479ac_preproc_ok=false 3480for ac_c_preproc_warn_flag in '' yes 3481do 3482 # Use a header file that comes with gcc, so configuring glibc 3483 # with a fresh cross-compiler works. 3484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3485 # <limits.h> exists even on freestanding compilers. 3486 # On the NeXT, cc -E runs the code through the compiler's parser, 3487 # not just through cpp. "Syntax error" is here to catch this case. 3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3489/* end confdefs.h. */ 3490#ifdef __STDC__ 3491# include <limits.h> 3492#else 3493# include <assert.h> 3494#endif 3495 Syntax error 3496_ACEOF 3497if ac_fn_c_try_cpp "$LINENO"; then : 3498 3499else 3500 # Broken: fails on valid input. 3501continue 3502fi 3503rm -f conftest.err conftest.i conftest.$ac_ext 3504 3505 # OK, works on sane cases. Now check whether nonexistent headers 3506 # can be detected and how. 3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3508/* end confdefs.h. */ 3509#include <ac_nonexistent.h> 3510_ACEOF 3511if ac_fn_c_try_cpp "$LINENO"; then : 3512 # Broken: success on invalid input. 3513continue 3514else 3515 # Passes both tests. 3516ac_preproc_ok=: 3517break 3518fi 3519rm -f conftest.err conftest.i conftest.$ac_ext 3520 3521done 3522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3523rm -f conftest.i conftest.err conftest.$ac_ext 3524if $ac_preproc_ok; then : 3525 3526else 3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3529as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3530See \`config.log' for more details" "$LINENO" 5; } 3531fi 3532 3533ac_ext=c 3534ac_cpp='$CPP $CPPFLAGS' 3535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3537ac_compiler_gnu=$ac_cv_c_compiler_gnu 3538 3539 3540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3541$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3542if ${ac_cv_path_GREP+:} false; then : 3543 $as_echo_n "(cached) " >&6 3544else 3545 if test -z "$GREP"; then 3546 ac_path_GREP_found=false 3547 # Loop through the user's path and test for each of PROGNAME-LIST 3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3549for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3550do 3551 IFS=$as_save_IFS 3552 test -z "$as_dir" && as_dir=. 3553 for ac_prog in grep ggrep; do 3554 for ac_exec_ext in '' $ac_executable_extensions; do 3555 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3556 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3557# Check for GNU ac_path_GREP and select it if it is found. 3558 # Check for GNU $ac_path_GREP 3559case `"$ac_path_GREP" --version 2>&1` in 3560*GNU*) 3561 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3562*) 3563 ac_count=0 3564 $as_echo_n 0123456789 >"conftest.in" 3565 while : 3566 do 3567 cat "conftest.in" "conftest.in" >"conftest.tmp" 3568 mv "conftest.tmp" "conftest.in" 3569 cp "conftest.in" "conftest.nl" 3570 $as_echo 'GREP' >> "conftest.nl" 3571 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3573 as_fn_arith $ac_count + 1 && ac_count=$as_val 3574 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3575 # Best one so far, save it but keep looking for a better one 3576 ac_cv_path_GREP="$ac_path_GREP" 3577 ac_path_GREP_max=$ac_count 3578 fi 3579 # 10*(2^10) chars as input seems more than enough 3580 test $ac_count -gt 10 && break 3581 done 3582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3583esac 3584 3585 $ac_path_GREP_found && break 3 3586 done 3587 done 3588 done 3589IFS=$as_save_IFS 3590 if test -z "$ac_cv_path_GREP"; then 3591 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3592 fi 3593else 3594 ac_cv_path_GREP=$GREP 3595fi 3596 3597fi 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3599$as_echo "$ac_cv_path_GREP" >&6; } 3600 GREP="$ac_cv_path_GREP" 3601 3602 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3604$as_echo_n "checking for egrep... " >&6; } 3605if ${ac_cv_path_EGREP+:} false; then : 3606 $as_echo_n "(cached) " >&6 3607else 3608 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3609 then ac_cv_path_EGREP="$GREP -E" 3610 else 3611 if test -z "$EGREP"; then 3612 ac_path_EGREP_found=false 3613 # Loop through the user's path and test for each of PROGNAME-LIST 3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3616do 3617 IFS=$as_save_IFS 3618 test -z "$as_dir" && as_dir=. 3619 for ac_prog in egrep; do 3620 for ac_exec_ext in '' $ac_executable_extensions; do 3621 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3622 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3623# Check for GNU ac_path_EGREP and select it if it is found. 3624 # Check for GNU $ac_path_EGREP 3625case `"$ac_path_EGREP" --version 2>&1` in 3626*GNU*) 3627 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3628*) 3629 ac_count=0 3630 $as_echo_n 0123456789 >"conftest.in" 3631 while : 3632 do 3633 cat "conftest.in" "conftest.in" >"conftest.tmp" 3634 mv "conftest.tmp" "conftest.in" 3635 cp "conftest.in" "conftest.nl" 3636 $as_echo 'EGREP' >> "conftest.nl" 3637 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3639 as_fn_arith $ac_count + 1 && ac_count=$as_val 3640 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3641 # Best one so far, save it but keep looking for a better one 3642 ac_cv_path_EGREP="$ac_path_EGREP" 3643 ac_path_EGREP_max=$ac_count 3644 fi 3645 # 10*(2^10) chars as input seems more than enough 3646 test $ac_count -gt 10 && break 3647 done 3648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3649esac 3650 3651 $ac_path_EGREP_found && break 3 3652 done 3653 done 3654 done 3655IFS=$as_save_IFS 3656 if test -z "$ac_cv_path_EGREP"; then 3657 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3658 fi 3659else 3660 ac_cv_path_EGREP=$EGREP 3661fi 3662 3663 fi 3664fi 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3666$as_echo "$ac_cv_path_EGREP" >&6; } 3667 EGREP="$ac_cv_path_EGREP" 3668 3669 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3671$as_echo_n "checking for ANSI C header files... " >&6; } 3672if ${ac_cv_header_stdc+:} false; then : 3673 $as_echo_n "(cached) " >&6 3674else 3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3676/* end confdefs.h. */ 3677#include <stdlib.h> 3678#include <stdarg.h> 3679#include <string.h> 3680#include <float.h> 3681 3682int 3683main () 3684{ 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690if ac_fn_c_try_compile "$LINENO"; then : 3691 ac_cv_header_stdc=yes 3692else 3693 ac_cv_header_stdc=no 3694fi 3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3696 3697if test $ac_cv_header_stdc = yes; then 3698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3700/* end confdefs.h. */ 3701#include <string.h> 3702 3703_ACEOF 3704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3705 $EGREP "memchr" >/dev/null 2>&1; then : 3706 3707else 3708 ac_cv_header_stdc=no 3709fi 3710rm -f conftest* 3711 3712fi 3713 3714if test $ac_cv_header_stdc = yes; then 3715 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3717/* end confdefs.h. */ 3718#include <stdlib.h> 3719 3720_ACEOF 3721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3722 $EGREP "free" >/dev/null 2>&1; then : 3723 3724else 3725 ac_cv_header_stdc=no 3726fi 3727rm -f conftest* 3728 3729fi 3730 3731if test $ac_cv_header_stdc = yes; then 3732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3733 if test "$cross_compiling" = yes; then : 3734 : 3735else 3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3737/* end confdefs.h. */ 3738#include <ctype.h> 3739#include <stdlib.h> 3740#if ((' ' & 0x0FF) == 0x020) 3741# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3742# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3743#else 3744# define ISLOWER(c) \ 3745 (('a' <= (c) && (c) <= 'i') \ 3746 || ('j' <= (c) && (c) <= 'r') \ 3747 || ('s' <= (c) && (c) <= 'z')) 3748# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3749#endif 3750 3751#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3752int 3753main () 3754{ 3755 int i; 3756 for (i = 0; i < 256; i++) 3757 if (XOR (islower (i), ISLOWER (i)) 3758 || toupper (i) != TOUPPER (i)) 3759 return 2; 3760 return 0; 3761} 3762_ACEOF 3763if ac_fn_c_try_run "$LINENO"; then : 3764 3765else 3766 ac_cv_header_stdc=no 3767fi 3768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3769 conftest.$ac_objext conftest.beam conftest.$ac_ext 3770fi 3771 3772fi 3773fi 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3775$as_echo "$ac_cv_header_stdc" >&6; } 3776if test $ac_cv_header_stdc = yes; then 3777 3778$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3779 3780fi 3781 3782# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3783for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3784 inttypes.h stdint.h unistd.h 3785do : 3786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3787ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3788" 3789if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3790 cat >>confdefs.h <<_ACEOF 3791#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3792_ACEOF 3793 3794fi 3795 3796done 3797 3798 3799 3800 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3801if test "x$ac_cv_header_minix_config_h" = xyes; then : 3802 MINIX=yes 3803else 3804 MINIX= 3805fi 3806 3807 3808 if test "$MINIX" = yes; then 3809 3810$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3811 3812 3813$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3814 3815 3816$as_echo "#define _MINIX 1" >>confdefs.h 3817 3818 fi 3819 3820 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3822$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3823if ${ac_cv_safe_to_define___extensions__+:} false; then : 3824 $as_echo_n "(cached) " >&6 3825else 3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3827/* end confdefs.h. */ 3828 3829# define __EXTENSIONS__ 1 3830 $ac_includes_default 3831int 3832main () 3833{ 3834 3835 ; 3836 return 0; 3837} 3838_ACEOF 3839if ac_fn_c_try_compile "$LINENO"; then : 3840 ac_cv_safe_to_define___extensions__=yes 3841else 3842 ac_cv_safe_to_define___extensions__=no 3843fi 3844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3845fi 3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3847$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3848 test $ac_cv_safe_to_define___extensions__ = yes && 3849 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3850 3851 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3852 3853 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3854 3855 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3856 3857 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3858 3859 3860 3861 3862 3863 3864 3865am__api_version='1.11' 3866 3867# Find a good install program. We prefer a C program (faster), 3868# so one script is as good as another. But avoid the broken or 3869# incompatible versions: 3870# SysV /etc/install, /usr/sbin/install 3871# SunOS /usr/etc/install 3872# IRIX /sbin/install 3873# AIX /bin/install 3874# AmigaOS /C/install, which installs bootblocks on floppy discs 3875# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3876# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3877# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3878# OS/2's system install, which has a completely different semantic 3879# ./install, which can be erroneously created by make from ./install.sh. 3880# Reject install programs that cannot install multiple files. 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3882$as_echo_n "checking for a BSD-compatible install... " >&6; } 3883if test -z "$INSTALL"; then 3884if ${ac_cv_path_install+:} false; then : 3885 $as_echo_n "(cached) " >&6 3886else 3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3888for as_dir in $PATH 3889do 3890 IFS=$as_save_IFS 3891 test -z "$as_dir" && as_dir=. 3892 # Account for people who put trailing slashes in PATH elements. 3893case $as_dir/ in #(( 3894 ./ | .// | /[cC]/* | \ 3895 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3896 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3897 /usr/ucb/* ) ;; 3898 *) 3899 # OSF1 and SCO ODT 3.0 have their own names for install. 3900 # Don't use installbsd from OSF since it installs stuff as root 3901 # by default. 3902 for ac_prog in ginstall scoinst install; do 3903 for ac_exec_ext in '' $ac_executable_extensions; do 3904 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3905 if test $ac_prog = install && 3906 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3907 # AIX install. It has an incompatible calling convention. 3908 : 3909 elif test $ac_prog = install && 3910 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3911 # program-specific install script used by HP pwplus--don't use. 3912 : 3913 else 3914 rm -rf conftest.one conftest.two conftest.dir 3915 echo one > conftest.one 3916 echo two > conftest.two 3917 mkdir conftest.dir 3918 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3919 test -s conftest.one && test -s conftest.two && 3920 test -s conftest.dir/conftest.one && 3921 test -s conftest.dir/conftest.two 3922 then 3923 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3924 break 3 3925 fi 3926 fi 3927 fi 3928 done 3929 done 3930 ;; 3931esac 3932 3933 done 3934IFS=$as_save_IFS 3935 3936rm -rf conftest.one conftest.two conftest.dir 3937 3938fi 3939 if test "${ac_cv_path_install+set}" = set; then 3940 INSTALL=$ac_cv_path_install 3941 else 3942 # As a last resort, use the slow shell script. Don't cache a 3943 # value for INSTALL within a source directory, because that will 3944 # break other packages using the cache if that directory is 3945 # removed, or if the value is a relative name. 3946 INSTALL=$ac_install_sh 3947 fi 3948fi 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3950$as_echo "$INSTALL" >&6; } 3951 3952# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3953# It thinks the first close brace ends the variable substitution. 3954test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3955 3956test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3957 3958test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3959 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3961$as_echo_n "checking whether build environment is sane... " >&6; } 3962# Just in case 3963sleep 1 3964echo timestamp > conftest.file 3965# Reject unsafe characters in $srcdir or the absolute working directory 3966# name. Accept space and tab only in the latter. 3967am_lf=' 3968' 3969case `pwd` in 3970 *[\\\"\#\$\&\'\`$am_lf]*) 3971 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3972esac 3973case $srcdir in 3974 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3975 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3976esac 3977 3978# Do `set' in a subshell so we don't clobber the current shell's 3979# arguments. Must try -L first in case configure is actually a 3980# symlink; some systems play weird games with the mod time of symlinks 3981# (eg FreeBSD returns the mod time of the symlink's containing 3982# directory). 3983if ( 3984 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3985 if test "$*" = "X"; then 3986 # -L didn't work. 3987 set X `ls -t "$srcdir/configure" conftest.file` 3988 fi 3989 rm -f conftest.file 3990 if test "$*" != "X $srcdir/configure conftest.file" \ 3991 && test "$*" != "X conftest.file $srcdir/configure"; then 3992 3993 # If neither matched, then we have a broken ls. This can happen 3994 # if, for instance, CONFIG_SHELL is bash and it inherits a 3995 # broken ls alias from the environment. This has actually 3996 # happened. Such a system could not be considered "sane". 3997 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3998alias in your environment" "$LINENO" 5 3999 fi 4000 4001 test "$2" = conftest.file 4002 ) 4003then 4004 # Ok. 4005 : 4006else 4007 as_fn_error $? "newly created file is older than distributed files! 4008Check your system clock" "$LINENO" 5 4009fi 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4011$as_echo "yes" >&6; } 4012test "$program_prefix" != NONE && 4013 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4014# Use a double $ so make ignores it. 4015test "$program_suffix" != NONE && 4016 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4017# Double any \ or $. 4018# By default was `s,x,x', remove it if useless. 4019ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4020program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4021 4022# expand $ac_aux_dir to an absolute path 4023am_aux_dir=`cd $ac_aux_dir && pwd` 4024 4025if test x"${MISSING+set}" != xset; then 4026 case $am_aux_dir in 4027 *\ * | *\ *) 4028 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4029 *) 4030 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4031 esac 4032fi 4033# Use eval to expand $SHELL 4034if eval "$MISSING --run true"; then 4035 am_missing_run="$MISSING --run " 4036else 4037 am_missing_run= 4038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 4039$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4040fi 4041 4042if test x"${install_sh}" != xset; then 4043 case $am_aux_dir in 4044 *\ * | *\ *) 4045 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4046 *) 4047 install_sh="\${SHELL} $am_aux_dir/install-sh" 4048 esac 4049fi 4050 4051# Installed binaries are usually stripped using `strip' when the user 4052# run `make install-strip'. However `strip' might not be the right 4053# tool to use in cross-compilation environments, therefore Automake 4054# will honor the `STRIP' environment variable to overrule this program. 4055if test "$cross_compiling" != no; then 4056 if test -n "$ac_tool_prefix"; then 4057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4058set dummy ${ac_tool_prefix}strip; ac_word=$2 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4060$as_echo_n "checking for $ac_word... " >&6; } 4061if ${ac_cv_prog_STRIP+:} false; then : 4062 $as_echo_n "(cached) " >&6 4063else 4064 if test -n "$STRIP"; then 4065 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4066else 4067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4068for as_dir in $PATH 4069do 4070 IFS=$as_save_IFS 4071 test -z "$as_dir" && as_dir=. 4072 for ac_exec_ext in '' $ac_executable_extensions; do 4073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4074 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4076 break 2 4077 fi 4078done 4079 done 4080IFS=$as_save_IFS 4081 4082fi 4083fi 4084STRIP=$ac_cv_prog_STRIP 4085if test -n "$STRIP"; then 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4087$as_echo "$STRIP" >&6; } 4088else 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4090$as_echo "no" >&6; } 4091fi 4092 4093 4094fi 4095if test -z "$ac_cv_prog_STRIP"; then 4096 ac_ct_STRIP=$STRIP 4097 # Extract the first word of "strip", so it can be a program name with args. 4098set dummy strip; ac_word=$2 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4100$as_echo_n "checking for $ac_word... " >&6; } 4101if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4102 $as_echo_n "(cached) " >&6 4103else 4104 if test -n "$ac_ct_STRIP"; then 4105 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4106else 4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4108for as_dir in $PATH 4109do 4110 IFS=$as_save_IFS 4111 test -z "$as_dir" && as_dir=. 4112 for ac_exec_ext in '' $ac_executable_extensions; do 4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4114 ac_cv_prog_ac_ct_STRIP="strip" 4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4116 break 2 4117 fi 4118done 4119 done 4120IFS=$as_save_IFS 4121 4122fi 4123fi 4124ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4125if test -n "$ac_ct_STRIP"; then 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4127$as_echo "$ac_ct_STRIP" >&6; } 4128else 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4130$as_echo "no" >&6; } 4131fi 4132 4133 if test "x$ac_ct_STRIP" = x; then 4134 STRIP=":" 4135 else 4136 case $cross_compiling:$ac_tool_warned in 4137yes:) 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4140ac_tool_warned=yes ;; 4141esac 4142 STRIP=$ac_ct_STRIP 4143 fi 4144else 4145 STRIP="$ac_cv_prog_STRIP" 4146fi 4147 4148fi 4149INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4150 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4152$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4153if test -z "$MKDIR_P"; then 4154 if ${ac_cv_path_mkdir+:} false; then : 4155 $as_echo_n "(cached) " >&6 4156else 4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4158for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4159do 4160 IFS=$as_save_IFS 4161 test -z "$as_dir" && as_dir=. 4162 for ac_prog in mkdir gmkdir; do 4163 for ac_exec_ext in '' $ac_executable_extensions; do 4164 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4165 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4166 'mkdir (GNU coreutils) '* | \ 4167 'mkdir (coreutils) '* | \ 4168 'mkdir (fileutils) '4.1*) 4169 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4170 break 3;; 4171 esac 4172 done 4173 done 4174 done 4175IFS=$as_save_IFS 4176 4177fi 4178 4179 test -d ./--version && rmdir ./--version 4180 if test "${ac_cv_path_mkdir+set}" = set; then 4181 MKDIR_P="$ac_cv_path_mkdir -p" 4182 else 4183 # As a last resort, use the slow shell script. Don't cache a 4184 # value for MKDIR_P within a source directory, because that will 4185 # break other packages using the cache if that directory is 4186 # removed, or if the value is a relative name. 4187 MKDIR_P="$ac_install_sh -d" 4188 fi 4189fi 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4191$as_echo "$MKDIR_P" >&6; } 4192 4193mkdir_p="$MKDIR_P" 4194case $mkdir_p in 4195 [\\/$]* | ?:[\\/]*) ;; 4196 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4197esac 4198 4199for ac_prog in gawk mawk nawk awk 4200do 4201 # Extract the first word of "$ac_prog", so it can be a program name with args. 4202set dummy $ac_prog; ac_word=$2 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4204$as_echo_n "checking for $ac_word... " >&6; } 4205if ${ac_cv_prog_AWK+:} false; then : 4206 $as_echo_n "(cached) " >&6 4207else 4208 if test -n "$AWK"; then 4209 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4210else 4211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4212for as_dir in $PATH 4213do 4214 IFS=$as_save_IFS 4215 test -z "$as_dir" && as_dir=. 4216 for ac_exec_ext in '' $ac_executable_extensions; do 4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4218 ac_cv_prog_AWK="$ac_prog" 4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4220 break 2 4221 fi 4222done 4223 done 4224IFS=$as_save_IFS 4225 4226fi 4227fi 4228AWK=$ac_cv_prog_AWK 4229if test -n "$AWK"; then 4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4231$as_echo "$AWK" >&6; } 4232else 4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4234$as_echo "no" >&6; } 4235fi 4236 4237 4238 test -n "$AWK" && break 4239done 4240 4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4242$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4243set x ${MAKE-make} 4244ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4245if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4246 $as_echo_n "(cached) " >&6 4247else 4248 cat >conftest.make <<\_ACEOF 4249SHELL = /bin/sh 4250all: 4251 @echo '@@@%%%=$(MAKE)=@@@%%%' 4252_ACEOF 4253# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4254case `${MAKE-make} -f conftest.make 2>/dev/null` in 4255 *@@@%%%=?*=@@@%%%*) 4256 eval ac_cv_prog_make_${ac_make}_set=yes;; 4257 *) 4258 eval ac_cv_prog_make_${ac_make}_set=no;; 4259esac 4260rm -f conftest.make 4261fi 4262if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4264$as_echo "yes" >&6; } 4265 SET_MAKE= 4266else 4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4268$as_echo "no" >&6; } 4269 SET_MAKE="MAKE=${MAKE-make}" 4270fi 4271 4272rm -rf .tst 2>/dev/null 4273mkdir .tst 2>/dev/null 4274if test -d .tst; then 4275 am__leading_dot=. 4276else 4277 am__leading_dot=_ 4278fi 4279rmdir .tst 2>/dev/null 4280 4281DEPDIR="${am__leading_dot}deps" 4282 4283ac_config_commands="$ac_config_commands depfiles" 4284 4285 4286am_make=${MAKE-make} 4287cat > confinc << 'END' 4288am__doit: 4289 @echo this is the am__doit target 4290.PHONY: am__doit 4291END 4292# If we don't find an include directive, just comment out the code. 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4294$as_echo_n "checking for style of include used by $am_make... " >&6; } 4295am__include="#" 4296am__quote= 4297_am_result=none 4298# First try GNU make style include. 4299echo "include confinc" > confmf 4300# Ignore all kinds of additional output from `make'. 4301case `$am_make -s -f confmf 2> /dev/null` in #( 4302*the\ am__doit\ target*) 4303 am__include=include 4304 am__quote= 4305 _am_result=GNU 4306 ;; 4307esac 4308# Now try BSD make style include. 4309if test "$am__include" = "#"; then 4310 echo '.include "confinc"' > confmf 4311 case `$am_make -s -f confmf 2> /dev/null` in #( 4312 *the\ am__doit\ target*) 4313 am__include=.include 4314 am__quote="\"" 4315 _am_result=BSD 4316 ;; 4317 esac 4318fi 4319 4320 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4322$as_echo "$_am_result" >&6; } 4323rm -f confinc confmf 4324 4325# Check whether --enable-dependency-tracking was given. 4326if test "${enable_dependency_tracking+set}" = set; then : 4327 enableval=$enable_dependency_tracking; 4328fi 4329 4330if test "x$enable_dependency_tracking" != xno; then 4331 am_depcomp="$ac_aux_dir/depcomp" 4332 AMDEPBACKSLASH='\' 4333fi 4334 if test "x$enable_dependency_tracking" != xno; then 4335 AMDEP_TRUE= 4336 AMDEP_FALSE='#' 4337else 4338 AMDEP_TRUE='#' 4339 AMDEP_FALSE= 4340fi 4341 4342 4343if test "`cd $srcdir && pwd`" != "`pwd`"; then 4344 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4345 # is not polluted with repeated "-I." 4346 am__isrc=' -I$(srcdir)' 4347 # test to see if srcdir already configured 4348 if test -f $srcdir/config.status; then 4349 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4350 fi 4351fi 4352 4353# test whether we have cygpath 4354if test -z "$CYGPATH_W"; then 4355 if (cygpath --version) >/dev/null 2>/dev/null; then 4356 CYGPATH_W='cygpath -w' 4357 else 4358 CYGPATH_W=echo 4359 fi 4360fi 4361 4362 4363# Define the identity of the package. 4364 PACKAGE='gnokii' 4365 VERSION='0.6.31' 4366 4367 4368cat >>confdefs.h <<_ACEOF 4369#define PACKAGE "$PACKAGE" 4370_ACEOF 4371 4372 4373cat >>confdefs.h <<_ACEOF 4374#define VERSION "$VERSION" 4375_ACEOF 4376 4377# Some tools Automake needs. 4378 4379ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4380 4381 4382AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4383 4384 4385AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4386 4387 4388AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4389 4390 4391MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4392 4393# We need awk for the "check" target. The system "awk" is bad on 4394# some platforms. 4395# Always define AMTAR for backward compatibility. 4396 4397AMTAR=${AMTAR-"${am_missing_run}tar"} 4398 4399am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4400 4401 4402 4403 4404depcc="$CC" am_compiler_list= 4405 4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4407$as_echo_n "checking dependency style of $depcc... " >&6; } 4408if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4409 $as_echo_n "(cached) " >&6 4410else 4411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4412 # We make a subdir and do the tests there. Otherwise we can end up 4413 # making bogus files that we don't know about and never remove. For 4414 # instance it was reported that on HP-UX the gcc test will end up 4415 # making a dummy file named `D' -- because `-MD' means `put the output 4416 # in D'. 4417 mkdir conftest.dir 4418 # Copy depcomp to subdir because otherwise we won't find it if we're 4419 # using a relative directory. 4420 cp "$am_depcomp" conftest.dir 4421 cd conftest.dir 4422 # We will build objects and dependencies in a subdirectory because 4423 # it helps to detect inapplicable dependency modes. For instance 4424 # both Tru64's cc and ICC support -MD to output dependencies as a 4425 # side effect of compilation, but ICC will put the dependencies in 4426 # the current directory while Tru64 will put them in the object 4427 # directory. 4428 mkdir sub 4429 4430 am_cv_CC_dependencies_compiler_type=none 4431 if test "$am_compiler_list" = ""; then 4432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4433 fi 4434 am__universal=false 4435 case " $depcc " in #( 4436 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4437 esac 4438 4439 for depmode in $am_compiler_list; do 4440 # Setup a source with many dependencies, because some compilers 4441 # like to wrap large dependency lists on column 80 (with \), and 4442 # we should not choose a depcomp mode which is confused by this. 4443 # 4444 # We need to recreate these files for each test, as the compiler may 4445 # overwrite some of them when testing with obscure command lines. 4446 # This happens at least with the AIX C compiler. 4447 : > sub/conftest.c 4448 for i in 1 2 3 4 5 6; do 4449 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4450 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4451 # Solaris 8's {/usr,}/bin/sh. 4452 touch sub/conftst$i.h 4453 done 4454 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4455 4456 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4457 # mode. It turns out that the SunPro C++ compiler does not properly 4458 # handle `-M -o', and we need to detect this. Also, some Intel 4459 # versions had trouble with output in subdirs 4460 am__obj=sub/conftest.${OBJEXT-o} 4461 am__minus_obj="-o $am__obj" 4462 case $depmode in 4463 gcc) 4464 # This depmode causes a compiler race in universal mode. 4465 test "$am__universal" = false || continue 4466 ;; 4467 nosideeffect) 4468 # after this tag, mechanisms are not by side-effect, so they'll 4469 # only be used when explicitly requested 4470 if test "x$enable_dependency_tracking" = xyes; then 4471 continue 4472 else 4473 break 4474 fi 4475 ;; 4476 msvisualcpp | msvcmsys) 4477 # This compiler won't grok `-c -o', but also, the minuso test has 4478 # not run yet. These depmodes are late enough in the game, and 4479 # so weak that their functioning should not be impacted. 4480 am__obj=conftest.${OBJEXT-o} 4481 am__minus_obj= 4482 ;; 4483 none) break ;; 4484 esac 4485 if depmode=$depmode \ 4486 source=sub/conftest.c object=$am__obj \ 4487 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4488 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4489 >/dev/null 2>conftest.err && 4490 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4491 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4492 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4493 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4494 # icc doesn't choke on unknown options, it will just issue warnings 4495 # or remarks (even with -Werror). So we grep stderr for any message 4496 # that says an option was ignored or not supported. 4497 # When given -MP, icc 7.0 and 7.1 complain thusly: 4498 # icc: Command line warning: ignoring option '-M'; no argument required 4499 # The diagnosis changed in icc 8.0: 4500 # icc: Command line remark: option '-MP' not supported 4501 if (grep 'ignoring option' conftest.err || 4502 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4503 am_cv_CC_dependencies_compiler_type=$depmode 4504 break 4505 fi 4506 fi 4507 done 4508 4509 cd .. 4510 rm -rf conftest.dir 4511else 4512 am_cv_CC_dependencies_compiler_type=none 4513fi 4514 4515fi 4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4517$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4518CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4519 4520 if 4521 test "x$enable_dependency_tracking" != xno \ 4522 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4523 am__fastdepCC_TRUE= 4524 am__fastdepCC_FALSE='#' 4525else 4526 am__fastdepCC_TRUE='#' 4527 am__fastdepCC_FALSE= 4528fi 4529 4530 4531 4532 4533 4534 4535ac_ext=c 4536ac_cpp='$CPP $CPPFLAGS' 4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4539ac_compiler_gnu=$ac_cv_c_compiler_gnu 4540if test -n "$ac_tool_prefix"; then 4541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4542set dummy ${ac_tool_prefix}gcc; ac_word=$2 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4544$as_echo_n "checking for $ac_word... " >&6; } 4545if ${ac_cv_prog_CC+:} false; then : 4546 $as_echo_n "(cached) " >&6 4547else 4548 if test -n "$CC"; then 4549 ac_cv_prog_CC="$CC" # Let the user override the test. 4550else 4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4552for as_dir in $PATH 4553do 4554 IFS=$as_save_IFS 4555 test -z "$as_dir" && as_dir=. 4556 for ac_exec_ext in '' $ac_executable_extensions; do 4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4558 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4560 break 2 4561 fi 4562done 4563 done 4564IFS=$as_save_IFS 4565 4566fi 4567fi 4568CC=$ac_cv_prog_CC 4569if test -n "$CC"; then 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4571$as_echo "$CC" >&6; } 4572else 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4574$as_echo "no" >&6; } 4575fi 4576 4577 4578fi 4579if test -z "$ac_cv_prog_CC"; then 4580 ac_ct_CC=$CC 4581 # Extract the first word of "gcc", so it can be a program name with args. 4582set dummy gcc; ac_word=$2 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4584$as_echo_n "checking for $ac_word... " >&6; } 4585if ${ac_cv_prog_ac_ct_CC+:} false; then : 4586 $as_echo_n "(cached) " >&6 4587else 4588 if test -n "$ac_ct_CC"; then 4589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4590else 4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4592for as_dir in $PATH 4593do 4594 IFS=$as_save_IFS 4595 test -z "$as_dir" && as_dir=. 4596 for ac_exec_ext in '' $ac_executable_extensions; do 4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4598 ac_cv_prog_ac_ct_CC="gcc" 4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4600 break 2 4601 fi 4602done 4603 done 4604IFS=$as_save_IFS 4605 4606fi 4607fi 4608ac_ct_CC=$ac_cv_prog_ac_ct_CC 4609if test -n "$ac_ct_CC"; then 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4611$as_echo "$ac_ct_CC" >&6; } 4612else 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4614$as_echo "no" >&6; } 4615fi 4616 4617 if test "x$ac_ct_CC" = x; then 4618 CC="" 4619 else 4620 case $cross_compiling:$ac_tool_warned in 4621yes:) 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4624ac_tool_warned=yes ;; 4625esac 4626 CC=$ac_ct_CC 4627 fi 4628else 4629 CC="$ac_cv_prog_CC" 4630fi 4631 4632if test -z "$CC"; then 4633 if test -n "$ac_tool_prefix"; then 4634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4635set dummy ${ac_tool_prefix}cc; ac_word=$2 4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4637$as_echo_n "checking for $ac_word... " >&6; } 4638if ${ac_cv_prog_CC+:} false; then : 4639 $as_echo_n "(cached) " >&6 4640else 4641 if test -n "$CC"; then 4642 ac_cv_prog_CC="$CC" # Let the user override the test. 4643else 4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4645for as_dir in $PATH 4646do 4647 IFS=$as_save_IFS 4648 test -z "$as_dir" && as_dir=. 4649 for ac_exec_ext in '' $ac_executable_extensions; do 4650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4651 ac_cv_prog_CC="${ac_tool_prefix}cc" 4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4653 break 2 4654 fi 4655done 4656 done 4657IFS=$as_save_IFS 4658 4659fi 4660fi 4661CC=$ac_cv_prog_CC 4662if test -n "$CC"; then 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4664$as_echo "$CC" >&6; } 4665else 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4667$as_echo "no" >&6; } 4668fi 4669 4670 4671 fi 4672fi 4673if test -z "$CC"; then 4674 # Extract the first word of "cc", so it can be a program name with args. 4675set dummy cc; ac_word=$2 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4677$as_echo_n "checking for $ac_word... " >&6; } 4678if ${ac_cv_prog_CC+:} false; then : 4679 $as_echo_n "(cached) " >&6 4680else 4681 if test -n "$CC"; then 4682 ac_cv_prog_CC="$CC" # Let the user override the test. 4683else 4684 ac_prog_rejected=no 4685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4686for as_dir in $PATH 4687do 4688 IFS=$as_save_IFS 4689 test -z "$as_dir" && as_dir=. 4690 for ac_exec_ext in '' $ac_executable_extensions; do 4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4693 ac_prog_rejected=yes 4694 continue 4695 fi 4696 ac_cv_prog_CC="cc" 4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4698 break 2 4699 fi 4700done 4701 done 4702IFS=$as_save_IFS 4703 4704if test $ac_prog_rejected = yes; then 4705 # We found a bogon in the path, so make sure we never use it. 4706 set dummy $ac_cv_prog_CC 4707 shift 4708 if test $# != 0; then 4709 # We chose a different compiler from the bogus one. 4710 # However, it has the same basename, so the bogon will be chosen 4711 # first if we set CC to just the basename; use the full file name. 4712 shift 4713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4714 fi 4715fi 4716fi 4717fi 4718CC=$ac_cv_prog_CC 4719if test -n "$CC"; then 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4721$as_echo "$CC" >&6; } 4722else 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4724$as_echo "no" >&6; } 4725fi 4726 4727 4728fi 4729if test -z "$CC"; then 4730 if test -n "$ac_tool_prefix"; then 4731 for ac_prog in cl.exe 4732 do 4733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4734set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4736$as_echo_n "checking for $ac_word... " >&6; } 4737if ${ac_cv_prog_CC+:} false; then : 4738 $as_echo_n "(cached) " >&6 4739else 4740 if test -n "$CC"; then 4741 ac_cv_prog_CC="$CC" # Let the user override the test. 4742else 4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4744for as_dir in $PATH 4745do 4746 IFS=$as_save_IFS 4747 test -z "$as_dir" && as_dir=. 4748 for ac_exec_ext in '' $ac_executable_extensions; do 4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4752 break 2 4753 fi 4754done 4755 done 4756IFS=$as_save_IFS 4757 4758fi 4759fi 4760CC=$ac_cv_prog_CC 4761if test -n "$CC"; then 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4763$as_echo "$CC" >&6; } 4764else 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4766$as_echo "no" >&6; } 4767fi 4768 4769 4770 test -n "$CC" && break 4771 done 4772fi 4773if test -z "$CC"; then 4774 ac_ct_CC=$CC 4775 for ac_prog in cl.exe 4776do 4777 # Extract the first word of "$ac_prog", so it can be a program name with args. 4778set dummy $ac_prog; ac_word=$2 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4780$as_echo_n "checking for $ac_word... " >&6; } 4781if ${ac_cv_prog_ac_ct_CC+:} false; then : 4782 $as_echo_n "(cached) " >&6 4783else 4784 if test -n "$ac_ct_CC"; then 4785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4786else 4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4788for as_dir in $PATH 4789do 4790 IFS=$as_save_IFS 4791 test -z "$as_dir" && as_dir=. 4792 for ac_exec_ext in '' $ac_executable_extensions; do 4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4794 ac_cv_prog_ac_ct_CC="$ac_prog" 4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4796 break 2 4797 fi 4798done 4799 done 4800IFS=$as_save_IFS 4801 4802fi 4803fi 4804ac_ct_CC=$ac_cv_prog_ac_ct_CC 4805if test -n "$ac_ct_CC"; then 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4807$as_echo "$ac_ct_CC" >&6; } 4808else 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4810$as_echo "no" >&6; } 4811fi 4812 4813 4814 test -n "$ac_ct_CC" && break 4815done 4816 4817 if test "x$ac_ct_CC" = x; then 4818 CC="" 4819 else 4820 case $cross_compiling:$ac_tool_warned in 4821yes:) 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4824ac_tool_warned=yes ;; 4825esac 4826 CC=$ac_ct_CC 4827 fi 4828fi 4829 4830fi 4831 4832 4833test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4835as_fn_error $? "no acceptable C compiler found in \$PATH 4836See \`config.log' for more details" "$LINENO" 5; } 4837 4838# Provide some information about the compiler. 4839$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4840set X $ac_compile 4841ac_compiler=$2 4842for ac_option in --version -v -V -qversion; do 4843 { { ac_try="$ac_compiler $ac_option >&5" 4844case "(($ac_try" in 4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4846 *) ac_try_echo=$ac_try;; 4847esac 4848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4849$as_echo "$ac_try_echo"; } >&5 4850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4851 ac_status=$? 4852 if test -s conftest.err; then 4853 sed '10a\ 4854... rest of stderr output deleted ... 4855 10q' conftest.err >conftest.er1 4856 cat conftest.er1 >&5 4857 fi 4858 rm -f conftest.er1 conftest.err 4859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4860 test $ac_status = 0; } 4861done 4862 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4864$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4865if ${ac_cv_c_compiler_gnu+:} false; then : 4866 $as_echo_n "(cached) " >&6 4867else 4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4869/* end confdefs.h. */ 4870 4871int 4872main () 4873{ 4874#ifndef __GNUC__ 4875 choke me 4876#endif 4877 4878 ; 4879 return 0; 4880} 4881_ACEOF 4882if ac_fn_c_try_compile "$LINENO"; then : 4883 ac_compiler_gnu=yes 4884else 4885 ac_compiler_gnu=no 4886fi 4887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4888ac_cv_c_compiler_gnu=$ac_compiler_gnu 4889 4890fi 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4892$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4893if test $ac_compiler_gnu = yes; then 4894 GCC=yes 4895else 4896 GCC= 4897fi 4898ac_test_CFLAGS=${CFLAGS+set} 4899ac_save_CFLAGS=$CFLAGS 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4901$as_echo_n "checking whether $CC accepts -g... " >&6; } 4902if ${ac_cv_prog_cc_g+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904else 4905 ac_save_c_werror_flag=$ac_c_werror_flag 4906 ac_c_werror_flag=yes 4907 ac_cv_prog_cc_g=no 4908 CFLAGS="-g" 4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4910/* end confdefs.h. */ 4911 4912int 4913main () 4914{ 4915 4916 ; 4917 return 0; 4918} 4919_ACEOF 4920if ac_fn_c_try_compile "$LINENO"; then : 4921 ac_cv_prog_cc_g=yes 4922else 4923 CFLAGS="" 4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4925/* end confdefs.h. */ 4926 4927int 4928main () 4929{ 4930 4931 ; 4932 return 0; 4933} 4934_ACEOF 4935if ac_fn_c_try_compile "$LINENO"; then : 4936 4937else 4938 ac_c_werror_flag=$ac_save_c_werror_flag 4939 CFLAGS="-g" 4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4941/* end confdefs.h. */ 4942 4943int 4944main () 4945{ 4946 4947 ; 4948 return 0; 4949} 4950_ACEOF 4951if ac_fn_c_try_compile "$LINENO"; then : 4952 ac_cv_prog_cc_g=yes 4953fi 4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4955fi 4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4957fi 4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4959 ac_c_werror_flag=$ac_save_c_werror_flag 4960fi 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4962$as_echo "$ac_cv_prog_cc_g" >&6; } 4963if test "$ac_test_CFLAGS" = set; then 4964 CFLAGS=$ac_save_CFLAGS 4965elif test $ac_cv_prog_cc_g = yes; then 4966 if test "$GCC" = yes; then 4967 CFLAGS="-g -O2" 4968 else 4969 CFLAGS="-g" 4970 fi 4971else 4972 if test "$GCC" = yes; then 4973 CFLAGS="-O2" 4974 else 4975 CFLAGS= 4976 fi 4977fi 4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4979$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4980if ${ac_cv_prog_cc_c89+:} false; then : 4981 $as_echo_n "(cached) " >&6 4982else 4983 ac_cv_prog_cc_c89=no 4984ac_save_CC=$CC 4985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4986/* end confdefs.h. */ 4987#include <stdarg.h> 4988#include <stdio.h> 4989#include <sys/types.h> 4990#include <sys/stat.h> 4991/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4992struct buf { int x; }; 4993FILE * (*rcsopen) (struct buf *, struct stat *, int); 4994static char *e (p, i) 4995 char **p; 4996 int i; 4997{ 4998 return p[i]; 4999} 5000static char *f (char * (*g) (char **, int), char **p, ...) 5001{ 5002 char *s; 5003 va_list v; 5004 va_start (v,p); 5005 s = g (p, va_arg (v,int)); 5006 va_end (v); 5007 return s; 5008} 5009 5010/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5011 function prototypes and stuff, but not '\xHH' hex character constants. 5012 These don't provoke an error unfortunately, instead are silently treated 5013 as 'x'. The following induces an error, until -std is added to get 5014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5015 array size at least. It's necessary to write '\x00'==0 to get something 5016 that's true only with -std. */ 5017int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5018 5019/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5020 inside strings and character constants. */ 5021#define FOO(x) 'x' 5022int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5023 5024int test (int i, double x); 5025struct s1 {int (*f) (int a);}; 5026struct s2 {int (*f) (double a);}; 5027int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5028int argc; 5029char **argv; 5030int 5031main () 5032{ 5033return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5034 ; 5035 return 0; 5036} 5037_ACEOF 5038for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5040do 5041 CC="$ac_save_CC $ac_arg" 5042 if ac_fn_c_try_compile "$LINENO"; then : 5043 ac_cv_prog_cc_c89=$ac_arg 5044fi 5045rm -f core conftest.err conftest.$ac_objext 5046 test "x$ac_cv_prog_cc_c89" != "xno" && break 5047done 5048rm -f conftest.$ac_ext 5049CC=$ac_save_CC 5050 5051fi 5052# AC_CACHE_VAL 5053case "x$ac_cv_prog_cc_c89" in 5054 x) 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5056$as_echo "none needed" >&6; } ;; 5057 xno) 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5059$as_echo "unsupported" >&6; } ;; 5060 *) 5061 CC="$CC $ac_cv_prog_cc_c89" 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5063$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5064esac 5065if test "x$ac_cv_prog_cc_c89" != xno; then : 5066 5067fi 5068 5069ac_ext=c 5070ac_cpp='$CPP $CPPFLAGS' 5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5073ac_compiler_gnu=$ac_cv_c_compiler_gnu 5074 5075if test "x$CC" != xcc; then 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5077$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5078else 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5080$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5081fi 5082set dummy $CC; ac_cc=`$as_echo "$2" | 5083 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5084if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 5085 $as_echo_n "(cached) " >&6 5086else 5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5088/* end confdefs.h. */ 5089 5090int 5091main () 5092{ 5093 5094 ; 5095 return 0; 5096} 5097_ACEOF 5098# Make sure it works both with $CC and with simple cc. 5099# We do the test twice because some compilers refuse to overwrite an 5100# existing .o file with -o, though they will create one. 5101ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5102rm -f conftest2.* 5103if { { case "(($ac_try" in 5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5105 *) ac_try_echo=$ac_try;; 5106esac 5107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5108$as_echo "$ac_try_echo"; } >&5 5109 (eval "$ac_try") 2>&5 5110 ac_status=$? 5111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5112 test $ac_status = 0; } && 5113 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5115 *) ac_try_echo=$ac_try;; 5116esac 5117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5118$as_echo "$ac_try_echo"; } >&5 5119 (eval "$ac_try") 2>&5 5120 ac_status=$? 5121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5122 test $ac_status = 0; }; 5123then 5124 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5125 if test "x$CC" != xcc; then 5126 # Test first that cc exists at all. 5127 if { ac_try='cc -c conftest.$ac_ext >&5' 5128 { { case "(($ac_try" in 5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5130 *) ac_try_echo=$ac_try;; 5131esac 5132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5133$as_echo "$ac_try_echo"; } >&5 5134 (eval "$ac_try") 2>&5 5135 ac_status=$? 5136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5137 test $ac_status = 0; }; }; then 5138 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5139 rm -f conftest2.* 5140 if { { case "(($ac_try" in 5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5142 *) ac_try_echo=$ac_try;; 5143esac 5144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5145$as_echo "$ac_try_echo"; } >&5 5146 (eval "$ac_try") 2>&5 5147 ac_status=$? 5148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5149 test $ac_status = 0; } && 5150 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5152 *) ac_try_echo=$ac_try;; 5153esac 5154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5155$as_echo "$ac_try_echo"; } >&5 5156 (eval "$ac_try") 2>&5 5157 ac_status=$? 5158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5159 test $ac_status = 0; }; 5160 then 5161 # cc works too. 5162 : 5163 else 5164 # cc exists but doesn't like -o. 5165 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5166 fi 5167 fi 5168 fi 5169else 5170 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5171fi 5172rm -f core conftest* 5173 5174fi 5175if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5177$as_echo "yes" >&6; } 5178else 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5180$as_echo "no" >&6; } 5181 5182$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5183 5184fi 5185 5186# FIXME: we rely on the cache variable name because 5187# there is no other way. 5188set dummy $CC 5189am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5190eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5191if test "$am_t" != yes; then 5192 # Losing compiler, so override with the script. 5193 # FIXME: It is wrong to rewrite CC. 5194 # But if we don't then we get into trouble of one sort or another. 5195 # A longer-term fix would be to have automake use am__CC in this case, 5196 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5197 CC="$am_aux_dir/compile $CC" 5198fi 5199 5200 5201ac_ext=c 5202ac_cpp='$CPP $CPPFLAGS' 5203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5205ac_compiler_gnu=$ac_cv_c_compiler_gnu 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5207$as_echo_n "checking how to run the C preprocessor... " >&6; } 5208# On Suns, sometimes $CPP names a directory. 5209if test -n "$CPP" && test -d "$CPP"; then 5210 CPP= 5211fi 5212if test -z "$CPP"; then 5213 if ${ac_cv_prog_CPP+:} false; then : 5214 $as_echo_n "(cached) " >&6 5215else 5216 # Double quotes because CPP needs to be expanded 5217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5218 do 5219 ac_preproc_ok=false 5220for ac_c_preproc_warn_flag in '' yes 5221do 5222 # Use a header file that comes with gcc, so configuring glibc 5223 # with a fresh cross-compiler works. 5224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5225 # <limits.h> exists even on freestanding compilers. 5226 # On the NeXT, cc -E runs the code through the compiler's parser, 5227 # not just through cpp. "Syntax error" is here to catch this case. 5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5229/* end confdefs.h. */ 5230#ifdef __STDC__ 5231# include <limits.h> 5232#else 5233# include <assert.h> 5234#endif 5235 Syntax error 5236_ACEOF 5237if ac_fn_c_try_cpp "$LINENO"; then : 5238 5239else 5240 # Broken: fails on valid input. 5241continue 5242fi 5243rm -f conftest.err conftest.i conftest.$ac_ext 5244 5245 # OK, works on sane cases. Now check whether nonexistent headers 5246 # can be detected and how. 5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248/* end confdefs.h. */ 5249#include <ac_nonexistent.h> 5250_ACEOF 5251if ac_fn_c_try_cpp "$LINENO"; then : 5252 # Broken: success on invalid input. 5253continue 5254else 5255 # Passes both tests. 5256ac_preproc_ok=: 5257break 5258fi 5259rm -f conftest.err conftest.i conftest.$ac_ext 5260 5261done 5262# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5263rm -f conftest.i conftest.err conftest.$ac_ext 5264if $ac_preproc_ok; then : 5265 break 5266fi 5267 5268 done 5269 ac_cv_prog_CPP=$CPP 5270 5271fi 5272 CPP=$ac_cv_prog_CPP 5273else 5274 ac_cv_prog_CPP=$CPP 5275fi 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5277$as_echo "$CPP" >&6; } 5278ac_preproc_ok=false 5279for ac_c_preproc_warn_flag in '' yes 5280do 5281 # Use a header file that comes with gcc, so configuring glibc 5282 # with a fresh cross-compiler works. 5283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5284 # <limits.h> exists even on freestanding compilers. 5285 # On the NeXT, cc -E runs the code through the compiler's parser, 5286 # not just through cpp. "Syntax error" is here to catch this case. 5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5288/* end confdefs.h. */ 5289#ifdef __STDC__ 5290# include <limits.h> 5291#else 5292# include <assert.h> 5293#endif 5294 Syntax error 5295_ACEOF 5296if ac_fn_c_try_cpp "$LINENO"; then : 5297 5298else 5299 # Broken: fails on valid input. 5300continue 5301fi 5302rm -f conftest.err conftest.i conftest.$ac_ext 5303 5304 # OK, works on sane cases. Now check whether nonexistent headers 5305 # can be detected and how. 5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5307/* end confdefs.h. */ 5308#include <ac_nonexistent.h> 5309_ACEOF 5310if ac_fn_c_try_cpp "$LINENO"; then : 5311 # Broken: success on invalid input. 5312continue 5313else 5314 # Passes both tests. 5315ac_preproc_ok=: 5316break 5317fi 5318rm -f conftest.err conftest.i conftest.$ac_ext 5319 5320done 5321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5322rm -f conftest.i conftest.err conftest.$ac_ext 5323if $ac_preproc_ok; then : 5324 5325else 5326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5328as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5329See \`config.log' for more details" "$LINENO" 5; } 5330fi 5331 5332ac_ext=c 5333ac_cpp='$CPP $CPPFLAGS' 5334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5336ac_compiler_gnu=$ac_cv_c_compiler_gnu 5337 5338for ac_prog in flex lex 5339do 5340 # Extract the first word of "$ac_prog", so it can be a program name with args. 5341set dummy $ac_prog; ac_word=$2 5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5343$as_echo_n "checking for $ac_word... " >&6; } 5344if ${ac_cv_prog_LEX+:} false; then : 5345 $as_echo_n "(cached) " >&6 5346else 5347 if test -n "$LEX"; then 5348 ac_cv_prog_LEX="$LEX" # Let the user override the test. 5349else 5350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5351for as_dir in $PATH 5352do 5353 IFS=$as_save_IFS 5354 test -z "$as_dir" && as_dir=. 5355 for ac_exec_ext in '' $ac_executable_extensions; do 5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5357 ac_cv_prog_LEX="$ac_prog" 5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5359 break 2 5360 fi 5361done 5362 done 5363IFS=$as_save_IFS 5364 5365fi 5366fi 5367LEX=$ac_cv_prog_LEX 5368if test -n "$LEX"; then 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 5370$as_echo "$LEX" >&6; } 5371else 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5373$as_echo "no" >&6; } 5374fi 5375 5376 5377 test -n "$LEX" && break 5378done 5379test -n "$LEX" || LEX=":" 5380 5381if test "x$LEX" != "x:"; then 5382 cat >conftest.l <<_ACEOF 5383%% 5384a { ECHO; } 5385b { REJECT; } 5386c { yymore (); } 5387d { yyless (1); } 5388e { yyless (input () != 0); } 5389f { unput (yytext[0]); } 5390. { BEGIN INITIAL; } 5391%% 5392#ifdef YYTEXT_POINTER 5393extern char *yytext; 5394#endif 5395int 5396main (void) 5397{ 5398 return ! yylex () + ! yywrap (); 5399} 5400_ACEOF 5401{ { ac_try="$LEX conftest.l" 5402case "(($ac_try" in 5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5404 *) ac_try_echo=$ac_try;; 5405esac 5406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5407$as_echo "$ac_try_echo"; } >&5 5408 (eval "$LEX conftest.l") 2>&5 5409 ac_status=$? 5410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5411 test $ac_status = 0; } 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 5413$as_echo_n "checking lex output file root... " >&6; } 5414if ${ac_cv_prog_lex_root+:} false; then : 5415 $as_echo_n "(cached) " >&6 5416else 5417 5418if test -f lex.yy.c; then 5419 ac_cv_prog_lex_root=lex.yy 5420elif test -f lexyy.c; then 5421 ac_cv_prog_lex_root=lexyy 5422else 5423 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 5424fi 5425fi 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 5427$as_echo "$ac_cv_prog_lex_root" >&6; } 5428LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 5429 5430if test -z "${LEXLIB+set}"; then 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 5432$as_echo_n "checking lex library... " >&6; } 5433if ${ac_cv_lib_lex+:} false; then : 5434 $as_echo_n "(cached) " >&6 5435else 5436 5437 ac_save_LIBS=$LIBS 5438 ac_cv_lib_lex='none needed' 5439 for ac_lib in '' -lfl -ll; do 5440 LIBS="$ac_lib $ac_save_LIBS" 5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5442/* end confdefs.h. */ 5443`cat $LEX_OUTPUT_ROOT.c` 5444_ACEOF 5445if ac_fn_c_try_link "$LINENO"; then : 5446 ac_cv_lib_lex=$ac_lib 5447fi 5448rm -f core conftest.err conftest.$ac_objext \ 5449 conftest$ac_exeext conftest.$ac_ext 5450 test "$ac_cv_lib_lex" != 'none needed' && break 5451 done 5452 LIBS=$ac_save_LIBS 5453 5454fi 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 5456$as_echo "$ac_cv_lib_lex" >&6; } 5457 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 5458fi 5459 5460 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 5462$as_echo_n "checking whether yytext is a pointer... " >&6; } 5463if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 5464 $as_echo_n "(cached) " >&6 5465else 5466 # POSIX says lex can declare yytext either as a pointer or an array; the 5467# default is implementation-dependent. Figure out which it is, since 5468# not all implementations provide the %pointer and %array declarations. 5469ac_cv_prog_lex_yytext_pointer=no 5470ac_save_LIBS=$LIBS 5471LIBS="$LEXLIB $ac_save_LIBS" 5472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5473/* end confdefs.h. */ 5474 5475 #define YYTEXT_POINTER 1 5476`cat $LEX_OUTPUT_ROOT.c` 5477_ACEOF 5478if ac_fn_c_try_link "$LINENO"; then : 5479 ac_cv_prog_lex_yytext_pointer=yes 5480fi 5481rm -f core conftest.err conftest.$ac_objext \ 5482 conftest$ac_exeext conftest.$ac_ext 5483LIBS=$ac_save_LIBS 5484 5485fi 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 5487$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 5488if test $ac_cv_prog_lex_yytext_pointer = yes; then 5489 5490$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 5491 5492fi 5493rm -f conftest.l $LEX_OUTPUT_ROOT.c 5494 5495fi 5496# If there's no flex/lex utility and there's no generated common/gnvcal.c file, we won't be able to compile 5497if test "x$LEX" = "x:" && test ! -f common/gnvcal.c; then 5498 echo "You need one of the following:" 5499 echo " - installed lex/flex" 5500 echo " - generated common/gnvcal.c file (included in release tarballs, not included in GIT)" 5501 exit 1 5502fi 5503 5504# Extract the first word of "rm", so it can be a program name with args. 5505set dummy rm; ac_word=$2 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5507$as_echo_n "checking for $ac_word... " >&6; } 5508if ${ac_cv_path_RM+:} false; then : 5509 $as_echo_n "(cached) " >&6 5510else 5511 case $RM in 5512 [\\/]* | ?:[\\/]*) 5513 ac_cv_path_RM="$RM" # Let the user override the test with a path. 5514 ;; 5515 *) 5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5517for as_dir in $PATH 5518do 5519 IFS=$as_save_IFS 5520 test -z "$as_dir" && as_dir=. 5521 for ac_exec_ext in '' $ac_executable_extensions; do 5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5523 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5525 break 2 5526 fi 5527done 5528 done 5529IFS=$as_save_IFS 5530 5531 test -z "$ac_cv_path_RM" && ac_cv_path_RM="no" 5532 ;; 5533esac 5534fi 5535RM=$ac_cv_path_RM 5536if test -n "$RM"; then 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 5538$as_echo "$RM" >&6; } 5539else 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5541$as_echo "no" >&6; } 5542fi 5543 5544 5545# Extract the first word of "find", so it can be a program name with args. 5546set dummy find; ac_word=$2 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5548$as_echo_n "checking for $ac_word... " >&6; } 5549if ${ac_cv_path_FIND+:} false; then : 5550 $as_echo_n "(cached) " >&6 5551else 5552 case $FIND in 5553 [\\/]* | ?:[\\/]*) 5554 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 5555 ;; 5556 *) 5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5558for as_dir in $PATH 5559do 5560 IFS=$as_save_IFS 5561 test -z "$as_dir" && as_dir=. 5562 for ac_exec_ext in '' $ac_executable_extensions; do 5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5564 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5566 break 2 5567 fi 5568done 5569 done 5570IFS=$as_save_IFS 5571 5572 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="no" 5573 ;; 5574esac 5575fi 5576FIND=$ac_cv_path_FIND 5577if test -n "$FIND"; then 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 5579$as_echo "$FIND" >&6; } 5580else 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5582$as_echo "no" >&6; } 5583fi 5584 5585 5586for ac_prog in gmake make 5587do 5588 # Extract the first word of "$ac_prog", so it can be a program name with args. 5589set dummy $ac_prog; ac_word=$2 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5591$as_echo_n "checking for $ac_word... " >&6; } 5592if ${ac_cv_prog_MAKE+:} false; then : 5593 $as_echo_n "(cached) " >&6 5594else 5595 if test -n "$MAKE"; then 5596 ac_cv_prog_MAKE="$MAKE" # Let the user override the test. 5597else 5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5599for as_dir in $PATH 5600do 5601 IFS=$as_save_IFS 5602 test -z "$as_dir" && as_dir=. 5603 for ac_exec_ext in '' $ac_executable_extensions; do 5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5605 ac_cv_prog_MAKE="$ac_prog" 5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5607 break 2 5608 fi 5609done 5610 done 5611IFS=$as_save_IFS 5612 5613fi 5614fi 5615MAKE=$ac_cv_prog_MAKE 5616if test -n "$MAKE"; then 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 5618$as_echo "$MAKE" >&6; } 5619else 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5621$as_echo "no" >&6; } 5622fi 5623 5624 5625 test -n "$MAKE" && break 5626done 5627 5628for ac_prog in ar 5629do 5630 # Extract the first word of "$ac_prog", so it can be a program name with args. 5631set dummy $ac_prog; ac_word=$2 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5633$as_echo_n "checking for $ac_word... " >&6; } 5634if ${ac_cv_prog_AR+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636else 5637 if test -n "$AR"; then 5638 ac_cv_prog_AR="$AR" # Let the user override the test. 5639else 5640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5641for as_dir in $PATH 5642do 5643 IFS=$as_save_IFS 5644 test -z "$as_dir" && as_dir=. 5645 for ac_exec_ext in '' $ac_executable_extensions; do 5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5647 ac_cv_prog_AR="$ac_prog" 5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5649 break 2 5650 fi 5651done 5652 done 5653IFS=$as_save_IFS 5654 5655fi 5656fi 5657AR=$ac_cv_prog_AR 5658if test -n "$AR"; then 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5660$as_echo "$AR" >&6; } 5661else 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5663$as_echo "no" >&6; } 5664fi 5665 5666 5667 test -n "$AR" && break 5668done 5669 5670 5671 5672 5673 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5675$as_echo_n "checking whether NLS is requested... " >&6; } 5676 # Check whether --enable-nls was given. 5677if test "${enable_nls+set}" = set; then : 5678 enableval=$enable_nls; USE_NLS=$enableval 5679else 5680 USE_NLS=yes 5681fi 5682 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5684$as_echo "$USE_NLS" >&6; } 5685 5686 5687 5688 5689case "$am__api_version" in 5690 1.01234) 5691 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 5692 ;; 5693 *) 5694 ;; 5695esac 5696 5697if test -n "0.35.0"; then 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5 5699$as_echo_n "checking for intltool >= 0.35.0... " >&6; } 5700 5701 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 5702 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` 5703 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 5704 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 5706$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } 5707 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || 5708 as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5 5709fi 5710 5711# Extract the first word of "intltool-update", so it can be a program name with args. 5712set dummy intltool-update; ac_word=$2 5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5714$as_echo_n "checking for $ac_word... " >&6; } 5715if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then : 5716 $as_echo_n "(cached) " >&6 5717else 5718 case $INTLTOOL_UPDATE in 5719 [\\/]* | ?:[\\/]*) 5720 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. 5721 ;; 5722 *) 5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5724for as_dir in $PATH 5725do 5726 IFS=$as_save_IFS 5727 test -z "$as_dir" && as_dir=. 5728 for ac_exec_ext in '' $ac_executable_extensions; do 5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5730 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" 5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5732 break 2 5733 fi 5734done 5735 done 5736IFS=$as_save_IFS 5737 5738 ;; 5739esac 5740fi 5741INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE 5742if test -n "$INTLTOOL_UPDATE"; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 5744$as_echo "$INTLTOOL_UPDATE" >&6; } 5745else 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5747$as_echo "no" >&6; } 5748fi 5749 5750 5751# Extract the first word of "intltool-merge", so it can be a program name with args. 5752set dummy intltool-merge; ac_word=$2 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5754$as_echo_n "checking for $ac_word... " >&6; } 5755if ${ac_cv_path_INTLTOOL_MERGE+:} false; then : 5756 $as_echo_n "(cached) " >&6 5757else 5758 case $INTLTOOL_MERGE in 5759 [\\/]* | ?:[\\/]*) 5760 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. 5761 ;; 5762 *) 5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5764for as_dir in $PATH 5765do 5766 IFS=$as_save_IFS 5767 test -z "$as_dir" && as_dir=. 5768 for ac_exec_ext in '' $ac_executable_extensions; do 5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5770 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" 5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5772 break 2 5773 fi 5774done 5775 done 5776IFS=$as_save_IFS 5777 5778 ;; 5779esac 5780fi 5781INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE 5782if test -n "$INTLTOOL_MERGE"; then 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 5784$as_echo "$INTLTOOL_MERGE" >&6; } 5785else 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5787$as_echo "no" >&6; } 5788fi 5789 5790 5791# Extract the first word of "intltool-extract", so it can be a program name with args. 5792set dummy intltool-extract; ac_word=$2 5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5794$as_echo_n "checking for $ac_word... " >&6; } 5795if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then : 5796 $as_echo_n "(cached) " >&6 5797else 5798 case $INTLTOOL_EXTRACT in 5799 [\\/]* | ?:[\\/]*) 5800 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. 5801 ;; 5802 *) 5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5804for as_dir in $PATH 5805do 5806 IFS=$as_save_IFS 5807 test -z "$as_dir" && as_dir=. 5808 for ac_exec_ext in '' $ac_executable_extensions; do 5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5810 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" 5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5812 break 2 5813 fi 5814done 5815 done 5816IFS=$as_save_IFS 5817 5818 ;; 5819esac 5820fi 5821INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT 5822if test -n "$INTLTOOL_EXTRACT"; then 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 5824$as_echo "$INTLTOOL_EXTRACT" >&6; } 5825else 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5827$as_echo "no" >&6; } 5828fi 5829 5830 5831if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then 5832 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 5833fi 5834 5835 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5836INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5837 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5838 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5839 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@' 5840 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5841 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5842 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5843INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5844 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5845 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5846 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' 5847 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5848 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5849 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5850 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5851 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5852 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5853 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951# Check the gettext tools to make sure they are GNU 5952# Extract the first word of "xgettext", so it can be a program name with args. 5953set dummy xgettext; ac_word=$2 5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5955$as_echo_n "checking for $ac_word... " >&6; } 5956if ${ac_cv_path_XGETTEXT+:} false; then : 5957 $as_echo_n "(cached) " >&6 5958else 5959 case $XGETTEXT in 5960 [\\/]* | ?:[\\/]*) 5961 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5962 ;; 5963 *) 5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5965for as_dir in $PATH 5966do 5967 IFS=$as_save_IFS 5968 test -z "$as_dir" && as_dir=. 5969 for ac_exec_ext in '' $ac_executable_extensions; do 5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5971 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" 5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5973 break 2 5974 fi 5975done 5976 done 5977IFS=$as_save_IFS 5978 5979 ;; 5980esac 5981fi 5982XGETTEXT=$ac_cv_path_XGETTEXT 5983if test -n "$XGETTEXT"; then 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 5985$as_echo "$XGETTEXT" >&6; } 5986else 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5988$as_echo "no" >&6; } 5989fi 5990 5991 5992# Extract the first word of "msgmerge", so it can be a program name with args. 5993set dummy msgmerge; ac_word=$2 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5995$as_echo_n "checking for $ac_word... " >&6; } 5996if ${ac_cv_path_MSGMERGE+:} false; then : 5997 $as_echo_n "(cached) " >&6 5998else 5999 case $MSGMERGE in 6000 [\\/]* | ?:[\\/]*) 6001 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 6002 ;; 6003 *) 6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6005for as_dir in $PATH 6006do 6007 IFS=$as_save_IFS 6008 test -z "$as_dir" && as_dir=. 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6011 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6013 break 2 6014 fi 6015done 6016 done 6017IFS=$as_save_IFS 6018 6019 ;; 6020esac 6021fi 6022MSGMERGE=$ac_cv_path_MSGMERGE 6023if test -n "$MSGMERGE"; then 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 6025$as_echo "$MSGMERGE" >&6; } 6026else 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6028$as_echo "no" >&6; } 6029fi 6030 6031 6032# Extract the first word of "msgfmt", so it can be a program name with args. 6033set dummy msgfmt; ac_word=$2 6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6035$as_echo_n "checking for $ac_word... " >&6; } 6036if ${ac_cv_path_MSGFMT+:} false; then : 6037 $as_echo_n "(cached) " >&6 6038else 6039 case $MSGFMT in 6040 [\\/]* | ?:[\\/]*) 6041 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 6042 ;; 6043 *) 6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6045for as_dir in $PATH 6046do 6047 IFS=$as_save_IFS 6048 test -z "$as_dir" && as_dir=. 6049 for ac_exec_ext in '' $ac_executable_extensions; do 6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6051 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6053 break 2 6054 fi 6055done 6056 done 6057IFS=$as_save_IFS 6058 6059 ;; 6060esac 6061fi 6062MSGFMT=$ac_cv_path_MSGFMT 6063if test -n "$MSGFMT"; then 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 6065$as_echo "$MSGFMT" >&6; } 6066else 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6068$as_echo "no" >&6; } 6069fi 6070 6071 6072# Extract the first word of "gmsgfmt", so it can be a program name with args. 6073set dummy gmsgfmt; ac_word=$2 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6075$as_echo_n "checking for $ac_word... " >&6; } 6076if ${ac_cv_path_GMSGFMT+:} false; then : 6077 $as_echo_n "(cached) " >&6 6078else 6079 case $GMSGFMT in 6080 [\\/]* | ?:[\\/]*) 6081 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 6082 ;; 6083 *) 6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6085for as_dir in $PATH 6086do 6087 IFS=$as_save_IFS 6088 test -z "$as_dir" && as_dir=. 6089 for ac_exec_ext in '' $ac_executable_extensions; do 6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6091 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6093 break 2 6094 fi 6095done 6096 done 6097IFS=$as_save_IFS 6098 6099 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 6100 ;; 6101esac 6102fi 6103GMSGFMT=$ac_cv_path_GMSGFMT 6104if test -n "$GMSGFMT"; then 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 6106$as_echo "$GMSGFMT" >&6; } 6107else 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6109$as_echo "no" >&6; } 6110fi 6111 6112 6113if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then 6114 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 6115fi 6116xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" 6117mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" 6118mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" 6119if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then 6120 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 6121fi 6122 6123# Extract the first word of "perl", so it can be a program name with args. 6124set dummy perl; ac_word=$2 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6126$as_echo_n "checking for $ac_word... " >&6; } 6127if ${ac_cv_path_INTLTOOL_PERL+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 case $INTLTOOL_PERL in 6131 [\\/]* | ?:[\\/]*) 6132 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. 6133 ;; 6134 *) 6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6136for as_dir in $PATH 6137do 6138 IFS=$as_save_IFS 6139 test -z "$as_dir" && as_dir=. 6140 for ac_exec_ext in '' $ac_executable_extensions; do 6141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6142 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" 6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6144 break 2 6145 fi 6146done 6147 done 6148IFS=$as_save_IFS 6149 6150 ;; 6151esac 6152fi 6153INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL 6154if test -n "$INTLTOOL_PERL"; then 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 6156$as_echo "$INTLTOOL_PERL" >&6; } 6157else 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6159$as_echo "no" >&6; } 6160fi 6161 6162 6163if test -z "$INTLTOOL_PERL"; then 6164 as_fn_error $? "perl not found" "$LINENO" 5 6165fi 6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 6167$as_echo_n "checking for perl >= 5.8.1... " >&6; } 6168$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 6169if test $? -ne 0; then 6170 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 6171else 6172 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 6174$as_echo "$IT_PERL_VERSION" >&6; } 6175fi 6176if test "x" != "xno-xml"; then 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 6178$as_echo_n "checking for XML::Parser... " >&6; } 6179 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6181$as_echo "ok" >&6; } 6182 else 6183 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 6184 fi 6185fi 6186 6187# Substitute ALL_LINGUAS so we can use it in po/Makefile 6188 6189 6190# Set DATADIRNAME correctly if it is not set yet 6191# (copied from glib-gettext.m4) 6192if test -z "$DATADIRNAME"; then 6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6194/* end confdefs.h. */ 6195 6196int 6197main () 6198{ 6199extern int _nl_msg_cat_cntr; 6200 return _nl_msg_cat_cntr 6201 ; 6202 return 0; 6203} 6204_ACEOF 6205if ac_fn_c_try_link "$LINENO"; then : 6206 DATADIRNAME=share 6207else 6208 case $host in 6209 *-*-solaris*) 6210 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 6211if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 6212 DATADIRNAME=share 6213else 6214 DATADIRNAME=lib 6215fi 6216 6217 ;; 6218 *) 6219 DATADIRNAME=lib 6220 ;; 6221 esac 6222fi 6223rm -f core conftest.err conftest.$ac_objext \ 6224 conftest$ac_exeext conftest.$ac_ext 6225fi 6226 6227 6228 6229 6230 6231 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 6233$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 6234if ${am_cv_langinfo_codeset+:} false; then : 6235 $as_echo_n "(cached) " >&6 6236else 6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6238/* end confdefs.h. */ 6239#include <langinfo.h> 6240int 6241main () 6242{ 6243char* cs = nl_langinfo(CODESET); return !cs; 6244 ; 6245 return 0; 6246} 6247_ACEOF 6248if ac_fn_c_try_link "$LINENO"; then : 6249 am_cv_langinfo_codeset=yes 6250else 6251 am_cv_langinfo_codeset=no 6252fi 6253rm -f core conftest.err conftest.$ac_objext \ 6254 conftest$ac_exeext conftest.$ac_ext 6255 6256fi 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 6258$as_echo "$am_cv_langinfo_codeset" >&6; } 6259 if test $am_cv_langinfo_codeset = yes; then 6260 6261$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 6262 6263 fi 6264 6265 6266GETTEXT_PACKAGE=gnokii 6267 6268cat >>confdefs.h <<_ACEOF 6269#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 6270_ACEOF 6271 6272 6273 6274 for ac_header in locale.h 6275do : 6276 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 6277if test "x$ac_cv_header_locale_h" = xyes; then : 6278 cat >>confdefs.h <<_ACEOF 6279#define HAVE_LOCALE_H 1 6280_ACEOF 6281 6282fi 6283 6284done 6285 6286 if test $ac_cv_header_locale_h = yes; then 6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 6288$as_echo_n "checking for LC_MESSAGES... " >&6; } 6289if ${am_cv_val_LC_MESSAGES+:} false; then : 6290 $as_echo_n "(cached) " >&6 6291else 6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6293/* end confdefs.h. */ 6294#include <locale.h> 6295int 6296main () 6297{ 6298return LC_MESSAGES 6299 ; 6300 return 0; 6301} 6302_ACEOF 6303if ac_fn_c_try_link "$LINENO"; then : 6304 am_cv_val_LC_MESSAGES=yes 6305else 6306 am_cv_val_LC_MESSAGES=no 6307fi 6308rm -f core conftest.err conftest.$ac_objext \ 6309 conftest$ac_exeext conftest.$ac_ext 6310fi 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 6312$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 6313 if test $am_cv_val_LC_MESSAGES = yes; then 6314 6315$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 6316 6317 fi 6318 fi 6319 USE_NLS=yes 6320 6321 6322 gt_cv_have_gettext=no 6323 6324 CATOBJEXT=NONE 6325 XGETTEXT=: 6326 INTLLIBS= 6327 6328 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 6329if test "x$ac_cv_header_libintl_h" = xyes; then : 6330 gt_cv_func_dgettext_libintl="no" 6331 libintl_extra_libs="" 6332 6333 # 6334 # First check in libc 6335 # 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5 6337$as_echo_n "checking for ngettext in libc... " >&6; } 6338if ${gt_cv_func_ngettext_libc+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340else 6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6342/* end confdefs.h. */ 6343 6344#include <libintl.h> 6345 6346int 6347main () 6348{ 6349return !ngettext ("","", 1) 6350 ; 6351 return 0; 6352} 6353_ACEOF 6354if ac_fn_c_try_link "$LINENO"; then : 6355 gt_cv_func_ngettext_libc=yes 6356else 6357 gt_cv_func_ngettext_libc=no 6358fi 6359rm -f core conftest.err conftest.$ac_objext \ 6360 conftest$ac_exeext conftest.$ac_ext 6361 6362fi 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5 6364$as_echo "$gt_cv_func_ngettext_libc" >&6; } 6365 6366 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5 6368$as_echo_n "checking for dgettext in libc... " >&6; } 6369if ${gt_cv_func_dgettext_libc+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374 6375#include <libintl.h> 6376 6377int 6378main () 6379{ 6380return !dgettext ("","") 6381 ; 6382 return 0; 6383} 6384_ACEOF 6385if ac_fn_c_try_link "$LINENO"; then : 6386 gt_cv_func_dgettext_libc=yes 6387else 6388 gt_cv_func_dgettext_libc=no 6389fi 6390rm -f core conftest.err conftest.$ac_objext \ 6391 conftest$ac_exeext conftest.$ac_ext 6392 6393fi 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5 6395$as_echo "$gt_cv_func_dgettext_libc" >&6; } 6396 fi 6397 6398 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 6399 for ac_func in bind_textdomain_codeset 6400do : 6401 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 6402if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 6403 cat >>confdefs.h <<_ACEOF 6404#define HAVE_BIND_TEXTDOMAIN_CODESET 1 6405_ACEOF 6406 6407fi 6408done 6409 6410 fi 6411 6412 # 6413 # If we don't have everything we want, check in libintl 6414 # 6415 if test "$gt_cv_func_dgettext_libc" != "yes" \ 6416 || test "$gt_cv_func_ngettext_libc" != "yes" \ 6417 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 6418 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 6420$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } 6421if ${ac_cv_lib_intl_bindtextdomain+:} false; then : 6422 $as_echo_n "(cached) " >&6 6423else 6424 ac_check_lib_save_LIBS=$LIBS 6425LIBS="-lintl $LIBS" 6426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6427/* end confdefs.h. */ 6428 6429/* Override any GCC internal prototype to avoid an error. 6430 Use char because int might match the return type of a GCC 6431 builtin and then its argument prototype would still apply. */ 6432#ifdef __cplusplus 6433extern "C" 6434#endif 6435char bindtextdomain (); 6436int 6437main () 6438{ 6439return bindtextdomain (); 6440 ; 6441 return 0; 6442} 6443_ACEOF 6444if ac_fn_c_try_link "$LINENO"; then : 6445 ac_cv_lib_intl_bindtextdomain=yes 6446else 6447 ac_cv_lib_intl_bindtextdomain=no 6448fi 6449rm -f core conftest.err conftest.$ac_objext \ 6450 conftest$ac_exeext conftest.$ac_ext 6451LIBS=$ac_check_lib_save_LIBS 6452fi 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 6454$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } 6455if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 6457$as_echo_n "checking for ngettext in -lintl... " >&6; } 6458if ${ac_cv_lib_intl_ngettext+:} false; then : 6459 $as_echo_n "(cached) " >&6 6460else 6461 ac_check_lib_save_LIBS=$LIBS 6462LIBS="-lintl $LIBS" 6463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464/* end confdefs.h. */ 6465 6466/* Override any GCC internal prototype to avoid an error. 6467 Use char because int might match the return type of a GCC 6468 builtin and then its argument prototype would still apply. */ 6469#ifdef __cplusplus 6470extern "C" 6471#endif 6472char ngettext (); 6473int 6474main () 6475{ 6476return ngettext (); 6477 ; 6478 return 0; 6479} 6480_ACEOF 6481if ac_fn_c_try_link "$LINENO"; then : 6482 ac_cv_lib_intl_ngettext=yes 6483else 6484 ac_cv_lib_intl_ngettext=no 6485fi 6486rm -f core conftest.err conftest.$ac_objext \ 6487 conftest$ac_exeext conftest.$ac_ext 6488LIBS=$ac_check_lib_save_LIBS 6489fi 6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 6491$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 6492if test "x$ac_cv_lib_intl_ngettext" = xyes; then : 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 6494$as_echo_n "checking for dgettext in -lintl... " >&6; } 6495if ${ac_cv_lib_intl_dgettext+:} false; then : 6496 $as_echo_n "(cached) " >&6 6497else 6498 ac_check_lib_save_LIBS=$LIBS 6499LIBS="-lintl $LIBS" 6500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6501/* end confdefs.h. */ 6502 6503/* Override any GCC internal prototype to avoid an error. 6504 Use char because int might match the return type of a GCC 6505 builtin and then its argument prototype would still apply. */ 6506#ifdef __cplusplus 6507extern "C" 6508#endif 6509char dgettext (); 6510int 6511main () 6512{ 6513return dgettext (); 6514 ; 6515 return 0; 6516} 6517_ACEOF 6518if ac_fn_c_try_link "$LINENO"; then : 6519 ac_cv_lib_intl_dgettext=yes 6520else 6521 ac_cv_lib_intl_dgettext=no 6522fi 6523rm -f core conftest.err conftest.$ac_objext \ 6524 conftest$ac_exeext conftest.$ac_ext 6525LIBS=$ac_check_lib_save_LIBS 6526fi 6527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 6528$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 6529if test "x$ac_cv_lib_intl_dgettext" = xyes; then : 6530 gt_cv_func_dgettext_libintl=yes 6531fi 6532 6533fi 6534 6535fi 6536 6537 6538 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5 6540$as_echo_n "checking if -liconv is needed to use gettext... " >&6; } 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 6542$as_echo "" >&6; } 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 6544$as_echo_n "checking for ngettext in -lintl... " >&6; } 6545if ${ac_cv_lib_intl_ngettext+:} false; then : 6546 $as_echo_n "(cached) " >&6 6547else 6548 ac_check_lib_save_LIBS=$LIBS 6549LIBS="-lintl -liconv $LIBS" 6550cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6551/* end confdefs.h. */ 6552 6553/* Override any GCC internal prototype to avoid an error. 6554 Use char because int might match the return type of a GCC 6555 builtin and then its argument prototype would still apply. */ 6556#ifdef __cplusplus 6557extern "C" 6558#endif 6559char ngettext (); 6560int 6561main () 6562{ 6563return ngettext (); 6564 ; 6565 return 0; 6566} 6567_ACEOF 6568if ac_fn_c_try_link "$LINENO"; then : 6569 ac_cv_lib_intl_ngettext=yes 6570else 6571 ac_cv_lib_intl_ngettext=no 6572fi 6573rm -f core conftest.err conftest.$ac_objext \ 6574 conftest$ac_exeext conftest.$ac_ext 6575LIBS=$ac_check_lib_save_LIBS 6576fi 6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 6578$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 6579if test "x$ac_cv_lib_intl_ngettext" = xyes; then : 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5 6581$as_echo_n "checking for dcgettext in -lintl... " >&6; } 6582if ${ac_cv_lib_intl_dcgettext+:} false; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 ac_check_lib_save_LIBS=$LIBS 6586LIBS="-lintl -liconv $LIBS" 6587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6588/* end confdefs.h. */ 6589 6590/* Override any GCC internal prototype to avoid an error. 6591 Use char because int might match the return type of a GCC 6592 builtin and then its argument prototype would still apply. */ 6593#ifdef __cplusplus 6594extern "C" 6595#endif 6596char dcgettext (); 6597int 6598main () 6599{ 6600return dcgettext (); 6601 ; 6602 return 0; 6603} 6604_ACEOF 6605if ac_fn_c_try_link "$LINENO"; then : 6606 ac_cv_lib_intl_dcgettext=yes 6607else 6608 ac_cv_lib_intl_dcgettext=no 6609fi 6610rm -f core conftest.err conftest.$ac_objext \ 6611 conftest$ac_exeext conftest.$ac_ext 6612LIBS=$ac_check_lib_save_LIBS 6613fi 6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5 6615$as_echo "$ac_cv_lib_intl_dcgettext" >&6; } 6616if test "x$ac_cv_lib_intl_dcgettext" = xyes; then : 6617 gt_cv_func_dgettext_libintl=yes 6618 libintl_extra_libs=-liconv 6619else 6620 : 6621fi 6622 6623else 6624 : 6625fi 6626 6627 fi 6628 6629 # 6630 # If we found libintl, then check in it for bind_textdomain_codeset(); 6631 # we'll prefer libc if neither have bind_textdomain_codeset(), 6632 # and both have dgettext and ngettext 6633 # 6634 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 6635 glib_save_LIBS="$LIBS" 6636 LIBS="$LIBS -lintl $libintl_extra_libs" 6637 unset ac_cv_func_bind_textdomain_codeset 6638 for ac_func in bind_textdomain_codeset 6639do : 6640 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 6641if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 6642 cat >>confdefs.h <<_ACEOF 6643#define HAVE_BIND_TEXTDOMAIN_CODESET 1 6644_ACEOF 6645 6646fi 6647done 6648 6649 LIBS="$glib_save_LIBS" 6650 6651 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 6652 gt_cv_func_dgettext_libc=no 6653 else 6654 if test "$gt_cv_func_dgettext_libc" = "yes" \ 6655 && test "$gt_cv_func_ngettext_libc" = "yes"; then 6656 gt_cv_func_dgettext_libintl=no 6657 fi 6658 fi 6659 fi 6660 fi 6661 6662 if test "$gt_cv_func_dgettext_libc" = "yes" \ 6663 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 6664 gt_cv_have_gettext=yes 6665 fi 6666 6667 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 6668 INTLLIBS="-lintl $libintl_extra_libs" 6669 fi 6670 6671 if test "$gt_cv_have_gettext" = "yes"; then 6672 6673$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 6674 6675 # Extract the first word of "msgfmt", so it can be a program name with args. 6676set dummy msgfmt; ac_word=$2 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6678$as_echo_n "checking for $ac_word... " >&6; } 6679if ${ac_cv_path_MSGFMT+:} false; then : 6680 $as_echo_n "(cached) " >&6 6681else 6682 case "$MSGFMT" in 6683 /*) 6684 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 6685 ;; 6686 *) 6687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 6688 for ac_dir in $PATH; do 6689 test -z "$ac_dir" && ac_dir=. 6690 if test -f $ac_dir/$ac_word; then 6691 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 6692 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 6693 break 6694 fi 6695 fi 6696 done 6697 IFS="$ac_save_ifs" 6698 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 6699 ;; 6700esac 6701fi 6702MSGFMT="$ac_cv_path_MSGFMT" 6703if test "$MSGFMT" != "no"; then 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 6705$as_echo "$MSGFMT" >&6; } 6706else 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6708$as_echo "no" >&6; } 6709fi 6710 if test "$MSGFMT" != "no"; then 6711 glib_save_LIBS="$LIBS" 6712 LIBS="$LIBS $INTLLIBS" 6713 for ac_func in dcgettext 6714do : 6715 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" 6716if test "x$ac_cv_func_dcgettext" = xyes; then : 6717 cat >>confdefs.h <<_ACEOF 6718#define HAVE_DCGETTEXT 1 6719_ACEOF 6720 6721fi 6722done 6723 6724 MSGFMT_OPTS= 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5 6726$as_echo_n "checking if msgfmt accepts -c... " >&6; } 6727 cat >conftest.foo <<_ACEOF 6728 6729msgid "" 6730msgstr "" 6731"Content-Type: text/plain; charset=UTF-8\n" 6732"Project-Id-Version: test 1.0\n" 6733"PO-Revision-Date: 2007-02-15 12:01+0100\n" 6734"Last-Translator: test <foo@bar.xx>\n" 6735"Language-Team: C <LL@li.org>\n" 6736"MIME-Version: 1.0\n" 6737"Content-Transfer-Encoding: 8bit\n" 6738 6739_ACEOF 6740if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5 6741 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 6742 ac_status=$? 6743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6744 test $ac_status = 0; }; then 6745 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6746$as_echo "yes" >&6; } 6747else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6748$as_echo "no" >&6; } 6749echo "$as_me: failed input was:" >&5 6750sed 's/^/| /' conftest.foo >&5 6751fi 6752 6753 # Extract the first word of "gmsgfmt", so it can be a program name with args. 6754set dummy gmsgfmt; ac_word=$2 6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6756$as_echo_n "checking for $ac_word... " >&6; } 6757if ${ac_cv_path_GMSGFMT+:} false; then : 6758 $as_echo_n "(cached) " >&6 6759else 6760 case $GMSGFMT in 6761 [\\/]* | ?:[\\/]*) 6762 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 6763 ;; 6764 *) 6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6766for as_dir in $PATH 6767do 6768 IFS=$as_save_IFS 6769 test -z "$as_dir" && as_dir=. 6770 for ac_exec_ext in '' $ac_executable_extensions; do 6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6772 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6774 break 2 6775 fi 6776done 6777 done 6778IFS=$as_save_IFS 6779 6780 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 6781 ;; 6782esac 6783fi 6784GMSGFMT=$ac_cv_path_GMSGFMT 6785if test -n "$GMSGFMT"; then 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 6787$as_echo "$GMSGFMT" >&6; } 6788else 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6790$as_echo "no" >&6; } 6791fi 6792 6793 6794 # Extract the first word of "xgettext", so it can be a program name with args. 6795set dummy xgettext; ac_word=$2 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6797$as_echo_n "checking for $ac_word... " >&6; } 6798if ${ac_cv_path_XGETTEXT+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800else 6801 case "$XGETTEXT" in 6802 /*) 6803 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 6804 ;; 6805 *) 6806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 6807 for ac_dir in $PATH; do 6808 test -z "$ac_dir" && ac_dir=. 6809 if test -f $ac_dir/$ac_word; then 6810 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 6811 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 6812 break 6813 fi 6814 fi 6815 done 6816 IFS="$ac_save_ifs" 6817 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 6818 ;; 6819esac 6820fi 6821XGETTEXT="$ac_cv_path_XGETTEXT" 6822if test "$XGETTEXT" != ":"; then 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 6824$as_echo "$XGETTEXT" >&6; } 6825else 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6827$as_echo "no" >&6; } 6828fi 6829 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6831/* end confdefs.h. */ 6832 6833int 6834main () 6835{ 6836extern int _nl_msg_cat_cntr; 6837 return _nl_msg_cat_cntr 6838 ; 6839 return 0; 6840} 6841_ACEOF 6842if ac_fn_c_try_link "$LINENO"; then : 6843 CATOBJEXT=.gmo 6844 DATADIRNAME=share 6845else 6846 case $host in 6847 *-*-solaris*) 6848 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 6849if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 6850 CATOBJEXT=.gmo 6851 DATADIRNAME=share 6852else 6853 CATOBJEXT=.mo 6854 DATADIRNAME=lib 6855fi 6856 6857 ;; 6858 *) 6859 CATOBJEXT=.mo 6860 DATADIRNAME=lib 6861 ;; 6862 esac 6863fi 6864rm -f core conftest.err conftest.$ac_objext \ 6865 conftest$ac_exeext conftest.$ac_ext 6866 LIBS="$glib_save_LIBS" 6867 INSTOBJEXT=.mo 6868 else 6869 gt_cv_have_gettext=no 6870 fi 6871 fi 6872 6873fi 6874 6875 6876 6877 if test "$gt_cv_have_gettext" = "yes" ; then 6878 6879$as_echo "#define ENABLE_NLS 1" >>confdefs.h 6880 6881 fi 6882 6883 if test "$XGETTEXT" != ":"; then 6884 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 6885 : ; 6886 else 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 6888$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 6889 XGETTEXT=":" 6890 fi 6891 fi 6892 6893 # We need to process the po/ directory. 6894 POSUB=po 6895 6896 ac_config_commands="$ac_config_commands default-1" 6897 6898 6899 for lang in $ALL_LINGUAS; do 6900 GMOFILES="$GMOFILES $lang.gmo" 6901 POFILES="$POFILES $lang.po" 6902 done 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 if test "$gt_cv_have_gettext" = "yes"; then 6917 if test "x$ALL_LINGUAS" = "x"; then 6918 LINGUAS= 6919 else 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 6921$as_echo_n "checking for catalogs to be installed... " >&6; } 6922 NEW_LINGUAS= 6923 for presentlang in $ALL_LINGUAS; do 6924 useit=no 6925 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 6926 desiredlanguages="$LINGUAS" 6927 else 6928 desiredlanguages="$ALL_LINGUAS" 6929 fi 6930 for desiredlang in $desiredlanguages; do 6931 # Use the presentlang catalog if desiredlang is 6932 # a. equal to presentlang, or 6933 # b. a variant of presentlang (because in this case, 6934 # presentlang can be used as a fallback for messages 6935 # which are not translated in the desiredlang catalog). 6936 case "$desiredlang" in 6937 "$presentlang"*) useit=yes;; 6938 esac 6939 done 6940 if test $useit = yes; then 6941 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 6942 fi 6943 done 6944 LINGUAS=$NEW_LINGUAS 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 6946$as_echo "$LINGUAS" >&6; } 6947 fi 6948 6949 if test -n "$LINGUAS"; then 6950 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 6951 fi 6952 fi 6953 6954 MKINSTALLDIRS= 6955 if test -n "$ac_aux_dir"; then 6956 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 6957 fi 6958 if test -z "$MKINSTALLDIRS"; then 6959 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 6960 fi 6961 6962 6963 test -d po || mkdir po 6964 if test "x$srcdir" != "x."; then 6965 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 6966 posrcprefix="$srcdir/" 6967 else 6968 posrcprefix="../$srcdir/" 6969 fi 6970 else 6971 posrcprefix="../" 6972 fi 6973 rm -f po/POTFILES 6974 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 6975 < $srcdir/po/POTFILES.in > po/POTFILES 6976 6977 6978 if test "X$prefix" = "XNONE"; then 6979 acl_final_prefix="$ac_default_prefix" 6980 else 6981 acl_final_prefix="$prefix" 6982 fi 6983 if test "X$exec_prefix" = "XNONE"; then 6984 acl_final_exec_prefix='${prefix}' 6985 else 6986 acl_final_exec_prefix="$exec_prefix" 6987 fi 6988 acl_save_prefix="$prefix" 6989 prefix="$acl_final_prefix" 6990 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 6991 prefix="$acl_save_prefix" 6992 6993 6994# Check whether --with-gnu-ld was given. 6995if test "${with_gnu_ld+set}" = set; then : 6996 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6997else 6998 with_gnu_ld=no 6999fi 7000 7001# Prepare PATH_SEPARATOR. 7002# The user is always right. 7003if test "${PATH_SEPARATOR+set}" != set; then 7004 echo "#! /bin/sh" >conf$$.sh 7005 echo "exit 0" >>conf$$.sh 7006 chmod +x conf$$.sh 7007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7008 PATH_SEPARATOR=';' 7009 else 7010 PATH_SEPARATOR=: 7011 fi 7012 rm -f conf$$.sh 7013fi 7014ac_prog=ld 7015if test "$GCC" = yes; then 7016 # Check if gcc -print-prog-name=ld gives a path. 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 7018$as_echo_n "checking for ld used by GCC... " >&6; } 7019 case $host in 7020 *-*-mingw*) 7021 # gcc leaves a trailing carriage return which upsets mingw 7022 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7023 *) 7024 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7025 esac 7026 case $ac_prog in 7027 # Accept absolute paths. 7028 [\\/]* | [A-Za-z]:[\\/]*) 7029 re_direlt='/[^/][^/]*/\.\./' 7030 # Canonicalize the path of ld 7031 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 7032 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7033 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 7034 done 7035 test -z "$LD" && LD="$ac_prog" 7036 ;; 7037 "") 7038 # If it fails, then pretend we aren't using GCC. 7039 ac_prog=ld 7040 ;; 7041 *) 7042 # If it is relative, then search for the first ld in PATH. 7043 with_gnu_ld=unknown 7044 ;; 7045 esac 7046elif test "$with_gnu_ld" = yes; then 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7048$as_echo_n "checking for GNU ld... " >&6; } 7049else 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7051$as_echo_n "checking for non-GNU ld... " >&6; } 7052fi 7053if ${acl_cv_path_LD+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 if test -z "$LD"; then 7057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 7058 for ac_dir in $PATH; do 7059 test -z "$ac_dir" && ac_dir=. 7060 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7061 acl_cv_path_LD="$ac_dir/$ac_prog" 7062 # Check to see if the program is GNU ld. I'd rather use --version, 7063 # but apparently some GNU ld's only accept -v. 7064 # Break only if it was the GNU/non-GNU ld that we prefer. 7065 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 7066 *GNU* | *'with BFD'*) 7067 test "$with_gnu_ld" != no && break ;; 7068 *) 7069 test "$with_gnu_ld" != yes && break ;; 7070 esac 7071 fi 7072 done 7073 IFS="$ac_save_ifs" 7074else 7075 acl_cv_path_LD="$LD" # Let the user override the test with a path. 7076fi 7077fi 7078 7079LD="$acl_cv_path_LD" 7080if test -n "$LD"; then 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7082$as_echo "$LD" >&6; } 7083else 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7085$as_echo "no" >&6; } 7086fi 7087test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7089$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7090if ${acl_cv_prog_gnu_ld+:} false; then : 7091 $as_echo_n "(cached) " >&6 7092else 7093 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7094case `$LD -v 2>&1 </dev/null` in 7095*GNU* | *'with BFD'*) 7096 acl_cv_prog_gnu_ld=yes ;; 7097*) 7098 acl_cv_prog_gnu_ld=no ;; 7099esac 7100fi 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 7102$as_echo "$acl_cv_prog_gnu_ld" >&6; } 7103with_gnu_ld=$acl_cv_prog_gnu_ld 7104 7105 7106 7107 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 7109$as_echo_n "checking for shared library run path origin... " >&6; } 7110if ${acl_cv_rpath+:} false; then : 7111 $as_echo_n "(cached) " >&6 7112else 7113 7114 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 7115 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 7116 . ./conftest.sh 7117 rm -f ./conftest.sh 7118 acl_cv_rpath=done 7119 7120fi 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 7122$as_echo "$acl_cv_rpath" >&6; } 7123 wl="$acl_cv_wl" 7124 acl_libext="$acl_cv_libext" 7125 acl_shlibext="$acl_cv_shlibext" 7126 acl_libname_spec="$acl_cv_libname_spec" 7127 acl_library_names_spec="$acl_cv_library_names_spec" 7128 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 7129 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 7130 acl_hardcode_direct="$acl_cv_hardcode_direct" 7131 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 7132 # Check whether --enable-rpath was given. 7133if test "${enable_rpath+set}" = set; then : 7134 enableval=$enable_rpath; : 7135else 7136 enable_rpath=yes 7137fi 7138 7139 7140 7141 7142 acl_libdirstem=lib 7143 acl_libdirstem2= 7144 case "$host_os" in 7145 solaris*) 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 7147$as_echo_n "checking for 64-bit host... " >&6; } 7148if ${gl_cv_solaris_64bit+:} false; then : 7149 $as_echo_n "(cached) " >&6 7150else 7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7152/* end confdefs.h. */ 7153 7154#ifdef _LP64 7155sixtyfour bits 7156#endif 7157 7158_ACEOF 7159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7160 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 7161 gl_cv_solaris_64bit=yes 7162else 7163 gl_cv_solaris_64bit=no 7164fi 7165rm -f conftest* 7166 7167 7168fi 7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 7170$as_echo "$gl_cv_solaris_64bit" >&6; } 7171 if test $gl_cv_solaris_64bit = yes; then 7172 acl_libdirstem=lib/64 7173 case "$host_cpu" in 7174 sparc*) acl_libdirstem2=lib/sparcv9 ;; 7175 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 7176 esac 7177 fi 7178 ;; 7179 *) 7180 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 7181 if test -n "$searchpath"; then 7182 acl_save_IFS="${IFS= }"; IFS=":" 7183 for searchdir in $searchpath; do 7184 if test -d "$searchdir"; then 7185 case "$searchdir" in 7186 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 7187 */../ | */.. ) 7188 # Better ignore directories of this form. They are misleading. 7189 ;; 7190 *) searchdir=`cd "$searchdir" && pwd` 7191 case "$searchdir" in 7192 */lib64 ) acl_libdirstem=lib64 ;; 7193 esac ;; 7194 esac 7195 fi 7196 done 7197 IFS="$acl_save_IFS" 7198 fi 7199 ;; 7200 esac 7201 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 use_additional=yes 7215 7216 acl_save_prefix="$prefix" 7217 prefix="$acl_final_prefix" 7218 acl_save_exec_prefix="$exec_prefix" 7219 exec_prefix="$acl_final_exec_prefix" 7220 7221 eval additional_includedir=\"$includedir\" 7222 eval additional_libdir=\"$libdir\" 7223 7224 exec_prefix="$acl_save_exec_prefix" 7225 prefix="$acl_save_prefix" 7226 7227 7228# Check whether --with-libiconv-prefix was given. 7229if test "${with_libiconv_prefix+set}" = set; then : 7230 withval=$with_libiconv_prefix; 7231 if test "X$withval" = "Xno"; then 7232 use_additional=no 7233 else 7234 if test "X$withval" = "X"; then 7235 7236 acl_save_prefix="$prefix" 7237 prefix="$acl_final_prefix" 7238 acl_save_exec_prefix="$exec_prefix" 7239 exec_prefix="$acl_final_exec_prefix" 7240 7241 eval additional_includedir=\"$includedir\" 7242 eval additional_libdir=\"$libdir\" 7243 7244 exec_prefix="$acl_save_exec_prefix" 7245 prefix="$acl_save_prefix" 7246 7247 else 7248 additional_includedir="$withval/include" 7249 additional_libdir="$withval/$acl_libdirstem" 7250 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 7251 && ! test -d "$withval/$acl_libdirstem"; then 7252 additional_libdir="$withval/$acl_libdirstem2" 7253 fi 7254 fi 7255 fi 7256 7257fi 7258 7259 LIBICONV= 7260 LTLIBICONV= 7261 INCICONV= 7262 LIBICONV_PREFIX= 7263 HAVE_LIBICONV= 7264 rpathdirs= 7265 ltrpathdirs= 7266 names_already_handled= 7267 names_next_round='iconv ' 7268 while test -n "$names_next_round"; do 7269 names_this_round="$names_next_round" 7270 names_next_round= 7271 for name in $names_this_round; do 7272 already_handled= 7273 for n in $names_already_handled; do 7274 if test "$n" = "$name"; then 7275 already_handled=yes 7276 break 7277 fi 7278 done 7279 if test -z "$already_handled"; then 7280 names_already_handled="$names_already_handled $name" 7281 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7282 eval value=\"\$HAVE_LIB$uppername\" 7283 if test -n "$value"; then 7284 if test "$value" = yes; then 7285 eval value=\"\$LIB$uppername\" 7286 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 7287 eval value=\"\$LTLIB$uppername\" 7288 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 7289 else 7290 : 7291 fi 7292 else 7293 found_dir= 7294 found_la= 7295 found_so= 7296 found_a= 7297 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 7298 if test -n "$acl_shlibext"; then 7299 shrext=".$acl_shlibext" # typically: shrext=.so 7300 else 7301 shrext= 7302 fi 7303 if test $use_additional = yes; then 7304 dir="$additional_libdir" 7305 if test -n "$acl_shlibext"; then 7306 if test -f "$dir/$libname$shrext"; then 7307 found_dir="$dir" 7308 found_so="$dir/$libname$shrext" 7309 else 7310 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 7311 ver=`(cd "$dir" && \ 7312 for f in "$libname$shrext".*; do echo "$f"; done \ 7313 | sed -e "s,^$libname$shrext\\\\.,," \ 7314 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 7315 | sed 1q ) 2>/dev/null` 7316 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 7317 found_dir="$dir" 7318 found_so="$dir/$libname$shrext.$ver" 7319 fi 7320 else 7321 eval library_names=\"$acl_library_names_spec\" 7322 for f in $library_names; do 7323 if test -f "$dir/$f"; then 7324 found_dir="$dir" 7325 found_so="$dir/$f" 7326 break 7327 fi 7328 done 7329 fi 7330 fi 7331 fi 7332 if test "X$found_dir" = "X"; then 7333 if test -f "$dir/$libname.$acl_libext"; then 7334 found_dir="$dir" 7335 found_a="$dir/$libname.$acl_libext" 7336 fi 7337 fi 7338 if test "X$found_dir" != "X"; then 7339 if test -f "$dir/$libname.la"; then 7340 found_la="$dir/$libname.la" 7341 fi 7342 fi 7343 fi 7344 if test "X$found_dir" = "X"; then 7345 for x in $LDFLAGS $LTLIBICONV; do 7346 7347 acl_save_prefix="$prefix" 7348 prefix="$acl_final_prefix" 7349 acl_save_exec_prefix="$exec_prefix" 7350 exec_prefix="$acl_final_exec_prefix" 7351 eval x=\"$x\" 7352 exec_prefix="$acl_save_exec_prefix" 7353 prefix="$acl_save_prefix" 7354 7355 case "$x" in 7356 -L*) 7357 dir=`echo "X$x" | sed -e 's/^X-L//'` 7358 if test -n "$acl_shlibext"; then 7359 if test -f "$dir/$libname$shrext"; then 7360 found_dir="$dir" 7361 found_so="$dir/$libname$shrext" 7362 else 7363 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 7364 ver=`(cd "$dir" && \ 7365 for f in "$libname$shrext".*; do echo "$f"; done \ 7366 | sed -e "s,^$libname$shrext\\\\.,," \ 7367 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 7368 | sed 1q ) 2>/dev/null` 7369 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 7370 found_dir="$dir" 7371 found_so="$dir/$libname$shrext.$ver" 7372 fi 7373 else 7374 eval library_names=\"$acl_library_names_spec\" 7375 for f in $library_names; do 7376 if test -f "$dir/$f"; then 7377 found_dir="$dir" 7378 found_so="$dir/$f" 7379 break 7380 fi 7381 done 7382 fi 7383 fi 7384 fi 7385 if test "X$found_dir" = "X"; then 7386 if test -f "$dir/$libname.$acl_libext"; then 7387 found_dir="$dir" 7388 found_a="$dir/$libname.$acl_libext" 7389 fi 7390 fi 7391 if test "X$found_dir" != "X"; then 7392 if test -f "$dir/$libname.la"; then 7393 found_la="$dir/$libname.la" 7394 fi 7395 fi 7396 ;; 7397 esac 7398 if test "X$found_dir" != "X"; then 7399 break 7400 fi 7401 done 7402 fi 7403 if test "X$found_dir" != "X"; then 7404 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 7405 if test "X$found_so" != "X"; then 7406 if test "$enable_rpath" = no \ 7407 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 7408 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 7409 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7410 else 7411 haveit= 7412 for x in $ltrpathdirs; do 7413 if test "X$x" = "X$found_dir"; then 7414 haveit=yes 7415 break 7416 fi 7417 done 7418 if test -z "$haveit"; then 7419 ltrpathdirs="$ltrpathdirs $found_dir" 7420 fi 7421 if test "$acl_hardcode_direct" = yes; then 7422 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7423 else 7424 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 7425 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7426 haveit= 7427 for x in $rpathdirs; do 7428 if test "X$x" = "X$found_dir"; then 7429 haveit=yes 7430 break 7431 fi 7432 done 7433 if test -z "$haveit"; then 7434 rpathdirs="$rpathdirs $found_dir" 7435 fi 7436 else 7437 haveit= 7438 for x in $LDFLAGS $LIBICONV; do 7439 7440 acl_save_prefix="$prefix" 7441 prefix="$acl_final_prefix" 7442 acl_save_exec_prefix="$exec_prefix" 7443 exec_prefix="$acl_final_exec_prefix" 7444 eval x=\"$x\" 7445 exec_prefix="$acl_save_exec_prefix" 7446 prefix="$acl_save_prefix" 7447 7448 if test "X$x" = "X-L$found_dir"; then 7449 haveit=yes 7450 break 7451 fi 7452 done 7453 if test -z "$haveit"; then 7454 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 7455 fi 7456 if test "$acl_hardcode_minus_L" != no; then 7457 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7458 else 7459 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7460 fi 7461 fi 7462 fi 7463 fi 7464 else 7465 if test "X$found_a" != "X"; then 7466 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 7467 else 7468 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 7469 fi 7470 fi 7471 additional_includedir= 7472 case "$found_dir" in 7473 */$acl_libdirstem | */$acl_libdirstem/) 7474 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 7475 if test "$name" = 'iconv'; then 7476 LIBICONV_PREFIX="$basedir" 7477 fi 7478 additional_includedir="$basedir/include" 7479 ;; 7480 */$acl_libdirstem2 | */$acl_libdirstem2/) 7481 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 7482 if test "$name" = 'iconv'; then 7483 LIBICONV_PREFIX="$basedir" 7484 fi 7485 additional_includedir="$basedir/include" 7486 ;; 7487 esac 7488 if test "X$additional_includedir" != "X"; then 7489 if test "X$additional_includedir" != "X/usr/include"; then 7490 haveit= 7491 if test "X$additional_includedir" = "X/usr/local/include"; then 7492 if test -n "$GCC"; then 7493 case $host_os in 7494 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7495 esac 7496 fi 7497 fi 7498 if test -z "$haveit"; then 7499 for x in $CPPFLAGS $INCICONV; do 7500 7501 acl_save_prefix="$prefix" 7502 prefix="$acl_final_prefix" 7503 acl_save_exec_prefix="$exec_prefix" 7504 exec_prefix="$acl_final_exec_prefix" 7505 eval x=\"$x\" 7506 exec_prefix="$acl_save_exec_prefix" 7507 prefix="$acl_save_prefix" 7508 7509 if test "X$x" = "X-I$additional_includedir"; then 7510 haveit=yes 7511 break 7512 fi 7513 done 7514 if test -z "$haveit"; then 7515 if test -d "$additional_includedir"; then 7516 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 7517 fi 7518 fi 7519 fi 7520 fi 7521 fi 7522 if test -n "$found_la"; then 7523 save_libdir="$libdir" 7524 case "$found_la" in 7525 */* | *\\*) . "$found_la" ;; 7526 *) . "./$found_la" ;; 7527 esac 7528 libdir="$save_libdir" 7529 for dep in $dependency_libs; do 7530 case "$dep" in 7531 -L*) 7532 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7533 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 7534 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 7535 haveit= 7536 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 7537 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 7538 if test -n "$GCC"; then 7539 case $host_os in 7540 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 7541 esac 7542 fi 7543 fi 7544 if test -z "$haveit"; then 7545 haveit= 7546 for x in $LDFLAGS $LIBICONV; do 7547 7548 acl_save_prefix="$prefix" 7549 prefix="$acl_final_prefix" 7550 acl_save_exec_prefix="$exec_prefix" 7551 exec_prefix="$acl_final_exec_prefix" 7552 eval x=\"$x\" 7553 exec_prefix="$acl_save_exec_prefix" 7554 prefix="$acl_save_prefix" 7555 7556 if test "X$x" = "X-L$additional_libdir"; then 7557 haveit=yes 7558 break 7559 fi 7560 done 7561 if test -z "$haveit"; then 7562 if test -d "$additional_libdir"; then 7563 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 7564 fi 7565 fi 7566 haveit= 7567 for x in $LDFLAGS $LTLIBICONV; do 7568 7569 acl_save_prefix="$prefix" 7570 prefix="$acl_final_prefix" 7571 acl_save_exec_prefix="$exec_prefix" 7572 exec_prefix="$acl_final_exec_prefix" 7573 eval x=\"$x\" 7574 exec_prefix="$acl_save_exec_prefix" 7575 prefix="$acl_save_prefix" 7576 7577 if test "X$x" = "X-L$additional_libdir"; then 7578 haveit=yes 7579 break 7580 fi 7581 done 7582 if test -z "$haveit"; then 7583 if test -d "$additional_libdir"; then 7584 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 7585 fi 7586 fi 7587 fi 7588 fi 7589 ;; 7590 -R*) 7591 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7592 if test "$enable_rpath" != no; then 7593 haveit= 7594 for x in $rpathdirs; do 7595 if test "X$x" = "X$dir"; then 7596 haveit=yes 7597 break 7598 fi 7599 done 7600 if test -z "$haveit"; then 7601 rpathdirs="$rpathdirs $dir" 7602 fi 7603 haveit= 7604 for x in $ltrpathdirs; do 7605 if test "X$x" = "X$dir"; then 7606 haveit=yes 7607 break 7608 fi 7609 done 7610 if test -z "$haveit"; then 7611 ltrpathdirs="$ltrpathdirs $dir" 7612 fi 7613 fi 7614 ;; 7615 -l*) 7616 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7617 ;; 7618 *.la) 7619 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7620 ;; 7621 *) 7622 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 7623 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 7624 ;; 7625 esac 7626 done 7627 fi 7628 else 7629 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7630 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 7631 fi 7632 fi 7633 fi 7634 done 7635 done 7636 if test "X$rpathdirs" != "X"; then 7637 if test -n "$acl_hardcode_libdir_separator"; then 7638 alldirs= 7639 for found_dir in $rpathdirs; do 7640 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 7641 done 7642 acl_save_libdir="$libdir" 7643 libdir="$alldirs" 7644 eval flag=\"$acl_hardcode_libdir_flag_spec\" 7645 libdir="$acl_save_libdir" 7646 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7647 else 7648 for found_dir in $rpathdirs; do 7649 acl_save_libdir="$libdir" 7650 libdir="$found_dir" 7651 eval flag=\"$acl_hardcode_libdir_flag_spec\" 7652 libdir="$acl_save_libdir" 7653 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7654 done 7655 fi 7656 fi 7657 if test "X$ltrpathdirs" != "X"; then 7658 for found_dir in $ltrpathdirs; do 7659 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 7660 done 7661 fi 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 am_save_CPPFLAGS="$CPPFLAGS" 7675 7676 for element in $INCICONV; do 7677 haveit= 7678 for x in $CPPFLAGS; do 7679 7680 acl_save_prefix="$prefix" 7681 prefix="$acl_final_prefix" 7682 acl_save_exec_prefix="$exec_prefix" 7683 exec_prefix="$acl_final_exec_prefix" 7684 eval x=\"$x\" 7685 exec_prefix="$acl_save_exec_prefix" 7686 prefix="$acl_save_prefix" 7687 7688 if test "X$x" = "X$element"; then 7689 haveit=yes 7690 break 7691 fi 7692 done 7693 if test -z "$haveit"; then 7694 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7695 fi 7696 done 7697 7698 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 7700$as_echo_n "checking for iconv... " >&6; } 7701if ${am_cv_func_iconv+:} false; then : 7702 $as_echo_n "(cached) " >&6 7703else 7704 7705 am_cv_func_iconv="no, consider installing GNU libiconv" 7706 am_cv_lib_iconv=no 7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7708/* end confdefs.h. */ 7709#include <stdlib.h> 7710#include <iconv.h> 7711int 7712main () 7713{ 7714iconv_t cd = iconv_open("",""); 7715 iconv(cd,NULL,NULL,NULL,NULL); 7716 iconv_close(cd); 7717 ; 7718 return 0; 7719} 7720_ACEOF 7721if ac_fn_c_try_link "$LINENO"; then : 7722 am_cv_func_iconv=yes 7723fi 7724rm -f core conftest.err conftest.$ac_objext \ 7725 conftest$ac_exeext conftest.$ac_ext 7726 if test "$am_cv_func_iconv" != yes; then 7727 am_save_LIBS="$LIBS" 7728 LIBS="$LIBS $LIBICONV" 7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7730/* end confdefs.h. */ 7731#include <stdlib.h> 7732#include <iconv.h> 7733int 7734main () 7735{ 7736iconv_t cd = iconv_open("",""); 7737 iconv(cd,NULL,NULL,NULL,NULL); 7738 iconv_close(cd); 7739 ; 7740 return 0; 7741} 7742_ACEOF 7743if ac_fn_c_try_link "$LINENO"; then : 7744 am_cv_lib_iconv=yes 7745 am_cv_func_iconv=yes 7746fi 7747rm -f core conftest.err conftest.$ac_objext \ 7748 conftest$ac_exeext conftest.$ac_ext 7749 LIBS="$am_save_LIBS" 7750 fi 7751 7752fi 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 7754$as_echo "$am_cv_func_iconv" >&6; } 7755 if test "$am_cv_func_iconv" = yes; then 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 7757$as_echo_n "checking for working iconv... " >&6; } 7758if ${am_cv_func_iconv_works+:} false; then : 7759 $as_echo_n "(cached) " >&6 7760else 7761 7762 am_save_LIBS="$LIBS" 7763 if test $am_cv_lib_iconv = yes; then 7764 LIBS="$LIBS $LIBICONV" 7765 fi 7766 if test "$cross_compiling" = yes; then : 7767 case "$host_os" in 7768 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 7769 *) am_cv_func_iconv_works="guessing yes" ;; 7770 esac 7771else 7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7773/* end confdefs.h. */ 7774 7775#include <iconv.h> 7776#include <string.h> 7777int main () 7778{ 7779 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 7780 returns. */ 7781 { 7782 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 7783 if (cd_utf8_to_88591 != (iconv_t)(-1)) 7784 { 7785 static const char input[] = "\342\202\254"; /* EURO SIGN */ 7786 char buf[10]; 7787 const char *inptr = input; 7788 size_t inbytesleft = strlen (input); 7789 char *outptr = buf; 7790 size_t outbytesleft = sizeof (buf); 7791 size_t res = iconv (cd_utf8_to_88591, 7792 (char **) &inptr, &inbytesleft, 7793 &outptr, &outbytesleft); 7794 if (res == 0) 7795 return 1; 7796 } 7797 } 7798 /* Test against Solaris 10 bug: Failures are not distinguishable from 7799 successful returns. */ 7800 { 7801 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 7802 if (cd_ascii_to_88591 != (iconv_t)(-1)) 7803 { 7804 static const char input[] = "\263"; 7805 char buf[10]; 7806 const char *inptr = input; 7807 size_t inbytesleft = strlen (input); 7808 char *outptr = buf; 7809 size_t outbytesleft = sizeof (buf); 7810 size_t res = iconv (cd_ascii_to_88591, 7811 (char **) &inptr, &inbytesleft, 7812 &outptr, &outbytesleft); 7813 if (res == 0) 7814 return 1; 7815 } 7816 } 7817#if 0 /* This bug could be worked around by the caller. */ 7818 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 7819 { 7820 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 7821 if (cd_88591_to_utf8 != (iconv_t)(-1)) 7822 { 7823 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 7824 char buf[50]; 7825 const char *inptr = input; 7826 size_t inbytesleft = strlen (input); 7827 char *outptr = buf; 7828 size_t outbytesleft = sizeof (buf); 7829 size_t res = iconv (cd_88591_to_utf8, 7830 (char **) &inptr, &inbytesleft, 7831 &outptr, &outbytesleft); 7832 if ((int)res > 0) 7833 return 1; 7834 } 7835 } 7836#endif 7837 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 7838 provided. */ 7839 if (/* Try standardized names. */ 7840 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 7841 /* Try IRIX, OSF/1 names. */ 7842 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 7843 /* Try AIX names. */ 7844 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 7845 /* Try HP-UX names. */ 7846 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 7847 return 1; 7848 return 0; 7849} 7850_ACEOF 7851if ac_fn_c_try_run "$LINENO"; then : 7852 am_cv_func_iconv_works=yes 7853else 7854 am_cv_func_iconv_works=no 7855fi 7856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7857 conftest.$ac_objext conftest.beam conftest.$ac_ext 7858fi 7859 7860 LIBS="$am_save_LIBS" 7861 7862fi 7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 7864$as_echo "$am_cv_func_iconv_works" >&6; } 7865 case "$am_cv_func_iconv_works" in 7866 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 7867 *) am_func_iconv=yes ;; 7868 esac 7869 else 7870 am_func_iconv=no am_cv_lib_iconv=no 7871 fi 7872 if test "$am_func_iconv" = yes; then 7873 7874$as_echo "#define HAVE_ICONV 1" >>confdefs.h 7875 7876 fi 7877 if test "$am_cv_lib_iconv" = yes; then 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 7879$as_echo_n "checking how to link with libiconv... " >&6; } 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 7881$as_echo "$LIBICONV" >&6; } 7882 else 7883 CPPFLAGS="$am_save_CPPFLAGS" 7884 LIBICONV= 7885 LTLIBICONV= 7886 fi 7887 7888 7889 7890 if test "$am_cv_func_iconv" = yes; then 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 7892$as_echo_n "checking for iconv declaration... " >&6; } 7893 if ${am_cv_proto_iconv+:} false; then : 7894 $as_echo_n "(cached) " >&6 7895else 7896 7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7898/* end confdefs.h. */ 7899 7900#include <stdlib.h> 7901#include <iconv.h> 7902extern 7903#ifdef __cplusplus 7904"C" 7905#endif 7906#if defined(__STDC__) || defined(__cplusplus) 7907size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 7908#else 7909size_t iconv(); 7910#endif 7911 7912int 7913main () 7914{ 7915 7916 ; 7917 return 0; 7918} 7919_ACEOF 7920if ac_fn_c_try_compile "$LINENO"; then : 7921 am_cv_proto_iconv_arg1="" 7922else 7923 am_cv_proto_iconv_arg1="const" 7924fi 7925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7926 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 7927fi 7928 7929 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 7931 $am_cv_proto_iconv" >&5 7932$as_echo " 7933 $am_cv_proto_iconv" >&6; } 7934 7935cat >>confdefs.h <<_ACEOF 7936#define ICONV_CONST $am_cv_proto_iconv_arg1 7937_ACEOF 7938 7939 fi 7940 7941 7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if building on NetBSD" >&5 7943$as_echo_n "checking if building on NetBSD... " >&6; } 7944 7945if test `uname -s` = "NetBSD" ; then 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7947$as_echo "yes" >&6; } 7948 CPPFLAGS="$CFLAGS -I/usr/pkg/include/" 7949 LDFLAGS="$LDFLAGS -L/usr/pkg/lib/" 7950else 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7952$as_echo "no" >&6; } 7953fi 7954 7955enable_win32_dll=yes 7956 7957case $host in 7958*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7959 if test -n "$ac_tool_prefix"; then 7960 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7961set dummy ${ac_tool_prefix}as; ac_word=$2 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7963$as_echo_n "checking for $ac_word... " >&6; } 7964if ${ac_cv_prog_AS+:} false; then : 7965 $as_echo_n "(cached) " >&6 7966else 7967 if test -n "$AS"; then 7968 ac_cv_prog_AS="$AS" # Let the user override the test. 7969else 7970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7971for as_dir in $PATH 7972do 7973 IFS=$as_save_IFS 7974 test -z "$as_dir" && as_dir=. 7975 for ac_exec_ext in '' $ac_executable_extensions; do 7976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7977 ac_cv_prog_AS="${ac_tool_prefix}as" 7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7979 break 2 7980 fi 7981done 7982 done 7983IFS=$as_save_IFS 7984 7985fi 7986fi 7987AS=$ac_cv_prog_AS 7988if test -n "$AS"; then 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7990$as_echo "$AS" >&6; } 7991else 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7993$as_echo "no" >&6; } 7994fi 7995 7996 7997fi 7998if test -z "$ac_cv_prog_AS"; then 7999 ac_ct_AS=$AS 8000 # Extract the first word of "as", so it can be a program name with args. 8001set dummy as; ac_word=$2 8002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8003$as_echo_n "checking for $ac_word... " >&6; } 8004if ${ac_cv_prog_ac_ct_AS+:} false; then : 8005 $as_echo_n "(cached) " >&6 8006else 8007 if test -n "$ac_ct_AS"; then 8008 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8009else 8010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8011for as_dir in $PATH 8012do 8013 IFS=$as_save_IFS 8014 test -z "$as_dir" && as_dir=. 8015 for ac_exec_ext in '' $ac_executable_extensions; do 8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8017 ac_cv_prog_ac_ct_AS="as" 8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8019 break 2 8020 fi 8021done 8022 done 8023IFS=$as_save_IFS 8024 8025fi 8026fi 8027ac_ct_AS=$ac_cv_prog_ac_ct_AS 8028if test -n "$ac_ct_AS"; then 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8030$as_echo "$ac_ct_AS" >&6; } 8031else 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8033$as_echo "no" >&6; } 8034fi 8035 8036 if test "x$ac_ct_AS" = x; then 8037 AS="false" 8038 else 8039 case $cross_compiling:$ac_tool_warned in 8040yes:) 8041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8043ac_tool_warned=yes ;; 8044esac 8045 AS=$ac_ct_AS 8046 fi 8047else 8048 AS="$ac_cv_prog_AS" 8049fi 8050 8051 if test -n "$ac_tool_prefix"; then 8052 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8053set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8055$as_echo_n "checking for $ac_word... " >&6; } 8056if ${ac_cv_prog_DLLTOOL+:} false; then : 8057 $as_echo_n "(cached) " >&6 8058else 8059 if test -n "$DLLTOOL"; then 8060 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8061else 8062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8063for as_dir in $PATH 8064do 8065 IFS=$as_save_IFS 8066 test -z "$as_dir" && as_dir=. 8067 for ac_exec_ext in '' $ac_executable_extensions; do 8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8069 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8071 break 2 8072 fi 8073done 8074 done 8075IFS=$as_save_IFS 8076 8077fi 8078fi 8079DLLTOOL=$ac_cv_prog_DLLTOOL 8080if test -n "$DLLTOOL"; then 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8082$as_echo "$DLLTOOL" >&6; } 8083else 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8085$as_echo "no" >&6; } 8086fi 8087 8088 8089fi 8090if test -z "$ac_cv_prog_DLLTOOL"; then 8091 ac_ct_DLLTOOL=$DLLTOOL 8092 # Extract the first word of "dlltool", so it can be a program name with args. 8093set dummy dlltool; ac_word=$2 8094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8095$as_echo_n "checking for $ac_word... " >&6; } 8096if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8097 $as_echo_n "(cached) " >&6 8098else 8099 if test -n "$ac_ct_DLLTOOL"; then 8100 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8101else 8102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8103for as_dir in $PATH 8104do 8105 IFS=$as_save_IFS 8106 test -z "$as_dir" && as_dir=. 8107 for ac_exec_ext in '' $ac_executable_extensions; do 8108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8109 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8111 break 2 8112 fi 8113done 8114 done 8115IFS=$as_save_IFS 8116 8117fi 8118fi 8119ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8120if test -n "$ac_ct_DLLTOOL"; then 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8122$as_echo "$ac_ct_DLLTOOL" >&6; } 8123else 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8125$as_echo "no" >&6; } 8126fi 8127 8128 if test "x$ac_ct_DLLTOOL" = x; then 8129 DLLTOOL="false" 8130 else 8131 case $cross_compiling:$ac_tool_warned in 8132yes:) 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8135ac_tool_warned=yes ;; 8136esac 8137 DLLTOOL=$ac_ct_DLLTOOL 8138 fi 8139else 8140 DLLTOOL="$ac_cv_prog_DLLTOOL" 8141fi 8142 8143 if test -n "$ac_tool_prefix"; then 8144 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8145set dummy ${ac_tool_prefix}objdump; ac_word=$2 8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8147$as_echo_n "checking for $ac_word... " >&6; } 8148if ${ac_cv_prog_OBJDUMP+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150else 8151 if test -n "$OBJDUMP"; then 8152 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8153else 8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8155for as_dir in $PATH 8156do 8157 IFS=$as_save_IFS 8158 test -z "$as_dir" && as_dir=. 8159 for ac_exec_ext in '' $ac_executable_extensions; do 8160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8161 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8163 break 2 8164 fi 8165done 8166 done 8167IFS=$as_save_IFS 8168 8169fi 8170fi 8171OBJDUMP=$ac_cv_prog_OBJDUMP 8172if test -n "$OBJDUMP"; then 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8174$as_echo "$OBJDUMP" >&6; } 8175else 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8177$as_echo "no" >&6; } 8178fi 8179 8180 8181fi 8182if test -z "$ac_cv_prog_OBJDUMP"; then 8183 ac_ct_OBJDUMP=$OBJDUMP 8184 # Extract the first word of "objdump", so it can be a program name with args. 8185set dummy objdump; ac_word=$2 8186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8187$as_echo_n "checking for $ac_word... " >&6; } 8188if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8189 $as_echo_n "(cached) " >&6 8190else 8191 if test -n "$ac_ct_OBJDUMP"; then 8192 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8193else 8194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8195for as_dir in $PATH 8196do 8197 IFS=$as_save_IFS 8198 test -z "$as_dir" && as_dir=. 8199 for ac_exec_ext in '' $ac_executable_extensions; do 8200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8201 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8203 break 2 8204 fi 8205done 8206 done 8207IFS=$as_save_IFS 8208 8209fi 8210fi 8211ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8212if test -n "$ac_ct_OBJDUMP"; then 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8214$as_echo "$ac_ct_OBJDUMP" >&6; } 8215else 8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8217$as_echo "no" >&6; } 8218fi 8219 8220 if test "x$ac_ct_OBJDUMP" = x; then 8221 OBJDUMP="false" 8222 else 8223 case $cross_compiling:$ac_tool_warned in 8224yes:) 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8227ac_tool_warned=yes ;; 8228esac 8229 OBJDUMP=$ac_ct_OBJDUMP 8230 fi 8231else 8232 OBJDUMP="$ac_cv_prog_OBJDUMP" 8233fi 8234 8235 ;; 8236esac 8237 8238test -z "$AS" && AS=as 8239 8240 8241 8242 8243 8244test -z "$DLLTOOL" && DLLTOOL=dlltool 8245 8246 8247 8248 8249 8250test -z "$OBJDUMP" && OBJDUMP=objdump 8251 8252 8253 8254 8255 8256 8257 8258 8259case `pwd` in 8260 *\ * | *\ *) 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8262$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8263esac 8264 8265 8266 8267macro_version='2.4' 8268macro_revision='1.3293' 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282ltmain="$ac_aux_dir/ltmain.sh" 8283 8284# Backslashify metacharacters that are still active within 8285# double-quoted strings. 8286sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8287 8288# Same as above, but do not quote variable references. 8289double_quote_subst='s/\(["`\\]\)/\\\1/g' 8290 8291# Sed substitution to delay expansion of an escaped shell variable in a 8292# double_quote_subst'ed string. 8293delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8294 8295# Sed substitution to delay expansion of an escaped single quote. 8296delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8297 8298# Sed substitution to avoid accidental globbing in evaled expressions 8299no_glob_subst='s/\*/\\\*/g' 8300 8301ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8302ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8303ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8304 8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8306$as_echo_n "checking how to print strings... " >&6; } 8307# Test print first, because it will be a builtin if present. 8308if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8309 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8310 ECHO='print -r --' 8311elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8312 ECHO='printf %s\n' 8313else 8314 # Use this function as a fallback that always works. 8315 func_fallback_echo () 8316 { 8317 eval 'cat <<_LTECHO_EOF 8318$1 8319_LTECHO_EOF' 8320 } 8321 ECHO='func_fallback_echo' 8322fi 8323 8324# func_echo_all arg... 8325# Invoke $ECHO with all args, space-separated. 8326func_echo_all () 8327{ 8328 $ECHO "" 8329} 8330 8331case "$ECHO" in 8332 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8333$as_echo "printf" >&6; } ;; 8334 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8335$as_echo "print -r" >&6; } ;; 8336 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8337$as_echo "cat" >&6; } ;; 8338esac 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8354$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8355if ${ac_cv_path_SED+:} false; then : 8356 $as_echo_n "(cached) " >&6 8357else 8358 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8359 for ac_i in 1 2 3 4 5 6 7; do 8360 ac_script="$ac_script$as_nl$ac_script" 8361 done 8362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8363 { ac_script=; unset ac_script;} 8364 if test -z "$SED"; then 8365 ac_path_SED_found=false 8366 # Loop through the user's path and test for each of PROGNAME-LIST 8367 as_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_prog in sed gsed; do 8373 for ac_exec_ext in '' $ac_executable_extensions; do 8374 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8375 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 8376# Check for GNU ac_path_SED and select it if it is found. 8377 # Check for GNU $ac_path_SED 8378case `"$ac_path_SED" --version 2>&1` in 8379*GNU*) 8380 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8381*) 8382 ac_count=0 8383 $as_echo_n 0123456789 >"conftest.in" 8384 while : 8385 do 8386 cat "conftest.in" "conftest.in" >"conftest.tmp" 8387 mv "conftest.tmp" "conftest.in" 8388 cp "conftest.in" "conftest.nl" 8389 $as_echo '' >> "conftest.nl" 8390 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8392 as_fn_arith $ac_count + 1 && ac_count=$as_val 8393 if test $ac_count -gt ${ac_path_SED_max-0}; then 8394 # Best one so far, save it but keep looking for a better one 8395 ac_cv_path_SED="$ac_path_SED" 8396 ac_path_SED_max=$ac_count 8397 fi 8398 # 10*(2^10) chars as input seems more than enough 8399 test $ac_count -gt 10 && break 8400 done 8401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8402esac 8403 8404 $ac_path_SED_found && break 3 8405 done 8406 done 8407 done 8408IFS=$as_save_IFS 8409 if test -z "$ac_cv_path_SED"; then 8410 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8411 fi 8412else 8413 ac_cv_path_SED=$SED 8414fi 8415 8416fi 8417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8418$as_echo "$ac_cv_path_SED" >&6; } 8419 SED="$ac_cv_path_SED" 8420 rm -f conftest.sed 8421 8422test -z "$SED" && SED=sed 8423Xsed="$SED -e 1s/^X//" 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8436$as_echo_n "checking for fgrep... " >&6; } 8437if ${ac_cv_path_FGREP+:} false; then : 8438 $as_echo_n "(cached) " >&6 8439else 8440 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8441 then ac_cv_path_FGREP="$GREP -F" 8442 else 8443 if test -z "$FGREP"; then 8444 ac_path_FGREP_found=false 8445 # Loop through the user's path and test for each of PROGNAME-LIST 8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8448do 8449 IFS=$as_save_IFS 8450 test -z "$as_dir" && as_dir=. 8451 for ac_prog in fgrep; do 8452 for ac_exec_ext in '' $ac_executable_extensions; do 8453 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 8454 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 8455# Check for GNU ac_path_FGREP and select it if it is found. 8456 # Check for GNU $ac_path_FGREP 8457case `"$ac_path_FGREP" --version 2>&1` in 8458*GNU*) 8459 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8460*) 8461 ac_count=0 8462 $as_echo_n 0123456789 >"conftest.in" 8463 while : 8464 do 8465 cat "conftest.in" "conftest.in" >"conftest.tmp" 8466 mv "conftest.tmp" "conftest.in" 8467 cp "conftest.in" "conftest.nl" 8468 $as_echo 'FGREP' >> "conftest.nl" 8469 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8471 as_fn_arith $ac_count + 1 && ac_count=$as_val 8472 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8473 # Best one so far, save it but keep looking for a better one 8474 ac_cv_path_FGREP="$ac_path_FGREP" 8475 ac_path_FGREP_max=$ac_count 8476 fi 8477 # 10*(2^10) chars as input seems more than enough 8478 test $ac_count -gt 10 && break 8479 done 8480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8481esac 8482 8483 $ac_path_FGREP_found && break 3 8484 done 8485 done 8486 done 8487IFS=$as_save_IFS 8488 if test -z "$ac_cv_path_FGREP"; then 8489 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8490 fi 8491else 8492 ac_cv_path_FGREP=$FGREP 8493fi 8494 8495 fi 8496fi 8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8498$as_echo "$ac_cv_path_FGREP" >&6; } 8499 FGREP="$ac_cv_path_FGREP" 8500 8501 8502test -z "$GREP" && GREP=grep 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522# Check whether --with-gnu-ld was given. 8523if test "${with_gnu_ld+set}" = set; then : 8524 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8525else 8526 with_gnu_ld=no 8527fi 8528 8529ac_prog=ld 8530if test "$GCC" = yes; then 8531 # Check if gcc -print-prog-name=ld gives a path. 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8533$as_echo_n "checking for ld used by $CC... " >&6; } 8534 case $host in 8535 *-*-mingw*) 8536 # gcc leaves a trailing carriage return which upsets mingw 8537 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8538 *) 8539 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8540 esac 8541 case $ac_prog in 8542 # Accept absolute paths. 8543 [\\/]* | ?:[\\/]*) 8544 re_direlt='/[^/][^/]*/\.\./' 8545 # Canonicalize the pathname of ld 8546 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8547 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8548 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8549 done 8550 test -z "$LD" && LD="$ac_prog" 8551 ;; 8552 "") 8553 # If it fails, then pretend we aren't using GCC. 8554 ac_prog=ld 8555 ;; 8556 *) 8557 # If it is relative, then search for the first ld in PATH. 8558 with_gnu_ld=unknown 8559 ;; 8560 esac 8561elif test "$with_gnu_ld" = yes; then 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8563$as_echo_n "checking for GNU ld... " >&6; } 8564else 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8566$as_echo_n "checking for non-GNU ld... " >&6; } 8567fi 8568if ${lt_cv_path_LD+:} false; then : 8569 $as_echo_n "(cached) " >&6 8570else 8571 if test -z "$LD"; then 8572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8573 for ac_dir in $PATH; do 8574 IFS="$lt_save_ifs" 8575 test -z "$ac_dir" && ac_dir=. 8576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8577 lt_cv_path_LD="$ac_dir/$ac_prog" 8578 # Check to see if the program is GNU ld. I'd rather use --version, 8579 # but apparently some variants of GNU ld only accept -v. 8580 # Break only if it was the GNU/non-GNU ld that we prefer. 8581 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8582 *GNU* | *'with BFD'*) 8583 test "$with_gnu_ld" != no && break 8584 ;; 8585 *) 8586 test "$with_gnu_ld" != yes && break 8587 ;; 8588 esac 8589 fi 8590 done 8591 IFS="$lt_save_ifs" 8592else 8593 lt_cv_path_LD="$LD" # Let the user override the test with a path. 8594fi 8595fi 8596 8597LD="$lt_cv_path_LD" 8598if test -n "$LD"; then 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8600$as_echo "$LD" >&6; } 8601else 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8603$as_echo "no" >&6; } 8604fi 8605test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8607$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8608if ${lt_cv_prog_gnu_ld+:} false; then : 8609 $as_echo_n "(cached) " >&6 8610else 8611 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8612case `$LD -v 2>&1 </dev/null` in 8613*GNU* | *'with BFD'*) 8614 lt_cv_prog_gnu_ld=yes 8615 ;; 8616*) 8617 lt_cv_prog_gnu_ld=no 8618 ;; 8619esac 8620fi 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8622$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8623with_gnu_ld=$lt_cv_prog_gnu_ld 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8634$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8635if ${lt_cv_path_NM+:} false; then : 8636 $as_echo_n "(cached) " >&6 8637else 8638 if test -n "$NM"; then 8639 # Let the user override the test. 8640 lt_cv_path_NM="$NM" 8641else 8642 lt_nm_to_check="${ac_tool_prefix}nm" 8643 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8644 lt_nm_to_check="$lt_nm_to_check nm" 8645 fi 8646 for lt_tmp_nm in $lt_nm_to_check; do 8647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8648 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8649 IFS="$lt_save_ifs" 8650 test -z "$ac_dir" && ac_dir=. 8651 tmp_nm="$ac_dir/$lt_tmp_nm" 8652 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 8653 # Check to see if the nm accepts a BSD-compat flag. 8654 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 8655 # nm: unknown option "B" ignored 8656 # Tru64's nm complains that /dev/null is an invalid object file 8657 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 8658 */dev/null* | *'Invalid file or object type'*) 8659 lt_cv_path_NM="$tmp_nm -B" 8660 break 8661 ;; 8662 *) 8663 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8664 */dev/null*) 8665 lt_cv_path_NM="$tmp_nm -p" 8666 break 8667 ;; 8668 *) 8669 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8670 continue # so that we can try to find one that supports BSD flags 8671 ;; 8672 esac 8673 ;; 8674 esac 8675 fi 8676 done 8677 IFS="$lt_save_ifs" 8678 done 8679 : ${lt_cv_path_NM=no} 8680fi 8681fi 8682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8683$as_echo "$lt_cv_path_NM" >&6; } 8684if test "$lt_cv_path_NM" != "no"; then 8685 NM="$lt_cv_path_NM" 8686else 8687 # Didn't find any BSD compatible name lister, look for dumpbin. 8688 if test -n "$DUMPBIN"; then : 8689 # Let the user override the test. 8690 else 8691 if test -n "$ac_tool_prefix"; then 8692 for ac_prog in dumpbin "link -dump" 8693 do 8694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8695set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8697$as_echo_n "checking for $ac_word... " >&6; } 8698if ${ac_cv_prog_DUMPBIN+:} false; then : 8699 $as_echo_n "(cached) " >&6 8700else 8701 if test -n "$DUMPBIN"; then 8702 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8703else 8704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8705for as_dir in $PATH 8706do 8707 IFS=$as_save_IFS 8708 test -z "$as_dir" && as_dir=. 8709 for ac_exec_ext in '' $ac_executable_extensions; do 8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8711 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8713 break 2 8714 fi 8715done 8716 done 8717IFS=$as_save_IFS 8718 8719fi 8720fi 8721DUMPBIN=$ac_cv_prog_DUMPBIN 8722if test -n "$DUMPBIN"; then 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8724$as_echo "$DUMPBIN" >&6; } 8725else 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8727$as_echo "no" >&6; } 8728fi 8729 8730 8731 test -n "$DUMPBIN" && break 8732 done 8733fi 8734if test -z "$DUMPBIN"; then 8735 ac_ct_DUMPBIN=$DUMPBIN 8736 for ac_prog in dumpbin "link -dump" 8737do 8738 # Extract the first word of "$ac_prog", so it can be a program name with args. 8739set dummy $ac_prog; ac_word=$2 8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8741$as_echo_n "checking for $ac_word... " >&6; } 8742if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 8743 $as_echo_n "(cached) " >&6 8744else 8745 if test -n "$ac_ct_DUMPBIN"; then 8746 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8747else 8748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8749for as_dir in $PATH 8750do 8751 IFS=$as_save_IFS 8752 test -z "$as_dir" && as_dir=. 8753 for ac_exec_ext in '' $ac_executable_extensions; do 8754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8755 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8757 break 2 8758 fi 8759done 8760 done 8761IFS=$as_save_IFS 8762 8763fi 8764fi 8765ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8766if test -n "$ac_ct_DUMPBIN"; then 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8768$as_echo "$ac_ct_DUMPBIN" >&6; } 8769else 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8771$as_echo "no" >&6; } 8772fi 8773 8774 8775 test -n "$ac_ct_DUMPBIN" && break 8776done 8777 8778 if test "x$ac_ct_DUMPBIN" = x; then 8779 DUMPBIN=":" 8780 else 8781 case $cross_compiling:$ac_tool_warned in 8782yes:) 8783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8785ac_tool_warned=yes ;; 8786esac 8787 DUMPBIN=$ac_ct_DUMPBIN 8788 fi 8789fi 8790 8791 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 8792 *COFF*) 8793 DUMPBIN="$DUMPBIN -symbols" 8794 ;; 8795 *) 8796 DUMPBIN=: 8797 ;; 8798 esac 8799 fi 8800 8801 if test "$DUMPBIN" != ":"; then 8802 NM="$DUMPBIN" 8803 fi 8804fi 8805test -z "$NM" && NM=nm 8806 8807 8808 8809 8810 8811 8812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8813$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8814if ${lt_cv_nm_interface+:} false; then : 8815 $as_echo_n "(cached) " >&6 8816else 8817 lt_cv_nm_interface="BSD nm" 8818 echo "int some_variable = 0;" > conftest.$ac_ext 8819 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8820 (eval "$ac_compile" 2>conftest.err) 8821 cat conftest.err >&5 8822 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8823 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8824 cat conftest.err >&5 8825 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8826 cat conftest.out >&5 8827 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8828 lt_cv_nm_interface="MS dumpbin" 8829 fi 8830 rm -f conftest* 8831fi 8832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8833$as_echo "$lt_cv_nm_interface" >&6; } 8834 8835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8836$as_echo_n "checking whether ln -s works... " >&6; } 8837LN_S=$as_ln_s 8838if test "$LN_S" = "ln -s"; then 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8840$as_echo "yes" >&6; } 8841else 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8843$as_echo "no, using $LN_S" >&6; } 8844fi 8845 8846# find the maximum length of command line arguments 8847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8848$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8849if ${lt_cv_sys_max_cmd_len+:} false; then : 8850 $as_echo_n "(cached) " >&6 8851else 8852 i=0 8853 teststring="ABCD" 8854 8855 case $build_os in 8856 msdosdjgpp*) 8857 # On DJGPP, this test can blow up pretty badly due to problems in libc 8858 # (any single argument exceeding 2000 bytes causes a buffer overrun 8859 # during glob expansion). Even if it were fixed, the result of this 8860 # check would be larger than it should be. 8861 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8862 ;; 8863 8864 gnu*) 8865 # Under GNU Hurd, this test is not required because there is 8866 # no limit to the length of command line arguments. 8867 # Libtool will interpret -1 as no limit whatsoever 8868 lt_cv_sys_max_cmd_len=-1; 8869 ;; 8870 8871 cygwin* | mingw* | cegcc*) 8872 # On Win9x/ME, this test blows up -- it succeeds, but takes 8873 # about 5 minutes as the teststring grows exponentially. 8874 # Worse, since 9x/ME are not pre-emptively multitasking, 8875 # you end up with a "frozen" computer, even though with patience 8876 # the test eventually succeeds (with a max line length of 256k). 8877 # Instead, let's just punt: use the minimum linelength reported by 8878 # all of the supported platforms: 8192 (on NT/2K/XP). 8879 lt_cv_sys_max_cmd_len=8192; 8880 ;; 8881 8882 mint*) 8883 # On MiNT this can take a long time and run out of memory. 8884 lt_cv_sys_max_cmd_len=8192; 8885 ;; 8886 8887 amigaos*) 8888 # On AmigaOS with pdksh, this test takes hours, literally. 8889 # So we just punt and use a minimum line length of 8192. 8890 lt_cv_sys_max_cmd_len=8192; 8891 ;; 8892 8893 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 8894 # This has been around since 386BSD, at least. Likely further. 8895 if test -x /sbin/sysctl; then 8896 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8897 elif test -x /usr/sbin/sysctl; then 8898 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8899 else 8900 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8901 fi 8902 # And add a safety zone 8903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8905 ;; 8906 8907 interix*) 8908 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8909 lt_cv_sys_max_cmd_len=196608 8910 ;; 8911 8912 osf*) 8913 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8914 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8915 # nice to cause kernel panics so lets avoid the loop below. 8916 # First set a reasonable default. 8917 lt_cv_sys_max_cmd_len=16384 8918 # 8919 if test -x /sbin/sysconfig; then 8920 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8921 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8922 esac 8923 fi 8924 ;; 8925 sco3.2v5*) 8926 lt_cv_sys_max_cmd_len=102400 8927 ;; 8928 sysv5* | sco5v6* | sysv4.2uw2*) 8929 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8930 if test -n "$kargmax"; then 8931 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8932 else 8933 lt_cv_sys_max_cmd_len=32768 8934 fi 8935 ;; 8936 *) 8937 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8938 if test -n "$lt_cv_sys_max_cmd_len"; then 8939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8941 else 8942 # Make teststring a little bigger before we do anything with it. 8943 # a 1K string should be a reasonable start. 8944 for i in 1 2 3 4 5 6 7 8 ; do 8945 teststring=$teststring$teststring 8946 done 8947 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8948 # If test is not a shell built-in, we'll probably end up computing a 8949 # maximum length that is only half of the actual maximum length, but 8950 # we can't tell. 8951 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 8952 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8953 test $i != 17 # 1/2 MB should be enough 8954 do 8955 i=`expr $i + 1` 8956 teststring=$teststring$teststring 8957 done 8958 # Only check the string length outside the loop. 8959 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8960 teststring= 8961 # Add a significant safety factor because C++ compilers can tack on 8962 # massive amounts of additional arguments before passing them to the 8963 # linker. It appears as though 1/2 is a usable value. 8964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8965 fi 8966 ;; 8967 esac 8968 8969fi 8970 8971if test -n $lt_cv_sys_max_cmd_len ; then 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8973$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8974else 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8976$as_echo "none" >&6; } 8977fi 8978max_cmd_len=$lt_cv_sys_max_cmd_len 8979 8980 8981 8982 8983 8984 8985: ${CP="cp -f"} 8986: ${MV="mv -f"} 8987: ${RM="rm -f"} 8988 8989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 8990$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 8991# Try some XSI features 8992xsi_shell=no 8993( _lt_dummy="a/b/c" 8994 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 8995 = c,a/b,b/c, \ 8996 && eval 'test $(( 1 + 1 )) -eq 2 \ 8997 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 8998 && xsi_shell=yes 8999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 9000$as_echo "$xsi_shell" >&6; } 9001 9002 9003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 9004$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 9005lt_shell_append=no 9006( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 9007 >/dev/null 2>&1 \ 9008 && lt_shell_append=yes 9009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 9010$as_echo "$lt_shell_append" >&6; } 9011 9012 9013if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9014 lt_unset=unset 9015else 9016 lt_unset=false 9017fi 9018 9019 9020 9021 9022 9023# test EBCDIC or ASCII 9024case `echo X|tr X '\101'` in 9025 A) # ASCII based system 9026 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9027 lt_SP2NL='tr \040 \012' 9028 lt_NL2SP='tr \015\012 \040\040' 9029 ;; 9030 *) # EBCDIC based system 9031 lt_SP2NL='tr \100 \n' 9032 lt_NL2SP='tr \r\n \100\100' 9033 ;; 9034esac 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 9045$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 9046if ${lt_cv_to_host_file_cmd+:} false; then : 9047 $as_echo_n "(cached) " >&6 9048else 9049 case $host in 9050 *-*-mingw* ) 9051 case $build in 9052 *-*-mingw* ) # actually msys 9053 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9054 ;; 9055 *-*-cygwin* ) 9056 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9057 ;; 9058 * ) # otherwise, assume *nix 9059 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9060 ;; 9061 esac 9062 ;; 9063 *-*-cygwin* ) 9064 case $build in 9065 *-*-mingw* ) # actually msys 9066 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9067 ;; 9068 *-*-cygwin* ) 9069 lt_cv_to_host_file_cmd=func_convert_file_noop 9070 ;; 9071 * ) # otherwise, assume *nix 9072 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9073 ;; 9074 esac 9075 ;; 9076 * ) # unhandled hosts (and "normal" native builds) 9077 lt_cv_to_host_file_cmd=func_convert_file_noop 9078 ;; 9079esac 9080 9081fi 9082 9083to_host_file_cmd=$lt_cv_to_host_file_cmd 9084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9085$as_echo "$lt_cv_to_host_file_cmd" >&6; } 9086 9087 9088 9089 9090 9091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9092$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 9093if ${lt_cv_to_tool_file_cmd+:} false; then : 9094 $as_echo_n "(cached) " >&6 9095else 9096 #assume ordinary cross tools, or native build. 9097lt_cv_to_tool_file_cmd=func_convert_file_noop 9098case $host in 9099 *-*-mingw* ) 9100 case $build in 9101 *-*-mingw* ) # actually msys 9102 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9103 ;; 9104 esac 9105 ;; 9106esac 9107 9108fi 9109 9110to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9112$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 9113 9114 9115 9116 9117 9118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9119$as_echo_n "checking for $LD option to reload object files... " >&6; } 9120if ${lt_cv_ld_reload_flag+:} false; then : 9121 $as_echo_n "(cached) " >&6 9122else 9123 lt_cv_ld_reload_flag='-r' 9124fi 9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9126$as_echo "$lt_cv_ld_reload_flag" >&6; } 9127reload_flag=$lt_cv_ld_reload_flag 9128case $reload_flag in 9129"" | " "*) ;; 9130*) reload_flag=" $reload_flag" ;; 9131esac 9132reload_cmds='$LD$reload_flag -o $output$reload_objs' 9133case $host_os in 9134 cygwin* | mingw* | pw32* | cegcc*) 9135 if test "$GCC" != yes; then 9136 reload_cmds=false 9137 fi 9138 ;; 9139 darwin*) 9140 if test "$GCC" = yes; then 9141 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 9142 else 9143 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9144 fi 9145 ;; 9146esac 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156if test -n "$ac_tool_prefix"; then 9157 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9158set dummy ${ac_tool_prefix}objdump; ac_word=$2 9159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9160$as_echo_n "checking for $ac_word... " >&6; } 9161if ${ac_cv_prog_OBJDUMP+:} false; then : 9162 $as_echo_n "(cached) " >&6 9163else 9164 if test -n "$OBJDUMP"; then 9165 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9166else 9167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9168for as_dir in $PATH 9169do 9170 IFS=$as_save_IFS 9171 test -z "$as_dir" && as_dir=. 9172 for ac_exec_ext in '' $ac_executable_extensions; do 9173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9174 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9176 break 2 9177 fi 9178done 9179 done 9180IFS=$as_save_IFS 9181 9182fi 9183fi 9184OBJDUMP=$ac_cv_prog_OBJDUMP 9185if test -n "$OBJDUMP"; then 9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9187$as_echo "$OBJDUMP" >&6; } 9188else 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9190$as_echo "no" >&6; } 9191fi 9192 9193 9194fi 9195if test -z "$ac_cv_prog_OBJDUMP"; then 9196 ac_ct_OBJDUMP=$OBJDUMP 9197 # Extract the first word of "objdump", so it can be a program name with args. 9198set dummy objdump; ac_word=$2 9199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9200$as_echo_n "checking for $ac_word... " >&6; } 9201if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9202 $as_echo_n "(cached) " >&6 9203else 9204 if test -n "$ac_ct_OBJDUMP"; then 9205 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9206else 9207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9208for as_dir in $PATH 9209do 9210 IFS=$as_save_IFS 9211 test -z "$as_dir" && as_dir=. 9212 for ac_exec_ext in '' $ac_executable_extensions; do 9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9214 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9216 break 2 9217 fi 9218done 9219 done 9220IFS=$as_save_IFS 9221 9222fi 9223fi 9224ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9225if test -n "$ac_ct_OBJDUMP"; then 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9227$as_echo "$ac_ct_OBJDUMP" >&6; } 9228else 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9230$as_echo "no" >&6; } 9231fi 9232 9233 if test "x$ac_ct_OBJDUMP" = x; then 9234 OBJDUMP="false" 9235 else 9236 case $cross_compiling:$ac_tool_warned in 9237yes:) 9238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9240ac_tool_warned=yes ;; 9241esac 9242 OBJDUMP=$ac_ct_OBJDUMP 9243 fi 9244else 9245 OBJDUMP="$ac_cv_prog_OBJDUMP" 9246fi 9247 9248test -z "$OBJDUMP" && OBJDUMP=objdump 9249 9250 9251 9252 9253 9254 9255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9256$as_echo_n "checking how to recognize dependent libraries... " >&6; } 9257if ${lt_cv_deplibs_check_method+:} false; then : 9258 $as_echo_n "(cached) " >&6 9259else 9260 lt_cv_file_magic_cmd='$MAGIC_CMD' 9261lt_cv_file_magic_test_file= 9262lt_cv_deplibs_check_method='unknown' 9263# Need to set the preceding variable on all platforms that support 9264# interlibrary dependencies. 9265# 'none' -- dependencies not supported. 9266# `unknown' -- same as none, but documents that we really don't know. 9267# 'pass_all' -- all dependencies passed with no checks. 9268# 'test_compile' -- check by making test program. 9269# 'file_magic [[regex]]' -- check by looking for files in library path 9270# which responds to the $file_magic_cmd with a given extended regex. 9271# If you have `file' or equivalent on your system and you're not sure 9272# whether `pass_all' will *always* work, you probably want this one. 9273 9274case $host_os in 9275aix[4-9]*) 9276 lt_cv_deplibs_check_method=pass_all 9277 ;; 9278 9279beos*) 9280 lt_cv_deplibs_check_method=pass_all 9281 ;; 9282 9283bsdi[45]*) 9284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9285 lt_cv_file_magic_cmd='/usr/bin/file -L' 9286 lt_cv_file_magic_test_file=/shlib/libc.so 9287 ;; 9288 9289cygwin*) 9290 # func_win32_libid is a shell function defined in ltmain.sh 9291 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9292 lt_cv_file_magic_cmd='func_win32_libid' 9293 ;; 9294 9295mingw* | pw32*) 9296 # Base MSYS/MinGW do not provide the 'file' command needed by 9297 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9298 # unless we find 'file', for example because we are cross-compiling. 9299 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 9300 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 9301 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9302 lt_cv_file_magic_cmd='func_win32_libid' 9303 else 9304 # Keep this pattern in sync with the one in func_win32_libid. 9305 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9306 lt_cv_file_magic_cmd='$OBJDUMP -f' 9307 fi 9308 ;; 9309 9310cegcc*) 9311 # use the weaker test based on 'objdump'. See mingw*. 9312 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9313 lt_cv_file_magic_cmd='$OBJDUMP -f' 9314 ;; 9315 9316darwin* | rhapsody*) 9317 lt_cv_deplibs_check_method=pass_all 9318 ;; 9319 9320freebsd* | dragonfly*) 9321 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9322 case $host_cpu in 9323 i*86 ) 9324 # Not sure whether the presence of OpenBSD here was a mistake. 9325 # Let's accept both of them until this is cleared up. 9326 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9327 lt_cv_file_magic_cmd=/usr/bin/file 9328 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9329 ;; 9330 esac 9331 else 9332 lt_cv_deplibs_check_method=pass_all 9333 fi 9334 ;; 9335 9336gnu*) 9337 lt_cv_deplibs_check_method=pass_all 9338 ;; 9339 9340haiku*) 9341 lt_cv_deplibs_check_method=pass_all 9342 ;; 9343 9344hpux10.20* | hpux11*) 9345 lt_cv_file_magic_cmd=/usr/bin/file 9346 case $host_cpu in 9347 ia64*) 9348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9349 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9350 ;; 9351 hppa*64*) 9352 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]' 9353 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9354 ;; 9355 *) 9356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9357 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9358 ;; 9359 esac 9360 ;; 9361 9362interix[3-9]*) 9363 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9365 ;; 9366 9367irix5* | irix6* | nonstopux*) 9368 case $LD in 9369 *-32|*"-32 ") libmagic=32-bit;; 9370 *-n32|*"-n32 ") libmagic=N32;; 9371 *-64|*"-64 ") libmagic=64-bit;; 9372 *) libmagic=never-match;; 9373 esac 9374 lt_cv_deplibs_check_method=pass_all 9375 ;; 9376 9377# This must be Linux ELF. 9378linux* | k*bsd*-gnu | kopensolaris*-gnu) 9379 lt_cv_deplibs_check_method=pass_all 9380 ;; 9381 9382netbsd* | netbsdelf*-gnu) 9383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9385 else 9386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9387 fi 9388 ;; 9389 9390newos6*) 9391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9392 lt_cv_file_magic_cmd=/usr/bin/file 9393 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9394 ;; 9395 9396*nto* | *qnx*) 9397 lt_cv_deplibs_check_method=pass_all 9398 ;; 9399 9400openbsd*) 9401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9403 else 9404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9405 fi 9406 ;; 9407 9408osf3* | osf4* | osf5*) 9409 lt_cv_deplibs_check_method=pass_all 9410 ;; 9411 9412rdos*) 9413 lt_cv_deplibs_check_method=pass_all 9414 ;; 9415 9416solaris*) 9417 lt_cv_deplibs_check_method=pass_all 9418 ;; 9419 9420sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9421 lt_cv_deplibs_check_method=pass_all 9422 ;; 9423 9424sysv4 | sysv4.3*) 9425 case $host_vendor in 9426 motorola) 9427 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]' 9428 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9429 ;; 9430 ncr) 9431 lt_cv_deplibs_check_method=pass_all 9432 ;; 9433 sequent) 9434 lt_cv_file_magic_cmd='/bin/file' 9435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9436 ;; 9437 sni) 9438 lt_cv_file_magic_cmd='/bin/file' 9439 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9440 lt_cv_file_magic_test_file=/lib/libc.so 9441 ;; 9442 siemens) 9443 lt_cv_deplibs_check_method=pass_all 9444 ;; 9445 pc) 9446 lt_cv_deplibs_check_method=pass_all 9447 ;; 9448 esac 9449 ;; 9450 9451tpf*) 9452 lt_cv_deplibs_check_method=pass_all 9453 ;; 9454esac 9455 9456fi 9457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9458$as_echo "$lt_cv_deplibs_check_method" >&6; } 9459 9460file_magic_glob= 9461want_nocaseglob=no 9462if test "$build" = "$host"; then 9463 case $host_os in 9464 mingw* | pw32*) 9465 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9466 want_nocaseglob=yes 9467 else 9468 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9469 fi 9470 ;; 9471 esac 9472fi 9473 9474file_magic_cmd=$lt_cv_file_magic_cmd 9475deplibs_check_method=$lt_cv_deplibs_check_method 9476test -z "$deplibs_check_method" && deplibs_check_method=unknown 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499if test -n "$ac_tool_prefix"; then 9500 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9501set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9503$as_echo_n "checking for $ac_word... " >&6; } 9504if ${ac_cv_prog_DLLTOOL+:} false; then : 9505 $as_echo_n "(cached) " >&6 9506else 9507 if test -n "$DLLTOOL"; then 9508 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9509else 9510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9511for as_dir in $PATH 9512do 9513 IFS=$as_save_IFS 9514 test -z "$as_dir" && as_dir=. 9515 for ac_exec_ext in '' $ac_executable_extensions; do 9516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9517 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9519 break 2 9520 fi 9521done 9522 done 9523IFS=$as_save_IFS 9524 9525fi 9526fi 9527DLLTOOL=$ac_cv_prog_DLLTOOL 9528if test -n "$DLLTOOL"; then 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9530$as_echo "$DLLTOOL" >&6; } 9531else 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9533$as_echo "no" >&6; } 9534fi 9535 9536 9537fi 9538if test -z "$ac_cv_prog_DLLTOOL"; then 9539 ac_ct_DLLTOOL=$DLLTOOL 9540 # Extract the first word of "dlltool", so it can be a program name with args. 9541set dummy dlltool; ac_word=$2 9542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9543$as_echo_n "checking for $ac_word... " >&6; } 9544if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9545 $as_echo_n "(cached) " >&6 9546else 9547 if test -n "$ac_ct_DLLTOOL"; then 9548 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9549else 9550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9551for as_dir in $PATH 9552do 9553 IFS=$as_save_IFS 9554 test -z "$as_dir" && as_dir=. 9555 for ac_exec_ext in '' $ac_executable_extensions; do 9556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9557 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9559 break 2 9560 fi 9561done 9562 done 9563IFS=$as_save_IFS 9564 9565fi 9566fi 9567ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9568if test -n "$ac_ct_DLLTOOL"; then 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9570$as_echo "$ac_ct_DLLTOOL" >&6; } 9571else 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9573$as_echo "no" >&6; } 9574fi 9575 9576 if test "x$ac_ct_DLLTOOL" = x; then 9577 DLLTOOL="false" 9578 else 9579 case $cross_compiling:$ac_tool_warned in 9580yes:) 9581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9583ac_tool_warned=yes ;; 9584esac 9585 DLLTOOL=$ac_ct_DLLTOOL 9586 fi 9587else 9588 DLLTOOL="$ac_cv_prog_DLLTOOL" 9589fi 9590 9591test -z "$DLLTOOL" && DLLTOOL=dlltool 9592 9593 9594 9595 9596 9597 9598 9599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9600$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 9601if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 9602 $as_echo_n "(cached) " >&6 9603else 9604 lt_cv_sharedlib_from_linklib_cmd='unknown' 9605 9606case $host_os in 9607cygwin* | mingw* | pw32* | cegcc*) 9608 # two different shell functions defined in ltmain.sh 9609 # decide which to use based on capabilities of $DLLTOOL 9610 case `$DLLTOOL --help 2>&1` in 9611 *--identify-strict*) 9612 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9613 ;; 9614 *) 9615 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9616 ;; 9617 esac 9618 ;; 9619*) 9620 # fallback: assume linklib IS sharedlib 9621 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 9622 ;; 9623esac 9624 9625fi 9626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9627$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9628sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9629test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9630 9631 9632 9633 9634 9635 9636 9637if test -n "$ac_tool_prefix"; then 9638 for ac_prog in ar 9639 do 9640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9641set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9643$as_echo_n "checking for $ac_word... " >&6; } 9644if ${ac_cv_prog_AR+:} false; then : 9645 $as_echo_n "(cached) " >&6 9646else 9647 if test -n "$AR"; then 9648 ac_cv_prog_AR="$AR" # Let the user override the test. 9649else 9650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9651for as_dir in $PATH 9652do 9653 IFS=$as_save_IFS 9654 test -z "$as_dir" && as_dir=. 9655 for ac_exec_ext in '' $ac_executable_extensions; do 9656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9657 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9659 break 2 9660 fi 9661done 9662 done 9663IFS=$as_save_IFS 9664 9665fi 9666fi 9667AR=$ac_cv_prog_AR 9668if test -n "$AR"; then 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9670$as_echo "$AR" >&6; } 9671else 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9673$as_echo "no" >&6; } 9674fi 9675 9676 9677 test -n "$AR" && break 9678 done 9679fi 9680if test -z "$AR"; then 9681 ac_ct_AR=$AR 9682 for ac_prog in ar 9683do 9684 # Extract the first word of "$ac_prog", so it can be a program name with args. 9685set dummy $ac_prog; ac_word=$2 9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9687$as_echo_n "checking for $ac_word... " >&6; } 9688if ${ac_cv_prog_ac_ct_AR+:} false; then : 9689 $as_echo_n "(cached) " >&6 9690else 9691 if test -n "$ac_ct_AR"; then 9692 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9693else 9694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9695for as_dir in $PATH 9696do 9697 IFS=$as_save_IFS 9698 test -z "$as_dir" && as_dir=. 9699 for ac_exec_ext in '' $ac_executable_extensions; do 9700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9701 ac_cv_prog_ac_ct_AR="$ac_prog" 9702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9703 break 2 9704 fi 9705done 9706 done 9707IFS=$as_save_IFS 9708 9709fi 9710fi 9711ac_ct_AR=$ac_cv_prog_ac_ct_AR 9712if test -n "$ac_ct_AR"; then 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9714$as_echo "$ac_ct_AR" >&6; } 9715else 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9717$as_echo "no" >&6; } 9718fi 9719 9720 9721 test -n "$ac_ct_AR" && break 9722done 9723 9724 if test "x$ac_ct_AR" = x; then 9725 AR="false" 9726 else 9727 case $cross_compiling:$ac_tool_warned in 9728yes:) 9729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9731ac_tool_warned=yes ;; 9732esac 9733 AR=$ac_ct_AR 9734 fi 9735fi 9736 9737: ${AR=ar} 9738: ${AR_FLAGS=cru} 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9751$as_echo_n "checking for archiver @FILE support... " >&6; } 9752if ${lt_cv_ar_at_file+:} false; then : 9753 $as_echo_n "(cached) " >&6 9754else 9755 lt_cv_ar_at_file=no 9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9757/* end confdefs.h. */ 9758 9759int 9760main () 9761{ 9762 9763 ; 9764 return 0; 9765} 9766_ACEOF 9767if ac_fn_c_try_compile "$LINENO"; then : 9768 echo conftest.$ac_objext > conftest.lst 9769 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9771 (eval $lt_ar_try) 2>&5 9772 ac_status=$? 9773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9774 test $ac_status = 0; } 9775 if test "$ac_status" -eq 0; then 9776 # Ensure the archiver fails upon bogus file names. 9777 rm -f conftest.$ac_objext libconftest.a 9778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9779 (eval $lt_ar_try) 2>&5 9780 ac_status=$? 9781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9782 test $ac_status = 0; } 9783 if test "$ac_status" -ne 0; then 9784 lt_cv_ar_at_file=@ 9785 fi 9786 fi 9787 rm -f conftest.* libconftest.a 9788 9789fi 9790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9791 9792fi 9793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9794$as_echo "$lt_cv_ar_at_file" >&6; } 9795 9796if test "x$lt_cv_ar_at_file" = xno; then 9797 archiver_list_spec= 9798else 9799 archiver_list_spec=$lt_cv_ar_at_file 9800fi 9801 9802 9803 9804 9805 9806 9807 9808if test -n "$ac_tool_prefix"; then 9809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9810set dummy ${ac_tool_prefix}strip; ac_word=$2 9811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9812$as_echo_n "checking for $ac_word... " >&6; } 9813if ${ac_cv_prog_STRIP+:} false; then : 9814 $as_echo_n "(cached) " >&6 9815else 9816 if test -n "$STRIP"; then 9817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9818else 9819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9820for as_dir in $PATH 9821do 9822 IFS=$as_save_IFS 9823 test -z "$as_dir" && as_dir=. 9824 for ac_exec_ext in '' $ac_executable_extensions; do 9825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9826 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9828 break 2 9829 fi 9830done 9831 done 9832IFS=$as_save_IFS 9833 9834fi 9835fi 9836STRIP=$ac_cv_prog_STRIP 9837if test -n "$STRIP"; then 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9839$as_echo "$STRIP" >&6; } 9840else 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9842$as_echo "no" >&6; } 9843fi 9844 9845 9846fi 9847if test -z "$ac_cv_prog_STRIP"; then 9848 ac_ct_STRIP=$STRIP 9849 # Extract the first word of "strip", so it can be a program name with args. 9850set dummy strip; ac_word=$2 9851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9852$as_echo_n "checking for $ac_word... " >&6; } 9853if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9854 $as_echo_n "(cached) " >&6 9855else 9856 if test -n "$ac_ct_STRIP"; then 9857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9858else 9859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9860for as_dir in $PATH 9861do 9862 IFS=$as_save_IFS 9863 test -z "$as_dir" && as_dir=. 9864 for ac_exec_ext in '' $ac_executable_extensions; do 9865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9866 ac_cv_prog_ac_ct_STRIP="strip" 9867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9868 break 2 9869 fi 9870done 9871 done 9872IFS=$as_save_IFS 9873 9874fi 9875fi 9876ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9877if test -n "$ac_ct_STRIP"; then 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9879$as_echo "$ac_ct_STRIP" >&6; } 9880else 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9882$as_echo "no" >&6; } 9883fi 9884 9885 if test "x$ac_ct_STRIP" = x; then 9886 STRIP=":" 9887 else 9888 case $cross_compiling:$ac_tool_warned in 9889yes:) 9890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9892ac_tool_warned=yes ;; 9893esac 9894 STRIP=$ac_ct_STRIP 9895 fi 9896else 9897 STRIP="$ac_cv_prog_STRIP" 9898fi 9899 9900test -z "$STRIP" && STRIP=: 9901 9902 9903 9904 9905 9906 9907if test -n "$ac_tool_prefix"; then 9908 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9909set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9911$as_echo_n "checking for $ac_word... " >&6; } 9912if ${ac_cv_prog_RANLIB+:} false; then : 9913 $as_echo_n "(cached) " >&6 9914else 9915 if test -n "$RANLIB"; then 9916 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9917else 9918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9919for as_dir in $PATH 9920do 9921 IFS=$as_save_IFS 9922 test -z "$as_dir" && as_dir=. 9923 for ac_exec_ext in '' $ac_executable_extensions; do 9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9927 break 2 9928 fi 9929done 9930 done 9931IFS=$as_save_IFS 9932 9933fi 9934fi 9935RANLIB=$ac_cv_prog_RANLIB 9936if test -n "$RANLIB"; then 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9938$as_echo "$RANLIB" >&6; } 9939else 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9941$as_echo "no" >&6; } 9942fi 9943 9944 9945fi 9946if test -z "$ac_cv_prog_RANLIB"; then 9947 ac_ct_RANLIB=$RANLIB 9948 # Extract the first word of "ranlib", so it can be a program name with args. 9949set dummy ranlib; ac_word=$2 9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9951$as_echo_n "checking for $ac_word... " >&6; } 9952if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9953 $as_echo_n "(cached) " >&6 9954else 9955 if test -n "$ac_ct_RANLIB"; then 9956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9957else 9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9959for as_dir in $PATH 9960do 9961 IFS=$as_save_IFS 9962 test -z "$as_dir" && as_dir=. 9963 for ac_exec_ext in '' $ac_executable_extensions; do 9964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9965 ac_cv_prog_ac_ct_RANLIB="ranlib" 9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9967 break 2 9968 fi 9969done 9970 done 9971IFS=$as_save_IFS 9972 9973fi 9974fi 9975ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9976if test -n "$ac_ct_RANLIB"; then 9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9978$as_echo "$ac_ct_RANLIB" >&6; } 9979else 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9981$as_echo "no" >&6; } 9982fi 9983 9984 if test "x$ac_ct_RANLIB" = x; then 9985 RANLIB=":" 9986 else 9987 case $cross_compiling:$ac_tool_warned in 9988yes:) 9989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9991ac_tool_warned=yes ;; 9992esac 9993 RANLIB=$ac_ct_RANLIB 9994 fi 9995else 9996 RANLIB="$ac_cv_prog_RANLIB" 9997fi 9998 9999test -z "$RANLIB" && RANLIB=: 10000 10001 10002 10003 10004 10005 10006# Determine commands to create old-style static archives. 10007old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10008old_postinstall_cmds='chmod 644 $oldlib' 10009old_postuninstall_cmds= 10010 10011if test -n "$RANLIB"; then 10012 case $host_os in 10013 openbsd*) 10014 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 10015 ;; 10016 *) 10017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 10018 ;; 10019 esac 10020 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 10021fi 10022 10023case $host_os in 10024 darwin*) 10025 lock_old_archive_extraction=yes ;; 10026 *) 10027 lock_old_archive_extraction=no ;; 10028esac 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068# If no C compiler was specified, use CC. 10069LTCC=${LTCC-"$CC"} 10070 10071# If no C compiler flags were specified, use CFLAGS. 10072LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10073 10074# Allow CC to be a program name with arguments. 10075compiler=$CC 10076 10077 10078# Check for command to grab the raw symbol name followed by C symbol from nm. 10079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10080$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 10081if ${lt_cv_sys_global_symbol_pipe+:} false; then : 10082 $as_echo_n "(cached) " >&6 10083else 10084 10085# These are sane defaults that work on at least a few old systems. 10086# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10087 10088# Character class describing NM global symbol codes. 10089symcode='[BCDEGRST]' 10090 10091# Regexp to match symbols that can be accessed directly from C. 10092sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10093 10094# Define system-specific variables. 10095case $host_os in 10096aix*) 10097 symcode='[BCDT]' 10098 ;; 10099cygwin* | mingw* | pw32* | cegcc*) 10100 symcode='[ABCDGISTW]' 10101 ;; 10102hpux*) 10103 if test "$host_cpu" = ia64; then 10104 symcode='[ABCDEGRST]' 10105 fi 10106 ;; 10107irix* | nonstopux*) 10108 symcode='[BCDEGRST]' 10109 ;; 10110osf*) 10111 symcode='[BCDEGQRST]' 10112 ;; 10113solaris*) 10114 symcode='[BDRT]' 10115 ;; 10116sco3.2v5*) 10117 symcode='[DT]' 10118 ;; 10119sysv4.2uw2*) 10120 symcode='[DT]' 10121 ;; 10122sysv5* | sco5v6* | unixware* | OpenUNIX*) 10123 symcode='[ABDT]' 10124 ;; 10125sysv4) 10126 symcode='[DFNSTU]' 10127 ;; 10128esac 10129 10130# If we're using GNU nm, then use its standard symbol codes. 10131case `$NM -V 2>&1` in 10132*GNU* | *'with BFD'*) 10133 symcode='[ABCDGIRSTW]' ;; 10134esac 10135 10136# Transform an extracted symbol line into a proper C declaration. 10137# Some systems (esp. on ia64) link data and code symbols differently, 10138# so use this general approach. 10139lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10140 10141# Transform an extracted symbol line into symbol name and symbol address 10142lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 10143lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 10144 10145# Handle CRLF in mingw tool chain 10146opt_cr= 10147case $build_os in 10148mingw*) 10149 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10150 ;; 10151esac 10152 10153# Try without a prefix underscore, then with it. 10154for ac_symprfx in "" "_"; do 10155 10156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10157 symxfrm="\\1 $ac_symprfx\\2 \\2" 10158 10159 # Write the raw and C identifiers. 10160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10161 # Fake it for dumpbin and say T for any non-static function 10162 # and D for any global variable. 10163 # Also find C++ and __fastcall symbols from MSVC++, 10164 # which start with @ or ?. 10165 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10166" {last_section=section; section=\$ 3};"\ 10167" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10168" \$ 0!~/External *\|/{next};"\ 10169" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10170" {if(hide[section]) next};"\ 10171" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 10172" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 10173" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 10174" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 10175" ' prfx=^$ac_symprfx" 10176 else 10177 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10178 fi 10179 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 10180 10181 # Check to see that the pipe works correctly. 10182 pipe_works=no 10183 10184 rm -f conftest* 10185 cat > conftest.$ac_ext <<_LT_EOF 10186#ifdef __cplusplus 10187extern "C" { 10188#endif 10189char nm_test_var; 10190void nm_test_func(void); 10191void nm_test_func(void){} 10192#ifdef __cplusplus 10193} 10194#endif 10195int main(){nm_test_var='a';nm_test_func();return(0);} 10196_LT_EOF 10197 10198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10199 (eval $ac_compile) 2>&5 10200 ac_status=$? 10201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10202 test $ac_status = 0; }; then 10203 # Now try to grab the symbols. 10204 nlist=conftest.nm 10205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 10206 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 10207 ac_status=$? 10208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10209 test $ac_status = 0; } && test -s "$nlist"; then 10210 # Try sorting and uniquifying the output. 10211 if sort "$nlist" | uniq > "$nlist"T; then 10212 mv -f "$nlist"T "$nlist" 10213 else 10214 rm -f "$nlist"T 10215 fi 10216 10217 # Make sure that we snagged all the symbols we need. 10218 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10219 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10220 cat <<_LT_EOF > conftest.$ac_ext 10221/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10222#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 10223/* DATA imports from DLLs on WIN32 con't be const, because runtime 10224 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10225# define LT_DLSYM_CONST 10226#elif defined(__osf__) 10227/* This system does not cope well with relocations in const data. */ 10228# define LT_DLSYM_CONST 10229#else 10230# define LT_DLSYM_CONST const 10231#endif 10232 10233#ifdef __cplusplus 10234extern "C" { 10235#endif 10236 10237_LT_EOF 10238 # Now generate the symbol file. 10239 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10240 10241 cat <<_LT_EOF >> conftest.$ac_ext 10242 10243/* The mapping between symbol names and symbols. */ 10244LT_DLSYM_CONST struct { 10245 const char *name; 10246 void *address; 10247} 10248lt__PROGRAM__LTX_preloaded_symbols[] = 10249{ 10250 { "@PROGRAM@", (void *) 0 }, 10251_LT_EOF 10252 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10253 cat <<\_LT_EOF >> conftest.$ac_ext 10254 {0, (void *) 0} 10255}; 10256 10257/* This works around a problem in FreeBSD linker */ 10258#ifdef FREEBSD_WORKAROUND 10259static const void *lt_preloaded_setup() { 10260 return lt__PROGRAM__LTX_preloaded_symbols; 10261} 10262#endif 10263 10264#ifdef __cplusplus 10265} 10266#endif 10267_LT_EOF 10268 # Now try linking the two files. 10269 mv conftest.$ac_objext conftstm.$ac_objext 10270 lt_globsym_save_LIBS=$LIBS 10271 lt_globsym_save_CFLAGS=$CFLAGS 10272 LIBS="conftstm.$ac_objext" 10273 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10275 (eval $ac_link) 2>&5 10276 ac_status=$? 10277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10278 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 10279 pipe_works=yes 10280 fi 10281 LIBS=$lt_globsym_save_LIBS 10282 CFLAGS=$lt_globsym_save_CFLAGS 10283 else 10284 echo "cannot find nm_test_func in $nlist" >&5 10285 fi 10286 else 10287 echo "cannot find nm_test_var in $nlist" >&5 10288 fi 10289 else 10290 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10291 fi 10292 else 10293 echo "$progname: failed program was:" >&5 10294 cat conftest.$ac_ext >&5 10295 fi 10296 rm -rf conftest* conftst* 10297 10298 # Do not use the global_symbol_pipe unless it works. 10299 if test "$pipe_works" = yes; then 10300 break 10301 else 10302 lt_cv_sys_global_symbol_pipe= 10303 fi 10304done 10305 10306fi 10307 10308if test -z "$lt_cv_sys_global_symbol_pipe"; then 10309 lt_cv_sys_global_symbol_to_cdecl= 10310fi 10311if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10313$as_echo "failed" >&6; } 10314else 10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10316$as_echo "ok" >&6; } 10317fi 10318 10319# Response file support. 10320if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10321 nm_file_list_spec='@' 10322elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10323 nm_file_list_spec='@' 10324fi 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10353$as_echo_n "checking for sysroot... " >&6; } 10354 10355# Check whether --with-sysroot was given. 10356if test "${with_sysroot+set}" = set; then : 10357 withval=$with_sysroot; 10358else 10359 with_sysroot=no 10360fi 10361 10362 10363lt_sysroot= 10364case ${with_sysroot} in #( 10365 yes) 10366 if test "$GCC" = yes; then 10367 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 10368 fi 10369 ;; #( 10370 /*) 10371 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 10372 ;; #( 10373 no|'') 10374 ;; #( 10375 *) 10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 10377$as_echo "${with_sysroot}" >&6; } 10378 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10379 ;; 10380esac 10381 10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10383$as_echo "${lt_sysroot:-no}" >&6; } 10384 10385 10386 10387 10388 10389# Check whether --enable-libtool-lock was given. 10390if test "${enable_libtool_lock+set}" = set; then : 10391 enableval=$enable_libtool_lock; 10392fi 10393 10394test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 10395 10396# Some flags need to be propagated to the compiler or linker for good 10397# libtool support. 10398case $host in 10399ia64-*-hpux*) 10400 # Find out which ABI we are using. 10401 echo 'int i;' > conftest.$ac_ext 10402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10403 (eval $ac_compile) 2>&5 10404 ac_status=$? 10405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10406 test $ac_status = 0; }; then 10407 case `/usr/bin/file conftest.$ac_objext` in 10408 *ELF-32*) 10409 HPUX_IA64_MODE="32" 10410 ;; 10411 *ELF-64*) 10412 HPUX_IA64_MODE="64" 10413 ;; 10414 esac 10415 fi 10416 rm -rf conftest* 10417 ;; 10418*-*-irix6*) 10419 # Find out which ABI we are using. 10420 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10422 (eval $ac_compile) 2>&5 10423 ac_status=$? 10424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10425 test $ac_status = 0; }; then 10426 if test "$lt_cv_prog_gnu_ld" = yes; then 10427 case `/usr/bin/file conftest.$ac_objext` in 10428 *32-bit*) 10429 LD="${LD-ld} -melf32bsmip" 10430 ;; 10431 *N32*) 10432 LD="${LD-ld} -melf32bmipn32" 10433 ;; 10434 *64-bit*) 10435 LD="${LD-ld} -melf64bmip" 10436 ;; 10437 esac 10438 else 10439 case `/usr/bin/file conftest.$ac_objext` in 10440 *32-bit*) 10441 LD="${LD-ld} -32" 10442 ;; 10443 *N32*) 10444 LD="${LD-ld} -n32" 10445 ;; 10446 *64-bit*) 10447 LD="${LD-ld} -64" 10448 ;; 10449 esac 10450 fi 10451 fi 10452 rm -rf conftest* 10453 ;; 10454 10455x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 10456s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10457 # Find out which ABI we are using. 10458 echo 'int i;' > conftest.$ac_ext 10459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10460 (eval $ac_compile) 2>&5 10461 ac_status=$? 10462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10463 test $ac_status = 0; }; then 10464 case `/usr/bin/file conftest.o` in 10465 *32-bit*) 10466 case $host in 10467 x86_64-*kfreebsd*-gnu) 10468 LD="${LD-ld} -m elf_i386_fbsd" 10469 ;; 10470 x86_64-*linux*) 10471 LD="${LD-ld} -m elf_i386" 10472 ;; 10473 ppc64-*linux*|powerpc64-*linux*) 10474 LD="${LD-ld} -m elf32ppclinux" 10475 ;; 10476 s390x-*linux*) 10477 LD="${LD-ld} -m elf_s390" 10478 ;; 10479 sparc64-*linux*) 10480 LD="${LD-ld} -m elf32_sparc" 10481 ;; 10482 esac 10483 ;; 10484 *64-bit*) 10485 case $host in 10486 x86_64-*kfreebsd*-gnu) 10487 LD="${LD-ld} -m elf_x86_64_fbsd" 10488 ;; 10489 x86_64-*linux*) 10490 LD="${LD-ld} -m elf_x86_64" 10491 ;; 10492 ppc*-*linux*|powerpc*-*linux*) 10493 LD="${LD-ld} -m elf64ppc" 10494 ;; 10495 s390*-*linux*|s390*-*tpf*) 10496 LD="${LD-ld} -m elf64_s390" 10497 ;; 10498 sparc*-*linux*) 10499 LD="${LD-ld} -m elf64_sparc" 10500 ;; 10501 esac 10502 ;; 10503 esac 10504 fi 10505 rm -rf conftest* 10506 ;; 10507 10508*-*-sco3.2v5*) 10509 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10510 SAVE_CFLAGS="$CFLAGS" 10511 CFLAGS="$CFLAGS -belf" 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10513$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 10514if ${lt_cv_cc_needs_belf+:} false; then : 10515 $as_echo_n "(cached) " >&6 10516else 10517 ac_ext=c 10518ac_cpp='$CPP $CPPFLAGS' 10519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10521ac_compiler_gnu=$ac_cv_c_compiler_gnu 10522 10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10524/* end confdefs.h. */ 10525 10526int 10527main () 10528{ 10529 10530 ; 10531 return 0; 10532} 10533_ACEOF 10534if ac_fn_c_try_link "$LINENO"; then : 10535 lt_cv_cc_needs_belf=yes 10536else 10537 lt_cv_cc_needs_belf=no 10538fi 10539rm -f core conftest.err conftest.$ac_objext \ 10540 conftest$ac_exeext conftest.$ac_ext 10541 ac_ext=c 10542ac_cpp='$CPP $CPPFLAGS' 10543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10545ac_compiler_gnu=$ac_cv_c_compiler_gnu 10546 10547fi 10548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10549$as_echo "$lt_cv_cc_needs_belf" >&6; } 10550 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 10551 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10552 CFLAGS="$SAVE_CFLAGS" 10553 fi 10554 ;; 10555sparc*-*solaris*) 10556 # Find out which ABI we are using. 10557 echo 'int i;' > conftest.$ac_ext 10558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10559 (eval $ac_compile) 2>&5 10560 ac_status=$? 10561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10562 test $ac_status = 0; }; then 10563 case `/usr/bin/file conftest.o` in 10564 *64-bit*) 10565 case $lt_cv_prog_gnu_ld in 10566 yes*) LD="${LD-ld} -m elf64_sparc" ;; 10567 *) 10568 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10569 LD="${LD-ld} -64" 10570 fi 10571 ;; 10572 esac 10573 ;; 10574 esac 10575 fi 10576 rm -rf conftest* 10577 ;; 10578esac 10579 10580need_locks="$enable_libtool_lock" 10581 10582if test -n "$ac_tool_prefix"; then 10583 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10584set dummy ${ac_tool_prefix}mt; ac_word=$2 10585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10586$as_echo_n "checking for $ac_word... " >&6; } 10587if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 10588 $as_echo_n "(cached) " >&6 10589else 10590 if test -n "$MANIFEST_TOOL"; then 10591 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10592else 10593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10594for as_dir in $PATH 10595do 10596 IFS=$as_save_IFS 10597 test -z "$as_dir" && as_dir=. 10598 for ac_exec_ext in '' $ac_executable_extensions; do 10599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10600 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10602 break 2 10603 fi 10604done 10605 done 10606IFS=$as_save_IFS 10607 10608fi 10609fi 10610MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10611if test -n "$MANIFEST_TOOL"; then 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10613$as_echo "$MANIFEST_TOOL" >&6; } 10614else 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10616$as_echo "no" >&6; } 10617fi 10618 10619 10620fi 10621if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10622 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10623 # Extract the first word of "mt", so it can be a program name with args. 10624set dummy mt; ac_word=$2 10625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10626$as_echo_n "checking for $ac_word... " >&6; } 10627if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10628 $as_echo_n "(cached) " >&6 10629else 10630 if test -n "$ac_ct_MANIFEST_TOOL"; then 10631 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10632else 10633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10634for as_dir in $PATH 10635do 10636 IFS=$as_save_IFS 10637 test -z "$as_dir" && as_dir=. 10638 for ac_exec_ext in '' $ac_executable_extensions; do 10639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10640 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10642 break 2 10643 fi 10644done 10645 done 10646IFS=$as_save_IFS 10647 10648fi 10649fi 10650ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10651if test -n "$ac_ct_MANIFEST_TOOL"; then 10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10653$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10654else 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10656$as_echo "no" >&6; } 10657fi 10658 10659 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10660 MANIFEST_TOOL=":" 10661 else 10662 case $cross_compiling:$ac_tool_warned in 10663yes:) 10664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10666ac_tool_warned=yes ;; 10667esac 10668 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10669 fi 10670else 10671 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10672fi 10673 10674test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10676$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10677if ${lt_cv_path_mainfest_tool+:} false; then : 10678 $as_echo_n "(cached) " >&6 10679else 10680 lt_cv_path_mainfest_tool=no 10681 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10682 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10683 cat conftest.err >&5 10684 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10685 lt_cv_path_mainfest_tool=yes 10686 fi 10687 rm -f conftest* 10688fi 10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10690$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10691if test "x$lt_cv_path_mainfest_tool" != xyes; then 10692 MANIFEST_TOOL=: 10693fi 10694 10695 10696 10697 10698 10699 10700 case $host_os in 10701 rhapsody* | darwin*) 10702 if test -n "$ac_tool_prefix"; then 10703 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10704set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10706$as_echo_n "checking for $ac_word... " >&6; } 10707if ${ac_cv_prog_DSYMUTIL+:} false; then : 10708 $as_echo_n "(cached) " >&6 10709else 10710 if test -n "$DSYMUTIL"; then 10711 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10712else 10713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10714for as_dir in $PATH 10715do 10716 IFS=$as_save_IFS 10717 test -z "$as_dir" && as_dir=. 10718 for ac_exec_ext in '' $ac_executable_extensions; do 10719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10720 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10722 break 2 10723 fi 10724done 10725 done 10726IFS=$as_save_IFS 10727 10728fi 10729fi 10730DSYMUTIL=$ac_cv_prog_DSYMUTIL 10731if test -n "$DSYMUTIL"; then 10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10733$as_echo "$DSYMUTIL" >&6; } 10734else 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10736$as_echo "no" >&6; } 10737fi 10738 10739 10740fi 10741if test -z "$ac_cv_prog_DSYMUTIL"; then 10742 ac_ct_DSYMUTIL=$DSYMUTIL 10743 # Extract the first word of "dsymutil", so it can be a program name with args. 10744set dummy dsymutil; ac_word=$2 10745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10746$as_echo_n "checking for $ac_word... " >&6; } 10747if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10748 $as_echo_n "(cached) " >&6 10749else 10750 if test -n "$ac_ct_DSYMUTIL"; then 10751 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10752else 10753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10754for as_dir in $PATH 10755do 10756 IFS=$as_save_IFS 10757 test -z "$as_dir" && as_dir=. 10758 for ac_exec_ext in '' $ac_executable_extensions; do 10759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10760 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10762 break 2 10763 fi 10764done 10765 done 10766IFS=$as_save_IFS 10767 10768fi 10769fi 10770ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10771if test -n "$ac_ct_DSYMUTIL"; then 10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10773$as_echo "$ac_ct_DSYMUTIL" >&6; } 10774else 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10776$as_echo "no" >&6; } 10777fi 10778 10779 if test "x$ac_ct_DSYMUTIL" = x; then 10780 DSYMUTIL=":" 10781 else 10782 case $cross_compiling:$ac_tool_warned in 10783yes:) 10784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10786ac_tool_warned=yes ;; 10787esac 10788 DSYMUTIL=$ac_ct_DSYMUTIL 10789 fi 10790else 10791 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10792fi 10793 10794 if test -n "$ac_tool_prefix"; then 10795 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10796set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10798$as_echo_n "checking for $ac_word... " >&6; } 10799if ${ac_cv_prog_NMEDIT+:} false; then : 10800 $as_echo_n "(cached) " >&6 10801else 10802 if test -n "$NMEDIT"; then 10803 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10804else 10805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10806for as_dir in $PATH 10807do 10808 IFS=$as_save_IFS 10809 test -z "$as_dir" && as_dir=. 10810 for ac_exec_ext in '' $ac_executable_extensions; do 10811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10812 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10814 break 2 10815 fi 10816done 10817 done 10818IFS=$as_save_IFS 10819 10820fi 10821fi 10822NMEDIT=$ac_cv_prog_NMEDIT 10823if test -n "$NMEDIT"; then 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10825$as_echo "$NMEDIT" >&6; } 10826else 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10828$as_echo "no" >&6; } 10829fi 10830 10831 10832fi 10833if test -z "$ac_cv_prog_NMEDIT"; then 10834 ac_ct_NMEDIT=$NMEDIT 10835 # Extract the first word of "nmedit", so it can be a program name with args. 10836set dummy nmedit; ac_word=$2 10837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10838$as_echo_n "checking for $ac_word... " >&6; } 10839if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10840 $as_echo_n "(cached) " >&6 10841else 10842 if test -n "$ac_ct_NMEDIT"; then 10843 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10844else 10845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10846for as_dir in $PATH 10847do 10848 IFS=$as_save_IFS 10849 test -z "$as_dir" && as_dir=. 10850 for ac_exec_ext in '' $ac_executable_extensions; do 10851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10852 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10854 break 2 10855 fi 10856done 10857 done 10858IFS=$as_save_IFS 10859 10860fi 10861fi 10862ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10863if test -n "$ac_ct_NMEDIT"; then 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10865$as_echo "$ac_ct_NMEDIT" >&6; } 10866else 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10868$as_echo "no" >&6; } 10869fi 10870 10871 if test "x$ac_ct_NMEDIT" = x; then 10872 NMEDIT=":" 10873 else 10874 case $cross_compiling:$ac_tool_warned in 10875yes:) 10876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10878ac_tool_warned=yes ;; 10879esac 10880 NMEDIT=$ac_ct_NMEDIT 10881 fi 10882else 10883 NMEDIT="$ac_cv_prog_NMEDIT" 10884fi 10885 10886 if test -n "$ac_tool_prefix"; then 10887 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10888set dummy ${ac_tool_prefix}lipo; ac_word=$2 10889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10890$as_echo_n "checking for $ac_word... " >&6; } 10891if ${ac_cv_prog_LIPO+:} false; then : 10892 $as_echo_n "(cached) " >&6 10893else 10894 if test -n "$LIPO"; then 10895 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10896else 10897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10898for as_dir in $PATH 10899do 10900 IFS=$as_save_IFS 10901 test -z "$as_dir" && as_dir=. 10902 for ac_exec_ext in '' $ac_executable_extensions; do 10903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10904 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10906 break 2 10907 fi 10908done 10909 done 10910IFS=$as_save_IFS 10911 10912fi 10913fi 10914LIPO=$ac_cv_prog_LIPO 10915if test -n "$LIPO"; then 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10917$as_echo "$LIPO" >&6; } 10918else 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10920$as_echo "no" >&6; } 10921fi 10922 10923 10924fi 10925if test -z "$ac_cv_prog_LIPO"; then 10926 ac_ct_LIPO=$LIPO 10927 # Extract the first word of "lipo", so it can be a program name with args. 10928set dummy lipo; ac_word=$2 10929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10930$as_echo_n "checking for $ac_word... " >&6; } 10931if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10932 $as_echo_n "(cached) " >&6 10933else 10934 if test -n "$ac_ct_LIPO"; then 10935 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10936else 10937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10938for as_dir in $PATH 10939do 10940 IFS=$as_save_IFS 10941 test -z "$as_dir" && as_dir=. 10942 for ac_exec_ext in '' $ac_executable_extensions; do 10943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10944 ac_cv_prog_ac_ct_LIPO="lipo" 10945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10946 break 2 10947 fi 10948done 10949 done 10950IFS=$as_save_IFS 10951 10952fi 10953fi 10954ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10955if test -n "$ac_ct_LIPO"; then 10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10957$as_echo "$ac_ct_LIPO" >&6; } 10958else 10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10960$as_echo "no" >&6; } 10961fi 10962 10963 if test "x$ac_ct_LIPO" = x; then 10964 LIPO=":" 10965 else 10966 case $cross_compiling:$ac_tool_warned in 10967yes:) 10968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10970ac_tool_warned=yes ;; 10971esac 10972 LIPO=$ac_ct_LIPO 10973 fi 10974else 10975 LIPO="$ac_cv_prog_LIPO" 10976fi 10977 10978 if test -n "$ac_tool_prefix"; then 10979 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10980set dummy ${ac_tool_prefix}otool; ac_word=$2 10981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10982$as_echo_n "checking for $ac_word... " >&6; } 10983if ${ac_cv_prog_OTOOL+:} false; then : 10984 $as_echo_n "(cached) " >&6 10985else 10986 if test -n "$OTOOL"; then 10987 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10988else 10989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10990for as_dir in $PATH 10991do 10992 IFS=$as_save_IFS 10993 test -z "$as_dir" && as_dir=. 10994 for ac_exec_ext in '' $ac_executable_extensions; do 10995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10996 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10998 break 2 10999 fi 11000done 11001 done 11002IFS=$as_save_IFS 11003 11004fi 11005fi 11006OTOOL=$ac_cv_prog_OTOOL 11007if test -n "$OTOOL"; then 11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11009$as_echo "$OTOOL" >&6; } 11010else 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11012$as_echo "no" >&6; } 11013fi 11014 11015 11016fi 11017if test -z "$ac_cv_prog_OTOOL"; then 11018 ac_ct_OTOOL=$OTOOL 11019 # Extract the first word of "otool", so it can be a program name with args. 11020set dummy otool; ac_word=$2 11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11022$as_echo_n "checking for $ac_word... " >&6; } 11023if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 11024 $as_echo_n "(cached) " >&6 11025else 11026 if test -n "$ac_ct_OTOOL"; then 11027 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11028else 11029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11030for as_dir in $PATH 11031do 11032 IFS=$as_save_IFS 11033 test -z "$as_dir" && as_dir=. 11034 for ac_exec_ext in '' $ac_executable_extensions; do 11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11036 ac_cv_prog_ac_ct_OTOOL="otool" 11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11038 break 2 11039 fi 11040done 11041 done 11042IFS=$as_save_IFS 11043 11044fi 11045fi 11046ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11047if test -n "$ac_ct_OTOOL"; then 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11049$as_echo "$ac_ct_OTOOL" >&6; } 11050else 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11052$as_echo "no" >&6; } 11053fi 11054 11055 if test "x$ac_ct_OTOOL" = x; then 11056 OTOOL=":" 11057 else 11058 case $cross_compiling:$ac_tool_warned in 11059yes:) 11060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11062ac_tool_warned=yes ;; 11063esac 11064 OTOOL=$ac_ct_OTOOL 11065 fi 11066else 11067 OTOOL="$ac_cv_prog_OTOOL" 11068fi 11069 11070 if test -n "$ac_tool_prefix"; then 11071 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11072set dummy ${ac_tool_prefix}otool64; ac_word=$2 11073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11074$as_echo_n "checking for $ac_word... " >&6; } 11075if ${ac_cv_prog_OTOOL64+:} false; then : 11076 $as_echo_n "(cached) " >&6 11077else 11078 if test -n "$OTOOL64"; then 11079 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11080else 11081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11082for as_dir in $PATH 11083do 11084 IFS=$as_save_IFS 11085 test -z "$as_dir" && as_dir=. 11086 for ac_exec_ext in '' $ac_executable_extensions; do 11087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11088 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11090 break 2 11091 fi 11092done 11093 done 11094IFS=$as_save_IFS 11095 11096fi 11097fi 11098OTOOL64=$ac_cv_prog_OTOOL64 11099if test -n "$OTOOL64"; then 11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11101$as_echo "$OTOOL64" >&6; } 11102else 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11104$as_echo "no" >&6; } 11105fi 11106 11107 11108fi 11109if test -z "$ac_cv_prog_OTOOL64"; then 11110 ac_ct_OTOOL64=$OTOOL64 11111 # Extract the first word of "otool64", so it can be a program name with args. 11112set dummy otool64; ac_word=$2 11113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11114$as_echo_n "checking for $ac_word... " >&6; } 11115if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 11116 $as_echo_n "(cached) " >&6 11117else 11118 if test -n "$ac_ct_OTOOL64"; then 11119 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11120else 11121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11122for as_dir in $PATH 11123do 11124 IFS=$as_save_IFS 11125 test -z "$as_dir" && as_dir=. 11126 for ac_exec_ext in '' $ac_executable_extensions; do 11127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11128 ac_cv_prog_ac_ct_OTOOL64="otool64" 11129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11130 break 2 11131 fi 11132done 11133 done 11134IFS=$as_save_IFS 11135 11136fi 11137fi 11138ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11139if test -n "$ac_ct_OTOOL64"; then 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11141$as_echo "$ac_ct_OTOOL64" >&6; } 11142else 11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11144$as_echo "no" >&6; } 11145fi 11146 11147 if test "x$ac_ct_OTOOL64" = x; then 11148 OTOOL64=":" 11149 else 11150 case $cross_compiling:$ac_tool_warned in 11151yes:) 11152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11154ac_tool_warned=yes ;; 11155esac 11156 OTOOL64=$ac_ct_OTOOL64 11157 fi 11158else 11159 OTOOL64="$ac_cv_prog_OTOOL64" 11160fi 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11189$as_echo_n "checking for -single_module linker flag... " >&6; } 11190if ${lt_cv_apple_cc_single_mod+:} false; then : 11191 $as_echo_n "(cached) " >&6 11192else 11193 lt_cv_apple_cc_single_mod=no 11194 if test -z "${LT_MULTI_MODULE}"; then 11195 # By default we will add the -single_module flag. You can override 11196 # by either setting the environment variable LT_MULTI_MODULE 11197 # non-empty at configure time, or by adding -multi_module to the 11198 # link flags. 11199 rm -rf libconftest.dylib* 11200 echo "int foo(void){return 1;}" > conftest.c 11201 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11202-dynamiclib -Wl,-single_module conftest.c" >&5 11203 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11204 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11205 _lt_result=$? 11206 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 11207 lt_cv_apple_cc_single_mod=yes 11208 else 11209 cat conftest.err >&5 11210 fi 11211 rm -rf libconftest.dylib* 11212 rm -f conftest.* 11213 fi 11214fi 11215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11216$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11218$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 11219if ${lt_cv_ld_exported_symbols_list+:} false; then : 11220 $as_echo_n "(cached) " >&6 11221else 11222 lt_cv_ld_exported_symbols_list=no 11223 save_LDFLAGS=$LDFLAGS 11224 echo "_main" > conftest.sym 11225 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11227/* end confdefs.h. */ 11228 11229int 11230main () 11231{ 11232 11233 ; 11234 return 0; 11235} 11236_ACEOF 11237if ac_fn_c_try_link "$LINENO"; then : 11238 lt_cv_ld_exported_symbols_list=yes 11239else 11240 lt_cv_ld_exported_symbols_list=no 11241fi 11242rm -f core conftest.err conftest.$ac_objext \ 11243 conftest$ac_exeext conftest.$ac_ext 11244 LDFLAGS="$save_LDFLAGS" 11245 11246fi 11247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11248$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11250$as_echo_n "checking for -force_load linker flag... " >&6; } 11251if ${lt_cv_ld_force_load+:} false; then : 11252 $as_echo_n "(cached) " >&6 11253else 11254 lt_cv_ld_force_load=no 11255 cat > conftest.c << _LT_EOF 11256int forced_loaded() { return 2;} 11257_LT_EOF 11258 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11259 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11260 echo "$AR cru libconftest.a conftest.o" >&5 11261 $AR cru libconftest.a conftest.o 2>&5 11262 echo "$RANLIB libconftest.a" >&5 11263 $RANLIB libconftest.a 2>&5 11264 cat > conftest.c << _LT_EOF 11265int main() { return 0;} 11266_LT_EOF 11267 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11268 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11269 _lt_result=$? 11270 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 11271 lt_cv_ld_force_load=yes 11272 else 11273 cat conftest.err >&5 11274 fi 11275 rm -f conftest.err libconftest.a conftest conftest.c 11276 rm -rf conftest.dSYM 11277 11278fi 11279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11280$as_echo "$lt_cv_ld_force_load" >&6; } 11281 case $host_os in 11282 rhapsody* | darwin1.[012]) 11283 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 11284 darwin1.*) 11285 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 11286 darwin*) # darwin 5.x on 11287 # if running on 10.5 or later, the deployment target defaults 11288 # to the OS version, if on x86, and 10.4, the deployment 11289 # target defaults to 10.4. Don't you love it? 11290 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 11291 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 11292 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 11293 10.[012]*) 11294 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 11295 10.*) 11296 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 11297 esac 11298 ;; 11299 esac 11300 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 11301 _lt_dar_single_mod='$single_module' 11302 fi 11303 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 11304 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 11305 else 11306 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 11307 fi 11308 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 11309 _lt_dsymutil='~$DSYMUTIL $lib || :' 11310 else 11311 _lt_dsymutil= 11312 fi 11313 ;; 11314 esac 11315 11316for ac_header in dlfcn.h 11317do : 11318 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11319" 11320if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11321 cat >>confdefs.h <<_ACEOF 11322#define HAVE_DLFCN_H 1 11323_ACEOF 11324 11325fi 11326 11327done 11328 11329 11330 11331 11332 11333# Set options 11334 11335 11336 11337 enable_dlopen=no 11338 11339 11340 11341 # Check whether --enable-shared was given. 11342if test "${enable_shared+set}" = set; then : 11343 enableval=$enable_shared; p=${PACKAGE-default} 11344 case $enableval in 11345 yes) enable_shared=yes ;; 11346 no) enable_shared=no ;; 11347 *) 11348 enable_shared=no 11349 # Look at the argument we got. We use all the common list separators. 11350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11351 for pkg in $enableval; do 11352 IFS="$lt_save_ifs" 11353 if test "X$pkg" = "X$p"; then 11354 enable_shared=yes 11355 fi 11356 done 11357 IFS="$lt_save_ifs" 11358 ;; 11359 esac 11360else 11361 enable_shared=yes 11362fi 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 # Check whether --enable-static was given. 11373if test "${enable_static+set}" = set; then : 11374 enableval=$enable_static; p=${PACKAGE-default} 11375 case $enableval in 11376 yes) enable_static=yes ;; 11377 no) enable_static=no ;; 11378 *) 11379 enable_static=no 11380 # Look at the argument we got. We use all the common list separators. 11381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11382 for pkg in $enableval; do 11383 IFS="$lt_save_ifs" 11384 if test "X$pkg" = "X$p"; then 11385 enable_static=yes 11386 fi 11387 done 11388 IFS="$lt_save_ifs" 11389 ;; 11390 esac 11391else 11392 enable_static=yes 11393fi 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404# Check whether --with-pic was given. 11405if test "${with_pic+set}" = set; then : 11406 withval=$with_pic; pic_mode="$withval" 11407else 11408 pic_mode=default 11409fi 11410 11411 11412test -z "$pic_mode" && pic_mode=default 11413 11414 11415 11416 11417 11418 11419 11420 # Check whether --enable-fast-install was given. 11421if test "${enable_fast_install+set}" = set; then : 11422 enableval=$enable_fast_install; p=${PACKAGE-default} 11423 case $enableval in 11424 yes) enable_fast_install=yes ;; 11425 no) enable_fast_install=no ;; 11426 *) 11427 enable_fast_install=no 11428 # Look at the argument we got. We use all the common list separators. 11429 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11430 for pkg in $enableval; do 11431 IFS="$lt_save_ifs" 11432 if test "X$pkg" = "X$p"; then 11433 enable_fast_install=yes 11434 fi 11435 done 11436 IFS="$lt_save_ifs" 11437 ;; 11438 esac 11439else 11440 enable_fast_install=yes 11441fi 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453# This can be used to rebuild libtool when needed 11454LIBTOOL_DEPS="$ltmain" 11455 11456# Always use our own libtool. 11457LIBTOOL='$(SHELL) $(top_builddir)/libtool' 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 11484test -z "$LN_S" && LN_S="ln -s" 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499if test -n "${ZSH_VERSION+set}" ; then 11500 setopt NO_GLOB_SUBST 11501fi 11502 11503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11504$as_echo_n "checking for objdir... " >&6; } 11505if ${lt_cv_objdir+:} false; then : 11506 $as_echo_n "(cached) " >&6 11507else 11508 rm -f .libs 2>/dev/null 11509mkdir .libs 2>/dev/null 11510if test -d .libs; then 11511 lt_cv_objdir=.libs 11512else 11513 # MS-DOS does not allow filenames that begin with a dot. 11514 lt_cv_objdir=_libs 11515fi 11516rmdir .libs 2>/dev/null 11517fi 11518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11519$as_echo "$lt_cv_objdir" >&6; } 11520objdir=$lt_cv_objdir 11521 11522 11523 11524 11525 11526cat >>confdefs.h <<_ACEOF 11527#define LT_OBJDIR "$lt_cv_objdir/" 11528_ACEOF 11529 11530 11531 11532 11533case $host_os in 11534aix3*) 11535 # AIX sometimes has problems with the GCC collect2 program. For some 11536 # reason, if we set the COLLECT_NAMES environment variable, the problems 11537 # vanish in a puff of smoke. 11538 if test "X${COLLECT_NAMES+set}" != Xset; then 11539 COLLECT_NAMES= 11540 export COLLECT_NAMES 11541 fi 11542 ;; 11543esac 11544 11545# Global variables: 11546ofile=libtool 11547can_build_shared=yes 11548 11549# All known linkers require a `.a' archive for static linking (except MSVC, 11550# which needs '.lib'). 11551libext=a 11552 11553with_gnu_ld="$lt_cv_prog_gnu_ld" 11554 11555old_CC="$CC" 11556old_CFLAGS="$CFLAGS" 11557 11558# Set sane defaults for various variables 11559test -z "$CC" && CC=cc 11560test -z "$LTCC" && LTCC=$CC 11561test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11562test -z "$LD" && LD=ld 11563test -z "$ac_objext" && ac_objext=o 11564 11565for cc_temp in $compiler""; do 11566 case $cc_temp in 11567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11569 \-*) ;; 11570 *) break;; 11571 esac 11572done 11573cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11574 11575 11576# Only perform the check for file, if the check method requires it 11577test -z "$MAGIC_CMD" && MAGIC_CMD=file 11578case $deplibs_check_method in 11579file_magic*) 11580 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11582$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11583if ${lt_cv_path_MAGIC_CMD+:} false; then : 11584 $as_echo_n "(cached) " >&6 11585else 11586 case $MAGIC_CMD in 11587[\\/*] | ?:[\\/]*) 11588 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11589 ;; 11590*) 11591 lt_save_MAGIC_CMD="$MAGIC_CMD" 11592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11593 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11594 for ac_dir in $ac_dummy; do 11595 IFS="$lt_save_ifs" 11596 test -z "$ac_dir" && ac_dir=. 11597 if test -f $ac_dir/${ac_tool_prefix}file; then 11598 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 11599 if test -n "$file_magic_test_file"; then 11600 case $deplibs_check_method in 11601 "file_magic "*) 11602 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11604 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11605 $EGREP "$file_magic_regex" > /dev/null; then 11606 : 11607 else 11608 cat <<_LT_EOF 1>&2 11609 11610*** Warning: the command libtool uses to detect shared libraries, 11611*** $file_magic_cmd, produces output that libtool cannot recognize. 11612*** The result is that libtool may fail to recognize shared libraries 11613*** as such. This will affect the creation of libtool libraries that 11614*** depend on shared libraries, but programs linked with such libtool 11615*** libraries will work regardless of this problem. Nevertheless, you 11616*** may want to report the problem to your system manager and/or to 11617*** bug-libtool@gnu.org 11618 11619_LT_EOF 11620 fi ;; 11621 esac 11622 fi 11623 break 11624 fi 11625 done 11626 IFS="$lt_save_ifs" 11627 MAGIC_CMD="$lt_save_MAGIC_CMD" 11628 ;; 11629esac 11630fi 11631 11632MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11633if test -n "$MAGIC_CMD"; then 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11635$as_echo "$MAGIC_CMD" >&6; } 11636else 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11638$as_echo "no" >&6; } 11639fi 11640 11641 11642 11643 11644 11645if test -z "$lt_cv_path_MAGIC_CMD"; then 11646 if test -n "$ac_tool_prefix"; then 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11648$as_echo_n "checking for file... " >&6; } 11649if ${lt_cv_path_MAGIC_CMD+:} false; then : 11650 $as_echo_n "(cached) " >&6 11651else 11652 case $MAGIC_CMD in 11653[\\/*] | ?:[\\/]*) 11654 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11655 ;; 11656*) 11657 lt_save_MAGIC_CMD="$MAGIC_CMD" 11658 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11659 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11660 for ac_dir in $ac_dummy; do 11661 IFS="$lt_save_ifs" 11662 test -z "$ac_dir" && ac_dir=. 11663 if test -f $ac_dir/file; then 11664 lt_cv_path_MAGIC_CMD="$ac_dir/file" 11665 if test -n "$file_magic_test_file"; then 11666 case $deplibs_check_method in 11667 "file_magic "*) 11668 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11670 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11671 $EGREP "$file_magic_regex" > /dev/null; then 11672 : 11673 else 11674 cat <<_LT_EOF 1>&2 11675 11676*** Warning: the command libtool uses to detect shared libraries, 11677*** $file_magic_cmd, produces output that libtool cannot recognize. 11678*** The result is that libtool may fail to recognize shared libraries 11679*** as such. This will affect the creation of libtool libraries that 11680*** depend on shared libraries, but programs linked with such libtool 11681*** libraries will work regardless of this problem. Nevertheless, you 11682*** may want to report the problem to your system manager and/or to 11683*** bug-libtool@gnu.org 11684 11685_LT_EOF 11686 fi ;; 11687 esac 11688 fi 11689 break 11690 fi 11691 done 11692 IFS="$lt_save_ifs" 11693 MAGIC_CMD="$lt_save_MAGIC_CMD" 11694 ;; 11695esac 11696fi 11697 11698MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11699if test -n "$MAGIC_CMD"; then 11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11701$as_echo "$MAGIC_CMD" >&6; } 11702else 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11704$as_echo "no" >&6; } 11705fi 11706 11707 11708 else 11709 MAGIC_CMD=: 11710 fi 11711fi 11712 11713 fi 11714 ;; 11715esac 11716 11717# Use C for the default configuration in the libtool script 11718 11719lt_save_CC="$CC" 11720ac_ext=c 11721ac_cpp='$CPP $CPPFLAGS' 11722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11724ac_compiler_gnu=$ac_cv_c_compiler_gnu 11725 11726 11727# Source file extension for C test sources. 11728ac_ext=c 11729 11730# Object file extension for compiled C test sources. 11731objext=o 11732objext=$objext 11733 11734# Code to be used in simple compile tests 11735lt_simple_compile_test_code="int some_variable = 0;" 11736 11737# Code to be used in simple link tests 11738lt_simple_link_test_code='int main(){return(0);}' 11739 11740 11741 11742 11743 11744 11745 11746# If no C compiler was specified, use CC. 11747LTCC=${LTCC-"$CC"} 11748 11749# If no C compiler flags were specified, use CFLAGS. 11750LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11751 11752# Allow CC to be a program name with arguments. 11753compiler=$CC 11754 11755# Save the default compiler, since it gets overwritten when the other 11756# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11757compiler_DEFAULT=$CC 11758 11759# save warnings/boilerplate of simple test code 11760ac_outfile=conftest.$ac_objext 11761echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11762eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11763_lt_compiler_boilerplate=`cat conftest.err` 11764$RM conftest* 11765 11766ac_outfile=conftest.$ac_objext 11767echo "$lt_simple_link_test_code" >conftest.$ac_ext 11768eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11769_lt_linker_boilerplate=`cat conftest.err` 11770$RM -r conftest* 11771 11772 11773## CAVEAT EMPTOR: 11774## There is no encapsulation within the following macros, do not change 11775## the running order or otherwise move them around unless you know exactly 11776## what you are doing... 11777if test -n "$compiler"; then 11778 11779lt_prog_compiler_no_builtin_flag= 11780 11781if test "$GCC" = yes; then 11782 case $cc_basename in 11783 nvcc*) 11784 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11785 *) 11786 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11787 esac 11788 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11790$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11791if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11792 $as_echo_n "(cached) " >&6 11793else 11794 lt_cv_prog_compiler_rtti_exceptions=no 11795 ac_outfile=conftest.$ac_objext 11796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11797 lt_compiler_flag="-fno-rtti -fno-exceptions" 11798 # Insert the option either (1) after the last *FLAGS variable, or 11799 # (2) before a word containing "conftest.", or (3) at the end. 11800 # Note that $ac_compile itself does not contain backslashes and begins 11801 # with a dollar sign (not a hyphen), so the echo should work correctly. 11802 # The option is referenced via a variable to avoid confusing sed. 11803 lt_compile=`echo "$ac_compile" | $SED \ 11804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11806 -e 's:$: $lt_compiler_flag:'` 11807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11808 (eval "$lt_compile" 2>conftest.err) 11809 ac_status=$? 11810 cat conftest.err >&5 11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11812 if (exit $ac_status) && test -s "$ac_outfile"; then 11813 # The compiler can only warn and ignore the option if not recognized 11814 # So say no if there are warnings other than the usual output. 11815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11818 lt_cv_prog_compiler_rtti_exceptions=yes 11819 fi 11820 fi 11821 $RM conftest* 11822 11823fi 11824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11825$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11826 11827if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 11828 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11829else 11830 : 11831fi 11832 11833fi 11834 11835 11836 11837 11838 11839 11840 lt_prog_compiler_wl= 11841lt_prog_compiler_pic= 11842lt_prog_compiler_static= 11843 11844 11845 if test "$GCC" = yes; then 11846 lt_prog_compiler_wl='-Wl,' 11847 lt_prog_compiler_static='-static' 11848 11849 case $host_os in 11850 aix*) 11851 # All AIX code is PIC. 11852 if test "$host_cpu" = ia64; then 11853 # AIX 5 now supports IA64 processor 11854 lt_prog_compiler_static='-Bstatic' 11855 fi 11856 ;; 11857 11858 amigaos*) 11859 case $host_cpu in 11860 powerpc) 11861 # see comment about AmigaOS4 .so support 11862 lt_prog_compiler_pic='-fPIC' 11863 ;; 11864 m68k) 11865 # FIXME: we need at least 68020 code to build shared libraries, but 11866 # adding the `-m68020' flag to GCC prevents building anything better, 11867 # like `-m68040'. 11868 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11869 ;; 11870 esac 11871 ;; 11872 11873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11874 # PIC is the default for these OSes. 11875 ;; 11876 11877 mingw* | cygwin* | pw32* | os2* | cegcc*) 11878 # This hack is so that the source file can tell whether it is being 11879 # built for inclusion in a dll (and should export symbols for example). 11880 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11881 # (--disable-auto-import) libraries 11882 lt_prog_compiler_pic='-DDLL_EXPORT' 11883 ;; 11884 11885 darwin* | rhapsody*) 11886 # PIC is the default on this platform 11887 # Common symbols not allowed in MH_DYLIB files 11888 lt_prog_compiler_pic='-fno-common' 11889 ;; 11890 11891 haiku*) 11892 # PIC is the default for Haiku. 11893 # The "-static" flag exists, but is broken. 11894 lt_prog_compiler_static= 11895 ;; 11896 11897 hpux*) 11898 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11899 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11900 # sets the default TLS model and affects inlining. 11901 case $host_cpu in 11902 hppa*64*) 11903 # +Z the default 11904 ;; 11905 *) 11906 lt_prog_compiler_pic='-fPIC' 11907 ;; 11908 esac 11909 ;; 11910 11911 interix[3-9]*) 11912 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11913 # Instead, we relocate shared libraries at runtime. 11914 ;; 11915 11916 msdosdjgpp*) 11917 # Just because we use GCC doesn't mean we suddenly get shared libraries 11918 # on systems that don't support them. 11919 lt_prog_compiler_can_build_shared=no 11920 enable_shared=no 11921 ;; 11922 11923 *nto* | *qnx*) 11924 # QNX uses GNU C++, but need to define -shared option too, otherwise 11925 # it will coredump. 11926 lt_prog_compiler_pic='-fPIC -shared' 11927 ;; 11928 11929 sysv4*MP*) 11930 if test -d /usr/nec; then 11931 lt_prog_compiler_pic=-Kconform_pic 11932 fi 11933 ;; 11934 11935 *) 11936 lt_prog_compiler_pic='-fPIC' 11937 ;; 11938 esac 11939 11940 case $cc_basename in 11941 nvcc*) # Cuda Compiler Driver 2.2 11942 lt_prog_compiler_wl='-Xlinker ' 11943 lt_prog_compiler_pic='-Xcompiler -fPIC' 11944 ;; 11945 esac 11946 else 11947 # PORTME Check for flag to pass linker flags through the system compiler. 11948 case $host_os in 11949 aix*) 11950 lt_prog_compiler_wl='-Wl,' 11951 if test "$host_cpu" = ia64; then 11952 # AIX 5 now supports IA64 processor 11953 lt_prog_compiler_static='-Bstatic' 11954 else 11955 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11956 fi 11957 ;; 11958 11959 mingw* | cygwin* | pw32* | os2* | cegcc*) 11960 # This hack is so that the source file can tell whether it is being 11961 # built for inclusion in a dll (and should export symbols for example). 11962 lt_prog_compiler_pic='-DDLL_EXPORT' 11963 ;; 11964 11965 hpux9* | hpux10* | hpux11*) 11966 lt_prog_compiler_wl='-Wl,' 11967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11968 # not for PA HP-UX. 11969 case $host_cpu in 11970 hppa*64*|ia64*) 11971 # +Z the default 11972 ;; 11973 *) 11974 lt_prog_compiler_pic='+Z' 11975 ;; 11976 esac 11977 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11978 lt_prog_compiler_static='${wl}-a ${wl}archive' 11979 ;; 11980 11981 irix5* | irix6* | nonstopux*) 11982 lt_prog_compiler_wl='-Wl,' 11983 # PIC (with -KPIC) is the default. 11984 lt_prog_compiler_static='-non_shared' 11985 ;; 11986 11987 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11988 case $cc_basename in 11989 # old Intel for x86_64 which still supported -KPIC. 11990 ecc*) 11991 lt_prog_compiler_wl='-Wl,' 11992 lt_prog_compiler_pic='-KPIC' 11993 lt_prog_compiler_static='-static' 11994 ;; 11995 # icc used to be incompatible with GCC. 11996 # ICC 10 doesn't accept -KPIC any more. 11997 icc* | ifort*) 11998 lt_prog_compiler_wl='-Wl,' 11999 lt_prog_compiler_pic='-fPIC' 12000 lt_prog_compiler_static='-static' 12001 ;; 12002 # Lahey Fortran 8.1. 12003 lf95*) 12004 lt_prog_compiler_wl='-Wl,' 12005 lt_prog_compiler_pic='--shared' 12006 lt_prog_compiler_static='--static' 12007 ;; 12008 nagfor*) 12009 # NAG Fortran compiler 12010 lt_prog_compiler_wl='-Wl,-Wl,,' 12011 lt_prog_compiler_pic='-PIC' 12012 lt_prog_compiler_static='-Bstatic' 12013 ;; 12014 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12015 # Portland Group compilers (*not* the Pentium gcc compiler, 12016 # which looks to be a dead project) 12017 lt_prog_compiler_wl='-Wl,' 12018 lt_prog_compiler_pic='-fpic' 12019 lt_prog_compiler_static='-Bstatic' 12020 ;; 12021 ccc*) 12022 lt_prog_compiler_wl='-Wl,' 12023 # All Alpha code is PIC. 12024 lt_prog_compiler_static='-non_shared' 12025 ;; 12026 xl* | bgxl* | bgf* | mpixl*) 12027 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12028 lt_prog_compiler_wl='-Wl,' 12029 lt_prog_compiler_pic='-qpic' 12030 lt_prog_compiler_static='-qstaticlink' 12031 ;; 12032 *) 12033 case `$CC -V 2>&1 | sed 5q` in 12034 *Sun\ F* | *Sun*Fortran*) 12035 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12036 lt_prog_compiler_pic='-KPIC' 12037 lt_prog_compiler_static='-Bstatic' 12038 lt_prog_compiler_wl='' 12039 ;; 12040 *Sun\ C*) 12041 # Sun C 5.9 12042 lt_prog_compiler_pic='-KPIC' 12043 lt_prog_compiler_static='-Bstatic' 12044 lt_prog_compiler_wl='-Wl,' 12045 ;; 12046 esac 12047 ;; 12048 esac 12049 ;; 12050 12051 newsos6) 12052 lt_prog_compiler_pic='-KPIC' 12053 lt_prog_compiler_static='-Bstatic' 12054 ;; 12055 12056 *nto* | *qnx*) 12057 # QNX uses GNU C++, but need to define -shared option too, otherwise 12058 # it will coredump. 12059 lt_prog_compiler_pic='-fPIC -shared' 12060 ;; 12061 12062 osf3* | osf4* | osf5*) 12063 lt_prog_compiler_wl='-Wl,' 12064 # All OSF/1 code is PIC. 12065 lt_prog_compiler_static='-non_shared' 12066 ;; 12067 12068 rdos*) 12069 lt_prog_compiler_static='-non_shared' 12070 ;; 12071 12072 solaris*) 12073 lt_prog_compiler_pic='-KPIC' 12074 lt_prog_compiler_static='-Bstatic' 12075 case $cc_basename in 12076 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12077 lt_prog_compiler_wl='-Qoption ld ';; 12078 *) 12079 lt_prog_compiler_wl='-Wl,';; 12080 esac 12081 ;; 12082 12083 sunos4*) 12084 lt_prog_compiler_wl='-Qoption ld ' 12085 lt_prog_compiler_pic='-PIC' 12086 lt_prog_compiler_static='-Bstatic' 12087 ;; 12088 12089 sysv4 | sysv4.2uw2* | sysv4.3*) 12090 lt_prog_compiler_wl='-Wl,' 12091 lt_prog_compiler_pic='-KPIC' 12092 lt_prog_compiler_static='-Bstatic' 12093 ;; 12094 12095 sysv4*MP*) 12096 if test -d /usr/nec ;then 12097 lt_prog_compiler_pic='-Kconform_pic' 12098 lt_prog_compiler_static='-Bstatic' 12099 fi 12100 ;; 12101 12102 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12103 lt_prog_compiler_wl='-Wl,' 12104 lt_prog_compiler_pic='-KPIC' 12105 lt_prog_compiler_static='-Bstatic' 12106 ;; 12107 12108 unicos*) 12109 lt_prog_compiler_wl='-Wl,' 12110 lt_prog_compiler_can_build_shared=no 12111 ;; 12112 12113 uts4*) 12114 lt_prog_compiler_pic='-pic' 12115 lt_prog_compiler_static='-Bstatic' 12116 ;; 12117 12118 *) 12119 lt_prog_compiler_can_build_shared=no 12120 ;; 12121 esac 12122 fi 12123 12124case $host_os in 12125 # For platforms which do not support PIC, -DPIC is meaningless: 12126 *djgpp*) 12127 lt_prog_compiler_pic= 12128 ;; 12129 *) 12130 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12131 ;; 12132esac 12133 12134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12135$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12136if ${lt_cv_prog_compiler_pic+:} false; then : 12137 $as_echo_n "(cached) " >&6 12138else 12139 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12140fi 12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12142$as_echo "$lt_cv_prog_compiler_pic" >&6; } 12143lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12144 12145# 12146# Check to make sure the PIC flag actually works. 12147# 12148if test -n "$lt_prog_compiler_pic"; then 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12150$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12151if ${lt_cv_prog_compiler_pic_works+:} false; then : 12152 $as_echo_n "(cached) " >&6 12153else 12154 lt_cv_prog_compiler_pic_works=no 12155 ac_outfile=conftest.$ac_objext 12156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12157 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 12158 # Insert the option either (1) after the last *FLAGS variable, or 12159 # (2) before a word containing "conftest.", or (3) at the end. 12160 # Note that $ac_compile itself does not contain backslashes and begins 12161 # with a dollar sign (not a hyphen), so the echo should work correctly. 12162 # The option is referenced via a variable to avoid confusing sed. 12163 lt_compile=`echo "$ac_compile" | $SED \ 12164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12166 -e 's:$: $lt_compiler_flag:'` 12167 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12168 (eval "$lt_compile" 2>conftest.err) 12169 ac_status=$? 12170 cat conftest.err >&5 12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12172 if (exit $ac_status) && test -s "$ac_outfile"; then 12173 # The compiler can only warn and ignore the option if not recognized 12174 # So say no if there are warnings other than the usual output. 12175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12178 lt_cv_prog_compiler_pic_works=yes 12179 fi 12180 fi 12181 $RM conftest* 12182 12183fi 12184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12185$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 12186 12187if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 12188 case $lt_prog_compiler_pic in 12189 "" | " "*) ;; 12190 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12191 esac 12192else 12193 lt_prog_compiler_pic= 12194 lt_prog_compiler_can_build_shared=no 12195fi 12196 12197fi 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209# 12210# Check to make sure the static flag actually works. 12211# 12212wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12214$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12215if ${lt_cv_prog_compiler_static_works+:} false; then : 12216 $as_echo_n "(cached) " >&6 12217else 12218 lt_cv_prog_compiler_static_works=no 12219 save_LDFLAGS="$LDFLAGS" 12220 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12221 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12223 # The linker can only warn and ignore the option if not recognized 12224 # So say no if there are warnings 12225 if test -s conftest.err; then 12226 # Append any errors to the config.log. 12227 cat conftest.err 1>&5 12228 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12230 if diff conftest.exp conftest.er2 >/dev/null; then 12231 lt_cv_prog_compiler_static_works=yes 12232 fi 12233 else 12234 lt_cv_prog_compiler_static_works=yes 12235 fi 12236 fi 12237 $RM -r conftest* 12238 LDFLAGS="$save_LDFLAGS" 12239 12240fi 12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12242$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12243 12244if test x"$lt_cv_prog_compiler_static_works" = xyes; then 12245 : 12246else 12247 lt_prog_compiler_static= 12248fi 12249 12250 12251 12252 12253 12254 12255 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12257$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12258if ${lt_cv_prog_compiler_c_o+:} false; then : 12259 $as_echo_n "(cached) " >&6 12260else 12261 lt_cv_prog_compiler_c_o=no 12262 $RM -r conftest 2>/dev/null 12263 mkdir conftest 12264 cd conftest 12265 mkdir out 12266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12267 12268 lt_compiler_flag="-o out/conftest2.$ac_objext" 12269 # Insert the option either (1) after the last *FLAGS variable, or 12270 # (2) before a word containing "conftest.", or (3) at the end. 12271 # Note that $ac_compile itself does not contain backslashes and begins 12272 # with a dollar sign (not a hyphen), so the echo should work correctly. 12273 lt_compile=`echo "$ac_compile" | $SED \ 12274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12276 -e 's:$: $lt_compiler_flag:'` 12277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12278 (eval "$lt_compile" 2>out/conftest.err) 12279 ac_status=$? 12280 cat out/conftest.err >&5 12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12282 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12283 then 12284 # The compiler can only warn and ignore the option if not recognized 12285 # So say no if there are warnings 12286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12289 lt_cv_prog_compiler_c_o=yes 12290 fi 12291 fi 12292 chmod u+w . 2>&5 12293 $RM conftest* 12294 # SGI C++ compiler will create directory out/ii_files/ for 12295 # template instantiation 12296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12297 $RM out/* && rmdir out 12298 cd .. 12299 $RM -r conftest 12300 $RM conftest* 12301 12302fi 12303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12304$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12305 12306 12307 12308 12309 12310 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12312$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12313if ${lt_cv_prog_compiler_c_o+:} false; then : 12314 $as_echo_n "(cached) " >&6 12315else 12316 lt_cv_prog_compiler_c_o=no 12317 $RM -r conftest 2>/dev/null 12318 mkdir conftest 12319 cd conftest 12320 mkdir out 12321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12322 12323 lt_compiler_flag="-o out/conftest2.$ac_objext" 12324 # Insert the option either (1) after the last *FLAGS variable, or 12325 # (2) before a word containing "conftest.", or (3) at the end. 12326 # Note that $ac_compile itself does not contain backslashes and begins 12327 # with a dollar sign (not a hyphen), so the echo should work correctly. 12328 lt_compile=`echo "$ac_compile" | $SED \ 12329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12331 -e 's:$: $lt_compiler_flag:'` 12332 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12333 (eval "$lt_compile" 2>out/conftest.err) 12334 ac_status=$? 12335 cat out/conftest.err >&5 12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12337 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12338 then 12339 # The compiler can only warn and ignore the option if not recognized 12340 # So say no if there are warnings 12341 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12344 lt_cv_prog_compiler_c_o=yes 12345 fi 12346 fi 12347 chmod u+w . 2>&5 12348 $RM conftest* 12349 # SGI C++ compiler will create directory out/ii_files/ for 12350 # template instantiation 12351 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12352 $RM out/* && rmdir out 12353 cd .. 12354 $RM -r conftest 12355 $RM conftest* 12356 12357fi 12358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12359$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12360 12361 12362 12363 12364hard_links="nottested" 12365if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 12366 # do not overwrite the value of need_locks provided by the user 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12368$as_echo_n "checking if we can lock with hard links... " >&6; } 12369 hard_links=yes 12370 $RM conftest* 12371 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12372 touch conftest.a 12373 ln conftest.a conftest.b 2>&5 || hard_links=no 12374 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12376$as_echo "$hard_links" >&6; } 12377 if test "$hard_links" = no; then 12378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12379$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12380 need_locks=warn 12381 fi 12382else 12383 need_locks=no 12384fi 12385 12386 12387 12388 12389 12390 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12392$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12393 12394 runpath_var= 12395 allow_undefined_flag= 12396 always_export_symbols=no 12397 archive_cmds= 12398 archive_expsym_cmds= 12399 compiler_needs_object=no 12400 enable_shared_with_static_runtimes=no 12401 export_dynamic_flag_spec= 12402 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12403 hardcode_automatic=no 12404 hardcode_direct=no 12405 hardcode_direct_absolute=no 12406 hardcode_libdir_flag_spec= 12407 hardcode_libdir_flag_spec_ld= 12408 hardcode_libdir_separator= 12409 hardcode_minus_L=no 12410 hardcode_shlibpath_var=unsupported 12411 inherit_rpath=no 12412 link_all_deplibs=unknown 12413 module_cmds= 12414 module_expsym_cmds= 12415 old_archive_from_new_cmds= 12416 old_archive_from_expsyms_cmds= 12417 thread_safe_flag_spec= 12418 whole_archive_flag_spec= 12419 # include_expsyms should be a list of space-separated symbols to be *always* 12420 # included in the symbol list 12421 include_expsyms= 12422 # exclude_expsyms can be an extended regexp of symbols to exclude 12423 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12424 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12425 # as well as any symbol that contains `d'. 12426 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12427 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12428 # platforms (ab)use it in PIC code, but their linkers get confused if 12429 # the symbol is explicitly referenced. Since portable code cannot 12430 # rely on this symbol name, it's probably fine to never include it in 12431 # preloaded symbol tables. 12432 # Exclude shared library initialization/finalization symbols. 12433 extract_expsyms_cmds= 12434 12435 case $host_os in 12436 cygwin* | mingw* | pw32* | cegcc*) 12437 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12438 # When not using gcc, we currently assume that we are using 12439 # Microsoft Visual C++. 12440 if test "$GCC" != yes; then 12441 with_gnu_ld=no 12442 fi 12443 ;; 12444 interix*) 12445 # we just hope/assume this is gcc and not c89 (= MSVC++) 12446 with_gnu_ld=yes 12447 ;; 12448 openbsd*) 12449 with_gnu_ld=no 12450 ;; 12451 linux* | k*bsd*-gnu | gnu*) 12452 link_all_deplibs=no 12453 ;; 12454 esac 12455 12456 ld_shlibs=yes 12457 12458 # On some targets, GNU ld is compatible enough with the native linker 12459 # that we're better off using the native interface for both. 12460 lt_use_gnu_ld_interface=no 12461 if test "$with_gnu_ld" = yes; then 12462 case $host_os in 12463 aix*) 12464 # The AIX port of GNU ld has always aspired to compatibility 12465 # with the native linker. However, as the warning in the GNU ld 12466 # block says, versions before 2.19.5* couldn't really create working 12467 # shared libraries, regardless of the interface used. 12468 case `$LD -v 2>&1` in 12469 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12470 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12471 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12472 *) 12473 lt_use_gnu_ld_interface=yes 12474 ;; 12475 esac 12476 ;; 12477 *) 12478 lt_use_gnu_ld_interface=yes 12479 ;; 12480 esac 12481 fi 12482 12483 if test "$lt_use_gnu_ld_interface" = yes; then 12484 # If archive_cmds runs LD, not CC, wlarc should be empty 12485 wlarc='${wl}' 12486 12487 # Set some defaults for GNU ld with shared library support. These 12488 # are reset later if shared libraries are not supported. Putting them 12489 # here allows them to be overridden if necessary. 12490 runpath_var=LD_RUN_PATH 12491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12492 export_dynamic_flag_spec='${wl}--export-dynamic' 12493 # ancient GNU ld didn't support --whole-archive et. al. 12494 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12495 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12496 else 12497 whole_archive_flag_spec= 12498 fi 12499 supports_anon_versioning=no 12500 case `$LD -v 2>&1` in 12501 *GNU\ gold*) supports_anon_versioning=yes ;; 12502 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12503 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12504 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12505 *\ 2.11.*) ;; # other 2.11 versions 12506 *) supports_anon_versioning=yes ;; 12507 esac 12508 12509 # See if GNU ld supports shared libraries. 12510 case $host_os in 12511 aix[3-9]*) 12512 # On AIX/PPC, the GNU linker is very broken 12513 if test "$host_cpu" != ia64; then 12514 ld_shlibs=no 12515 cat <<_LT_EOF 1>&2 12516 12517*** Warning: the GNU linker, at least up to release 2.19, is reported 12518*** to be unable to reliably create shared libraries on AIX. 12519*** Therefore, libtool is disabling shared libraries support. If you 12520*** really care for shared libraries, you may want to install binutils 12521*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12522*** You will then need to restart the configuration process. 12523 12524_LT_EOF 12525 fi 12526 ;; 12527 12528 amigaos*) 12529 case $host_cpu in 12530 powerpc) 12531 # see comment about AmigaOS4 .so support 12532 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12533 archive_expsym_cmds='' 12534 ;; 12535 m68k) 12536 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)' 12537 hardcode_libdir_flag_spec='-L$libdir' 12538 hardcode_minus_L=yes 12539 ;; 12540 esac 12541 ;; 12542 12543 beos*) 12544 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12545 allow_undefined_flag=unsupported 12546 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12547 # support --undefined. This deserves some investigation. FIXME 12548 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12549 else 12550 ld_shlibs=no 12551 fi 12552 ;; 12553 12554 cygwin* | mingw* | pw32* | cegcc*) 12555 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12556 # as there is no search path for DLLs. 12557 hardcode_libdir_flag_spec='-L$libdir' 12558 export_dynamic_flag_spec='${wl}--export-all-symbols' 12559 allow_undefined_flag=unsupported 12560 always_export_symbols=no 12561 enable_shared_with_static_runtimes=yes 12562 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' 12563 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12564 12565 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12567 # If the export-symbols file already is a .def file (1st line 12568 # is EXPORTS), use it as is; otherwise, prepend... 12569 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12570 cp $export_symbols $output_objdir/$soname.def; 12571 else 12572 echo EXPORTS > $output_objdir/$soname.def; 12573 cat $export_symbols >> $output_objdir/$soname.def; 12574 fi~ 12575 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12576 else 12577 ld_shlibs=no 12578 fi 12579 ;; 12580 12581 haiku*) 12582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12583 link_all_deplibs=yes 12584 ;; 12585 12586 interix[3-9]*) 12587 hardcode_direct=no 12588 hardcode_shlibpath_var=no 12589 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12590 export_dynamic_flag_spec='${wl}-E' 12591 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12592 # Instead, shared libraries are loaded at an image base (0x10000000 by 12593 # default) and relocated if they conflict, which is a slow very memory 12594 # consuming and fragmenting process. To avoid this, we pick a random, 12595 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12596 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12597 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12598 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' 12599 ;; 12600 12601 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12602 tmp_diet=no 12603 if test "$host_os" = linux-dietlibc; then 12604 case $cc_basename in 12605 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12606 esac 12607 fi 12608 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12609 && test "$tmp_diet" = no 12610 then 12611 tmp_addflag=' $pic_flag' 12612 tmp_sharedflag='-shared' 12613 case $cc_basename,$host_cpu in 12614 pgcc*) # Portland Group C compiler 12615 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' 12616 tmp_addflag=' $pic_flag' 12617 ;; 12618 pgf77* | pgf90* | pgf95* | pgfortran*) 12619 # Portland Group f77 and f90 compilers 12620 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' 12621 tmp_addflag=' $pic_flag -Mnomain' ;; 12622 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12623 tmp_addflag=' -i_dynamic' ;; 12624 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12625 tmp_addflag=' -i_dynamic -nofor_main' ;; 12626 ifc* | ifort*) # Intel Fortran compiler 12627 tmp_addflag=' -nofor_main' ;; 12628 lf95*) # Lahey Fortran 8.1 12629 whole_archive_flag_spec= 12630 tmp_sharedflag='--shared' ;; 12631 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12632 tmp_sharedflag='-qmkshrobj' 12633 tmp_addflag= ;; 12634 nvcc*) # Cuda Compiler Driver 2.2 12635 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' 12636 compiler_needs_object=yes 12637 ;; 12638 esac 12639 case `$CC -V 2>&1 | sed 5q` in 12640 *Sun\ C*) # Sun C 5.9 12641 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' 12642 compiler_needs_object=yes 12643 tmp_sharedflag='-G' ;; 12644 *Sun\ F*) # Sun Fortran 8.3 12645 tmp_sharedflag='-G' ;; 12646 esac 12647 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12648 12649 if test "x$supports_anon_versioning" = xyes; then 12650 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12651 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12652 echo "local: *; };" >> $output_objdir/$libname.ver~ 12653 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12654 fi 12655 12656 case $cc_basename in 12657 xlf* | bgf* | bgxlf* | mpixlf*) 12658 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12659 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12660 hardcode_libdir_flag_spec= 12661 hardcode_libdir_flag_spec_ld='-rpath $libdir' 12662 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12663 if test "x$supports_anon_versioning" = xyes; then 12664 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12665 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12666 echo "local: *; };" >> $output_objdir/$libname.ver~ 12667 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12668 fi 12669 ;; 12670 esac 12671 else 12672 ld_shlibs=no 12673 fi 12674 ;; 12675 12676 netbsd* | netbsdelf*-gnu) 12677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12678 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12679 wlarc= 12680 else 12681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12682 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12683 fi 12684 ;; 12685 12686 solaris*) 12687 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12688 ld_shlibs=no 12689 cat <<_LT_EOF 1>&2 12690 12691*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12692*** create shared libraries on Solaris systems. Therefore, libtool 12693*** is disabling shared libraries support. We urge you to upgrade GNU 12694*** binutils to release 2.9.1 or newer. Another option is to modify 12695*** your PATH or compiler configuration so that the native linker is 12696*** used, and then restart. 12697 12698_LT_EOF 12699 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12700 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12701 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12702 else 12703 ld_shlibs=no 12704 fi 12705 ;; 12706 12707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12708 case `$LD -v 2>&1` in 12709 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12710 ld_shlibs=no 12711 cat <<_LT_EOF 1>&2 12712 12713*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 12714*** reliably create shared libraries on SCO systems. Therefore, libtool 12715*** is disabling shared libraries support. We urge you to upgrade GNU 12716*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12717*** your PATH or compiler configuration so that the native linker is 12718*** used, and then restart. 12719 12720_LT_EOF 12721 ;; 12722 *) 12723 # For security reasons, it is highly recommended that you always 12724 # use absolute paths for naming shared libraries, and exclude the 12725 # DT_RUNPATH tag from executables and libraries. But doing so 12726 # requires that you compile everything twice, which is a pain. 12727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12728 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12730 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12731 else 12732 ld_shlibs=no 12733 fi 12734 ;; 12735 esac 12736 ;; 12737 12738 sunos4*) 12739 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12740 wlarc= 12741 hardcode_direct=yes 12742 hardcode_shlibpath_var=no 12743 ;; 12744 12745 *) 12746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12748 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12749 else 12750 ld_shlibs=no 12751 fi 12752 ;; 12753 esac 12754 12755 if test "$ld_shlibs" = no; then 12756 runpath_var= 12757 hardcode_libdir_flag_spec= 12758 export_dynamic_flag_spec= 12759 whole_archive_flag_spec= 12760 fi 12761 else 12762 # PORTME fill in a description of your system's linker (not GNU ld) 12763 case $host_os in 12764 aix3*) 12765 allow_undefined_flag=unsupported 12766 always_export_symbols=yes 12767 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' 12768 # Note: this linker hardcodes the directories in LIBPATH if there 12769 # are no directories specified by -L. 12770 hardcode_minus_L=yes 12771 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 12772 # Neither direct hardcoding nor static linking is supported with a 12773 # broken collect2. 12774 hardcode_direct=unsupported 12775 fi 12776 ;; 12777 12778 aix[4-9]*) 12779 if test "$host_cpu" = ia64; then 12780 # On IA64, the linker does run time linking by default, so we don't 12781 # have to do anything special. 12782 aix_use_runtimelinking=no 12783 exp_sym_flag='-Bexport' 12784 no_entry_flag="" 12785 else 12786 # If we're using GNU nm, then we don't want the "-C" option. 12787 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12788 # Also, AIX nm treats weak defined symbols like other global 12789 # defined symbols, whereas GNU nm marks them as "W". 12790 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12791 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 12792 else 12793 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 12794 fi 12795 aix_use_runtimelinking=no 12796 12797 # Test if we are trying to use run time linking or normal 12798 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12799 # need to do runtime linking. 12800 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12801 for ld_flag in $LDFLAGS; do 12802 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 12803 aix_use_runtimelinking=yes 12804 break 12805 fi 12806 done 12807 ;; 12808 esac 12809 12810 exp_sym_flag='-bexport' 12811 no_entry_flag='-bnoentry' 12812 fi 12813 12814 # When large executables or shared objects are built, AIX ld can 12815 # have problems creating the table of contents. If linking a library 12816 # or program results in "error TOC overflow" add -mminimal-toc to 12817 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12818 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12819 12820 archive_cmds='' 12821 hardcode_direct=yes 12822 hardcode_direct_absolute=yes 12823 hardcode_libdir_separator=':' 12824 link_all_deplibs=yes 12825 file_list_spec='${wl}-f,' 12826 12827 if test "$GCC" = yes; then 12828 case $host_os in aix4.[012]|aix4.[012].*) 12829 # We only want to do this on AIX 4.2 and lower, the check 12830 # below for broken collect2 doesn't work under 4.3+ 12831 collect2name=`${CC} -print-prog-name=collect2` 12832 if test -f "$collect2name" && 12833 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12834 then 12835 # We have reworked collect2 12836 : 12837 else 12838 # We have old collect2 12839 hardcode_direct=unsupported 12840 # It fails to find uninstalled libraries when the uninstalled 12841 # path is not listed in the libpath. Setting hardcode_minus_L 12842 # to unsupported forces relinking 12843 hardcode_minus_L=yes 12844 hardcode_libdir_flag_spec='-L$libdir' 12845 hardcode_libdir_separator= 12846 fi 12847 ;; 12848 esac 12849 shared_flag='-shared' 12850 if test "$aix_use_runtimelinking" = yes; then 12851 shared_flag="$shared_flag "'${wl}-G' 12852 fi 12853 link_all_deplibs=no 12854 else 12855 # not using gcc 12856 if test "$host_cpu" = ia64; then 12857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12858 # chokes on -Wl,-G. The following line is correct: 12859 shared_flag='-G' 12860 else 12861 if test "$aix_use_runtimelinking" = yes; then 12862 shared_flag='${wl}-G' 12863 else 12864 shared_flag='${wl}-bM:SRE' 12865 fi 12866 fi 12867 fi 12868 12869 export_dynamic_flag_spec='${wl}-bexpall' 12870 # It seems that -bexpall does not export symbols beginning with 12871 # underscore (_), so it is better to generate a list of symbols to export. 12872 always_export_symbols=yes 12873 if test "$aix_use_runtimelinking" = yes; then 12874 # Warning - without using the other runtime loading flags (-brtl), 12875 # -berok will link without error, but may produce a broken library. 12876 allow_undefined_flag='-berok' 12877 # Determine the default libpath from the value encoded in an 12878 # empty executable. 12879 if test "${lt_cv_aix_libpath+set}" = set; then 12880 aix_libpath=$lt_cv_aix_libpath 12881else 12882 if ${lt_cv_aix_libpath_+:} false; then : 12883 $as_echo_n "(cached) " >&6 12884else 12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12886/* end confdefs.h. */ 12887 12888int 12889main () 12890{ 12891 12892 ; 12893 return 0; 12894} 12895_ACEOF 12896if ac_fn_c_try_link "$LINENO"; then : 12897 12898 lt_aix_libpath_sed=' 12899 /Import File Strings/,/^$/ { 12900 /^0/ { 12901 s/^0 *\([^ ]*\) *$/\1/ 12902 p 12903 } 12904 }' 12905 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12906 # Check for a 64-bit object if we didn't find anything. 12907 if test -z "$lt_cv_aix_libpath_"; then 12908 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12909 fi 12910fi 12911rm -f core conftest.err conftest.$ac_objext \ 12912 conftest$ac_exeext conftest.$ac_ext 12913 if test -z "$lt_cv_aix_libpath_"; then 12914 lt_cv_aix_libpath_="/usr/lib:/lib" 12915 fi 12916 12917fi 12918 12919 aix_libpath=$lt_cv_aix_libpath_ 12920fi 12921 12922 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12923 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12924 else 12925 if test "$host_cpu" = ia64; then 12926 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 12927 allow_undefined_flag="-z nodefs" 12928 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" 12929 else 12930 # Determine the default libpath from the value encoded in an 12931 # empty executable. 12932 if test "${lt_cv_aix_libpath+set}" = set; then 12933 aix_libpath=$lt_cv_aix_libpath 12934else 12935 if ${lt_cv_aix_libpath_+:} false; then : 12936 $as_echo_n "(cached) " >&6 12937else 12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12939/* end confdefs.h. */ 12940 12941int 12942main () 12943{ 12944 12945 ; 12946 return 0; 12947} 12948_ACEOF 12949if ac_fn_c_try_link "$LINENO"; then : 12950 12951 lt_aix_libpath_sed=' 12952 /Import File Strings/,/^$/ { 12953 /^0/ { 12954 s/^0 *\([^ ]*\) *$/\1/ 12955 p 12956 } 12957 }' 12958 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12959 # Check for a 64-bit object if we didn't find anything. 12960 if test -z "$lt_cv_aix_libpath_"; then 12961 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12962 fi 12963fi 12964rm -f core conftest.err conftest.$ac_objext \ 12965 conftest$ac_exeext conftest.$ac_ext 12966 if test -z "$lt_cv_aix_libpath_"; then 12967 lt_cv_aix_libpath_="/usr/lib:/lib" 12968 fi 12969 12970fi 12971 12972 aix_libpath=$lt_cv_aix_libpath_ 12973fi 12974 12975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12976 # Warning - without using the other run time loading flags, 12977 # -berok will link without error, but may produce a broken library. 12978 no_undefined_flag=' ${wl}-bernotok' 12979 allow_undefined_flag=' ${wl}-berok' 12980 if test "$with_gnu_ld" = yes; then 12981 # We only use this code for GNU lds that support --whole-archive. 12982 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12983 else 12984 # Exported symbols can be pulled into shared objects from archives 12985 whole_archive_flag_spec='$convenience' 12986 fi 12987 archive_cmds_need_lc=yes 12988 # This is similar to how AIX traditionally builds its shared libraries. 12989 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12990 fi 12991 fi 12992 ;; 12993 12994 amigaos*) 12995 case $host_cpu in 12996 powerpc) 12997 # see comment about AmigaOS4 .so support 12998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12999 archive_expsym_cmds='' 13000 ;; 13001 m68k) 13002 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)' 13003 hardcode_libdir_flag_spec='-L$libdir' 13004 hardcode_minus_L=yes 13005 ;; 13006 esac 13007 ;; 13008 13009 bsdi[45]*) 13010 export_dynamic_flag_spec=-rdynamic 13011 ;; 13012 13013 cygwin* | mingw* | pw32* | cegcc*) 13014 # When not using gcc, we currently assume that we are using 13015 # Microsoft Visual C++. 13016 # hardcode_libdir_flag_spec is actually meaningless, as there is 13017 # no search path for DLLs. 13018 case $cc_basename in 13019 cl*) 13020 # Native MSVC 13021 hardcode_libdir_flag_spec=' ' 13022 allow_undefined_flag=unsupported 13023 always_export_symbols=yes 13024 file_list_spec='@' 13025 # Tell ltmain to make .lib files, not .a files. 13026 libext=lib 13027 # Tell ltmain to make .dll files, not .so files. 13028 shrext_cmds=".dll" 13029 # FIXME: Setting linknames here is a bad hack. 13030 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13031 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13032 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13033 else 13034 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13035 fi~ 13036 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13037 linknames=' 13038 # The linker will not automatically build a static lib if we build a DLL. 13039 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13040 enable_shared_with_static_runtimes=yes 13041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13042 # Don't use ranlib 13043 old_postinstall_cmds='chmod 644 $oldlib' 13044 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13045 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13046 case $lt_outputfile in 13047 *.exe|*.EXE) ;; 13048 *) 13049 lt_outputfile="$lt_outputfile.exe" 13050 lt_tool_outputfile="$lt_tool_outputfile.exe" 13051 ;; 13052 esac~ 13053 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13054 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13055 $RM "$lt_outputfile.manifest"; 13056 fi' 13057 ;; 13058 *) 13059 # Assume MSVC wrapper 13060 hardcode_libdir_flag_spec=' ' 13061 allow_undefined_flag=unsupported 13062 # Tell ltmain to make .lib files, not .a files. 13063 libext=lib 13064 # Tell ltmain to make .dll files, not .so files. 13065 shrext_cmds=".dll" 13066 # FIXME: Setting linknames here is a bad hack. 13067 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13068 # The linker will automatically build a .lib file if we build a DLL. 13069 old_archive_from_new_cmds='true' 13070 # FIXME: Should let the user specify the lib program. 13071 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13072 enable_shared_with_static_runtimes=yes 13073 ;; 13074 esac 13075 ;; 13076 13077 darwin* | rhapsody*) 13078 13079 13080 archive_cmds_need_lc=no 13081 hardcode_direct=no 13082 hardcode_automatic=yes 13083 hardcode_shlibpath_var=unsupported 13084 if test "$lt_cv_ld_force_load" = "yes"; then 13085 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\"`' 13086 else 13087 whole_archive_flag_spec='' 13088 fi 13089 link_all_deplibs=yes 13090 allow_undefined_flag="$_lt_dar_allow_undefined" 13091 case $cc_basename in 13092 ifort*) _lt_dar_can_shared=yes ;; 13093 *) _lt_dar_can_shared=$GCC ;; 13094 esac 13095 if test "$_lt_dar_can_shared" = "yes"; then 13096 output_verbose_link_cmd=func_echo_all 13097 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13098 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13099 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}" 13100 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}" 13101 13102 else 13103 ld_shlibs=no 13104 fi 13105 13106 ;; 13107 13108 dgux*) 13109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13110 hardcode_libdir_flag_spec='-L$libdir' 13111 hardcode_shlibpath_var=no 13112 ;; 13113 13114 freebsd1*) 13115 ld_shlibs=no 13116 ;; 13117 13118 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13119 # support. Future versions do this automatically, but an explicit c++rt0.o 13120 # does not break anything, and helps significantly (at the cost of a little 13121 # extra space). 13122 freebsd2.2*) 13123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13124 hardcode_libdir_flag_spec='-R$libdir' 13125 hardcode_direct=yes 13126 hardcode_shlibpath_var=no 13127 ;; 13128 13129 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13130 freebsd2*) 13131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13132 hardcode_direct=yes 13133 hardcode_minus_L=yes 13134 hardcode_shlibpath_var=no 13135 ;; 13136 13137 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13138 freebsd* | dragonfly*) 13139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13140 hardcode_libdir_flag_spec='-R$libdir' 13141 hardcode_direct=yes 13142 hardcode_shlibpath_var=no 13143 ;; 13144 13145 hpux9*) 13146 if test "$GCC" = yes; then 13147 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13148 else 13149 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13150 fi 13151 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 13152 hardcode_libdir_separator=: 13153 hardcode_direct=yes 13154 13155 # hardcode_minus_L: Not really in the search PATH, 13156 # but as the default location of the library. 13157 hardcode_minus_L=yes 13158 export_dynamic_flag_spec='${wl}-E' 13159 ;; 13160 13161 hpux10*) 13162 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 13163 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13164 else 13165 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13166 fi 13167 if test "$with_gnu_ld" = no; then 13168 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 13169 hardcode_libdir_flag_spec_ld='+b $libdir' 13170 hardcode_libdir_separator=: 13171 hardcode_direct=yes 13172 hardcode_direct_absolute=yes 13173 export_dynamic_flag_spec='${wl}-E' 13174 # hardcode_minus_L: Not really in the search PATH, 13175 # but as the default location of the library. 13176 hardcode_minus_L=yes 13177 fi 13178 ;; 13179 13180 hpux11*) 13181 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 13182 case $host_cpu in 13183 hppa*64*) 13184 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13185 ;; 13186 ia64*) 13187 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13188 ;; 13189 *) 13190 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13191 ;; 13192 esac 13193 else 13194 case $host_cpu in 13195 hppa*64*) 13196 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13197 ;; 13198 ia64*) 13199 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13200 ;; 13201 *) 13202 13203 # Older versions of the 11.00 compiler do not understand -b yet 13204 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13206$as_echo_n "checking if $CC understands -b... " >&6; } 13207if ${lt_cv_prog_compiler__b+:} false; then : 13208 $as_echo_n "(cached) " >&6 13209else 13210 lt_cv_prog_compiler__b=no 13211 save_LDFLAGS="$LDFLAGS" 13212 LDFLAGS="$LDFLAGS -b" 13213 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13214 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13215 # The linker can only warn and ignore the option if not recognized 13216 # So say no if there are warnings 13217 if test -s conftest.err; then 13218 # Append any errors to the config.log. 13219 cat conftest.err 1>&5 13220 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13222 if diff conftest.exp conftest.er2 >/dev/null; then 13223 lt_cv_prog_compiler__b=yes 13224 fi 13225 else 13226 lt_cv_prog_compiler__b=yes 13227 fi 13228 fi 13229 $RM -r conftest* 13230 LDFLAGS="$save_LDFLAGS" 13231 13232fi 13233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13234$as_echo "$lt_cv_prog_compiler__b" >&6; } 13235 13236if test x"$lt_cv_prog_compiler__b" = xyes; then 13237 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13238else 13239 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13240fi 13241 13242 ;; 13243 esac 13244 fi 13245 if test "$with_gnu_ld" = no; then 13246 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 13247 hardcode_libdir_separator=: 13248 13249 case $host_cpu in 13250 hppa*64*|ia64*) 13251 hardcode_direct=no 13252 hardcode_shlibpath_var=no 13253 ;; 13254 *) 13255 hardcode_direct=yes 13256 hardcode_direct_absolute=yes 13257 export_dynamic_flag_spec='${wl}-E' 13258 13259 # hardcode_minus_L: Not really in the search PATH, 13260 # but as the default location of the library. 13261 hardcode_minus_L=yes 13262 ;; 13263 esac 13264 fi 13265 ;; 13266 13267 irix5* | irix6* | nonstopux*) 13268 if test "$GCC" = yes; then 13269 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' 13270 # Try to use the -exported_symbol ld option, if it does not 13271 # work, assume that -exports_file does not work either and 13272 # implicitly export all symbols. 13273 # This should be the same for all languages, so no per-tag cache variable. 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13275$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13276if ${lt_cv_irix_exported_symbol+:} false; then : 13277 $as_echo_n "(cached) " >&6 13278else 13279 save_LDFLAGS="$LDFLAGS" 13280 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13282/* end confdefs.h. */ 13283int foo (void) { return 0; } 13284_ACEOF 13285if ac_fn_c_try_link "$LINENO"; then : 13286 lt_cv_irix_exported_symbol=yes 13287else 13288 lt_cv_irix_exported_symbol=no 13289fi 13290rm -f core conftest.err conftest.$ac_objext \ 13291 conftest$ac_exeext conftest.$ac_ext 13292 LDFLAGS="$save_LDFLAGS" 13293fi 13294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13295$as_echo "$lt_cv_irix_exported_symbol" >&6; } 13296 if test "$lt_cv_irix_exported_symbol" = yes; then 13297 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' 13298 fi 13299 else 13300 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' 13301 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' 13302 fi 13303 archive_cmds_need_lc='no' 13304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13305 hardcode_libdir_separator=: 13306 inherit_rpath=yes 13307 link_all_deplibs=yes 13308 ;; 13309 13310 netbsd* | netbsdelf*-gnu) 13311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13313 else 13314 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13315 fi 13316 hardcode_libdir_flag_spec='-R$libdir' 13317 hardcode_direct=yes 13318 hardcode_shlibpath_var=no 13319 ;; 13320 13321 newsos6) 13322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13323 hardcode_direct=yes 13324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13325 hardcode_libdir_separator=: 13326 hardcode_shlibpath_var=no 13327 ;; 13328 13329 *nto* | *qnx*) 13330 ;; 13331 13332 openbsd*) 13333 if test -f /usr/libexec/ld.so; then 13334 hardcode_direct=yes 13335 hardcode_shlibpath_var=no 13336 hardcode_direct_absolute=yes 13337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13339 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 13341 export_dynamic_flag_spec='${wl}-E' 13342 else 13343 case $host_os in 13344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13346 hardcode_libdir_flag_spec='-R$libdir' 13347 ;; 13348 *) 13349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 13351 ;; 13352 esac 13353 fi 13354 else 13355 ld_shlibs=no 13356 fi 13357 ;; 13358 13359 os2*) 13360 hardcode_libdir_flag_spec='-L$libdir' 13361 hardcode_minus_L=yes 13362 allow_undefined_flag=unsupported 13363 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 13364 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13365 ;; 13366 13367 osf3*) 13368 if test "$GCC" = yes; then 13369 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 13370 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' 13371 else 13372 allow_undefined_flag=' -expect_unresolved \*' 13373 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' 13374 fi 13375 archive_cmds_need_lc='no' 13376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13377 hardcode_libdir_separator=: 13378 ;; 13379 13380 osf4* | osf5*) # as osf3* with the addition of -msym flag 13381 if test "$GCC" = yes; then 13382 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 13383 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' 13384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13385 else 13386 allow_undefined_flag=' -expect_unresolved \*' 13387 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' 13388 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~ 13389 $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' 13390 13391 # Both c and cxx compiler support -rpath directly 13392 hardcode_libdir_flag_spec='-rpath $libdir' 13393 fi 13394 archive_cmds_need_lc='no' 13395 hardcode_libdir_separator=: 13396 ;; 13397 13398 solaris*) 13399 no_undefined_flag=' -z defs' 13400 if test "$GCC" = yes; then 13401 wlarc='${wl}' 13402 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13404 $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' 13405 else 13406 case `$CC -V 2>&1` in 13407 *"Compilers 5.0"*) 13408 wlarc='' 13409 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13412 ;; 13413 *) 13414 wlarc='${wl}' 13415 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13417 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13418 ;; 13419 esac 13420 fi 13421 hardcode_libdir_flag_spec='-R$libdir' 13422 hardcode_shlibpath_var=no 13423 case $host_os in 13424 solaris2.[0-5] | solaris2.[0-5].*) ;; 13425 *) 13426 # The compiler driver will combine and reorder linker options, 13427 # but understands `-z linker_flag'. GCC discards it without `$wl', 13428 # but is careful enough not to reorder. 13429 # Supported since Solaris 2.6 (maybe 2.5.1?) 13430 if test "$GCC" = yes; then 13431 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13432 else 13433 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13434 fi 13435 ;; 13436 esac 13437 link_all_deplibs=yes 13438 ;; 13439 13440 sunos4*) 13441 if test "x$host_vendor" = xsequent; then 13442 # Use $CC to link under sequent, because it throws in some extra .o 13443 # files that make .init and .fini sections work. 13444 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13445 else 13446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13447 fi 13448 hardcode_libdir_flag_spec='-L$libdir' 13449 hardcode_direct=yes 13450 hardcode_minus_L=yes 13451 hardcode_shlibpath_var=no 13452 ;; 13453 13454 sysv4) 13455 case $host_vendor in 13456 sni) 13457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13458 hardcode_direct=yes # is this really true??? 13459 ;; 13460 siemens) 13461 ## LD is ld it makes a PLAMLIB 13462 ## CC just makes a GrossModule. 13463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13464 reload_cmds='$CC -r -o $output$reload_objs' 13465 hardcode_direct=no 13466 ;; 13467 motorola) 13468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13470 ;; 13471 esac 13472 runpath_var='LD_RUN_PATH' 13473 hardcode_shlibpath_var=no 13474 ;; 13475 13476 sysv4.3*) 13477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13478 hardcode_shlibpath_var=no 13479 export_dynamic_flag_spec='-Bexport' 13480 ;; 13481 13482 sysv4*MP*) 13483 if test -d /usr/nec; then 13484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13485 hardcode_shlibpath_var=no 13486 runpath_var=LD_RUN_PATH 13487 hardcode_runpath_var=yes 13488 ld_shlibs=yes 13489 fi 13490 ;; 13491 13492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13493 no_undefined_flag='${wl}-z,text' 13494 archive_cmds_need_lc=no 13495 hardcode_shlibpath_var=no 13496 runpath_var='LD_RUN_PATH' 13497 13498 if test "$GCC" = yes; then 13499 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13500 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13501 else 13502 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13503 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13504 fi 13505 ;; 13506 13507 sysv5* | sco3.2v5* | sco5v6*) 13508 # Note: We can NOT use -z defs as we might desire, because we do not 13509 # link with -lc, and that would cause any symbols used from libc to 13510 # always be unresolved, which means just about no library would 13511 # ever link correctly. If we're not using GNU ld we use -z text 13512 # though, which does catch some bad symbols but isn't as heavy-handed 13513 # as -z defs. 13514 no_undefined_flag='${wl}-z,text' 13515 allow_undefined_flag='${wl}-z,nodefs' 13516 archive_cmds_need_lc=no 13517 hardcode_shlibpath_var=no 13518 hardcode_libdir_flag_spec='${wl}-R,$libdir' 13519 hardcode_libdir_separator=':' 13520 link_all_deplibs=yes 13521 export_dynamic_flag_spec='${wl}-Bexport' 13522 runpath_var='LD_RUN_PATH' 13523 13524 if test "$GCC" = yes; then 13525 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13527 else 13528 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13530 fi 13531 ;; 13532 13533 uts4*) 13534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13535 hardcode_libdir_flag_spec='-L$libdir' 13536 hardcode_shlibpath_var=no 13537 ;; 13538 13539 *) 13540 ld_shlibs=no 13541 ;; 13542 esac 13543 13544 if test x$host_vendor = xsni; then 13545 case $host in 13546 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13547 export_dynamic_flag_spec='${wl}-Blargedynsym' 13548 ;; 13549 esac 13550 fi 13551 fi 13552 13553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13554$as_echo "$ld_shlibs" >&6; } 13555test "$ld_shlibs" = no && can_build_shared=no 13556 13557with_gnu_ld=$with_gnu_ld 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573# 13574# Do we need to explicitly link libc? 13575# 13576case "x$archive_cmds_need_lc" in 13577x|xyes) 13578 # Assume -lc should be added 13579 archive_cmds_need_lc=yes 13580 13581 if test "$enable_shared" = yes && test "$GCC" = yes; then 13582 case $archive_cmds in 13583 *'~'*) 13584 # FIXME: we may have to deal with multi-command sequences. 13585 ;; 13586 '$CC '*) 13587 # Test whether the compiler implicitly links with -lc since on some 13588 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13589 # to ld, don't add -lc before -lgcc. 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13591$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13592if ${lt_cv_archive_cmds_need_lc+:} false; then : 13593 $as_echo_n "(cached) " >&6 13594else 13595 $RM conftest* 13596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13597 13598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13599 (eval $ac_compile) 2>&5 13600 ac_status=$? 13601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13602 test $ac_status = 0; } 2>conftest.err; then 13603 soname=conftest 13604 lib=conftest 13605 libobjs=conftest.$ac_objext 13606 deplibs= 13607 wl=$lt_prog_compiler_wl 13608 pic_flag=$lt_prog_compiler_pic 13609 compiler_flags=-v 13610 linker_flags=-v 13611 verstring= 13612 output_objdir=. 13613 libname=conftest 13614 lt_save_allow_undefined_flag=$allow_undefined_flag 13615 allow_undefined_flag= 13616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13617 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13618 ac_status=$? 13619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13620 test $ac_status = 0; } 13621 then 13622 lt_cv_archive_cmds_need_lc=no 13623 else 13624 lt_cv_archive_cmds_need_lc=yes 13625 fi 13626 allow_undefined_flag=$lt_save_allow_undefined_flag 13627 else 13628 cat conftest.err 1>&5 13629 fi 13630 $RM conftest* 13631 13632fi 13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13634$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13635 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13636 ;; 13637 esac 13638 fi 13639 ;; 13640esac 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13799$as_echo_n "checking dynamic linker characteristics... " >&6; } 13800 13801if test "$GCC" = yes; then 13802 case $host_os in 13803 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 13804 *) lt_awk_arg="/^libraries:/" ;; 13805 esac 13806 case $host_os in 13807 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 13808 *) lt_sed_strip_eq="s,=/,/,g" ;; 13809 esac 13810 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13811 case $lt_search_path_spec in 13812 *\;*) 13813 # if the path contains ";" then we assume it to be the separator 13814 # otherwise default to the standard path separator (i.e. ":") - it is 13815 # assumed that no part of a normal pathname contains ";" but that should 13816 # okay in the real world where ";" in dirpaths is itself problematic. 13817 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13818 ;; 13819 *) 13820 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13821 ;; 13822 esac 13823 # Ok, now we have the path, separated by spaces, we can step through it 13824 # and add multilib dir if necessary. 13825 lt_tmp_lt_search_path_spec= 13826 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13827 for lt_sys_path in $lt_search_path_spec; do 13828 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 13829 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 13830 else 13831 test -d "$lt_sys_path" && \ 13832 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13833 fi 13834 done 13835 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13836BEGIN {RS=" "; FS="/|\n";} { 13837 lt_foo=""; 13838 lt_count=0; 13839 for (lt_i = NF; lt_i > 0; lt_i--) { 13840 if ($lt_i != "" && $lt_i != ".") { 13841 if ($lt_i == "..") { 13842 lt_count++; 13843 } else { 13844 if (lt_count == 0) { 13845 lt_foo="/" $lt_i lt_foo; 13846 } else { 13847 lt_count--; 13848 } 13849 } 13850 } 13851 } 13852 if (lt_foo != "") { lt_freq[lt_foo]++; } 13853 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13854}'` 13855 # AWK program above erroneously prepends '/' to C:/dos/paths 13856 # for these hosts. 13857 case $host_os in 13858 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13859 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 13860 esac 13861 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13862else 13863 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13864fi 13865library_names_spec= 13866libname_spec='lib$name' 13867soname_spec= 13868shrext_cmds=".so" 13869postinstall_cmds= 13870postuninstall_cmds= 13871finish_cmds= 13872finish_eval= 13873shlibpath_var= 13874shlibpath_overrides_runpath=unknown 13875version_type=none 13876dynamic_linker="$host_os ld.so" 13877sys_lib_dlsearch_path_spec="/lib /usr/lib" 13878need_lib_prefix=unknown 13879hardcode_into_libs=no 13880 13881# when you set need_version to no, make sure it does not cause -set_version 13882# flags to be left without arguments 13883need_version=unknown 13884 13885case $host_os in 13886aix3*) 13887 version_type=linux 13888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13889 shlibpath_var=LIBPATH 13890 13891 # AIX 3 has no versioning support, so we append a major version to the name. 13892 soname_spec='${libname}${release}${shared_ext}$major' 13893 ;; 13894 13895aix[4-9]*) 13896 version_type=linux 13897 need_lib_prefix=no 13898 need_version=no 13899 hardcode_into_libs=yes 13900 if test "$host_cpu" = ia64; then 13901 # AIX 5 supports IA64 13902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13903 shlibpath_var=LD_LIBRARY_PATH 13904 else 13905 # With GCC up to 2.95.x, collect2 would create an import file 13906 # for dependence libraries. The import file would start with 13907 # the line `#! .'. This would cause the generated library to 13908 # depend on `.', always an invalid library. This was fixed in 13909 # development snapshots of GCC prior to 3.0. 13910 case $host_os in 13911 aix4 | aix4.[01] | aix4.[01].*) 13912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13913 echo ' yes ' 13914 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13915 : 13916 else 13917 can_build_shared=no 13918 fi 13919 ;; 13920 esac 13921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13922 # soname into executable. Probably we can add versioning support to 13923 # collect2, so additional links can be useful in future. 13924 if test "$aix_use_runtimelinking" = yes; then 13925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13926 # instead of lib<name>.a to let people know that these are not 13927 # typical AIX shared libraries. 13928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13929 else 13930 # We preserve .a as extension for shared libraries through AIX4.2 13931 # and later when we are not doing run time linking. 13932 library_names_spec='${libname}${release}.a $libname.a' 13933 soname_spec='${libname}${release}${shared_ext}$major' 13934 fi 13935 shlibpath_var=LIBPATH 13936 fi 13937 ;; 13938 13939amigaos*) 13940 case $host_cpu in 13941 powerpc) 13942 # Since July 2007 AmigaOS4 officially supports .so libraries. 13943 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13945 ;; 13946 m68k) 13947 library_names_spec='$libname.ixlibrary $libname.a' 13948 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13949 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13950 ;; 13951 esac 13952 ;; 13953 13954beos*) 13955 library_names_spec='${libname}${shared_ext}' 13956 dynamic_linker="$host_os ld.so" 13957 shlibpath_var=LIBRARY_PATH 13958 ;; 13959 13960bsdi[45]*) 13961 version_type=linux 13962 need_version=no 13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13964 soname_spec='${libname}${release}${shared_ext}$major' 13965 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13966 shlibpath_var=LD_LIBRARY_PATH 13967 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13968 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13969 # the default ld.so.conf also contains /usr/contrib/lib and 13970 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13971 # libtool to hard-code these into programs 13972 ;; 13973 13974cygwin* | mingw* | pw32* | cegcc*) 13975 version_type=windows 13976 shrext_cmds=".dll" 13977 need_version=no 13978 need_lib_prefix=no 13979 13980 case $GCC,$cc_basename in 13981 yes,*) 13982 # gcc 13983 library_names_spec='$libname.dll.a' 13984 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13985 postinstall_cmds='base_file=`basename \${file}`~ 13986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13987 dldir=$destdir/`dirname \$dlpath`~ 13988 test -d \$dldir || mkdir -p \$dldir~ 13989 $install_prog $dir/$dlname \$dldir/$dlname~ 13990 chmod a+x \$dldir/$dlname~ 13991 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13992 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13993 fi' 13994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13995 dlpath=$dir/\$dldll~ 13996 $RM \$dlpath' 13997 shlibpath_overrides_runpath=yes 13998 13999 case $host_os in 14000 cygwin*) 14001 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14002 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14003 14004 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14005 ;; 14006 mingw* | cegcc*) 14007 # MinGW DLLs use traditional 'lib' prefix 14008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14009 ;; 14010 pw32*) 14011 # pw32 DLLs use 'pw' prefix rather than 'lib' 14012 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14013 ;; 14014 esac 14015 dynamic_linker='Win32 ld.exe' 14016 ;; 14017 14018 *,cl*) 14019 # Native MSVC 14020 libname_spec='$name' 14021 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14022 library_names_spec='${libname}.dll.lib' 14023 14024 case $build_os in 14025 mingw*) 14026 sys_lib_search_path_spec= 14027 lt_save_ifs=$IFS 14028 IFS=';' 14029 for lt_path in $LIB 14030 do 14031 IFS=$lt_save_ifs 14032 # Let DOS variable expansion print the short 8.3 style file name. 14033 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14034 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14035 done 14036 IFS=$lt_save_ifs 14037 # Convert to MSYS style. 14038 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14039 ;; 14040 cygwin*) 14041 # Convert to unix form, then to dos form, then back to unix form 14042 # but this time dos style (no spaces!) so that the unix form looks 14043 # like /cygdrive/c/PROGRA~1:/cygdr... 14044 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14045 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14046 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14047 ;; 14048 *) 14049 sys_lib_search_path_spec="$LIB" 14050 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14051 # It is most probably a Windows format PATH. 14052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14053 else 14054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14055 fi 14056 # FIXME: find the short name or the path components, as spaces are 14057 # common. (e.g. "Program Files" -> "PROGRA~1") 14058 ;; 14059 esac 14060 14061 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14062 postinstall_cmds='base_file=`basename \${file}`~ 14063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14064 dldir=$destdir/`dirname \$dlpath`~ 14065 test -d \$dldir || mkdir -p \$dldir~ 14066 $install_prog $dir/$dlname \$dldir/$dlname' 14067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14068 dlpath=$dir/\$dldll~ 14069 $RM \$dlpath' 14070 shlibpath_overrides_runpath=yes 14071 dynamic_linker='Win32 link.exe' 14072 ;; 14073 14074 *) 14075 # Assume MSVC wrapper 14076 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14077 dynamic_linker='Win32 ld.exe' 14078 ;; 14079 esac 14080 # FIXME: first we should search . and the directory the executable is in 14081 shlibpath_var=PATH 14082 ;; 14083 14084darwin* | rhapsody*) 14085 dynamic_linker="$host_os dyld" 14086 version_type=darwin 14087 need_lib_prefix=no 14088 need_version=no 14089 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14090 soname_spec='${libname}${release}${major}$shared_ext' 14091 shlibpath_overrides_runpath=yes 14092 shlibpath_var=DYLD_LIBRARY_PATH 14093 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14094 14095 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14096 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14097 ;; 14098 14099dgux*) 14100 version_type=linux 14101 need_lib_prefix=no 14102 need_version=no 14103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14104 soname_spec='${libname}${release}${shared_ext}$major' 14105 shlibpath_var=LD_LIBRARY_PATH 14106 ;; 14107 14108freebsd1*) 14109 dynamic_linker=no 14110 ;; 14111 14112freebsd* | dragonfly*) 14113 # DragonFly does not have aout. When/if they implement a new 14114 # versioning mechanism, adjust this. 14115 if test -x /usr/bin/objformat; then 14116 objformat=`/usr/bin/objformat` 14117 else 14118 case $host_os in 14119 freebsd[123]*) objformat=aout ;; 14120 *) objformat=elf ;; 14121 esac 14122 fi 14123 version_type=freebsd-$objformat 14124 case $version_type in 14125 freebsd-elf*) 14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14127 need_version=no 14128 need_lib_prefix=no 14129 ;; 14130 freebsd-*) 14131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14132 need_version=yes 14133 ;; 14134 esac 14135 shlibpath_var=LD_LIBRARY_PATH 14136 case $host_os in 14137 freebsd2*) 14138 shlibpath_overrides_runpath=yes 14139 ;; 14140 freebsd3.[01]* | freebsdelf3.[01]*) 14141 shlibpath_overrides_runpath=yes 14142 hardcode_into_libs=yes 14143 ;; 14144 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14145 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14146 shlibpath_overrides_runpath=no 14147 hardcode_into_libs=yes 14148 ;; 14149 *) # from 4.6 on, and DragonFly 14150 shlibpath_overrides_runpath=yes 14151 hardcode_into_libs=yes 14152 ;; 14153 esac 14154 ;; 14155 14156gnu*) 14157 version_type=linux 14158 need_lib_prefix=no 14159 need_version=no 14160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14161 soname_spec='${libname}${release}${shared_ext}$major' 14162 shlibpath_var=LD_LIBRARY_PATH 14163 shlibpath_overrides_runpath=no 14164 hardcode_into_libs=yes 14165 ;; 14166 14167haiku*) 14168 version_type=linux 14169 need_lib_prefix=no 14170 need_version=no 14171 dynamic_linker="$host_os runtime_loader" 14172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14173 soname_spec='${libname}${release}${shared_ext}$major' 14174 shlibpath_var=LIBRARY_PATH 14175 shlibpath_overrides_runpath=yes 14176 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14177 hardcode_into_libs=yes 14178 ;; 14179 14180hpux9* | hpux10* | hpux11*) 14181 # Give a soname corresponding to the major version so that dld.sl refuses to 14182 # link against other versions. 14183 version_type=sunos 14184 need_lib_prefix=no 14185 need_version=no 14186 case $host_cpu in 14187 ia64*) 14188 shrext_cmds='.so' 14189 hardcode_into_libs=yes 14190 dynamic_linker="$host_os dld.so" 14191 shlibpath_var=LD_LIBRARY_PATH 14192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14194 soname_spec='${libname}${release}${shared_ext}$major' 14195 if test "X$HPUX_IA64_MODE" = X32; then 14196 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14197 else 14198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14199 fi 14200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14201 ;; 14202 hppa*64*) 14203 shrext_cmds='.sl' 14204 hardcode_into_libs=yes 14205 dynamic_linker="$host_os dld.sl" 14206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14209 soname_spec='${libname}${release}${shared_ext}$major' 14210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14212 ;; 14213 *) 14214 shrext_cmds='.sl' 14215 dynamic_linker="$host_os dld.sl" 14216 shlibpath_var=SHLIB_PATH 14217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14219 soname_spec='${libname}${release}${shared_ext}$major' 14220 ;; 14221 esac 14222 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14223 postinstall_cmds='chmod 555 $lib' 14224 # or fails outright, so override atomically: 14225 install_override_mode=555 14226 ;; 14227 14228interix[3-9]*) 14229 version_type=linux 14230 need_lib_prefix=no 14231 need_version=no 14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14233 soname_spec='${libname}${release}${shared_ext}$major' 14234 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14235 shlibpath_var=LD_LIBRARY_PATH 14236 shlibpath_overrides_runpath=no 14237 hardcode_into_libs=yes 14238 ;; 14239 14240irix5* | irix6* | nonstopux*) 14241 case $host_os in 14242 nonstopux*) version_type=nonstopux ;; 14243 *) 14244 if test "$lt_cv_prog_gnu_ld" = yes; then 14245 version_type=linux 14246 else 14247 version_type=irix 14248 fi ;; 14249 esac 14250 need_lib_prefix=no 14251 need_version=no 14252 soname_spec='${libname}${release}${shared_ext}$major' 14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14254 case $host_os in 14255 irix5* | nonstopux*) 14256 libsuff= shlibsuff= 14257 ;; 14258 *) 14259 case $LD in # libtool.m4 will add one of these switches to LD 14260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14261 libsuff= shlibsuff= libmagic=32-bit;; 14262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14263 libsuff=32 shlibsuff=N32 libmagic=N32;; 14264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14265 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14266 *) libsuff= shlibsuff= libmagic=never-match;; 14267 esac 14268 ;; 14269 esac 14270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14271 shlibpath_overrides_runpath=no 14272 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14273 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14274 hardcode_into_libs=yes 14275 ;; 14276 14277# No shared lib support for Linux oldld, aout, or coff. 14278linux*oldld* | linux*aout* | linux*coff*) 14279 dynamic_linker=no 14280 ;; 14281 14282# This must be Linux ELF. 14283linux* | k*bsd*-gnu | kopensolaris*-gnu) 14284 version_type=linux 14285 need_lib_prefix=no 14286 need_version=no 14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14288 soname_spec='${libname}${release}${shared_ext}$major' 14289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14290 shlibpath_var=LD_LIBRARY_PATH 14291 shlibpath_overrides_runpath=no 14292 14293 # Some binutils ld are patched to set DT_RUNPATH 14294 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14295 $as_echo_n "(cached) " >&6 14296else 14297 lt_cv_shlibpath_overrides_runpath=no 14298 save_LDFLAGS=$LDFLAGS 14299 save_libdir=$libdir 14300 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14301 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14303/* end confdefs.h. */ 14304 14305int 14306main () 14307{ 14308 14309 ; 14310 return 0; 14311} 14312_ACEOF 14313if ac_fn_c_try_link "$LINENO"; then : 14314 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14315 lt_cv_shlibpath_overrides_runpath=yes 14316fi 14317fi 14318rm -f core conftest.err conftest.$ac_objext \ 14319 conftest$ac_exeext conftest.$ac_ext 14320 LDFLAGS=$save_LDFLAGS 14321 libdir=$save_libdir 14322 14323fi 14324 14325 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14326 14327 # This implies no fast_install, which is unacceptable. 14328 # Some rework will be needed to allow for fast_install 14329 # before this can be enabled. 14330 hardcode_into_libs=yes 14331 14332 # Append ld.so.conf contents to the search path 14333 if test -f /etc/ld.so.conf; then 14334 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' ' '` 14335 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14336 fi 14337 14338 # We used to test for /lib/ld.so.1 and disable shared libraries on 14339 # powerpc, because MkLinux only supported shared libraries with the 14340 # GNU dynamic linker. Since this was broken with cross compilers, 14341 # most powerpc-linux boxes support dynamic linking these days and 14342 # people can always --disable-shared, the test was removed, and we 14343 # assume the GNU/Linux dynamic linker is in use. 14344 dynamic_linker='GNU/Linux ld.so' 14345 ;; 14346 14347netbsdelf*-gnu) 14348 version_type=linux 14349 need_lib_prefix=no 14350 need_version=no 14351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14352 soname_spec='${libname}${release}${shared_ext}$major' 14353 shlibpath_var=LD_LIBRARY_PATH 14354 shlibpath_overrides_runpath=no 14355 hardcode_into_libs=yes 14356 dynamic_linker='NetBSD ld.elf_so' 14357 ;; 14358 14359netbsd*) 14360 version_type=sunos 14361 need_lib_prefix=no 14362 need_version=no 14363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14366 dynamic_linker='NetBSD (a.out) ld.so' 14367 else 14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14369 soname_spec='${libname}${release}${shared_ext}$major' 14370 dynamic_linker='NetBSD ld.elf_so' 14371 fi 14372 shlibpath_var=LD_LIBRARY_PATH 14373 shlibpath_overrides_runpath=yes 14374 hardcode_into_libs=yes 14375 ;; 14376 14377newsos6) 14378 version_type=linux 14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14380 shlibpath_var=LD_LIBRARY_PATH 14381 shlibpath_overrides_runpath=yes 14382 ;; 14383 14384*nto* | *qnx*) 14385 version_type=qnx 14386 need_lib_prefix=no 14387 need_version=no 14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14389 soname_spec='${libname}${release}${shared_ext}$major' 14390 shlibpath_var=LD_LIBRARY_PATH 14391 shlibpath_overrides_runpath=no 14392 hardcode_into_libs=yes 14393 dynamic_linker='ldqnx.so' 14394 ;; 14395 14396openbsd*) 14397 version_type=sunos 14398 sys_lib_dlsearch_path_spec="/usr/lib" 14399 need_lib_prefix=no 14400 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14401 case $host_os in 14402 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14403 *) need_version=no ;; 14404 esac 14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14407 shlibpath_var=LD_LIBRARY_PATH 14408 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14409 case $host_os in 14410 openbsd2.[89] | openbsd2.[89].*) 14411 shlibpath_overrides_runpath=no 14412 ;; 14413 *) 14414 shlibpath_overrides_runpath=yes 14415 ;; 14416 esac 14417 else 14418 shlibpath_overrides_runpath=yes 14419 fi 14420 ;; 14421 14422os2*) 14423 libname_spec='$name' 14424 shrext_cmds=".dll" 14425 need_lib_prefix=no 14426 library_names_spec='$libname${shared_ext} $libname.a' 14427 dynamic_linker='OS/2 ld.exe' 14428 shlibpath_var=LIBPATH 14429 ;; 14430 14431osf3* | osf4* | osf5*) 14432 version_type=osf 14433 need_lib_prefix=no 14434 need_version=no 14435 soname_spec='${libname}${release}${shared_ext}$major' 14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14437 shlibpath_var=LD_LIBRARY_PATH 14438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14439 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14440 ;; 14441 14442rdos*) 14443 dynamic_linker=no 14444 ;; 14445 14446solaris*) 14447 version_type=linux 14448 need_lib_prefix=no 14449 need_version=no 14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14451 soname_spec='${libname}${release}${shared_ext}$major' 14452 shlibpath_var=LD_LIBRARY_PATH 14453 shlibpath_overrides_runpath=yes 14454 hardcode_into_libs=yes 14455 # ldd complains unless libraries are executable 14456 postinstall_cmds='chmod +x $lib' 14457 ;; 14458 14459sunos4*) 14460 version_type=sunos 14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14463 shlibpath_var=LD_LIBRARY_PATH 14464 shlibpath_overrides_runpath=yes 14465 if test "$with_gnu_ld" = yes; then 14466 need_lib_prefix=no 14467 fi 14468 need_version=yes 14469 ;; 14470 14471sysv4 | sysv4.3*) 14472 version_type=linux 14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14474 soname_spec='${libname}${release}${shared_ext}$major' 14475 shlibpath_var=LD_LIBRARY_PATH 14476 case $host_vendor in 14477 sni) 14478 shlibpath_overrides_runpath=no 14479 need_lib_prefix=no 14480 runpath_var=LD_RUN_PATH 14481 ;; 14482 siemens) 14483 need_lib_prefix=no 14484 ;; 14485 motorola) 14486 need_lib_prefix=no 14487 need_version=no 14488 shlibpath_overrides_runpath=no 14489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14490 ;; 14491 esac 14492 ;; 14493 14494sysv4*MP*) 14495 if test -d /usr/nec ;then 14496 version_type=linux 14497 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14498 soname_spec='$libname${shared_ext}.$major' 14499 shlibpath_var=LD_LIBRARY_PATH 14500 fi 14501 ;; 14502 14503sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14504 version_type=freebsd-elf 14505 need_lib_prefix=no 14506 need_version=no 14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14508 soname_spec='${libname}${release}${shared_ext}$major' 14509 shlibpath_var=LD_LIBRARY_PATH 14510 shlibpath_overrides_runpath=yes 14511 hardcode_into_libs=yes 14512 if test "$with_gnu_ld" = yes; then 14513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14514 else 14515 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14516 case $host_os in 14517 sco3.2v5*) 14518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14519 ;; 14520 esac 14521 fi 14522 sys_lib_dlsearch_path_spec='/usr/lib' 14523 ;; 14524 14525tpf*) 14526 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14527 version_type=linux 14528 need_lib_prefix=no 14529 need_version=no 14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14531 shlibpath_var=LD_LIBRARY_PATH 14532 shlibpath_overrides_runpath=no 14533 hardcode_into_libs=yes 14534 ;; 14535 14536uts4*) 14537 version_type=linux 14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14539 soname_spec='${libname}${release}${shared_ext}$major' 14540 shlibpath_var=LD_LIBRARY_PATH 14541 ;; 14542 14543*) 14544 dynamic_linker=no 14545 ;; 14546esac 14547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14548$as_echo "$dynamic_linker" >&6; } 14549test "$dynamic_linker" = no && can_build_shared=no 14550 14551variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14552if test "$GCC" = yes; then 14553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14554fi 14555 14556if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14557 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14558fi 14559if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14560 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14561fi 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14655$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14656hardcode_action= 14657if test -n "$hardcode_libdir_flag_spec" || 14658 test -n "$runpath_var" || 14659 test "X$hardcode_automatic" = "Xyes" ; then 14660 14661 # We can hardcode non-existent directories. 14662 if test "$hardcode_direct" != no && 14663 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14664 # have to relink, otherwise we might link with an installed library 14665 # when we should be linking with a yet-to-be-installed one 14666 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 14667 test "$hardcode_minus_L" != no; then 14668 # Linking always hardcodes the temporary library directory. 14669 hardcode_action=relink 14670 else 14671 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14672 hardcode_action=immediate 14673 fi 14674else 14675 # We cannot hardcode anything, or else we can only hardcode existing 14676 # directories. 14677 hardcode_action=unsupported 14678fi 14679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14680$as_echo "$hardcode_action" >&6; } 14681 14682if test "$hardcode_action" = relink || 14683 test "$inherit_rpath" = yes; then 14684 # Fast installation is not supported 14685 enable_fast_install=no 14686elif test "$shlibpath_overrides_runpath" = yes || 14687 test "$enable_shared" = no; then 14688 # Fast installation is not necessary 14689 enable_fast_install=needless 14690fi 14691 14692 14693 14694 14695 14696 14697 if test "x$enable_dlopen" != xyes; then 14698 enable_dlopen=unknown 14699 enable_dlopen_self=unknown 14700 enable_dlopen_self_static=unknown 14701else 14702 lt_cv_dlopen=no 14703 lt_cv_dlopen_libs= 14704 14705 case $host_os in 14706 beos*) 14707 lt_cv_dlopen="load_add_on" 14708 lt_cv_dlopen_libs= 14709 lt_cv_dlopen_self=yes 14710 ;; 14711 14712 mingw* | pw32* | cegcc*) 14713 lt_cv_dlopen="LoadLibrary" 14714 lt_cv_dlopen_libs= 14715 ;; 14716 14717 cygwin*) 14718 lt_cv_dlopen="dlopen" 14719 lt_cv_dlopen_libs= 14720 ;; 14721 14722 darwin*) 14723 # if libdl is installed we need to link against it 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14725$as_echo_n "checking for dlopen in -ldl... " >&6; } 14726if ${ac_cv_lib_dl_dlopen+:} false; then : 14727 $as_echo_n "(cached) " >&6 14728else 14729 ac_check_lib_save_LIBS=$LIBS 14730LIBS="-ldl $LIBS" 14731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14732/* end confdefs.h. */ 14733 14734/* Override any GCC internal prototype to avoid an error. 14735 Use char because int might match the return type of a GCC 14736 builtin and then its argument prototype would still apply. */ 14737#ifdef __cplusplus 14738extern "C" 14739#endif 14740char dlopen (); 14741int 14742main () 14743{ 14744return dlopen (); 14745 ; 14746 return 0; 14747} 14748_ACEOF 14749if ac_fn_c_try_link "$LINENO"; then : 14750 ac_cv_lib_dl_dlopen=yes 14751else 14752 ac_cv_lib_dl_dlopen=no 14753fi 14754rm -f core conftest.err conftest.$ac_objext \ 14755 conftest$ac_exeext conftest.$ac_ext 14756LIBS=$ac_check_lib_save_LIBS 14757fi 14758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14759$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14760if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14762else 14763 14764 lt_cv_dlopen="dyld" 14765 lt_cv_dlopen_libs= 14766 lt_cv_dlopen_self=yes 14767 14768fi 14769 14770 ;; 14771 14772 *) 14773 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14774if test "x$ac_cv_func_shl_load" = xyes; then : 14775 lt_cv_dlopen="shl_load" 14776else 14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14778$as_echo_n "checking for shl_load in -ldld... " >&6; } 14779if ${ac_cv_lib_dld_shl_load+:} false; then : 14780 $as_echo_n "(cached) " >&6 14781else 14782 ac_check_lib_save_LIBS=$LIBS 14783LIBS="-ldld $LIBS" 14784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14785/* end confdefs.h. */ 14786 14787/* Override any GCC internal prototype to avoid an error. 14788 Use char because int might match the return type of a GCC 14789 builtin and then its argument prototype would still apply. */ 14790#ifdef __cplusplus 14791extern "C" 14792#endif 14793char shl_load (); 14794int 14795main () 14796{ 14797return shl_load (); 14798 ; 14799 return 0; 14800} 14801_ACEOF 14802if ac_fn_c_try_link "$LINENO"; then : 14803 ac_cv_lib_dld_shl_load=yes 14804else 14805 ac_cv_lib_dld_shl_load=no 14806fi 14807rm -f core conftest.err conftest.$ac_objext \ 14808 conftest$ac_exeext conftest.$ac_ext 14809LIBS=$ac_check_lib_save_LIBS 14810fi 14811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14812$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14813if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14814 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 14815else 14816 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14817if test "x$ac_cv_func_dlopen" = xyes; then : 14818 lt_cv_dlopen="dlopen" 14819else 14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14821$as_echo_n "checking for dlopen in -ldl... " >&6; } 14822if ${ac_cv_lib_dl_dlopen+:} false; then : 14823 $as_echo_n "(cached) " >&6 14824else 14825 ac_check_lib_save_LIBS=$LIBS 14826LIBS="-ldl $LIBS" 14827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14828/* end confdefs.h. */ 14829 14830/* Override any GCC internal prototype to avoid an error. 14831 Use char because int might match the return type of a GCC 14832 builtin and then its argument prototype would still apply. */ 14833#ifdef __cplusplus 14834extern "C" 14835#endif 14836char dlopen (); 14837int 14838main () 14839{ 14840return dlopen (); 14841 ; 14842 return 0; 14843} 14844_ACEOF 14845if ac_fn_c_try_link "$LINENO"; then : 14846 ac_cv_lib_dl_dlopen=yes 14847else 14848 ac_cv_lib_dl_dlopen=no 14849fi 14850rm -f core conftest.err conftest.$ac_objext \ 14851 conftest$ac_exeext conftest.$ac_ext 14852LIBS=$ac_check_lib_save_LIBS 14853fi 14854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14855$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14856if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14857 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14858else 14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14860$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14861if ${ac_cv_lib_svld_dlopen+:} false; then : 14862 $as_echo_n "(cached) " >&6 14863else 14864 ac_check_lib_save_LIBS=$LIBS 14865LIBS="-lsvld $LIBS" 14866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14867/* end confdefs.h. */ 14868 14869/* Override any GCC internal prototype to avoid an error. 14870 Use char because int might match the return type of a GCC 14871 builtin and then its argument prototype would still apply. */ 14872#ifdef __cplusplus 14873extern "C" 14874#endif 14875char dlopen (); 14876int 14877main () 14878{ 14879return dlopen (); 14880 ; 14881 return 0; 14882} 14883_ACEOF 14884if ac_fn_c_try_link "$LINENO"; then : 14885 ac_cv_lib_svld_dlopen=yes 14886else 14887 ac_cv_lib_svld_dlopen=no 14888fi 14889rm -f core conftest.err conftest.$ac_objext \ 14890 conftest$ac_exeext conftest.$ac_ext 14891LIBS=$ac_check_lib_save_LIBS 14892fi 14893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14894$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14895if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 14897else 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14899$as_echo_n "checking for dld_link in -ldld... " >&6; } 14900if ${ac_cv_lib_dld_dld_link+:} false; then : 14901 $as_echo_n "(cached) " >&6 14902else 14903 ac_check_lib_save_LIBS=$LIBS 14904LIBS="-ldld $LIBS" 14905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14906/* end confdefs.h. */ 14907 14908/* Override any GCC internal prototype to avoid an error. 14909 Use char because int might match the return type of a GCC 14910 builtin and then its argument prototype would still apply. */ 14911#ifdef __cplusplus 14912extern "C" 14913#endif 14914char dld_link (); 14915int 14916main () 14917{ 14918return dld_link (); 14919 ; 14920 return 0; 14921} 14922_ACEOF 14923if ac_fn_c_try_link "$LINENO"; then : 14924 ac_cv_lib_dld_dld_link=yes 14925else 14926 ac_cv_lib_dld_dld_link=no 14927fi 14928rm -f core conftest.err conftest.$ac_objext \ 14929 conftest$ac_exeext conftest.$ac_ext 14930LIBS=$ac_check_lib_save_LIBS 14931fi 14932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14933$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14934if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14935 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 14936fi 14937 14938 14939fi 14940 14941 14942fi 14943 14944 14945fi 14946 14947 14948fi 14949 14950 14951fi 14952 14953 ;; 14954 esac 14955 14956 if test "x$lt_cv_dlopen" != xno; then 14957 enable_dlopen=yes 14958 else 14959 enable_dlopen=no 14960 fi 14961 14962 case $lt_cv_dlopen in 14963 dlopen) 14964 save_CPPFLAGS="$CPPFLAGS" 14965 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14966 14967 save_LDFLAGS="$LDFLAGS" 14968 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14969 14970 save_LIBS="$LIBS" 14971 LIBS="$lt_cv_dlopen_libs $LIBS" 14972 14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14974$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14975if ${lt_cv_dlopen_self+:} false; then : 14976 $as_echo_n "(cached) " >&6 14977else 14978 if test "$cross_compiling" = yes; then : 14979 lt_cv_dlopen_self=cross 14980else 14981 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14982 lt_status=$lt_dlunknown 14983 cat > conftest.$ac_ext <<_LT_EOF 14984#line $LINENO "configure" 14985#include "confdefs.h" 14986 14987#if HAVE_DLFCN_H 14988#include <dlfcn.h> 14989#endif 14990 14991#include <stdio.h> 14992 14993#ifdef RTLD_GLOBAL 14994# define LT_DLGLOBAL RTLD_GLOBAL 14995#else 14996# ifdef DL_GLOBAL 14997# define LT_DLGLOBAL DL_GLOBAL 14998# else 14999# define LT_DLGLOBAL 0 15000# endif 15001#endif 15002 15003/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15004 find out it does not work in some platform. */ 15005#ifndef LT_DLLAZY_OR_NOW 15006# ifdef RTLD_LAZY 15007# define LT_DLLAZY_OR_NOW RTLD_LAZY 15008# else 15009# ifdef DL_LAZY 15010# define LT_DLLAZY_OR_NOW DL_LAZY 15011# else 15012# ifdef RTLD_NOW 15013# define LT_DLLAZY_OR_NOW RTLD_NOW 15014# else 15015# ifdef DL_NOW 15016# define LT_DLLAZY_OR_NOW DL_NOW 15017# else 15018# define LT_DLLAZY_OR_NOW 0 15019# endif 15020# endif 15021# endif 15022# endif 15023#endif 15024 15025/* When -fvisbility=hidden is used, assume the code has been annotated 15026 correspondingly for the symbols needed. */ 15027#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15028int fnord () __attribute__((visibility("default"))); 15029#endif 15030 15031int fnord () { return 42; } 15032int main () 15033{ 15034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15035 int status = $lt_dlunknown; 15036 15037 if (self) 15038 { 15039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15040 else 15041 { 15042 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15043 else puts (dlerror ()); 15044 } 15045 /* dlclose (self); */ 15046 } 15047 else 15048 puts (dlerror ()); 15049 15050 return status; 15051} 15052_LT_EOF 15053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15054 (eval $ac_link) 2>&5 15055 ac_status=$? 15056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15057 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 15058 (./conftest; exit; ) >&5 2>/dev/null 15059 lt_status=$? 15060 case x$lt_status in 15061 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15062 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15063 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15064 esac 15065 else : 15066 # compilation failed 15067 lt_cv_dlopen_self=no 15068 fi 15069fi 15070rm -fr conftest* 15071 15072 15073fi 15074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15075$as_echo "$lt_cv_dlopen_self" >&6; } 15076 15077 if test "x$lt_cv_dlopen_self" = xyes; then 15078 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15080$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15081if ${lt_cv_dlopen_self_static+:} false; then : 15082 $as_echo_n "(cached) " >&6 15083else 15084 if test "$cross_compiling" = yes; then : 15085 lt_cv_dlopen_self_static=cross 15086else 15087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15088 lt_status=$lt_dlunknown 15089 cat > conftest.$ac_ext <<_LT_EOF 15090#line $LINENO "configure" 15091#include "confdefs.h" 15092 15093#if HAVE_DLFCN_H 15094#include <dlfcn.h> 15095#endif 15096 15097#include <stdio.h> 15098 15099#ifdef RTLD_GLOBAL 15100# define LT_DLGLOBAL RTLD_GLOBAL 15101#else 15102# ifdef DL_GLOBAL 15103# define LT_DLGLOBAL DL_GLOBAL 15104# else 15105# define LT_DLGLOBAL 0 15106# endif 15107#endif 15108 15109/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15110 find out it does not work in some platform. */ 15111#ifndef LT_DLLAZY_OR_NOW 15112# ifdef RTLD_LAZY 15113# define LT_DLLAZY_OR_NOW RTLD_LAZY 15114# else 15115# ifdef DL_LAZY 15116# define LT_DLLAZY_OR_NOW DL_LAZY 15117# else 15118# ifdef RTLD_NOW 15119# define LT_DLLAZY_OR_NOW RTLD_NOW 15120# else 15121# ifdef DL_NOW 15122# define LT_DLLAZY_OR_NOW DL_NOW 15123# else 15124# define LT_DLLAZY_OR_NOW 0 15125# endif 15126# endif 15127# endif 15128# endif 15129#endif 15130 15131/* When -fvisbility=hidden is used, assume the code has been annotated 15132 correspondingly for the symbols needed. */ 15133#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15134int fnord () __attribute__((visibility("default"))); 15135#endif 15136 15137int fnord () { return 42; } 15138int main () 15139{ 15140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15141 int status = $lt_dlunknown; 15142 15143 if (self) 15144 { 15145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15146 else 15147 { 15148 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15149 else puts (dlerror ()); 15150 } 15151 /* dlclose (self); */ 15152 } 15153 else 15154 puts (dlerror ()); 15155 15156 return status; 15157} 15158_LT_EOF 15159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15160 (eval $ac_link) 2>&5 15161 ac_status=$? 15162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15163 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 15164 (./conftest; exit; ) >&5 2>/dev/null 15165 lt_status=$? 15166 case x$lt_status in 15167 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15168 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15169 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15170 esac 15171 else : 15172 # compilation failed 15173 lt_cv_dlopen_self_static=no 15174 fi 15175fi 15176rm -fr conftest* 15177 15178 15179fi 15180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15181$as_echo "$lt_cv_dlopen_self_static" >&6; } 15182 fi 15183 15184 CPPFLAGS="$save_CPPFLAGS" 15185 LDFLAGS="$save_LDFLAGS" 15186 LIBS="$save_LIBS" 15187 ;; 15188 esac 15189 15190 case $lt_cv_dlopen_self in 15191 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15192 *) enable_dlopen_self=unknown ;; 15193 esac 15194 15195 case $lt_cv_dlopen_self_static in 15196 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15197 *) enable_dlopen_self_static=unknown ;; 15198 esac 15199fi 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217striplib= 15218old_striplib= 15219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15220$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15221if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15222 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15223 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15225$as_echo "yes" >&6; } 15226else 15227# FIXME - insert some real tests, host_os isn't really good enough 15228 case $host_os in 15229 darwin*) 15230 if test -n "$STRIP" ; then 15231 striplib="$STRIP -x" 15232 old_striplib="$STRIP -S" 15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15234$as_echo "yes" >&6; } 15235 else 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15237$as_echo "no" >&6; } 15238 fi 15239 ;; 15240 *) 15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15242$as_echo "no" >&6; } 15243 ;; 15244 esac 15245fi 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 # Report which library types will actually be built 15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15260$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15262$as_echo "$can_build_shared" >&6; } 15263 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15265$as_echo_n "checking whether to build shared libraries... " >&6; } 15266 test "$can_build_shared" = "no" && enable_shared=no 15267 15268 # On AIX, shared libraries and static libraries use the same namespace, and 15269 # are all built from PIC. 15270 case $host_os in 15271 aix3*) 15272 test "$enable_shared" = yes && enable_static=no 15273 if test -n "$RANLIB"; then 15274 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15275 postinstall_cmds='$RANLIB $lib' 15276 fi 15277 ;; 15278 15279 aix[4-9]*) 15280 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15281 test "$enable_shared" = yes && enable_static=no 15282 fi 15283 ;; 15284 esac 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15286$as_echo "$enable_shared" >&6; } 15287 15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15289$as_echo_n "checking whether to build static libraries... " >&6; } 15290 # Make sure either enable_shared or enable_static is yes. 15291 test "$enable_shared" = yes || enable_static=yes 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15293$as_echo "$enable_static" >&6; } 15294 15295 15296 15297 15298fi 15299ac_ext=c 15300ac_cpp='$CPP $CPPFLAGS' 15301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15303ac_compiler_gnu=$ac_cv_c_compiler_gnu 15304 15305CC="$lt_save_CC" 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 ac_config_commands="$ac_config_commands libtool" 15320 15321 15322 15323 15324# Only expand once: 15325 15326 15327 15328# 15329# Make libtool use --silent when --silent is passed to make 15330# 15331LIBTOOL="${LIBTOOL} \$(shell echo \"\$(MFLAGS)\" | awk '/^[^ ]*s/ { print \"--silent\" }')" 15332 15333GNOKII_LT_VERSION=$GNOKII_LT_VERSION_CURRENT:$GNOKII_LT_VERSION_REVISION:$GNOKII_LT_VERSION_AGE 15334 15335 15336# As used in common/gnokii.h 15337LIBGNOKII_VERSION_MAJOR=`expr $GNOKII_LT_VERSION_CURRENT - $GNOKII_LT_VERSION_AGE` 15338LIBGNOKII_VERSION_MINOR=$GNOKII_LT_VERSION_AGE 15339LIBGNOKII_VERSION_RELEASE=$GNOKII_LT_VERSION_REVISION 15340LIBGNOKII_VERSION_STRING="$LIBGNOKII_VERSION_MAJOR.$LIBGNOKII_VERSION_MINOR.$LIBGNOKII_VERSION_RELEASE" 15341 15342 15343 15344 15345 15346 15347cat >>confdefs.h <<_ACEOF 15348#define VERSION "$VERSION" 15349_ACEOF 15350 15351 15352 15353test x"$prefix" = xNONE && prefix="$ac_default_prefix" 15354 15355debug="yes" 15356xdebug="yes" 15357rlpdebug="yes" 15358 15359# Check whether --enable-fulldebug was given. 15360if test "${enable_fulldebug+set}" = set; then : 15361 enableval=$enable_fulldebug; if test x$enable_fulldebug = xyes; then 15362 if test "x$GCC" = "xyes"; then 15363 CFLAGS="$CFLAGS -ggdb3 -Wall" 15364 fi 15365 fi 15366 15367fi 15368 15369 15370debug="yes" 15371 15372# Check whether --enable-xdebug was given. 15373if test "${enable_xdebug+set}" = set; then : 15374 enableval=$enable_xdebug; if test x$enable_xdebug = xno; then xdebug="no"; fi 15375else 15376 xdebug="yes" 15377 15378fi 15379 15380 15381# Check whether --enable-rlpdebug was given. 15382if test "${enable_rlpdebug+set}" = set; then : 15383 enableval=$enable_rlpdebug; if test x$enable_rlpdebug = xno; then rlpdebug="no"; fi 15384else 15385 rlpdebug="yes" 15386 15387fi 15388 15389 15390if test $debug = "yes"; then 15391 15392$as_echo "#define DEBUG 1" >>confdefs.h 15393 15394fi 15395if test $xdebug = "yes"; then 15396 15397$as_echo "#define XDEBUG 1" >>confdefs.h 15398 15399fi 15400if test $rlpdebug = "yes"; then 15401 15402$as_echo "#define RLP_DEBUG 1" >>confdefs.h 15403 15404fi 15405 15406if test "x$GCC" = "xyes"; then 15407 CFLAGS="$CFLAGS -Wall" 15408fi 15409 15410if test "x$GCC" = "xyes"; then 15411 OLD_CFLAGS="$CFLAGS" 15412 15413 CFLAGS="-Wno-pointer-sign" 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports $CFLAGS compiler option" >&5 15415$as_echo_n "checking if gcc supports $CFLAGS compiler option... " >&6; } 15416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15417/* end confdefs.h. */ 15418 15419int 15420main () 15421{ 15422 int main() { return 0; } 15423 ; 15424 return 0; 15425} 15426_ACEOF 15427if ac_fn_c_try_compile "$LINENO"; then : 15428 ac_cv_have_no_pointer_sign=yes 15429else 15430 ac_cv_have_no_pointer_sign=no 15431fi 15432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_no_pointer_sign" >&5 15434$as_echo "$ac_cv_have_no_pointer_sign" >&6; } 15435 CFLAGS="-fvisibility=hidden" 15436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports $CFLAGS compiler option" >&5 15437$as_echo_n "checking if gcc supports $CFLAGS compiler option... " >&6; } 15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15439/* end confdefs.h. */ 15440 15441int 15442main () 15443{ 15444 int main() { return 0; } 15445 ; 15446 return 0; 15447} 15448_ACEOF 15449if ac_fn_c_try_compile "$LINENO"; then : 15450 ac_cv_have_hidden_visibility=yes 15451else 15452 ac_cv_have_hidden_visibility=no 15453fi 15454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_hidden_visibility" >&5 15456$as_echo "$ac_cv_have_hidden_visibility" >&6; } 15457 CFLAGS="-fno-strict-aliasing" 15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports $CFLAGS compiler option" >&5 15459$as_echo_n "checking if gcc supports $CFLAGS compiler option... " >&6; } 15460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15461/* end confdefs.h. */ 15462 15463int 15464main () 15465{ 15466 int main() { return 0; } 15467 ; 15468 return 0; 15469} 15470_ACEOF 15471if ac_fn_c_try_compile "$LINENO"; then : 15472 ac_cv_have_strict_aliasing=yes 15473else 15474 ac_cv_have_strict_aliasing=no 15475fi 15476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_strict_aliasing" >&5 15478$as_echo "$ac_cv_have_strict_aliasing" >&6; } 15479 15480 CFLAGS="$OLD_CFLAGS" 15481 if test $ac_cv_have_no_pointer_sign = yes; then 15482 CFLAGS="$CFLAGS -Wno-pointer-sign" 15483 fi 15484 if test $ac_cv_have_hidden_visibility = yes; then 15485 CFLAGS="$CFLAGS -fvisibility=hidden" 15486 fi 15487 if test $ac_cv_have_strict_aliasing = yes; then 15488 CFLAGS="$CFLAGS -fno-strict-aliasing" 15489 fi 15490fi 15491 15492# CFLAGS="$CFLAGS -DGNOKII_DEPRECATED=''" 15493 15494 15495 15496# Check whether --with-libpthread was given. 15497if test "${with_libpthread+set}" = set; then : 15498 withval=$with_libpthread; if test x$withval = xyes 15499 then 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Usage is: --with-libpthread=DIR" >&5 15501$as_echo "$as_me: WARNING: Usage is: --with-libpthread=DIR" >&2;} 15502 else 15503 PTHREAD_LIBS="-L$withval/lib/" 15504 PTHREAD_CFLAGS="-I$withval/include/" 15505 fi 15506 15507 15508fi 15509 15510 15511 15512 15513 15514ac_ext=c 15515ac_cpp='$CPP $CPPFLAGS' 15516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15518ac_compiler_gnu=$ac_cv_c_compiler_gnu 15519 15520acx_pthread_ok=no 15521 15522# We used to check for pthread.h first, but this fails if pthread.h 15523# requires special compiler flags (e.g. on True64 or Sequent). 15524# It gets checked for in the link test anyway. 15525 15526# First of all, check if the user has set any of the PTHREAD_LIBS, 15527# etcetera environment variables, and if threads linking works using 15528# them: 15529if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15530 save_CFLAGS="$CFLAGS" 15531 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15532 save_LIBS="$LIBS" 15533 LIBS="$PTHREAD_LIBS $LIBS" 15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15535$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15537/* end confdefs.h. */ 15538 15539/* Override any GCC internal prototype to avoid an error. 15540 Use char because int might match the return type of a GCC 15541 builtin and then its argument prototype would still apply. */ 15542#ifdef __cplusplus 15543extern "C" 15544#endif 15545char pthread_join (); 15546int 15547main () 15548{ 15549return pthread_join (); 15550 ; 15551 return 0; 15552} 15553_ACEOF 15554if ac_fn_c_try_link "$LINENO"; then : 15555 acx_pthread_ok=yes 15556fi 15557rm -f core conftest.err conftest.$ac_objext \ 15558 conftest$ac_exeext conftest.$ac_ext 15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15560$as_echo "$acx_pthread_ok" >&6; } 15561 if test x"$acx_pthread_ok" = xno; then 15562 PTHREAD_LIBS="" 15563 PTHREAD_CFLAGS="" 15564 fi 15565 LIBS="$save_LIBS" 15566 CFLAGS="$save_CFLAGS" 15567fi 15568 15569# We must check for the threads library under a number of different 15570# names; the ordering is very important because some systems 15571# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15572# libraries is broken (non-POSIX). 15573 15574# Create a list of thread flags to try. Items starting with a "-" are 15575# C compiler flags, and other items are library names, except for "none" 15576# which indicates that we try without any flags at all, and "pthread-config" 15577# which is a program returning the flags for the Pth emulation library. 15578 15579acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15580 15581# The ordering *is* (sometimes) important. Some notes on the 15582# individual items follow: 15583 15584# pthreads: AIX (must check this before -lpthread) 15585# none: in case threads are in libc; should be tried before -Kthread and 15586# other compiler flags to prevent continual compiler warnings 15587# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15588# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15589# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15590# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15591# -pthreads: Solaris/gcc 15592# -mthreads: Mingw32/gcc, Lynx/gcc 15593# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15594# doesn't hurt to check since this sometimes defines pthreads too; 15595# also defines -D_REENTRANT) 15596# pthread: Linux, etcetera 15597# --thread-safe: KAI C++ 15598# pthread-config: use pthread-config program (for GNU Pth library) 15599 15600case "${host_cpu}-${host_os}" in 15601 *solaris*) 15602 15603 # On Solaris (at least, for some versions), libc contains stubbed 15604 # (non-functional) versions of the pthreads routines, so link-based 15605 # tests will erroneously succeed. (We need to link with -pthread or 15606 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15607 # a function called by this macro, so we could check for that, but 15608 # who knows whether they'll stub that too in a future libc.) So, 15609 # we'll just look for -pthreads and -lpthread first: 15610 15611 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" 15612 ;; 15613esac 15614 15615if test x"$acx_pthread_ok" = xno; then 15616for flag in $acx_pthread_flags; do 15617 15618 case $flag in 15619 none) 15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15621$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15622 ;; 15623 15624 -*) 15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15626$as_echo_n "checking whether pthreads work with $flag... " >&6; } 15627 PTHREAD_CFLAGS="$flag" 15628 ;; 15629 15630 pthread-config) 15631 # Extract the first word of "pthread-config", so it can be a program name with args. 15632set dummy pthread-config; ac_word=$2 15633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15634$as_echo_n "checking for $ac_word... " >&6; } 15635if ${ac_cv_prog_acx_pthread_config+:} false; then : 15636 $as_echo_n "(cached) " >&6 15637else 15638 if test -n "$acx_pthread_config"; then 15639 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 15640else 15641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15642for as_dir in $PATH 15643do 15644 IFS=$as_save_IFS 15645 test -z "$as_dir" && as_dir=. 15646 for ac_exec_ext in '' $ac_executable_extensions; do 15647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15648 ac_cv_prog_acx_pthread_config="yes" 15649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15650 break 2 15651 fi 15652done 15653 done 15654IFS=$as_save_IFS 15655 15656 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 15657fi 15658fi 15659acx_pthread_config=$ac_cv_prog_acx_pthread_config 15660if test -n "$acx_pthread_config"; then 15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 15662$as_echo "$acx_pthread_config" >&6; } 15663else 15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15665$as_echo "no" >&6; } 15666fi 15667 15668 15669 if test x"$acx_pthread_config" = xno; then continue; fi 15670 PTHREAD_CFLAGS="`pthread-config --cflags`" 15671 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15672 ;; 15673 15674 *) 15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15676$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 15677 PTHREAD_LIBS="-l$flag" 15678 ;; 15679 esac 15680 15681 save_LIBS="$LIBS" 15682 save_CFLAGS="$CFLAGS" 15683 LIBS="$PTHREAD_LIBS $LIBS" 15684 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15685 15686 # Check for various functions. We must include pthread.h, 15687 # since some functions may be macros. (On the Sequent, we 15688 # need a special flag -Kthread to make this header compile.) 15689 # We check for pthread_join because it is in -lpthread on IRIX 15690 # while pthread_create is in libc. We check for pthread_attr_init 15691 # due to DEC craziness with -lpthreads. We check for 15692 # pthread_cleanup_push because it is one of the few pthread 15693 # functions on Solaris that doesn't have a non-functional libc stub. 15694 # We try pthread_create on general principles. 15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15696/* end confdefs.h. */ 15697#include <pthread.h> 15698int 15699main () 15700{ 15701pthread_t th; pthread_join(th, 0); 15702 pthread_attr_init(0); pthread_cleanup_push(0, 0); 15703 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 15704 ; 15705 return 0; 15706} 15707_ACEOF 15708if ac_fn_c_try_link "$LINENO"; then : 15709 acx_pthread_ok=yes 15710fi 15711rm -f core conftest.err conftest.$ac_objext \ 15712 conftest$ac_exeext conftest.$ac_ext 15713 15714 LIBS="$save_LIBS" 15715 CFLAGS="$save_CFLAGS" 15716 15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 15718$as_echo "$acx_pthread_ok" >&6; } 15719 if test "x$acx_pthread_ok" = xyes; then 15720 break; 15721 fi 15722 15723 PTHREAD_LIBS="" 15724 PTHREAD_CFLAGS="" 15725done 15726fi 15727 15728# Various other checks: 15729if test "x$acx_pthread_ok" = xyes; then 15730 save_LIBS="$LIBS" 15731 LIBS="$PTHREAD_LIBS $LIBS" 15732 save_CFLAGS="$CFLAGS" 15733 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15734 15735 # Detect AIX lossage: threads are created detached by default 15736 # and the JOINABLE attribute has a nonstandard name (UNDETACHED). 15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15738$as_echo_n "checking for joinable pthread attribute... " >&6; } 15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15740/* end confdefs.h. */ 15741#include <pthread.h> 15742int 15743main () 15744{ 15745int attr=PTHREAD_CREATE_JOINABLE; 15746 ; 15747 return 0; 15748} 15749_ACEOF 15750if ac_fn_c_try_link "$LINENO"; then : 15751 ok=PTHREAD_CREATE_JOINABLE 15752else 15753 ok=unknown 15754fi 15755rm -f core conftest.err conftest.$ac_objext \ 15756 conftest$ac_exeext conftest.$ac_ext 15757 if test x"$ok" = xunknown; then 15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15759/* end confdefs.h. */ 15760#include <pthread.h> 15761int 15762main () 15763{ 15764int attr=PTHREAD_CREATE_UNDETACHED; 15765 ; 15766 return 0; 15767} 15768_ACEOF 15769if ac_fn_c_try_link "$LINENO"; then : 15770 ok=PTHREAD_CREATE_UNDETACHED 15771else 15772 ok=unknown 15773fi 15774rm -f core conftest.err conftest.$ac_objext \ 15775 conftest$ac_exeext conftest.$ac_ext 15776 fi 15777 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then 15778 15779$as_echo "#define PTHREAD_CREATE_JOINABLE \$ok" >>confdefs.h 15780 15781 fi 15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5 15783$as_echo "${ok}" >&6; } 15784 if test x"$ok" = xunknown; then 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we do not know how to create joinable pthreads" >&5 15786$as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;} 15787 fi 15788 15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15790$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 15791 flag=no 15792 case "${host_cpu}-${host_os}" in 15793 *-aix* | *-darwin*) flag="-D_THREAD_SAFE";; 15794 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 15795 esac 15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15797$as_echo "${flag}" >&6; } 15798 if test "x$flag" != xno; then 15799 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15800 fi 15801 15802 LIBS="$save_LIBS" 15803 CFLAGS="$save_CFLAGS" 15804 15805 # More AIX lossage: must compile with cc_r 15806 # Extract the first word of "cc_r", so it can be a program name with args. 15807set dummy cc_r; ac_word=$2 15808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15809$as_echo_n "checking for $ac_word... " >&6; } 15810if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15811 $as_echo_n "(cached) " >&6 15812else 15813 if test -n "$PTHREAD_CC"; then 15814 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15815else 15816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15817for as_dir in $PATH 15818do 15819 IFS=$as_save_IFS 15820 test -z "$as_dir" && as_dir=. 15821 for ac_exec_ext in '' $ac_executable_extensions; do 15822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15823 ac_cv_prog_PTHREAD_CC="cc_r" 15824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15825 break 2 15826 fi 15827done 15828 done 15829IFS=$as_save_IFS 15830 15831 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" 15832fi 15833fi 15834PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15835if test -n "$PTHREAD_CC"; then 15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15837$as_echo "$PTHREAD_CC" >&6; } 15838else 15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15840$as_echo "no" >&6; } 15841fi 15842 15843 15844else 15845 PTHREAD_CC="$CC" 15846fi 15847 15848 15849 15850 15851 15852# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15853if test x"$acx_pthread_ok" = xyes; then 15854 15855$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15856 15857 : 15858else 15859 acx_pthread_ok=no 15860 15861fi 15862ac_ext=c 15863ac_cpp='$CPP $CPPFLAGS' 15864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15866ac_compiler_gnu=$ac_cv_c_compiler_gnu 15867 15868 15869if test "x$PTHREAD_CFLAGS" = "x-pthread"; then 15870 PTHREAD_LIBS="$PTHREAD_LIBS -pthread" 15871fi 15872 15873if test "x$PTHREAD_LIBS" = xerror; then 15874 ac_fn_c_check_func "$LINENO" "pthread_attr_init" "ac_cv_func_pthread_attr_init" 15875if test "x$ac_cv_func_pthread_attr_init" = xyes; then : 15876 PTHREAD_LIBS="" 15877else 15878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not found library: pthread!!!" >&5 15879$as_echo "$as_me: WARNING: not found library: pthread!!!" >&2;} 15880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling xgnokii and smsd" >&5 15881$as_echo "$as_me: WARNING: disabling xgnokii and smsd" >&2;} 15882fi 15883 15884fi 15885 15886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5 15887$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; } 15888if ${ac_cv_have_tm_gmtoff+:} false; then : 15889 $as_echo_n "(cached) " >&6 15890else 15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15892/* end confdefs.h. */ 15893#include <time.h> 15894int 15895main () 15896{ 15897struct tm t; t.tm_gmtoff = 0 15898 ; 15899 return 0; 15900} 15901_ACEOF 15902if ac_fn_c_try_compile "$LINENO"; then : 15903 ac_cv_have_tm_gmtoff=yes 15904else 15905 ac_cv_have_tm_gmtoff=no 15906fi 15907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15908fi 15909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_tm_gmtoff" >&5 15910$as_echo "$ac_cv_have_tm_gmtoff" >&6; } 15911if test $ac_cv_have_tm_gmtoff = yes; then 15912 15913$as_echo "#define HAVE_TM_GMTON 1" >>confdefs.h 15914 15915fi 15916 15917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timer operations" >&5 15918$as_echo_n "checking for timer operations... " >&6; } 15919if ${ac_cv_have_timeops+:} false; then : 15920 $as_echo_n "(cached) " >&6 15921else 15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15923/* end confdefs.h. */ 15924#include <sys/time.h> 15925int 15926main () 15927{ 15928struct timeval tv; timerisset(&tv); timerclear(&tv); timercmp(&tv, &tv, <); timeradd(&tv, &tv, &tv); timersub(&tv, &tv, &tv); 15929 ; 15930 return 0; 15931} 15932_ACEOF 15933if ac_fn_c_try_link "$LINENO"; then : 15934 ac_cv_have_timeops=yes 15935else 15936 ac_cv_have_timeops=no 15937fi 15938rm -f core conftest.err conftest.$ac_objext \ 15939 conftest$ac_exeext conftest.$ac_ext 15940fi 15941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timeops" >&5 15942$as_echo "$ac_cv_have_timeops" >&6; } 15943if test $ac_cv_have_timeops = yes; then 15944 15945$as_echo "#define HAVE_TIMEOPS 1" >>confdefs.h 15946 15947fi 15948 15949have_termios="no" 15950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfsetspeed in termios.h" >&5 15951$as_echo_n "checking for cfsetspeed in termios.h... " >&6; } 15952if ${ac_cv_have_cfsetspeed+:} false; then : 15953 $as_echo_n "(cached) " >&6 15954else 15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15956/* end confdefs.h. */ 15957#include <termios.h> 15958int 15959main () 15960{ 15961struct termios t; cfsetspeed(&t, B9600); 15962 ; 15963 return 0; 15964} 15965_ACEOF 15966if ac_fn_c_try_link "$LINENO"; then : 15967 ac_cv_have_cfsetspeed=yes 15968else 15969 ac_cv_have_cfsetspeed=no 15970fi 15971rm -f core conftest.err conftest.$ac_objext \ 15972 conftest$ac_exeext conftest.$ac_ext 15973fi 15974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_cfsetspeed" >&5 15975$as_echo "$ac_cv_have_cfsetspeed" >&6; } 15976if test $ac_cv_have_cfsetspeed = yes; then 15977 15978$as_echo "#define HAVE_CFSETSPEED 1" >>confdefs.h 15979 15980 have_termios="yes" 15981fi 15982 15983if test $have_termios = "no"; then 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfsetispeed and cfsetospeed in termios.h" >&5 15985$as_echo_n "checking for cfsetispeed and cfsetospeed in termios.h... " >&6; } 15986if ${ac_cv_have_cfsetiospeed+:} false; then : 15987 $as_echo_n "(cached) " >&6 15988else 15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15990/* end confdefs.h. */ 15991#include <termios.h> 15992int 15993main () 15994{ 15995struct termios t; cfsetispeed(&t, B9600); cfsetospeed(&t, B9600); 15996 ; 15997 return 0; 15998} 15999_ACEOF 16000if ac_fn_c_try_link "$LINENO"; then : 16001 ac_cv_have_cfsetiospeed=yes 16002else 16003 ac_cv_have_cfsetiospeed=no 16004fi 16005rm -f core conftest.err conftest.$ac_objext \ 16006 conftest$ac_exeext conftest.$ac_ext 16007fi 16008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_cfsetiospeed" >&5 16009$as_echo "$ac_cv_have_cfsetiospeed" >&6; } 16010 if test $ac_cv_have_cfsetiospeed = yes; then 16011 16012$as_echo "#define HAVE_CFSETISPEED 1" >>confdefs.h 16013 16014 16015$as_echo "#define HAVE_CFSETOSPEED 1" >>confdefs.h 16016 16017 have_termios="yes" 16018 fi 16019fi 16020 16021if test $have_termios = "no"; then 16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_ispeed and c_ospeed in struct termios" >&5 16023$as_echo_n "checking for c_ispeed and c_ospeed in struct termios... " >&6; } 16024if ${ac_cv_have_c_iospeed+:} false; then : 16025 $as_echo_n "(cached) " >&6 16026else 16027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16028/* end confdefs.h. */ 16029#include <termios.h> 16030int 16031main () 16032{ 16033struct termios t; t.c_iflag = B9600; t.c_oflag = B9600; 16034 ; 16035 return 0; 16036} 16037_ACEOF 16038if ac_fn_c_try_compile "$LINENO"; then : 16039 ac_cv_have_c_iospeed=yes 16040else 16041 ac_cv_have_c_iospeed=yes 16042fi 16043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16044fi 16045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_c_iospeed" >&5 16046$as_echo "$ac_cv_have_c_iospeed" >&6; } 16047 if test ac_cv_have_c_iospeed = yes; then 16048 16049$as_echo "#define HAVE_TERMIOS_CSPEED 1" >>confdefs.h 16050 16051 fi 16052fi 16053 16054# Readline included by default unless explicitly asked not to 16055test "${with_readline+set}" != "set" && with_readline=yes 16056 16057USE_READLINE="no" 16058 16059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use readline" >&5 16060$as_echo_n "checking whether to use readline... " >&6; } 16061 16062# Check whether --with-readline was given. 16063if test "${with_readline+set}" = set; then : 16064 withval=$with_readline; case "$with_readline" in 16065 yes) 16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16067$as_echo "yes" >&6; } 16068 16069 for ac_header in readline.h history.h readline/readline.h 16070do : 16071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16072ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16073if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16074 cat >>confdefs.h <<_ACEOF 16075#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16076_ACEOF 16077 16078fi 16079 16080done 16081 16082 for ac_header in readline/history.h 16083do : 16084 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 16085if test "x$ac_cv_header_readline_history_h" = xyes; then : 16086 cat >>confdefs.h <<_ACEOF 16087#define HAVE_READLINE_HISTORY_H 1 16088_ACEOF 16089 16090fi 16091 16092done 16093 16094 16095 for ac_header in readline.h readline/readline.h 16096do : 16097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16098ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16099if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16100 cat >>confdefs.h <<_ACEOF 16101#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16102_ACEOF 16103 16104 for termlib in ncurses curses termcap terminfo termlib; do 16105 as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh` 16106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${termlib}" >&5 16107$as_echo_n "checking for tgetent in -l${termlib}... " >&6; } 16108if eval \${$as_ac_Lib+:} false; then : 16109 $as_echo_n "(cached) " >&6 16110else 16111 ac_check_lib_save_LIBS=$LIBS 16112LIBS="-l${termlib} $LIBS" 16113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16114/* end confdefs.h. */ 16115 16116/* Override any GCC internal prototype to avoid an error. 16117 Use char because int might match the return type of a GCC 16118 builtin and then its argument prototype would still apply. */ 16119#ifdef __cplusplus 16120extern "C" 16121#endif 16122char tgetent (); 16123int 16124main () 16125{ 16126return tgetent (); 16127 ; 16128 return 0; 16129} 16130_ACEOF 16131if ac_fn_c_try_link "$LINENO"; then : 16132 eval "$as_ac_Lib=yes" 16133else 16134 eval "$as_ac_Lib=no" 16135fi 16136rm -f core conftest.err conftest.$ac_objext \ 16137 conftest$ac_exeext conftest.$ac_ext 16138LIBS=$ac_check_lib_save_LIBS 16139fi 16140eval ac_res=\$$as_ac_Lib 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16142$as_echo "$ac_res" >&6; } 16143if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16144 TERMLIBS="-l${termlib}"; break 16145fi 16146 16147 done 16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 16149$as_echo_n "checking for readline in -lreadline... " >&6; } 16150if ${ac_cv_lib_readline_readline+:} false; then : 16151 $as_echo_n "(cached) " >&6 16152else 16153 ac_check_lib_save_LIBS=$LIBS 16154LIBS="-lreadline $TERMLIBS $LIBS" 16155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16156/* end confdefs.h. */ 16157 16158/* Override any GCC internal prototype to avoid an error. 16159 Use char because int might match the return type of a GCC 16160 builtin and then its argument prototype would still apply. */ 16161#ifdef __cplusplus 16162extern "C" 16163#endif 16164char readline (); 16165int 16166main () 16167{ 16168return readline (); 16169 ; 16170 return 0; 16171} 16172_ACEOF 16173if ac_fn_c_try_link "$LINENO"; then : 16174 ac_cv_lib_readline_readline=yes 16175else 16176 ac_cv_lib_readline_readline=no 16177fi 16178rm -f core conftest.err conftest.$ac_objext \ 16179 conftest$ac_exeext conftest.$ac_ext 16180LIBS=$ac_check_lib_save_LIBS 16181fi 16182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 16183$as_echo "$ac_cv_lib_readline_readline" >&6; } 16184if test "x$ac_cv_lib_readline_readline" = xyes; then : 16185 TERMLIBS="-lreadline $TERMLIBS" 16186 16187$as_echo "#define HAVE_READLINE 1" >>confdefs.h 16188 16189 USE_READLINE="yes" 16190 break 16191else 16192 TERMLIBS= 16193fi 16194 16195fi 16196 16197done 16198 16199 ;; 16200 no) 16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16202$as_echo "no" >&6; } 16203 ;; 16204 *) 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16206$as_echo "yes" >&6; } 16207 16208 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at 16209 # alternate readline path 16210 _ldflags=${LDFLAGS} 16211 _cppflags=${CPPFLAGS} 16212 16213 # Add additional search path 16214 LDFLAGS="-L$with_readline/lib $LDFLAGS" 16215 CPPFLAGS="-I$with_readline/include $CPPFLAGS" 16216 16217 for ac_header in readline.h history.h readline/readline.h 16218do : 16219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16220ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16221if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16222 cat >>confdefs.h <<_ACEOF 16223#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16224_ACEOF 16225 16226fi 16227 16228done 16229 16230 for ac_header in readline/history.h 16231do : 16232 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 16233if test "x$ac_cv_header_readline_history_h" = xyes; then : 16234 cat >>confdefs.h <<_ACEOF 16235#define HAVE_READLINE_HISTORY_H 1 16236_ACEOF 16237 16238fi 16239 16240done 16241 16242 16243 for ac_header in readline.h readline/readline.h 16244do : 16245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16246ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16247if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16248 cat >>confdefs.h <<_ACEOF 16249#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16250_ACEOF 16251 16252 for termlib in ncurses curses termcap terminfo termlib; do 16253 as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh` 16254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${termlib}" >&5 16255$as_echo_n "checking for tgetent in -l${termlib}... " >&6; } 16256if eval \${$as_ac_Lib+:} false; then : 16257 $as_echo_n "(cached) " >&6 16258else 16259 ac_check_lib_save_LIBS=$LIBS 16260LIBS="-l${termlib} $LIBS" 16261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16262/* end confdefs.h. */ 16263 16264/* Override any GCC internal prototype to avoid an error. 16265 Use char because int might match the return type of a GCC 16266 builtin and then its argument prototype would still apply. */ 16267#ifdef __cplusplus 16268extern "C" 16269#endif 16270char tgetent (); 16271int 16272main () 16273{ 16274return tgetent (); 16275 ; 16276 return 0; 16277} 16278_ACEOF 16279if ac_fn_c_try_link "$LINENO"; then : 16280 eval "$as_ac_Lib=yes" 16281else 16282 eval "$as_ac_Lib=no" 16283fi 16284rm -f core conftest.err conftest.$ac_objext \ 16285 conftest$ac_exeext conftest.$ac_ext 16286LIBS=$ac_check_lib_save_LIBS 16287fi 16288eval ac_res=\$$as_ac_Lib 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16290$as_echo "$ac_res" >&6; } 16291if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16292 TERMLIBS="-l${termlib}"; break 16293fi 16294 16295 done 16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 16297$as_echo_n "checking for readline in -lreadline... " >&6; } 16298if ${ac_cv_lib_readline_readline+:} false; then : 16299 $as_echo_n "(cached) " >&6 16300else 16301 ac_check_lib_save_LIBS=$LIBS 16302LIBS="-lreadline $TERMLIBS $LIBS" 16303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16304/* end confdefs.h. */ 16305 16306/* Override any GCC internal prototype to avoid an error. 16307 Use char because int might match the return type of a GCC 16308 builtin and then its argument prototype would still apply. */ 16309#ifdef __cplusplus 16310extern "C" 16311#endif 16312char readline (); 16313int 16314main () 16315{ 16316return readline (); 16317 ; 16318 return 0; 16319} 16320_ACEOF 16321if ac_fn_c_try_link "$LINENO"; then : 16322 ac_cv_lib_readline_readline=yes 16323else 16324 ac_cv_lib_readline_readline=no 16325fi 16326rm -f core conftest.err conftest.$ac_objext \ 16327 conftest$ac_exeext conftest.$ac_ext 16328LIBS=$ac_check_lib_save_LIBS 16329fi 16330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 16331$as_echo "$ac_cv_lib_readline_readline" >&6; } 16332if test "x$ac_cv_lib_readline_readline" = xyes; then : 16333 TERMLDFLAGS="-L$with_readline/lib" 16334 TERMCPPFLAGS="-I$with_readline/include" 16335 CPPFLAGS="-I$with_readline/include $CPPFLAGS" 16336 TERMLIBS="-lreadline $TERMLIBS" 16337 16338$as_echo "#define HAVE_READLINE 1" >>confdefs.h 16339 16340 USE_READLINE="yes" 16341 break 16342else 16343 TERMLIBS= CPPFLAGS=$_cppflags 16344fi 16345 16346fi 16347 16348done 16349 16350 16351 LDFLAGS=$_ldflags 16352 ;; 16353 esac 16354else 16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16356$as_echo "no" >&6; } 16357 16358fi 16359 16360 16361 16362 16363 16364# Check whether --with-libical was given. 16365if test "${with_libical+set}" = set; then : 16366 withval=$with_libical; if test x$withval = xyes 16367 then 16368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Usage is: --with-libical=DIR" >&5 16369$as_echo "$as_me: WARNING: Usage is: --with-libical=DIR" >&2;} 16370 else 16371 ICAL_LIBS="-L$withval/lib/" 16372 ICAL_CFLAGS="-I$withval/include/" 16373 fi 16374 16375 16376fi 16377 16378 16379USE_LIBICAL="no" 16380# Check whether --enable-libical was given. 16381if test "${enable_libical+set}" = set; then : 16382 enableval=$enable_libical; 16383else 16384 enable_libical=yes 16385fi 16386 16387 16388if test "$enable_libical" = "yes"; then 16389 ICAL_LIBS="$ICAL_LIBS -lpthread -lical" 16390 OLD_CFLAGS="$CFLAGS" 16391 OLD_LIBS="$LIBS" 16392 LIBS="$LIBS $ICAL_LIBS" 16393 CFLAGS="$CFLAGS $ICAL_CFLAGS" 16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libical is installed" >&5 16395$as_echo_n "checking whether libical is installed... " >&6; } 16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16397/* end confdefs.h. */ 16398 16399 #include <libical/ical.h> 16400 16401int 16402main () 16403{ 16404 16405 int priority; 16406 icalcomponent *pIcal=NULL; 16407 struct icaltimetype atime = icaltime_from_string("20031231T223000"); 16408 16409 pIcal = icalcomponent_vanew( 16410 ICAL_VCALENDAR_COMPONENT, 16411 icalproperty_new_version("2.0"), 16412 icalproperty_new_prodid("//Gnokii.org//NONSGML v.0.5.8"), 16413 0 16414 ); 16415 atime.is_daylight = 1; 16416 priority = icalproperty_get_priority(icalcomponent_get_first_property(pIcal, ICAL_PRIORITY_PROPERTY)); 16417 16418 ; 16419 return 0; 16420} 16421_ACEOF 16422if ac_fn_c_try_link "$LINENO"; then : 16423 16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16425$as_echo "yes" >&6; } 16426 USE_LIBICAL="yes" 16427 16428$as_echo "#define HAVE_LIBICAL 1" >>confdefs.h 16429 16430 16431 16432 16433else 16434 16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16436$as_echo "no" >&6; } 16437 ICAL_LIBS="" 16438 16439 16440fi 16441rm -f core conftest.err conftest.$ac_objext \ 16442 conftest$ac_exeext conftest.$ac_ext 16443 LIBS="$OLD_LIBS" 16444 CFLAGS="$OLD_CFLAGS" 16445fi 16446 16447USE_LIBUSB="no" 16448# Check whether --enable-libusb was given. 16449if test "${enable_libusb+set}" = set; then : 16450 enableval=$enable_libusb; 16451else 16452 enable_libusb=yes 16453fi 16454 16455if test "$enable_libusb" = "yes"; then 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libusb is installed" >&5 16457$as_echo_n "checking whether libusb is installed... " >&6; } 16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16459/* end confdefs.h. */ 16460#include <usb.h> 16461int 16462main () 16463{ 16464struct usb_dev_handle *dev; 16465 ; 16466 return 0; 16467} 16468_ACEOF 16469if ac_fn_c_try_compile "$LINENO"; then : 16470 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16472$as_echo "yes" >&6; } 16473 16474$as_echo "#define HAVE_LIBUSB 1" >>confdefs.h 16475 16476 USE_LIBUSB="yes" 16477 USB_LIBS="-lusb" 16478 16479 16480else 16481 16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16483$as_echo "no" >&6; } 16484 16485 16486fi 16487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16488fi 16489 16490USE_SOCKETPHONET="no" 16491# Check whether --enable-phonet was given. 16492if test "${enable_phonet+set}" = set; then : 16493 enableval=$enable_phonet; 16494else 16495 enable_phonet=yes 16496fi 16497 16498if test "$enable_phonet" = "yes"; then 16499 ac_fn_c_check_header_compile "$LINENO" "linux/phonet.h" "ac_cv_header_linux_phonet_h" "#include <sys/socket.h> 16500 #include <linux/phonet.h> 16501" 16502if test "x$ac_cv_header_linux_phonet_h" = xyes; then : 16503 16504$as_echo "#define HAVE_SOCKETPHONET 1" >>confdefs.h 16505 16506 USE_SOCKETPHONET="yes" 16507fi 16508 16509 16510fi 16511 16512ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 16513if test "x$ac_cv_func_gethostbyname" = xyes; then : 16514 16515else 16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 16517$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 16518if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 16519 $as_echo_n "(cached) " >&6 16520else 16521 ac_check_lib_save_LIBS=$LIBS 16522LIBS="-lnsl $LIBS" 16523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16524/* end confdefs.h. */ 16525 16526/* Override any GCC internal prototype to avoid an error. 16527 Use char because int might match the return type of a GCC 16528 builtin and then its argument prototype would still apply. */ 16529#ifdef __cplusplus 16530extern "C" 16531#endif 16532char gethostbyname (); 16533int 16534main () 16535{ 16536return gethostbyname (); 16537 ; 16538 return 0; 16539} 16540_ACEOF 16541if ac_fn_c_try_link "$LINENO"; then : 16542 ac_cv_lib_nsl_gethostbyname=yes 16543else 16544 ac_cv_lib_nsl_gethostbyname=no 16545fi 16546rm -f core conftest.err conftest.$ac_objext \ 16547 conftest$ac_exeext conftest.$ac_ext 16548LIBS=$ac_check_lib_save_LIBS 16549fi 16550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 16551$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 16552if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 16553 TCP_LIBS="-lnsl" 16554 16555fi 16556 16557fi 16558 16559ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 16560if test "x$ac_cv_func_gethostbyname" = xyes; then : 16561 16562else 16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5 16564$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; } 16565if ${ac_cv_lib_network_gethostbyname+:} false; then : 16566 $as_echo_n "(cached) " >&6 16567else 16568 ac_check_lib_save_LIBS=$LIBS 16569LIBS="-lnetwork $LIBS" 16570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16571/* end confdefs.h. */ 16572 16573/* Override any GCC internal prototype to avoid an error. 16574 Use char because int might match the return type of a GCC 16575 builtin and then its argument prototype would still apply. */ 16576#ifdef __cplusplus 16577extern "C" 16578#endif 16579char gethostbyname (); 16580int 16581main () 16582{ 16583return gethostbyname (); 16584 ; 16585 return 0; 16586} 16587_ACEOF 16588if ac_fn_c_try_link "$LINENO"; then : 16589 ac_cv_lib_network_gethostbyname=yes 16590else 16591 ac_cv_lib_network_gethostbyname=no 16592fi 16593rm -f core conftest.err conftest.$ac_objext \ 16594 conftest$ac_exeext conftest.$ac_ext 16595LIBS=$ac_check_lib_save_LIBS 16596fi 16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5 16598$as_echo "$ac_cv_lib_network_gethostbyname" >&6; } 16599if test "x$ac_cv_lib_network_gethostbyname" = xyes; then : 16600 TCP_LIBS="-lnetwork" 16601 16602fi 16603 16604fi 16605 16606 16607USE_IRDA="no" 16608# Check whether --enable-irda was given. 16609if test "${enable_irda+set}" = set; then : 16610 enableval=$enable_irda; 16611else 16612 enable_irda=yes 16613fi 16614 16615if test "$enable_irda" = "yes"; then 16616 ac_fn_c_check_header_compile "$LINENO" "linux/irda.h" "ac_cv_header_linux_irda_h" "#include <sys/socket.h> 16617 #include <sys/ioctl.h> 16618 #include <linux/types.h> 16619" 16620if test "x$ac_cv_header_linux_irda_h" = xyes; then : 16621 16622$as_echo "#define HAVE_IRDA 1" >>confdefs.h 16623 16624 USE_IRDA="yes" 16625fi 16626 16627 16628fi 16629 16630 16631# Check whether --with-gettext was given. 16632if test "${with_gettext+set}" = set; then : 16633 withval=$with_gettext; if test x$withval = xyes; then 16634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Usage is: --with-gettext=DIR" >&5 16635$as_echo "$as_me: WARNING: Usage is: --with-gettext=DIR" >&2;} 16636 else 16637 CFLAGS="$CFLAGS -I$withval" 16638 fi 16639 16640 16641fi 16642 16643 16644USE_BLUETOOTH="no" 16645 16646# Check whether --with-bluetooth was given. 16647if test "${with_bluetooth+set}" = set; then : 16648 withval=$with_bluetooth; if test x$withval = xyes; then 16649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Usage is: --with-bluetooth=DIR" >&5 16650$as_echo "$as_me: WARNING: Usage is: --with-bluetooth=DIR" >&2;} 16651 else 16652 LIBS="$LIBS -L$withval/lib" 16653 CFLAGS="$CFLAGS -I$withval/net -I$withval/" 16654 fi 16655 16656 16657fi 16658 16659# Check whether --enable-bluetooth was given. 16660if test "${enable_bluetooth+set}" = set; then : 16661 enableval=$enable_bluetooth; 16662else 16663 enable_bluetooth=yes 16664fi 16665 16666 16667if test `uname -s` = "Linux" ; then 16668 if test "$enable_bluetooth" = "yes" -a "$USE_BLUETOOTH" = "no"; then 16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux Bluetooth support" >&5 16670$as_echo "$as_me: checking for the Linux Bluetooth support" >&6;} 16671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the struct sockaddr_rc in <bluetooth/rfcomm.h>" >&5 16672$as_echo_n "checking for the struct sockaddr_rc in <bluetooth/rfcomm.h>... " >&6; } 16673if ${ac_cv_have_sockaddr_rc+:} false; then : 16674 $as_echo_n "(cached) " >&6 16675else 16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16677/* end confdefs.h. */ 16678#include <sys/socket.h> 16679 #include <bluetooth/bluetooth.h> 16680 #include <bluetooth/rfcomm.h> 16681int 16682main () 16683{ 16684struct sockaddr_rc rc; 16685 ; 16686 return 0; 16687} 16688_ACEOF 16689if ac_fn_c_try_compile "$LINENO"; then : 16690 ac_cv_have_sockaddr_rc=yes 16691else 16692 ac_cv_have_sockaddr_rc=no 16693fi 16694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16695fi 16696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sockaddr_rc" >&5 16697$as_echo "$ac_cv_have_sockaddr_rc" >&6; } 16698 if test $ac_cv_have_sockaddr_rc = yes; then 16699 16700$as_echo "#define HAVE_BLUETOOTH 1" >>confdefs.h 16701 16702 16703$as_echo "#define HAVE_BLUETOOTH_BLUEZ /**/" >>confdefs.h 16704 16705 USE_BLUETOOTH="yes" 16706 BLUETOOTH_LIBS="-lsdp -lbluetooth" 16707 16708 fi 16709 fi 16710fi 16711 16712if test `uname -s` = "Darwin" ; then 16713 if test "$enable_bluetooth" = "yes" -a "$USE_BLUETOOTH" = "no"; then 16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the MacOS X Bluetooth support" >&5 16715$as_echo "$as_me: checking for the MacOS X Bluetooth support" >&6;} 16716 for ac_header in CoreFoundation/CoreFoundation.h 16717do : 16718 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default" 16719if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then : 16720 cat >>confdefs.h <<_ACEOF 16721#define HAVE_COREFOUNDATION_COREFOUNDATION_H 1 16722_ACEOF 16723 16724fi 16725 16726done 16727 16728 for ac_header in IOBluetooth/Bluetooth.h 16729do : 16730 ac_fn_c_check_header_mongrel "$LINENO" "IOBluetooth/Bluetooth.h" "ac_cv_header_IOBluetooth_Bluetooth_h" "$ac_includes_default" 16731if test "x$ac_cv_header_IOBluetooth_Bluetooth_h" = xyes; then : 16732 cat >>confdefs.h <<_ACEOF 16733#define HAVE_IOBLUETOOTH_BLUETOOTH_H 1 16734_ACEOF 16735 16736fi 16737 16738done 16739 16740 for ac_header in IOBluetooth/IOBluetoothUserLib.h 16741do : 16742 ac_fn_c_check_header_compile "$LINENO" "IOBluetooth/IOBluetoothUserLib.h" "ac_cv_header_IOBluetooth_IOBluetoothUserLib_h" "#ifdef HAVE_COREFOUNDATION_COREFOUNDATION_H 16743 # include <CoreFoundation/CoreFoundation.h> 16744 #endif 16745 #ifdef HAVE_IOBLUETOOTH_BLUETOOTH_H 16746 # include <IOBluetooth/Bluetooth.h> 16747 #endif 16748 16749" 16750if test "x$ac_cv_header_IOBluetooth_IOBluetoothUserLib_h" = xyes; then : 16751 cat >>confdefs.h <<_ACEOF 16752#define HAVE_IOBLUETOOTH_IOBLUETOOTHUSERLIB_H 1 16753_ACEOF 16754 16755fi 16756 16757done 16758 16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16760/* end confdefs.h. */ 16761#include <CoreFoundation/CoreFoundation.h> 16762 #include <IOBluetooth/Bluetooth.h> 16763 #include <IOBluetooth/IOBluetoothUserLib.h> 16764int 16765main () 16766{ 16767CFStringRef strDevice; 16768 strDevice = CFStringCreateWithCString(NULL, NULL, NULL); 16769 IOBluetoothNSStringToDeviceAddress(NULL, NULL); 16770 ; 16771 return 0; 16772} 16773_ACEOF 16774if ac_fn_c_try_compile "$LINENO"; then : 16775 ac_cv_have_iobluetooth=yes 16776else 16777 ac_cv_have_iobluetooth=no 16778fi 16779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16780 16781 if test $ac_cv_have_iobluetooth = yes; then 16782 16783$as_echo "#define HAVE_BLUETOOTH 1" >>confdefs.h 16784 16785 16786$as_echo "#define HAVE_BLUETOOTH_MACOSX /**/" >>confdefs.h 16787 16788 USE_BLUETOOTH="yes" 16789 BLUETOOTH_LIBS="$PTHREAD_LIBS -Wl,-framework,CoreFoundation -Wl,-framework,IOBluetooth -Wl,-framework,Foundation" 16790 16791 fi 16792 fi 16793fi 16794 16795if test `uname -s` = "FreeBSD" ; then 16796 if test "$enable_bluetooth" = "yes" -a "$USE_BLUETOOTH" = "no"; then 16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the FreeBSD/netgraph Bluetooth support" >&5 16798$as_echo "$as_me: checking for the FreeBSD/netgraph Bluetooth support" >&6;} 16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the struct sockaddr_rfcomm from <bluetooth.h>" >&5 16800$as_echo_n "checking for the struct sockaddr_rfcomm from <bluetooth.h>... " >&6; } 16801if ${ac_cv_have_sockaddr_rfcomm+:} false; then : 16802 $as_echo_n "(cached) " >&6 16803else 16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16805/* end confdefs.h. */ 16806#include <bluetooth.h> 16807int 16808main () 16809{ 16810struct sockaddr_rfcomm rc; 16811 ; 16812 return 0; 16813} 16814_ACEOF 16815if ac_fn_c_try_compile "$LINENO"; then : 16816 ac_cv_have_sockaddr_rfcomm=yes 16817else 16818 ac_cv_have_sockaddr_rfcomm=no 16819fi 16820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16821fi 16822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sockaddr_rfcomm" >&5 16823$as_echo "$ac_cv_have_sockaddr_rfcomm" >&6; } 16824 16825 if test $ac_cv_have_sockaddr_rfcomm = yes; then 16826 16827$as_echo "#define HAVE_BLUETOOTH 1" >>confdefs.h 16828 16829 16830$as_echo "#define HAVE_BLUETOOTH_NETGRAPH /**/" >>confdefs.h 16831 16832 USE_BLUETOOTH="yes" 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bt_aton in -lbluetooth" >&5 16834$as_echo_n "checking for bt_aton in -lbluetooth... " >&6; } 16835if ${ac_cv_lib_bluetooth_bt_aton+:} false; then : 16836 $as_echo_n "(cached) " >&6 16837else 16838 ac_check_lib_save_LIBS=$LIBS 16839LIBS="-lsdp -lbluetooth $LIBS" 16840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16841/* end confdefs.h. */ 16842 16843/* Override any GCC internal prototype to avoid an error. 16844 Use char because int might match the return type of a GCC 16845 builtin and then its argument prototype would still apply. */ 16846#ifdef __cplusplus 16847extern "C" 16848#endif 16849char bt_aton (); 16850int 16851main () 16852{ 16853return bt_aton (); 16854 ; 16855 return 0; 16856} 16857_ACEOF 16858if ac_fn_c_try_link "$LINENO"; then : 16859 ac_cv_lib_bluetooth_bt_aton=yes 16860else 16861 ac_cv_lib_bluetooth_bt_aton=no 16862fi 16863rm -f core conftest.err conftest.$ac_objext \ 16864 conftest$ac_exeext conftest.$ac_ext 16865LIBS=$ac_check_lib_save_LIBS 16866fi 16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bluetooth_bt_aton" >&5 16868$as_echo "$ac_cv_lib_bluetooth_bt_aton" >&6; } 16869if test "x$ac_cv_lib_bluetooth_bt_aton" = xyes; then : 16870 BLUETOOTH_LIBS="-lsdp -lbluetooth" ac_cv_have_bt_lib=yes 16871else 16872 ac_cv_have_bt_lib=no 16873fi 16874 16875 if test $ac_cv_have_bt_lib = yes; then 16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdp_open in -lsdp" >&5 16877$as_echo_n "checking for sdp_open in -lsdp... " >&6; } 16878if ${ac_cv_lib_sdp_sdp_open+:} false; then : 16879 $as_echo_n "(cached) " >&6 16880else 16881 ac_check_lib_save_LIBS=$LIBS 16882LIBS="-lsdp $LIBS" 16883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16884/* end confdefs.h. */ 16885 16886/* Override any GCC internal prototype to avoid an error. 16887 Use char because int might match the return type of a GCC 16888 builtin and then its argument prototype would still apply. */ 16889#ifdef __cplusplus 16890extern "C" 16891#endif 16892char sdp_open (); 16893int 16894main () 16895{ 16896return sdp_open (); 16897 ; 16898 return 0; 16899} 16900_ACEOF 16901if ac_fn_c_try_link "$LINENO"; then : 16902 ac_cv_lib_sdp_sdp_open=yes 16903else 16904 ac_cv_lib_sdp_sdp_open=no 16905fi 16906rm -f core conftest.err conftest.$ac_objext \ 16907 conftest$ac_exeext conftest.$ac_ext 16908LIBS=$ac_check_lib_save_LIBS 16909fi 16910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sdp_sdp_open" >&5 16911$as_echo "$ac_cv_lib_sdp_sdp_open" >&6; } 16912if test "x$ac_cv_lib_sdp_sdp_open" = xyes; then : 16913 BLUETOOTH_LIBS="$BLUETOOTH_LIBS -lsdp" 16914fi 16915 16916 16917 fi 16918 fi 16919 fi 16920fi 16921 16922if test `uname -s` = "NetBSD" ; then 16923 if test "$enable_bluetooth" = "yes" -a "$USE_BLUETOOTH" = "no"; then 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the NetBSD/netbt Bluetooth support" >&5 16925$as_echo "$as_me: checking for the NetBSD/netbt Bluetooth support" >&6;} 16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the struct sockaddr_bt from <bluetooth.h>" >&5 16927$as_echo_n "checking for the struct sockaddr_bt from <bluetooth.h>... " >&6; } 16928if ${ac_cv_have_sockaddr_bt+:} false; then : 16929 $as_echo_n "(cached) " >&6 16930else 16931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16932/* end confdefs.h. */ 16933#include <bluetooth.h> 16934int 16935main () 16936{ 16937struct sockaddr_bt rc; 16938 ; 16939 return 0; 16940} 16941_ACEOF 16942if ac_fn_c_try_compile "$LINENO"; then : 16943 ac_cv_have_sockaddr_bt=yes 16944else 16945 ac_cv_have_sockaddr_bt=no 16946fi 16947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16948fi 16949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sockaddr_bt" >&5 16950$as_echo "$ac_cv_have_sockaddr_bt" >&6; } 16951 16952 if test $ac_cv_have_sockaddr_bt = yes; then 16953 16954$as_echo "#define HAVE_BLUETOOTH 1" >>confdefs.h 16955 16956 16957$as_echo "#define HAVE_BLUETOOTH_NETBT /**/" >>confdefs.h 16958 16959 USE_BLUETOOTH="yes" 16960 CFLAGS="$CFLAGS -DCOMPAT_BLUEZ" 16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bt_aton in -lbluetooth" >&5 16962$as_echo_n "checking for bt_aton in -lbluetooth... " >&6; } 16963if ${ac_cv_lib_bluetooth_bt_aton+:} false; then : 16964 $as_echo_n "(cached) " >&6 16965else 16966 ac_check_lib_save_LIBS=$LIBS 16967LIBS="-lsdp -lbluetooth $LIBS" 16968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16969/* end confdefs.h. */ 16970 16971/* Override any GCC internal prototype to avoid an error. 16972 Use char because int might match the return type of a GCC 16973 builtin and then its argument prototype would still apply. */ 16974#ifdef __cplusplus 16975extern "C" 16976#endif 16977char bt_aton (); 16978int 16979main () 16980{ 16981return bt_aton (); 16982 ; 16983 return 0; 16984} 16985_ACEOF 16986if ac_fn_c_try_link "$LINENO"; then : 16987 ac_cv_lib_bluetooth_bt_aton=yes 16988else 16989 ac_cv_lib_bluetooth_bt_aton=no 16990fi 16991rm -f core conftest.err conftest.$ac_objext \ 16992 conftest$ac_exeext conftest.$ac_ext 16993LIBS=$ac_check_lib_save_LIBS 16994fi 16995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bluetooth_bt_aton" >&5 16996$as_echo "$ac_cv_lib_bluetooth_bt_aton" >&6; } 16997if test "x$ac_cv_lib_bluetooth_bt_aton" = xyes; then : 16998 BLUETOOTH_LIBS="-lsdp -lbluetooth" ac_cv_have_bt_lib=yes 16999else 17000 ac_cv_have_bt_lib=no 17001fi 17002 17003 if test $ac_cv_have_bt_lib = yes; then 17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdp_open in -lsdp" >&5 17005$as_echo_n "checking for sdp_open in -lsdp... " >&6; } 17006if ${ac_cv_lib_sdp_sdp_open+:} false; then : 17007 $as_echo_n "(cached) " >&6 17008else 17009 ac_check_lib_save_LIBS=$LIBS 17010LIBS="-lsdp $LIBS" 17011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17012/* end confdefs.h. */ 17013 17014/* Override any GCC internal prototype to avoid an error. 17015 Use char because int might match the return type of a GCC 17016 builtin and then its argument prototype would still apply. */ 17017#ifdef __cplusplus 17018extern "C" 17019#endif 17020char sdp_open (); 17021int 17022main () 17023{ 17024return sdp_open (); 17025 ; 17026 return 0; 17027} 17028_ACEOF 17029if ac_fn_c_try_link "$LINENO"; then : 17030 ac_cv_lib_sdp_sdp_open=yes 17031else 17032 ac_cv_lib_sdp_sdp_open=no 17033fi 17034rm -f core conftest.err conftest.$ac_objext \ 17035 conftest$ac_exeext conftest.$ac_ext 17036LIBS=$ac_check_lib_save_LIBS 17037fi 17038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sdp_sdp_open" >&5 17039$as_echo "$ac_cv_lib_sdp_sdp_open" >&6; } 17040if test "x$ac_cv_lib_sdp_sdp_open" = xyes; then : 17041 BLUETOOTH_LIBS="$BLUETOOTH_LIBS -lsdp" 17042fi 17043 17044 17045 fi 17046 fi 17047 fi 17048fi 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17059 if test -n "$ac_tool_prefix"; then 17060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17061set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17063$as_echo_n "checking for $ac_word... " >&6; } 17064if ${ac_cv_path_PKG_CONFIG+:} false; then : 17065 $as_echo_n "(cached) " >&6 17066else 17067 case $PKG_CONFIG in 17068 [\\/]* | ?:[\\/]*) 17069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17070 ;; 17071 *) 17072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17073for as_dir in $PATH 17074do 17075 IFS=$as_save_IFS 17076 test -z "$as_dir" && as_dir=. 17077 for ac_exec_ext in '' $ac_executable_extensions; do 17078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17081 break 2 17082 fi 17083done 17084 done 17085IFS=$as_save_IFS 17086 17087 ;; 17088esac 17089fi 17090PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17091if test -n "$PKG_CONFIG"; then 17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17093$as_echo "$PKG_CONFIG" >&6; } 17094else 17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17096$as_echo "no" >&6; } 17097fi 17098 17099 17100fi 17101if test -z "$ac_cv_path_PKG_CONFIG"; then 17102 ac_pt_PKG_CONFIG=$PKG_CONFIG 17103 # Extract the first word of "pkg-config", so it can be a program name with args. 17104set dummy pkg-config; ac_word=$2 17105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17106$as_echo_n "checking for $ac_word... " >&6; } 17107if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 17108 $as_echo_n "(cached) " >&6 17109else 17110 case $ac_pt_PKG_CONFIG in 17111 [\\/]* | ?:[\\/]*) 17112 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17113 ;; 17114 *) 17115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17116for as_dir in $PATH 17117do 17118 IFS=$as_save_IFS 17119 test -z "$as_dir" && as_dir=. 17120 for ac_exec_ext in '' $ac_executable_extensions; do 17121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17122 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17124 break 2 17125 fi 17126done 17127 done 17128IFS=$as_save_IFS 17129 17130 ;; 17131esac 17132fi 17133ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17134if test -n "$ac_pt_PKG_CONFIG"; then 17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17136$as_echo "$ac_pt_PKG_CONFIG" >&6; } 17137else 17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17139$as_echo "no" >&6; } 17140fi 17141 17142 if test "x$ac_pt_PKG_CONFIG" = x; then 17143 PKG_CONFIG="" 17144 else 17145 case $cross_compiling:$ac_tool_warned in 17146yes:) 17147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17149ac_tool_warned=yes ;; 17150esac 17151 PKG_CONFIG=$ac_pt_PKG_CONFIG 17152 fi 17153else 17154 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17155fi 17156 17157fi 17158if test -n "$PKG_CONFIG"; then 17159 _pkg_min_version=0.9.0 17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17161$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17162 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17164$as_echo "yes" >&6; } 17165 else 17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17167$as_echo "no" >&6; } 17168 PKG_CONFIG="" 17169 fi 17170fi 17171 17172pkg_failed=no 17173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 17174$as_echo_n "checking for GTK... " >&6; } 17175 17176if test -n "$GTK_CFLAGS"; then 17177 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 17178 elif test -n "$PKG_CONFIG"; then 17179 if test -n "$PKG_CONFIG" && \ 17180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0\""; } >&5 17181 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0") 2>&5 17182 ac_status=$? 17183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17184 test $ac_status = 0; }; then 17185 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0" 2>/dev/null` 17186 test "x$?" != "x0" && pkg_failed=yes 17187else 17188 pkg_failed=yes 17189fi 17190 else 17191 pkg_failed=untried 17192fi 17193if test -n "$GTK_LIBS"; then 17194 pkg_cv_GTK_LIBS="$GTK_LIBS" 17195 elif test -n "$PKG_CONFIG"; then 17196 if test -n "$PKG_CONFIG" && \ 17197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0\""; } >&5 17198 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0") 2>&5 17199 ac_status=$? 17200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17201 test $ac_status = 0; }; then 17202 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0" 2>/dev/null` 17203 test "x$?" != "x0" && pkg_failed=yes 17204else 17205 pkg_failed=yes 17206fi 17207 else 17208 pkg_failed=untried 17209fi 17210 17211 17212 17213if test $pkg_failed = yes; then 17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17215$as_echo "no" >&6; } 17216 17217if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17218 _pkg_short_errors_supported=yes 17219else 17220 _pkg_short_errors_supported=no 17221fi 17222 if test $_pkg_short_errors_supported = yes; then 17223 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.0" 2>&1` 17224 else 17225 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.0" 2>&1` 17226 fi 17227 # Put the nasty error message in config.log where it belongs 17228 echo "$GTK_PKG_ERRORS" >&5 17229 17230 found_gtk=no 17231elif test $pkg_failed = untried; then 17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17233$as_echo "no" >&6; } 17234 found_gtk=no 17235else 17236 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 17237 GTK_LIBS=$pkg_cv_GTK_LIBS 17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17239$as_echo "yes" >&6; } 17240 found_gtk=yes 17241fi 17242 17243if test "$no_x" = yes -o "$with_x" = "no"; then 17244 x_support="no" 17245 XPM_CFLAGS="" 17246 XPM_LIBS="" 17247 GTK_CFLAGS="" 17248 GTK_LIBS="" 17249else 17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 17251$as_echo_n "checking for X... " >&6; } 17252 17253 17254# Check whether --with-x was given. 17255if test "${with_x+set}" = set; then : 17256 withval=$with_x; 17257fi 17258 17259# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 17260if test "x$with_x" = xno; then 17261 # The user explicitly disabled X. 17262 have_x=disabled 17263else 17264 case $x_includes,$x_libraries in #( 17265 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 17266 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 17267 $as_echo_n "(cached) " >&6 17268else 17269 # One or both of the vars are not set, and there is no cached value. 17270ac_x_includes=no ac_x_libraries=no 17271rm -f -r conftest.dir 17272if mkdir conftest.dir; then 17273 cd conftest.dir 17274 cat >Imakefile <<'_ACEOF' 17275incroot: 17276 @echo incroot='${INCROOT}' 17277usrlibdir: 17278 @echo usrlibdir='${USRLIBDIR}' 17279libdir: 17280 @echo libdir='${LIBDIR}' 17281_ACEOF 17282 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 17283 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 17284 for ac_var in incroot usrlibdir libdir; do 17285 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 17286 done 17287 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 17288 for ac_extension in a so sl dylib la dll; do 17289 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 17290 test -f "$ac_im_libdir/libX11.$ac_extension"; then 17291 ac_im_usrlibdir=$ac_im_libdir; break 17292 fi 17293 done 17294 # Screen out bogus values from the imake configuration. They are 17295 # bogus both because they are the default anyway, and because 17296 # using them would break gcc on systems where it needs fixed includes. 17297 case $ac_im_incroot in 17298 /usr/include) ac_x_includes= ;; 17299 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 17300 esac 17301 case $ac_im_usrlibdir in 17302 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 17303 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 17304 esac 17305 fi 17306 cd .. 17307 rm -f -r conftest.dir 17308fi 17309 17310# Standard set of common directories for X headers. 17311# Check X11 before X11Rn because it is often a symlink to the current release. 17312ac_x_header_dirs=' 17313/usr/X11/include 17314/usr/X11R7/include 17315/usr/X11R6/include 17316/usr/X11R5/include 17317/usr/X11R4/include 17318 17319/usr/include/X11 17320/usr/include/X11R7 17321/usr/include/X11R6 17322/usr/include/X11R5 17323/usr/include/X11R4 17324 17325/usr/local/X11/include 17326/usr/local/X11R7/include 17327/usr/local/X11R6/include 17328/usr/local/X11R5/include 17329/usr/local/X11R4/include 17330 17331/usr/local/include/X11 17332/usr/local/include/X11R7 17333/usr/local/include/X11R6 17334/usr/local/include/X11R5 17335/usr/local/include/X11R4 17336 17337/usr/X386/include 17338/usr/x386/include 17339/usr/XFree86/include/X11 17340 17341/usr/include 17342/usr/local/include 17343/usr/unsupported/include 17344/usr/athena/include 17345/usr/local/x11r5/include 17346/usr/lpp/Xamples/include 17347 17348/usr/openwin/include 17349/usr/openwin/share/include' 17350 17351if test "$ac_x_includes" = no; then 17352 # Guess where to find include files, by looking for Xlib.h. 17353 # First, try using that file with no special directory specified. 17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17355/* end confdefs.h. */ 17356#include <X11/Xlib.h> 17357_ACEOF 17358if ac_fn_c_try_cpp "$LINENO"; then : 17359 # We can compile using X headers with no special include directory. 17360ac_x_includes= 17361else 17362 for ac_dir in $ac_x_header_dirs; do 17363 if test -r "$ac_dir/X11/Xlib.h"; then 17364 ac_x_includes=$ac_dir 17365 break 17366 fi 17367done 17368fi 17369rm -f conftest.err conftest.i conftest.$ac_ext 17370fi # $ac_x_includes = no 17371 17372if test "$ac_x_libraries" = no; then 17373 # Check for the libraries. 17374 # See if we find them without any special options. 17375 # Don't add to $LIBS permanently. 17376 ac_save_LIBS=$LIBS 17377 LIBS="-lX11 $LIBS" 17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17379/* end confdefs.h. */ 17380#include <X11/Xlib.h> 17381int 17382main () 17383{ 17384XrmInitialize () 17385 ; 17386 return 0; 17387} 17388_ACEOF 17389if ac_fn_c_try_link "$LINENO"; then : 17390 LIBS=$ac_save_LIBS 17391# We can link X programs with no special library path. 17392ac_x_libraries= 17393else 17394 LIBS=$ac_save_LIBS 17395for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 17396do 17397 # Don't even attempt the hair of trying to link an X program! 17398 for ac_extension in a so sl dylib la dll; do 17399 if test -r "$ac_dir/libX11.$ac_extension"; then 17400 ac_x_libraries=$ac_dir 17401 break 2 17402 fi 17403 done 17404done 17405fi 17406rm -f core conftest.err conftest.$ac_objext \ 17407 conftest$ac_exeext conftest.$ac_ext 17408fi # $ac_x_libraries = no 17409 17410case $ac_x_includes,$ac_x_libraries in #( 17411 no,* | *,no | *\'*) 17412 # Didn't find X, or a directory has "'" in its name. 17413 ac_cv_have_x="have_x=no";; #( 17414 *) 17415 # Record where we found X for the cache. 17416 ac_cv_have_x="have_x=yes\ 17417 ac_x_includes='$ac_x_includes'\ 17418 ac_x_libraries='$ac_x_libraries'" 17419esac 17420fi 17421;; #( 17422 *) have_x=yes;; 17423 esac 17424 eval "$ac_cv_have_x" 17425fi # $with_x != no 17426 17427if test "$have_x" != yes; then 17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 17429$as_echo "$have_x" >&6; } 17430 no_x=yes 17431else 17432 # If each of the values was on the command line, it overrides each guess. 17433 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 17434 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 17435 # Update the cache value to reflect the command line values. 17436 ac_cv_have_x="have_x=yes\ 17437 ac_x_includes='$x_includes'\ 17438 ac_x_libraries='$x_libraries'" 17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 17440$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 17441fi 17442 17443 if test "x$x_libraries" = "xNONE"; then 17444 x_support="no" 17445 XPM_CFLAGS="" 17446 XPM_LIBS="" 17447 GTK_CFLAGS="" 17448 GTK_LIBS="" 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find library libX11." >&5 17450$as_echo "$as_me: WARNING: Cannot find library libX11." >&2;} 17451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling xgnokii." >&5 17452$as_echo "$as_me: WARNING: Disabling xgnokii." >&2;} 17453 else 17454 if test "x$x_includes" != "x"; then 17455 XINCL="-I$x_includes" 17456 else 17457 XINCL="" 17458 fi 17459 if test "x$x_libraries" != "x"; then 17460 XLIBS="-L$x_libraries" 17461 else 17462 XLIBS="" 17463 fi 17464 CPPFLAGS="$CPPFLAGS $XINCL" 17465 for ac_header in X11/xpm.h 17466do : 17467 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" 17468if test "x$ac_cv_header_X11_xpm_h" = xyes; then : 17469 cat >>confdefs.h <<_ACEOF 17470#define HAVE_X11_XPM_H 1 17471_ACEOF 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmWriteFileFromXpmImage in -lXpm" >&5 17473$as_echo_n "checking for XpmWriteFileFromXpmImage in -lXpm... " >&6; } 17474if ${ac_cv_lib_Xpm_XpmWriteFileFromXpmImage+:} false; then : 17475 $as_echo_n "(cached) " >&6 17476else 17477 ac_check_lib_save_LIBS=$LIBS 17478LIBS="-lXpm $XLIBS -lX11 $LIBS" 17479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17480/* end confdefs.h. */ 17481 17482/* Override any GCC internal prototype to avoid an error. 17483 Use char because int might match the return type of a GCC 17484 builtin and then its argument prototype would still apply. */ 17485#ifdef __cplusplus 17486extern "C" 17487#endif 17488char XpmWriteFileFromXpmImage (); 17489int 17490main () 17491{ 17492return XpmWriteFileFromXpmImage (); 17493 ; 17494 return 0; 17495} 17496_ACEOF 17497if ac_fn_c_try_link "$LINENO"; then : 17498 ac_cv_lib_Xpm_XpmWriteFileFromXpmImage=yes 17499else 17500 ac_cv_lib_Xpm_XpmWriteFileFromXpmImage=no 17501fi 17502rm -f core conftest.err conftest.$ac_objext \ 17503 conftest$ac_exeext conftest.$ac_ext 17504LIBS=$ac_check_lib_save_LIBS 17505fi 17506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmWriteFileFromXpmImage" >&5 17507$as_echo "$ac_cv_lib_Xpm_XpmWriteFileFromXpmImage" >&6; } 17508if test "x$ac_cv_lib_Xpm_XpmWriteFileFromXpmImage" = xyes; then : 17509 XPM_CFLAGS="$XINCL" 17510 XPM_LIBS="$XLIBS -lXpm -lX11 -lcrypt" 17511 17512$as_echo "#define XPM 1" >>confdefs.h 17513 17514else 17515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot found library libXpm - disabling XPM support." >&5 17516$as_echo "$as_me: WARNING: Cannot found library libXpm - disabling XPM support." >&2;} 17517fi 17518 17519 17520 17521fi 17522 17523done 17524 17525 if test "x$PTHREAD_LIBS" = xerror; then 17526 x_support="no" 17527 GTK_CFLAGS="" 17528 GTK_LIBS="" 17529 else 17530 if test "$found_gtk" = no; then 17531 x_support="no" 17532 GTK_CFLAGS="" 17533 GTK_LIBS="" 17534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find GTK+ 2.0." >&5 17535$as_echo "$as_me: WARNING: Cannot find GTK+ 2.0." >&2;} 17536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling xgnokii." >&5 17537$as_echo "$as_me: WARNING: Disabling xgnokii." >&2;} 17538 else 17539 x_support="yes" 17540 fi 17541 fi 17542 fi 17543fi 17544 17545 if test "x$x_support" = "xyes"; then 17546 XGNOKII_TRUE= 17547 XGNOKII_FALSE='#' 17548else 17549 XGNOKII_TRUE='#' 17550 XGNOKII_FALSE= 17551fi 17552 17553 17554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 17555$as_echo_n "checking for socket in -lsocket... " >&6; } 17556if ${ac_cv_lib_socket_socket+:} false; then : 17557 $as_echo_n "(cached) " >&6 17558else 17559 ac_check_lib_save_LIBS=$LIBS 17560LIBS="-lsocket $LIBS" 17561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17562/* end confdefs.h. */ 17563 17564/* Override any GCC internal prototype to avoid an error. 17565 Use char because int might match the return type of a GCC 17566 builtin and then its argument prototype would still apply. */ 17567#ifdef __cplusplus 17568extern "C" 17569#endif 17570char socket (); 17571int 17572main () 17573{ 17574return socket (); 17575 ; 17576 return 0; 17577} 17578_ACEOF 17579if ac_fn_c_try_link "$LINENO"; then : 17580 ac_cv_lib_socket_socket=yes 17581else 17582 ac_cv_lib_socket_socket=no 17583fi 17584rm -f core conftest.err conftest.$ac_objext \ 17585 conftest$ac_exeext conftest.$ac_ext 17586LIBS=$ac_check_lib_save_LIBS 17587fi 17588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 17589$as_echo "$ac_cv_lib_socket_socket" >&6; } 17590if test "x$ac_cv_lib_socket_socket" = xyes; then : 17591 cat >>confdefs.h <<_ACEOF 17592#define HAVE_LIBSOCKET 1 17593_ACEOF 17594 17595 LIBS="-lsocket $LIBS" 17596 17597fi 17598 17599 17600 17601pkg_failed=no 17602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 17603$as_echo_n "checking for GLIB... " >&6; } 17604 17605if test -n "$GLIB_CFLAGS"; then 17606 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 17607 elif test -n "$PKG_CONFIG"; then 17608 if test -n "$PKG_CONFIG" && \ 17609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 17610 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 17611 ac_status=$? 17612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17613 test $ac_status = 0; }; then 17614 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null` 17615 test "x$?" != "x0" && pkg_failed=yes 17616else 17617 pkg_failed=yes 17618fi 17619 else 17620 pkg_failed=untried 17621fi 17622if test -n "$GLIB_LIBS"; then 17623 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 17624 elif test -n "$PKG_CONFIG"; then 17625 if test -n "$PKG_CONFIG" && \ 17626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5 17627 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5 17628 ac_status=$? 17629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17630 test $ac_status = 0; }; then 17631 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null` 17632 test "x$?" != "x0" && pkg_failed=yes 17633else 17634 pkg_failed=yes 17635fi 17636 else 17637 pkg_failed=untried 17638fi 17639 17640 17641 17642if test $pkg_failed = yes; then 17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17644$as_echo "no" >&6; } 17645 17646if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17647 _pkg_short_errors_supported=yes 17648else 17649 _pkg_short_errors_supported=no 17650fi 17651 if test $_pkg_short_errors_supported = yes; then 17652 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0" 2>&1` 17653 else 17654 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0" 2>&1` 17655 fi 17656 # Put the nasty error message in config.log where it belongs 17657 echo "$GLIB_PKG_ERRORS" >&5 17658 17659 as_fn_error $? "Package requirements (glib-2.0) were not met: 17660 17661$GLIB_PKG_ERRORS 17662 17663Consider adjusting the PKG_CONFIG_PATH environment variable if you 17664installed software in a non-standard prefix. 17665 17666Alternatively, you may set the environment variables GLIB_CFLAGS 17667and GLIB_LIBS to avoid the need to call pkg-config. 17668See the pkg-config man page for more details." "$LINENO" 5 17669elif test $pkg_failed = untried; then 17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17671$as_echo "no" >&6; } 17672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17674as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17675is in your PATH or set the PKG_CONFIG environment variable to the full 17676path to pkg-config. 17677 17678Alternatively, you may set the environment variables GLIB_CFLAGS 17679and GLIB_LIBS to avoid the need to call pkg-config. 17680See the pkg-config man page for more details. 17681 17682To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17683See \`config.log' for more details" "$LINENO" 5; } 17684else 17685 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 17686 GLIB_LIBS=$pkg_cv_GLIB_LIBS 17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17688$as_echo "yes" >&6; } 17689 17690fi 17691 17692 17693pkg_failed=no 17694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5 17695$as_echo_n "checking for GMODULE... " >&6; } 17696 17697if test -n "$GMODULE_CFLAGS"; then 17698 pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS" 17699 elif test -n "$PKG_CONFIG"; then 17700 if test -n "$PKG_CONFIG" && \ 17701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5 17702 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5 17703 ac_status=$? 17704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17705 test $ac_status = 0; }; then 17706 pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null` 17707 test "x$?" != "x0" && pkg_failed=yes 17708else 17709 pkg_failed=yes 17710fi 17711 else 17712 pkg_failed=untried 17713fi 17714if test -n "$GMODULE_LIBS"; then 17715 pkg_cv_GMODULE_LIBS="$GMODULE_LIBS" 17716 elif test -n "$PKG_CONFIG"; then 17717 if test -n "$PKG_CONFIG" && \ 17718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5 17719 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5 17720 ac_status=$? 17721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17722 test $ac_status = 0; }; then 17723 pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null` 17724 test "x$?" != "x0" && pkg_failed=yes 17725else 17726 pkg_failed=yes 17727fi 17728 else 17729 pkg_failed=untried 17730fi 17731 17732 17733 17734if test $pkg_failed = yes; then 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17736$as_echo "no" >&6; } 17737 17738if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17739 _pkg_short_errors_supported=yes 17740else 17741 _pkg_short_errors_supported=no 17742fi 17743 if test $_pkg_short_errors_supported = yes; then 17744 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1` 17745 else 17746 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1` 17747 fi 17748 # Put the nasty error message in config.log where it belongs 17749 echo "$GMODULE_PKG_ERRORS" >&5 17750 17751 found_gmodule=no 17752elif test $pkg_failed = untried; then 17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17754$as_echo "no" >&6; } 17755 found_gmodule=no 17756else 17757 GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS 17758 GMODULE_LIBS=$pkg_cv_GMODULE_LIBS 17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17760$as_echo "yes" >&6; } 17761 found_gmodule=yes 17762fi 17763 17764# Check whether --enable-smsd was given. 17765if test "${enable_smsd+set}" = set; then : 17766 enableval=$enable_smsd; 17767else 17768 enable_smsd=yes 17769fi 17770 17771 17772if test "$enable_smsd" = yes; then 17773 if test "$found_gmodule" = no; then 17774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gmodule 2.0." >&5 17775$as_echo "$as_me: WARNING: Cannot find gmodule 2.0." >&2;} 17776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling smsd." >&5 17777$as_echo "$as_me: WARNING: Disabling smsd." >&2;} 17778 enable_smsd="no" 17779 fi 17780fi 17781 17782 if test "x$enable_smsd" = "xyes"; then 17783 SMSD_TRUE= 17784 SMSD_FALSE='#' 17785else 17786 SMSD_TRUE='#' 17787 SMSD_FALSE= 17788fi 17789 17790 17791 17792# Check whether --enable-postgres was given. 17793if test "${enable_postgres+set}" = set; then : 17794 enableval=$enable_postgres; enable_postgres=$enableval 17795else 17796 enable_postgres=yes 17797fi 17798 17799have_postgres=no 17800# Extract the first word of "pg_config", so it can be a program name with args. 17801set dummy pg_config; ac_word=$2 17802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17803$as_echo_n "checking for $ac_word... " >&6; } 17804if ${ac_cv_path_PGCONFIG+:} false; then : 17805 $as_echo_n "(cached) " >&6 17806else 17807 case $PGCONFIG in 17808 [\\/]* | ?:[\\/]*) 17809 ac_cv_path_PGCONFIG="$PGCONFIG" # Let the user override the test with a path. 17810 ;; 17811 *) 17812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17813for as_dir in $PATH 17814do 17815 IFS=$as_save_IFS 17816 test -z "$as_dir" && as_dir=. 17817 for ac_exec_ext in '' $ac_executable_extensions; do 17818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17819 ac_cv_path_PGCONFIG="$as_dir/$ac_word$ac_exec_ext" 17820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17821 break 2 17822 fi 17823done 17824 done 17825IFS=$as_save_IFS 17826 17827 test -z "$ac_cv_path_PGCONFIG" && ac_cv_path_PGCONFIG="no" 17828 ;; 17829esac 17830fi 17831PGCONFIG=$ac_cv_path_PGCONFIG 17832if test -n "$PGCONFIG"; then 17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGCONFIG" >&5 17834$as_echo "$PGCONFIG" >&6; } 17835else 17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17837$as_echo "no" >&6; } 17838fi 17839 17840 17841if test x$enable_postgres != xno && test x$PGCONFIG != xno ; then 17842 have_postgres=yes 17843 pg_libdir=`$PGCONFIG --libdir` 17844 POSTGRES_LIBS="-L$pg_libdir -lpq" 17845 pg_includedir=`$PGCONFIG --includedir` 17846 POSTGRES_CFLAGS="-I$pg_includedir" 17847 17848 17849fi 17850 17851 if test "x$have_postgres" = "xyes"; then 17852 HAVE_POSTGRES_TRUE= 17853 HAVE_POSTGRES_FALSE='#' 17854else 17855 HAVE_POSTGRES_TRUE='#' 17856 HAVE_POSTGRES_FALSE= 17857fi 17858 17859 17860# Check whether --enable-sqlite was given. 17861if test "${enable_sqlite+set}" = set; then : 17862 enableval=$enable_sqlite; enable_sqlite=$enableval 17863else 17864 enable_sqlite=yes 17865fi 17866 17867have_sqlite=no 17868 17869pkg_failed=no 17870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5 17871$as_echo_n "checking for SQLITE3... " >&6; } 17872 17873if test -n "$SQLITE3_CFLAGS"; then 17874 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS" 17875 elif test -n "$PKG_CONFIG"; then 17876 if test -n "$PKG_CONFIG" && \ 17877 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 17878 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 17879 ac_status=$? 17880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17881 test $ac_status = 0; }; then 17882 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` 17883 test "x$?" != "x0" && pkg_failed=yes 17884else 17885 pkg_failed=yes 17886fi 17887 else 17888 pkg_failed=untried 17889fi 17890if test -n "$SQLITE3_LIBS"; then 17891 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS" 17892 elif test -n "$PKG_CONFIG"; then 17893 if test -n "$PKG_CONFIG" && \ 17894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 17895 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 17896 ac_status=$? 17897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17898 test $ac_status = 0; }; then 17899 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` 17900 test "x$?" != "x0" && pkg_failed=yes 17901else 17902 pkg_failed=yes 17903fi 17904 else 17905 pkg_failed=untried 17906fi 17907 17908 17909 17910if test $pkg_failed = yes; then 17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17912$as_echo "no" >&6; } 17913 17914if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17915 _pkg_short_errors_supported=yes 17916else 17917 _pkg_short_errors_supported=no 17918fi 17919 if test $_pkg_short_errors_supported = yes; then 17920 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` 17921 else 17922 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` 17923 fi 17924 # Put the nasty error message in config.log where it belongs 17925 echo "$SQLITE3_PKG_ERRORS" >&5 17926 17927 have_sqlite=no 17928elif test $pkg_failed = untried; then 17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17930$as_echo "no" >&6; } 17931 have_sqlite=no 17932else 17933 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS 17934 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17936$as_echo "yes" >&6; } 17937 have_sqlite=yes 17938fi 17939if test x$enable_sqlite != xno && test x$PKGCONF != xno ; then 17940 SQLITE_LIBS=SQLITE3_LIBS 17941 17942 17943fi 17944 if test "x$have_sqlite" = "xyes"; then 17945 HAVE_SQLITE_TRUE= 17946 HAVE_SQLITE_FALSE='#' 17947else 17948 HAVE_SQLITE_TRUE='#' 17949 HAVE_SQLITE_FALSE= 17950fi 17951 17952 17953# Check whether --enable-mysql was given. 17954if test "${enable_mysql+set}" = set; then : 17955 enableval=$enable_mysql; enable_mysql=$enableval 17956else 17957 enable_mysql=yes 17958fi 17959 17960have_mysql=no 17961# Extract the first word of "mysql_config5", so it can be a program name with args. 17962set dummy mysql_config5; ac_word=$2 17963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17964$as_echo_n "checking for $ac_word... " >&6; } 17965if ${ac_cv_path_MYSQLCONFIG5+:} false; then : 17966 $as_echo_n "(cached) " >&6 17967else 17968 case $MYSQLCONFIG5 in 17969 [\\/]* | ?:[\\/]*) 17970 ac_cv_path_MYSQLCONFIG5="$MYSQLCONFIG5" # Let the user override the test with a path. 17971 ;; 17972 *) 17973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17974for as_dir in $PATH 17975do 17976 IFS=$as_save_IFS 17977 test -z "$as_dir" && as_dir=. 17978 for ac_exec_ext in '' $ac_executable_extensions; do 17979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17980 ac_cv_path_MYSQLCONFIG5="$as_dir/$ac_word$ac_exec_ext" 17981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17982 break 2 17983 fi 17984done 17985 done 17986IFS=$as_save_IFS 17987 17988 test -z "$ac_cv_path_MYSQLCONFIG5" && ac_cv_path_MYSQLCONFIG5="no" 17989 ;; 17990esac 17991fi 17992MYSQLCONFIG5=$ac_cv_path_MYSQLCONFIG5 17993if test -n "$MYSQLCONFIG5"; then 17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQLCONFIG5" >&5 17995$as_echo "$MYSQLCONFIG5" >&6; } 17996else 17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17998$as_echo "no" >&6; } 17999fi 18000 18001 18002if test x$MYSQLCONFIG5 = xno ; then 18003 # Extract the first word of "mysql_config", so it can be a program name with args. 18004set dummy mysql_config; ac_word=$2 18005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18006$as_echo_n "checking for $ac_word... " >&6; } 18007if ${ac_cv_path_MYSQLCONFIG+:} false; then : 18008 $as_echo_n "(cached) " >&6 18009else 18010 case $MYSQLCONFIG in 18011 [\\/]* | ?:[\\/]*) 18012 ac_cv_path_MYSQLCONFIG="$MYSQLCONFIG" # Let the user override the test with a path. 18013 ;; 18014 *) 18015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18016for as_dir in $PATH 18017do 18018 IFS=$as_save_IFS 18019 test -z "$as_dir" && as_dir=. 18020 for ac_exec_ext in '' $ac_executable_extensions; do 18021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18022 ac_cv_path_MYSQLCONFIG="$as_dir/$ac_word$ac_exec_ext" 18023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18024 break 2 18025 fi 18026done 18027 done 18028IFS=$as_save_IFS 18029 18030 test -z "$ac_cv_path_MYSQLCONFIG" && ac_cv_path_MYSQLCONFIG="no" 18031 ;; 18032esac 18033fi 18034MYSQLCONFIG=$ac_cv_path_MYSQLCONFIG 18035if test -n "$MYSQLCONFIG"; then 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQLCONFIG" >&5 18037$as_echo "$MYSQLCONFIG" >&6; } 18038else 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18040$as_echo "no" >&6; } 18041fi 18042 18043 18044else 18045 MYSQLCONFIG=$MYSQLCONFIG5 18046fi 18047if test x$enable_mysql != xno && test x$MYSQLCONFIG != xno ; then 18048 have_mysql=yes 18049 MYSQL_LIBS=`$MYSQLCONFIG --libs` 18050 MYSQL_CFLAGS=`$MYSQLCONFIG --cflags` 18051 18052 18053fi 18054 18055 if test "x$have_mysql" = "xyes"; then 18056 HAVE_MYSQL_TRUE= 18057 HAVE_MYSQL_FALSE='#' 18058else 18059 HAVE_MYSQL_TRUE='#' 18060 HAVE_MYSQL_FALSE= 18061fi 18062 18063 18064 18065# Check whether --enable-security was given. 18066if test "${enable_security+set}" = set; then : 18067 enableval=$enable_security; if test x$enable_security = xyes; then 18068 18069$as_echo "#define SECURITY 1" >>confdefs.h 18070 18071 security="yes" 18072 else 18073 security="no" 18074 fi 18075else 18076 security="no" 18077 18078fi 18079 18080 18081USE_LIBPCSCLITE="no" 18082# Check whether --enable-libpcsclite was given. 18083if test "${enable_libpcsclite+set}" = set; then : 18084 enableval=$enable_libpcsclite; 18085else 18086 enable_libpcsclite=yes 18087fi 18088 18089if test "$enable_libpcsclite" = "yes"; then 18090 18091pkg_failed=no 18092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPCSCLITE" >&5 18093$as_echo_n "checking for LIBPCSCLITE... " >&6; } 18094 18095if test -n "$LIBPCSCLITE_CFLAGS"; then 18096 pkg_cv_LIBPCSCLITE_CFLAGS="$LIBPCSCLITE_CFLAGS" 18097 elif test -n "$PKG_CONFIG"; then 18098 if test -n "$PKG_CONFIG" && \ 18099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite >= 1.3.1\""; } >&5 18100 ($PKG_CONFIG --exists --print-errors "libpcsclite >= 1.3.1") 2>&5 18101 ac_status=$? 18102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18103 test $ac_status = 0; }; then 18104 pkg_cv_LIBPCSCLITE_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite >= 1.3.1" 2>/dev/null` 18105 test "x$?" != "x0" && pkg_failed=yes 18106else 18107 pkg_failed=yes 18108fi 18109 else 18110 pkg_failed=untried 18111fi 18112if test -n "$LIBPCSCLITE_LIBS"; then 18113 pkg_cv_LIBPCSCLITE_LIBS="$LIBPCSCLITE_LIBS" 18114 elif test -n "$PKG_CONFIG"; then 18115 if test -n "$PKG_CONFIG" && \ 18116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite >= 1.3.1\""; } >&5 18117 ($PKG_CONFIG --exists --print-errors "libpcsclite >= 1.3.1") 2>&5 18118 ac_status=$? 18119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18120 test $ac_status = 0; }; then 18121 pkg_cv_LIBPCSCLITE_LIBS=`$PKG_CONFIG --libs "libpcsclite >= 1.3.1" 2>/dev/null` 18122 test "x$?" != "x0" && pkg_failed=yes 18123else 18124 pkg_failed=yes 18125fi 18126 else 18127 pkg_failed=untried 18128fi 18129 18130 18131 18132if test $pkg_failed = yes; then 18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18134$as_echo "no" >&6; } 18135 18136if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18137 _pkg_short_errors_supported=yes 18138else 18139 _pkg_short_errors_supported=no 18140fi 18141 if test $_pkg_short_errors_supported = yes; then 18142 LIBPCSCLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcsclite >= 1.3.1" 2>&1` 18143 else 18144 LIBPCSCLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcsclite >= 1.3.1" 2>&1` 18145 fi 18146 # Put the nasty error message in config.log where it belongs 18147 echo "$LIBPCSCLITE_PKG_ERRORS" >&5 18148 18149 USE_LIBPCSCLITE=no 18150elif test $pkg_failed = untried; then 18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18152$as_echo "no" >&6; } 18153 USE_LIBPCSCLITE=no 18154else 18155 LIBPCSCLITE_CFLAGS=$pkg_cv_LIBPCSCLITE_CFLAGS 18156 LIBPCSCLITE_LIBS=$pkg_cv_LIBPCSCLITE_LIBS 18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18158$as_echo "yes" >&6; } 18159 USE_LIBPCSCLITE=yes 18160fi 18161 if test "$USE_LIBPCSCLITE" = yes; then 18162 18163$as_echo "#define HAVE_PCSC 1" >>confdefs.h 18164 18165 OLD_CFLAGS="$CFLAGS" 18166 CFLAGS="$LIBPCSCLITE_CFLAGS $OLD_CFLAGS" 18167 ac_fn_c_check_type "$LINENO" "LPCSTR" "ac_cv_type_LPCSTR" "#include <PCSC/wintypes.h> 18168" 18169if test "x$ac_cv_type_LPCSTR" = xyes; then : 18170 18171$as_echo "#define HAVE_LPCSTR 1" >>confdefs.h 18172 18173fi 18174 18175 CFLAGS="$OLD_CFLAGS" 18176 fi 18177fi 18178 18179# Check whether --enable-win was given. 18180if test "${enable_win+set}" = set; then : 18181 enableval=$enable_win; if test x$enable_win32 = xyes; then 18182 18183$as_echo "#define WIN32 1" >>confdefs.h 18184 18185 WIN32=1 18186 if test x$cross_compiling = xyes; then 18187 18188$as_echo "#define WIN32_CROSS 1" >>confdefs.h 18189 18190 WIN32_CROSS=1 18191 win32="cross" 18192 else 18193 win32="yes" 18194 fi 18195 ac_fn_c_check_header_mongrel "$LINENO" "af_irda.h" "ac_cv_header_af_irda_h" "$ac_includes_default" 18196if test "x$ac_cv_header_af_irda_h" = xyes; then : 18197 18198$as_echo "#define HAVE_IRDA 1" >>confdefs.h 18199 USE_IRDA="yes" 18200fi 18201 18202 18203 else 18204 win32="no" 18205 fi 18206else 18207 win32="no" 18208 18209fi 18210 18211 18212 if test "x$WIN32" = "x1"; then 18213 WIN32_TRUE= 18214 WIN32_FALSE='#' 18215else 18216 WIN32_TRUE='#' 18217 WIN32_FALSE= 18218fi 18219 18220 18221# Check whether --enable-unix98test was given. 18222if test "${enable_unix98test+set}" = set; then : 18223 enableval=$enable_unix98test; if test x$enable_unix98test = xno; then 18224 unix98test="no" 18225 else 18226 unix98test="yes" 18227 fi 18228else 18229 unix98test="yes" 18230 18231fi 18232 18233 18234if test x$unix98test = xyes; then 18235 18236ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 18237if test "x$ac_cv_func_grantpt" = xyes; then : 18238 if test "$cross_compiling" = yes; then : 18239 have_unix98=yes 18240else 18241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18242/* end confdefs.h. */ 18243 18244#define _XOPEN_SOURCE 500 18245 18246#include <stdlib.h> 18247#include <sys/types.h> 18248#include <sys/stat.h> 18249#include <fcntl.h> 18250#include <unistd.h> 18251 18252int main() 18253{ 18254 char *name = NULL; 18255 int master, err; 18256 18257 master = open("/dev/ptmx", O_RDWR | O_NOCTTY | O_NONBLOCK); 18258 if (master >= 0) { 18259 err = grantpt(master); 18260 err = err || unlockpt(master); 18261 if (!err) { 18262 name = ptsname(master); 18263 } else { 18264 exit(-1); 18265 } 18266 } else { 18267 exit(-1); 18268 } 18269 close(master); 18270 exit(0); 18271} 18272 18273_ACEOF 18274if ac_fn_c_try_run "$LINENO"; then : 18275 have_unix98=yes 18276else 18277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"No unix98ptys\"" >&5 18278$as_echo "$as_me: WARNING: \"No unix98ptys\"" >&2;} 18279fi 18280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18281 conftest.$ac_objext conftest.beam conftest.$ac_ext 18282fi 18283 18284 18285 18286fi 18287 18288 18289fi 18290 18291if test x$have_unix98 = xyes; then 18292 18293$as_echo "#define USE_UNIX98PTYS 1" >>confdefs.h 18294 18295fi 18296 18297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18298/* end confdefs.h. */ 18299#define _XOPEN_SOURCE 500 18300 #include <sys/types.h> 18301 #include <sys/socket.h> 18302int 18303main () 18304{ 18305struct msghdr msg; msg.msg_control; 18306 ; 18307 return 0; 18308} 18309_ACEOF 18310if ac_fn_c_try_compile "$LINENO"; then : 18311 18312$as_echo "#define HAVE_MSGHDR_MSG_CONTROL 1" >>confdefs.h 18313 18314 18315fi 18316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18317 18318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 18319$as_echo_n "checking for ANSI C header files... " >&6; } 18320if ${ac_cv_header_stdc+:} false; then : 18321 $as_echo_n "(cached) " >&6 18322else 18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18324/* end confdefs.h. */ 18325#include <stdlib.h> 18326#include <stdarg.h> 18327#include <string.h> 18328#include <float.h> 18329 18330int 18331main () 18332{ 18333 18334 ; 18335 return 0; 18336} 18337_ACEOF 18338if ac_fn_c_try_compile "$LINENO"; then : 18339 ac_cv_header_stdc=yes 18340else 18341 ac_cv_header_stdc=no 18342fi 18343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18344 18345if test $ac_cv_header_stdc = yes; then 18346 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18348/* end confdefs.h. */ 18349#include <string.h> 18350 18351_ACEOF 18352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18353 $EGREP "memchr" >/dev/null 2>&1; then : 18354 18355else 18356 ac_cv_header_stdc=no 18357fi 18358rm -f conftest* 18359 18360fi 18361 18362if test $ac_cv_header_stdc = yes; then 18363 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18365/* end confdefs.h. */ 18366#include <stdlib.h> 18367 18368_ACEOF 18369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18370 $EGREP "free" >/dev/null 2>&1; then : 18371 18372else 18373 ac_cv_header_stdc=no 18374fi 18375rm -f conftest* 18376 18377fi 18378 18379if test $ac_cv_header_stdc = yes; then 18380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18381 if test "$cross_compiling" = yes; then : 18382 : 18383else 18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18385/* end confdefs.h. */ 18386#include <ctype.h> 18387#include <stdlib.h> 18388#if ((' ' & 0x0FF) == 0x020) 18389# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18390# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18391#else 18392# define ISLOWER(c) \ 18393 (('a' <= (c) && (c) <= 'i') \ 18394 || ('j' <= (c) && (c) <= 'r') \ 18395 || ('s' <= (c) && (c) <= 'z')) 18396# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18397#endif 18398 18399#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18400int 18401main () 18402{ 18403 int i; 18404 for (i = 0; i < 256; i++) 18405 if (XOR (islower (i), ISLOWER (i)) 18406 || toupper (i) != TOUPPER (i)) 18407 return 2; 18408 return 0; 18409} 18410_ACEOF 18411if ac_fn_c_try_run "$LINENO"; then : 18412 18413else 18414 ac_cv_header_stdc=no 18415fi 18416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18417 conftest.$ac_objext conftest.beam conftest.$ac_ext 18418fi 18419 18420fi 18421fi 18422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 18423$as_echo "$ac_cv_header_stdc" >&6; } 18424if test $ac_cv_header_stdc = yes; then 18425 18426$as_echo "#define STDC_HEADERS 1" >>confdefs.h 18427 18428fi 18429 18430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 18431$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 18432if ${ac_cv_header_stdbool_h+:} false; then : 18433 $as_echo_n "(cached) " >&6 18434else 18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18436/* end confdefs.h. */ 18437 18438#include <stdbool.h> 18439#ifndef bool 18440 "error: bool is not defined" 18441#endif 18442#ifndef false 18443 "error: false is not defined" 18444#endif 18445#if false 18446 "error: false is not 0" 18447#endif 18448#ifndef true 18449 "error: true is not defined" 18450#endif 18451#if true != 1 18452 "error: true is not 1" 18453#endif 18454#ifndef __bool_true_false_are_defined 18455 "error: __bool_true_false_are_defined is not defined" 18456#endif 18457 18458 struct s { _Bool s: 1; _Bool t; } s; 18459 18460 char a[true == 1 ? 1 : -1]; 18461 char b[false == 0 ? 1 : -1]; 18462 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 18463 char d[(bool) 0.5 == true ? 1 : -1]; 18464 /* See body of main program for 'e'. */ 18465 char f[(_Bool) 0.0 == false ? 1 : -1]; 18466 char g[true]; 18467 char h[sizeof (_Bool)]; 18468 char i[sizeof s.t]; 18469 enum { j = false, k = true, l = false * true, m = true * 256 }; 18470 /* The following fails for 18471 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 18472 _Bool n[m]; 18473 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 18474 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 18475 /* Catch a bug in an HP-UX C compiler. See 18476 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 18477 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 18478 */ 18479 _Bool q = true; 18480 _Bool *pq = &q; 18481 18482int 18483main () 18484{ 18485 18486 bool e = &s; 18487 *pq |= q; 18488 *pq |= ! q; 18489 /* Refer to every declared value, to avoid compiler optimizations. */ 18490 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 18491 + !m + !n + !o + !p + !q + !pq); 18492 18493 ; 18494 return 0; 18495} 18496_ACEOF 18497if ac_fn_c_try_compile "$LINENO"; then : 18498 ac_cv_header_stdbool_h=yes 18499else 18500 ac_cv_header_stdbool_h=no 18501fi 18502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18503fi 18504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 18505$as_echo "$ac_cv_header_stdbool_h" >&6; } 18506ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 18507if test "x$ac_cv_type__Bool" = xyes; then : 18508 18509cat >>confdefs.h <<_ACEOF 18510#define HAVE__BOOL 1 18511_ACEOF 18512 18513 18514fi 18515 18516if test $ac_cv_header_stdbool_h = yes; then 18517 18518$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 18519 18520fi 18521 18522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 18523$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 18524if ${ac_cv_header_sys_wait_h+:} false; then : 18525 $as_echo_n "(cached) " >&6 18526else 18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18528/* end confdefs.h. */ 18529#include <sys/types.h> 18530#include <sys/wait.h> 18531#ifndef WEXITSTATUS 18532# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 18533#endif 18534#ifndef WIFEXITED 18535# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 18536#endif 18537 18538int 18539main () 18540{ 18541 int s; 18542 wait (&s); 18543 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 18544 ; 18545 return 0; 18546} 18547_ACEOF 18548if ac_fn_c_try_compile "$LINENO"; then : 18549 ac_cv_header_sys_wait_h=yes 18550else 18551 ac_cv_header_sys_wait_h=no 18552fi 18553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18554fi 18555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 18556$as_echo "$ac_cv_header_sys_wait_h" >&6; } 18557if test $ac_cv_header_sys_wait_h = yes; then 18558 18559$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 18560 18561fi 18562 18563for ac_header in fcntl.h sys/ioctl.h sys/time.h unistd.h sys/file.h 18564do : 18565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18566ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18567if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18568 cat >>confdefs.h <<_ACEOF 18569#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18570_ACEOF 18571 18572fi 18573 18574done 18575 18576for ac_header in string.h strings.h ctype.h stdlib.h stdarg.h stdint.h 18577do : 18578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18579ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18580if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18581 cat >>confdefs.h <<_ACEOF 18582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18583_ACEOF 18584 18585fi 18586 18587done 18588 18589for ac_header in stddef.h sys/socket.h sys/modem.h termios.h sys/filio.h 18590do : 18591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18592ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18593if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18594 cat >>confdefs.h <<_ACEOF 18595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18596_ACEOF 18597 18598fi 18599 18600done 18601 18602for ac_header in inttypes.h wchar.h direct.h sys/param.h dirent.h sys/types.h 18603do : 18604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18605ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18606if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18607 cat >>confdefs.h <<_ACEOF 18608#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18609_ACEOF 18610 18611fi 18612 18613done 18614 18615 18616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 18617$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 18618if ${ac_cv_c_const+:} false; then : 18619 $as_echo_n "(cached) " >&6 18620else 18621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18622/* end confdefs.h. */ 18623 18624int 18625main () 18626{ 18627/* FIXME: Include the comments suggested by Paul. */ 18628#ifndef __cplusplus 18629 /* Ultrix mips cc rejects this. */ 18630 typedef int charset[2]; 18631 const charset cs; 18632 /* SunOS 4.1.1 cc rejects this. */ 18633 char const *const *pcpcc; 18634 char **ppc; 18635 /* NEC SVR4.0.2 mips cc rejects this. */ 18636 struct point {int x, y;}; 18637 static struct point const zero = {0,0}; 18638 /* AIX XL C 1.02.0.0 rejects this. 18639 It does not let you subtract one const X* pointer from another in 18640 an arm of an if-expression whose if-part is not a constant 18641 expression */ 18642 const char *g = "string"; 18643 pcpcc = &g + (g ? g-g : 0); 18644 /* HPUX 7.0 cc rejects these. */ 18645 ++pcpcc; 18646 ppc = (char**) pcpcc; 18647 pcpcc = (char const *const *) ppc; 18648 { /* SCO 3.2v4 cc rejects this. */ 18649 char *t; 18650 char const *s = 0 ? (char *) 0 : (char const *) 0; 18651 18652 *t++ = 0; 18653 if (s) return 0; 18654 } 18655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 18656 int x[] = {25, 17}; 18657 const int *foo = &x[0]; 18658 ++foo; 18659 } 18660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 18661 typedef const int *iptr; 18662 iptr p = 0; 18663 ++p; 18664 } 18665 { /* AIX XL C 1.02.0.0 rejects this saying 18666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 18667 struct s { int j; const int *ap[3]; }; 18668 struct s *b; b->j = 5; 18669 } 18670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 18671 const int foo = 10; 18672 if (!foo) return 0; 18673 } 18674 return !cs[0] && !zero.x; 18675#endif 18676 18677 ; 18678 return 0; 18679} 18680_ACEOF 18681if ac_fn_c_try_compile "$LINENO"; then : 18682 ac_cv_c_const=yes 18683else 18684 ac_cv_c_const=no 18685fi 18686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18687fi 18688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 18689$as_echo "$ac_cv_c_const" >&6; } 18690if test $ac_cv_c_const = no; then 18691 18692$as_echo "#define const /**/" >>confdefs.h 18693 18694fi 18695 18696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 18697$as_echo_n "checking for inline... " >&6; } 18698if ${ac_cv_c_inline+:} false; then : 18699 $as_echo_n "(cached) " >&6 18700else 18701 ac_cv_c_inline=no 18702for ac_kw in inline __inline__ __inline; do 18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18704/* end confdefs.h. */ 18705#ifndef __cplusplus 18706typedef int foo_t; 18707static $ac_kw foo_t static_foo () {return 0; } 18708$ac_kw foo_t foo () {return 0; } 18709#endif 18710 18711_ACEOF 18712if ac_fn_c_try_compile "$LINENO"; then : 18713 ac_cv_c_inline=$ac_kw 18714fi 18715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18716 test "$ac_cv_c_inline" != no && break 18717done 18718 18719fi 18720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 18721$as_echo "$ac_cv_c_inline" >&6; } 18722 18723case $ac_cv_c_inline in 18724 inline | yes) ;; 18725 *) 18726 case $ac_cv_c_inline in 18727 no) ac_val=;; 18728 *) ac_val=$ac_cv_c_inline;; 18729 esac 18730 cat >>confdefs.h <<_ACEOF 18731#ifndef __cplusplus 18732#define inline $ac_val 18733#endif 18734_ACEOF 18735 ;; 18736esac 18737 18738ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 18739if test "x$ac_cv_type_pid_t" = xyes; then : 18740 18741else 18742 18743cat >>confdefs.h <<_ACEOF 18744#define pid_t int 18745_ACEOF 18746 18747fi 18748 18749ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18750if test "x$ac_cv_type_size_t" = xyes; then : 18751 18752else 18753 18754cat >>confdefs.h <<_ACEOF 18755#define size_t unsigned int 18756_ACEOF 18757 18758fi 18759 18760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 18761$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 18762if ${ac_cv_header_time+:} false; then : 18763 $as_echo_n "(cached) " >&6 18764else 18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18766/* end confdefs.h. */ 18767#include <sys/types.h> 18768#include <sys/time.h> 18769#include <time.h> 18770 18771int 18772main () 18773{ 18774if ((struct tm *) 0) 18775return 0; 18776 ; 18777 return 0; 18778} 18779_ACEOF 18780if ac_fn_c_try_compile "$LINENO"; then : 18781 ac_cv_header_time=yes 18782else 18783 ac_cv_header_time=no 18784fi 18785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18786fi 18787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 18788$as_echo "$ac_cv_header_time" >&6; } 18789if test $ac_cv_header_time = yes; then 18790 18791$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 18792 18793fi 18794 18795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 18796$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 18797if ${ac_cv_struct_tm+:} false; then : 18798 $as_echo_n "(cached) " >&6 18799else 18800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18801/* end confdefs.h. */ 18802#include <sys/types.h> 18803#include <time.h> 18804 18805int 18806main () 18807{ 18808struct tm tm; 18809 int *p = &tm.tm_sec; 18810 return !p; 18811 ; 18812 return 0; 18813} 18814_ACEOF 18815if ac_fn_c_try_compile "$LINENO"; then : 18816 ac_cv_struct_tm=time.h 18817else 18818 ac_cv_struct_tm=sys/time.h 18819fi 18820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18821fi 18822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 18823$as_echo "$ac_cv_struct_tm" >&6; } 18824if test $ac_cv_struct_tm = sys/time.h; then 18825 18826$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 18827 18828fi 18829 18830ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default" 18831if test "x$ac_cv_type_u_int8_t" = xyes; then : 18832 18833$as_echo "#define HAVE_U_INT8_T 1" >>confdefs.h 18834 18835fi 18836 18837 18838 18839$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h 18840 18841 18842$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 18843 18844 18845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ptr_t" >&5 18846$as_echo_n "checking for __ptr_t... " >&6; } 18847if ${ac_cv_c___ptr_t+:} false; then : 18848 $as_echo_n "(cached) " >&6 18849else 18850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18851/* end confdefs.h. */ 18852#include <stdio.h> 18853int 18854main () 18855{ 18856__ptr_t foo = NULL; 18857 ; 18858 return 0; 18859} 18860_ACEOF 18861if ac_fn_c_try_compile "$LINENO"; then : 18862 ac_cv_c___ptr_t=yes 18863else 18864 ac_cv_c___ptr_t=no 18865fi 18866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18867fi 18868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___ptr_t" >&5 18869$as_echo "$ac_cv_c___ptr_t" >&6; } 18870if test $ac_cv_c___ptr_t = yes; then 18871 18872$as_echo "#define HAVE_PTR_T 1" >>confdefs.h 18873 18874fi 18875 18876if test $ac_cv_c_compiler_gnu = yes; then 18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 18878$as_echo_n "checking whether $CC needs -traditional... " >&6; } 18879if ${ac_cv_prog_gcc_traditional+:} false; then : 18880 $as_echo_n "(cached) " >&6 18881else 18882 ac_pattern="Autoconf.*'x'" 18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18884/* end confdefs.h. */ 18885#include <sgtty.h> 18886Autoconf TIOCGETP 18887_ACEOF 18888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18889 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 18890 ac_cv_prog_gcc_traditional=yes 18891else 18892 ac_cv_prog_gcc_traditional=no 18893fi 18894rm -f conftest* 18895 18896 18897 if test $ac_cv_prog_gcc_traditional = no; then 18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18899/* end confdefs.h. */ 18900#include <termio.h> 18901Autoconf TCGETA 18902_ACEOF 18903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18904 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 18905 ac_cv_prog_gcc_traditional=yes 18906fi 18907rm -f conftest* 18908 18909 fi 18910fi 18911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 18912$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 18913 if test $ac_cv_prog_gcc_traditional = yes; then 18914 CC="$CC -traditional" 18915 fi 18916fi 18917 18918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 18919$as_echo_n "checking for working memcmp... " >&6; } 18920if ${ac_cv_func_memcmp_working+:} false; then : 18921 $as_echo_n "(cached) " >&6 18922else 18923 if test "$cross_compiling" = yes; then : 18924 ac_cv_func_memcmp_working=no 18925else 18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18927/* end confdefs.h. */ 18928$ac_includes_default 18929int 18930main () 18931{ 18932 18933 /* Some versions of memcmp are not 8-bit clean. */ 18934 char c0 = '\100', c1 = '\200', c2 = '\201'; 18935 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 18936 return 1; 18937 18938 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 18939 or more and with at least one buffer not starting on a 4-byte boundary. 18940 William Lewis provided this test program. */ 18941 { 18942 char foo[21]; 18943 char bar[21]; 18944 int i; 18945 for (i = 0; i < 4; i++) 18946 { 18947 char *a = foo + i; 18948 char *b = bar + i; 18949 strcpy (a, "--------01111111"); 18950 strcpy (b, "--------10000000"); 18951 if (memcmp (a, b, 16) >= 0) 18952 return 1; 18953 } 18954 return 0; 18955 } 18956 18957 ; 18958 return 0; 18959} 18960_ACEOF 18961if ac_fn_c_try_run "$LINENO"; then : 18962 ac_cv_func_memcmp_working=yes 18963else 18964 ac_cv_func_memcmp_working=no 18965fi 18966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18967 conftest.$ac_objext conftest.beam conftest.$ac_ext 18968fi 18969 18970fi 18971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 18972$as_echo "$ac_cv_func_memcmp_working" >&6; } 18973test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 18974 *" memcmp.$ac_objext "* ) ;; 18975 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 18976 ;; 18977esac 18978 18979 18980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 18981$as_echo_n "checking return type of signal handlers... " >&6; } 18982if ${ac_cv_type_signal+:} false; then : 18983 $as_echo_n "(cached) " >&6 18984else 18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18986/* end confdefs.h. */ 18987#include <sys/types.h> 18988#include <signal.h> 18989 18990int 18991main () 18992{ 18993return *(signal (0, 0)) (0) == 1; 18994 ; 18995 return 0; 18996} 18997_ACEOF 18998if ac_fn_c_try_compile "$LINENO"; then : 18999 ac_cv_type_signal=int 19000else 19001 ac_cv_type_signal=void 19002fi 19003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19004fi 19005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 19006$as_echo "$ac_cv_type_signal" >&6; } 19007 19008cat >>confdefs.h <<_ACEOF 19009#define RETSIGTYPE $ac_cv_type_signal 19010_ACEOF 19011 19012 19013for ac_func in strftime 19014do : 19015 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 19016if test "x$ac_cv_func_strftime" = xyes; then : 19017 cat >>confdefs.h <<_ACEOF 19018#define HAVE_STRFTIME 1 19019_ACEOF 19020 19021else 19022 # strftime is in -lintl on SCO UNIX. 19023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 19024$as_echo_n "checking for strftime in -lintl... " >&6; } 19025if ${ac_cv_lib_intl_strftime+:} false; then : 19026 $as_echo_n "(cached) " >&6 19027else 19028 ac_check_lib_save_LIBS=$LIBS 19029LIBS="-lintl $LIBS" 19030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19031/* end confdefs.h. */ 19032 19033/* Override any GCC internal prototype to avoid an error. 19034 Use char because int might match the return type of a GCC 19035 builtin and then its argument prototype would still apply. */ 19036#ifdef __cplusplus 19037extern "C" 19038#endif 19039char strftime (); 19040int 19041main () 19042{ 19043return strftime (); 19044 ; 19045 return 0; 19046} 19047_ACEOF 19048if ac_fn_c_try_link "$LINENO"; then : 19049 ac_cv_lib_intl_strftime=yes 19050else 19051 ac_cv_lib_intl_strftime=no 19052fi 19053rm -f core conftest.err conftest.$ac_objext \ 19054 conftest$ac_exeext conftest.$ac_ext 19055LIBS=$ac_check_lib_save_LIBS 19056fi 19057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 19058$as_echo "$ac_cv_lib_intl_strftime" >&6; } 19059if test "x$ac_cv_lib_intl_strftime" = xyes; then : 19060 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 19061 19062LIBS="-lintl $LIBS" 19063fi 19064 19065fi 19066done 19067 19068for ac_func in mktime timegm gettimeofday select poll wcrtomb 19069do : 19070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19071ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19072if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19073 cat >>confdefs.h <<_ACEOF 19074#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19075_ACEOF 19076 19077fi 19078done 19079 19080for ac_func in strchr strdup strndup strstr strtol strtok strsep 19081do : 19082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19083ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19084if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19085 cat >>confdefs.h <<_ACEOF 19086#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19087_ACEOF 19088 19089fi 19090done 19091 19092for ac_func in asprintf vasprintf snprintf vsnprintf getpass setenv 19093do : 19094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19095ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19096if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19097 cat >>confdefs.h <<_ACEOF 19098#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19099_ACEOF 19100 19101fi 19102done 19103 19104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 compliant snprintf" >&5 19105$as_echo_n "checking for ISO C99 compliant snprintf... " >&6; } 19106if ${ac_cv_func_snprintf_c99+:} false; then : 19107 $as_echo_n "(cached) " >&6 19108else 19109 if test "$cross_compiling" = yes; then : 19110 ac_cv_func_snprintf_c99=no 19111else 19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19113/* end confdefs.h. */ 19114 19115#include <stdio.h> 19116 19117int main() 19118{ 19119 char buf[] = {0, 0, 0, 0}; 19120 19121 snprintf(buf, 3, "ABC"); 19122 exit ((buf[2] != 0) || (snprintf(NULL, 0, "%d", 100) != 3)); 19123} 19124_ACEOF 19125if ac_fn_c_try_run "$LINENO"; then : 19126 ac_cv_func_snprintf_c99=yes 19127else 19128 ac_cv_func_snprintf_c99=no 19129fi 19130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19131 conftest.$ac_objext conftest.beam conftest.$ac_ext 19132fi 19133 19134fi 19135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_c99" >&5 19136$as_echo "$ac_cv_func_snprintf_c99" >&6; } 19137if test $ac_cv_func_snprintf_c99 = yes; then 19138 19139$as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h 19140 19141fi 19142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 compliant vsnprintf" >&5 19143$as_echo_n "checking for ISO C99 compliant vsnprintf... " >&6; } 19144if ${ac_cv_func_vsnprintf_c99+:} false; then : 19145 $as_echo_n "(cached) " >&6 19146else 19147 if test "$cross_compiling" = yes; then : 19148 ac_cv_func_vsnprintf_c99=no 19149else 19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19151/* end confdefs.h. */ 19152 19153#include <stdio.h> 19154#include <stdarg.h> 19155 19156int doit(char *buf, int len, const char *s, ...) 19157{ 19158 va_list ap; 19159 int r; 19160 19161 va_start(ap, s); 19162 r = vsnprintf(buf, len, s, ap); 19163 va_end(ap); 19164 19165 return r; 19166} 19167 19168int main() 19169{ 19170 char buf[] = {0, 0, 0, 0}; 19171 19172 doit(buf, 3, "ABC"); 19173 exit ((buf[2] != 0) || (doit(NULL, 0, "%d", 100) != 3)); 19174} 19175_ACEOF 19176if ac_fn_c_try_run "$LINENO"; then : 19177 ac_cv_func_vsnprintf_c99=yes 19178else 19179 ac_cv_func_vsnprintf_c99=no 19180fi 19181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19182 conftest.$ac_objext conftest.beam conftest.$ac_ext 19183fi 19184 19185fi 19186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_c99" >&5 19187$as_echo "$ac_cv_func_vsnprintf_c99" >&6; } 19188if test $ac_cv_func_vsnprintf_c99 = yes; then 19189 19190$as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h 19191 19192fi 19193 19194CFLAGS="$CFLAGS $NLS_CFLAGS" 19195LIBS="$LIBS $NLS_LIBS" 19196 19197XPACKAGE=xgnokii 19198 19199cat >>confdefs.h <<_ACEOF 19200#define XVERSION "$XVERSION" 19201_ACEOF 19202 19203 19204HAVE_XGNOKII=$x_support 19205 19206 19207cat >>confdefs.h <<_ACEOF 19208#define SVERSION "$SVERSION" 19209_ACEOF 19210 19211 19212case "$INSTALL" in 19213 'config/install-sh -c') INSTALL=`pwd`/$INSTALL 19214 ;; 19215esac 19216 19217SHELL=${CONFIG_SHELL-/bin/sh} 19218 19219 19220case "$build_os" in 19221 solaris*) SHELL=/bin/ksh 19222 ;; 19223esac 19224 19225 19226 mgnokiidev_bindir="${sbindir}" 19227 mgnokiidev_bindir=`( 19228 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 19229 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 19230 eval echo \""$mgnokiidev_bindir"\" 19231 )` 19232 19233 19234cat >>confdefs.h <<_ACEOF 19235#define SBINDIR "$mgnokiidev_bindir" 19236_ACEOF 19237 19238 19239 19240 prefix_dir="${prefix}" 19241 prefix_dir=`( 19242 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 19243 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 19244 eval echo \""$prefix_dir"\" 19245 )` 19246 19247 19248cat >>confdefs.h <<_ACEOF 19249#define PREFIX "$prefix_dir" 19250_ACEOF 19251 19252 19253ac_config_headers="$ac_config_headers include/config.h" 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286ac_config_files="$ac_config_files Makefile getopt/Makefile Docs/Makefile Docs/man/Makefile Docs/protocol/Makefile Docs/sample/Makefile Docs/sample/logo/Makefile Docs/sample/vCalendar/Makefile Docs/sample/ringtone/Makefile Docs/sample/ppp/Makefile include/Makefile include/gnokii.h include/data/Makefile include/devices/Makefile include/phones/Makefile include/links/Makefile include/gnokii/Makefile common/gnokii.pc common/Makefile common/data/Makefile common/devices/Makefile common/links/Makefile common/phones/Makefile gnokii/Makefile gnokiid/Makefile smsd/Makefile utils/Makefile xgnokii/xgnokii.pc xgnokii/Makefile xgnokii/xpm/Makefile po/Makefile.in testsuite/Makefile testsuite/data/Makefile Windows/Makefile" 19287 19288cat >confcache <<\_ACEOF 19289# This file is a shell script that caches the results of configure 19290# tests run on this system so they can be shared between configure 19291# scripts and configure runs, see configure's option --config-cache. 19292# It is not useful on other systems. If it contains results you don't 19293# want to keep, you may remove or edit it. 19294# 19295# config.status only pays attention to the cache file if you give it 19296# the --recheck option to rerun configure. 19297# 19298# `ac_cv_env_foo' variables (set or unset) will be overridden when 19299# loading this file, other *unset* `ac_cv_foo' will be assigned the 19300# following values. 19301 19302_ACEOF 19303 19304# The following way of writing the cache mishandles newlines in values, 19305# but we know of no workaround that is simple, portable, and efficient. 19306# So, we kill variables containing newlines. 19307# Ultrix sh set writes to stderr and can't be redirected directly, 19308# and sets the high bit in the cache file unless we assign to the vars. 19309( 19310 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19311 eval ac_val=\$$ac_var 19312 case $ac_val in #( 19313 *${as_nl}*) 19314 case $ac_var in #( 19315 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19316$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19317 esac 19318 case $ac_var in #( 19319 _ | IFS | as_nl) ;; #( 19320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19321 *) { eval $ac_var=; unset $ac_var;} ;; 19322 esac ;; 19323 esac 19324 done 19325 19326 (set) 2>&1 | 19327 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19328 *${as_nl}ac_space=\ *) 19329 # `set' does not quote correctly, so add quotes: double-quote 19330 # substitution turns \\\\ into \\, and sed turns \\ into \. 19331 sed -n \ 19332 "s/'/'\\\\''/g; 19333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19334 ;; #( 19335 *) 19336 # `set' quotes correctly as required by POSIX, so do not add quotes. 19337 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19338 ;; 19339 esac | 19340 sort 19341) | 19342 sed ' 19343 /^ac_cv_env_/b end 19344 t clear 19345 :clear 19346 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19347 t end 19348 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19349 :end' >>confcache 19350if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19351 if test -w "$cache_file"; then 19352 if test "x$cache_file" != "x/dev/null"; then 19353 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19354$as_echo "$as_me: updating cache $cache_file" >&6;} 19355 if test ! -f "$cache_file" || test -h "$cache_file"; then 19356 cat confcache >"$cache_file" 19357 else 19358 case $cache_file in #( 19359 */* | ?:*) 19360 mv -f confcache "$cache_file"$$ && 19361 mv -f "$cache_file"$$ "$cache_file" ;; #( 19362 *) 19363 mv -f confcache "$cache_file" ;; 19364 esac 19365 fi 19366 fi 19367 else 19368 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19369$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19370 fi 19371fi 19372rm -f confcache 19373 19374test "x$prefix" = xNONE && prefix=$ac_default_prefix 19375# Let make expand exec_prefix. 19376test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19377 19378DEFS=-DHAVE_CONFIG_H 19379 19380ac_libobjs= 19381ac_ltlibobjs= 19382U= 19383for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19384 # 1. Remove the extension, and $U if already installed. 19385 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19386 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19387 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19388 # will be set to the directory where LIBOBJS objects are built. 19389 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19390 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19391done 19392LIBOBJS=$ac_libobjs 19393 19394LTLIBOBJS=$ac_ltlibobjs 19395 19396 19397if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19398 as_fn_error $? "conditional \"AMDEP\" was never defined. 19399Usually this means the macro was only invoked conditionally." "$LINENO" 5 19400fi 19401if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19402 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19403Usually this means the macro was only invoked conditionally." "$LINENO" 5 19404fi 19405 if test -n "$EXEEXT"; then 19406 am__EXEEXT_TRUE= 19407 am__EXEEXT_FALSE='#' 19408else 19409 am__EXEEXT_TRUE='#' 19410 am__EXEEXT_FALSE= 19411fi 19412 19413 19414 ac_config_commands="$ac_config_commands po/stamp-it" 19415 19416 19417if test -z "${XGNOKII_TRUE}" && test -z "${XGNOKII_FALSE}"; then 19418 as_fn_error $? "conditional \"XGNOKII\" was never defined. 19419Usually this means the macro was only invoked conditionally." "$LINENO" 5 19420fi 19421if test -z "${SMSD_TRUE}" && test -z "${SMSD_FALSE}"; then 19422 as_fn_error $? "conditional \"SMSD\" was never defined. 19423Usually this means the macro was only invoked conditionally." "$LINENO" 5 19424fi 19425if test -z "${HAVE_POSTGRES_TRUE}" && test -z "${HAVE_POSTGRES_FALSE}"; then 19426 as_fn_error $? "conditional \"HAVE_POSTGRES\" was never defined. 19427Usually this means the macro was only invoked conditionally." "$LINENO" 5 19428fi 19429if test -z "${HAVE_SQLITE_TRUE}" && test -z "${HAVE_SQLITE_FALSE}"; then 19430 as_fn_error $? "conditional \"HAVE_SQLITE\" was never defined. 19431Usually this means the macro was only invoked conditionally." "$LINENO" 5 19432fi 19433if test -z "${HAVE_MYSQL_TRUE}" && test -z "${HAVE_MYSQL_FALSE}"; then 19434 as_fn_error $? "conditional \"HAVE_MYSQL\" was never defined. 19435Usually this means the macro was only invoked conditionally." "$LINENO" 5 19436fi 19437if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then 19438 as_fn_error $? "conditional \"WIN32\" was never defined. 19439Usually this means the macro was only invoked conditionally." "$LINENO" 5 19440fi 19441 19442: "${CONFIG_STATUS=./config.status}" 19443ac_write_fail=0 19444ac_clean_files_save=$ac_clean_files 19445ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19446{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19447$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19448as_write_fail=0 19449cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19450#! $SHELL 19451# Generated by $as_me. 19452# Run this file to recreate the current configuration. 19453# Compiler output produced by configure, useful for debugging 19454# configure, is in config.log if it exists. 19455 19456debug=false 19457ac_cs_recheck=false 19458ac_cs_silent=false 19459 19460SHELL=\${CONFIG_SHELL-$SHELL} 19461export SHELL 19462_ASEOF 19463cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19464## -------------------- ## 19465## M4sh Initialization. ## 19466## -------------------- ## 19467 19468# Be more Bourne compatible 19469DUALCASE=1; export DUALCASE # for MKS sh 19470if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19471 emulate sh 19472 NULLCMD=: 19473 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19474 # is contrary to our usage. Disable this feature. 19475 alias -g '${1+"$@"}'='"$@"' 19476 setopt NO_GLOB_SUBST 19477else 19478 case `(set -o) 2>/dev/null` in #( 19479 *posix*) : 19480 set -o posix ;; #( 19481 *) : 19482 ;; 19483esac 19484fi 19485 19486 19487as_nl=' 19488' 19489export as_nl 19490# Printing a long string crashes Solaris 7 /usr/bin/printf. 19491as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19492as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19493as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19494# Prefer a ksh shell builtin over an external printf program on Solaris, 19495# but without wasting forks for bash or zsh. 19496if test -z "$BASH_VERSION$ZSH_VERSION" \ 19497 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19498 as_echo='print -r --' 19499 as_echo_n='print -rn --' 19500elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19501 as_echo='printf %s\n' 19502 as_echo_n='printf %s' 19503else 19504 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19505 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19506 as_echo_n='/usr/ucb/echo -n' 19507 else 19508 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19509 as_echo_n_body='eval 19510 arg=$1; 19511 case $arg in #( 19512 *"$as_nl"*) 19513 expr "X$arg" : "X\\(.*\\)$as_nl"; 19514 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19515 esac; 19516 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19517 ' 19518 export as_echo_n_body 19519 as_echo_n='sh -c $as_echo_n_body as_echo' 19520 fi 19521 export as_echo_body 19522 as_echo='sh -c $as_echo_body as_echo' 19523fi 19524 19525# The user is always right. 19526if test "${PATH_SEPARATOR+set}" != set; then 19527 PATH_SEPARATOR=: 19528 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19529 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19530 PATH_SEPARATOR=';' 19531 } 19532fi 19533 19534 19535# IFS 19536# We need space, tab and new line, in precisely that order. Quoting is 19537# there to prevent editors from complaining about space-tab. 19538# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19539# splitting by setting IFS to empty value.) 19540IFS=" "" $as_nl" 19541 19542# Find who we are. Look in the path if we contain no directory separator. 19543as_myself= 19544case $0 in #(( 19545 *[\\/]* ) as_myself=$0 ;; 19546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19547for as_dir in $PATH 19548do 19549 IFS=$as_save_IFS 19550 test -z "$as_dir" && as_dir=. 19551 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19552 done 19553IFS=$as_save_IFS 19554 19555 ;; 19556esac 19557# We did not find ourselves, most probably we were run as `sh COMMAND' 19558# in which case we are not to be found in the path. 19559if test "x$as_myself" = x; then 19560 as_myself=$0 19561fi 19562if test ! -f "$as_myself"; then 19563 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19564 exit 1 19565fi 19566 19567# Unset variables that we do not need and which cause bugs (e.g. in 19568# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19569# suppresses any "Segmentation fault" message there. '((' could 19570# trigger a bug in pdksh 5.2.14. 19571for as_var in BASH_ENV ENV MAIL MAILPATH 19572do eval test x\${$as_var+set} = xset \ 19573 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19574done 19575PS1='$ ' 19576PS2='> ' 19577PS4='+ ' 19578 19579# NLS nuisances. 19580LC_ALL=C 19581export LC_ALL 19582LANGUAGE=C 19583export LANGUAGE 19584 19585# CDPATH. 19586(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19587 19588 19589# as_fn_error STATUS ERROR [LINENO LOG_FD] 19590# ---------------------------------------- 19591# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19592# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19593# script with STATUS, using 1 if that was 0. 19594as_fn_error () 19595{ 19596 as_status=$1; test $as_status -eq 0 && as_status=1 19597 if test "$4"; then 19598 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19599 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19600 fi 19601 $as_echo "$as_me: error: $2" >&2 19602 as_fn_exit $as_status 19603} # as_fn_error 19604 19605 19606# as_fn_set_status STATUS 19607# ----------------------- 19608# Set $? to STATUS, without forking. 19609as_fn_set_status () 19610{ 19611 return $1 19612} # as_fn_set_status 19613 19614# as_fn_exit STATUS 19615# ----------------- 19616# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19617as_fn_exit () 19618{ 19619 set +e 19620 as_fn_set_status $1 19621 exit $1 19622} # as_fn_exit 19623 19624# as_fn_unset VAR 19625# --------------- 19626# Portably unset VAR. 19627as_fn_unset () 19628{ 19629 { eval $1=; unset $1;} 19630} 19631as_unset=as_fn_unset 19632# as_fn_append VAR VALUE 19633# ---------------------- 19634# Append the text in VALUE to the end of the definition contained in VAR. Take 19635# advantage of any shell optimizations that allow amortized linear growth over 19636# repeated appends, instead of the typical quadratic growth present in naive 19637# implementations. 19638if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19639 eval 'as_fn_append () 19640 { 19641 eval $1+=\$2 19642 }' 19643else 19644 as_fn_append () 19645 { 19646 eval $1=\$$1\$2 19647 } 19648fi # as_fn_append 19649 19650# as_fn_arith ARG... 19651# ------------------ 19652# Perform arithmetic evaluation on the ARGs, and store the result in the 19653# global $as_val. Take advantage of shells that can avoid forks. The arguments 19654# must be portable across $(()) and expr. 19655if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19656 eval 'as_fn_arith () 19657 { 19658 as_val=$(( $* )) 19659 }' 19660else 19661 as_fn_arith () 19662 { 19663 as_val=`expr "$@" || test $? -eq 1` 19664 } 19665fi # as_fn_arith 19666 19667 19668if expr a : '\(a\)' >/dev/null 2>&1 && 19669 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19670 as_expr=expr 19671else 19672 as_expr=false 19673fi 19674 19675if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19676 as_basename=basename 19677else 19678 as_basename=false 19679fi 19680 19681if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19682 as_dirname=dirname 19683else 19684 as_dirname=false 19685fi 19686 19687as_me=`$as_basename -- "$0" || 19688$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19689 X"$0" : 'X\(//\)$' \| \ 19690 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19691$as_echo X/"$0" | 19692 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19693 s//\1/ 19694 q 19695 } 19696 /^X\/\(\/\/\)$/{ 19697 s//\1/ 19698 q 19699 } 19700 /^X\/\(\/\).*/{ 19701 s//\1/ 19702 q 19703 } 19704 s/.*/./; q'` 19705 19706# Avoid depending upon Character Ranges. 19707as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19708as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19709as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19710as_cr_digits='0123456789' 19711as_cr_alnum=$as_cr_Letters$as_cr_digits 19712 19713ECHO_C= ECHO_N= ECHO_T= 19714case `echo -n x` in #((((( 19715-n*) 19716 case `echo 'xy\c'` in 19717 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19718 xy) ECHO_C='\c';; 19719 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19720 ECHO_T=' ';; 19721 esac;; 19722*) 19723 ECHO_N='-n';; 19724esac 19725 19726rm -f conf$$ conf$$.exe conf$$.file 19727if test -d conf$$.dir; then 19728 rm -f conf$$.dir/conf$$.file 19729else 19730 rm -f conf$$.dir 19731 mkdir conf$$.dir 2>/dev/null 19732fi 19733if (echo >conf$$.file) 2>/dev/null; then 19734 if ln -s conf$$.file conf$$ 2>/dev/null; then 19735 as_ln_s='ln -s' 19736 # ... but there are two gotchas: 19737 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19738 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19739 # In both cases, we have to default to `cp -p'. 19740 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19741 as_ln_s='cp -p' 19742 elif ln conf$$.file conf$$ 2>/dev/null; then 19743 as_ln_s=ln 19744 else 19745 as_ln_s='cp -p' 19746 fi 19747else 19748 as_ln_s='cp -p' 19749fi 19750rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19751rmdir conf$$.dir 2>/dev/null 19752 19753 19754# as_fn_mkdir_p 19755# ------------- 19756# Create "$as_dir" as a directory, including parents if necessary. 19757as_fn_mkdir_p () 19758{ 19759 19760 case $as_dir in #( 19761 -*) as_dir=./$as_dir;; 19762 esac 19763 test -d "$as_dir" || eval $as_mkdir_p || { 19764 as_dirs= 19765 while :; do 19766 case $as_dir in #( 19767 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19768 *) as_qdir=$as_dir;; 19769 esac 19770 as_dirs="'$as_qdir' $as_dirs" 19771 as_dir=`$as_dirname -- "$as_dir" || 19772$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19773 X"$as_dir" : 'X\(//\)[^/]' \| \ 19774 X"$as_dir" : 'X\(//\)$' \| \ 19775 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19776$as_echo X"$as_dir" | 19777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19778 s//\1/ 19779 q 19780 } 19781 /^X\(\/\/\)[^/].*/{ 19782 s//\1/ 19783 q 19784 } 19785 /^X\(\/\/\)$/{ 19786 s//\1/ 19787 q 19788 } 19789 /^X\(\/\).*/{ 19790 s//\1/ 19791 q 19792 } 19793 s/.*/./; q'` 19794 test -d "$as_dir" && break 19795 done 19796 test -z "$as_dirs" || eval "mkdir $as_dirs" 19797 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19798 19799 19800} # as_fn_mkdir_p 19801if mkdir -p . 2>/dev/null; then 19802 as_mkdir_p='mkdir -p "$as_dir"' 19803else 19804 test -d ./-p && rmdir ./-p 19805 as_mkdir_p=false 19806fi 19807 19808if test -x / >/dev/null 2>&1; then 19809 as_test_x='test -x' 19810else 19811 if ls -dL / >/dev/null 2>&1; then 19812 as_ls_L_option=L 19813 else 19814 as_ls_L_option= 19815 fi 19816 as_test_x=' 19817 eval sh -c '\'' 19818 if test -d "$1"; then 19819 test -d "$1/."; 19820 else 19821 case $1 in #( 19822 -*)set "./$1";; 19823 esac; 19824 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 19825 ???[sx]*):;;*)false;;esac;fi 19826 '\'' sh 19827 ' 19828fi 19829as_executable_p=$as_test_x 19830 19831# Sed expression to map a string onto a valid CPP name. 19832as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19833 19834# Sed expression to map a string onto a valid variable name. 19835as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19836 19837 19838exec 6>&1 19839## ----------------------------------- ## 19840## Main body of $CONFIG_STATUS script. ## 19841## ----------------------------------- ## 19842_ASEOF 19843test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19844 19845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19846# Save the log message, to keep $0 and so on meaningful, and to 19847# report actual input values of CONFIG_FILES etc. instead of their 19848# values after options handling. 19849ac_log=" 19850This file was extended by gnokii $as_me 0.6.31, which was 19851generated by GNU Autoconf 2.68. Invocation command line was 19852 19853 CONFIG_FILES = $CONFIG_FILES 19854 CONFIG_HEADERS = $CONFIG_HEADERS 19855 CONFIG_LINKS = $CONFIG_LINKS 19856 CONFIG_COMMANDS = $CONFIG_COMMANDS 19857 $ $0 $@ 19858 19859on `(hostname || uname -n) 2>/dev/null | sed 1q` 19860" 19861 19862_ACEOF 19863 19864case $ac_config_files in *" 19865"*) set x $ac_config_files; shift; ac_config_files=$*;; 19866esac 19867 19868case $ac_config_headers in *" 19869"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19870esac 19871 19872 19873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19874# Files that config.status was made for. 19875config_files="$ac_config_files" 19876config_headers="$ac_config_headers" 19877config_commands="$ac_config_commands" 19878 19879_ACEOF 19880 19881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19882ac_cs_usage="\ 19883\`$as_me' instantiates files and other configuration actions 19884from templates according to the current configuration. Unless the files 19885and actions are specified as TAGs, all are instantiated by default. 19886 19887Usage: $0 [OPTION]... [TAG]... 19888 19889 -h, --help print this help, then exit 19890 -V, --version print version number and configuration settings, then exit 19891 --config print configuration, then exit 19892 -q, --quiet, --silent 19893 do not print progress messages 19894 -d, --debug don't remove temporary files 19895 --recheck update $as_me by reconfiguring in the same conditions 19896 --file=FILE[:TEMPLATE] 19897 instantiate the configuration file FILE 19898 --header=FILE[:TEMPLATE] 19899 instantiate the configuration header FILE 19900 19901Configuration files: 19902$config_files 19903 19904Configuration headers: 19905$config_headers 19906 19907Configuration commands: 19908$config_commands 19909 19910Report bugs to <gnokii-users@nongnu.org>. 19911gnokii home page: <http://www.gnokii.org/>." 19912 19913_ACEOF 19914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19915ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19916ac_cs_version="\\ 19917gnokii config.status 0.6.31 19918configured by $0, generated by GNU Autoconf 2.68, 19919 with options \\"\$ac_cs_config\\" 19920 19921Copyright (C) 2010 Free Software Foundation, Inc. 19922This config.status script is free software; the Free Software Foundation 19923gives unlimited permission to copy, distribute and modify it." 19924 19925ac_pwd='$ac_pwd' 19926srcdir='$srcdir' 19927INSTALL='$INSTALL' 19928MKDIR_P='$MKDIR_P' 19929AWK='$AWK' 19930test -n "\$AWK" || AWK=awk 19931_ACEOF 19932 19933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19934# The default lists apply if the user does not specify any file. 19935ac_need_defaults=: 19936while test $# != 0 19937do 19938 case $1 in 19939 --*=?*) 19940 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19941 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19942 ac_shift=: 19943 ;; 19944 --*=) 19945 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19946 ac_optarg= 19947 ac_shift=: 19948 ;; 19949 *) 19950 ac_option=$1 19951 ac_optarg=$2 19952 ac_shift=shift 19953 ;; 19954 esac 19955 19956 case $ac_option in 19957 # Handling of the options. 19958 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19959 ac_cs_recheck=: ;; 19960 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19961 $as_echo "$ac_cs_version"; exit ;; 19962 --config | --confi | --conf | --con | --co | --c ) 19963 $as_echo "$ac_cs_config"; exit ;; 19964 --debug | --debu | --deb | --de | --d | -d ) 19965 debug=: ;; 19966 --file | --fil | --fi | --f ) 19967 $ac_shift 19968 case $ac_optarg in 19969 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19970 '') as_fn_error $? "missing file argument" ;; 19971 esac 19972 as_fn_append CONFIG_FILES " '$ac_optarg'" 19973 ac_need_defaults=false;; 19974 --header | --heade | --head | --hea ) 19975 $ac_shift 19976 case $ac_optarg in 19977 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19978 esac 19979 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19980 ac_need_defaults=false;; 19981 --he | --h) 19982 # Conflict between --help and --header 19983 as_fn_error $? "ambiguous option: \`$1' 19984Try \`$0 --help' for more information.";; 19985 --help | --hel | -h ) 19986 $as_echo "$ac_cs_usage"; exit ;; 19987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19988 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19989 ac_cs_silent=: ;; 19990 19991 # This is an error. 19992 -*) as_fn_error $? "unrecognized option: \`$1' 19993Try \`$0 --help' for more information." ;; 19994 19995 *) as_fn_append ac_config_targets " $1" 19996 ac_need_defaults=false ;; 19997 19998 esac 19999 shift 20000done 20001 20002ac_configure_extra_args= 20003 20004if $ac_cs_silent; then 20005 exec 6>/dev/null 20006 ac_configure_extra_args="$ac_configure_extra_args --silent" 20007fi 20008 20009_ACEOF 20010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20011if \$ac_cs_recheck; then 20012 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20013 shift 20014 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20015 CONFIG_SHELL='$SHELL' 20016 export CONFIG_SHELL 20017 exec "\$@" 20018fi 20019 20020_ACEOF 20021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20022exec 5>>config.log 20023{ 20024 echo 20025 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20026## Running $as_me. ## 20027_ASBOX 20028 $as_echo "$ac_log" 20029} >&5 20030 20031_ACEOF 20032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20033# 20034# INIT-COMMANDS 20035# 20036AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20037 20038 20039 20040# The HP-UX ksh and POSIX shell print the target directory to stdout 20041# if CDPATH is set. 20042(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20043 20044sed_quote_subst='$sed_quote_subst' 20045double_quote_subst='$double_quote_subst' 20046delay_variable_subst='$delay_variable_subst' 20047AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 20048DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20049OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20050macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20051macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20052enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20053enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20054pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20055enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20056SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20057ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20058host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20059host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20060host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20061build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20062build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20063build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20064SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20065Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20066GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20067EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20068FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20069LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20070NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20071LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20072max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20073ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20074exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20075lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20076lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20077lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20078lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20079lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20080reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20081reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20082deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20083file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20084file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20085want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20086sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20087AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20088AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20089archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20090STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20091RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20092old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20093old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20094old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20095lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20096CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20097CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20098compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20099GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20100lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20101lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20102lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20103lt_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"`' 20104nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20105lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20106objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20107MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20108lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20109lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20110lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20111lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20112lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20113need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20114MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20115DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20116NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20117LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20118OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20119OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20120libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20121shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20122extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20123archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20124enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20125export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20126whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20127compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20128old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20129old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20130archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20131archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20132module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20133module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20134with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20135allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20136no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20137hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20138hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 20139hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20140hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20141hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20142hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20143hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20144hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20145inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20146link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20147always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20148export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20149exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20150include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20151prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20152postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20153file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20154variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20155need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20156need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20157version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20158runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20159shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20160shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20161libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20162library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20163soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20164install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20165postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20166postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20167finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20168finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20169hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20170sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20171sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20172hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20173enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20174enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20175enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20176old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20177striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20178 20179LTCC='$LTCC' 20180LTCFLAGS='$LTCFLAGS' 20181compiler='$compiler_DEFAULT' 20182 20183# A function that is used when there is no print builtin or printf. 20184func_fallback_echo () 20185{ 20186 eval 'cat <<_LTECHO_EOF 20187\$1 20188_LTECHO_EOF' 20189} 20190 20191# Quote evaled strings. 20192for var in AS \ 20193DLLTOOL \ 20194OBJDUMP \ 20195SHELL \ 20196ECHO \ 20197SED \ 20198GREP \ 20199EGREP \ 20200FGREP \ 20201LD \ 20202NM \ 20203LN_S \ 20204lt_SP2NL \ 20205lt_NL2SP \ 20206reload_flag \ 20207deplibs_check_method \ 20208file_magic_cmd \ 20209file_magic_glob \ 20210want_nocaseglob \ 20211sharedlib_from_linklib_cmd \ 20212AR \ 20213AR_FLAGS \ 20214archiver_list_spec \ 20215STRIP \ 20216RANLIB \ 20217CC \ 20218CFLAGS \ 20219compiler \ 20220lt_cv_sys_global_symbol_pipe \ 20221lt_cv_sys_global_symbol_to_cdecl \ 20222lt_cv_sys_global_symbol_to_c_name_address \ 20223lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20224nm_file_list_spec \ 20225lt_prog_compiler_no_builtin_flag \ 20226lt_prog_compiler_pic \ 20227lt_prog_compiler_wl \ 20228lt_prog_compiler_static \ 20229lt_cv_prog_compiler_c_o \ 20230need_locks \ 20231MANIFEST_TOOL \ 20232DSYMUTIL \ 20233NMEDIT \ 20234LIPO \ 20235OTOOL \ 20236OTOOL64 \ 20237shrext_cmds \ 20238export_dynamic_flag_spec \ 20239whole_archive_flag_spec \ 20240compiler_needs_object \ 20241with_gnu_ld \ 20242allow_undefined_flag \ 20243no_undefined_flag \ 20244hardcode_libdir_flag_spec \ 20245hardcode_libdir_flag_spec_ld \ 20246hardcode_libdir_separator \ 20247exclude_expsyms \ 20248include_expsyms \ 20249file_list_spec \ 20250variables_saved_for_relink \ 20251libname_spec \ 20252library_names_spec \ 20253soname_spec \ 20254install_override_mode \ 20255finish_eval \ 20256old_striplib \ 20257striplib; do 20258 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20259 *[\\\\\\\`\\"\\\$]*) 20260 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20261 ;; 20262 *) 20263 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20264 ;; 20265 esac 20266done 20267 20268# Double-quote double-evaled strings. 20269for var in reload_cmds \ 20270old_postinstall_cmds \ 20271old_postuninstall_cmds \ 20272old_archive_cmds \ 20273extract_expsyms_cmds \ 20274old_archive_from_new_cmds \ 20275old_archive_from_expsyms_cmds \ 20276archive_cmds \ 20277archive_expsym_cmds \ 20278module_cmds \ 20279module_expsym_cmds \ 20280export_symbols_cmds \ 20281prelink_cmds \ 20282postlink_cmds \ 20283postinstall_cmds \ 20284postuninstall_cmds \ 20285finish_cmds \ 20286sys_lib_search_path_spec \ 20287sys_lib_dlsearch_path_spec; do 20288 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20289 *[\\\\\\\`\\"\\\$]*) 20290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20291 ;; 20292 *) 20293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20294 ;; 20295 esac 20296done 20297 20298ac_aux_dir='$ac_aux_dir' 20299xsi_shell='$xsi_shell' 20300lt_shell_append='$lt_shell_append' 20301 20302# See if we are running on zsh, and set the options which allow our 20303# commands through without removal of \ escapes INIT. 20304if test -n "\${ZSH_VERSION+set}" ; then 20305 setopt NO_GLOB_SUBST 20306fi 20307 20308 20309 PACKAGE='$PACKAGE' 20310 VERSION='$VERSION' 20311 TIMESTAMP='$TIMESTAMP' 20312 RM='$RM' 20313 ofile='$ofile' 20314 20315 20316 20317 20318_ACEOF 20319 20320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20321 20322# Handling of arguments. 20323for ac_config_target in $ac_config_targets 20324do 20325 case $ac_config_target in 20326 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20327 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 20328 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20329 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 20330 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20331 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;; 20332 "Docs/Makefile") CONFIG_FILES="$CONFIG_FILES Docs/Makefile" ;; 20333 "Docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES Docs/man/Makefile" ;; 20334 "Docs/protocol/Makefile") CONFIG_FILES="$CONFIG_FILES Docs/protocol/Makefile" ;; 20335 "Docs/sample/Makefile") CONFIG_FILES="$CONFIG_FILES Docs/sample/Makefile" ;; 20336 "Docs/sample/logo/Makefile") CONFIG_FILES="$CONFIG_FILES Docs/sample/logo/Makefile" ;; 20337 "Docs/sample/vCalendar/Makefile") CONFIG_FILES="$CONFIG_FILES Docs/sample/vCalendar/Makefile" ;; 20338 "Docs/sample/ringtone/Makefile") CONFIG_FILES="$CONFIG_FILES Docs/sample/ringtone/Makefile" ;; 20339 "Docs/sample/ppp/Makefile") CONFIG_FILES="$CONFIG_FILES Docs/sample/ppp/Makefile" ;; 20340 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 20341 "include/gnokii.h") CONFIG_FILES="$CONFIG_FILES include/gnokii.h" ;; 20342 "include/data/Makefile") CONFIG_FILES="$CONFIG_FILES include/data/Makefile" ;; 20343 "include/devices/Makefile") CONFIG_FILES="$CONFIG_FILES include/devices/Makefile" ;; 20344 "include/phones/Makefile") CONFIG_FILES="$CONFIG_FILES include/phones/Makefile" ;; 20345 "include/links/Makefile") CONFIG_FILES="$CONFIG_FILES include/links/Makefile" ;; 20346 "include/gnokii/Makefile") CONFIG_FILES="$CONFIG_FILES include/gnokii/Makefile" ;; 20347 "common/gnokii.pc") CONFIG_FILES="$CONFIG_FILES common/gnokii.pc" ;; 20348 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; 20349 "common/data/Makefile") CONFIG_FILES="$CONFIG_FILES common/data/Makefile" ;; 20350 "common/devices/Makefile") CONFIG_FILES="$CONFIG_FILES common/devices/Makefile" ;; 20351 "common/links/Makefile") CONFIG_FILES="$CONFIG_FILES common/links/Makefile" ;; 20352 "common/phones/Makefile") CONFIG_FILES="$CONFIG_FILES common/phones/Makefile" ;; 20353 "gnokii/Makefile") CONFIG_FILES="$CONFIG_FILES gnokii/Makefile" ;; 20354 "gnokiid/Makefile") CONFIG_FILES="$CONFIG_FILES gnokiid/Makefile" ;; 20355 "smsd/Makefile") CONFIG_FILES="$CONFIG_FILES smsd/Makefile" ;; 20356 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 20357 "xgnokii/xgnokii.pc") CONFIG_FILES="$CONFIG_FILES xgnokii/xgnokii.pc" ;; 20358 "xgnokii/Makefile") CONFIG_FILES="$CONFIG_FILES xgnokii/Makefile" ;; 20359 "xgnokii/xpm/Makefile") CONFIG_FILES="$CONFIG_FILES xgnokii/xpm/Makefile" ;; 20360 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 20361 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 20362 "testsuite/data/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/data/Makefile" ;; 20363 "Windows/Makefile") CONFIG_FILES="$CONFIG_FILES Windows/Makefile" ;; 20364 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; 20365 20366 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20367 esac 20368done 20369 20370 20371# If the user did not use the arguments to specify the items to instantiate, 20372# then the envvar interface is used. Set only those that are not. 20373# We use the long form for the default assignment because of an extremely 20374# bizarre bug on SunOS 4.1.3. 20375if $ac_need_defaults; then 20376 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20377 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20378 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20379fi 20380 20381# Have a temporary directory for convenience. Make it in the build tree 20382# simply because there is no reason against having it here, and in addition, 20383# creating and moving files from /tmp can sometimes cause problems. 20384# Hook for its removal unless debugging. 20385# Note that there is a small window in which the directory will not be cleaned: 20386# after its creation but before its name has been assigned to `$tmp'. 20387$debug || 20388{ 20389 tmp= ac_tmp= 20390 trap 'exit_status=$? 20391 : "${ac_tmp:=$tmp}" 20392 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20393' 0 20394 trap 'as_fn_exit 1' 1 2 13 15 20395} 20396# Create a (secure) tmp directory for tmp files. 20397 20398{ 20399 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20400 test -d "$tmp" 20401} || 20402{ 20403 tmp=./conf$$-$RANDOM 20404 (umask 077 && mkdir "$tmp") 20405} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20406ac_tmp=$tmp 20407 20408# Set up the scripts for CONFIG_FILES section. 20409# No need to generate them if there are no CONFIG_FILES. 20410# This happens for instance with `./config.status config.h'. 20411if test -n "$CONFIG_FILES"; then 20412 20413 20414ac_cr=`echo X | tr X '\015'` 20415# On cygwin, bash can eat \r inside `` if the user requested igncr. 20416# But we know of no other shell where ac_cr would be empty at this 20417# point, so we can use a bashism as a fallback. 20418if test "x$ac_cr" = x; then 20419 eval ac_cr=\$\'\\r\' 20420fi 20421ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20422if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20423 ac_cs_awk_cr='\\r' 20424else 20425 ac_cs_awk_cr=$ac_cr 20426fi 20427 20428echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20429_ACEOF 20430 20431 20432{ 20433 echo "cat >conf$$subs.awk <<_ACEOF" && 20434 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20435 echo "_ACEOF" 20436} >conf$$subs.sh || 20437 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20438ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20439ac_delim='%!_!# ' 20440for ac_last_try in false false false false false :; do 20441 . ./conf$$subs.sh || 20442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20443 20444 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20445 if test $ac_delim_n = $ac_delim_num; then 20446 break 20447 elif $ac_last_try; then 20448 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20449 else 20450 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20451 fi 20452done 20453rm -f conf$$subs.sh 20454 20455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20456cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20457_ACEOF 20458sed -n ' 20459h 20460s/^/S["/; s/!.*/"]=/ 20461p 20462g 20463s/^[^!]*!// 20464:repl 20465t repl 20466s/'"$ac_delim"'$// 20467t delim 20468:nl 20469h 20470s/\(.\{148\}\)..*/\1/ 20471t more1 20472s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20473p 20474n 20475b repl 20476:more1 20477s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20478p 20479g 20480s/.\{148\}// 20481t nl 20482:delim 20483h 20484s/\(.\{148\}\)..*/\1/ 20485t more2 20486s/["\\]/\\&/g; s/^/"/; s/$/"/ 20487p 20488b 20489:more2 20490s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20491p 20492g 20493s/.\{148\}// 20494t delim 20495' <conf$$subs.awk | sed ' 20496/^[^""]/{ 20497 N 20498 s/\n// 20499} 20500' >>$CONFIG_STATUS || ac_write_fail=1 20501rm -f conf$$subs.awk 20502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20503_ACAWK 20504cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20505 for (key in S) S_is_set[key] = 1 20506 FS = "" 20507 20508} 20509{ 20510 line = $ 0 20511 nfields = split(line, field, "@") 20512 substed = 0 20513 len = length(field[1]) 20514 for (i = 2; i < nfields; i++) { 20515 key = field[i] 20516 keylen = length(key) 20517 if (S_is_set[key]) { 20518 value = S[key] 20519 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20520 len += length(value) + length(field[++i]) 20521 substed = 1 20522 } else 20523 len += 1 + keylen 20524 } 20525 20526 print line 20527} 20528 20529_ACAWK 20530_ACEOF 20531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20532if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20533 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20534else 20535 cat 20536fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20537 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20538_ACEOF 20539 20540# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20541# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20542# trailing colons and then remove the whole line if VPATH becomes empty 20543# (actually we leave an empty line to preserve line numbers). 20544if test "x$srcdir" = x.; then 20545 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20546h 20547s/// 20548s/^/:/ 20549s/[ ]*$/:/ 20550s/:\$(srcdir):/:/g 20551s/:\${srcdir}:/:/g 20552s/:@srcdir@:/:/g 20553s/^:*// 20554s/:*$// 20555x 20556s/\(=[ ]*\).*/\1/ 20557G 20558s/\n// 20559s/^[^=]*=[ ]*$// 20560}' 20561fi 20562 20563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20564fi # test -n "$CONFIG_FILES" 20565 20566# Set up the scripts for CONFIG_HEADERS section. 20567# No need to generate them if there are no CONFIG_HEADERS. 20568# This happens for instance with `./config.status Makefile'. 20569if test -n "$CONFIG_HEADERS"; then 20570cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20571BEGIN { 20572_ACEOF 20573 20574# Transform confdefs.h into an awk script `defines.awk', embedded as 20575# here-document in config.status, that substitutes the proper values into 20576# config.h.in to produce config.h. 20577 20578# Create a delimiter string that does not exist in confdefs.h, to ease 20579# handling of long lines. 20580ac_delim='%!_!# ' 20581for ac_last_try in false false :; do 20582 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20583 if test -z "$ac_tt"; then 20584 break 20585 elif $ac_last_try; then 20586 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20587 else 20588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20589 fi 20590done 20591 20592# For the awk script, D is an array of macro values keyed by name, 20593# likewise P contains macro parameters if any. Preserve backslash 20594# newline sequences. 20595 20596ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20597sed -n ' 20598s/.\{148\}/&'"$ac_delim"'/g 20599t rset 20600:rset 20601s/^[ ]*#[ ]*define[ ][ ]*/ / 20602t def 20603d 20604:def 20605s/\\$// 20606t bsnl 20607s/["\\]/\\&/g 20608s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20609D["\1"]=" \3"/p 20610s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20611d 20612:bsnl 20613s/["\\]/\\&/g 20614s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20615D["\1"]=" \3\\\\\\n"\\/p 20616t cont 20617s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20618t cont 20619d 20620:cont 20621n 20622s/.\{148\}/&'"$ac_delim"'/g 20623t clear 20624:clear 20625s/\\$// 20626t bsnlc 20627s/["\\]/\\&/g; s/^/"/; s/$/"/p 20628d 20629:bsnlc 20630s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20631b cont 20632' <confdefs.h | sed ' 20633s/'"$ac_delim"'/"\\\ 20634"/g' >>$CONFIG_STATUS || ac_write_fail=1 20635 20636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20637 for (key in D) D_is_set[key] = 1 20638 FS = "" 20639} 20640/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20641 line = \$ 0 20642 split(line, arg, " ") 20643 if (arg[1] == "#") { 20644 defundef = arg[2] 20645 mac1 = arg[3] 20646 } else { 20647 defundef = substr(arg[1], 2) 20648 mac1 = arg[2] 20649 } 20650 split(mac1, mac2, "(") #) 20651 macro = mac2[1] 20652 prefix = substr(line, 1, index(line, defundef) - 1) 20653 if (D_is_set[macro]) { 20654 # Preserve the white space surrounding the "#". 20655 print prefix "define", macro P[macro] D[macro] 20656 next 20657 } else { 20658 # Replace #undef with comments. This is necessary, for example, 20659 # in the case of _POSIX_SOURCE, which is predefined and required 20660 # on some systems where configure will not decide to define it. 20661 if (defundef == "undef") { 20662 print "/*", prefix defundef, macro, "*/" 20663 next 20664 } 20665 } 20666} 20667{ print } 20668_ACAWK 20669_ACEOF 20670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20671 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20672fi # test -n "$CONFIG_HEADERS" 20673 20674 20675eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20676shift 20677for ac_tag 20678do 20679 case $ac_tag in 20680 :[FHLC]) ac_mode=$ac_tag; continue;; 20681 esac 20682 case $ac_mode$ac_tag in 20683 :[FHL]*:*);; 20684 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20685 :[FH]-) ac_tag=-:-;; 20686 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20687 esac 20688 ac_save_IFS=$IFS 20689 IFS=: 20690 set x $ac_tag 20691 IFS=$ac_save_IFS 20692 shift 20693 ac_file=$1 20694 shift 20695 20696 case $ac_mode in 20697 :L) ac_source=$1;; 20698 :[FH]) 20699 ac_file_inputs= 20700 for ac_f 20701 do 20702 case $ac_f in 20703 -) ac_f="$ac_tmp/stdin";; 20704 *) # Look for the file first in the build tree, then in the source tree 20705 # (if the path is not absolute). The absolute path cannot be DOS-style, 20706 # because $ac_f cannot contain `:'. 20707 test -f "$ac_f" || 20708 case $ac_f in 20709 [\\/$]*) false;; 20710 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20711 esac || 20712 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20713 esac 20714 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20715 as_fn_append ac_file_inputs " '$ac_f'" 20716 done 20717 20718 # Let's still pretend it is `configure' which instantiates (i.e., don't 20719 # use $as_me), people would be surprised to read: 20720 # /* config.h. Generated by config.status. */ 20721 configure_input='Generated from '` 20722 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20723 `' by configure.' 20724 if test x"$ac_file" != x-; then 20725 configure_input="$ac_file. $configure_input" 20726 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20727$as_echo "$as_me: creating $ac_file" >&6;} 20728 fi 20729 # Neutralize special characters interpreted by sed in replacement strings. 20730 case $configure_input in #( 20731 *\&* | *\|* | *\\* ) 20732 ac_sed_conf_input=`$as_echo "$configure_input" | 20733 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20734 *) ac_sed_conf_input=$configure_input;; 20735 esac 20736 20737 case $ac_tag in 20738 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20739 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20740 esac 20741 ;; 20742 esac 20743 20744 ac_dir=`$as_dirname -- "$ac_file" || 20745$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20746 X"$ac_file" : 'X\(//\)[^/]' \| \ 20747 X"$ac_file" : 'X\(//\)$' \| \ 20748 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20749$as_echo X"$ac_file" | 20750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20751 s//\1/ 20752 q 20753 } 20754 /^X\(\/\/\)[^/].*/{ 20755 s//\1/ 20756 q 20757 } 20758 /^X\(\/\/\)$/{ 20759 s//\1/ 20760 q 20761 } 20762 /^X\(\/\).*/{ 20763 s//\1/ 20764 q 20765 } 20766 s/.*/./; q'` 20767 as_dir="$ac_dir"; as_fn_mkdir_p 20768 ac_builddir=. 20769 20770case "$ac_dir" in 20771.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20772*) 20773 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20774 # A ".." for each directory in $ac_dir_suffix. 20775 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20776 case $ac_top_builddir_sub in 20777 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20778 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20779 esac ;; 20780esac 20781ac_abs_top_builddir=$ac_pwd 20782ac_abs_builddir=$ac_pwd$ac_dir_suffix 20783# for backward compatibility: 20784ac_top_builddir=$ac_top_build_prefix 20785 20786case $srcdir in 20787 .) # We are building in place. 20788 ac_srcdir=. 20789 ac_top_srcdir=$ac_top_builddir_sub 20790 ac_abs_top_srcdir=$ac_pwd ;; 20791 [\\/]* | ?:[\\/]* ) # Absolute name. 20792 ac_srcdir=$srcdir$ac_dir_suffix; 20793 ac_top_srcdir=$srcdir 20794 ac_abs_top_srcdir=$srcdir ;; 20795 *) # Relative name. 20796 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20797 ac_top_srcdir=$ac_top_build_prefix$srcdir 20798 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20799esac 20800ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20801 20802 20803 case $ac_mode in 20804 :F) 20805 # 20806 # CONFIG_FILE 20807 # 20808 20809 case $INSTALL in 20810 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20811 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20812 esac 20813 ac_MKDIR_P=$MKDIR_P 20814 case $MKDIR_P in 20815 [\\/$]* | ?:[\\/]* ) ;; 20816 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20817 esac 20818_ACEOF 20819 20820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20821# If the template does not know about datarootdir, expand it. 20822# FIXME: This hack should be removed a few years after 2.60. 20823ac_datarootdir_hack=; ac_datarootdir_seen= 20824ac_sed_dataroot=' 20825/datarootdir/ { 20826 p 20827 q 20828} 20829/@datadir@/p 20830/@docdir@/p 20831/@infodir@/p 20832/@localedir@/p 20833/@mandir@/p' 20834case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20835*datarootdir*) ac_datarootdir_seen=yes;; 20836*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20838$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20839_ACEOF 20840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20841 ac_datarootdir_hack=' 20842 s&@datadir@&$datadir&g 20843 s&@docdir@&$docdir&g 20844 s&@infodir@&$infodir&g 20845 s&@localedir@&$localedir&g 20846 s&@mandir@&$mandir&g 20847 s&\\\${datarootdir}&$datarootdir&g' ;; 20848esac 20849_ACEOF 20850 20851# Neutralize VPATH when `$srcdir' = `.'. 20852# Shell code in configure.ac might set extrasub. 20853# FIXME: do we really want to maintain this feature? 20854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20855ac_sed_extra="$ac_vpsub 20856$extrasub 20857_ACEOF 20858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20859:t 20860/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20861s|@configure_input@|$ac_sed_conf_input|;t t 20862s&@top_builddir@&$ac_top_builddir_sub&;t t 20863s&@top_build_prefix@&$ac_top_build_prefix&;t t 20864s&@srcdir@&$ac_srcdir&;t t 20865s&@abs_srcdir@&$ac_abs_srcdir&;t t 20866s&@top_srcdir@&$ac_top_srcdir&;t t 20867s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20868s&@builddir@&$ac_builddir&;t t 20869s&@abs_builddir@&$ac_abs_builddir&;t t 20870s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20871s&@INSTALL@&$ac_INSTALL&;t t 20872s&@MKDIR_P@&$ac_MKDIR_P&;t t 20873$ac_datarootdir_hack 20874" 20875eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20876 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20877 20878test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20879 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20880 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20881 "$ac_tmp/out"`; test -z "$ac_out"; } && 20882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20883which seems to be undefined. Please make sure it is defined" >&5 20884$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20885which seems to be undefined. Please make sure it is defined" >&2;} 20886 20887 rm -f "$ac_tmp/stdin" 20888 case $ac_file in 20889 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20890 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20891 esac \ 20892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20893 ;; 20894 :H) 20895 # 20896 # CONFIG_HEADER 20897 # 20898 if test x"$ac_file" != x-; then 20899 { 20900 $as_echo "/* $configure_input */" \ 20901 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20902 } >"$ac_tmp/config.h" \ 20903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20904 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20905 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20906$as_echo "$as_me: $ac_file is unchanged" >&6;} 20907 else 20908 rm -f "$ac_file" 20909 mv "$ac_tmp/config.h" "$ac_file" \ 20910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20911 fi 20912 else 20913 $as_echo "/* $configure_input */" \ 20914 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20915 || as_fn_error $? "could not create -" "$LINENO" 5 20916 fi 20917# Compute "$ac_file"'s index in $config_headers. 20918_am_arg="$ac_file" 20919_am_stamp_count=1 20920for _am_header in $config_headers :; do 20921 case $_am_header in 20922 $_am_arg | $_am_arg:* ) 20923 break ;; 20924 * ) 20925 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20926 esac 20927done 20928echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20929$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20930 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20931 X"$_am_arg" : 'X\(//\)$' \| \ 20932 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20933$as_echo X"$_am_arg" | 20934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20935 s//\1/ 20936 q 20937 } 20938 /^X\(\/\/\)[^/].*/{ 20939 s//\1/ 20940 q 20941 } 20942 /^X\(\/\/\)$/{ 20943 s//\1/ 20944 q 20945 } 20946 /^X\(\/\).*/{ 20947 s//\1/ 20948 q 20949 } 20950 s/.*/./; q'`/stamp-h$_am_stamp_count 20951 ;; 20952 20953 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20954$as_echo "$as_me: executing $ac_file commands" >&6;} 20955 ;; 20956 esac 20957 20958 20959 case $ac_file$ac_mode in 20960 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20961 # Autoconf 2.62 quotes --file arguments for eval, but not when files 20962 # are listed without --file. Let's play safe and only enable the eval 20963 # if we detect the quoting. 20964 case $CONFIG_FILES in 20965 *\'*) eval set x "$CONFIG_FILES" ;; 20966 *) set x $CONFIG_FILES ;; 20967 esac 20968 shift 20969 for mf 20970 do 20971 # Strip MF so we end up with the name of the file. 20972 mf=`echo "$mf" | sed -e 's/:.*$//'` 20973 # Check whether this is an Automake generated Makefile or not. 20974 # We used to match only the files named `Makefile.in', but 20975 # some people rename them; so instead we look at the file content. 20976 # Grep'ing the first line is not enough: some people post-process 20977 # each Makefile.in and add a new line on top of each file to say so. 20978 # Grep'ing the whole file is not good either: AIX grep has a line 20979 # limit of 2048, but all sed's we know have understand at least 4000. 20980 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20981 dirpart=`$as_dirname -- "$mf" || 20982$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20983 X"$mf" : 'X\(//\)[^/]' \| \ 20984 X"$mf" : 'X\(//\)$' \| \ 20985 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20986$as_echo X"$mf" | 20987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20988 s//\1/ 20989 q 20990 } 20991 /^X\(\/\/\)[^/].*/{ 20992 s//\1/ 20993 q 20994 } 20995 /^X\(\/\/\)$/{ 20996 s//\1/ 20997 q 20998 } 20999 /^X\(\/\).*/{ 21000 s//\1/ 21001 q 21002 } 21003 s/.*/./; q'` 21004 else 21005 continue 21006 fi 21007 # Extract the definition of DEPDIR, am__include, and am__quote 21008 # from the Makefile without running `make'. 21009 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21010 test -z "$DEPDIR" && continue 21011 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21012 test -z "am__include" && continue 21013 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21014 # When using ansi2knr, U may be empty or an underscore; expand it 21015 U=`sed -n 's/^U = //p' < "$mf"` 21016 # Find all dependency output files, they are included files with 21017 # $(DEPDIR) in their names. We invoke sed twice because it is the 21018 # simplest approach to changing $(DEPDIR) to its actual value in the 21019 # expansion. 21020 for file in `sed -n " 21021 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21022 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21023 # Make sure the directory exists. 21024 test -f "$dirpart/$file" && continue 21025 fdir=`$as_dirname -- "$file" || 21026$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21027 X"$file" : 'X\(//\)[^/]' \| \ 21028 X"$file" : 'X\(//\)$' \| \ 21029 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21030$as_echo X"$file" | 21031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21032 s//\1/ 21033 q 21034 } 21035 /^X\(\/\/\)[^/].*/{ 21036 s//\1/ 21037 q 21038 } 21039 /^X\(\/\/\)$/{ 21040 s//\1/ 21041 q 21042 } 21043 /^X\(\/\).*/{ 21044 s//\1/ 21045 q 21046 } 21047 s/.*/./; q'` 21048 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21049 # echo "creating $dirpart/$file" 21050 echo '# dummy' > "$dirpart/$file" 21051 done 21052 done 21053} 21054 ;; 21055 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) 21056 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 21057 esac ;; 21058 "libtool":C) 21059 21060 # See if we are running on zsh, and set the options which allow our 21061 # commands through without removal of \ escapes. 21062 if test -n "${ZSH_VERSION+set}" ; then 21063 setopt NO_GLOB_SUBST 21064 fi 21065 21066 cfgfile="${ofile}T" 21067 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21068 $RM "$cfgfile" 21069 21070 cat <<_LT_EOF >> "$cfgfile" 21071#! $SHELL 21072 21073# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21074# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21075# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21076# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21077# 21078# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21079# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 21080# Inc. 21081# Written by Gordon Matzigkeit, 1996 21082# 21083# This file is part of GNU Libtool. 21084# 21085# GNU Libtool is free software; you can redistribute it and/or 21086# modify it under the terms of the GNU General Public License as 21087# published by the Free Software Foundation; either version 2 of 21088# the License, or (at your option) any later version. 21089# 21090# As a special exception to the GNU General Public License, 21091# if you distribute this file as part of a program or library that 21092# is built using GNU Libtool, you may include this file under the 21093# same distribution terms that you use for the rest of that program. 21094# 21095# GNU Libtool is distributed in the hope that it will be useful, 21096# but WITHOUT ANY WARRANTY; without even the implied warranty of 21097# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21098# GNU General Public License for more details. 21099# 21100# You should have received a copy of the GNU General Public License 21101# along with GNU Libtool; see the file COPYING. If not, a copy 21102# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21103# obtained by writing to the Free Software Foundation, Inc., 21104# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21105 21106 21107# The names of the tagged configurations supported by this script. 21108available_tags="" 21109 21110# ### BEGIN LIBTOOL CONFIG 21111 21112# Assembler program. 21113AS=$lt_AS 21114 21115# DLL creation program. 21116DLLTOOL=$lt_DLLTOOL 21117 21118# Object dumper program. 21119OBJDUMP=$lt_OBJDUMP 21120 21121# Which release of libtool.m4 was used? 21122macro_version=$macro_version 21123macro_revision=$macro_revision 21124 21125# Whether or not to build shared libraries. 21126build_libtool_libs=$enable_shared 21127 21128# Whether or not to build static libraries. 21129build_old_libs=$enable_static 21130 21131# What type of objects to build. 21132pic_mode=$pic_mode 21133 21134# Whether or not to optimize for fast installation. 21135fast_install=$enable_fast_install 21136 21137# Shell to use when invoking shell scripts. 21138SHELL=$lt_SHELL 21139 21140# An echo program that protects backslashes. 21141ECHO=$lt_ECHO 21142 21143# The host system. 21144host_alias=$host_alias 21145host=$host 21146host_os=$host_os 21147 21148# The build system. 21149build_alias=$build_alias 21150build=$build 21151build_os=$build_os 21152 21153# A sed program that does not truncate output. 21154SED=$lt_SED 21155 21156# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21157Xsed="\$SED -e 1s/^X//" 21158 21159# A grep program that handles long lines. 21160GREP=$lt_GREP 21161 21162# An ERE matcher. 21163EGREP=$lt_EGREP 21164 21165# A literal string matcher. 21166FGREP=$lt_FGREP 21167 21168# A BSD- or MS-compatible name lister. 21169NM=$lt_NM 21170 21171# Whether we need soft or hard links. 21172LN_S=$lt_LN_S 21173 21174# What is the maximum length of a command? 21175max_cmd_len=$max_cmd_len 21176 21177# Object file suffix (normally "o"). 21178objext=$ac_objext 21179 21180# Executable file suffix (normally ""). 21181exeext=$exeext 21182 21183# whether the shell understands "unset". 21184lt_unset=$lt_unset 21185 21186# turn spaces into newlines. 21187SP2NL=$lt_lt_SP2NL 21188 21189# turn newlines into spaces. 21190NL2SP=$lt_lt_NL2SP 21191 21192# convert \$build file names to \$host format. 21193to_host_file_cmd=$lt_cv_to_host_file_cmd 21194 21195# convert \$build files to toolchain format. 21196to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21197 21198# Method to check whether dependent libraries are shared objects. 21199deplibs_check_method=$lt_deplibs_check_method 21200 21201# Command to use when deplibs_check_method = "file_magic". 21202file_magic_cmd=$lt_file_magic_cmd 21203 21204# How to find potential files when deplibs_check_method = "file_magic". 21205file_magic_glob=$lt_file_magic_glob 21206 21207# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21208want_nocaseglob=$lt_want_nocaseglob 21209 21210# Command to associate shared and link libraries. 21211sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21212 21213# The archiver. 21214AR=$lt_AR 21215 21216# Flags to create an archive. 21217AR_FLAGS=$lt_AR_FLAGS 21218 21219# How to feed a file listing to the archiver. 21220archiver_list_spec=$lt_archiver_list_spec 21221 21222# A symbol stripping program. 21223STRIP=$lt_STRIP 21224 21225# Commands used to install an old-style archive. 21226RANLIB=$lt_RANLIB 21227old_postinstall_cmds=$lt_old_postinstall_cmds 21228old_postuninstall_cmds=$lt_old_postuninstall_cmds 21229 21230# Whether to use a lock for old archive extraction. 21231lock_old_archive_extraction=$lock_old_archive_extraction 21232 21233# A C compiler. 21234LTCC=$lt_CC 21235 21236# LTCC compiler flags. 21237LTCFLAGS=$lt_CFLAGS 21238 21239# Take the output of nm and produce a listing of raw symbols and C names. 21240global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21241 21242# Transform the output of nm in a proper C declaration. 21243global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21244 21245# Transform the output of nm in a C name address pair. 21246global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21247 21248# Transform the output of nm in a C name address pair when lib prefix is needed. 21249global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21250 21251# Specify filename containing input files for \$NM. 21252nm_file_list_spec=$lt_nm_file_list_spec 21253 21254# The root where to search for dependent libraries,and in which our libraries should be installed. 21255lt_sysroot=$lt_sysroot 21256 21257# The name of the directory that contains temporary libtool files. 21258objdir=$objdir 21259 21260# Used to examine libraries when file_magic_cmd begins with "file". 21261MAGIC_CMD=$MAGIC_CMD 21262 21263# Must we lock files when doing compilation? 21264need_locks=$lt_need_locks 21265 21266# Manifest tool. 21267MANIFEST_TOOL=$lt_MANIFEST_TOOL 21268 21269# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21270DSYMUTIL=$lt_DSYMUTIL 21271 21272# Tool to change global to local symbols on Mac OS X. 21273NMEDIT=$lt_NMEDIT 21274 21275# Tool to manipulate fat objects and archives on Mac OS X. 21276LIPO=$lt_LIPO 21277 21278# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21279OTOOL=$lt_OTOOL 21280 21281# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21282OTOOL64=$lt_OTOOL64 21283 21284# Old archive suffix (normally "a"). 21285libext=$libext 21286 21287# Shared library suffix (normally ".so"). 21288shrext_cmds=$lt_shrext_cmds 21289 21290# The commands to extract the exported symbol list from a shared archive. 21291extract_expsyms_cmds=$lt_extract_expsyms_cmds 21292 21293# Variables whose values should be saved in libtool wrapper scripts and 21294# restored at link time. 21295variables_saved_for_relink=$lt_variables_saved_for_relink 21296 21297# Do we need the "lib" prefix for modules? 21298need_lib_prefix=$need_lib_prefix 21299 21300# Do we need a version for libraries? 21301need_version=$need_version 21302 21303# Library versioning type. 21304version_type=$version_type 21305 21306# Shared library runtime path variable. 21307runpath_var=$runpath_var 21308 21309# Shared library path variable. 21310shlibpath_var=$shlibpath_var 21311 21312# Is shlibpath searched before the hard-coded library search path? 21313shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21314 21315# Format of library name prefix. 21316libname_spec=$lt_libname_spec 21317 21318# List of archive names. First name is the real one, the rest are links. 21319# The last name is the one that the linker finds with -lNAME 21320library_names_spec=$lt_library_names_spec 21321 21322# The coded name of the library, if different from the real name. 21323soname_spec=$lt_soname_spec 21324 21325# Permission mode override for installation of shared libraries. 21326install_override_mode=$lt_install_override_mode 21327 21328# Command to use after installation of a shared archive. 21329postinstall_cmds=$lt_postinstall_cmds 21330 21331# Command to use after uninstallation of a shared archive. 21332postuninstall_cmds=$lt_postuninstall_cmds 21333 21334# Commands used to finish a libtool library installation in a directory. 21335finish_cmds=$lt_finish_cmds 21336 21337# As "finish_cmds", except a single script fragment to be evaled but 21338# not shown. 21339finish_eval=$lt_finish_eval 21340 21341# Whether we should hardcode library paths into libraries. 21342hardcode_into_libs=$hardcode_into_libs 21343 21344# Compile-time system search path for libraries. 21345sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21346 21347# Run-time system search path for libraries. 21348sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21349 21350# Whether dlopen is supported. 21351dlopen_support=$enable_dlopen 21352 21353# Whether dlopen of programs is supported. 21354dlopen_self=$enable_dlopen_self 21355 21356# Whether dlopen of statically linked programs is supported. 21357dlopen_self_static=$enable_dlopen_self_static 21358 21359# Commands to strip libraries. 21360old_striplib=$lt_old_striplib 21361striplib=$lt_striplib 21362 21363 21364# The linker used to build libraries. 21365LD=$lt_LD 21366 21367# How to create reloadable object files. 21368reload_flag=$lt_reload_flag 21369reload_cmds=$lt_reload_cmds 21370 21371# Commands used to build an old-style archive. 21372old_archive_cmds=$lt_old_archive_cmds 21373 21374# A language specific compiler. 21375CC=$lt_compiler 21376 21377# Is the compiler the GNU compiler? 21378with_gcc=$GCC 21379 21380# Compiler flag to turn off builtin functions. 21381no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21382 21383# Additional compiler flags for building library objects. 21384pic_flag=$lt_lt_prog_compiler_pic 21385 21386# How to pass a linker flag through the compiler. 21387wl=$lt_lt_prog_compiler_wl 21388 21389# Compiler flag to prevent dynamic linking. 21390link_static_flag=$lt_lt_prog_compiler_static 21391 21392# Does compiler simultaneously support -c and -o options? 21393compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21394 21395# Whether or not to add -lc for building shared libraries. 21396build_libtool_need_lc=$archive_cmds_need_lc 21397 21398# Whether or not to disallow shared libs when runtime libs are static. 21399allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21400 21401# Compiler flag to allow reflexive dlopens. 21402export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21403 21404# Compiler flag to generate shared objects directly from archives. 21405whole_archive_flag_spec=$lt_whole_archive_flag_spec 21406 21407# Whether the compiler copes with passing no objects directly. 21408compiler_needs_object=$lt_compiler_needs_object 21409 21410# Create an old-style archive from a shared archive. 21411old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21412 21413# Create a temporary old-style archive to link instead of a shared archive. 21414old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21415 21416# Commands used to build a shared archive. 21417archive_cmds=$lt_archive_cmds 21418archive_expsym_cmds=$lt_archive_expsym_cmds 21419 21420# Commands used to build a loadable module if different from building 21421# a shared archive. 21422module_cmds=$lt_module_cmds 21423module_expsym_cmds=$lt_module_expsym_cmds 21424 21425# Whether we are building with GNU ld or not. 21426with_gnu_ld=$lt_with_gnu_ld 21427 21428# Flag that allows shared libraries with undefined symbols to be built. 21429allow_undefined_flag=$lt_allow_undefined_flag 21430 21431# Flag that enforces no undefined symbols. 21432no_undefined_flag=$lt_no_undefined_flag 21433 21434# Flag to hardcode \$libdir into a binary during linking. 21435# This must work even if \$libdir does not exist 21436hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21437 21438# If ld is used when linking, flag to hardcode \$libdir into a binary 21439# during linking. This must work even if \$libdir does not exist. 21440hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 21441 21442# Whether we need a single "-rpath" flag with a separated argument. 21443hardcode_libdir_separator=$lt_hardcode_libdir_separator 21444 21445# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21446# DIR into the resulting binary. 21447hardcode_direct=$hardcode_direct 21448 21449# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21450# DIR into the resulting binary and the resulting library dependency is 21451# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21452# library is relocated. 21453hardcode_direct_absolute=$hardcode_direct_absolute 21454 21455# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21456# into the resulting binary. 21457hardcode_minus_L=$hardcode_minus_L 21458 21459# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21460# into the resulting binary. 21461hardcode_shlibpath_var=$hardcode_shlibpath_var 21462 21463# Set to "yes" if building a shared library automatically hardcodes DIR 21464# into the library and all subsequent libraries and executables linked 21465# against it. 21466hardcode_automatic=$hardcode_automatic 21467 21468# Set to yes if linker adds runtime paths of dependent libraries 21469# to runtime path list. 21470inherit_rpath=$inherit_rpath 21471 21472# Whether libtool must link a program against all its dependency libraries. 21473link_all_deplibs=$link_all_deplibs 21474 21475# Set to "yes" if exported symbols are required. 21476always_export_symbols=$always_export_symbols 21477 21478# The commands to list exported symbols. 21479export_symbols_cmds=$lt_export_symbols_cmds 21480 21481# Symbols that should not be listed in the preloaded symbols. 21482exclude_expsyms=$lt_exclude_expsyms 21483 21484# Symbols that must always be exported. 21485include_expsyms=$lt_include_expsyms 21486 21487# Commands necessary for linking programs (against libraries) with templates. 21488prelink_cmds=$lt_prelink_cmds 21489 21490# Commands necessary for finishing linking programs. 21491postlink_cmds=$lt_postlink_cmds 21492 21493# Specify filename containing input files. 21494file_list_spec=$lt_file_list_spec 21495 21496# How to hardcode a shared library path into an executable. 21497hardcode_action=$hardcode_action 21498 21499# ### END LIBTOOL CONFIG 21500 21501_LT_EOF 21502 21503 case $host_os in 21504 aix3*) 21505 cat <<\_LT_EOF >> "$cfgfile" 21506# AIX sometimes has problems with the GCC collect2 program. For some 21507# reason, if we set the COLLECT_NAMES environment variable, the problems 21508# vanish in a puff of smoke. 21509if test "X${COLLECT_NAMES+set}" != Xset; then 21510 COLLECT_NAMES= 21511 export COLLECT_NAMES 21512fi 21513_LT_EOF 21514 ;; 21515 esac 21516 21517 21518ltmain="$ac_aux_dir/ltmain.sh" 21519 21520 21521 # We use sed instead of cat because bash on DJGPP gets confused if 21522 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21523 # text mode, it properly converts lines to CR/LF. This bash problem 21524 # is reportedly fixed, but why not run on old versions too? 21525 sed '$q' "$ltmain" >> "$cfgfile" \ 21526 || (rm -f "$cfgfile"; exit 1) 21527 21528 if test x"$xsi_shell" = xyes; then 21529 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21530func_dirname ()\ 21531{\ 21532\ case ${1} in\ 21533\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21534\ * ) func_dirname_result="${3}" ;;\ 21535\ esac\ 21536} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21537 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21539test 0 -eq $? || _lt_function_replace_fail=: 21540 21541 21542 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21543func_basename ()\ 21544{\ 21545\ func_basename_result="${1##*/}"\ 21546} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21547 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21549test 0 -eq $? || _lt_function_replace_fail=: 21550 21551 21552 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21553func_dirname_and_basename ()\ 21554{\ 21555\ case ${1} in\ 21556\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21557\ * ) func_dirname_result="${3}" ;;\ 21558\ esac\ 21559\ func_basename_result="${1##*/}"\ 21560} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21561 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21562 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21563test 0 -eq $? || _lt_function_replace_fail=: 21564 21565 21566 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21567func_stripname ()\ 21568{\ 21569\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21570\ # positional parameters, so assign one to ordinary parameter first.\ 21571\ func_stripname_result=${3}\ 21572\ func_stripname_result=${func_stripname_result#"${1}"}\ 21573\ func_stripname_result=${func_stripname_result%"${2}"}\ 21574} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21575 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21576 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21577test 0 -eq $? || _lt_function_replace_fail=: 21578 21579 21580 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21581func_split_long_opt ()\ 21582{\ 21583\ func_split_long_opt_name=${1%%=*}\ 21584\ func_split_long_opt_arg=${1#*=}\ 21585} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21586 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21588test 0 -eq $? || _lt_function_replace_fail=: 21589 21590 21591 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21592func_split_short_opt ()\ 21593{\ 21594\ func_split_short_opt_arg=${1#??}\ 21595\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21596} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21597 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21599test 0 -eq $? || _lt_function_replace_fail=: 21600 21601 21602 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21603func_lo2o ()\ 21604{\ 21605\ case ${1} in\ 21606\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21607\ *) func_lo2o_result=${1} ;;\ 21608\ esac\ 21609} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21610 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21611 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21612test 0 -eq $? || _lt_function_replace_fail=: 21613 21614 21615 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21616func_xform ()\ 21617{\ 21618 func_xform_result=${1%.*}.lo\ 21619} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21620 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21621 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21622test 0 -eq $? || _lt_function_replace_fail=: 21623 21624 21625 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21626func_arith ()\ 21627{\ 21628 func_arith_result=$(( $* ))\ 21629} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21630 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21631 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21632test 0 -eq $? || _lt_function_replace_fail=: 21633 21634 21635 sed -e '/^func_len ()$/,/^} # func_len /c\ 21636func_len ()\ 21637{\ 21638 func_len_result=${#1}\ 21639} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21640 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21641 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21642test 0 -eq $? || _lt_function_replace_fail=: 21643 21644fi 21645 21646if test x"$lt_shell_append" = xyes; then 21647 sed -e '/^func_append ()$/,/^} # func_append /c\ 21648func_append ()\ 21649{\ 21650 eval "${1}+=\\${2}"\ 21651} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21652 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21653 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21654test 0 -eq $? || _lt_function_replace_fail=: 21655 21656 21657 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21658func_append_quoted ()\ 21659{\ 21660\ func_quote_for_eval "${2}"\ 21661\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21662} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21663 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21664 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21665test 0 -eq $? || _lt_function_replace_fail=: 21666 21667 21668 # Save a `func_append' function call where possible by direct use of '+=' 21669 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21670 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21671 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21672 test 0 -eq $? || _lt_function_replace_fail=: 21673else 21674 # Save a `func_append' function call even when '+=' is not available 21675 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21676 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21678 test 0 -eq $? || _lt_function_replace_fail=: 21679fi 21680 21681if test x"$_lt_function_replace_fail" = x":"; then 21682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21683$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21684fi 21685 21686 21687 mv -f "$cfgfile" "$ofile" || 21688 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21689 chmod +x "$ofile" 21690 21691 ;; 21692 "po/stamp-it":C) 21693 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then 21694 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 21695 fi 21696 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" 21697 >"po/stamp-it.tmp" 21698 sed '/^#/d 21699 s/^[[].*] *// 21700 /^[ ]*$/d 21701 '"s|^| $ac_top_srcdir/|" \ 21702 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" 21703 21704 sed '/^POTFILES =/,/[^\\]$/ { 21705 /^POTFILES =/!d 21706 r po/POTFILES 21707 } 21708 ' "po/Makefile.in" >"po/Makefile" 21709 rm -f "po/Makefile.tmp" 21710 mv "po/stamp-it.tmp" "po/stamp-it" 21711 ;; 21712 21713 esac 21714done # for ac_tag 21715 21716 21717as_fn_exit 0 21718_ACEOF 21719ac_clean_files=$ac_clean_files_save 21720 21721test $ac_write_fail = 0 || 21722 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21723 21724 21725# configure is writing to config.log, and then calls config.status. 21726# config.status does its own redirection, appending to config.log. 21727# Unfortunately, on DOS this fails, as config.log is still kept open 21728# by configure, so config.status won't be able to write to it; its 21729# output is simply discarded. So we exec the FD to /dev/null, 21730# effectively closing config.log, so it can be properly (re)opened and 21731# appended to by config.status. When coming back to configure, we 21732# need to make the FD available again. 21733if test "$no_create" != yes; then 21734 ac_cs_success=: 21735 ac_config_status_args= 21736 test "$silent" = yes && 21737 ac_config_status_args="$ac_config_status_args --quiet" 21738 exec 5>/dev/null 21739 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21740 exec 5>>config.log 21741 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21742 # would make configure fail if this is the last instruction. 21743 $ac_cs_success || as_fn_exit 1 21744fi 21745if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21747$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21748fi 21749 21750 21751 21752echo " 21753 21754 G N O K I I 21755 21756 A toolset and driver for the mobile phones. 21757 21758 Copyright (C) 1999-2011 The Gnokii Development Team. 21759 21760 This program is free software; you can redistribute it and/or modify 21761 it under the terms of the GNU General Public License as published by 21762 the Free Software Foundation; either version 2 of the License, or 21763 (at your option) any later version. 21764 21765 See file COPYING for more details. 21766 21767 Host system: $host_os 21768 Gnokii version: $VERSION 21769 Xgnokii version: $XVERSION 21770 SMSD version: $SVERSION 21771 X (GTK+) support: $x_support 21772 smsd support: $enable_smsd 21773 Postgres support: $have_postgres 21774 SQLite support: $have_sqlite 21775 MySQL support: $have_mysql 21776 Debug: $debug 21777 XDebug: $xdebug 21778 RLPDebug: $rlpdebug 21779 NLS: $USE_NLS 21780 IrDA: $USE_IRDA 21781 ical read support: $USE_LIBICAL 21782 Bluetooth: $USE_BLUETOOTH 21783 libusb support: $USE_LIBUSB 21784 phonet support: $USE_SOCKETPHONET 21785 libpcsclite support:$USE_LIBPCSCLITE 21786 readline support: $USE_READLINE 21787 Security: $security 21788 Build Shared Lib: $enable_shared 21789 Build Static Lib: $enable_static 21790 Windows: $win32 21791 Prefix: $prefix 21792 21793 Type '${MAKE}' for compilation and then '${MAKE} install', to 21794 install gnokii. 21795" 21796 21797 21798