1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for PCRE2 10.40. 4# 5# 6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 7# Inc. 8# 9# 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## -------------------- ## 13## M4sh Initialization. ## 14## -------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18as_nop=: 19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else $as_nop 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37 38# Reset variables that may have inherited troublesome values from 39# the environment. 40 41# IFS needs to be set, to space, tab, and newline, in precisely that order. 42# (If _AS_PATH_WALK were called with IFS unset, it would have the 43# side effect of setting IFS to empty, thus disabling word splitting.) 44# Quoting is to prevent editors from complaining about space-tab. 45as_nl=' 46' 47export as_nl 48IFS=" "" $as_nl" 49 50PS1='$ ' 51PS2='> ' 52PS4='+ ' 53 54# Ensure predictable behavior from utilities with locale-dependent output. 55LC_ALL=C 56export LC_ALL 57LANGUAGE=C 58export LANGUAGE 59 60# We cannot yet rely on "unset" to work, but we need these variables 61# to be unset--not just set to an empty or harmless value--now, to 62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 63# also avoids known problems related to "unset" and subshell syntax 64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 66do eval test \${$as_var+y} \ 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68done 69 70# Ensure that fds 0, 1, and 2 are open. 71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 74 75# The user is always right. 76if ${PATH_SEPARATOR+false} :; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# Find who we are. Look in the path if we contain no directory separator. 86as_myself= 87case $0 in #(( 88 *[\\/]* ) as_myself=$0 ;; 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 90for as_dir in $PATH 91do 92 IFS=$as_save_IFS 93 case $as_dir in #((( 94 '') as_dir=./ ;; 95 */) ;; 96 *) as_dir=$as_dir/ ;; 97 esac 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114 115# Use a proper internal environment variable to ensure we don't fall 116 # into an infinite loop, continuously re-executing ourselves. 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 118 _as_can_reexec=no; export _as_can_reexec; 119 # We cannot yet assume a decent shell, so we have to provide a 120# neutralization value for shells without unset; and this also 121# works around shells that cannot unset nonexistent variables. 122# Preserve -v and -x to the replacement shell. 123BASH_ENV=/dev/null 124ENV=/dev/null 125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 126case $- in # (((( 127 *v*x* | *x*v* ) as_opts=-vx ;; 128 *v* ) as_opts=-v ;; 129 *x* ) as_opts=-x ;; 130 * ) as_opts= ;; 131esac 132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 133# Admittedly, this is quite paranoid, since all the known shells bail 134# out after a failed `exec'. 135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 136exit 255 137 fi 138 # We don't want this to propagate to other subprocesses. 139 { _as_can_reexec=; unset _as_can_reexec;} 140if test "x$CONFIG_SHELL" = x; then 141 as_bourne_compatible="as_nop=: 142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 143then : 144 emulate sh 145 NULLCMD=: 146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 147 # is contrary to our usage. Disable this feature. 148 alias -g '\${1+\"\$@\"}'='\"\$@\"' 149 setopt NO_GLOB_SUBST 150else \$as_nop 151 case \`(set -o) 2>/dev/null\` in #( 152 *posix*) : 153 set -o posix ;; #( 154 *) : 155 ;; 156esac 157fi 158" 159 as_required="as_fn_return () { (exit \$1); } 160as_fn_success () { as_fn_return 0; } 161as_fn_failure () { as_fn_return 1; } 162as_fn_ret_success () { return 0; } 163as_fn_ret_failure () { return 1; } 164 165exitcode=0 166as_fn_success || { exitcode=1; echo as_fn_success failed.; } 167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 170if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 171then : 172 173else \$as_nop 174 exitcode=1; echo positional parameters were not saved. 175fi 176test x\$exitcode = x0 || exit 1 177blah=\$(echo \$(echo blah)) 178test x\"\$blah\" = xblah || exit 1 179test -x / || exit 1" 180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 184 185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 189 PATH=/empty FPATH=/empty; export PATH FPATH 190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 192test \$(( 1 + 1 )) = 2 || exit 1" 193 if (eval "$as_required") 2>/dev/null 194then : 195 as_have_required=yes 196else $as_nop 197 as_have_required=no 198fi 199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 200then : 201 202else $as_nop 203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 204as_found=false 205for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 206do 207 IFS=$as_save_IFS 208 case $as_dir in #((( 209 '') as_dir=./ ;; 210 */) ;; 211 *) as_dir=$as_dir/ ;; 212 esac 213 as_found=: 214 case $as_dir in #( 215 /*) 216 for as_base in sh bash ksh sh5; do 217 # Try only shells that exist, to save several forks. 218 as_shell=$as_dir$as_base 219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 221then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 224then : 225 break 2 226fi 227fi 228 done;; 229 esac 230 as_found=false 231done 232IFS=$as_save_IFS 233if $as_found 234then : 235 236else $as_nop 237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 239then : 240 CONFIG_SHELL=$SHELL as_have_required=yes 241fi 242fi 243 244 245 if test "x$CONFIG_SHELL" != x 246then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno 269then : 270 printf "%s\n" "$0: This script requires a shell more modern than all" 271 printf "%s\n" "$0: the shells that I found on your system." 272 if test ${ZSH_VERSION+y} ; then 273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 275 else 276 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, 277$0: including any error possibly output before this 278$0: message. Then install a modern shell, or manually run 279$0: the script under such a shell if you do have one." 280 fi 281 exit 1 282fi 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321# as_fn_nop 322# --------- 323# Do nothing but, unlike ":", preserve the value of $?. 324as_fn_nop () 325{ 326 return $? 327} 328as_nop=as_fn_nop 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else $as_nop 398 as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } 402fi # as_fn_append 403 404# as_fn_arith ARG... 405# ------------------ 406# Perform arithmetic evaluation on the ARGs, and store the result in the 407# global $as_val. Take advantage of shells that can avoid forks. The arguments 408# must be portable across $(()) and expr. 409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 410then : 411 eval 'as_fn_arith () 412 { 413 as_val=$(( $* )) 414 }' 415else $as_nop 416 as_fn_arith () 417 { 418 as_val=`expr "$@" || test $? -eq 1` 419 } 420fi # as_fn_arith 421 422# as_fn_nop 423# --------- 424# Do nothing but, unlike ":", preserve the value of $?. 425as_fn_nop () 426{ 427 return $? 428} 429as_nop=as_fn_nop 430 431# as_fn_error STATUS ERROR [LINENO LOG_FD] 432# ---------------------------------------- 433# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 434# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 435# script with STATUS, using 1 if that was 0. 436as_fn_error () 437{ 438 as_status=$1; test $as_status -eq 0 && as_status=1 439 if test "$4"; then 440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 442 fi 443 printf "%s\n" "$as_me: error: $2" >&2 444 as_fn_exit $as_status 445} # as_fn_error 446 447if expr a : '\(a\)' >/dev/null 2>&1 && 448 test "X`expr 00001 : '.*\(...\)'`" = X001; then 449 as_expr=expr 450else 451 as_expr=false 452fi 453 454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 455 as_basename=basename 456else 457 as_basename=false 458fi 459 460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462else 463 as_dirname=false 464fi 465 466as_me=`$as_basename -- "$0" || 467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 468 X"$0" : 'X\(//\)$' \| \ 469 X"$0" : 'X\(/\)' \| . 2>/dev/null || 470printf "%s\n" X/"$0" | 471 sed '/^.*\/\([^/][^/]*\)\/*$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\/\)$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\).*/{ 480 s//\1/ 481 q 482 } 483 s/.*/./; q'` 484 485# Avoid depending upon Character Ranges. 486as_cr_letters='abcdefghijklmnopqrstuvwxyz' 487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 488as_cr_Letters=$as_cr_letters$as_cr_LETTERS 489as_cr_digits='0123456789' 490as_cr_alnum=$as_cr_Letters$as_cr_digits 491 492 493 as_lineno_1=$LINENO as_lineno_1a=$LINENO 494 as_lineno_2=$LINENO as_lineno_2a=$LINENO 495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 498 sed -n ' 499 p 500 /[$]LINENO/= 501 ' <$as_myself | 502 sed ' 503 s/[$]LINENO.*/&-/ 504 t lineno 505 b 506 :lineno 507 N 508 :loop 509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 510 t loop 511 s/-\n.*// 512 ' >$as_me.lineno && 513 chmod +x "$as_me.lineno" || 514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 515 516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 517 # already done that, so ensure we don't try to do so again and fall 518 # in an infinite loop. This has already happened in practice. 519 _as_can_reexec=no; export _as_can_reexec 520 # Don't try to exec as it changes $[0], causing all sort of problems 521 # (the dirname of $[0] is not the place where we might find the 522 # original and so on. Autoconf is especially sensitive to this). 523 . "./$as_me.lineno" 524 # Exit status is that of the last command. 525 exit 526} 527 528 529# Determine whether it's possible to make 'echo' print without a newline. 530# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 531# for compatibility with existing Makefiles. 532ECHO_C= ECHO_N= ECHO_T= 533case `echo -n x` in #((((( 534-n*) 535 case `echo 'xy\c'` in 536 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 537 xy) ECHO_C='\c';; 538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 539 ECHO_T=' ';; 540 esac;; 541*) 542 ECHO_N='-n';; 543esac 544 545# For backward compatibility with old third-party macros, we provide 546# the shell variables $as_echo and $as_echo_n. New code should use 547# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 548as_echo='printf %s\n' 549as_echo_n='printf %s' 550 551 552rm -f conf$$ conf$$.exe conf$$.file 553if test -d conf$$.dir; then 554 rm -f conf$$.dir/conf$$.file 555else 556 rm -f conf$$.dir 557 mkdir conf$$.dir 2>/dev/null 558fi 559if (echo >conf$$.file) 2>/dev/null; then 560 if ln -s conf$$.file conf$$ 2>/dev/null; then 561 as_ln_s='ln -s' 562 # ... but there are two gotchas: 563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 565 # In both cases, we have to default to `cp -pR'. 566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 567 as_ln_s='cp -pR' 568 elif ln conf$$.file conf$$ 2>/dev/null; then 569 as_ln_s=ln 570 else 571 as_ln_s='cp -pR' 572 fi 573else 574 as_ln_s='cp -pR' 575fi 576rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 577rmdir conf$$.dir 2>/dev/null 578 579if mkdir -p . 2>/dev/null; then 580 as_mkdir_p='mkdir -p "$as_dir"' 581else 582 test -d ./-p && rmdir ./-p 583 as_mkdir_p=false 584fi 585 586as_test_x='test -x' 587as_executable_p=as_fn_executable_p 588 589# Sed expression to map a string onto a valid CPP name. 590as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 591 592# Sed expression to map a string onto a valid variable name. 593as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 594 595SHELL=${CONFIG_SHELL-/bin/sh} 596 597 598test -n "$DJDIR" || exec 7<&0 </dev/null 599exec 6>&1 600 601# Name of the host. 602# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 603# so uname gets run too. 604ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 605 606# 607# Initializations. 608# 609ac_default_prefix=/usr/local 610ac_clean_files= 611ac_config_libobj_dir=. 612LIBOBJS= 613cross_compiling=no 614subdirs= 615MFLAGS= 616MAKEFLAGS= 617 618# Identity of this package. 619PACKAGE_NAME='PCRE2' 620PACKAGE_TARNAME='pcre2' 621PACKAGE_VERSION='10.40' 622PACKAGE_STRING='PCRE2 10.40' 623PACKAGE_BUGREPORT='' 624PACKAGE_URL='' 625 626ac_unique_file="src/pcre2.h.in" 627# Factoring default headers for most tests. 628ac_includes_default="\ 629#include <stddef.h> 630#ifdef HAVE_STDIO_H 631# include <stdio.h> 632#endif 633#ifdef HAVE_STDLIB_H 634# include <stdlib.h> 635#endif 636#ifdef HAVE_STRING_H 637# include <string.h> 638#endif 639#ifdef HAVE_INTTYPES_H 640# include <inttypes.h> 641#endif 642#ifdef HAVE_STDINT_H 643# include <stdint.h> 644#endif 645#ifdef HAVE_STRINGS_H 646# include <strings.h> 647#endif 648#ifdef HAVE_SYS_TYPES_H 649# include <sys/types.h> 650#endif 651#ifdef HAVE_SYS_STAT_H 652# include <sys/stat.h> 653#endif 654#ifdef HAVE_UNISTD_H 655# include <unistd.h> 656#endif" 657 658ac_header_c_list= 659ac_subst_vars='am__EXEEXT_FALSE 660am__EXEEXT_TRUE 661LTLIBOBJS 662LIBOBJS 663LIB_POSTFIX 664CET_CFLAGS 665WITH_GCOV_FALSE 666WITH_GCOV_TRUE 667GCOV_LIBS 668GCOV_CXXFLAGS 669GCOV_CFLAGS 670GENHTML 671LCOV 672SHTOOL 673VALGRIND_LIBS 674VALGRIND_CFLAGS 675PKG_CONFIG_LIBDIR 676PKG_CONFIG_PATH 677PKG_CONFIG 678LIBBZ2 679LIBZ 680DISTCHECK_CONFIGURE_FLAGS 681EXTRA_LIBPCRE2_POSIX_LDFLAGS 682EXTRA_LIBPCRE2_32_LDFLAGS 683EXTRA_LIBPCRE2_16_LDFLAGS 684EXTRA_LIBPCRE2_8_LDFLAGS 685PTHREAD_CFLAGS 686PTHREAD_LIBS 687PTHREAD_CC 688ax_pthread_config 689PCRE2_STATIC_CFLAG 690LIBREADLINE 691WITH_FUZZ_SUPPORT_FALSE 692WITH_FUZZ_SUPPORT_TRUE 693WITH_VALGRIND_FALSE 694WITH_VALGRIND_TRUE 695WITH_UNICODE_FALSE 696WITH_UNICODE_TRUE 697WITH_JIT_FALSE 698WITH_JIT_TRUE 699WITH_REBUILD_CHARTABLES_FALSE 700WITH_REBUILD_CHARTABLES_TRUE 701WITH_DEBUG_FALSE 702WITH_DEBUG_TRUE 703WITH_PCRE2_32_FALSE 704WITH_PCRE2_32_TRUE 705WITH_PCRE2_16_FALSE 706WITH_PCRE2_16_TRUE 707WITH_PCRE2_8_FALSE 708WITH_PCRE2_8_TRUE 709enable_pcre2_32 710enable_pcre2_16 711enable_pcre2_8 712PCRE2_DATE 713PCRE2_PRERELEASE 714PCRE2_MINOR 715PCRE2_MAJOR 716HAVE_VISIBILITY 717VISIBILITY_CXXFLAGS 718VISIBILITY_CFLAGS 719LT_SYS_LIBRARY_PATH 720OTOOL64 721OTOOL 722LIPO 723NMEDIT 724DSYMUTIL 725MANIFEST_TOOL 726RANLIB 727FILECMD 728LN_S 729NM 730ac_ct_DUMPBIN 731DUMPBIN 732LD 733FGREP 734EGREP 735GREP 736SED 737host_os 738host_vendor 739host_cpu 740host 741build_os 742build_vendor 743build_cpu 744build 745LIBTOOL 746OBJDUMP 747DLLTOOL 748AS 749ac_ct_AR 750AR 751am__fastdepCC_FALSE 752am__fastdepCC_TRUE 753CCDEPMODE 754am__nodep 755AMDEPBACKSLASH 756AMDEP_FALSE 757AMDEP_TRUE 758am__include 759DEPDIR 760OBJEXT 761EXEEXT 762ac_ct_CC 763CPPFLAGS 764LDFLAGS 765CFLAGS 766CC 767AM_BACKSLASH 768AM_DEFAULT_VERBOSITY 769AM_DEFAULT_V 770AM_V 771CSCOPE 772ETAGS 773CTAGS 774am__untar 775am__tar 776AMTAR 777am__leading_dot 778SET_MAKE 779AWK 780mkdir_p 781MKDIR_P 782INSTALL_STRIP_PROGRAM 783STRIP 784install_sh 785MAKEINFO 786AUTOHEADER 787AUTOMAKE 788AUTOCONF 789ACLOCAL 790VERSION 791PACKAGE 792CYGPATH_W 793am__isrc 794INSTALL_DATA 795INSTALL_SCRIPT 796INSTALL_PROGRAM 797target_alias 798host_alias 799build_alias 800LIBS 801ECHO_T 802ECHO_N 803ECHO_C 804DEFS 805mandir 806localedir 807libdir 808psdir 809pdfdir 810dvidir 811htmldir 812infodir 813docdir 814oldincludedir 815includedir 816runstatedir 817localstatedir 818sharedstatedir 819sysconfdir 820datadir 821datarootdir 822libexecdir 823sbindir 824bindir 825program_transform_name 826prefix 827exec_prefix 828PACKAGE_URL 829PACKAGE_BUGREPORT 830PACKAGE_STRING 831PACKAGE_VERSION 832PACKAGE_TARNAME 833PACKAGE_NAME 834PATH_SEPARATOR 835SHELL 836am__quote' 837ac_subst_files='' 838ac_user_opts=' 839enable_option_checking 840enable_silent_rules 841enable_dependency_tracking 842enable_shared 843enable_static 844with_pic 845enable_fast_install 846with_aix_soname 847with_gnu_ld 848with_sysroot 849enable_libtool_lock 850enable_pcre8 851enable_pcre16 852enable_pcre32 853enable_pcre2_8 854enable_pcre2_16 855enable_pcre2_32 856enable_debug 857enable_jit 858enable_jit_sealloc 859enable_pcre2grep_jit 860enable_pcre2grep_callout 861enable_pcre2grep_callout_fork 862enable_rebuild_chartables 863enable_unicode 864enable_newline_is_cr 865enable_newline_is_lf 866enable_newline_is_crlf 867enable_newline_is_anycrlf 868enable_newline_is_any 869enable_newline_is_nul 870enable_bsr_anycrlf 871enable_never_backslash_C 872enable_ebcdic 873enable_ebcdic_nl25 874enable_pcre2grep_libz 875enable_pcre2grep_libbz2 876with_pcre2grep_bufsize 877with_pcre2grep_max_bufsize 878enable_pcre2test_libedit 879enable_pcre2test_libreadline 880with_link_size 881with_parens_nest_limit 882with_heap_limit 883with_match_limit 884with_match_limit_depth 885with_match_limit_recursion 886enable_valgrind 887enable_coverage 888enable_fuzz_support 889enable_stack_for_recursion 890enable_percent_zt 891' 892 ac_precious_vars='build_alias 893host_alias 894target_alias 895CC 896CFLAGS 897LDFLAGS 898LIBS 899CPPFLAGS 900LT_SYS_LIBRARY_PATH 901PKG_CONFIG 902PKG_CONFIG_PATH 903PKG_CONFIG_LIBDIR 904VALGRIND_CFLAGS 905VALGRIND_LIBS 906LCOV 907GENHTML' 908 909 910# Initialize some variables set by options. 911ac_init_help= 912ac_init_version=false 913ac_unrecognized_opts= 914ac_unrecognized_sep= 915# The variables have the same names as the options, with 916# dashes changed to underlines. 917cache_file=/dev/null 918exec_prefix=NONE 919no_create= 920no_recursion= 921prefix=NONE 922program_prefix=NONE 923program_suffix=NONE 924program_transform_name=s,x,x, 925silent= 926site= 927srcdir= 928verbose= 929x_includes=NONE 930x_libraries=NONE 931 932# Installation directory options. 933# These are left unexpanded so users can "make install exec_prefix=/foo" 934# and all the variables that are supposed to be based on exec_prefix 935# by default will actually change. 936# Use braces instead of parens because sh, perl, etc. also accept them. 937# (The list follows the same order as the GNU Coding Standards.) 938bindir='${exec_prefix}/bin' 939sbindir='${exec_prefix}/sbin' 940libexecdir='${exec_prefix}/libexec' 941datarootdir='${prefix}/share' 942datadir='${datarootdir}' 943sysconfdir='${prefix}/etc' 944sharedstatedir='${prefix}/com' 945localstatedir='${prefix}/var' 946runstatedir='${localstatedir}/run' 947includedir='${prefix}/include' 948oldincludedir='/usr/include' 949docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 950infodir='${datarootdir}/info' 951htmldir='${docdir}' 952dvidir='${docdir}' 953pdfdir='${docdir}' 954psdir='${docdir}' 955libdir='${exec_prefix}/lib' 956localedir='${datarootdir}/locale' 957mandir='${datarootdir}/man' 958 959ac_prev= 960ac_dashdash= 961for ac_option 962do 963 # If the previous option needs an argument, assign it. 964 if test -n "$ac_prev"; then 965 eval $ac_prev=\$ac_option 966 ac_prev= 967 continue 968 fi 969 970 case $ac_option in 971 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 972 *=) ac_optarg= ;; 973 *) ac_optarg=yes ;; 974 esac 975 976 case $ac_dashdash$ac_option in 977 --) 978 ac_dashdash=yes ;; 979 980 -bindir | --bindir | --bindi | --bind | --bin | --bi) 981 ac_prev=bindir ;; 982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 983 bindir=$ac_optarg ;; 984 985 -build | --build | --buil | --bui | --bu) 986 ac_prev=build_alias ;; 987 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 988 build_alias=$ac_optarg ;; 989 990 -cache-file | --cache-file | --cache-fil | --cache-fi \ 991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 992 ac_prev=cache_file ;; 993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 995 cache_file=$ac_optarg ;; 996 997 --config-cache | -C) 998 cache_file=config.cache ;; 999 1000 -datadir | --datadir | --datadi | --datad) 1001 ac_prev=datadir ;; 1002 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1003 datadir=$ac_optarg ;; 1004 1005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1006 | --dataroo | --dataro | --datar) 1007 ac_prev=datarootdir ;; 1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1010 datarootdir=$ac_optarg ;; 1011 1012 -disable-* | --disable-*) 1013 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1014 # Reject names that are not valid shell variable names. 1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1016 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1017 ac_useropt_orig=$ac_useropt 1018 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1019 case $ac_user_opts in 1020 *" 1021"enable_$ac_useropt" 1022"*) ;; 1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1024 ac_unrecognized_sep=', ';; 1025 esac 1026 eval enable_$ac_useropt=no ;; 1027 1028 -docdir | --docdir | --docdi | --doc | --do) 1029 ac_prev=docdir ;; 1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1031 docdir=$ac_optarg ;; 1032 1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1034 ac_prev=dvidir ;; 1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1036 dvidir=$ac_optarg ;; 1037 1038 -enable-* | --enable-*) 1039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1040 # Reject names that are not valid shell variable names. 1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1042 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1043 ac_useropt_orig=$ac_useropt 1044 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1045 case $ac_user_opts in 1046 *" 1047"enable_$ac_useropt" 1048"*) ;; 1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1050 ac_unrecognized_sep=', ';; 1051 esac 1052 eval enable_$ac_useropt=\$ac_optarg ;; 1053 1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1056 | --exec | --exe | --ex) 1057 ac_prev=exec_prefix ;; 1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1060 | --exec=* | --exe=* | --ex=*) 1061 exec_prefix=$ac_optarg ;; 1062 1063 -gas | --gas | --ga | --g) 1064 # Obsolete; use --with-gas. 1065 with_gas=yes ;; 1066 1067 -help | --help | --hel | --he | -h) 1068 ac_init_help=long ;; 1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1070 ac_init_help=recursive ;; 1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1072 ac_init_help=short ;; 1073 1074 -host | --host | --hos | --ho) 1075 ac_prev=host_alias ;; 1076 -host=* | --host=* | --hos=* | --ho=*) 1077 host_alias=$ac_optarg ;; 1078 1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1080 ac_prev=htmldir ;; 1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1082 | --ht=*) 1083 htmldir=$ac_optarg ;; 1084 1085 -includedir | --includedir | --includedi | --included | --include \ 1086 | --includ | --inclu | --incl | --inc) 1087 ac_prev=includedir ;; 1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1089 | --includ=* | --inclu=* | --incl=* | --inc=*) 1090 includedir=$ac_optarg ;; 1091 1092 -infodir | --infodir | --infodi | --infod | --info | --inf) 1093 ac_prev=infodir ;; 1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1095 infodir=$ac_optarg ;; 1096 1097 -libdir | --libdir | --libdi | --libd) 1098 ac_prev=libdir ;; 1099 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1100 libdir=$ac_optarg ;; 1101 1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1103 | --libexe | --libex | --libe) 1104 ac_prev=libexecdir ;; 1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1106 | --libexe=* | --libex=* | --libe=*) 1107 libexecdir=$ac_optarg ;; 1108 1109 -localedir | --localedir | --localedi | --localed | --locale) 1110 ac_prev=localedir ;; 1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1112 localedir=$ac_optarg ;; 1113 1114 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1115 | --localstate | --localstat | --localsta | --localst | --locals) 1116 ac_prev=localstatedir ;; 1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1119 localstatedir=$ac_optarg ;; 1120 1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1122 ac_prev=mandir ;; 1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1124 mandir=$ac_optarg ;; 1125 1126 -nfp | --nfp | --nf) 1127 # Obsolete; use --without-fp. 1128 with_fp=no ;; 1129 1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1131 | --no-cr | --no-c | -n) 1132 no_create=yes ;; 1133 1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1136 no_recursion=yes ;; 1137 1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1140 | --oldin | --oldi | --old | --ol | --o) 1141 ac_prev=oldincludedir ;; 1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1145 oldincludedir=$ac_optarg ;; 1146 1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1148 ac_prev=prefix ;; 1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1150 prefix=$ac_optarg ;; 1151 1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1153 | --program-pre | --program-pr | --program-p) 1154 ac_prev=program_prefix ;; 1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1157 program_prefix=$ac_optarg ;; 1158 1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1160 | --program-suf | --program-su | --program-s) 1161 ac_prev=program_suffix ;; 1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1164 program_suffix=$ac_optarg ;; 1165 1166 -program-transform-name | --program-transform-name \ 1167 | --program-transform-nam | --program-transform-na \ 1168 | --program-transform-n | --program-transform- \ 1169 | --program-transform | --program-transfor \ 1170 | --program-transfo | --program-transf \ 1171 | --program-trans | --program-tran \ 1172 | --progr-tra | --program-tr | --program-t) 1173 ac_prev=program_transform_name ;; 1174 -program-transform-name=* | --program-transform-name=* \ 1175 | --program-transform-nam=* | --program-transform-na=* \ 1176 | --program-transform-n=* | --program-transform-=* \ 1177 | --program-transform=* | --program-transfor=* \ 1178 | --program-transfo=* | --program-transf=* \ 1179 | --program-trans=* | --program-tran=* \ 1180 | --progr-tra=* | --program-tr=* | --program-t=*) 1181 program_transform_name=$ac_optarg ;; 1182 1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1184 ac_prev=pdfdir ;; 1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1186 pdfdir=$ac_optarg ;; 1187 1188 -psdir | --psdir | --psdi | --psd | --ps) 1189 ac_prev=psdir ;; 1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1191 psdir=$ac_optarg ;; 1192 1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1194 | -silent | --silent | --silen | --sile | --sil) 1195 silent=yes ;; 1196 1197 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1198 | --runstate | --runstat | --runsta | --runst | --runs \ 1199 | --run | --ru | --r) 1200 ac_prev=runstatedir ;; 1201 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1202 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1203 | --run=* | --ru=* | --r=*) 1204 runstatedir=$ac_optarg ;; 1205 1206 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1207 ac_prev=sbindir ;; 1208 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1209 | --sbi=* | --sb=*) 1210 sbindir=$ac_optarg ;; 1211 1212 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1213 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1214 | --sharedst | --shareds | --shared | --share | --shar \ 1215 | --sha | --sh) 1216 ac_prev=sharedstatedir ;; 1217 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1218 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1219 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1220 | --sha=* | --sh=*) 1221 sharedstatedir=$ac_optarg ;; 1222 1223 -site | --site | --sit) 1224 ac_prev=site ;; 1225 -site=* | --site=* | --sit=*) 1226 site=$ac_optarg ;; 1227 1228 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1229 ac_prev=srcdir ;; 1230 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1231 srcdir=$ac_optarg ;; 1232 1233 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1234 | --syscon | --sysco | --sysc | --sys | --sy) 1235 ac_prev=sysconfdir ;; 1236 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1237 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1238 sysconfdir=$ac_optarg ;; 1239 1240 -target | --target | --targe | --targ | --tar | --ta | --t) 1241 ac_prev=target_alias ;; 1242 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1243 target_alias=$ac_optarg ;; 1244 1245 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1246 verbose=yes ;; 1247 1248 -version | --version | --versio | --versi | --vers | -V) 1249 ac_init_version=: ;; 1250 1251 -with-* | --with-*) 1252 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1253 # Reject names that are not valid shell variable names. 1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1255 as_fn_error $? "invalid package name: \`$ac_useropt'" 1256 ac_useropt_orig=$ac_useropt 1257 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1258 case $ac_user_opts in 1259 *" 1260"with_$ac_useropt" 1261"*) ;; 1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1263 ac_unrecognized_sep=', ';; 1264 esac 1265 eval with_$ac_useropt=\$ac_optarg ;; 1266 1267 -without-* | --without-*) 1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1269 # Reject names that are not valid shell variable names. 1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1271 as_fn_error $? "invalid package name: \`$ac_useropt'" 1272 ac_useropt_orig=$ac_useropt 1273 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1274 case $ac_user_opts in 1275 *" 1276"with_$ac_useropt" 1277"*) ;; 1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1279 ac_unrecognized_sep=', ';; 1280 esac 1281 eval with_$ac_useropt=no ;; 1282 1283 --x) 1284 # Obsolete; use --with-x. 1285 with_x=yes ;; 1286 1287 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1288 | --x-incl | --x-inc | --x-in | --x-i) 1289 ac_prev=x_includes ;; 1290 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1291 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1292 x_includes=$ac_optarg ;; 1293 1294 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1295 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1296 ac_prev=x_libraries ;; 1297 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1298 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1299 x_libraries=$ac_optarg ;; 1300 1301 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1302Try \`$0 --help' for more information" 1303 ;; 1304 1305 *=*) 1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1307 # Reject names that are not valid shell variable names. 1308 case $ac_envvar in #( 1309 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1310 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1311 esac 1312 eval $ac_envvar=\$ac_optarg 1313 export $ac_envvar ;; 1314 1315 *) 1316 # FIXME: should be removed in autoconf 3.0. 1317 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1319 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1321 ;; 1322 1323 esac 1324done 1325 1326if test -n "$ac_prev"; then 1327 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1328 as_fn_error $? "missing argument to $ac_option" 1329fi 1330 1331if test -n "$ac_unrecognized_opts"; then 1332 case $enable_option_checking in 1333 no) ;; 1334 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1335 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1336 esac 1337fi 1338 1339# Check all directory arguments for consistency. 1340for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1341 datadir sysconfdir sharedstatedir localstatedir includedir \ 1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1343 libdir localedir mandir runstatedir 1344do 1345 eval ac_val=\$$ac_var 1346 # Remove trailing slashes. 1347 case $ac_val in 1348 */ ) 1349 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1350 eval $ac_var=\$ac_val;; 1351 esac 1352 # Be sure to have absolute directory names. 1353 case $ac_val in 1354 [\\/$]* | ?:[\\/]* ) continue;; 1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1356 esac 1357 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1358done 1359 1360# There might be people who depend on the old broken behavior: `$host' 1361# used to hold the argument of --host etc. 1362# FIXME: To remove some day. 1363build=$build_alias 1364host=$host_alias 1365target=$target_alias 1366 1367# FIXME: To remove some day. 1368if test "x$host_alias" != x; then 1369 if test "x$build_alias" = x; then 1370 cross_compiling=maybe 1371 elif test "x$build_alias" != "x$host_alias"; then 1372 cross_compiling=yes 1373 fi 1374fi 1375 1376ac_tool_prefix= 1377test -n "$host_alias" && ac_tool_prefix=$host_alias- 1378 1379test "$silent" = yes && exec 6>/dev/null 1380 1381 1382ac_pwd=`pwd` && test -n "$ac_pwd" && 1383ac_ls_di=`ls -di .` && 1384ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1385 as_fn_error $? "working directory cannot be determined" 1386test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1387 as_fn_error $? "pwd does not report name of working directory" 1388 1389 1390# Find the source files, if location was not specified. 1391if test -z "$srcdir"; then 1392 ac_srcdir_defaulted=yes 1393 # Try the directory containing this script, then the parent directory. 1394 ac_confdir=`$as_dirname -- "$as_myself" || 1395$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1396 X"$as_myself" : 'X\(//\)[^/]' \| \ 1397 X"$as_myself" : 'X\(//\)$' \| \ 1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1399printf "%s\n" X"$as_myself" | 1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1401 s//\1/ 1402 q 1403 } 1404 /^X\(\/\/\)[^/].*/{ 1405 s//\1/ 1406 q 1407 } 1408 /^X\(\/\/\)$/{ 1409 s//\1/ 1410 q 1411 } 1412 /^X\(\/\).*/{ 1413 s//\1/ 1414 q 1415 } 1416 s/.*/./; q'` 1417 srcdir=$ac_confdir 1418 if test ! -r "$srcdir/$ac_unique_file"; then 1419 srcdir=.. 1420 fi 1421else 1422 ac_srcdir_defaulted=no 1423fi 1424if test ! -r "$srcdir/$ac_unique_file"; then 1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1426 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1427fi 1428ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1429ac_abs_confdir=`( 1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1431 pwd)` 1432# When building in place, set srcdir=. 1433if test "$ac_abs_confdir" = "$ac_pwd"; then 1434 srcdir=. 1435fi 1436# Remove unnecessary trailing slashes from srcdir. 1437# Double slashes in file names in object file debugging info 1438# mess up M-x gdb in Emacs. 1439case $srcdir in 1440*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1441esac 1442for ac_var in $ac_precious_vars; do 1443 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1444 eval ac_env_${ac_var}_value=\$${ac_var} 1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1446 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1447done 1448 1449# 1450# Report the --help message. 1451# 1452if test "$ac_init_help" = "long"; then 1453 # Omit some internal or obsolete options to make the list less imposing. 1454 # This message is too long to be a string in the A/UX 3.1 sh. 1455 cat <<_ACEOF 1456\`configure' configures PCRE2 10.40 to adapt to many kinds of systems. 1457 1458Usage: $0 [OPTION]... [VAR=VALUE]... 1459 1460To assign environment variables (e.g., CC, CFLAGS...), specify them as 1461VAR=VALUE. See below for descriptions of some of the useful variables. 1462 1463Defaults for the options are specified in brackets. 1464 1465Configuration: 1466 -h, --help display this help and exit 1467 --help=short display options specific to this package 1468 --help=recursive display the short help of all the included packages 1469 -V, --version display version information and exit 1470 -q, --quiet, --silent do not print \`checking ...' messages 1471 --cache-file=FILE cache test results in FILE [disabled] 1472 -C, --config-cache alias for \`--cache-file=config.cache' 1473 -n, --no-create do not create output files 1474 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1475 1476Installation directories: 1477 --prefix=PREFIX install architecture-independent files in PREFIX 1478 [$ac_default_prefix] 1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1480 [PREFIX] 1481 1482By default, \`make install' will install all the files in 1483\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1484an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1485for instance \`--prefix=\$HOME'. 1486 1487For better control, use the options below. 1488 1489Fine tuning of the installation directories: 1490 --bindir=DIR user executables [EPREFIX/bin] 1491 --sbindir=DIR system admin executables [EPREFIX/sbin] 1492 --libexecdir=DIR program executables [EPREFIX/libexec] 1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1496 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1497 --libdir=DIR object code libraries [EPREFIX/lib] 1498 --includedir=DIR C header files [PREFIX/include] 1499 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1500 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1501 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1502 --infodir=DIR info documentation [DATAROOTDIR/info] 1503 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1504 --mandir=DIR man documentation [DATAROOTDIR/man] 1505 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre2] 1506 --htmldir=DIR html documentation [DOCDIR] 1507 --dvidir=DIR dvi documentation [DOCDIR] 1508 --pdfdir=DIR pdf documentation [DOCDIR] 1509 --psdir=DIR ps documentation [DOCDIR] 1510_ACEOF 1511 1512 cat <<\_ACEOF 1513 1514Program names: 1515 --program-prefix=PREFIX prepend PREFIX to installed program names 1516 --program-suffix=SUFFIX append SUFFIX to installed program names 1517 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1518 1519System types: 1520 --build=BUILD configure for building on BUILD [guessed] 1521 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1522_ACEOF 1523fi 1524 1525if test -n "$ac_init_help"; then 1526 case $ac_init_help in 1527 short | recursive ) echo "Configuration of PCRE2 10.40:";; 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 --enable-silent-rules less verbose build output (undo: "make V=1") 1536 --disable-silent-rules verbose build output (undo: "make V=0") 1537 --enable-dependency-tracking 1538 do not reject slow dependency extractors 1539 --disable-dependency-tracking 1540 speeds up one-time build 1541 --enable-shared[=PKGS] build shared libraries [default=yes] 1542 --enable-static[=PKGS] build static libraries [default=yes] 1543 --enable-fast-install[=PKGS] 1544 optimize for fast installation [default=yes] 1545 --disable-libtool-lock avoid locking (might break parallel builds) 1546 1547 --disable-pcre2-8 disable 8 bit character support 1548 --enable-pcre2-16 enable 16 bit character support 1549 --enable-pcre2-32 enable 32 bit character support 1550 --enable-debug enable debugging code 1551 --enable-jit enable Just-In-Time compiling support 1552 --enable-jit-sealloc enable SELinux compatible execmem allocator in JIT 1553 (experimental) 1554 --disable-pcre2grep-jit disable JIT support in pcre2grep 1555 --disable-pcre2grep-callout 1556 disable callout script support in pcre2grep 1557 --disable-pcre2grep-callout-fork 1558 disable callout script fork support in pcre2grep 1559 --enable-rebuild-chartables 1560 rebuild character tables in current locale 1561 --disable-unicode disable Unicode support 1562 --enable-newline-is-cr use CR as newline character 1563 --enable-newline-is-lf use LF as newline character (default) 1564 --enable-newline-is-crlf 1565 use CRLF as newline sequence 1566 --enable-newline-is-anycrlf 1567 use CR, LF, or CRLF as newline sequence 1568 --enable-newline-is-any use any valid Unicode newline sequence 1569 --enable-newline-is-nul use NUL (binary zero) as newline character 1570 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default 1571 --enable-never-backslash-C 1572 use of \C causes an error 1573 --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible 1574 with --enable-utf; use only in (uncommon) EBCDIC 1575 environments; it implies --enable-rebuild-chartables 1576 --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it 1577 implies --enable-ebcdic 1578 --enable-pcre2grep-libz link pcre2grep with libz to handle .gz files 1579 --enable-pcre2grep-libbz2 1580 link pcre2grep with libbz2 to handle .bz2 files 1581 --enable-pcre2test-libedit 1582 link pcre2test with libedit 1583 --enable-pcre2test-libreadline 1584 link pcre2test with libreadline 1585 --enable-valgrind enable valgrind support 1586 --enable-coverage enable code coverage reports using gcov 1587 --enable-fuzz-support enable fuzzer support 1588 --disable-percent-zt disable the use of z and t formatting modifiers 1589 1590Optional Packages: 1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1593 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1594 both] 1595 --with-aix-soname=aix|svr4|both 1596 shared library versioning (aka "SONAME") variant to 1597 provide on AIX, [default=aix]. 1598 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1599 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1600 compiler's sysroot if not specified). 1601 --with-pcre2grep-bufsize=N 1602 pcre2grep initial buffer size (default=20480, 1603 minimum=8192) 1604 --with-pcre2grep-max-bufsize=N 1605 pcre2grep maximum buffer size (default=1048576, 1606 minimum=8192) 1607 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2) 1608 --with-parens-nest-limit=N 1609 nested parentheses limit (default=250) 1610 --with-heap-limit=N default limit on heap memory (kibibytes, 1611 default=20000000) 1612 --with-match-limit=N default limit on internal looping (default=10000000) 1613 --with-match-limit-depth=N 1614 default limit on match tree depth 1615 (default=MATCH_LIMIT) 1616 1617 1618Some influential environment variables: 1619 CC C compiler command 1620 CFLAGS C compiler flags 1621 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1622 nonstandard directory <lib dir> 1623 LIBS libraries to pass to the linker, e.g. -l<library> 1624 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1625 you have headers in a nonstandard directory <include dir> 1626 LT_SYS_LIBRARY_PATH 1627 User-defined run-time library search path. 1628 PKG_CONFIG path to pkg-config utility 1629 PKG_CONFIG_PATH 1630 directories to add to pkg-config's search path 1631 PKG_CONFIG_LIBDIR 1632 path overriding pkg-config's built-in search path 1633 VALGRIND_CFLAGS 1634 C compiler flags for VALGRIND, overriding pkg-config 1635 VALGRIND_LIBS 1636 linker flags for VALGRIND, overriding pkg-config 1637 LCOV the ltp lcov program 1638 GENHTML the ltp genhtml program 1639 1640Use these variables to override the choices made by `configure' or to help 1641it to find libraries and programs with nonstandard names/locations. 1642 1643Report bugs to the package provider. 1644_ACEOF 1645ac_status=$? 1646fi 1647 1648if test "$ac_init_help" = "recursive"; then 1649 # If there are subdirs, report their specific --help. 1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1651 test -d "$ac_dir" || 1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1653 continue 1654 ac_builddir=. 1655 1656case "$ac_dir" in 1657.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1658*) 1659 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1660 # A ".." for each directory in $ac_dir_suffix. 1661 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1662 case $ac_top_builddir_sub in 1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1665 esac ;; 1666esac 1667ac_abs_top_builddir=$ac_pwd 1668ac_abs_builddir=$ac_pwd$ac_dir_suffix 1669# for backward compatibility: 1670ac_top_builddir=$ac_top_build_prefix 1671 1672case $srcdir in 1673 .) # We are building in place. 1674 ac_srcdir=. 1675 ac_top_srcdir=$ac_top_builddir_sub 1676 ac_abs_top_srcdir=$ac_pwd ;; 1677 [\\/]* | ?:[\\/]* ) # Absolute name. 1678 ac_srcdir=$srcdir$ac_dir_suffix; 1679 ac_top_srcdir=$srcdir 1680 ac_abs_top_srcdir=$srcdir ;; 1681 *) # Relative name. 1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1683 ac_top_srcdir=$ac_top_build_prefix$srcdir 1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1685esac 1686ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1687 1688 cd "$ac_dir" || { ac_status=$?; continue; } 1689 # Check for configure.gnu first; this name is used for a wrapper for 1690 # Metaconfig's "Configure" on case-insensitive file systems. 1691 if test -f "$ac_srcdir/configure.gnu"; then 1692 echo && 1693 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1694 elif test -f "$ac_srcdir/configure"; then 1695 echo && 1696 $SHELL "$ac_srcdir/configure" --help=recursive 1697 else 1698 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1699 fi || ac_status=$? 1700 cd "$ac_pwd" || { ac_status=$?; break; } 1701 done 1702fi 1703 1704test -n "$ac_init_help" && exit $ac_status 1705if $ac_init_version; then 1706 cat <<\_ACEOF 1707PCRE2 configure 10.40 1708generated by GNU Autoconf 2.71 1709 1710Copyright (C) 2021 Free Software Foundation, Inc. 1711This configure script is free software; the Free Software Foundation 1712gives unlimited permission to copy, distribute and modify it. 1713_ACEOF 1714 exit 1715fi 1716 1717## ------------------------ ## 1718## Autoconf initialization. ## 1719## ------------------------ ## 1720 1721# ac_fn_c_try_compile LINENO 1722# -------------------------- 1723# Try to compile conftest.$ac_ext, and return whether this succeeded. 1724ac_fn_c_try_compile () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 rm -f conftest.$ac_objext conftest.beam 1728 if { { ac_try="$ac_compile" 1729case "(($ac_try" in 1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1731 *) ac_try_echo=$ac_try;; 1732esac 1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1734printf "%s\n" "$ac_try_echo"; } >&5 1735 (eval "$ac_compile") 2>conftest.err 1736 ac_status=$? 1737 if test -s conftest.err; then 1738 grep -v '^ *+' conftest.err >conftest.er1 1739 cat conftest.er1 >&5 1740 mv -f conftest.er1 conftest.err 1741 fi 1742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1743 test $ac_status = 0; } && { 1744 test -z "$ac_c_werror_flag" || 1745 test ! -s conftest.err 1746 } && test -s conftest.$ac_objext 1747then : 1748 ac_retval=0 1749else $as_nop 1750 printf "%s\n" "$as_me: failed program was:" >&5 1751sed 's/^/| /' conftest.$ac_ext >&5 1752 1753 ac_retval=1 1754fi 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1756 as_fn_set_status $ac_retval 1757 1758} # ac_fn_c_try_compile 1759 1760# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1761# ------------------------------------------------------- 1762# Tests whether HEADER exists and can be compiled using the include files in 1763# INCLUDES, setting the cache variable VAR accordingly. 1764ac_fn_c_check_header_compile () 1765{ 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1768printf %s "checking for $2... " >&6; } 1769if eval test \${$3+y} 1770then : 1771 printf %s "(cached) " >&6 1772else $as_nop 1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1774/* end confdefs.h. */ 1775$4 1776#include <$2> 1777_ACEOF 1778if ac_fn_c_try_compile "$LINENO" 1779then : 1780 eval "$3=yes" 1781else $as_nop 1782 eval "$3=no" 1783fi 1784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1785fi 1786eval ac_res=\$$3 1787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1788printf "%s\n" "$ac_res" >&6; } 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 1791} # ac_fn_c_check_header_compile 1792 1793# ac_fn_c_find_intX_t LINENO BITS VAR 1794# ----------------------------------- 1795# Finds a signed integer type with width BITS, setting cache variable VAR 1796# accordingly. 1797ac_fn_c_find_intX_t () 1798{ 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1801printf %s "checking for int$2_t... " >&6; } 1802if eval test \${$3+y} 1803then : 1804 printf %s "(cached) " >&6 1805else $as_nop 1806 eval "$3=no" 1807 # Order is important - never check a type that is potentially smaller 1808 # than half of the expected target width. 1809 for ac_type in int$2_t 'int' 'long int' \ 1810 'long long int' 'short int' 'signed char'; do 1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1812/* end confdefs.h. */ 1813$ac_includes_default 1814 enum { N = $2 / 2 - 1 }; 1815int 1816main (void) 1817{ 1818static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 1819test_array [0] = 0; 1820return test_array [0]; 1821 1822 ; 1823 return 0; 1824} 1825_ACEOF 1826if ac_fn_c_try_compile "$LINENO" 1827then : 1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1829/* end confdefs.h. */ 1830$ac_includes_default 1831 enum { N = $2 / 2 - 1 }; 1832int 1833main (void) 1834{ 1835static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1836 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1837test_array [0] = 0; 1838return test_array [0]; 1839 1840 ; 1841 return 0; 1842} 1843_ACEOF 1844if ac_fn_c_try_compile "$LINENO" 1845then : 1846 1847else $as_nop 1848 case $ac_type in #( 1849 int$2_t) : 1850 eval "$3=yes" ;; #( 1851 *) : 1852 eval "$3=\$ac_type" ;; 1853esac 1854fi 1855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1856fi 1857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1858 if eval test \"x\$"$3"\" = x"no" 1859then : 1860 1861else $as_nop 1862 break 1863fi 1864 done 1865fi 1866eval ac_res=\$$3 1867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1868printf "%s\n" "$ac_res" >&6; } 1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1870 1871} # ac_fn_c_find_intX_t 1872 1873# ac_fn_c_try_link LINENO 1874# ----------------------- 1875# Try to link conftest.$ac_ext, and return whether this succeeded. 1876ac_fn_c_try_link () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1880 if { { ac_try="$ac_link" 1881case "(($ac_try" in 1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1883 *) ac_try_echo=$ac_try;; 1884esac 1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1886printf "%s\n" "$ac_try_echo"; } >&5 1887 (eval "$ac_link") 2>conftest.err 1888 ac_status=$? 1889 if test -s conftest.err; then 1890 grep -v '^ *+' conftest.err >conftest.er1 1891 cat conftest.er1 >&5 1892 mv -f conftest.er1 conftest.err 1893 fi 1894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1895 test $ac_status = 0; } && { 1896 test -z "$ac_c_werror_flag" || 1897 test ! -s conftest.err 1898 } && test -s conftest$ac_exeext && { 1899 test "$cross_compiling" = yes || 1900 test -x conftest$ac_exeext 1901 } 1902then : 1903 ac_retval=0 1904else $as_nop 1905 printf "%s\n" "$as_me: failed program was:" >&5 1906sed 's/^/| /' conftest.$ac_ext >&5 1907 1908 ac_retval=1 1909fi 1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1912 # interfere with the next link command; also delete a directory that is 1913 # left behind by Apple's compiler. We do this before executing the actions. 1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1916 as_fn_set_status $ac_retval 1917 1918} # ac_fn_c_try_link 1919 1920# ac_fn_c_check_func LINENO FUNC VAR 1921# ---------------------------------- 1922# Tests whether FUNC exists, setting the cache variable VAR accordingly 1923ac_fn_c_check_func () 1924{ 1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1927printf %s "checking for $2... " >&6; } 1928if eval test \${$3+y} 1929then : 1930 printf %s "(cached) " >&6 1931else $as_nop 1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933/* end confdefs.h. */ 1934/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1935 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1936#define $2 innocuous_$2 1937 1938/* System header to define __stub macros and hopefully few prototypes, 1939 which can conflict with char $2 (); below. */ 1940 1941#include <limits.h> 1942#undef $2 1943 1944/* Override any GCC internal prototype to avoid an error. 1945 Use char because int might match the return type of a GCC 1946 builtin and then its argument prototype would still apply. */ 1947#ifdef __cplusplus 1948extern "C" 1949#endif 1950char $2 (); 1951/* The GNU C library defines this for functions which it implements 1952 to always fail with ENOSYS. Some functions are actually named 1953 something starting with __ and the normal name is an alias. */ 1954#if defined __stub_$2 || defined __stub___$2 1955choke me 1956#endif 1957 1958int 1959main (void) 1960{ 1961return $2 (); 1962 ; 1963 return 0; 1964} 1965_ACEOF 1966if ac_fn_c_try_link "$LINENO" 1967then : 1968 eval "$3=yes" 1969else $as_nop 1970 eval "$3=no" 1971fi 1972rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1973 conftest$ac_exeext conftest.$ac_ext 1974fi 1975eval ac_res=\$$3 1976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1977printf "%s\n" "$ac_res" >&6; } 1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1979 1980} # ac_fn_c_check_func 1981 1982# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1983# ------------------------------------------- 1984# Tests whether TYPE exists after having included INCLUDES, setting cache 1985# variable VAR accordingly. 1986ac_fn_c_check_type () 1987{ 1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1990printf %s "checking for $2... " >&6; } 1991if eval test \${$3+y} 1992then : 1993 printf %s "(cached) " >&6 1994else $as_nop 1995 eval "$3=no" 1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998$4 1999int 2000main (void) 2001{ 2002if (sizeof ($2)) 2003 return 0; 2004 ; 2005 return 0; 2006} 2007_ACEOF 2008if ac_fn_c_try_compile "$LINENO" 2009then : 2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012$4 2013int 2014main (void) 2015{ 2016if (sizeof (($2))) 2017 return 0; 2018 ; 2019 return 0; 2020} 2021_ACEOF 2022if ac_fn_c_try_compile "$LINENO" 2023then : 2024 2025else $as_nop 2026 eval "$3=yes" 2027fi 2028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2029fi 2030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2031fi 2032eval ac_res=\$$3 2033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2034printf "%s\n" "$ac_res" >&6; } 2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2036 2037} # ac_fn_c_check_type 2038ac_configure_args_raw= 2039for ac_arg 2040do 2041 case $ac_arg in 2042 *\'*) 2043 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2044 esac 2045 as_fn_append ac_configure_args_raw " '$ac_arg'" 2046done 2047 2048case $ac_configure_args_raw in 2049 *$as_nl*) 2050 ac_safe_unquote= ;; 2051 *) 2052 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2053 ac_unsafe_a="$ac_unsafe_z#~" 2054 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2055 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2056esac 2057 2058cat >config.log <<_ACEOF 2059This file contains any messages produced by compilers while 2060running configure, to aid debugging if configure makes a mistake. 2061 2062It was created by PCRE2 $as_me 10.40, which was 2063generated by GNU Autoconf 2.71. Invocation command line was 2064 2065 $ $0$ac_configure_args_raw 2066 2067_ACEOF 2068exec 5>>config.log 2069{ 2070cat <<_ASUNAME 2071## --------- ## 2072## Platform. ## 2073## --------- ## 2074 2075hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2076uname -m = `(uname -m) 2>/dev/null || echo unknown` 2077uname -r = `(uname -r) 2>/dev/null || echo unknown` 2078uname -s = `(uname -s) 2>/dev/null || echo unknown` 2079uname -v = `(uname -v) 2>/dev/null || echo unknown` 2080 2081/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2082/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2083 2084/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2085/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2086/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2087/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2088/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2089/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2090/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2091 2092_ASUNAME 2093 2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2095for as_dir in $PATH 2096do 2097 IFS=$as_save_IFS 2098 case $as_dir in #((( 2099 '') as_dir=./ ;; 2100 */) ;; 2101 *) as_dir=$as_dir/ ;; 2102 esac 2103 printf "%s\n" "PATH: $as_dir" 2104 done 2105IFS=$as_save_IFS 2106 2107} >&5 2108 2109cat >&5 <<_ACEOF 2110 2111 2112## ----------- ## 2113## Core tests. ## 2114## ----------- ## 2115 2116_ACEOF 2117 2118 2119# Keep a trace of the command line. 2120# Strip out --no-create and --no-recursion so they do not pile up. 2121# Strip out --silent because we don't want to record it for future runs. 2122# Also quote any args containing shell meta-characters. 2123# Make two passes to allow for proper duplicate-argument suppression. 2124ac_configure_args= 2125ac_configure_args0= 2126ac_configure_args1= 2127ac_must_keep_next=false 2128for ac_pass in 1 2 2129do 2130 for ac_arg 2131 do 2132 case $ac_arg in 2133 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2135 | -silent | --silent | --silen | --sile | --sil) 2136 continue ;; 2137 *\'*) 2138 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2139 esac 2140 case $ac_pass in 2141 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2142 2) 2143 as_fn_append ac_configure_args1 " '$ac_arg'" 2144 if test $ac_must_keep_next = true; then 2145 ac_must_keep_next=false # Got value, back to normal. 2146 else 2147 case $ac_arg in 2148 *=* | --config-cache | -C | -disable-* | --disable-* \ 2149 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2150 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2151 | -with-* | --with-* | -without-* | --without-* | --x) 2152 case "$ac_configure_args0 " in 2153 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2154 esac 2155 ;; 2156 -* ) ac_must_keep_next=true ;; 2157 esac 2158 fi 2159 as_fn_append ac_configure_args " '$ac_arg'" 2160 ;; 2161 esac 2162 done 2163done 2164{ ac_configure_args0=; unset ac_configure_args0;} 2165{ ac_configure_args1=; unset ac_configure_args1;} 2166 2167# When interrupted or exit'd, cleanup temporary files, and complete 2168# config.log. We remove comments because anyway the quotes in there 2169# would cause problems or look ugly. 2170# WARNING: Use '\'' to represent an apostrophe within the trap. 2171# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2172trap 'exit_status=$? 2173 # Sanitize IFS. 2174 IFS=" "" $as_nl" 2175 # Save into config.log some information that might help in debugging. 2176 { 2177 echo 2178 2179 printf "%s\n" "## ---------------- ## 2180## Cache variables. ## 2181## ---------------- ##" 2182 echo 2183 # The following way of writing the cache mishandles newlines in values, 2184( 2185 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2186 eval ac_val=\$$ac_var 2187 case $ac_val in #( 2188 *${as_nl}*) 2189 case $ac_var in #( 2190 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2191printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2192 esac 2193 case $ac_var in #( 2194 _ | IFS | as_nl) ;; #( 2195 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2196 *) { eval $ac_var=; unset $ac_var;} ;; 2197 esac ;; 2198 esac 2199 done 2200 (set) 2>&1 | 2201 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2202 *${as_nl}ac_space=\ *) 2203 sed -n \ 2204 "s/'\''/'\''\\\\'\'''\''/g; 2205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2206 ;; #( 2207 *) 2208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2209 ;; 2210 esac | 2211 sort 2212) 2213 echo 2214 2215 printf "%s\n" "## ----------------- ## 2216## Output variables. ## 2217## ----------------- ##" 2218 echo 2219 for ac_var in $ac_subst_vars 2220 do 2221 eval ac_val=\$$ac_var 2222 case $ac_val in 2223 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2224 esac 2225 printf "%s\n" "$ac_var='\''$ac_val'\''" 2226 done | sort 2227 echo 2228 2229 if test -n "$ac_subst_files"; then 2230 printf "%s\n" "## ------------------- ## 2231## File substitutions. ## 2232## ------------------- ##" 2233 echo 2234 for ac_var in $ac_subst_files 2235 do 2236 eval ac_val=\$$ac_var 2237 case $ac_val in 2238 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2239 esac 2240 printf "%s\n" "$ac_var='\''$ac_val'\''" 2241 done | sort 2242 echo 2243 fi 2244 2245 if test -s confdefs.h; then 2246 printf "%s\n" "## ----------- ## 2247## confdefs.h. ## 2248## ----------- ##" 2249 echo 2250 cat confdefs.h 2251 echo 2252 fi 2253 test "$ac_signal" != 0 && 2254 printf "%s\n" "$as_me: caught signal $ac_signal" 2255 printf "%s\n" "$as_me: exit $exit_status" 2256 } >&5 2257 rm -f core *.core core.conftest.* && 2258 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2259 exit $exit_status 2260' 0 2261for ac_signal in 1 2 13 15; do 2262 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2263done 2264ac_signal=0 2265 2266# confdefs.h avoids OS command line length limits that DEFS can exceed. 2267rm -f -r conftest* confdefs.h 2268 2269printf "%s\n" "/* confdefs.h */" > confdefs.h 2270 2271# Predefined preprocessor variables. 2272 2273printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2274 2275printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2276 2277printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2278 2279printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2280 2281printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2282 2283printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2284 2285 2286# Let the site file select an alternate cache file if it wants to. 2287# Prefer an explicitly selected file to automatically selected ones. 2288if test -n "$CONFIG_SITE"; then 2289 ac_site_files="$CONFIG_SITE" 2290elif test "x$prefix" != xNONE; then 2291 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2292else 2293 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2294fi 2295 2296for ac_site_file in $ac_site_files 2297do 2298 case $ac_site_file in #( 2299 */*) : 2300 ;; #( 2301 *) : 2302 ac_site_file=./$ac_site_file ;; 2303esac 2304 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2306printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2307 sed 's/^/| /' "$ac_site_file" >&5 2308 . "$ac_site_file" \ 2309 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2310printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2311as_fn_error $? "failed to load site script $ac_site_file 2312See \`config.log' for more details" "$LINENO" 5; } 2313 fi 2314done 2315 2316if test -r "$cache_file"; then 2317 # Some versions of bash will fail to source /dev/null (special files 2318 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2319 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2321printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2322 case $cache_file in 2323 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2324 *) . "./$cache_file";; 2325 esac 2326 fi 2327else 2328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2329printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2330 >$cache_file 2331fi 2332 2333# Test code for whether the C compiler supports C89 (global declarations) 2334ac_c_conftest_c89_globals=' 2335/* Does the compiler advertise C89 conformance? 2336 Do not test the value of __STDC__, because some compilers set it to 0 2337 while being otherwise adequately conformant. */ 2338#if !defined __STDC__ 2339# error "Compiler does not advertise C89 conformance" 2340#endif 2341 2342#include <stddef.h> 2343#include <stdarg.h> 2344struct stat; 2345/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2346struct buf { int x; }; 2347struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2348static char *e (p, i) 2349 char **p; 2350 int i; 2351{ 2352 return p[i]; 2353} 2354static char *f (char * (*g) (char **, int), char **p, ...) 2355{ 2356 char *s; 2357 va_list v; 2358 va_start (v,p); 2359 s = g (p, va_arg (v,int)); 2360 va_end (v); 2361 return s; 2362} 2363 2364/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2365 function prototypes and stuff, but not \xHH hex character constants. 2366 These do not provoke an error unfortunately, instead are silently treated 2367 as an "x". The following induces an error, until -std is added to get 2368 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2369 array size at least. It is necessary to write \x00 == 0 to get something 2370 that is true only with -std. */ 2371int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2372 2373/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2374 inside strings and character constants. */ 2375#define FOO(x) '\''x'\'' 2376int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2377 2378int test (int i, double x); 2379struct s1 {int (*f) (int a);}; 2380struct s2 {int (*f) (double a);}; 2381int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2382 int, int);' 2383 2384# Test code for whether the C compiler supports C89 (body of main). 2385ac_c_conftest_c89_main=' 2386ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2387' 2388 2389# Test code for whether the C compiler supports C99 (global declarations) 2390ac_c_conftest_c99_globals=' 2391// Does the compiler advertise C99 conformance? 2392#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2393# error "Compiler does not advertise C99 conformance" 2394#endif 2395 2396#include <stdbool.h> 2397extern int puts (const char *); 2398extern int printf (const char *, ...); 2399extern int dprintf (int, const char *, ...); 2400extern void *malloc (size_t); 2401 2402// Check varargs macros. These examples are taken from C99 6.10.3.5. 2403// dprintf is used instead of fprintf to avoid needing to declare 2404// FILE and stderr. 2405#define debug(...) dprintf (2, __VA_ARGS__) 2406#define showlist(...) puts (#__VA_ARGS__) 2407#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2408static void 2409test_varargs_macros (void) 2410{ 2411 int x = 1234; 2412 int y = 5678; 2413 debug ("Flag"); 2414 debug ("X = %d\n", x); 2415 showlist (The first, second, and third items.); 2416 report (x>y, "x is %d but y is %d", x, y); 2417} 2418 2419// Check long long types. 2420#define BIG64 18446744073709551615ull 2421#define BIG32 4294967295ul 2422#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2423#if !BIG_OK 2424 #error "your preprocessor is broken" 2425#endif 2426#if BIG_OK 2427#else 2428 #error "your preprocessor is broken" 2429#endif 2430static long long int bignum = -9223372036854775807LL; 2431static unsigned long long int ubignum = BIG64; 2432 2433struct incomplete_array 2434{ 2435 int datasize; 2436 double data[]; 2437}; 2438 2439struct named_init { 2440 int number; 2441 const wchar_t *name; 2442 double average; 2443}; 2444 2445typedef const char *ccp; 2446 2447static inline int 2448test_restrict (ccp restrict text) 2449{ 2450 // See if C++-style comments work. 2451 // Iterate through items via the restricted pointer. 2452 // Also check for declarations in for loops. 2453 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2454 continue; 2455 return 0; 2456} 2457 2458// Check varargs and va_copy. 2459static bool 2460test_varargs (const char *format, ...) 2461{ 2462 va_list args; 2463 va_start (args, format); 2464 va_list args_copy; 2465 va_copy (args_copy, args); 2466 2467 const char *str = ""; 2468 int number = 0; 2469 float fnumber = 0; 2470 2471 while (*format) 2472 { 2473 switch (*format++) 2474 { 2475 case '\''s'\'': // string 2476 str = va_arg (args_copy, const char *); 2477 break; 2478 case '\''d'\'': // int 2479 number = va_arg (args_copy, int); 2480 break; 2481 case '\''f'\'': // float 2482 fnumber = va_arg (args_copy, double); 2483 break; 2484 default: 2485 break; 2486 } 2487 } 2488 va_end (args_copy); 2489 va_end (args); 2490 2491 return *str && number && fnumber; 2492} 2493' 2494 2495# Test code for whether the C compiler supports C99 (body of main). 2496ac_c_conftest_c99_main=' 2497 // Check bool. 2498 _Bool success = false; 2499 success |= (argc != 0); 2500 2501 // Check restrict. 2502 if (test_restrict ("String literal") == 0) 2503 success = true; 2504 char *restrict newvar = "Another string"; 2505 2506 // Check varargs. 2507 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2508 test_varargs_macros (); 2509 2510 // Check flexible array members. 2511 struct incomplete_array *ia = 2512 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2513 ia->datasize = 10; 2514 for (int i = 0; i < ia->datasize; ++i) 2515 ia->data[i] = i * 1.234; 2516 2517 // Check named initializers. 2518 struct named_init ni = { 2519 .number = 34, 2520 .name = L"Test wide string", 2521 .average = 543.34343, 2522 }; 2523 2524 ni.number = 58; 2525 2526 int dynamic_array[ni.number]; 2527 dynamic_array[0] = argv[0][0]; 2528 dynamic_array[ni.number - 1] = 543; 2529 2530 // work around unused variable warnings 2531 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2532 || dynamic_array[ni.number - 1] != 543); 2533' 2534 2535# Test code for whether the C compiler supports C11 (global declarations) 2536ac_c_conftest_c11_globals=' 2537// Does the compiler advertise C11 conformance? 2538#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2539# error "Compiler does not advertise C11 conformance" 2540#endif 2541 2542// Check _Alignas. 2543char _Alignas (double) aligned_as_double; 2544char _Alignas (0) no_special_alignment; 2545extern char aligned_as_int; 2546char _Alignas (0) _Alignas (int) aligned_as_int; 2547 2548// Check _Alignof. 2549enum 2550{ 2551 int_alignment = _Alignof (int), 2552 int_array_alignment = _Alignof (int[100]), 2553 char_alignment = _Alignof (char) 2554}; 2555_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2556 2557// Check _Noreturn. 2558int _Noreturn does_not_return (void) { for (;;) continue; } 2559 2560// Check _Static_assert. 2561struct test_static_assert 2562{ 2563 int x; 2564 _Static_assert (sizeof (int) <= sizeof (long int), 2565 "_Static_assert does not work in struct"); 2566 long int y; 2567}; 2568 2569// Check UTF-8 literals. 2570#define u8 syntax error! 2571char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2572 2573// Check duplicate typedefs. 2574typedef long *long_ptr; 2575typedef long int *long_ptr; 2576typedef long_ptr long_ptr; 2577 2578// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2579struct anonymous 2580{ 2581 union { 2582 struct { int i; int j; }; 2583 struct { int k; long int l; } w; 2584 }; 2585 int m; 2586} v1; 2587' 2588 2589# Test code for whether the C compiler supports C11 (body of main). 2590ac_c_conftest_c11_main=' 2591 _Static_assert ((offsetof (struct anonymous, i) 2592 == offsetof (struct anonymous, w.k)), 2593 "Anonymous union alignment botch"); 2594 v1.i = 2; 2595 v1.w.k = 5; 2596 ok |= v1.i != 5; 2597' 2598 2599# Test code for whether the C compiler supports C11 (complete). 2600ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2601${ac_c_conftest_c99_globals} 2602${ac_c_conftest_c11_globals} 2603 2604int 2605main (int argc, char **argv) 2606{ 2607 int ok = 0; 2608 ${ac_c_conftest_c89_main} 2609 ${ac_c_conftest_c99_main} 2610 ${ac_c_conftest_c11_main} 2611 return ok; 2612} 2613" 2614 2615# Test code for whether the C compiler supports C99 (complete). 2616ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2617${ac_c_conftest_c99_globals} 2618 2619int 2620main (int argc, char **argv) 2621{ 2622 int ok = 0; 2623 ${ac_c_conftest_c89_main} 2624 ${ac_c_conftest_c99_main} 2625 return ok; 2626} 2627" 2628 2629# Test code for whether the C compiler supports C89 (complete). 2630ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2631 2632int 2633main (int argc, char **argv) 2634{ 2635 int ok = 0; 2636 ${ac_c_conftest_c89_main} 2637 return ok; 2638} 2639" 2640 2641as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2642as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2643as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2644as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2645as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2646as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2647as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2648as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2649as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2650as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2651as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2652 2653# Auxiliary files required by this configure script. 2654ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh" 2655 2656# Locations in which to look for auxiliary files. 2657ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2658 2659# Search for a directory containing all of the required auxiliary files, 2660# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2661# If we don't find one directory that contains all the files we need, 2662# we report the set of missing files from the *first* directory in 2663# $ac_aux_dir_candidates and give up. 2664ac_missing_aux_files="" 2665ac_first_candidate=: 2666printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668as_found=false 2669for as_dir in $ac_aux_dir_candidates 2670do 2671 IFS=$as_save_IFS 2672 case $as_dir in #((( 2673 '') as_dir=./ ;; 2674 */) ;; 2675 *) as_dir=$as_dir/ ;; 2676 esac 2677 as_found=: 2678 2679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2680 ac_aux_dir_found=yes 2681 ac_install_sh= 2682 for ac_aux in $ac_aux_files 2683 do 2684 # As a special case, if "install-sh" is required, that requirement 2685 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2686 # and $ac_install_sh is set appropriately for whichever one is found. 2687 if test x"$ac_aux" = x"install-sh" 2688 then 2689 if test -f "${as_dir}install-sh"; then 2690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2691 ac_install_sh="${as_dir}install-sh -c" 2692 elif test -f "${as_dir}install.sh"; then 2693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2694 ac_install_sh="${as_dir}install.sh -c" 2695 elif test -f "${as_dir}shtool"; then 2696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2697 ac_install_sh="${as_dir}shtool install -c" 2698 else 2699 ac_aux_dir_found=no 2700 if $ac_first_candidate; then 2701 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2702 else 2703 break 2704 fi 2705 fi 2706 else 2707 if test -f "${as_dir}${ac_aux}"; then 2708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2709 else 2710 ac_aux_dir_found=no 2711 if $ac_first_candidate; then 2712 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2713 else 2714 break 2715 fi 2716 fi 2717 fi 2718 done 2719 if test "$ac_aux_dir_found" = yes; then 2720 ac_aux_dir="$as_dir" 2721 break 2722 fi 2723 ac_first_candidate=false 2724 2725 as_found=false 2726done 2727IFS=$as_save_IFS 2728if $as_found 2729then : 2730 2731else $as_nop 2732 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2733fi 2734 2735 2736# These three variables are undocumented and unsupported, 2737# and are intended to be withdrawn in a future Autoconf release. 2738# They can cause serious problems if a builder's source tree is in a directory 2739# whose full name contains unusual characters. 2740if test -f "${ac_aux_dir}config.guess"; then 2741 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2742fi 2743if test -f "${ac_aux_dir}config.sub"; then 2744 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2745fi 2746if test -f "$ac_aux_dir/configure"; then 2747 ac_configure="$SHELL ${ac_aux_dir}configure" 2748fi 2749 2750# Check that the precious variables saved in the cache have kept the same 2751# value. 2752ac_cache_corrupted=false 2753for ac_var in $ac_precious_vars; do 2754 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2755 eval ac_new_set=\$ac_env_${ac_var}_set 2756 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2757 eval ac_new_val=\$ac_env_${ac_var}_value 2758 case $ac_old_set,$ac_new_set in 2759 set,) 2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2761printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2762 ac_cache_corrupted=: ;; 2763 ,set) 2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2765printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2766 ac_cache_corrupted=: ;; 2767 ,);; 2768 *) 2769 if test "x$ac_old_val" != "x$ac_new_val"; then 2770 # differences in whitespace do not lead to failure. 2771 ac_old_val_w=`echo x $ac_old_val` 2772 ac_new_val_w=`echo x $ac_new_val` 2773 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2775printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2776 ac_cache_corrupted=: 2777 else 2778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2779printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2780 eval $ac_var=\$ac_old_val 2781 fi 2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2783printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2785printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2786 fi;; 2787 esac 2788 # Pass precious variables to config.status. 2789 if test "$ac_new_set" = set; then 2790 case $ac_new_val in 2791 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2792 *) ac_arg=$ac_var=$ac_new_val ;; 2793 esac 2794 case " $ac_configure_args " in 2795 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2796 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2797 esac 2798 fi 2799done 2800if $ac_cache_corrupted; then 2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2802printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2804printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2805 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2806 and start over" "$LINENO" 5 2807fi 2808## -------------------- ## 2809## Main body of script. ## 2810## -------------------- ## 2811 2812ac_ext=c 2813ac_cpp='$CPP $CPPFLAGS' 2814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2816ac_compiler_gnu=$ac_cv_c_compiler_gnu 2817 2818 2819 2820am__api_version='1.16' 2821 2822 2823 2824 # Find a good install program. We prefer a C program (faster), 2825# so one script is as good as another. But avoid the broken or 2826# incompatible versions: 2827# SysV /etc/install, /usr/sbin/install 2828# SunOS /usr/etc/install 2829# IRIX /sbin/install 2830# AIX /bin/install 2831# AmigaOS /C/install, which installs bootblocks on floppy discs 2832# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2833# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2834# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2835# OS/2's system install, which has a completely different semantic 2836# ./install, which can be erroneously created by make from ./install.sh. 2837# Reject install programs that cannot install multiple files. 2838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2839printf %s "checking for a BSD-compatible install... " >&6; } 2840if test -z "$INSTALL"; then 2841if test ${ac_cv_path_install+y} 2842then : 2843 printf %s "(cached) " >&6 2844else $as_nop 2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2846for as_dir in $PATH 2847do 2848 IFS=$as_save_IFS 2849 case $as_dir in #((( 2850 '') as_dir=./ ;; 2851 */) ;; 2852 *) as_dir=$as_dir/ ;; 2853 esac 2854 # Account for fact that we put trailing slashes in our PATH walk. 2855case $as_dir in #(( 2856 ./ | /[cC]/* | \ 2857 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2858 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2859 /usr/ucb/* ) ;; 2860 *) 2861 # OSF1 and SCO ODT 3.0 have their own names for install. 2862 # Don't use installbsd from OSF since it installs stuff as root 2863 # by default. 2864 for ac_prog in ginstall scoinst install; do 2865 for ac_exec_ext in '' $ac_executable_extensions; do 2866 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2867 if test $ac_prog = install && 2868 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2869 # AIX install. It has an incompatible calling convention. 2870 : 2871 elif test $ac_prog = install && 2872 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2873 # program-specific install script used by HP pwplus--don't use. 2874 : 2875 else 2876 rm -rf conftest.one conftest.two conftest.dir 2877 echo one > conftest.one 2878 echo two > conftest.two 2879 mkdir conftest.dir 2880 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2881 test -s conftest.one && test -s conftest.two && 2882 test -s conftest.dir/conftest.one && 2883 test -s conftest.dir/conftest.two 2884 then 2885 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2886 break 3 2887 fi 2888 fi 2889 fi 2890 done 2891 done 2892 ;; 2893esac 2894 2895 done 2896IFS=$as_save_IFS 2897 2898rm -rf conftest.one conftest.two conftest.dir 2899 2900fi 2901 if test ${ac_cv_path_install+y}; then 2902 INSTALL=$ac_cv_path_install 2903 else 2904 # As a last resort, use the slow shell script. Don't cache a 2905 # value for INSTALL within a source directory, because that will 2906 # break other packages using the cache if that directory is 2907 # removed, or if the value is a relative name. 2908 INSTALL=$ac_install_sh 2909 fi 2910fi 2911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2912printf "%s\n" "$INSTALL" >&6; } 2913 2914# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2915# It thinks the first close brace ends the variable substitution. 2916test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2917 2918test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2919 2920test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2921 2922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2923printf %s "checking whether build environment is sane... " >&6; } 2924# Reject unsafe characters in $srcdir or the absolute working directory 2925# name. Accept space and tab only in the latter. 2926am_lf=' 2927' 2928case `pwd` in 2929 *[\\\"\#\$\&\'\`$am_lf]*) 2930 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2931esac 2932case $srcdir in 2933 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2934 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2935esac 2936 2937# Do 'set' in a subshell so we don't clobber the current shell's 2938# arguments. Must try -L first in case configure is actually a 2939# symlink; some systems play weird games with the mod time of symlinks 2940# (eg FreeBSD returns the mod time of the symlink's containing 2941# directory). 2942if ( 2943 am_has_slept=no 2944 for am_try in 1 2; do 2945 echo "timestamp, slept: $am_has_slept" > conftest.file 2946 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2947 if test "$*" = "X"; then 2948 # -L didn't work. 2949 set X `ls -t "$srcdir/configure" conftest.file` 2950 fi 2951 if test "$*" != "X $srcdir/configure conftest.file" \ 2952 && test "$*" != "X conftest.file $srcdir/configure"; then 2953 2954 # If neither matched, then we have a broken ls. This can happen 2955 # if, for instance, CONFIG_SHELL is bash and it inherits a 2956 # broken ls alias from the environment. This has actually 2957 # happened. Such a system could not be considered "sane". 2958 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2959 alias in your environment" "$LINENO" 5 2960 fi 2961 if test "$2" = conftest.file || test $am_try -eq 2; then 2962 break 2963 fi 2964 # Just in case. 2965 sleep 1 2966 am_has_slept=yes 2967 done 2968 test "$2" = conftest.file 2969 ) 2970then 2971 # Ok. 2972 : 2973else 2974 as_fn_error $? "newly created file is older than distributed files! 2975Check your system clock" "$LINENO" 5 2976fi 2977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2978printf "%s\n" "yes" >&6; } 2979# If we didn't sleep, we still need to ensure time stamps of config.status and 2980# generated files are strictly newer. 2981am_sleep_pid= 2982if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2983 ( sleep 1 ) & 2984 am_sleep_pid=$! 2985fi 2986 2987rm -f conftest.file 2988 2989test "$program_prefix" != NONE && 2990 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2991# Use a double $ so make ignores it. 2992test "$program_suffix" != NONE && 2993 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2994# Double any \ or $. 2995# By default was `s,x,x', remove it if useless. 2996ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2997program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2998 2999 3000# Expand $ac_aux_dir to an absolute path. 3001am_aux_dir=`cd "$ac_aux_dir" && pwd` 3002 3003 3004 if test x"${MISSING+set}" != xset; then 3005 MISSING="\${SHELL} '$am_aux_dir/missing'" 3006fi 3007# Use eval to expand $SHELL 3008if eval "$MISSING --is-lightweight"; then 3009 am_missing_run="$MISSING " 3010else 3011 am_missing_run= 3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3013printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3014fi 3015 3016if test x"${install_sh+set}" != xset; then 3017 case $am_aux_dir in 3018 *\ * | *\ *) 3019 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3020 *) 3021 install_sh="\${SHELL} $am_aux_dir/install-sh" 3022 esac 3023fi 3024 3025# Installed binaries are usually stripped using 'strip' when the user 3026# run "make install-strip". However 'strip' might not be the right 3027# tool to use in cross-compilation environments, therefore Automake 3028# will honor the 'STRIP' environment variable to overrule this program. 3029if test "$cross_compiling" != no; then 3030 if test -n "$ac_tool_prefix"; then 3031 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3032set dummy ${ac_tool_prefix}strip; ac_word=$2 3033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3034printf %s "checking for $ac_word... " >&6; } 3035if test ${ac_cv_prog_STRIP+y} 3036then : 3037 printf %s "(cached) " >&6 3038else $as_nop 3039 if test -n "$STRIP"; then 3040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3041else 3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043for as_dir in $PATH 3044do 3045 IFS=$as_save_IFS 3046 case $as_dir in #((( 3047 '') as_dir=./ ;; 3048 */) ;; 3049 *) as_dir=$as_dir/ ;; 3050 esac 3051 for ac_exec_ext in '' $ac_executable_extensions; do 3052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3053 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3055 break 2 3056 fi 3057done 3058 done 3059IFS=$as_save_IFS 3060 3061fi 3062fi 3063STRIP=$ac_cv_prog_STRIP 3064if test -n "$STRIP"; then 3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3066printf "%s\n" "$STRIP" >&6; } 3067else 3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3069printf "%s\n" "no" >&6; } 3070fi 3071 3072 3073fi 3074if test -z "$ac_cv_prog_STRIP"; then 3075 ac_ct_STRIP=$STRIP 3076 # Extract the first word of "strip", so it can be a program name with args. 3077set dummy strip; ac_word=$2 3078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3079printf %s "checking for $ac_word... " >&6; } 3080if test ${ac_cv_prog_ac_ct_STRIP+y} 3081then : 3082 printf %s "(cached) " >&6 3083else $as_nop 3084 if test -n "$ac_ct_STRIP"; then 3085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3086else 3087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3088for as_dir in $PATH 3089do 3090 IFS=$as_save_IFS 3091 case $as_dir in #((( 3092 '') as_dir=./ ;; 3093 */) ;; 3094 *) as_dir=$as_dir/ ;; 3095 esac 3096 for ac_exec_ext in '' $ac_executable_extensions; do 3097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3098 ac_cv_prog_ac_ct_STRIP="strip" 3099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3100 break 2 3101 fi 3102done 3103 done 3104IFS=$as_save_IFS 3105 3106fi 3107fi 3108ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3109if test -n "$ac_ct_STRIP"; then 3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3111printf "%s\n" "$ac_ct_STRIP" >&6; } 3112else 3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114printf "%s\n" "no" >&6; } 3115fi 3116 3117 if test "x$ac_ct_STRIP" = x; then 3118 STRIP=":" 3119 else 3120 case $cross_compiling:$ac_tool_warned in 3121yes:) 3122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3123printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3124ac_tool_warned=yes ;; 3125esac 3126 STRIP=$ac_ct_STRIP 3127 fi 3128else 3129 STRIP="$ac_cv_prog_STRIP" 3130fi 3131 3132fi 3133INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3134 3135 3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3137printf %s "checking for a race-free mkdir -p... " >&6; } 3138if test -z "$MKDIR_P"; then 3139 if test ${ac_cv_path_mkdir+y} 3140then : 3141 printf %s "(cached) " >&6 3142else $as_nop 3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3144for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3145do 3146 IFS=$as_save_IFS 3147 case $as_dir in #((( 3148 '') as_dir=./ ;; 3149 */) ;; 3150 *) as_dir=$as_dir/ ;; 3151 esac 3152 for ac_prog in mkdir gmkdir; do 3153 for ac_exec_ext in '' $ac_executable_extensions; do 3154 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3155 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3156 'mkdir ('*'coreutils) '* | \ 3157 'BusyBox '* | \ 3158 'mkdir (fileutils) '4.1*) 3159 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3160 break 3;; 3161 esac 3162 done 3163 done 3164 done 3165IFS=$as_save_IFS 3166 3167fi 3168 3169 test -d ./--version && rmdir ./--version 3170 if test ${ac_cv_path_mkdir+y}; then 3171 MKDIR_P="$ac_cv_path_mkdir -p" 3172 else 3173 # As a last resort, use the slow shell script. Don't cache a 3174 # value for MKDIR_P within a source directory, because that will 3175 # break other packages using the cache if that directory is 3176 # removed, or if the value is a relative name. 3177 MKDIR_P="$ac_install_sh -d" 3178 fi 3179fi 3180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3181printf "%s\n" "$MKDIR_P" >&6; } 3182 3183for ac_prog in gawk mawk nawk awk 3184do 3185 # Extract the first word of "$ac_prog", so it can be a program name with args. 3186set dummy $ac_prog; ac_word=$2 3187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3188printf %s "checking for $ac_word... " >&6; } 3189if test ${ac_cv_prog_AWK+y} 3190then : 3191 printf %s "(cached) " >&6 3192else $as_nop 3193 if test -n "$AWK"; then 3194 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3195else 3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3197for as_dir in $PATH 3198do 3199 IFS=$as_save_IFS 3200 case $as_dir in #((( 3201 '') as_dir=./ ;; 3202 */) ;; 3203 *) as_dir=$as_dir/ ;; 3204 esac 3205 for ac_exec_ext in '' $ac_executable_extensions; do 3206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3207 ac_cv_prog_AWK="$ac_prog" 3208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3209 break 2 3210 fi 3211done 3212 done 3213IFS=$as_save_IFS 3214 3215fi 3216fi 3217AWK=$ac_cv_prog_AWK 3218if test -n "$AWK"; then 3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3220printf "%s\n" "$AWK" >&6; } 3221else 3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3223printf "%s\n" "no" >&6; } 3224fi 3225 3226 3227 test -n "$AWK" && break 3228done 3229 3230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3231printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3232set x ${MAKE-make} 3233ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3234if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3235then : 3236 printf %s "(cached) " >&6 3237else $as_nop 3238 cat >conftest.make <<\_ACEOF 3239SHELL = /bin/sh 3240all: 3241 @echo '@@@%%%=$(MAKE)=@@@%%%' 3242_ACEOF 3243# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3244case `${MAKE-make} -f conftest.make 2>/dev/null` in 3245 *@@@%%%=?*=@@@%%%*) 3246 eval ac_cv_prog_make_${ac_make}_set=yes;; 3247 *) 3248 eval ac_cv_prog_make_${ac_make}_set=no;; 3249esac 3250rm -f conftest.make 3251fi 3252if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3254printf "%s\n" "yes" >&6; } 3255 SET_MAKE= 3256else 3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258printf "%s\n" "no" >&6; } 3259 SET_MAKE="MAKE=${MAKE-make}" 3260fi 3261 3262rm -rf .tst 2>/dev/null 3263mkdir .tst 2>/dev/null 3264if test -d .tst; then 3265 am__leading_dot=. 3266else 3267 am__leading_dot=_ 3268fi 3269rmdir .tst 2>/dev/null 3270 3271# Check whether --enable-silent-rules was given. 3272if test ${enable_silent_rules+y} 3273then : 3274 enableval=$enable_silent_rules; 3275fi 3276 3277case $enable_silent_rules in # ((( 3278 yes) AM_DEFAULT_VERBOSITY=0;; 3279 no) AM_DEFAULT_VERBOSITY=1;; 3280 *) AM_DEFAULT_VERBOSITY=1;; 3281esac 3282am_make=${MAKE-make} 3283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3284printf %s "checking whether $am_make supports nested variables... " >&6; } 3285if test ${am_cv_make_support_nested_variables+y} 3286then : 3287 printf %s "(cached) " >&6 3288else $as_nop 3289 if printf "%s\n" 'TRUE=$(BAR$(V)) 3290BAR0=false 3291BAR1=true 3292V=1 3293am__doit: 3294 @$(TRUE) 3295.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3296 am_cv_make_support_nested_variables=yes 3297else 3298 am_cv_make_support_nested_variables=no 3299fi 3300fi 3301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3302printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3303if test $am_cv_make_support_nested_variables = yes; then 3304 AM_V='$(V)' 3305 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3306else 3307 AM_V=$AM_DEFAULT_VERBOSITY 3308 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3309fi 3310AM_BACKSLASH='\' 3311 3312if test "`cd $srcdir && pwd`" != "`pwd`"; then 3313 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3314 # is not polluted with repeated "-I." 3315 am__isrc=' -I$(srcdir)' 3316 # test to see if srcdir already configured 3317 if test -f $srcdir/config.status; then 3318 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3319 fi 3320fi 3321 3322# test whether we have cygpath 3323if test -z "$CYGPATH_W"; then 3324 if (cygpath --version) >/dev/null 2>/dev/null; then 3325 CYGPATH_W='cygpath -w' 3326 else 3327 CYGPATH_W=echo 3328 fi 3329fi 3330 3331 3332# Define the identity of the package. 3333 PACKAGE='pcre2' 3334 VERSION='10.40' 3335 3336 3337printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3338 3339 3340printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3341 3342# Some tools Automake needs. 3343 3344ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3345 3346 3347AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3348 3349 3350AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3351 3352 3353AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3354 3355 3356MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3357 3358# For better backward compatibility. To be removed once Automake 1.9.x 3359# dies out for good. For more background, see: 3360# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3361# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3362mkdir_p='$(MKDIR_P)' 3363 3364# We need awk for the "check" target (and possibly the TAP driver). The 3365# system "awk" is bad on some platforms. 3366# Always define AMTAR for backward compatibility. Yes, it's still used 3367# in the wild :-( We should find a proper way to deprecate it ... 3368AMTAR='$${TAR-tar}' 3369 3370 3371# We'll loop over all known methods to create a tar archive until one works. 3372_am_tools='gnutar pax cpio none' 3373 3374am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3375 3376 3377 3378 3379 3380# Variables for tags utilities; see am/tags.am 3381if test -z "$CTAGS"; then 3382 CTAGS=ctags 3383fi 3384 3385if test -z "$ETAGS"; then 3386 ETAGS=etags 3387fi 3388 3389if test -z "$CSCOPE"; then 3390 CSCOPE=cscope 3391fi 3392 3393 3394 3395# POSIX will say in a future version that running "rm -f" with no argument 3396# is OK; and we want to be able to make that assumption in our Makefile 3397# recipes. So use an aggressive probe to check that the usage we want is 3398# actually supported "in the wild" to an acceptable degree. 3399# See automake bug#10828. 3400# To make any issue more visible, cause the running configure to be aborted 3401# by default if the 'rm' program in use doesn't match our expectations; the 3402# user can still override this though. 3403if rm -f && rm -fr && rm -rf; then : OK; else 3404 cat >&2 <<'END' 3405Oops! 3406 3407Your 'rm' program seems unable to run without file operands specified 3408on the command line, even when the '-f' option is present. This is contrary 3409to the behaviour of most rm programs out there, and not conforming with 3410the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3411 3412Please tell bug-automake@gnu.org about your system, including the value 3413of your $PATH and any error possibly output before this message. This 3414can help us improve future automake versions. 3415 3416END 3417 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3418 echo 'Configuration will proceed anyway, since you have set the' >&2 3419 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3420 echo >&2 3421 else 3422 cat >&2 <<'END' 3423Aborting the configuration process, to ensure you take notice of the issue. 3424 3425You can download and install GNU coreutils to get an 'rm' implementation 3426that behaves properly: <https://www.gnu.org/software/coreutils/>. 3427 3428If you want to complete the configuration process using your problematic 3429'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3430to "yes", and re-run configure. 3431 3432END 3433 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3434 fi 3435fi 3436 3437# Check whether --enable-silent-rules was given. 3438if test ${enable_silent_rules+y} 3439then : 3440 enableval=$enable_silent_rules; 3441fi 3442 3443case $enable_silent_rules in # ((( 3444 yes) AM_DEFAULT_VERBOSITY=0;; 3445 no) AM_DEFAULT_VERBOSITY=1;; 3446 *) AM_DEFAULT_VERBOSITY=0;; 3447esac 3448am_make=${MAKE-make} 3449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3450printf %s "checking whether $am_make supports nested variables... " >&6; } 3451if test ${am_cv_make_support_nested_variables+y} 3452then : 3453 printf %s "(cached) " >&6 3454else $as_nop 3455 if printf "%s\n" 'TRUE=$(BAR$(V)) 3456BAR0=false 3457BAR1=true 3458V=1 3459am__doit: 3460 @$(TRUE) 3461.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3462 am_cv_make_support_nested_variables=yes 3463else 3464 am_cv_make_support_nested_variables=no 3465fi 3466fi 3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3468printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3469if test $am_cv_make_support_nested_variables = yes; then 3470 AM_V='$(V)' 3471 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3472else 3473 AM_V=$AM_DEFAULT_VERBOSITY 3474 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3475fi 3476AM_BACKSLASH='\' 3477 3478ac_config_headers="$ac_config_headers src/config.h" 3479 3480 3481# This was added at the suggestion of libtoolize (03-Jan-10) 3482 3483 3484# The default CFLAGS in Autoconf are "-g -O2" for gcc and just "-g" for any 3485# other compiler. There doesn't seem to be a standard way of getting rid of the 3486# -g (which I don't think is needed for a production library). This fudge seems 3487# to achieve the necessary. First, we remember the externally set values of 3488# CFLAGS. Then call the AC_PROG_CC macro to find the compiler - if CFLAGS is 3489# not set, it will be set to Autoconf's defaults. Afterwards, if the original 3490# values were not set, remove the -g from the Autoconf defaults. 3491 3492remember_set_CFLAGS="$CFLAGS" 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503ac_ext=c 3504ac_cpp='$CPP $CPPFLAGS' 3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3507ac_compiler_gnu=$ac_cv_c_compiler_gnu 3508if test -n "$ac_tool_prefix"; then 3509 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3510set dummy ${ac_tool_prefix}gcc; ac_word=$2 3511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3512printf %s "checking for $ac_word... " >&6; } 3513if test ${ac_cv_prog_CC+y} 3514then : 3515 printf %s "(cached) " >&6 3516else $as_nop 3517 if test -n "$CC"; then 3518 ac_cv_prog_CC="$CC" # Let the user override the test. 3519else 3520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3521for as_dir in $PATH 3522do 3523 IFS=$as_save_IFS 3524 case $as_dir in #((( 3525 '') as_dir=./ ;; 3526 */) ;; 3527 *) as_dir=$as_dir/ ;; 3528 esac 3529 for ac_exec_ext in '' $ac_executable_extensions; do 3530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3531 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3533 break 2 3534 fi 3535done 3536 done 3537IFS=$as_save_IFS 3538 3539fi 3540fi 3541CC=$ac_cv_prog_CC 3542if test -n "$CC"; then 3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3544printf "%s\n" "$CC" >&6; } 3545else 3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3547printf "%s\n" "no" >&6; } 3548fi 3549 3550 3551fi 3552if test -z "$ac_cv_prog_CC"; then 3553 ac_ct_CC=$CC 3554 # Extract the first word of "gcc", so it can be a program name with args. 3555set dummy gcc; ac_word=$2 3556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3557printf %s "checking for $ac_word... " >&6; } 3558if test ${ac_cv_prog_ac_ct_CC+y} 3559then : 3560 printf %s "(cached) " >&6 3561else $as_nop 3562 if test -n "$ac_ct_CC"; then 3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3564else 3565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3566for as_dir in $PATH 3567do 3568 IFS=$as_save_IFS 3569 case $as_dir in #((( 3570 '') as_dir=./ ;; 3571 */) ;; 3572 *) as_dir=$as_dir/ ;; 3573 esac 3574 for ac_exec_ext in '' $ac_executable_extensions; do 3575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3576 ac_cv_prog_ac_ct_CC="gcc" 3577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3578 break 2 3579 fi 3580done 3581 done 3582IFS=$as_save_IFS 3583 3584fi 3585fi 3586ac_ct_CC=$ac_cv_prog_ac_ct_CC 3587if test -n "$ac_ct_CC"; then 3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3589printf "%s\n" "$ac_ct_CC" >&6; } 3590else 3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3592printf "%s\n" "no" >&6; } 3593fi 3594 3595 if test "x$ac_ct_CC" = x; then 3596 CC="" 3597 else 3598 case $cross_compiling:$ac_tool_warned in 3599yes:) 3600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3601printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3602ac_tool_warned=yes ;; 3603esac 3604 CC=$ac_ct_CC 3605 fi 3606else 3607 CC="$ac_cv_prog_CC" 3608fi 3609 3610if test -z "$CC"; then 3611 if test -n "$ac_tool_prefix"; then 3612 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3613set dummy ${ac_tool_prefix}cc; ac_word=$2 3614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3615printf %s "checking for $ac_word... " >&6; } 3616if test ${ac_cv_prog_CC+y} 3617then : 3618 printf %s "(cached) " >&6 3619else $as_nop 3620 if test -n "$CC"; then 3621 ac_cv_prog_CC="$CC" # Let the user override the test. 3622else 3623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3624for as_dir in $PATH 3625do 3626 IFS=$as_save_IFS 3627 case $as_dir in #((( 3628 '') as_dir=./ ;; 3629 */) ;; 3630 *) as_dir=$as_dir/ ;; 3631 esac 3632 for ac_exec_ext in '' $ac_executable_extensions; do 3633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3634 ac_cv_prog_CC="${ac_tool_prefix}cc" 3635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3636 break 2 3637 fi 3638done 3639 done 3640IFS=$as_save_IFS 3641 3642fi 3643fi 3644CC=$ac_cv_prog_CC 3645if test -n "$CC"; then 3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3647printf "%s\n" "$CC" >&6; } 3648else 3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3650printf "%s\n" "no" >&6; } 3651fi 3652 3653 3654 fi 3655fi 3656if test -z "$CC"; then 3657 # Extract the first word of "cc", so it can be a program name with args. 3658set dummy cc; ac_word=$2 3659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3660printf %s "checking for $ac_word... " >&6; } 3661if test ${ac_cv_prog_CC+y} 3662then : 3663 printf %s "(cached) " >&6 3664else $as_nop 3665 if test -n "$CC"; then 3666 ac_cv_prog_CC="$CC" # Let the user override the test. 3667else 3668 ac_prog_rejected=no 3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3670for as_dir in $PATH 3671do 3672 IFS=$as_save_IFS 3673 case $as_dir in #((( 3674 '') as_dir=./ ;; 3675 */) ;; 3676 *) as_dir=$as_dir/ ;; 3677 esac 3678 for ac_exec_ext in '' $ac_executable_extensions; do 3679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3680 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3681 ac_prog_rejected=yes 3682 continue 3683 fi 3684 ac_cv_prog_CC="cc" 3685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3686 break 2 3687 fi 3688done 3689 done 3690IFS=$as_save_IFS 3691 3692if test $ac_prog_rejected = yes; then 3693 # We found a bogon in the path, so make sure we never use it. 3694 set dummy $ac_cv_prog_CC 3695 shift 3696 if test $# != 0; then 3697 # We chose a different compiler from the bogus one. 3698 # However, it has the same basename, so the bogon will be chosen 3699 # first if we set CC to just the basename; use the full file name. 3700 shift 3701 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3702 fi 3703fi 3704fi 3705fi 3706CC=$ac_cv_prog_CC 3707if test -n "$CC"; then 3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3709printf "%s\n" "$CC" >&6; } 3710else 3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3712printf "%s\n" "no" >&6; } 3713fi 3714 3715 3716fi 3717if test -z "$CC"; then 3718 if test -n "$ac_tool_prefix"; then 3719 for ac_prog in cl.exe 3720 do 3721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3722set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3724printf %s "checking for $ac_word... " >&6; } 3725if test ${ac_cv_prog_CC+y} 3726then : 3727 printf %s "(cached) " >&6 3728else $as_nop 3729 if test -n "$CC"; then 3730 ac_cv_prog_CC="$CC" # Let the user override the test. 3731else 3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3733for as_dir in $PATH 3734do 3735 IFS=$as_save_IFS 3736 case $as_dir in #((( 3737 '') as_dir=./ ;; 3738 */) ;; 3739 *) as_dir=$as_dir/ ;; 3740 esac 3741 for ac_exec_ext in '' $ac_executable_extensions; do 3742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3743 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3745 break 2 3746 fi 3747done 3748 done 3749IFS=$as_save_IFS 3750 3751fi 3752fi 3753CC=$ac_cv_prog_CC 3754if test -n "$CC"; then 3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3756printf "%s\n" "$CC" >&6; } 3757else 3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3759printf "%s\n" "no" >&6; } 3760fi 3761 3762 3763 test -n "$CC" && break 3764 done 3765fi 3766if test -z "$CC"; then 3767 ac_ct_CC=$CC 3768 for ac_prog in cl.exe 3769do 3770 # Extract the first word of "$ac_prog", so it can be a program name with args. 3771set dummy $ac_prog; ac_word=$2 3772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3773printf %s "checking for $ac_word... " >&6; } 3774if test ${ac_cv_prog_ac_ct_CC+y} 3775then : 3776 printf %s "(cached) " >&6 3777else $as_nop 3778 if test -n "$ac_ct_CC"; then 3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3780else 3781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3782for as_dir in $PATH 3783do 3784 IFS=$as_save_IFS 3785 case $as_dir in #((( 3786 '') as_dir=./ ;; 3787 */) ;; 3788 *) as_dir=$as_dir/ ;; 3789 esac 3790 for ac_exec_ext in '' $ac_executable_extensions; do 3791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3792 ac_cv_prog_ac_ct_CC="$ac_prog" 3793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3794 break 2 3795 fi 3796done 3797 done 3798IFS=$as_save_IFS 3799 3800fi 3801fi 3802ac_ct_CC=$ac_cv_prog_ac_ct_CC 3803if test -n "$ac_ct_CC"; then 3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3805printf "%s\n" "$ac_ct_CC" >&6; } 3806else 3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3808printf "%s\n" "no" >&6; } 3809fi 3810 3811 3812 test -n "$ac_ct_CC" && break 3813done 3814 3815 if test "x$ac_ct_CC" = x; then 3816 CC="" 3817 else 3818 case $cross_compiling:$ac_tool_warned in 3819yes:) 3820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3821printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3822ac_tool_warned=yes ;; 3823esac 3824 CC=$ac_ct_CC 3825 fi 3826fi 3827 3828fi 3829if test -z "$CC"; then 3830 if test -n "$ac_tool_prefix"; then 3831 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3832set dummy ${ac_tool_prefix}clang; ac_word=$2 3833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3834printf %s "checking for $ac_word... " >&6; } 3835if test ${ac_cv_prog_CC+y} 3836then : 3837 printf %s "(cached) " >&6 3838else $as_nop 3839 if test -n "$CC"; then 3840 ac_cv_prog_CC="$CC" # Let the user override the test. 3841else 3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3843for as_dir in $PATH 3844do 3845 IFS=$as_save_IFS 3846 case $as_dir in #((( 3847 '') as_dir=./ ;; 3848 */) ;; 3849 *) as_dir=$as_dir/ ;; 3850 esac 3851 for ac_exec_ext in '' $ac_executable_extensions; do 3852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3853 ac_cv_prog_CC="${ac_tool_prefix}clang" 3854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3855 break 2 3856 fi 3857done 3858 done 3859IFS=$as_save_IFS 3860 3861fi 3862fi 3863CC=$ac_cv_prog_CC 3864if test -n "$CC"; then 3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3866printf "%s\n" "$CC" >&6; } 3867else 3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3869printf "%s\n" "no" >&6; } 3870fi 3871 3872 3873fi 3874if test -z "$ac_cv_prog_CC"; then 3875 ac_ct_CC=$CC 3876 # Extract the first word of "clang", so it can be a program name with args. 3877set dummy clang; ac_word=$2 3878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3879printf %s "checking for $ac_word... " >&6; } 3880if test ${ac_cv_prog_ac_ct_CC+y} 3881then : 3882 printf %s "(cached) " >&6 3883else $as_nop 3884 if test -n "$ac_ct_CC"; then 3885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3886else 3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3888for as_dir in $PATH 3889do 3890 IFS=$as_save_IFS 3891 case $as_dir in #((( 3892 '') as_dir=./ ;; 3893 */) ;; 3894 *) as_dir=$as_dir/ ;; 3895 esac 3896 for ac_exec_ext in '' $ac_executable_extensions; do 3897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3898 ac_cv_prog_ac_ct_CC="clang" 3899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3900 break 2 3901 fi 3902done 3903 done 3904IFS=$as_save_IFS 3905 3906fi 3907fi 3908ac_ct_CC=$ac_cv_prog_ac_ct_CC 3909if test -n "$ac_ct_CC"; then 3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3911printf "%s\n" "$ac_ct_CC" >&6; } 3912else 3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3914printf "%s\n" "no" >&6; } 3915fi 3916 3917 if test "x$ac_ct_CC" = x; then 3918 CC="" 3919 else 3920 case $cross_compiling:$ac_tool_warned in 3921yes:) 3922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3923printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3924ac_tool_warned=yes ;; 3925esac 3926 CC=$ac_ct_CC 3927 fi 3928else 3929 CC="$ac_cv_prog_CC" 3930fi 3931 3932fi 3933 3934 3935test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3936printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3937as_fn_error $? "no acceptable C compiler found in \$PATH 3938See \`config.log' for more details" "$LINENO" 5; } 3939 3940# Provide some information about the compiler. 3941printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3942set X $ac_compile 3943ac_compiler=$2 3944for ac_option in --version -v -V -qversion -version; do 3945 { { ac_try="$ac_compiler $ac_option >&5" 3946case "(($ac_try" in 3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3948 *) ac_try_echo=$ac_try;; 3949esac 3950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3951printf "%s\n" "$ac_try_echo"; } >&5 3952 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3953 ac_status=$? 3954 if test -s conftest.err; then 3955 sed '10a\ 3956... rest of stderr output deleted ... 3957 10q' conftest.err >conftest.er1 3958 cat conftest.er1 >&5 3959 fi 3960 rm -f conftest.er1 conftest.err 3961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3962 test $ac_status = 0; } 3963done 3964 3965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967 3968int 3969main (void) 3970{ 3971 3972 ; 3973 return 0; 3974} 3975_ACEOF 3976ac_clean_files_save=$ac_clean_files 3977ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3978# Try to create an executable without -o first, disregard a.out. 3979# It will help us diagnose broken compilers, and finding out an intuition 3980# of exeext. 3981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3982printf %s "checking whether the C compiler works... " >&6; } 3983ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3984 3985# The possible output files: 3986ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3987 3988ac_rmfiles= 3989for ac_file in $ac_files 3990do 3991 case $ac_file in 3992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3993 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3994 esac 3995done 3996rm -f $ac_rmfiles 3997 3998if { { ac_try="$ac_link_default" 3999case "(($ac_try" in 4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4001 *) ac_try_echo=$ac_try;; 4002esac 4003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4004printf "%s\n" "$ac_try_echo"; } >&5 4005 (eval "$ac_link_default") 2>&5 4006 ac_status=$? 4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4008 test $ac_status = 0; } 4009then : 4010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4011# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4012# in a Makefile. We should not override ac_cv_exeext if it was cached, 4013# so that the user can short-circuit this test for compilers unknown to 4014# Autoconf. 4015for ac_file in $ac_files '' 4016do 4017 test -f "$ac_file" || continue 4018 case $ac_file in 4019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4020 ;; 4021 [ab].out ) 4022 # We found the default executable, but exeext='' is most 4023 # certainly right. 4024 break;; 4025 *.* ) 4026 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4027 then :; else 4028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4029 fi 4030 # We set ac_cv_exeext here because the later test for it is not 4031 # safe: cross compilers may not add the suffix if given an `-o' 4032 # argument, so we may need to know it at that point already. 4033 # Even if this section looks crufty: it has the advantage of 4034 # actually working. 4035 break;; 4036 * ) 4037 break;; 4038 esac 4039done 4040test "$ac_cv_exeext" = no && ac_cv_exeext= 4041 4042else $as_nop 4043 ac_file='' 4044fi 4045if test -z "$ac_file" 4046then : 4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4048printf "%s\n" "no" >&6; } 4049printf "%s\n" "$as_me: failed program was:" >&5 4050sed 's/^/| /' conftest.$ac_ext >&5 4051 4052{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4053printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4054as_fn_error 77 "C compiler cannot create executables 4055See \`config.log' for more details" "$LINENO" 5; } 4056else $as_nop 4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4058printf "%s\n" "yes" >&6; } 4059fi 4060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4061printf %s "checking for C compiler default output file name... " >&6; } 4062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4063printf "%s\n" "$ac_file" >&6; } 4064ac_exeext=$ac_cv_exeext 4065 4066rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4067ac_clean_files=$ac_clean_files_save 4068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4069printf %s "checking for suffix of executables... " >&6; } 4070if { { ac_try="$ac_link" 4071case "(($ac_try" in 4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4073 *) ac_try_echo=$ac_try;; 4074esac 4075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4076printf "%s\n" "$ac_try_echo"; } >&5 4077 (eval "$ac_link") 2>&5 4078 ac_status=$? 4079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4080 test $ac_status = 0; } 4081then : 4082 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4083# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4084# work properly (i.e., refer to `conftest.exe'), while it won't with 4085# `rm'. 4086for ac_file in conftest.exe conftest conftest.*; do 4087 test -f "$ac_file" || continue 4088 case $ac_file in 4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4091 break;; 4092 * ) break;; 4093 esac 4094done 4095else $as_nop 4096 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4097printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4098as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4099See \`config.log' for more details" "$LINENO" 5; } 4100fi 4101rm -f conftest conftest$ac_cv_exeext 4102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4103printf "%s\n" "$ac_cv_exeext" >&6; } 4104 4105rm -f conftest.$ac_ext 4106EXEEXT=$ac_cv_exeext 4107ac_exeext=$EXEEXT 4108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4109/* end confdefs.h. */ 4110#include <stdio.h> 4111int 4112main (void) 4113{ 4114FILE *f = fopen ("conftest.out", "w"); 4115 return ferror (f) || fclose (f) != 0; 4116 4117 ; 4118 return 0; 4119} 4120_ACEOF 4121ac_clean_files="$ac_clean_files conftest.out" 4122# Check that the compiler produces executables we can run. If not, either 4123# the compiler is broken, or we cross compile. 4124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4125printf %s "checking whether we are cross compiling... " >&6; } 4126if test "$cross_compiling" != yes; then 4127 { { ac_try="$ac_link" 4128case "(($ac_try" in 4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4130 *) ac_try_echo=$ac_try;; 4131esac 4132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4133printf "%s\n" "$ac_try_echo"; } >&5 4134 (eval "$ac_link") 2>&5 4135 ac_status=$? 4136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4137 test $ac_status = 0; } 4138 if { ac_try='./conftest$ac_cv_exeext' 4139 { { case "(($ac_try" in 4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4141 *) ac_try_echo=$ac_try;; 4142esac 4143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4144printf "%s\n" "$ac_try_echo"; } >&5 4145 (eval "$ac_try") 2>&5 4146 ac_status=$? 4147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4148 test $ac_status = 0; }; }; then 4149 cross_compiling=no 4150 else 4151 if test "$cross_compiling" = maybe; then 4152 cross_compiling=yes 4153 else 4154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4155printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4156as_fn_error 77 "cannot run C compiled programs. 4157If you meant to cross compile, use \`--host'. 4158See \`config.log' for more details" "$LINENO" 5; } 4159 fi 4160 fi 4161fi 4162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4163printf "%s\n" "$cross_compiling" >&6; } 4164 4165rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4166ac_clean_files=$ac_clean_files_save 4167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4168printf %s "checking for suffix of object files... " >&6; } 4169if test ${ac_cv_objext+y} 4170then : 4171 printf %s "(cached) " >&6 4172else $as_nop 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174/* end confdefs.h. */ 4175 4176int 4177main (void) 4178{ 4179 4180 ; 4181 return 0; 4182} 4183_ACEOF 4184rm -f conftest.o conftest.obj 4185if { { ac_try="$ac_compile" 4186case "(($ac_try" in 4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4188 *) ac_try_echo=$ac_try;; 4189esac 4190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4191printf "%s\n" "$ac_try_echo"; } >&5 4192 (eval "$ac_compile") 2>&5 4193 ac_status=$? 4194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4195 test $ac_status = 0; } 4196then : 4197 for ac_file in conftest.o conftest.obj conftest.*; do 4198 test -f "$ac_file" || continue; 4199 case $ac_file in 4200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4201 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4202 break;; 4203 esac 4204done 4205else $as_nop 4206 printf "%s\n" "$as_me: failed program was:" >&5 4207sed 's/^/| /' conftest.$ac_ext >&5 4208 4209{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4210printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4211as_fn_error $? "cannot compute suffix of object files: cannot compile 4212See \`config.log' for more details" "$LINENO" 5; } 4213fi 4214rm -f conftest.$ac_cv_objext conftest.$ac_ext 4215fi 4216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4217printf "%s\n" "$ac_cv_objext" >&6; } 4218OBJEXT=$ac_cv_objext 4219ac_objext=$OBJEXT 4220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4221printf %s "checking whether the compiler supports GNU C... " >&6; } 4222if test ${ac_cv_c_compiler_gnu+y} 4223then : 4224 printf %s "(cached) " >&6 4225else $as_nop 4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227/* end confdefs.h. */ 4228 4229int 4230main (void) 4231{ 4232#ifndef __GNUC__ 4233 choke me 4234#endif 4235 4236 ; 4237 return 0; 4238} 4239_ACEOF 4240if ac_fn_c_try_compile "$LINENO" 4241then : 4242 ac_compiler_gnu=yes 4243else $as_nop 4244 ac_compiler_gnu=no 4245fi 4246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4247ac_cv_c_compiler_gnu=$ac_compiler_gnu 4248 4249fi 4250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4251printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4252ac_compiler_gnu=$ac_cv_c_compiler_gnu 4253 4254if test $ac_compiler_gnu = yes; then 4255 GCC=yes 4256else 4257 GCC= 4258fi 4259ac_test_CFLAGS=${CFLAGS+y} 4260ac_save_CFLAGS=$CFLAGS 4261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4262printf %s "checking whether $CC accepts -g... " >&6; } 4263if test ${ac_cv_prog_cc_g+y} 4264then : 4265 printf %s "(cached) " >&6 4266else $as_nop 4267 ac_save_c_werror_flag=$ac_c_werror_flag 4268 ac_c_werror_flag=yes 4269 ac_cv_prog_cc_g=no 4270 CFLAGS="-g" 4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4272/* end confdefs.h. */ 4273 4274int 4275main (void) 4276{ 4277 4278 ; 4279 return 0; 4280} 4281_ACEOF 4282if ac_fn_c_try_compile "$LINENO" 4283then : 4284 ac_cv_prog_cc_g=yes 4285else $as_nop 4286 CFLAGS="" 4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4288/* end confdefs.h. */ 4289 4290int 4291main (void) 4292{ 4293 4294 ; 4295 return 0; 4296} 4297_ACEOF 4298if ac_fn_c_try_compile "$LINENO" 4299then : 4300 4301else $as_nop 4302 ac_c_werror_flag=$ac_save_c_werror_flag 4303 CFLAGS="-g" 4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4305/* end confdefs.h. */ 4306 4307int 4308main (void) 4309{ 4310 4311 ; 4312 return 0; 4313} 4314_ACEOF 4315if ac_fn_c_try_compile "$LINENO" 4316then : 4317 ac_cv_prog_cc_g=yes 4318fi 4319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4320fi 4321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4322fi 4323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4324 ac_c_werror_flag=$ac_save_c_werror_flag 4325fi 4326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4327printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4328if test $ac_test_CFLAGS; then 4329 CFLAGS=$ac_save_CFLAGS 4330elif test $ac_cv_prog_cc_g = yes; then 4331 if test "$GCC" = yes; then 4332 CFLAGS="-g -O2" 4333 else 4334 CFLAGS="-g" 4335 fi 4336else 4337 if test "$GCC" = yes; then 4338 CFLAGS="-O2" 4339 else 4340 CFLAGS= 4341 fi 4342fi 4343ac_prog_cc_stdc=no 4344if test x$ac_prog_cc_stdc = xno 4345then : 4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4347printf %s "checking for $CC option to enable C11 features... " >&6; } 4348if test ${ac_cv_prog_cc_c11+y} 4349then : 4350 printf %s "(cached) " >&6 4351else $as_nop 4352 ac_cv_prog_cc_c11=no 4353ac_save_CC=$CC 4354cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4355/* end confdefs.h. */ 4356$ac_c_conftest_c11_program 4357_ACEOF 4358for ac_arg in '' -std=gnu11 4359do 4360 CC="$ac_save_CC $ac_arg" 4361 if ac_fn_c_try_compile "$LINENO" 4362then : 4363 ac_cv_prog_cc_c11=$ac_arg 4364fi 4365rm -f core conftest.err conftest.$ac_objext conftest.beam 4366 test "x$ac_cv_prog_cc_c11" != "xno" && break 4367done 4368rm -f conftest.$ac_ext 4369CC=$ac_save_CC 4370fi 4371 4372if test "x$ac_cv_prog_cc_c11" = xno 4373then : 4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4375printf "%s\n" "unsupported" >&6; } 4376else $as_nop 4377 if test "x$ac_cv_prog_cc_c11" = x 4378then : 4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4380printf "%s\n" "none needed" >&6; } 4381else $as_nop 4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4383printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4384 CC="$CC $ac_cv_prog_cc_c11" 4385fi 4386 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4387 ac_prog_cc_stdc=c11 4388fi 4389fi 4390if test x$ac_prog_cc_stdc = xno 4391then : 4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4393printf %s "checking for $CC option to enable C99 features... " >&6; } 4394if test ${ac_cv_prog_cc_c99+y} 4395then : 4396 printf %s "(cached) " >&6 4397else $as_nop 4398 ac_cv_prog_cc_c99=no 4399ac_save_CC=$CC 4400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401/* end confdefs.h. */ 4402$ac_c_conftest_c99_program 4403_ACEOF 4404for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4405do 4406 CC="$ac_save_CC $ac_arg" 4407 if ac_fn_c_try_compile "$LINENO" 4408then : 4409 ac_cv_prog_cc_c99=$ac_arg 4410fi 4411rm -f core conftest.err conftest.$ac_objext conftest.beam 4412 test "x$ac_cv_prog_cc_c99" != "xno" && break 4413done 4414rm -f conftest.$ac_ext 4415CC=$ac_save_CC 4416fi 4417 4418if test "x$ac_cv_prog_cc_c99" = xno 4419then : 4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4421printf "%s\n" "unsupported" >&6; } 4422else $as_nop 4423 if test "x$ac_cv_prog_cc_c99" = x 4424then : 4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4426printf "%s\n" "none needed" >&6; } 4427else $as_nop 4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4429printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4430 CC="$CC $ac_cv_prog_cc_c99" 4431fi 4432 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4433 ac_prog_cc_stdc=c99 4434fi 4435fi 4436if test x$ac_prog_cc_stdc = xno 4437then : 4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4439printf %s "checking for $CC option to enable C89 features... " >&6; } 4440if test ${ac_cv_prog_cc_c89+y} 4441then : 4442 printf %s "(cached) " >&6 4443else $as_nop 4444 ac_cv_prog_cc_c89=no 4445ac_save_CC=$CC 4446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447/* end confdefs.h. */ 4448$ac_c_conftest_c89_program 4449_ACEOF 4450for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4451do 4452 CC="$ac_save_CC $ac_arg" 4453 if ac_fn_c_try_compile "$LINENO" 4454then : 4455 ac_cv_prog_cc_c89=$ac_arg 4456fi 4457rm -f core conftest.err conftest.$ac_objext conftest.beam 4458 test "x$ac_cv_prog_cc_c89" != "xno" && break 4459done 4460rm -f conftest.$ac_ext 4461CC=$ac_save_CC 4462fi 4463 4464if test "x$ac_cv_prog_cc_c89" = xno 4465then : 4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4467printf "%s\n" "unsupported" >&6; } 4468else $as_nop 4469 if test "x$ac_cv_prog_cc_c89" = x 4470then : 4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4472printf "%s\n" "none needed" >&6; } 4473else $as_nop 4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4475printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4476 CC="$CC $ac_cv_prog_cc_c89" 4477fi 4478 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4479 ac_prog_cc_stdc=c89 4480fi 4481fi 4482 4483ac_ext=c 4484ac_cpp='$CPP $CPPFLAGS' 4485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4487ac_compiler_gnu=$ac_cv_c_compiler_gnu 4488 4489 4490 ac_ext=c 4491ac_cpp='$CPP $CPPFLAGS' 4492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4494ac_compiler_gnu=$ac_cv_c_compiler_gnu 4495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4496printf %s "checking whether $CC understands -c and -o together... " >&6; } 4497if test ${am_cv_prog_cc_c_o+y} 4498then : 4499 printf %s "(cached) " >&6 4500else $as_nop 4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4502/* end confdefs.h. */ 4503 4504int 4505main (void) 4506{ 4507 4508 ; 4509 return 0; 4510} 4511_ACEOF 4512 # Make sure it works both with $CC and with simple cc. 4513 # Following AC_PROG_CC_C_O, we do the test twice because some 4514 # compilers refuse to overwrite an existing .o file with -o, 4515 # though they will create one. 4516 am_cv_prog_cc_c_o=yes 4517 for am_i in 1 2; do 4518 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4519 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4520 ac_status=$? 4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4522 (exit $ac_status); } \ 4523 && test -f conftest2.$ac_objext; then 4524 : OK 4525 else 4526 am_cv_prog_cc_c_o=no 4527 break 4528 fi 4529 done 4530 rm -f core conftest* 4531 unset am_i 4532fi 4533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4534printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4535if test "$am_cv_prog_cc_c_o" != yes; then 4536 # Losing compiler, so override with the script. 4537 # FIXME: It is wrong to rewrite CC. 4538 # But if we don't then we get into trouble of one sort or another. 4539 # A longer-term fix would be to have automake use am__CC in this case, 4540 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4541 CC="$am_aux_dir/compile $CC" 4542fi 4543ac_ext=c 4544ac_cpp='$CPP $CPPFLAGS' 4545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4547ac_compiler_gnu=$ac_cv_c_compiler_gnu 4548 4549DEPDIR="${am__leading_dot}deps" 4550 4551ac_config_commands="$ac_config_commands depfiles" 4552 4553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4554printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4555cat > confinc.mk << 'END' 4556am__doit: 4557 @echo this is the am__doit target >confinc.out 4558.PHONY: am__doit 4559END 4560am__include="#" 4561am__quote= 4562# BSD make does it like this. 4563echo '.include "confinc.mk" # ignored' > confmf.BSD 4564# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4565echo 'include confinc.mk # ignored' > confmf.GNU 4566_am_result=no 4567for s in GNU BSD; do 4568 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4569 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4570 ac_status=$? 4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4572 (exit $ac_status); } 4573 case $?:`cat confinc.out 2>/dev/null` in #( 4574 '0:this is the am__doit target') : 4575 case $s in #( 4576 BSD) : 4577 am__include='.include' am__quote='"' ;; #( 4578 *) : 4579 am__include='include' am__quote='' ;; 4580esac ;; #( 4581 *) : 4582 ;; 4583esac 4584 if test "$am__include" != "#"; then 4585 _am_result="yes ($s style)" 4586 break 4587 fi 4588done 4589rm -f confinc.* confmf.* 4590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4591printf "%s\n" "${_am_result}" >&6; } 4592 4593# Check whether --enable-dependency-tracking was given. 4594if test ${enable_dependency_tracking+y} 4595then : 4596 enableval=$enable_dependency_tracking; 4597fi 4598 4599if test "x$enable_dependency_tracking" != xno; then 4600 am_depcomp="$ac_aux_dir/depcomp" 4601 AMDEPBACKSLASH='\' 4602 am__nodep='_no' 4603fi 4604 if test "x$enable_dependency_tracking" != xno; then 4605 AMDEP_TRUE= 4606 AMDEP_FALSE='#' 4607else 4608 AMDEP_TRUE='#' 4609 AMDEP_FALSE= 4610fi 4611 4612 4613 4614depcc="$CC" am_compiler_list= 4615 4616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4617printf %s "checking dependency style of $depcc... " >&6; } 4618if test ${am_cv_CC_dependencies_compiler_type+y} 4619then : 4620 printf %s "(cached) " >&6 4621else $as_nop 4622 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4623 # We make a subdir and do the tests there. Otherwise we can end up 4624 # making bogus files that we don't know about and never remove. For 4625 # instance it was reported that on HP-UX the gcc test will end up 4626 # making a dummy file named 'D' -- because '-MD' means "put the output 4627 # in D". 4628 rm -rf conftest.dir 4629 mkdir conftest.dir 4630 # Copy depcomp to subdir because otherwise we won't find it if we're 4631 # using a relative directory. 4632 cp "$am_depcomp" conftest.dir 4633 cd conftest.dir 4634 # We will build objects and dependencies in a subdirectory because 4635 # it helps to detect inapplicable dependency modes. For instance 4636 # both Tru64's cc and ICC support -MD to output dependencies as a 4637 # side effect of compilation, but ICC will put the dependencies in 4638 # the current directory while Tru64 will put them in the object 4639 # directory. 4640 mkdir sub 4641 4642 am_cv_CC_dependencies_compiler_type=none 4643 if test "$am_compiler_list" = ""; then 4644 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4645 fi 4646 am__universal=false 4647 case " $depcc " in #( 4648 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4649 esac 4650 4651 for depmode in $am_compiler_list; do 4652 # Setup a source with many dependencies, because some compilers 4653 # like to wrap large dependency lists on column 80 (with \), and 4654 # we should not choose a depcomp mode which is confused by this. 4655 # 4656 # We need to recreate these files for each test, as the compiler may 4657 # overwrite some of them when testing with obscure command lines. 4658 # This happens at least with the AIX C compiler. 4659 : > sub/conftest.c 4660 for i in 1 2 3 4 5 6; do 4661 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4662 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4663 # Solaris 10 /bin/sh. 4664 echo '/* dummy */' > sub/conftst$i.h 4665 done 4666 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4667 4668 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4669 # mode. It turns out that the SunPro C++ compiler does not properly 4670 # handle '-M -o', and we need to detect this. Also, some Intel 4671 # versions had trouble with output in subdirs. 4672 am__obj=sub/conftest.${OBJEXT-o} 4673 am__minus_obj="-o $am__obj" 4674 case $depmode in 4675 gcc) 4676 # This depmode causes a compiler race in universal mode. 4677 test "$am__universal" = false || continue 4678 ;; 4679 nosideeffect) 4680 # After this tag, mechanisms are not by side-effect, so they'll 4681 # only be used when explicitly requested. 4682 if test "x$enable_dependency_tracking" = xyes; then 4683 continue 4684 else 4685 break 4686 fi 4687 ;; 4688 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4689 # This compiler won't grok '-c -o', but also, the minuso test has 4690 # not run yet. These depmodes are late enough in the game, and 4691 # so weak that their functioning should not be impacted. 4692 am__obj=conftest.${OBJEXT-o} 4693 am__minus_obj= 4694 ;; 4695 none) break ;; 4696 esac 4697 if depmode=$depmode \ 4698 source=sub/conftest.c object=$am__obj \ 4699 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4700 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4701 >/dev/null 2>conftest.err && 4702 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4703 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4704 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4705 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4706 # icc doesn't choke on unknown options, it will just issue warnings 4707 # or remarks (even with -Werror). So we grep stderr for any message 4708 # that says an option was ignored or not supported. 4709 # When given -MP, icc 7.0 and 7.1 complain thusly: 4710 # icc: Command line warning: ignoring option '-M'; no argument required 4711 # The diagnosis changed in icc 8.0: 4712 # icc: Command line remark: option '-MP' not supported 4713 if (grep 'ignoring option' conftest.err || 4714 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4715 am_cv_CC_dependencies_compiler_type=$depmode 4716 break 4717 fi 4718 fi 4719 done 4720 4721 cd .. 4722 rm -rf conftest.dir 4723else 4724 am_cv_CC_dependencies_compiler_type=none 4725fi 4726 4727fi 4728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4729printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4730CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4731 4732 if 4733 test "x$enable_dependency_tracking" != xno \ 4734 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4735 am__fastdepCC_TRUE= 4736 am__fastdepCC_FALSE='#' 4737else 4738 am__fastdepCC_TRUE='#' 4739 am__fastdepCC_FALSE= 4740fi 4741 4742 4743 4744 4745ac_header= ac_cache= 4746for ac_item in $ac_header_c_list 4747do 4748 if test $ac_cache; then 4749 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4750 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4751 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4752 fi 4753 ac_header= ac_cache= 4754 elif test $ac_header; then 4755 ac_cache=$ac_item 4756 else 4757 ac_header=$ac_item 4758 fi 4759done 4760 4761 4762 4763 4764 4765 4766 4767 4768if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4769then : 4770 4771printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4772 4773fi 4774 4775 4776 4777 4778 4779 4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4781printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4782if test ${ac_cv_safe_to_define___extensions__+y} 4783then : 4784 printf %s "(cached) " >&6 4785else $as_nop 4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787/* end confdefs.h. */ 4788 4789# define __EXTENSIONS__ 1 4790 $ac_includes_default 4791int 4792main (void) 4793{ 4794 4795 ; 4796 return 0; 4797} 4798_ACEOF 4799if ac_fn_c_try_compile "$LINENO" 4800then : 4801 ac_cv_safe_to_define___extensions__=yes 4802else $as_nop 4803 ac_cv_safe_to_define___extensions__=no 4804fi 4805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4806fi 4807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4808printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4809 4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4811printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4812if test ${ac_cv_should_define__xopen_source+y} 4813then : 4814 printf %s "(cached) " >&6 4815else $as_nop 4816 ac_cv_should_define__xopen_source=no 4817 if test $ac_cv_header_wchar_h = yes 4818then : 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4820/* end confdefs.h. */ 4821 4822 #include <wchar.h> 4823 mbstate_t x; 4824int 4825main (void) 4826{ 4827 4828 ; 4829 return 0; 4830} 4831_ACEOF 4832if ac_fn_c_try_compile "$LINENO" 4833then : 4834 4835else $as_nop 4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4837/* end confdefs.h. */ 4838 4839 #define _XOPEN_SOURCE 500 4840 #include <wchar.h> 4841 mbstate_t x; 4842int 4843main (void) 4844{ 4845 4846 ; 4847 return 0; 4848} 4849_ACEOF 4850if ac_fn_c_try_compile "$LINENO" 4851then : 4852 ac_cv_should_define__xopen_source=yes 4853fi 4854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4855fi 4856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4857fi 4858fi 4859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4860printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4861 4862 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4863 4864 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4865 4866 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4867 4868 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4869 4870 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4871 4872 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4873 4874 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4875 4876 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4877 4878 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4879 4880 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4881 4882 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4883 4884 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4885 4886 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4887 4888 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4889 4890 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4891 4892 if test $ac_cv_header_minix_config_h = yes 4893then : 4894 MINIX=yes 4895 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4896 4897 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4898 4899 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4900 4901else $as_nop 4902 MINIX= 4903fi 4904 if test $ac_cv_safe_to_define___extensions__ = yes 4905then : 4906 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4907 4908fi 4909 if test $ac_cv_should_define__xopen_source = yes 4910then : 4911 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4912 4913fi 4914 4915 4916if test "x$remember_set_CFLAGS" = "x" 4917then 4918 if test "$CFLAGS" = "-g -O2" 4919 then 4920 CFLAGS="-O2" 4921 elif test "$CFLAGS" = "-g" 4922 then 4923 CFLAGS="" 4924 fi 4925fi 4926 4927# This is a new thing required to stop a warning from automake 1.12 4928 4929 if test -n "$ac_tool_prefix"; then 4930 for ac_prog in ar lib "link -lib" 4931 do 4932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4933set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4935printf %s "checking for $ac_word... " >&6; } 4936if test ${ac_cv_prog_AR+y} 4937then : 4938 printf %s "(cached) " >&6 4939else $as_nop 4940 if test -n "$AR"; then 4941 ac_cv_prog_AR="$AR" # Let the user override the test. 4942else 4943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4944for as_dir in $PATH 4945do 4946 IFS=$as_save_IFS 4947 case $as_dir in #((( 4948 '') as_dir=./ ;; 4949 */) ;; 4950 *) as_dir=$as_dir/ ;; 4951 esac 4952 for ac_exec_ext in '' $ac_executable_extensions; do 4953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4954 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4956 break 2 4957 fi 4958done 4959 done 4960IFS=$as_save_IFS 4961 4962fi 4963fi 4964AR=$ac_cv_prog_AR 4965if test -n "$AR"; then 4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4967printf "%s\n" "$AR" >&6; } 4968else 4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4970printf "%s\n" "no" >&6; } 4971fi 4972 4973 4974 test -n "$AR" && break 4975 done 4976fi 4977if test -z "$AR"; then 4978 ac_ct_AR=$AR 4979 for ac_prog in ar lib "link -lib" 4980do 4981 # Extract the first word of "$ac_prog", so it can be a program name with args. 4982set dummy $ac_prog; ac_word=$2 4983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4984printf %s "checking for $ac_word... " >&6; } 4985if test ${ac_cv_prog_ac_ct_AR+y} 4986then : 4987 printf %s "(cached) " >&6 4988else $as_nop 4989 if test -n "$ac_ct_AR"; then 4990 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4991else 4992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4993for as_dir in $PATH 4994do 4995 IFS=$as_save_IFS 4996 case $as_dir in #((( 4997 '') as_dir=./ ;; 4998 */) ;; 4999 *) as_dir=$as_dir/ ;; 5000 esac 5001 for ac_exec_ext in '' $ac_executable_extensions; do 5002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5003 ac_cv_prog_ac_ct_AR="$ac_prog" 5004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5005 break 2 5006 fi 5007done 5008 done 5009IFS=$as_save_IFS 5010 5011fi 5012fi 5013ac_ct_AR=$ac_cv_prog_ac_ct_AR 5014if test -n "$ac_ct_AR"; then 5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5016printf "%s\n" "$ac_ct_AR" >&6; } 5017else 5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5019printf "%s\n" "no" >&6; } 5020fi 5021 5022 5023 test -n "$ac_ct_AR" && break 5024done 5025 5026 if test "x$ac_ct_AR" = x; then 5027 AR="false" 5028 else 5029 case $cross_compiling:$ac_tool_warned in 5030yes:) 5031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5032printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5033ac_tool_warned=yes ;; 5034esac 5035 AR=$ac_ct_AR 5036 fi 5037fi 5038 5039: ${AR=ar} 5040 5041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5042printf %s "checking the archiver ($AR) interface... " >&6; } 5043if test ${am_cv_ar_interface+y} 5044then : 5045 printf %s "(cached) " >&6 5046else $as_nop 5047 ac_ext=c 5048ac_cpp='$CPP $CPPFLAGS' 5049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5051ac_compiler_gnu=$ac_cv_c_compiler_gnu 5052 5053 am_cv_ar_interface=ar 5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5055/* end confdefs.h. */ 5056int some_variable = 0; 5057_ACEOF 5058if ac_fn_c_try_compile "$LINENO" 5059then : 5060 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5062 (eval $am_ar_try) 2>&5 5063 ac_status=$? 5064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5065 test $ac_status = 0; } 5066 if test "$ac_status" -eq 0; then 5067 am_cv_ar_interface=ar 5068 else 5069 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5071 (eval $am_ar_try) 2>&5 5072 ac_status=$? 5073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5074 test $ac_status = 0; } 5075 if test "$ac_status" -eq 0; then 5076 am_cv_ar_interface=lib 5077 else 5078 am_cv_ar_interface=unknown 5079 fi 5080 fi 5081 rm -f conftest.lib libconftest.a 5082 5083fi 5084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5085 ac_ext=c 5086ac_cpp='$CPP $CPPFLAGS' 5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5089ac_compiler_gnu=$ac_cv_c_compiler_gnu 5090 5091fi 5092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5093printf "%s\n" "$am_cv_ar_interface" >&6; } 5094 5095case $am_cv_ar_interface in 5096ar) 5097 ;; 5098lib) 5099 # Microsoft lib, so override with the ar-lib wrapper script. 5100 # FIXME: It is wrong to rewrite AR. 5101 # But if we don't then we get into trouble of one sort or another. 5102 # A longer-term fix would be to have automake use am__AR in this case, 5103 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5104 # similar. 5105 AR="$am_aux_dir/ar-lib $AR" 5106 ;; 5107unknown) 5108 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5109 ;; 5110esac 5111 5112 5113# Check for a 64-bit integer type 5114ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 5115case $ac_cv_c_int64_t in #( 5116 no|yes) ;; #( 5117 *) 5118 5119printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h 5120;; 5121esac 5122 5123 5124 5125case `pwd` in 5126 *\ * | *\ *) 5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5128printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5129esac 5130 5131 5132 5133macro_version='2.4.6.59-b55b-dirty' 5134macro_revision='2.4.6.59' 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149ltmain=$ac_aux_dir/ltmain.sh 5150 5151 5152 5153 # Make sure we can run config.sub. 5154$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5155 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5156 5157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5158printf %s "checking build system type... " >&6; } 5159if test ${ac_cv_build+y} 5160then : 5161 printf %s "(cached) " >&6 5162else $as_nop 5163 ac_build_alias=$build_alias 5164test "x$ac_build_alias" = x && 5165 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5166test "x$ac_build_alias" = x && 5167 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5168ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5169 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5170 5171fi 5172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5173printf "%s\n" "$ac_cv_build" >&6; } 5174case $ac_cv_build in 5175*-*-*) ;; 5176*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5177esac 5178build=$ac_cv_build 5179ac_save_IFS=$IFS; IFS='-' 5180set x $ac_cv_build 5181shift 5182build_cpu=$1 5183build_vendor=$2 5184shift; shift 5185# Remember, the first character of IFS is used to create $*, 5186# except with old shells: 5187build_os=$* 5188IFS=$ac_save_IFS 5189case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5190 5191 5192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5193printf %s "checking host system type... " >&6; } 5194if test ${ac_cv_host+y} 5195then : 5196 printf %s "(cached) " >&6 5197else $as_nop 5198 if test "x$host_alias" = x; then 5199 ac_cv_host=$ac_cv_build 5200else 5201 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5202 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5203fi 5204 5205fi 5206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5207printf "%s\n" "$ac_cv_host" >&6; } 5208case $ac_cv_host in 5209*-*-*) ;; 5210*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5211esac 5212host=$ac_cv_host 5213ac_save_IFS=$IFS; IFS='-' 5214set x $ac_cv_host 5215shift 5216host_cpu=$1 5217host_vendor=$2 5218shift; shift 5219# Remember, the first character of IFS is used to create $*, 5220# except with old shells: 5221host_os=$* 5222IFS=$ac_save_IFS 5223case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5224 5225 5226# Backslashify metacharacters that are still active within 5227# double-quoted strings. 5228sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5229 5230# Same as above, but do not quote variable references. 5231double_quote_subst='s/\(["`\\]\)/\\\1/g' 5232 5233# Sed substitution to delay expansion of an escaped shell variable in a 5234# double_quote_subst'ed string. 5235delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5236 5237# Sed substitution to delay expansion of an escaped single quote. 5238delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5239 5240# Sed substitution to avoid accidental globbing in evaled expressions 5241no_glob_subst='s/\*/\\\*/g' 5242 5243ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5244ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5245ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5246 5247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5248printf %s "checking how to print strings... " >&6; } 5249# Test print first, because it will be a builtin if present. 5250if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5251 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5252 ECHO='print -r --' 5253elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5254 ECHO='printf %s\n' 5255else 5256 # Use this function as a fallback that always works. 5257 func_fallback_echo () 5258 { 5259 eval 'cat <<_LTECHO_EOF 5260$1 5261_LTECHO_EOF' 5262 } 5263 ECHO='func_fallback_echo' 5264fi 5265 5266# func_echo_all arg... 5267# Invoke $ECHO with all args, space-separated. 5268func_echo_all () 5269{ 5270 $ECHO "" 5271} 5272 5273case $ECHO in 5274 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5275printf "%s\n" "printf" >&6; } ;; 5276 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5277printf "%s\n" "print -r" >&6; } ;; 5278 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5279printf "%s\n" "cat" >&6; } ;; 5280esac 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5296printf %s "checking for a sed that does not truncate output... " >&6; } 5297if test ${ac_cv_path_SED+y} 5298then : 5299 printf %s "(cached) " >&6 5300else $as_nop 5301 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5302 for ac_i in 1 2 3 4 5 6 7; do 5303 ac_script="$ac_script$as_nl$ac_script" 5304 done 5305 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5306 { ac_script=; unset ac_script;} 5307 if test -z "$SED"; then 5308 ac_path_SED_found=false 5309 # Loop through the user's path and test for each of PROGNAME-LIST 5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5311for as_dir in $PATH 5312do 5313 IFS=$as_save_IFS 5314 case $as_dir in #((( 5315 '') as_dir=./ ;; 5316 */) ;; 5317 *) as_dir=$as_dir/ ;; 5318 esac 5319 for ac_prog in sed gsed 5320 do 5321 for ac_exec_ext in '' $ac_executable_extensions; do 5322 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5323 as_fn_executable_p "$ac_path_SED" || continue 5324# Check for GNU ac_path_SED and select it if it is found. 5325 # Check for GNU $ac_path_SED 5326case `"$ac_path_SED" --version 2>&1` in 5327*GNU*) 5328 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5329*) 5330 ac_count=0 5331 printf %s 0123456789 >"conftest.in" 5332 while : 5333 do 5334 cat "conftest.in" "conftest.in" >"conftest.tmp" 5335 mv "conftest.tmp" "conftest.in" 5336 cp "conftest.in" "conftest.nl" 5337 printf "%s\n" '' >> "conftest.nl" 5338 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5340 as_fn_arith $ac_count + 1 && ac_count=$as_val 5341 if test $ac_count -gt ${ac_path_SED_max-0}; then 5342 # Best one so far, save it but keep looking for a better one 5343 ac_cv_path_SED="$ac_path_SED" 5344 ac_path_SED_max=$ac_count 5345 fi 5346 # 10*(2^10) chars as input seems more than enough 5347 test $ac_count -gt 10 && break 5348 done 5349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5350esac 5351 5352 $ac_path_SED_found && break 3 5353 done 5354 done 5355 done 5356IFS=$as_save_IFS 5357 if test -z "$ac_cv_path_SED"; then 5358 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5359 fi 5360else 5361 ac_cv_path_SED=$SED 5362fi 5363 5364fi 5365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5366printf "%s\n" "$ac_cv_path_SED" >&6; } 5367 SED="$ac_cv_path_SED" 5368 rm -f conftest.sed 5369 5370test -z "$SED" && SED=sed 5371Xsed="$SED -e 1s/^X//" 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5384printf %s "checking for grep that handles long lines and -e... " >&6; } 5385if test ${ac_cv_path_GREP+y} 5386then : 5387 printf %s "(cached) " >&6 5388else $as_nop 5389 if test -z "$GREP"; then 5390 ac_path_GREP_found=false 5391 # Loop through the user's path and test for each of PROGNAME-LIST 5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5393for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5394do 5395 IFS=$as_save_IFS 5396 case $as_dir in #((( 5397 '') as_dir=./ ;; 5398 */) ;; 5399 *) as_dir=$as_dir/ ;; 5400 esac 5401 for ac_prog in grep ggrep 5402 do 5403 for ac_exec_ext in '' $ac_executable_extensions; do 5404 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5405 as_fn_executable_p "$ac_path_GREP" || continue 5406# Check for GNU ac_path_GREP and select it if it is found. 5407 # Check for GNU $ac_path_GREP 5408case `"$ac_path_GREP" --version 2>&1` in 5409*GNU*) 5410 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5411*) 5412 ac_count=0 5413 printf %s 0123456789 >"conftest.in" 5414 while : 5415 do 5416 cat "conftest.in" "conftest.in" >"conftest.tmp" 5417 mv "conftest.tmp" "conftest.in" 5418 cp "conftest.in" "conftest.nl" 5419 printf "%s\n" 'GREP' >> "conftest.nl" 5420 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5422 as_fn_arith $ac_count + 1 && ac_count=$as_val 5423 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5424 # Best one so far, save it but keep looking for a better one 5425 ac_cv_path_GREP="$ac_path_GREP" 5426 ac_path_GREP_max=$ac_count 5427 fi 5428 # 10*(2^10) chars as input seems more than enough 5429 test $ac_count -gt 10 && break 5430 done 5431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5432esac 5433 5434 $ac_path_GREP_found && break 3 5435 done 5436 done 5437 done 5438IFS=$as_save_IFS 5439 if test -z "$ac_cv_path_GREP"; then 5440 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5441 fi 5442else 5443 ac_cv_path_GREP=$GREP 5444fi 5445 5446fi 5447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5448printf "%s\n" "$ac_cv_path_GREP" >&6; } 5449 GREP="$ac_cv_path_GREP" 5450 5451 5452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5453printf %s "checking for egrep... " >&6; } 5454if test ${ac_cv_path_EGREP+y} 5455then : 5456 printf %s "(cached) " >&6 5457else $as_nop 5458 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5459 then ac_cv_path_EGREP="$GREP -E" 5460 else 5461 if test -z "$EGREP"; then 5462 ac_path_EGREP_found=false 5463 # Loop through the user's path and test for each of PROGNAME-LIST 5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5465for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5466do 5467 IFS=$as_save_IFS 5468 case $as_dir in #((( 5469 '') as_dir=./ ;; 5470 */) ;; 5471 *) as_dir=$as_dir/ ;; 5472 esac 5473 for ac_prog in egrep 5474 do 5475 for ac_exec_ext in '' $ac_executable_extensions; do 5476 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5477 as_fn_executable_p "$ac_path_EGREP" || continue 5478# Check for GNU ac_path_EGREP and select it if it is found. 5479 # Check for GNU $ac_path_EGREP 5480case `"$ac_path_EGREP" --version 2>&1` in 5481*GNU*) 5482 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5483*) 5484 ac_count=0 5485 printf %s 0123456789 >"conftest.in" 5486 while : 5487 do 5488 cat "conftest.in" "conftest.in" >"conftest.tmp" 5489 mv "conftest.tmp" "conftest.in" 5490 cp "conftest.in" "conftest.nl" 5491 printf "%s\n" 'EGREP' >> "conftest.nl" 5492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5494 as_fn_arith $ac_count + 1 && ac_count=$as_val 5495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5496 # Best one so far, save it but keep looking for a better one 5497 ac_cv_path_EGREP="$ac_path_EGREP" 5498 ac_path_EGREP_max=$ac_count 5499 fi 5500 # 10*(2^10) chars as input seems more than enough 5501 test $ac_count -gt 10 && break 5502 done 5503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5504esac 5505 5506 $ac_path_EGREP_found && break 3 5507 done 5508 done 5509 done 5510IFS=$as_save_IFS 5511 if test -z "$ac_cv_path_EGREP"; then 5512 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5513 fi 5514else 5515 ac_cv_path_EGREP=$EGREP 5516fi 5517 5518 fi 5519fi 5520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5521printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5522 EGREP="$ac_cv_path_EGREP" 5523 5524 5525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5526printf %s "checking for fgrep... " >&6; } 5527if test ${ac_cv_path_FGREP+y} 5528then : 5529 printf %s "(cached) " >&6 5530else $as_nop 5531 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5532 then ac_cv_path_FGREP="$GREP -F" 5533 else 5534 if test -z "$FGREP"; then 5535 ac_path_FGREP_found=false 5536 # Loop through the user's path and test for each of PROGNAME-LIST 5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5538for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5539do 5540 IFS=$as_save_IFS 5541 case $as_dir in #((( 5542 '') as_dir=./ ;; 5543 */) ;; 5544 *) as_dir=$as_dir/ ;; 5545 esac 5546 for ac_prog in fgrep 5547 do 5548 for ac_exec_ext in '' $ac_executable_extensions; do 5549 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5550 as_fn_executable_p "$ac_path_FGREP" || continue 5551# Check for GNU ac_path_FGREP and select it if it is found. 5552 # Check for GNU $ac_path_FGREP 5553case `"$ac_path_FGREP" --version 2>&1` in 5554*GNU*) 5555 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5556*) 5557 ac_count=0 5558 printf %s 0123456789 >"conftest.in" 5559 while : 5560 do 5561 cat "conftest.in" "conftest.in" >"conftest.tmp" 5562 mv "conftest.tmp" "conftest.in" 5563 cp "conftest.in" "conftest.nl" 5564 printf "%s\n" 'FGREP' >> "conftest.nl" 5565 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5567 as_fn_arith $ac_count + 1 && ac_count=$as_val 5568 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5569 # Best one so far, save it but keep looking for a better one 5570 ac_cv_path_FGREP="$ac_path_FGREP" 5571 ac_path_FGREP_max=$ac_count 5572 fi 5573 # 10*(2^10) chars as input seems more than enough 5574 test $ac_count -gt 10 && break 5575 done 5576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5577esac 5578 5579 $ac_path_FGREP_found && break 3 5580 done 5581 done 5582 done 5583IFS=$as_save_IFS 5584 if test -z "$ac_cv_path_FGREP"; then 5585 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5586 fi 5587else 5588 ac_cv_path_FGREP=$FGREP 5589fi 5590 5591 fi 5592fi 5593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5594printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5595 FGREP="$ac_cv_path_FGREP" 5596 5597 5598test -z "$GREP" && GREP=grep 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618# Check whether --with-gnu-ld was given. 5619if test ${with_gnu_ld+y} 5620then : 5621 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5622else $as_nop 5623 with_gnu_ld=no 5624fi 5625 5626ac_prog=ld 5627if test yes = "$GCC"; then 5628 # Check if gcc -print-prog-name=ld gives a path. 5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5630printf %s "checking for ld used by $CC... " >&6; } 5631 case $host in 5632 *-*-mingw*) 5633 # gcc leaves a trailing carriage return, which upsets mingw 5634 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5635 *) 5636 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5637 esac 5638 case $ac_prog in 5639 # Accept absolute paths. 5640 [\\/]* | ?:[\\/]*) 5641 re_direlt='/[^/][^/]*/\.\./' 5642 # Canonicalize the pathname of ld 5643 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5644 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5645 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5646 done 5647 test -z "$LD" && LD=$ac_prog 5648 ;; 5649 "") 5650 # If it fails, then pretend we aren't using GCC. 5651 ac_prog=ld 5652 ;; 5653 *) 5654 # If it is relative, then search for the first ld in PATH. 5655 with_gnu_ld=unknown 5656 ;; 5657 esac 5658elif test yes = "$with_gnu_ld"; then 5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5660printf %s "checking for GNU ld... " >&6; } 5661else 5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5663printf %s "checking for non-GNU ld... " >&6; } 5664fi 5665if test ${lt_cv_path_LD+y} 5666then : 5667 printf %s "(cached) " >&6 5668else $as_nop 5669 if test -z "$LD"; then 5670 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5671 for ac_dir in $PATH; do 5672 IFS=$lt_save_ifs 5673 test -z "$ac_dir" && ac_dir=. 5674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5675 lt_cv_path_LD=$ac_dir/$ac_prog 5676 # Check to see if the program is GNU ld. I'd rather use --version, 5677 # but apparently some variants of GNU ld only accept -v. 5678 # Break only if it was the GNU/non-GNU ld that we prefer. 5679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5680 *GNU* | *'with BFD'*) 5681 test no != "$with_gnu_ld" && break 5682 ;; 5683 *) 5684 test yes != "$with_gnu_ld" && break 5685 ;; 5686 esac 5687 fi 5688 done 5689 IFS=$lt_save_ifs 5690else 5691 lt_cv_path_LD=$LD # Let the user override the test with a path. 5692fi 5693fi 5694 5695LD=$lt_cv_path_LD 5696if test -n "$LD"; then 5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5698printf "%s\n" "$LD" >&6; } 5699else 5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5701printf "%s\n" "no" >&6; } 5702fi 5703test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5705printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5706if test ${lt_cv_prog_gnu_ld+y} 5707then : 5708 printf %s "(cached) " >&6 5709else $as_nop 5710 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5711case `$LD -v 2>&1 </dev/null` in 5712*GNU* | *'with BFD'*) 5713 lt_cv_prog_gnu_ld=yes 5714 ;; 5715*) 5716 lt_cv_prog_gnu_ld=no 5717 ;; 5718esac 5719fi 5720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5721printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5722with_gnu_ld=$lt_cv_prog_gnu_ld 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5733printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5734if test ${lt_cv_path_NM+y} 5735then : 5736 printf %s "(cached) " >&6 5737else $as_nop 5738 if test -n "$NM"; then 5739 # Let the user override the test. 5740 lt_cv_path_NM=$NM 5741else 5742 lt_nm_to_check=${ac_tool_prefix}nm 5743 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5744 lt_nm_to_check="$lt_nm_to_check nm" 5745 fi 5746 for lt_tmp_nm in $lt_nm_to_check; do 5747 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5748 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5749 IFS=$lt_save_ifs 5750 test -z "$ac_dir" && ac_dir=. 5751 tmp_nm=$ac_dir/$lt_tmp_nm 5752 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5753 # Check to see if the nm accepts a BSD-compat flag. 5754 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5755 # nm: unknown option "B" ignored 5756 # Tru64's nm complains that /dev/null is an invalid object file 5757 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5758 case $build_os in 5759 mingw*) lt_bad_file=conftest.nm/nofile ;; 5760 *) lt_bad_file=/dev/null ;; 5761 esac 5762 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5763 *$lt_bad_file* | *'Invalid file or object type'*) 5764 lt_cv_path_NM="$tmp_nm -B" 5765 break 2 5766 ;; 5767 *) 5768 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5769 */dev/null*) 5770 lt_cv_path_NM="$tmp_nm -p" 5771 break 2 5772 ;; 5773 *) 5774 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5775 continue # so that we can try to find one that supports BSD flags 5776 ;; 5777 esac 5778 ;; 5779 esac 5780 fi 5781 done 5782 IFS=$lt_save_ifs 5783 done 5784 : ${lt_cv_path_NM=no} 5785fi 5786fi 5787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5788printf "%s\n" "$lt_cv_path_NM" >&6; } 5789if test no != "$lt_cv_path_NM"; then 5790 NM=$lt_cv_path_NM 5791else 5792 # Didn't find any BSD compatible name lister, look for dumpbin. 5793 if test -n "$DUMPBIN"; then : 5794 # Let the user override the test. 5795 else 5796 if test -n "$ac_tool_prefix"; then 5797 for ac_prog in dumpbin "link -dump" 5798 do 5799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5800set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5802printf %s "checking for $ac_word... " >&6; } 5803if test ${ac_cv_prog_DUMPBIN+y} 5804then : 5805 printf %s "(cached) " >&6 5806else $as_nop 5807 if test -n "$DUMPBIN"; then 5808 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5809else 5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5811for as_dir in $PATH 5812do 5813 IFS=$as_save_IFS 5814 case $as_dir in #((( 5815 '') as_dir=./ ;; 5816 */) ;; 5817 *) as_dir=$as_dir/ ;; 5818 esac 5819 for ac_exec_ext in '' $ac_executable_extensions; do 5820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5821 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5823 break 2 5824 fi 5825done 5826 done 5827IFS=$as_save_IFS 5828 5829fi 5830fi 5831DUMPBIN=$ac_cv_prog_DUMPBIN 5832if test -n "$DUMPBIN"; then 5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5834printf "%s\n" "$DUMPBIN" >&6; } 5835else 5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5837printf "%s\n" "no" >&6; } 5838fi 5839 5840 5841 test -n "$DUMPBIN" && break 5842 done 5843fi 5844if test -z "$DUMPBIN"; then 5845 ac_ct_DUMPBIN=$DUMPBIN 5846 for ac_prog in dumpbin "link -dump" 5847do 5848 # Extract the first word of "$ac_prog", so it can be a program name with args. 5849set dummy $ac_prog; ac_word=$2 5850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5851printf %s "checking for $ac_word... " >&6; } 5852if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5853then : 5854 printf %s "(cached) " >&6 5855else $as_nop 5856 if test -n "$ac_ct_DUMPBIN"; then 5857 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5858else 5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5860for as_dir in $PATH 5861do 5862 IFS=$as_save_IFS 5863 case $as_dir in #((( 5864 '') as_dir=./ ;; 5865 */) ;; 5866 *) as_dir=$as_dir/ ;; 5867 esac 5868 for ac_exec_ext in '' $ac_executable_extensions; do 5869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5870 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5872 break 2 5873 fi 5874done 5875 done 5876IFS=$as_save_IFS 5877 5878fi 5879fi 5880ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5881if test -n "$ac_ct_DUMPBIN"; then 5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5883printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5884else 5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5886printf "%s\n" "no" >&6; } 5887fi 5888 5889 5890 test -n "$ac_ct_DUMPBIN" && break 5891done 5892 5893 if test "x$ac_ct_DUMPBIN" = x; then 5894 DUMPBIN=":" 5895 else 5896 case $cross_compiling:$ac_tool_warned in 5897yes:) 5898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5899printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5900ac_tool_warned=yes ;; 5901esac 5902 DUMPBIN=$ac_ct_DUMPBIN 5903 fi 5904fi 5905 5906 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5907 *COFF*) 5908 DUMPBIN="$DUMPBIN -symbols -headers" 5909 ;; 5910 *) 5911 DUMPBIN=: 5912 ;; 5913 esac 5914 fi 5915 5916 if test : != "$DUMPBIN"; then 5917 NM=$DUMPBIN 5918 fi 5919fi 5920test -z "$NM" && NM=nm 5921 5922 5923 5924 5925 5926 5927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5928printf %s "checking the name lister ($NM) interface... " >&6; } 5929if test ${lt_cv_nm_interface+y} 5930then : 5931 printf %s "(cached) " >&6 5932else $as_nop 5933 lt_cv_nm_interface="BSD nm" 5934 echo "int some_variable = 0;" > conftest.$ac_ext 5935 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5936 (eval "$ac_compile" 2>conftest.err) 5937 cat conftest.err >&5 5938 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5939 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5940 cat conftest.err >&5 5941 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5942 cat conftest.out >&5 5943 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5944 lt_cv_nm_interface="MS dumpbin" 5945 fi 5946 rm -f conftest* 5947fi 5948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5949printf "%s\n" "$lt_cv_nm_interface" >&6; } 5950 5951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5952printf %s "checking whether ln -s works... " >&6; } 5953LN_S=$as_ln_s 5954if test "$LN_S" = "ln -s"; then 5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5956printf "%s\n" "yes" >&6; } 5957else 5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5959printf "%s\n" "no, using $LN_S" >&6; } 5960fi 5961 5962# find the maximum length of command line arguments 5963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5964printf %s "checking the maximum length of command line arguments... " >&6; } 5965if test ${lt_cv_sys_max_cmd_len+y} 5966then : 5967 printf %s "(cached) " >&6 5968else $as_nop 5969 i=0 5970 teststring=ABCD 5971 5972 case $build_os in 5973 msdosdjgpp*) 5974 # On DJGPP, this test can blow up pretty badly due to problems in libc 5975 # (any single argument exceeding 2000 bytes causes a buffer overrun 5976 # during glob expansion). Even if it were fixed, the result of this 5977 # check would be larger than it should be. 5978 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5979 ;; 5980 5981 gnu*) 5982 # Under GNU Hurd, this test is not required because there is 5983 # no limit to the length of command line arguments. 5984 # Libtool will interpret -1 as no limit whatsoever 5985 lt_cv_sys_max_cmd_len=-1; 5986 ;; 5987 5988 cygwin* | mingw* | cegcc*) 5989 # On Win9x/ME, this test blows up -- it succeeds, but takes 5990 # about 5 minutes as the teststring grows exponentially. 5991 # Worse, since 9x/ME are not pre-emptively multitasking, 5992 # you end up with a "frozen" computer, even though with patience 5993 # the test eventually succeeds (with a max line length of 256k). 5994 # Instead, let's just punt: use the minimum linelength reported by 5995 # all of the supported platforms: 8192 (on NT/2K/XP). 5996 lt_cv_sys_max_cmd_len=8192; 5997 ;; 5998 5999 mint*) 6000 # On MiNT this can take a long time and run out of memory. 6001 lt_cv_sys_max_cmd_len=8192; 6002 ;; 6003 6004 amigaos*) 6005 # On AmigaOS with pdksh, this test takes hours, literally. 6006 # So we just punt and use a minimum line length of 8192. 6007 lt_cv_sys_max_cmd_len=8192; 6008 ;; 6009 6010 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6011 # This has been around since 386BSD, at least. Likely further. 6012 if test -x /sbin/sysctl; then 6013 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6014 elif test -x /usr/sbin/sysctl; then 6015 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6016 else 6017 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6018 fi 6019 # And add a safety zone 6020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6022 ;; 6023 6024 interix*) 6025 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6026 lt_cv_sys_max_cmd_len=196608 6027 ;; 6028 6029 os2*) 6030 # The test takes a long time on OS/2. 6031 lt_cv_sys_max_cmd_len=8192 6032 ;; 6033 6034 osf*) 6035 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6036 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6037 # nice to cause kernel panics so lets avoid the loop below. 6038 # First set a reasonable default. 6039 lt_cv_sys_max_cmd_len=16384 6040 # 6041 if test -x /sbin/sysconfig; then 6042 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6043 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6044 esac 6045 fi 6046 ;; 6047 sco3.2v5*) 6048 lt_cv_sys_max_cmd_len=102400 6049 ;; 6050 sysv5* | sco5v6* | sysv4.2uw2*) 6051 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6052 if test -n "$kargmax"; then 6053 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6054 else 6055 lt_cv_sys_max_cmd_len=32768 6056 fi 6057 ;; 6058 *) 6059 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6060 if test -n "$lt_cv_sys_max_cmd_len" && \ 6061 test undefined != "$lt_cv_sys_max_cmd_len"; then 6062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6064 else 6065 # Make teststring a little bigger before we do anything with it. 6066 # a 1K string should be a reasonable start. 6067 for i in 1 2 3 4 5 6 7 8; do 6068 teststring=$teststring$teststring 6069 done 6070 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6071 # If test is not a shell built-in, we'll probably end up computing a 6072 # maximum length that is only half of the actual maximum length, but 6073 # we can't tell. 6074 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6075 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6076 test 17 != "$i" # 1/2 MB should be enough 6077 do 6078 i=`expr $i + 1` 6079 teststring=$teststring$teststring 6080 done 6081 # Only check the string length outside the loop. 6082 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6083 teststring= 6084 # Add a significant safety factor because C++ compilers can tack on 6085 # massive amounts of additional arguments before passing them to the 6086 # linker. It appears as though 1/2 is a usable value. 6087 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6088 fi 6089 ;; 6090 esac 6091 6092fi 6093 6094if test -n "$lt_cv_sys_max_cmd_len"; then 6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6096printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6097else 6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6099printf "%s\n" "none" >&6; } 6100fi 6101max_cmd_len=$lt_cv_sys_max_cmd_len 6102 6103 6104 6105 6106 6107 6108: ${CP="cp -f"} 6109: ${MV="mv -f"} 6110: ${RM="rm -f"} 6111 6112if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6113 lt_unset=unset 6114else 6115 lt_unset=false 6116fi 6117 6118 6119 6120 6121 6122# test EBCDIC or ASCII 6123case `echo X|tr X '\101'` in 6124 A) # ASCII based system 6125 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6126 lt_SP2NL='tr \040 \012' 6127 lt_NL2SP='tr \015\012 \040\040' 6128 ;; 6129 *) # EBCDIC based system 6130 lt_SP2NL='tr \100 \n' 6131 lt_NL2SP='tr \r\n \100\100' 6132 ;; 6133esac 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6144printf %s "checking how to convert $build file names to $host format... " >&6; } 6145if test ${lt_cv_to_host_file_cmd+y} 6146then : 6147 printf %s "(cached) " >&6 6148else $as_nop 6149 case $host in 6150 *-*-mingw* ) 6151 case $build in 6152 *-*-mingw* ) # actually msys 6153 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6154 ;; 6155 *-*-cygwin* ) 6156 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6157 ;; 6158 * ) # otherwise, assume *nix 6159 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6160 ;; 6161 esac 6162 ;; 6163 *-*-cygwin* ) 6164 case $build in 6165 *-*-mingw* ) # actually msys 6166 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6167 ;; 6168 *-*-cygwin* ) 6169 lt_cv_to_host_file_cmd=func_convert_file_noop 6170 ;; 6171 * ) # otherwise, assume *nix 6172 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6173 ;; 6174 esac 6175 ;; 6176 * ) # unhandled hosts (and "normal" native builds) 6177 lt_cv_to_host_file_cmd=func_convert_file_noop 6178 ;; 6179esac 6180 6181fi 6182 6183to_host_file_cmd=$lt_cv_to_host_file_cmd 6184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6185printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6186 6187 6188 6189 6190 6191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6192printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6193if test ${lt_cv_to_tool_file_cmd+y} 6194then : 6195 printf %s "(cached) " >&6 6196else $as_nop 6197 #assume ordinary cross tools, or native build. 6198lt_cv_to_tool_file_cmd=func_convert_file_noop 6199case $host in 6200 *-*-mingw* ) 6201 case $build in 6202 *-*-mingw* ) # actually msys 6203 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6204 ;; 6205 esac 6206 ;; 6207esac 6208 6209fi 6210 6211to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6213printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6214 6215 6216 6217 6218 6219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6220printf %s "checking for $LD option to reload object files... " >&6; } 6221if test ${lt_cv_ld_reload_flag+y} 6222then : 6223 printf %s "(cached) " >&6 6224else $as_nop 6225 lt_cv_ld_reload_flag='-r' 6226fi 6227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6228printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6229reload_flag=$lt_cv_ld_reload_flag 6230case $reload_flag in 6231"" | " "*) ;; 6232*) reload_flag=" $reload_flag" ;; 6233esac 6234reload_cmds='$LD$reload_flag -o $output$reload_objs' 6235case $host_os in 6236 cygwin* | mingw* | pw32* | cegcc*) 6237 if test yes != "$GCC"; then 6238 reload_cmds=false 6239 fi 6240 ;; 6241 darwin*) 6242 if test yes = "$GCC"; then 6243 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6244 else 6245 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6246 fi 6247 ;; 6248esac 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258if test -n "$ac_tool_prefix"; then 6259 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6260set dummy ${ac_tool_prefix}file; ac_word=$2 6261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6262printf %s "checking for $ac_word... " >&6; } 6263if test ${ac_cv_prog_FILECMD+y} 6264then : 6265 printf %s "(cached) " >&6 6266else $as_nop 6267 if test -n "$FILECMD"; then 6268 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6269else 6270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6271for as_dir in $PATH 6272do 6273 IFS=$as_save_IFS 6274 case $as_dir in #((( 6275 '') as_dir=./ ;; 6276 */) ;; 6277 *) as_dir=$as_dir/ ;; 6278 esac 6279 for ac_exec_ext in '' $ac_executable_extensions; do 6280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6281 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6283 break 2 6284 fi 6285done 6286 done 6287IFS=$as_save_IFS 6288 6289fi 6290fi 6291FILECMD=$ac_cv_prog_FILECMD 6292if test -n "$FILECMD"; then 6293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6294printf "%s\n" "$FILECMD" >&6; } 6295else 6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6297printf "%s\n" "no" >&6; } 6298fi 6299 6300 6301fi 6302if test -z "$ac_cv_prog_FILECMD"; then 6303 ac_ct_FILECMD=$FILECMD 6304 # Extract the first word of "file", so it can be a program name with args. 6305set dummy file; ac_word=$2 6306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6307printf %s "checking for $ac_word... " >&6; } 6308if test ${ac_cv_prog_ac_ct_FILECMD+y} 6309then : 6310 printf %s "(cached) " >&6 6311else $as_nop 6312 if test -n "$ac_ct_FILECMD"; then 6313 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6314else 6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6316for as_dir in $PATH 6317do 6318 IFS=$as_save_IFS 6319 case $as_dir in #((( 6320 '') as_dir=./ ;; 6321 */) ;; 6322 *) as_dir=$as_dir/ ;; 6323 esac 6324 for ac_exec_ext in '' $ac_executable_extensions; do 6325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6326 ac_cv_prog_ac_ct_FILECMD="file" 6327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6328 break 2 6329 fi 6330done 6331 done 6332IFS=$as_save_IFS 6333 6334fi 6335fi 6336ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6337if test -n "$ac_ct_FILECMD"; then 6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6339printf "%s\n" "$ac_ct_FILECMD" >&6; } 6340else 6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6342printf "%s\n" "no" >&6; } 6343fi 6344 6345 if test "x$ac_ct_FILECMD" = x; then 6346 FILECMD=":" 6347 else 6348 case $cross_compiling:$ac_tool_warned in 6349yes:) 6350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6351printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6352ac_tool_warned=yes ;; 6353esac 6354 FILECMD=$ac_ct_FILECMD 6355 fi 6356else 6357 FILECMD="$ac_cv_prog_FILECMD" 6358fi 6359 6360 6361 6362 6363 6364 6365 6366if test -n "$ac_tool_prefix"; then 6367 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6368set dummy ${ac_tool_prefix}objdump; ac_word=$2 6369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6370printf %s "checking for $ac_word... " >&6; } 6371if test ${ac_cv_prog_OBJDUMP+y} 6372then : 6373 printf %s "(cached) " >&6 6374else $as_nop 6375 if test -n "$OBJDUMP"; then 6376 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6377else 6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6379for as_dir in $PATH 6380do 6381 IFS=$as_save_IFS 6382 case $as_dir in #((( 6383 '') as_dir=./ ;; 6384 */) ;; 6385 *) as_dir=$as_dir/ ;; 6386 esac 6387 for ac_exec_ext in '' $ac_executable_extensions; do 6388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6389 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6391 break 2 6392 fi 6393done 6394 done 6395IFS=$as_save_IFS 6396 6397fi 6398fi 6399OBJDUMP=$ac_cv_prog_OBJDUMP 6400if test -n "$OBJDUMP"; then 6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6402printf "%s\n" "$OBJDUMP" >&6; } 6403else 6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6405printf "%s\n" "no" >&6; } 6406fi 6407 6408 6409fi 6410if test -z "$ac_cv_prog_OBJDUMP"; then 6411 ac_ct_OBJDUMP=$OBJDUMP 6412 # Extract the first word of "objdump", so it can be a program name with args. 6413set dummy objdump; ac_word=$2 6414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6415printf %s "checking for $ac_word... " >&6; } 6416if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6417then : 6418 printf %s "(cached) " >&6 6419else $as_nop 6420 if test -n "$ac_ct_OBJDUMP"; then 6421 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6422else 6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6424for as_dir in $PATH 6425do 6426 IFS=$as_save_IFS 6427 case $as_dir in #((( 6428 '') as_dir=./ ;; 6429 */) ;; 6430 *) as_dir=$as_dir/ ;; 6431 esac 6432 for ac_exec_ext in '' $ac_executable_extensions; do 6433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6434 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6436 break 2 6437 fi 6438done 6439 done 6440IFS=$as_save_IFS 6441 6442fi 6443fi 6444ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6445if test -n "$ac_ct_OBJDUMP"; then 6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6447printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6448else 6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6450printf "%s\n" "no" >&6; } 6451fi 6452 6453 if test "x$ac_ct_OBJDUMP" = x; then 6454 OBJDUMP="false" 6455 else 6456 case $cross_compiling:$ac_tool_warned in 6457yes:) 6458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6459printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6460ac_tool_warned=yes ;; 6461esac 6462 OBJDUMP=$ac_ct_OBJDUMP 6463 fi 6464else 6465 OBJDUMP="$ac_cv_prog_OBJDUMP" 6466fi 6467 6468test -z "$OBJDUMP" && OBJDUMP=objdump 6469 6470 6471 6472 6473 6474 6475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6476printf %s "checking how to recognize dependent libraries... " >&6; } 6477if test ${lt_cv_deplibs_check_method+y} 6478then : 6479 printf %s "(cached) " >&6 6480else $as_nop 6481 lt_cv_file_magic_cmd='$MAGIC_CMD' 6482lt_cv_file_magic_test_file= 6483lt_cv_deplibs_check_method='unknown' 6484# Need to set the preceding variable on all platforms that support 6485# interlibrary dependencies. 6486# 'none' -- dependencies not supported. 6487# 'unknown' -- same as none, but documents that we really don't know. 6488# 'pass_all' -- all dependencies passed with no checks. 6489# 'test_compile' -- check by making test program. 6490# 'file_magic [[regex]]' -- check by looking for files in library path 6491# that responds to the $file_magic_cmd with a given extended regex. 6492# If you have 'file' or equivalent on your system and you're not sure 6493# whether 'pass_all' will *always* work, you probably want this one. 6494 6495case $host_os in 6496aix[4-9]*) 6497 lt_cv_deplibs_check_method=pass_all 6498 ;; 6499 6500beos*) 6501 lt_cv_deplibs_check_method=pass_all 6502 ;; 6503 6504bsdi[45]*) 6505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6506 lt_cv_file_magic_cmd='$FILECMD -L' 6507 lt_cv_file_magic_test_file=/shlib/libc.so 6508 ;; 6509 6510cygwin*) 6511 # func_win32_libid is a shell function defined in ltmain.sh 6512 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6513 lt_cv_file_magic_cmd='func_win32_libid' 6514 ;; 6515 6516mingw* | pw32*) 6517 # Base MSYS/MinGW do not provide the 'file' command needed by 6518 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6519 # unless we find 'file', for example because we are cross-compiling. 6520 if ( file / ) >/dev/null 2>&1; then 6521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6522 lt_cv_file_magic_cmd='func_win32_libid' 6523 else 6524 # Keep this pattern in sync with the one in func_win32_libid. 6525 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6526 lt_cv_file_magic_cmd='$OBJDUMP -f' 6527 fi 6528 ;; 6529 6530cegcc*) 6531 # use the weaker test based on 'objdump'. See mingw*. 6532 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6533 lt_cv_file_magic_cmd='$OBJDUMP -f' 6534 ;; 6535 6536darwin* | rhapsody*) 6537 lt_cv_deplibs_check_method=pass_all 6538 ;; 6539 6540freebsd* | dragonfly* | midnightbsd*) 6541 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6542 case $host_cpu in 6543 i*86 ) 6544 # Not sure whether the presence of OpenBSD here was a mistake. 6545 # Let's accept both of them until this is cleared up. 6546 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6547 lt_cv_file_magic_cmd=$FILECMD 6548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6549 ;; 6550 esac 6551 else 6552 lt_cv_deplibs_check_method=pass_all 6553 fi 6554 ;; 6555 6556haiku*) 6557 lt_cv_deplibs_check_method=pass_all 6558 ;; 6559 6560hpux10.20* | hpux11*) 6561 lt_cv_file_magic_cmd=$FILECMD 6562 case $host_cpu in 6563 ia64*) 6564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6565 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6566 ;; 6567 hppa*64*) 6568 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]' 6569 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6570 ;; 6571 *) 6572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6573 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6574 ;; 6575 esac 6576 ;; 6577 6578interix[3-9]*) 6579 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6581 ;; 6582 6583irix5* | irix6* | nonstopux*) 6584 case $LD in 6585 *-32|*"-32 ") libmagic=32-bit;; 6586 *-n32|*"-n32 ") libmagic=N32;; 6587 *-64|*"-64 ") libmagic=64-bit;; 6588 *) libmagic=never-match;; 6589 esac 6590 lt_cv_deplibs_check_method=pass_all 6591 ;; 6592 6593# This must be glibc/ELF. 6594linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6595 lt_cv_deplibs_check_method=pass_all 6596 ;; 6597 6598netbsd*) 6599 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6601 else 6602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6603 fi 6604 ;; 6605 6606newos6*) 6607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6608 lt_cv_file_magic_cmd=$FILECMD 6609 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6610 ;; 6611 6612*nto* | *qnx*) 6613 lt_cv_deplibs_check_method=pass_all 6614 ;; 6615 6616openbsd* | bitrig*) 6617 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6619 else 6620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6621 fi 6622 ;; 6623 6624osf3* | osf4* | osf5*) 6625 lt_cv_deplibs_check_method=pass_all 6626 ;; 6627 6628rdos*) 6629 lt_cv_deplibs_check_method=pass_all 6630 ;; 6631 6632solaris*) 6633 lt_cv_deplibs_check_method=pass_all 6634 ;; 6635 6636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6637 lt_cv_deplibs_check_method=pass_all 6638 ;; 6639 6640sysv4 | sysv4.3*) 6641 case $host_vendor in 6642 motorola) 6643 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]' 6644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6645 ;; 6646 ncr) 6647 lt_cv_deplibs_check_method=pass_all 6648 ;; 6649 sequent) 6650 lt_cv_file_magic_cmd='/bin/file' 6651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6652 ;; 6653 sni) 6654 lt_cv_file_magic_cmd='/bin/file' 6655 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6656 lt_cv_file_magic_test_file=/lib/libc.so 6657 ;; 6658 siemens) 6659 lt_cv_deplibs_check_method=pass_all 6660 ;; 6661 pc) 6662 lt_cv_deplibs_check_method=pass_all 6663 ;; 6664 esac 6665 ;; 6666 6667tpf*) 6668 lt_cv_deplibs_check_method=pass_all 6669 ;; 6670os2*) 6671 lt_cv_deplibs_check_method=pass_all 6672 ;; 6673esac 6674 6675fi 6676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6677printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6678 6679file_magic_glob= 6680want_nocaseglob=no 6681if test "$build" = "$host"; then 6682 case $host_os in 6683 mingw* | pw32*) 6684 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6685 want_nocaseglob=yes 6686 else 6687 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6688 fi 6689 ;; 6690 esac 6691fi 6692 6693file_magic_cmd=$lt_cv_file_magic_cmd 6694deplibs_check_method=$lt_cv_deplibs_check_method 6695test -z "$deplibs_check_method" && deplibs_check_method=unknown 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718if test -n "$ac_tool_prefix"; then 6719 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6720set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6722printf %s "checking for $ac_word... " >&6; } 6723if test ${ac_cv_prog_DLLTOOL+y} 6724then : 6725 printf %s "(cached) " >&6 6726else $as_nop 6727 if test -n "$DLLTOOL"; then 6728 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6729else 6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6731for as_dir in $PATH 6732do 6733 IFS=$as_save_IFS 6734 case $as_dir in #((( 6735 '') as_dir=./ ;; 6736 */) ;; 6737 *) as_dir=$as_dir/ ;; 6738 esac 6739 for ac_exec_ext in '' $ac_executable_extensions; do 6740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6741 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6743 break 2 6744 fi 6745done 6746 done 6747IFS=$as_save_IFS 6748 6749fi 6750fi 6751DLLTOOL=$ac_cv_prog_DLLTOOL 6752if test -n "$DLLTOOL"; then 6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6754printf "%s\n" "$DLLTOOL" >&6; } 6755else 6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6757printf "%s\n" "no" >&6; } 6758fi 6759 6760 6761fi 6762if test -z "$ac_cv_prog_DLLTOOL"; then 6763 ac_ct_DLLTOOL=$DLLTOOL 6764 # Extract the first word of "dlltool", so it can be a program name with args. 6765set dummy dlltool; ac_word=$2 6766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6767printf %s "checking for $ac_word... " >&6; } 6768if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6769then : 6770 printf %s "(cached) " >&6 6771else $as_nop 6772 if test -n "$ac_ct_DLLTOOL"; then 6773 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6774else 6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6776for as_dir in $PATH 6777do 6778 IFS=$as_save_IFS 6779 case $as_dir in #((( 6780 '') as_dir=./ ;; 6781 */) ;; 6782 *) as_dir=$as_dir/ ;; 6783 esac 6784 for ac_exec_ext in '' $ac_executable_extensions; do 6785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6786 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6788 break 2 6789 fi 6790done 6791 done 6792IFS=$as_save_IFS 6793 6794fi 6795fi 6796ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6797if test -n "$ac_ct_DLLTOOL"; then 6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6799printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6800else 6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6802printf "%s\n" "no" >&6; } 6803fi 6804 6805 if test "x$ac_ct_DLLTOOL" = x; then 6806 DLLTOOL="false" 6807 else 6808 case $cross_compiling:$ac_tool_warned in 6809yes:) 6810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6811printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6812ac_tool_warned=yes ;; 6813esac 6814 DLLTOOL=$ac_ct_DLLTOOL 6815 fi 6816else 6817 DLLTOOL="$ac_cv_prog_DLLTOOL" 6818fi 6819 6820test -z "$DLLTOOL" && DLLTOOL=dlltool 6821 6822 6823 6824 6825 6826 6827 6828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6829printf %s "checking how to associate runtime and link libraries... " >&6; } 6830if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6831then : 6832 printf %s "(cached) " >&6 6833else $as_nop 6834 lt_cv_sharedlib_from_linklib_cmd='unknown' 6835 6836case $host_os in 6837cygwin* | mingw* | pw32* | cegcc*) 6838 # two different shell functions defined in ltmain.sh; 6839 # decide which one to use based on capabilities of $DLLTOOL 6840 case `$DLLTOOL --help 2>&1` in 6841 *--identify-strict*) 6842 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6843 ;; 6844 *) 6845 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6846 ;; 6847 esac 6848 ;; 6849*) 6850 # fallback: assume linklib IS sharedlib 6851 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6852 ;; 6853esac 6854 6855fi 6856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6857printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6858sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6859test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6860 6861 6862 6863 6864 6865 6866 6867if test -n "$ac_tool_prefix"; then 6868 for ac_prog in ar 6869 do 6870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6871set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6873printf %s "checking for $ac_word... " >&6; } 6874if test ${ac_cv_prog_AR+y} 6875then : 6876 printf %s "(cached) " >&6 6877else $as_nop 6878 if test -n "$AR"; then 6879 ac_cv_prog_AR="$AR" # Let the user override the test. 6880else 6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6882for as_dir in $PATH 6883do 6884 IFS=$as_save_IFS 6885 case $as_dir in #((( 6886 '') as_dir=./ ;; 6887 */) ;; 6888 *) as_dir=$as_dir/ ;; 6889 esac 6890 for ac_exec_ext in '' $ac_executable_extensions; do 6891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6892 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6894 break 2 6895 fi 6896done 6897 done 6898IFS=$as_save_IFS 6899 6900fi 6901fi 6902AR=$ac_cv_prog_AR 6903if test -n "$AR"; then 6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6905printf "%s\n" "$AR" >&6; } 6906else 6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6908printf "%s\n" "no" >&6; } 6909fi 6910 6911 6912 test -n "$AR" && break 6913 done 6914fi 6915if test -z "$AR"; then 6916 ac_ct_AR=$AR 6917 for ac_prog in ar 6918do 6919 # Extract the first word of "$ac_prog", so it can be a program name with args. 6920set dummy $ac_prog; ac_word=$2 6921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6922printf %s "checking for $ac_word... " >&6; } 6923if test ${ac_cv_prog_ac_ct_AR+y} 6924then : 6925 printf %s "(cached) " >&6 6926else $as_nop 6927 if test -n "$ac_ct_AR"; then 6928 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6929else 6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6931for as_dir in $PATH 6932do 6933 IFS=$as_save_IFS 6934 case $as_dir in #((( 6935 '') as_dir=./ ;; 6936 */) ;; 6937 *) as_dir=$as_dir/ ;; 6938 esac 6939 for ac_exec_ext in '' $ac_executable_extensions; do 6940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6941 ac_cv_prog_ac_ct_AR="$ac_prog" 6942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6943 break 2 6944 fi 6945done 6946 done 6947IFS=$as_save_IFS 6948 6949fi 6950fi 6951ac_ct_AR=$ac_cv_prog_ac_ct_AR 6952if test -n "$ac_ct_AR"; then 6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6954printf "%s\n" "$ac_ct_AR" >&6; } 6955else 6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6957printf "%s\n" "no" >&6; } 6958fi 6959 6960 6961 test -n "$ac_ct_AR" && break 6962done 6963 6964 if test "x$ac_ct_AR" = x; then 6965 AR="false" 6966 else 6967 case $cross_compiling:$ac_tool_warned in 6968yes:) 6969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6970printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6971ac_tool_warned=yes ;; 6972esac 6973 AR=$ac_ct_AR 6974 fi 6975fi 6976 6977: ${AR=ar} 6978 6979 6980 6981 6982 6983 6984# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6985# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6986# higher priority because thats what people were doing historically (setting 6987# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6988# variable obsoleted/removed. 6989 6990test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6991lt_ar_flags=$AR_FLAGS 6992 6993 6994 6995 6996 6997 6998# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6999# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7000 7001 7002 7003 7004 7005 7006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7007printf %s "checking for archiver @FILE support... " >&6; } 7008if test ${lt_cv_ar_at_file+y} 7009then : 7010 printf %s "(cached) " >&6 7011else $as_nop 7012 lt_cv_ar_at_file=no 7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7014/* end confdefs.h. */ 7015 7016int 7017main (void) 7018{ 7019 7020 ; 7021 return 0; 7022} 7023_ACEOF 7024if ac_fn_c_try_compile "$LINENO" 7025then : 7026 echo conftest.$ac_objext > conftest.lst 7027 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7029 (eval $lt_ar_try) 2>&5 7030 ac_status=$? 7031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7032 test $ac_status = 0; } 7033 if test 0 -eq "$ac_status"; then 7034 # Ensure the archiver fails upon bogus file names. 7035 rm -f conftest.$ac_objext libconftest.a 7036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7037 (eval $lt_ar_try) 2>&5 7038 ac_status=$? 7039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7040 test $ac_status = 0; } 7041 if test 0 -ne "$ac_status"; then 7042 lt_cv_ar_at_file=@ 7043 fi 7044 fi 7045 rm -f conftest.* libconftest.a 7046 7047fi 7048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7049 7050fi 7051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7052printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7053 7054if test no = "$lt_cv_ar_at_file"; then 7055 archiver_list_spec= 7056else 7057 archiver_list_spec=$lt_cv_ar_at_file 7058fi 7059 7060 7061 7062 7063 7064 7065 7066if test -n "$ac_tool_prefix"; then 7067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7068set dummy ${ac_tool_prefix}strip; ac_word=$2 7069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7070printf %s "checking for $ac_word... " >&6; } 7071if test ${ac_cv_prog_STRIP+y} 7072then : 7073 printf %s "(cached) " >&6 7074else $as_nop 7075 if test -n "$STRIP"; then 7076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7077else 7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7079for as_dir in $PATH 7080do 7081 IFS=$as_save_IFS 7082 case $as_dir in #((( 7083 '') as_dir=./ ;; 7084 */) ;; 7085 *) as_dir=$as_dir/ ;; 7086 esac 7087 for ac_exec_ext in '' $ac_executable_extensions; do 7088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7089 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7091 break 2 7092 fi 7093done 7094 done 7095IFS=$as_save_IFS 7096 7097fi 7098fi 7099STRIP=$ac_cv_prog_STRIP 7100if test -n "$STRIP"; then 7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7102printf "%s\n" "$STRIP" >&6; } 7103else 7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7105printf "%s\n" "no" >&6; } 7106fi 7107 7108 7109fi 7110if test -z "$ac_cv_prog_STRIP"; then 7111 ac_ct_STRIP=$STRIP 7112 # Extract the first word of "strip", so it can be a program name with args. 7113set dummy strip; ac_word=$2 7114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7115printf %s "checking for $ac_word... " >&6; } 7116if test ${ac_cv_prog_ac_ct_STRIP+y} 7117then : 7118 printf %s "(cached) " >&6 7119else $as_nop 7120 if test -n "$ac_ct_STRIP"; then 7121 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7122else 7123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7124for as_dir in $PATH 7125do 7126 IFS=$as_save_IFS 7127 case $as_dir in #((( 7128 '') as_dir=./ ;; 7129 */) ;; 7130 *) as_dir=$as_dir/ ;; 7131 esac 7132 for ac_exec_ext in '' $ac_executable_extensions; do 7133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7134 ac_cv_prog_ac_ct_STRIP="strip" 7135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7136 break 2 7137 fi 7138done 7139 done 7140IFS=$as_save_IFS 7141 7142fi 7143fi 7144ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7145if test -n "$ac_ct_STRIP"; then 7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7147printf "%s\n" "$ac_ct_STRIP" >&6; } 7148else 7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7150printf "%s\n" "no" >&6; } 7151fi 7152 7153 if test "x$ac_ct_STRIP" = x; then 7154 STRIP=":" 7155 else 7156 case $cross_compiling:$ac_tool_warned in 7157yes:) 7158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7159printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7160ac_tool_warned=yes ;; 7161esac 7162 STRIP=$ac_ct_STRIP 7163 fi 7164else 7165 STRIP="$ac_cv_prog_STRIP" 7166fi 7167 7168test -z "$STRIP" && STRIP=: 7169 7170 7171 7172 7173 7174 7175if test -n "$ac_tool_prefix"; then 7176 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7177set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7179printf %s "checking for $ac_word... " >&6; } 7180if test ${ac_cv_prog_RANLIB+y} 7181then : 7182 printf %s "(cached) " >&6 7183else $as_nop 7184 if test -n "$RANLIB"; then 7185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7186else 7187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7188for as_dir in $PATH 7189do 7190 IFS=$as_save_IFS 7191 case $as_dir in #((( 7192 '') as_dir=./ ;; 7193 */) ;; 7194 *) as_dir=$as_dir/ ;; 7195 esac 7196 for ac_exec_ext in '' $ac_executable_extensions; do 7197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7198 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7200 break 2 7201 fi 7202done 7203 done 7204IFS=$as_save_IFS 7205 7206fi 7207fi 7208RANLIB=$ac_cv_prog_RANLIB 7209if test -n "$RANLIB"; then 7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7211printf "%s\n" "$RANLIB" >&6; } 7212else 7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7214printf "%s\n" "no" >&6; } 7215fi 7216 7217 7218fi 7219if test -z "$ac_cv_prog_RANLIB"; then 7220 ac_ct_RANLIB=$RANLIB 7221 # Extract the first word of "ranlib", so it can be a program name with args. 7222set dummy ranlib; ac_word=$2 7223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7224printf %s "checking for $ac_word... " >&6; } 7225if test ${ac_cv_prog_ac_ct_RANLIB+y} 7226then : 7227 printf %s "(cached) " >&6 7228else $as_nop 7229 if test -n "$ac_ct_RANLIB"; then 7230 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7231else 7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7233for as_dir in $PATH 7234do 7235 IFS=$as_save_IFS 7236 case $as_dir in #((( 7237 '') as_dir=./ ;; 7238 */) ;; 7239 *) as_dir=$as_dir/ ;; 7240 esac 7241 for ac_exec_ext in '' $ac_executable_extensions; do 7242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7243 ac_cv_prog_ac_ct_RANLIB="ranlib" 7244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7245 break 2 7246 fi 7247done 7248 done 7249IFS=$as_save_IFS 7250 7251fi 7252fi 7253ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7254if test -n "$ac_ct_RANLIB"; then 7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7256printf "%s\n" "$ac_ct_RANLIB" >&6; } 7257else 7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259printf "%s\n" "no" >&6; } 7260fi 7261 7262 if test "x$ac_ct_RANLIB" = x; then 7263 RANLIB=":" 7264 else 7265 case $cross_compiling:$ac_tool_warned in 7266yes:) 7267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7268printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7269ac_tool_warned=yes ;; 7270esac 7271 RANLIB=$ac_ct_RANLIB 7272 fi 7273else 7274 RANLIB="$ac_cv_prog_RANLIB" 7275fi 7276 7277test -z "$RANLIB" && RANLIB=: 7278 7279 7280 7281 7282 7283 7284# Determine commands to create old-style static archives. 7285old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7286old_postinstall_cmds='chmod 644 $oldlib' 7287old_postuninstall_cmds= 7288 7289if test -n "$RANLIB"; then 7290 case $host_os in 7291 bitrig* | openbsd*) 7292 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7293 ;; 7294 *) 7295 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7296 ;; 7297 esac 7298 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7299fi 7300 7301case $host_os in 7302 darwin*) 7303 lock_old_archive_extraction=yes ;; 7304 *) 7305 lock_old_archive_extraction=no ;; 7306esac 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346# If no C compiler was specified, use CC. 7347LTCC=${LTCC-"$CC"} 7348 7349# If no C compiler flags were specified, use CFLAGS. 7350LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7351 7352# Allow CC to be a program name with arguments. 7353compiler=$CC 7354 7355 7356# Check for command to grab the raw symbol name followed by C symbol from nm. 7357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7358printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7359if test ${lt_cv_sys_global_symbol_pipe+y} 7360then : 7361 printf %s "(cached) " >&6 7362else $as_nop 7363 7364# These are sane defaults that work on at least a few old systems. 7365# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7366 7367# Character class describing NM global symbol codes. 7368symcode='[BCDEGRST]' 7369 7370# Regexp to match symbols that can be accessed directly from C. 7371sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7372 7373# Define system-specific variables. 7374case $host_os in 7375aix*) 7376 symcode='[BCDT]' 7377 ;; 7378cygwin* | mingw* | pw32* | cegcc*) 7379 symcode='[ABCDGISTW]' 7380 ;; 7381hpux*) 7382 if test ia64 = "$host_cpu"; then 7383 symcode='[ABCDEGRST]' 7384 fi 7385 ;; 7386irix* | nonstopux*) 7387 symcode='[BCDEGRST]' 7388 ;; 7389osf*) 7390 symcode='[BCDEGQRST]' 7391 ;; 7392solaris*) 7393 symcode='[BDRT]' 7394 ;; 7395sco3.2v5*) 7396 symcode='[DT]' 7397 ;; 7398sysv4.2uw2*) 7399 symcode='[DT]' 7400 ;; 7401sysv5* | sco5v6* | unixware* | OpenUNIX*) 7402 symcode='[ABDT]' 7403 ;; 7404sysv4) 7405 symcode='[DFNSTU]' 7406 ;; 7407esac 7408 7409# If we're using GNU nm, then use its standard symbol codes. 7410case `$NM -V 2>&1` in 7411*GNU* | *'with BFD'*) 7412 symcode='[ABCDGIRSTW]' ;; 7413esac 7414 7415if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7416 # Gets list of data symbols to import. 7417 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7418 # Adjust the below global symbol transforms to fixup imported variables. 7419 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7420 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7421 lt_c_name_lib_hook="\ 7422 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7423 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7424else 7425 # Disable hooks by default. 7426 lt_cv_sys_global_symbol_to_import= 7427 lt_cdecl_hook= 7428 lt_c_name_hook= 7429 lt_c_name_lib_hook= 7430fi 7431 7432# Transform an extracted symbol line into a proper C declaration. 7433# Some systems (esp. on ia64) link data and code symbols differently, 7434# so use this general approach. 7435lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7436$lt_cdecl_hook\ 7437" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7438" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7439 7440# Transform an extracted symbol line into symbol name and symbol address 7441lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7442$lt_c_name_hook\ 7443" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7444" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7445 7446# Transform an extracted symbol line into symbol name with lib prefix and 7447# symbol address. 7448lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7449$lt_c_name_lib_hook\ 7450" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7451" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7452" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7453 7454# Handle CRLF in mingw tool chain 7455opt_cr= 7456case $build_os in 7457mingw*) 7458 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7459 ;; 7460esac 7461 7462# Try without a prefix underscore, then with it. 7463for ac_symprfx in "" "_"; do 7464 7465 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7466 symxfrm="\\1 $ac_symprfx\\2 \\2" 7467 7468 # Write the raw and C identifiers. 7469 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7470 # Fake it for dumpbin and say T for any non-static function, 7471 # D for any global variable and I for any imported variable. 7472 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7473 # which start with @ or ?. 7474 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7475" {last_section=section; section=\$ 3};"\ 7476" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7477" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7478" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7479" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7480" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7481" \$ 0!~/External *\|/{next};"\ 7482" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7483" {if(hide[section]) next};"\ 7484" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7485" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7486" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7487" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7488" ' prfx=^$ac_symprfx" 7489 else 7490 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7491 fi 7492 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7493 7494 # Check to see that the pipe works correctly. 7495 pipe_works=no 7496 7497 rm -f conftest* 7498 cat > conftest.$ac_ext <<_LT_EOF 7499#ifdef __cplusplus 7500extern "C" { 7501#endif 7502char nm_test_var; 7503void nm_test_func(void); 7504void nm_test_func(void){} 7505#ifdef __cplusplus 7506} 7507#endif 7508int main(){nm_test_var='a';nm_test_func();return(0);} 7509_LT_EOF 7510 7511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7512 (eval $ac_compile) 2>&5 7513 ac_status=$? 7514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7515 test $ac_status = 0; }; then 7516 # Now try to grab the symbols. 7517 nlist=conftest.nm 7518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7519 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7520 ac_status=$? 7521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7522 test $ac_status = 0; } && test -s "$nlist"; then 7523 # Try sorting and uniquifying the output. 7524 if sort "$nlist" | uniq > "$nlist"T; then 7525 mv -f "$nlist"T "$nlist" 7526 else 7527 rm -f "$nlist"T 7528 fi 7529 7530 # Make sure that we snagged all the symbols we need. 7531 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7532 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7533 cat <<_LT_EOF > conftest.$ac_ext 7534/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7535#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7536/* DATA imports from DLLs on WIN32 can't be const, because runtime 7537 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7538# define LT_DLSYM_CONST 7539#elif defined __osf__ 7540/* This system does not cope well with relocations in const data. */ 7541# define LT_DLSYM_CONST 7542#else 7543# define LT_DLSYM_CONST const 7544#endif 7545 7546#ifdef __cplusplus 7547extern "C" { 7548#endif 7549 7550_LT_EOF 7551 # Now generate the symbol file. 7552 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7553 7554 cat <<_LT_EOF >> conftest.$ac_ext 7555 7556/* The mapping between symbol names and symbols. */ 7557LT_DLSYM_CONST struct { 7558 const char *name; 7559 void *address; 7560} 7561lt__PROGRAM__LTX_preloaded_symbols[] = 7562{ 7563 { "@PROGRAM@", (void *) 0 }, 7564_LT_EOF 7565 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7566 cat <<\_LT_EOF >> conftest.$ac_ext 7567 {0, (void *) 0} 7568}; 7569 7570/* This works around a problem in FreeBSD linker */ 7571#ifdef FREEBSD_WORKAROUND 7572static const void *lt_preloaded_setup() { 7573 return lt__PROGRAM__LTX_preloaded_symbols; 7574} 7575#endif 7576 7577#ifdef __cplusplus 7578} 7579#endif 7580_LT_EOF 7581 # Now try linking the two files. 7582 mv conftest.$ac_objext conftstm.$ac_objext 7583 lt_globsym_save_LIBS=$LIBS 7584 lt_globsym_save_CFLAGS=$CFLAGS 7585 LIBS=conftstm.$ac_objext 7586 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7588 (eval $ac_link) 2>&5 7589 ac_status=$? 7590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7591 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7592 pipe_works=yes 7593 fi 7594 LIBS=$lt_globsym_save_LIBS 7595 CFLAGS=$lt_globsym_save_CFLAGS 7596 else 7597 echo "cannot find nm_test_func in $nlist" >&5 7598 fi 7599 else 7600 echo "cannot find nm_test_var in $nlist" >&5 7601 fi 7602 else 7603 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7604 fi 7605 else 7606 echo "$progname: failed program was:" >&5 7607 cat conftest.$ac_ext >&5 7608 fi 7609 rm -rf conftest* conftst* 7610 7611 # Do not use the global_symbol_pipe unless it works. 7612 if test yes = "$pipe_works"; then 7613 break 7614 else 7615 lt_cv_sys_global_symbol_pipe= 7616 fi 7617done 7618 7619fi 7620 7621if test -z "$lt_cv_sys_global_symbol_pipe"; then 7622 lt_cv_sys_global_symbol_to_cdecl= 7623fi 7624if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7626printf "%s\n" "failed" >&6; } 7627else 7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7629printf "%s\n" "ok" >&6; } 7630fi 7631 7632# Response file support. 7633if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7634 nm_file_list_spec='@' 7635elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7636 nm_file_list_spec='@' 7637fi 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7676printf %s "checking for sysroot... " >&6; } 7677 7678# Check whether --with-sysroot was given. 7679if test ${with_sysroot+y} 7680then : 7681 withval=$with_sysroot; 7682else $as_nop 7683 with_sysroot=no 7684fi 7685 7686 7687lt_sysroot= 7688case $with_sysroot in #( 7689 yes) 7690 if test yes = "$GCC"; then 7691 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7692 fi 7693 ;; #( 7694 /*) 7695 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7696 ;; #( 7697 no|'') 7698 ;; #( 7699 *) 7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7701printf "%s\n" "$with_sysroot" >&6; } 7702 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7703 ;; 7704esac 7705 7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7707printf "%s\n" "${lt_sysroot:-no}" >&6; } 7708 7709 7710 7711 7712 7713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7714printf %s "checking for a working dd... " >&6; } 7715if test ${ac_cv_path_lt_DD+y} 7716then : 7717 printf %s "(cached) " >&6 7718else $as_nop 7719 printf 0123456789abcdef0123456789abcdef >conftest.i 7720cat conftest.i conftest.i >conftest2.i 7721: ${lt_DD:=$DD} 7722if test -z "$lt_DD"; then 7723 ac_path_lt_DD_found=false 7724 # Loop through the user's path and test for each of PROGNAME-LIST 7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7726for as_dir in $PATH 7727do 7728 IFS=$as_save_IFS 7729 case $as_dir in #((( 7730 '') as_dir=./ ;; 7731 */) ;; 7732 *) as_dir=$as_dir/ ;; 7733 esac 7734 for ac_prog in dd 7735 do 7736 for ac_exec_ext in '' $ac_executable_extensions; do 7737 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7738 as_fn_executable_p "$ac_path_lt_DD" || continue 7739if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7740 cmp -s conftest.i conftest.out \ 7741 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7742fi 7743 $ac_path_lt_DD_found && break 3 7744 done 7745 done 7746 done 7747IFS=$as_save_IFS 7748 if test -z "$ac_cv_path_lt_DD"; then 7749 : 7750 fi 7751else 7752 ac_cv_path_lt_DD=$lt_DD 7753fi 7754 7755rm -f conftest.i conftest2.i conftest.out 7756fi 7757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7758printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7759 7760 7761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7762printf %s "checking how to truncate binary pipes... " >&6; } 7763if test ${lt_cv_truncate_bin+y} 7764then : 7765 printf %s "(cached) " >&6 7766else $as_nop 7767 printf 0123456789abcdef0123456789abcdef >conftest.i 7768cat conftest.i conftest.i >conftest2.i 7769lt_cv_truncate_bin= 7770if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7771 cmp -s conftest.i conftest.out \ 7772 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7773fi 7774rm -f conftest.i conftest2.i conftest.out 7775test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7776fi 7777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7778printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7779 7780 7781 7782 7783 7784 7785 7786# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7787func_cc_basename () 7788{ 7789 for cc_temp in $*""; do 7790 case $cc_temp in 7791 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7792 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7793 \-*) ;; 7794 *) break;; 7795 esac 7796 done 7797 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7798} 7799 7800# Check whether --enable-libtool-lock was given. 7801if test ${enable_libtool_lock+y} 7802then : 7803 enableval=$enable_libtool_lock; 7804fi 7805 7806test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7807 7808# Some flags need to be propagated to the compiler or linker for good 7809# libtool support. 7810case $host in 7811ia64-*-hpux*) 7812 # Find out what ABI is being produced by ac_compile, and set mode 7813 # options accordingly. 7814 echo 'int i;' > conftest.$ac_ext 7815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7816 (eval $ac_compile) 2>&5 7817 ac_status=$? 7818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7819 test $ac_status = 0; }; then 7820 case `$FILECMD conftest.$ac_objext` in 7821 *ELF-32*) 7822 HPUX_IA64_MODE=32 7823 ;; 7824 *ELF-64*) 7825 HPUX_IA64_MODE=64 7826 ;; 7827 esac 7828 fi 7829 rm -rf conftest* 7830 ;; 7831*-*-irix6*) 7832 # Find out what ABI is being produced by ac_compile, and set linker 7833 # options accordingly. 7834 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7836 (eval $ac_compile) 2>&5 7837 ac_status=$? 7838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7839 test $ac_status = 0; }; then 7840 if test yes = "$lt_cv_prog_gnu_ld"; then 7841 case `$FILECMD conftest.$ac_objext` in 7842 *32-bit*) 7843 LD="${LD-ld} -melf32bsmip" 7844 ;; 7845 *N32*) 7846 LD="${LD-ld} -melf32bmipn32" 7847 ;; 7848 *64-bit*) 7849 LD="${LD-ld} -melf64bmip" 7850 ;; 7851 esac 7852 else 7853 case `$FILECMD conftest.$ac_objext` in 7854 *32-bit*) 7855 LD="${LD-ld} -32" 7856 ;; 7857 *N32*) 7858 LD="${LD-ld} -n32" 7859 ;; 7860 *64-bit*) 7861 LD="${LD-ld} -64" 7862 ;; 7863 esac 7864 fi 7865 fi 7866 rm -rf conftest* 7867 ;; 7868 7869mips64*-*linux*) 7870 # Find out what ABI is being produced by ac_compile, and set linker 7871 # options accordingly. 7872 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7874 (eval $ac_compile) 2>&5 7875 ac_status=$? 7876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7877 test $ac_status = 0; }; then 7878 emul=elf 7879 case `$FILECMD conftest.$ac_objext` in 7880 *32-bit*) 7881 emul="${emul}32" 7882 ;; 7883 *64-bit*) 7884 emul="${emul}64" 7885 ;; 7886 esac 7887 case `$FILECMD conftest.$ac_objext` in 7888 *MSB*) 7889 emul="${emul}btsmip" 7890 ;; 7891 *LSB*) 7892 emul="${emul}ltsmip" 7893 ;; 7894 esac 7895 case `$FILECMD conftest.$ac_objext` in 7896 *N32*) 7897 emul="${emul}n32" 7898 ;; 7899 esac 7900 LD="${LD-ld} -m $emul" 7901 fi 7902 rm -rf conftest* 7903 ;; 7904 7905x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7906s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7907 # Find out what ABI is being produced by ac_compile, and set linker 7908 # options accordingly. Note that the listed cases only cover the 7909 # situations where additional linker options are needed (such as when 7910 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7911 # vice versa); the common cases where no linker options are needed do 7912 # not appear in the list. 7913 echo 'int i;' > conftest.$ac_ext 7914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7915 (eval $ac_compile) 2>&5 7916 ac_status=$? 7917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7918 test $ac_status = 0; }; then 7919 case `$FILECMD conftest.o` in 7920 *32-bit*) 7921 case $host in 7922 x86_64-*kfreebsd*-gnu) 7923 LD="${LD-ld} -m elf_i386_fbsd" 7924 ;; 7925 x86_64-*linux*) 7926 case `$FILECMD conftest.o` in 7927 *x86-64*) 7928 LD="${LD-ld} -m elf32_x86_64" 7929 ;; 7930 *) 7931 LD="${LD-ld} -m elf_i386" 7932 ;; 7933 esac 7934 ;; 7935 powerpc64le-*linux*) 7936 LD="${LD-ld} -m elf32lppclinux" 7937 ;; 7938 powerpc64-*linux*) 7939 LD="${LD-ld} -m elf32ppclinux" 7940 ;; 7941 s390x-*linux*) 7942 LD="${LD-ld} -m elf_s390" 7943 ;; 7944 sparc64-*linux*) 7945 LD="${LD-ld} -m elf32_sparc" 7946 ;; 7947 esac 7948 ;; 7949 *64-bit*) 7950 case $host in 7951 x86_64-*kfreebsd*-gnu) 7952 LD="${LD-ld} -m elf_x86_64_fbsd" 7953 ;; 7954 x86_64-*linux*) 7955 LD="${LD-ld} -m elf_x86_64" 7956 ;; 7957 powerpcle-*linux*) 7958 LD="${LD-ld} -m elf64lppc" 7959 ;; 7960 powerpc-*linux*) 7961 LD="${LD-ld} -m elf64ppc" 7962 ;; 7963 s390*-*linux*|s390*-*tpf*) 7964 LD="${LD-ld} -m elf64_s390" 7965 ;; 7966 sparc*-*linux*) 7967 LD="${LD-ld} -m elf64_sparc" 7968 ;; 7969 esac 7970 ;; 7971 esac 7972 fi 7973 rm -rf conftest* 7974 ;; 7975 7976*-*-sco3.2v5*) 7977 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7978 SAVE_CFLAGS=$CFLAGS 7979 CFLAGS="$CFLAGS -belf" 7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7981printf %s "checking whether the C compiler needs -belf... " >&6; } 7982if test ${lt_cv_cc_needs_belf+y} 7983then : 7984 printf %s "(cached) " >&6 7985else $as_nop 7986 ac_ext=c 7987ac_cpp='$CPP $CPPFLAGS' 7988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7990ac_compiler_gnu=$ac_cv_c_compiler_gnu 7991 7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7993/* end confdefs.h. */ 7994 7995int 7996main (void) 7997{ 7998 7999 ; 8000 return 0; 8001} 8002_ACEOF 8003if ac_fn_c_try_link "$LINENO" 8004then : 8005 lt_cv_cc_needs_belf=yes 8006else $as_nop 8007 lt_cv_cc_needs_belf=no 8008fi 8009rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8010 conftest$ac_exeext conftest.$ac_ext 8011 ac_ext=c 8012ac_cpp='$CPP $CPPFLAGS' 8013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8015ac_compiler_gnu=$ac_cv_c_compiler_gnu 8016 8017fi 8018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8019printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8020 if test yes != "$lt_cv_cc_needs_belf"; then 8021 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8022 CFLAGS=$SAVE_CFLAGS 8023 fi 8024 ;; 8025*-*solaris*) 8026 # Find out what ABI is being produced by ac_compile, and set linker 8027 # options accordingly. 8028 echo 'int i;' > conftest.$ac_ext 8029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8030 (eval $ac_compile) 2>&5 8031 ac_status=$? 8032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8033 test $ac_status = 0; }; then 8034 case `$FILECMD conftest.o` in 8035 *64-bit*) 8036 case $lt_cv_prog_gnu_ld in 8037 yes*) 8038 case $host in 8039 i?86-*-solaris*|x86_64-*-solaris*) 8040 LD="${LD-ld} -m elf_x86_64" 8041 ;; 8042 sparc*-*-solaris*) 8043 LD="${LD-ld} -m elf64_sparc" 8044 ;; 8045 esac 8046 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8047 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8048 LD=${LD-ld}_sol2 8049 fi 8050 ;; 8051 *) 8052 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8053 LD="${LD-ld} -64" 8054 fi 8055 ;; 8056 esac 8057 ;; 8058 esac 8059 fi 8060 rm -rf conftest* 8061 ;; 8062esac 8063 8064need_locks=$enable_libtool_lock 8065 8066if test -n "$ac_tool_prefix"; then 8067 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8068set dummy ${ac_tool_prefix}mt; ac_word=$2 8069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8070printf %s "checking for $ac_word... " >&6; } 8071if test ${ac_cv_prog_MANIFEST_TOOL+y} 8072then : 8073 printf %s "(cached) " >&6 8074else $as_nop 8075 if test -n "$MANIFEST_TOOL"; then 8076 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8077else 8078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8079for as_dir in $PATH 8080do 8081 IFS=$as_save_IFS 8082 case $as_dir in #((( 8083 '') as_dir=./ ;; 8084 */) ;; 8085 *) as_dir=$as_dir/ ;; 8086 esac 8087 for ac_exec_ext in '' $ac_executable_extensions; do 8088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8089 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8091 break 2 8092 fi 8093done 8094 done 8095IFS=$as_save_IFS 8096 8097fi 8098fi 8099MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8100if test -n "$MANIFEST_TOOL"; then 8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8102printf "%s\n" "$MANIFEST_TOOL" >&6; } 8103else 8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8105printf "%s\n" "no" >&6; } 8106fi 8107 8108 8109fi 8110if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8111 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8112 # Extract the first word of "mt", so it can be a program name with args. 8113set dummy mt; ac_word=$2 8114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8115printf %s "checking for $ac_word... " >&6; } 8116if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8117then : 8118 printf %s "(cached) " >&6 8119else $as_nop 8120 if test -n "$ac_ct_MANIFEST_TOOL"; then 8121 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8122else 8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8124for as_dir in $PATH 8125do 8126 IFS=$as_save_IFS 8127 case $as_dir in #((( 8128 '') as_dir=./ ;; 8129 */) ;; 8130 *) as_dir=$as_dir/ ;; 8131 esac 8132 for ac_exec_ext in '' $ac_executable_extensions; do 8133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8134 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8136 break 2 8137 fi 8138done 8139 done 8140IFS=$as_save_IFS 8141 8142fi 8143fi 8144ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8145if test -n "$ac_ct_MANIFEST_TOOL"; then 8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8147printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8148else 8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8150printf "%s\n" "no" >&6; } 8151fi 8152 8153 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8154 MANIFEST_TOOL=":" 8155 else 8156 case $cross_compiling:$ac_tool_warned in 8157yes:) 8158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8159printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8160ac_tool_warned=yes ;; 8161esac 8162 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8163 fi 8164else 8165 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8166fi 8167 8168test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8170printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8171if test ${lt_cv_path_mainfest_tool+y} 8172then : 8173 printf %s "(cached) " >&6 8174else $as_nop 8175 lt_cv_path_mainfest_tool=no 8176 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8177 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8178 cat conftest.err >&5 8179 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8180 lt_cv_path_mainfest_tool=yes 8181 fi 8182 rm -f conftest* 8183fi 8184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8185printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8186if test yes != "$lt_cv_path_mainfest_tool"; then 8187 MANIFEST_TOOL=: 8188fi 8189 8190 8191 8192 8193 8194 8195 case $host_os in 8196 rhapsody* | darwin*) 8197 if test -n "$ac_tool_prefix"; then 8198 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8199set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8201printf %s "checking for $ac_word... " >&6; } 8202if test ${ac_cv_prog_DSYMUTIL+y} 8203then : 8204 printf %s "(cached) " >&6 8205else $as_nop 8206 if test -n "$DSYMUTIL"; then 8207 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8208else 8209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8210for as_dir in $PATH 8211do 8212 IFS=$as_save_IFS 8213 case $as_dir in #((( 8214 '') as_dir=./ ;; 8215 */) ;; 8216 *) as_dir=$as_dir/ ;; 8217 esac 8218 for ac_exec_ext in '' $ac_executable_extensions; do 8219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8220 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8222 break 2 8223 fi 8224done 8225 done 8226IFS=$as_save_IFS 8227 8228fi 8229fi 8230DSYMUTIL=$ac_cv_prog_DSYMUTIL 8231if test -n "$DSYMUTIL"; then 8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8233printf "%s\n" "$DSYMUTIL" >&6; } 8234else 8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8236printf "%s\n" "no" >&6; } 8237fi 8238 8239 8240fi 8241if test -z "$ac_cv_prog_DSYMUTIL"; then 8242 ac_ct_DSYMUTIL=$DSYMUTIL 8243 # Extract the first word of "dsymutil", so it can be a program name with args. 8244set dummy dsymutil; ac_word=$2 8245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8246printf %s "checking for $ac_word... " >&6; } 8247if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8248then : 8249 printf %s "(cached) " >&6 8250else $as_nop 8251 if test -n "$ac_ct_DSYMUTIL"; then 8252 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8253else 8254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8255for as_dir in $PATH 8256do 8257 IFS=$as_save_IFS 8258 case $as_dir in #((( 8259 '') as_dir=./ ;; 8260 */) ;; 8261 *) as_dir=$as_dir/ ;; 8262 esac 8263 for ac_exec_ext in '' $ac_executable_extensions; do 8264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8265 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8267 break 2 8268 fi 8269done 8270 done 8271IFS=$as_save_IFS 8272 8273fi 8274fi 8275ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8276if test -n "$ac_ct_DSYMUTIL"; then 8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8278printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8279else 8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8281printf "%s\n" "no" >&6; } 8282fi 8283 8284 if test "x$ac_ct_DSYMUTIL" = x; then 8285 DSYMUTIL=":" 8286 else 8287 case $cross_compiling:$ac_tool_warned in 8288yes:) 8289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8290printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8291ac_tool_warned=yes ;; 8292esac 8293 DSYMUTIL=$ac_ct_DSYMUTIL 8294 fi 8295else 8296 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8297fi 8298 8299 if test -n "$ac_tool_prefix"; then 8300 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8301set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8303printf %s "checking for $ac_word... " >&6; } 8304if test ${ac_cv_prog_NMEDIT+y} 8305then : 8306 printf %s "(cached) " >&6 8307else $as_nop 8308 if test -n "$NMEDIT"; then 8309 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8310else 8311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8312for as_dir in $PATH 8313do 8314 IFS=$as_save_IFS 8315 case $as_dir in #((( 8316 '') as_dir=./ ;; 8317 */) ;; 8318 *) as_dir=$as_dir/ ;; 8319 esac 8320 for ac_exec_ext in '' $ac_executable_extensions; do 8321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8322 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8324 break 2 8325 fi 8326done 8327 done 8328IFS=$as_save_IFS 8329 8330fi 8331fi 8332NMEDIT=$ac_cv_prog_NMEDIT 8333if test -n "$NMEDIT"; then 8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8335printf "%s\n" "$NMEDIT" >&6; } 8336else 8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8338printf "%s\n" "no" >&6; } 8339fi 8340 8341 8342fi 8343if test -z "$ac_cv_prog_NMEDIT"; then 8344 ac_ct_NMEDIT=$NMEDIT 8345 # Extract the first word of "nmedit", so it can be a program name with args. 8346set dummy nmedit; ac_word=$2 8347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8348printf %s "checking for $ac_word... " >&6; } 8349if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8350then : 8351 printf %s "(cached) " >&6 8352else $as_nop 8353 if test -n "$ac_ct_NMEDIT"; then 8354 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8355else 8356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8357for as_dir in $PATH 8358do 8359 IFS=$as_save_IFS 8360 case $as_dir in #((( 8361 '') as_dir=./ ;; 8362 */) ;; 8363 *) as_dir=$as_dir/ ;; 8364 esac 8365 for ac_exec_ext in '' $ac_executable_extensions; do 8366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8367 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8369 break 2 8370 fi 8371done 8372 done 8373IFS=$as_save_IFS 8374 8375fi 8376fi 8377ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8378if test -n "$ac_ct_NMEDIT"; then 8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8380printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8381else 8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8383printf "%s\n" "no" >&6; } 8384fi 8385 8386 if test "x$ac_ct_NMEDIT" = x; then 8387 NMEDIT=":" 8388 else 8389 case $cross_compiling:$ac_tool_warned in 8390yes:) 8391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8392printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8393ac_tool_warned=yes ;; 8394esac 8395 NMEDIT=$ac_ct_NMEDIT 8396 fi 8397else 8398 NMEDIT="$ac_cv_prog_NMEDIT" 8399fi 8400 8401 if test -n "$ac_tool_prefix"; then 8402 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8403set dummy ${ac_tool_prefix}lipo; ac_word=$2 8404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8405printf %s "checking for $ac_word... " >&6; } 8406if test ${ac_cv_prog_LIPO+y} 8407then : 8408 printf %s "(cached) " >&6 8409else $as_nop 8410 if test -n "$LIPO"; then 8411 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8412else 8413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8414for as_dir in $PATH 8415do 8416 IFS=$as_save_IFS 8417 case $as_dir in #((( 8418 '') as_dir=./ ;; 8419 */) ;; 8420 *) as_dir=$as_dir/ ;; 8421 esac 8422 for ac_exec_ext in '' $ac_executable_extensions; do 8423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8424 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8426 break 2 8427 fi 8428done 8429 done 8430IFS=$as_save_IFS 8431 8432fi 8433fi 8434LIPO=$ac_cv_prog_LIPO 8435if test -n "$LIPO"; then 8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8437printf "%s\n" "$LIPO" >&6; } 8438else 8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8440printf "%s\n" "no" >&6; } 8441fi 8442 8443 8444fi 8445if test -z "$ac_cv_prog_LIPO"; then 8446 ac_ct_LIPO=$LIPO 8447 # Extract the first word of "lipo", so it can be a program name with args. 8448set dummy lipo; ac_word=$2 8449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8450printf %s "checking for $ac_word... " >&6; } 8451if test ${ac_cv_prog_ac_ct_LIPO+y} 8452then : 8453 printf %s "(cached) " >&6 8454else $as_nop 8455 if test -n "$ac_ct_LIPO"; then 8456 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8457else 8458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8459for as_dir in $PATH 8460do 8461 IFS=$as_save_IFS 8462 case $as_dir in #((( 8463 '') as_dir=./ ;; 8464 */) ;; 8465 *) as_dir=$as_dir/ ;; 8466 esac 8467 for ac_exec_ext in '' $ac_executable_extensions; do 8468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8469 ac_cv_prog_ac_ct_LIPO="lipo" 8470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8471 break 2 8472 fi 8473done 8474 done 8475IFS=$as_save_IFS 8476 8477fi 8478fi 8479ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8480if test -n "$ac_ct_LIPO"; then 8481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8482printf "%s\n" "$ac_ct_LIPO" >&6; } 8483else 8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8485printf "%s\n" "no" >&6; } 8486fi 8487 8488 if test "x$ac_ct_LIPO" = x; then 8489 LIPO=":" 8490 else 8491 case $cross_compiling:$ac_tool_warned in 8492yes:) 8493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8494printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8495ac_tool_warned=yes ;; 8496esac 8497 LIPO=$ac_ct_LIPO 8498 fi 8499else 8500 LIPO="$ac_cv_prog_LIPO" 8501fi 8502 8503 if test -n "$ac_tool_prefix"; then 8504 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8505set dummy ${ac_tool_prefix}otool; ac_word=$2 8506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8507printf %s "checking for $ac_word... " >&6; } 8508if test ${ac_cv_prog_OTOOL+y} 8509then : 8510 printf %s "(cached) " >&6 8511else $as_nop 8512 if test -n "$OTOOL"; then 8513 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8514else 8515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8516for as_dir in $PATH 8517do 8518 IFS=$as_save_IFS 8519 case $as_dir in #((( 8520 '') as_dir=./ ;; 8521 */) ;; 8522 *) as_dir=$as_dir/ ;; 8523 esac 8524 for ac_exec_ext in '' $ac_executable_extensions; do 8525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8526 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8528 break 2 8529 fi 8530done 8531 done 8532IFS=$as_save_IFS 8533 8534fi 8535fi 8536OTOOL=$ac_cv_prog_OTOOL 8537if test -n "$OTOOL"; then 8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8539printf "%s\n" "$OTOOL" >&6; } 8540else 8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8542printf "%s\n" "no" >&6; } 8543fi 8544 8545 8546fi 8547if test -z "$ac_cv_prog_OTOOL"; then 8548 ac_ct_OTOOL=$OTOOL 8549 # Extract the first word of "otool", so it can be a program name with args. 8550set dummy otool; ac_word=$2 8551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8552printf %s "checking for $ac_word... " >&6; } 8553if test ${ac_cv_prog_ac_ct_OTOOL+y} 8554then : 8555 printf %s "(cached) " >&6 8556else $as_nop 8557 if test -n "$ac_ct_OTOOL"; then 8558 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8559else 8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8561for as_dir in $PATH 8562do 8563 IFS=$as_save_IFS 8564 case $as_dir in #((( 8565 '') as_dir=./ ;; 8566 */) ;; 8567 *) as_dir=$as_dir/ ;; 8568 esac 8569 for ac_exec_ext in '' $ac_executable_extensions; do 8570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8571 ac_cv_prog_ac_ct_OTOOL="otool" 8572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8573 break 2 8574 fi 8575done 8576 done 8577IFS=$as_save_IFS 8578 8579fi 8580fi 8581ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8582if test -n "$ac_ct_OTOOL"; then 8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8584printf "%s\n" "$ac_ct_OTOOL" >&6; } 8585else 8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8587printf "%s\n" "no" >&6; } 8588fi 8589 8590 if test "x$ac_ct_OTOOL" = x; then 8591 OTOOL=":" 8592 else 8593 case $cross_compiling:$ac_tool_warned in 8594yes:) 8595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8596printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8597ac_tool_warned=yes ;; 8598esac 8599 OTOOL=$ac_ct_OTOOL 8600 fi 8601else 8602 OTOOL="$ac_cv_prog_OTOOL" 8603fi 8604 8605 if test -n "$ac_tool_prefix"; then 8606 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8607set dummy ${ac_tool_prefix}otool64; ac_word=$2 8608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8609printf %s "checking for $ac_word... " >&6; } 8610if test ${ac_cv_prog_OTOOL64+y} 8611then : 8612 printf %s "(cached) " >&6 8613else $as_nop 8614 if test -n "$OTOOL64"; then 8615 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8616else 8617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8618for as_dir in $PATH 8619do 8620 IFS=$as_save_IFS 8621 case $as_dir in #((( 8622 '') as_dir=./ ;; 8623 */) ;; 8624 *) as_dir=$as_dir/ ;; 8625 esac 8626 for ac_exec_ext in '' $ac_executable_extensions; do 8627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8628 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8630 break 2 8631 fi 8632done 8633 done 8634IFS=$as_save_IFS 8635 8636fi 8637fi 8638OTOOL64=$ac_cv_prog_OTOOL64 8639if test -n "$OTOOL64"; then 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8641printf "%s\n" "$OTOOL64" >&6; } 8642else 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8644printf "%s\n" "no" >&6; } 8645fi 8646 8647 8648fi 8649if test -z "$ac_cv_prog_OTOOL64"; then 8650 ac_ct_OTOOL64=$OTOOL64 8651 # Extract the first word of "otool64", so it can be a program name with args. 8652set dummy otool64; ac_word=$2 8653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8654printf %s "checking for $ac_word... " >&6; } 8655if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8656then : 8657 printf %s "(cached) " >&6 8658else $as_nop 8659 if test -n "$ac_ct_OTOOL64"; then 8660 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8661else 8662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8663for as_dir in $PATH 8664do 8665 IFS=$as_save_IFS 8666 case $as_dir in #((( 8667 '') as_dir=./ ;; 8668 */) ;; 8669 *) as_dir=$as_dir/ ;; 8670 esac 8671 for ac_exec_ext in '' $ac_executable_extensions; do 8672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8673 ac_cv_prog_ac_ct_OTOOL64="otool64" 8674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8675 break 2 8676 fi 8677done 8678 done 8679IFS=$as_save_IFS 8680 8681fi 8682fi 8683ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8684if test -n "$ac_ct_OTOOL64"; then 8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8686printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8687else 8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8689printf "%s\n" "no" >&6; } 8690fi 8691 8692 if test "x$ac_ct_OTOOL64" = x; then 8693 OTOOL64=":" 8694 else 8695 case $cross_compiling:$ac_tool_warned in 8696yes:) 8697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8698printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8699ac_tool_warned=yes ;; 8700esac 8701 OTOOL64=$ac_ct_OTOOL64 8702 fi 8703else 8704 OTOOL64="$ac_cv_prog_OTOOL64" 8705fi 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8734printf %s "checking for -single_module linker flag... " >&6; } 8735if test ${lt_cv_apple_cc_single_mod+y} 8736then : 8737 printf %s "(cached) " >&6 8738else $as_nop 8739 lt_cv_apple_cc_single_mod=no 8740 if test -z "$LT_MULTI_MODULE"; then 8741 # By default we will add the -single_module flag. You can override 8742 # by either setting the environment variable LT_MULTI_MODULE 8743 # non-empty at configure time, or by adding -multi_module to the 8744 # link flags. 8745 rm -rf libconftest.dylib* 8746 echo "int foo(void){return 1;}" > conftest.c 8747 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8748-dynamiclib -Wl,-single_module conftest.c" >&5 8749 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8750 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8751 _lt_result=$? 8752 # If there is a non-empty error log, and "single_module" 8753 # appears in it, assume the flag caused a linker warning 8754 if test -s conftest.err && $GREP single_module conftest.err; then 8755 cat conftest.err >&5 8756 # Otherwise, if the output was created with a 0 exit code from 8757 # the compiler, it worked. 8758 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8759 lt_cv_apple_cc_single_mod=yes 8760 else 8761 cat conftest.err >&5 8762 fi 8763 rm -rf libconftest.dylib* 8764 rm -f conftest.* 8765 fi 8766fi 8767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8768printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8769 8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8771printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8772if test ${lt_cv_ld_exported_symbols_list+y} 8773then : 8774 printf %s "(cached) " >&6 8775else $as_nop 8776 lt_cv_ld_exported_symbols_list=no 8777 save_LDFLAGS=$LDFLAGS 8778 echo "_main" > conftest.sym 8779 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8781/* end confdefs.h. */ 8782 8783int 8784main (void) 8785{ 8786 8787 ; 8788 return 0; 8789} 8790_ACEOF 8791if ac_fn_c_try_link "$LINENO" 8792then : 8793 lt_cv_ld_exported_symbols_list=yes 8794else $as_nop 8795 lt_cv_ld_exported_symbols_list=no 8796fi 8797rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8798 conftest$ac_exeext conftest.$ac_ext 8799 LDFLAGS=$save_LDFLAGS 8800 8801fi 8802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8803printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8804 8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8806printf %s "checking for -force_load linker flag... " >&6; } 8807if test ${lt_cv_ld_force_load+y} 8808then : 8809 printf %s "(cached) " >&6 8810else $as_nop 8811 lt_cv_ld_force_load=no 8812 cat > conftest.c << _LT_EOF 8813int forced_loaded() { return 2;} 8814_LT_EOF 8815 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8816 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8817 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8818 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8819 echo "$RANLIB libconftest.a" >&5 8820 $RANLIB libconftest.a 2>&5 8821 cat > conftest.c << _LT_EOF 8822int main() { return 0;} 8823_LT_EOF 8824 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8825 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8826 _lt_result=$? 8827 if test -s conftest.err && $GREP force_load conftest.err; then 8828 cat conftest.err >&5 8829 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8830 lt_cv_ld_force_load=yes 8831 else 8832 cat conftest.err >&5 8833 fi 8834 rm -f conftest.err libconftest.a conftest conftest.c 8835 rm -rf conftest.dSYM 8836 8837fi 8838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8839printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8840 case $host_os in 8841 rhapsody* | darwin1.[012]) 8842 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8843 darwin1.*) 8844 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8845 darwin*) 8846 case ${MACOSX_DEPLOYMENT_TARGET},$host in 8847 10.[012],*|,*powerpc*-darwin[5-8]*) 8848 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8849 *) 8850 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8851 esac 8852 ;; 8853 esac 8854 if test yes = "$lt_cv_apple_cc_single_mod"; then 8855 _lt_dar_single_mod='$single_module' 8856 fi 8857 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8858 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8859 else 8860 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8861 fi 8862 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8863 _lt_dsymutil='~$DSYMUTIL $lib || :' 8864 else 8865 _lt_dsymutil= 8866 fi 8867 ;; 8868 esac 8869 8870# func_munge_path_list VARIABLE PATH 8871# ----------------------------------- 8872# VARIABLE is name of variable containing _space_ separated list of 8873# directories to be munged by the contents of PATH, which is string 8874# having a format: 8875# "DIR[:DIR]:" 8876# string "DIR[ DIR]" will be prepended to VARIABLE 8877# ":DIR[:DIR]" 8878# string "DIR[ DIR]" will be appended to VARIABLE 8879# "DIRP[:DIRP]::[DIRA:]DIRA" 8880# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8881# "DIRA[ DIRA]" will be appended to VARIABLE 8882# "DIR[:DIR]" 8883# VARIABLE will be replaced by "DIR[ DIR]" 8884func_munge_path_list () 8885{ 8886 case x$2 in 8887 x) 8888 ;; 8889 *:) 8890 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8891 ;; 8892 x:*) 8893 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8894 ;; 8895 *::*) 8896 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8897 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8898 ;; 8899 *) 8900 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8901 ;; 8902 esac 8903} 8904 8905ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8906" 8907if test "x$ac_cv_header_dlfcn_h" = xyes 8908then : 8909 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8910 8911fi 8912 8913 8914 8915 8916 8917# Set options 8918enable_win32_dll=yes 8919 8920case $host in 8921*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8922 if test -n "$ac_tool_prefix"; then 8923 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8924set dummy ${ac_tool_prefix}as; ac_word=$2 8925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8926printf %s "checking for $ac_word... " >&6; } 8927if test ${ac_cv_prog_AS+y} 8928then : 8929 printf %s "(cached) " >&6 8930else $as_nop 8931 if test -n "$AS"; then 8932 ac_cv_prog_AS="$AS" # Let the user override the test. 8933else 8934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8935for as_dir in $PATH 8936do 8937 IFS=$as_save_IFS 8938 case $as_dir in #((( 8939 '') as_dir=./ ;; 8940 */) ;; 8941 *) as_dir=$as_dir/ ;; 8942 esac 8943 for ac_exec_ext in '' $ac_executable_extensions; do 8944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8945 ac_cv_prog_AS="${ac_tool_prefix}as" 8946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8947 break 2 8948 fi 8949done 8950 done 8951IFS=$as_save_IFS 8952 8953fi 8954fi 8955AS=$ac_cv_prog_AS 8956if test -n "$AS"; then 8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8958printf "%s\n" "$AS" >&6; } 8959else 8960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8961printf "%s\n" "no" >&6; } 8962fi 8963 8964 8965fi 8966if test -z "$ac_cv_prog_AS"; then 8967 ac_ct_AS=$AS 8968 # Extract the first word of "as", so it can be a program name with args. 8969set dummy as; ac_word=$2 8970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8971printf %s "checking for $ac_word... " >&6; } 8972if test ${ac_cv_prog_ac_ct_AS+y} 8973then : 8974 printf %s "(cached) " >&6 8975else $as_nop 8976 if test -n "$ac_ct_AS"; then 8977 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8978else 8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8980for as_dir in $PATH 8981do 8982 IFS=$as_save_IFS 8983 case $as_dir in #((( 8984 '') as_dir=./ ;; 8985 */) ;; 8986 *) as_dir=$as_dir/ ;; 8987 esac 8988 for ac_exec_ext in '' $ac_executable_extensions; do 8989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8990 ac_cv_prog_ac_ct_AS="as" 8991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8992 break 2 8993 fi 8994done 8995 done 8996IFS=$as_save_IFS 8997 8998fi 8999fi 9000ac_ct_AS=$ac_cv_prog_ac_ct_AS 9001if test -n "$ac_ct_AS"; then 9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 9003printf "%s\n" "$ac_ct_AS" >&6; } 9004else 9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9006printf "%s\n" "no" >&6; } 9007fi 9008 9009 if test "x$ac_ct_AS" = x; then 9010 AS="false" 9011 else 9012 case $cross_compiling:$ac_tool_warned in 9013yes:) 9014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9015printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9016ac_tool_warned=yes ;; 9017esac 9018 AS=$ac_ct_AS 9019 fi 9020else 9021 AS="$ac_cv_prog_AS" 9022fi 9023 9024 if test -n "$ac_tool_prefix"; then 9025 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9026set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9028printf %s "checking for $ac_word... " >&6; } 9029if test ${ac_cv_prog_DLLTOOL+y} 9030then : 9031 printf %s "(cached) " >&6 9032else $as_nop 9033 if test -n "$DLLTOOL"; then 9034 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9035else 9036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9037for as_dir in $PATH 9038do 9039 IFS=$as_save_IFS 9040 case $as_dir in #((( 9041 '') as_dir=./ ;; 9042 */) ;; 9043 *) as_dir=$as_dir/ ;; 9044 esac 9045 for ac_exec_ext in '' $ac_executable_extensions; do 9046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9047 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9049 break 2 9050 fi 9051done 9052 done 9053IFS=$as_save_IFS 9054 9055fi 9056fi 9057DLLTOOL=$ac_cv_prog_DLLTOOL 9058if test -n "$DLLTOOL"; then 9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9060printf "%s\n" "$DLLTOOL" >&6; } 9061else 9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9063printf "%s\n" "no" >&6; } 9064fi 9065 9066 9067fi 9068if test -z "$ac_cv_prog_DLLTOOL"; then 9069 ac_ct_DLLTOOL=$DLLTOOL 9070 # Extract the first word of "dlltool", so it can be a program name with args. 9071set dummy dlltool; ac_word=$2 9072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9073printf %s "checking for $ac_word... " >&6; } 9074if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9075then : 9076 printf %s "(cached) " >&6 9077else $as_nop 9078 if test -n "$ac_ct_DLLTOOL"; then 9079 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9080else 9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9082for as_dir in $PATH 9083do 9084 IFS=$as_save_IFS 9085 case $as_dir in #((( 9086 '') as_dir=./ ;; 9087 */) ;; 9088 *) as_dir=$as_dir/ ;; 9089 esac 9090 for ac_exec_ext in '' $ac_executable_extensions; do 9091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9092 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9094 break 2 9095 fi 9096done 9097 done 9098IFS=$as_save_IFS 9099 9100fi 9101fi 9102ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9103if test -n "$ac_ct_DLLTOOL"; then 9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9105printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9106else 9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9108printf "%s\n" "no" >&6; } 9109fi 9110 9111 if test "x$ac_ct_DLLTOOL" = x; then 9112 DLLTOOL="false" 9113 else 9114 case $cross_compiling:$ac_tool_warned in 9115yes:) 9116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9117printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9118ac_tool_warned=yes ;; 9119esac 9120 DLLTOOL=$ac_ct_DLLTOOL 9121 fi 9122else 9123 DLLTOOL="$ac_cv_prog_DLLTOOL" 9124fi 9125 9126 if test -n "$ac_tool_prefix"; then 9127 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9128set dummy ${ac_tool_prefix}objdump; ac_word=$2 9129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9130printf %s "checking for $ac_word... " >&6; } 9131if test ${ac_cv_prog_OBJDUMP+y} 9132then : 9133 printf %s "(cached) " >&6 9134else $as_nop 9135 if test -n "$OBJDUMP"; then 9136 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9137else 9138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9139for as_dir in $PATH 9140do 9141 IFS=$as_save_IFS 9142 case $as_dir in #((( 9143 '') as_dir=./ ;; 9144 */) ;; 9145 *) as_dir=$as_dir/ ;; 9146 esac 9147 for ac_exec_ext in '' $ac_executable_extensions; do 9148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9149 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9151 break 2 9152 fi 9153done 9154 done 9155IFS=$as_save_IFS 9156 9157fi 9158fi 9159OBJDUMP=$ac_cv_prog_OBJDUMP 9160if test -n "$OBJDUMP"; then 9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9162printf "%s\n" "$OBJDUMP" >&6; } 9163else 9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9165printf "%s\n" "no" >&6; } 9166fi 9167 9168 9169fi 9170if test -z "$ac_cv_prog_OBJDUMP"; then 9171 ac_ct_OBJDUMP=$OBJDUMP 9172 # Extract the first word of "objdump", so it can be a program name with args. 9173set dummy objdump; ac_word=$2 9174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9175printf %s "checking for $ac_word... " >&6; } 9176if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9177then : 9178 printf %s "(cached) " >&6 9179else $as_nop 9180 if test -n "$ac_ct_OBJDUMP"; then 9181 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9182else 9183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9184for as_dir in $PATH 9185do 9186 IFS=$as_save_IFS 9187 case $as_dir in #((( 9188 '') as_dir=./ ;; 9189 */) ;; 9190 *) as_dir=$as_dir/ ;; 9191 esac 9192 for ac_exec_ext in '' $ac_executable_extensions; do 9193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9194 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9196 break 2 9197 fi 9198done 9199 done 9200IFS=$as_save_IFS 9201 9202fi 9203fi 9204ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9205if test -n "$ac_ct_OBJDUMP"; then 9206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9207printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9208else 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9210printf "%s\n" "no" >&6; } 9211fi 9212 9213 if test "x$ac_ct_OBJDUMP" = x; then 9214 OBJDUMP="false" 9215 else 9216 case $cross_compiling:$ac_tool_warned in 9217yes:) 9218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9219printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9220ac_tool_warned=yes ;; 9221esac 9222 OBJDUMP=$ac_ct_OBJDUMP 9223 fi 9224else 9225 OBJDUMP="$ac_cv_prog_OBJDUMP" 9226fi 9227 9228 ;; 9229esac 9230 9231test -z "$AS" && AS=as 9232 9233 9234 9235 9236 9237test -z "$DLLTOOL" && DLLTOOL=dlltool 9238 9239 9240 9241 9242 9243test -z "$OBJDUMP" && OBJDUMP=objdump 9244 9245 9246 9247 9248 9249 9250 9251 enable_dlopen=no 9252 9253 9254 9255 # Check whether --enable-shared was given. 9256if test ${enable_shared+y} 9257then : 9258 enableval=$enable_shared; p=${PACKAGE-default} 9259 case $enableval in 9260 yes) enable_shared=yes ;; 9261 no) enable_shared=no ;; 9262 *) 9263 enable_shared=no 9264 # Look at the argument we got. We use all the common list separators. 9265 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9266 for pkg in $enableval; do 9267 IFS=$lt_save_ifs 9268 if test "X$pkg" = "X$p"; then 9269 enable_shared=yes 9270 fi 9271 done 9272 IFS=$lt_save_ifs 9273 ;; 9274 esac 9275else $as_nop 9276 enable_shared=yes 9277fi 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 # Check whether --enable-static was given. 9288if test ${enable_static+y} 9289then : 9290 enableval=$enable_static; p=${PACKAGE-default} 9291 case $enableval in 9292 yes) enable_static=yes ;; 9293 no) enable_static=no ;; 9294 *) 9295 enable_static=no 9296 # Look at the argument we got. We use all the common list separators. 9297 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9298 for pkg in $enableval; do 9299 IFS=$lt_save_ifs 9300 if test "X$pkg" = "X$p"; then 9301 enable_static=yes 9302 fi 9303 done 9304 IFS=$lt_save_ifs 9305 ;; 9306 esac 9307else $as_nop 9308 enable_static=yes 9309fi 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320# Check whether --with-pic was given. 9321if test ${with_pic+y} 9322then : 9323 withval=$with_pic; lt_p=${PACKAGE-default} 9324 case $withval in 9325 yes|no) pic_mode=$withval ;; 9326 *) 9327 pic_mode=default 9328 # Look at the argument we got. We use all the common list separators. 9329 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9330 for lt_pkg in $withval; do 9331 IFS=$lt_save_ifs 9332 if test "X$lt_pkg" = "X$lt_p"; then 9333 pic_mode=yes 9334 fi 9335 done 9336 IFS=$lt_save_ifs 9337 ;; 9338 esac 9339else $as_nop 9340 pic_mode=default 9341fi 9342 9343 9344 9345 9346 9347 9348 9349 9350 # Check whether --enable-fast-install was given. 9351if test ${enable_fast_install+y} 9352then : 9353 enableval=$enable_fast_install; p=${PACKAGE-default} 9354 case $enableval in 9355 yes) enable_fast_install=yes ;; 9356 no) enable_fast_install=no ;; 9357 *) 9358 enable_fast_install=no 9359 # Look at the argument we got. We use all the common list separators. 9360 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9361 for pkg in $enableval; do 9362 IFS=$lt_save_ifs 9363 if test "X$pkg" = "X$p"; then 9364 enable_fast_install=yes 9365 fi 9366 done 9367 IFS=$lt_save_ifs 9368 ;; 9369 esac 9370else $as_nop 9371 enable_fast_install=yes 9372fi 9373 9374 9375 9376 9377 9378 9379 9380 9381 shared_archive_member_spec= 9382case $host,$enable_shared in 9383power*-*-aix[5-9]*,yes) 9384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9385printf %s "checking which variant of shared library versioning to provide... " >&6; } 9386 9387# Check whether --with-aix-soname was given. 9388if test ${with_aix_soname+y} 9389then : 9390 withval=$with_aix_soname; case $withval in 9391 aix|svr4|both) 9392 ;; 9393 *) 9394 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9395 ;; 9396 esac 9397 lt_cv_with_aix_soname=$with_aix_soname 9398else $as_nop 9399 if test ${lt_cv_with_aix_soname+y} 9400then : 9401 printf %s "(cached) " >&6 9402else $as_nop 9403 lt_cv_with_aix_soname=aix 9404fi 9405 9406 with_aix_soname=$lt_cv_with_aix_soname 9407fi 9408 9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9410printf "%s\n" "$with_aix_soname" >&6; } 9411 if test aix != "$with_aix_soname"; then 9412 # For the AIX way of multilib, we name the shared archive member 9413 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9414 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9415 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9416 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9417 if test 64 = "${OBJECT_MODE-32}"; then 9418 shared_archive_member_spec=shr_64 9419 else 9420 shared_archive_member_spec=shr 9421 fi 9422 fi 9423 ;; 9424*) 9425 with_aix_soname=aix 9426 ;; 9427esac 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438# This can be used to rebuild libtool when needed 9439LIBTOOL_DEPS=$ltmain 9440 9441# Always use our own libtool. 9442LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473test -z "$LN_S" && LN_S="ln -s" 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488if test -n "${ZSH_VERSION+set}"; then 9489 setopt NO_GLOB_SUBST 9490fi 9491 9492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9493printf %s "checking for objdir... " >&6; } 9494if test ${lt_cv_objdir+y} 9495then : 9496 printf %s "(cached) " >&6 9497else $as_nop 9498 rm -f .libs 2>/dev/null 9499mkdir .libs 2>/dev/null 9500if test -d .libs; then 9501 lt_cv_objdir=.libs 9502else 9503 # MS-DOS does not allow filenames that begin with a dot. 9504 lt_cv_objdir=_libs 9505fi 9506rmdir .libs 2>/dev/null 9507fi 9508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9509printf "%s\n" "$lt_cv_objdir" >&6; } 9510objdir=$lt_cv_objdir 9511 9512 9513 9514 9515 9516printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9517 9518 9519 9520 9521case $host_os in 9522aix3*) 9523 # AIX sometimes has problems with the GCC collect2 program. For some 9524 # reason, if we set the COLLECT_NAMES environment variable, the problems 9525 # vanish in a puff of smoke. 9526 if test set != "${COLLECT_NAMES+set}"; then 9527 COLLECT_NAMES= 9528 export COLLECT_NAMES 9529 fi 9530 ;; 9531esac 9532 9533# Global variables: 9534ofile=libtool 9535can_build_shared=yes 9536 9537# All known linkers require a '.a' archive for static linking (except MSVC and 9538# ICC, which need '.lib'). 9539libext=a 9540 9541with_gnu_ld=$lt_cv_prog_gnu_ld 9542 9543old_CC=$CC 9544old_CFLAGS=$CFLAGS 9545 9546# Set sane defaults for various variables 9547test -z "$CC" && CC=cc 9548test -z "$LTCC" && LTCC=$CC 9549test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9550test -z "$LD" && LD=ld 9551test -z "$ac_objext" && ac_objext=o 9552 9553func_cc_basename $compiler 9554cc_basename=$func_cc_basename_result 9555 9556 9557# Only perform the check for file, if the check method requires it 9558test -z "$MAGIC_CMD" && MAGIC_CMD=file 9559case $deplibs_check_method in 9560file_magic*) 9561 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9563printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9564if test ${lt_cv_path_MAGIC_CMD+y} 9565then : 9566 printf %s "(cached) " >&6 9567else $as_nop 9568 case $MAGIC_CMD in 9569[\\/*] | ?:[\\/]*) 9570 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9571 ;; 9572*) 9573 lt_save_MAGIC_CMD=$MAGIC_CMD 9574 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9575 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9576 for ac_dir in $ac_dummy; do 9577 IFS=$lt_save_ifs 9578 test -z "$ac_dir" && ac_dir=. 9579 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9580 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9581 if test -n "$file_magic_test_file"; then 9582 case $deplibs_check_method in 9583 "file_magic "*) 9584 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9585 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9586 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9587 $EGREP "$file_magic_regex" > /dev/null; then 9588 : 9589 else 9590 cat <<_LT_EOF 1>&2 9591 9592*** Warning: the command libtool uses to detect shared libraries, 9593*** $file_magic_cmd, produces output that libtool cannot recognize. 9594*** The result is that libtool may fail to recognize shared libraries 9595*** as such. This will affect the creation of libtool libraries that 9596*** depend on shared libraries, but programs linked with such libtool 9597*** libraries will work regardless of this problem. Nevertheless, you 9598*** may want to report the problem to your system manager and/or to 9599*** bug-libtool@gnu.org 9600 9601_LT_EOF 9602 fi ;; 9603 esac 9604 fi 9605 break 9606 fi 9607 done 9608 IFS=$lt_save_ifs 9609 MAGIC_CMD=$lt_save_MAGIC_CMD 9610 ;; 9611esac 9612fi 9613 9614MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9615if test -n "$MAGIC_CMD"; then 9616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9617printf "%s\n" "$MAGIC_CMD" >&6; } 9618else 9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9620printf "%s\n" "no" >&6; } 9621fi 9622 9623 9624 9625 9626 9627if test -z "$lt_cv_path_MAGIC_CMD"; then 9628 if test -n "$ac_tool_prefix"; then 9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9630printf %s "checking for file... " >&6; } 9631if test ${lt_cv_path_MAGIC_CMD+y} 9632then : 9633 printf %s "(cached) " >&6 9634else $as_nop 9635 case $MAGIC_CMD in 9636[\\/*] | ?:[\\/]*) 9637 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9638 ;; 9639*) 9640 lt_save_MAGIC_CMD=$MAGIC_CMD 9641 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9642 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9643 for ac_dir in $ac_dummy; do 9644 IFS=$lt_save_ifs 9645 test -z "$ac_dir" && ac_dir=. 9646 if test -f "$ac_dir/file"; then 9647 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9648 if test -n "$file_magic_test_file"; then 9649 case $deplibs_check_method in 9650 "file_magic "*) 9651 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9652 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9653 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9654 $EGREP "$file_magic_regex" > /dev/null; then 9655 : 9656 else 9657 cat <<_LT_EOF 1>&2 9658 9659*** Warning: the command libtool uses to detect shared libraries, 9660*** $file_magic_cmd, produces output that libtool cannot recognize. 9661*** The result is that libtool may fail to recognize shared libraries 9662*** as such. This will affect the creation of libtool libraries that 9663*** depend on shared libraries, but programs linked with such libtool 9664*** libraries will work regardless of this problem. Nevertheless, you 9665*** may want to report the problem to your system manager and/or to 9666*** bug-libtool@gnu.org 9667 9668_LT_EOF 9669 fi ;; 9670 esac 9671 fi 9672 break 9673 fi 9674 done 9675 IFS=$lt_save_ifs 9676 MAGIC_CMD=$lt_save_MAGIC_CMD 9677 ;; 9678esac 9679fi 9680 9681MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9682if test -n "$MAGIC_CMD"; then 9683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9684printf "%s\n" "$MAGIC_CMD" >&6; } 9685else 9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9687printf "%s\n" "no" >&6; } 9688fi 9689 9690 9691 else 9692 MAGIC_CMD=: 9693 fi 9694fi 9695 9696 fi 9697 ;; 9698esac 9699 9700# Use C for the default configuration in the libtool script 9701 9702lt_save_CC=$CC 9703ac_ext=c 9704ac_cpp='$CPP $CPPFLAGS' 9705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9707ac_compiler_gnu=$ac_cv_c_compiler_gnu 9708 9709 9710# Source file extension for C test sources. 9711ac_ext=c 9712 9713# Object file extension for compiled C test sources. 9714objext=o 9715objext=$objext 9716 9717# Code to be used in simple compile tests 9718lt_simple_compile_test_code="int some_variable = 0;" 9719 9720# Code to be used in simple link tests 9721lt_simple_link_test_code='int main(){return(0);}' 9722 9723 9724 9725 9726 9727 9728 9729# If no C compiler was specified, use CC. 9730LTCC=${LTCC-"$CC"} 9731 9732# If no C compiler flags were specified, use CFLAGS. 9733LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9734 9735# Allow CC to be a program name with arguments. 9736compiler=$CC 9737 9738# Save the default compiler, since it gets overwritten when the other 9739# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9740compiler_DEFAULT=$CC 9741 9742# save warnings/boilerplate of simple test code 9743ac_outfile=conftest.$ac_objext 9744echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9745eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9746_lt_compiler_boilerplate=`cat conftest.err` 9747$RM conftest* 9748 9749ac_outfile=conftest.$ac_objext 9750echo "$lt_simple_link_test_code" >conftest.$ac_ext 9751eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9752_lt_linker_boilerplate=`cat conftest.err` 9753$RM -r conftest* 9754 9755 9756## CAVEAT EMPTOR: 9757## There is no encapsulation within the following macros, do not change 9758## the running order or otherwise move them around unless you know exactly 9759## what you are doing... 9760if test -n "$compiler"; then 9761 9762lt_prog_compiler_no_builtin_flag= 9763 9764if test yes = "$GCC"; then 9765 case $cc_basename in 9766 nvcc*) 9767 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9768 *) 9769 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9770 esac 9771 9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9773printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9774if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9775then : 9776 printf %s "(cached) " >&6 9777else $as_nop 9778 lt_cv_prog_compiler_rtti_exceptions=no 9779 ac_outfile=conftest.$ac_objext 9780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9781 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9782 # Insert the option either (1) after the last *FLAGS variable, or 9783 # (2) before a word containing "conftest.", or (3) at the end. 9784 # Note that $ac_compile itself does not contain backslashes and begins 9785 # with a dollar sign (not a hyphen), so the echo should work correctly. 9786 # The option is referenced via a variable to avoid confusing sed. 9787 lt_compile=`echo "$ac_compile" | $SED \ 9788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9790 -e 's:$: $lt_compiler_flag:'` 9791 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9792 (eval "$lt_compile" 2>conftest.err) 9793 ac_status=$? 9794 cat conftest.err >&5 9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9796 if (exit $ac_status) && test -s "$ac_outfile"; then 9797 # The compiler can only warn and ignore the option if not recognized 9798 # So say no if there are warnings other than the usual output. 9799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9802 lt_cv_prog_compiler_rtti_exceptions=yes 9803 fi 9804 fi 9805 $RM conftest* 9806 9807fi 9808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9809printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9810 9811if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9812 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9813else 9814 : 9815fi 9816 9817fi 9818 9819 9820 9821 9822 9823 9824 lt_prog_compiler_wl= 9825lt_prog_compiler_pic= 9826lt_prog_compiler_static= 9827 9828 9829 if test yes = "$GCC"; then 9830 lt_prog_compiler_wl='-Wl,' 9831 lt_prog_compiler_static='-static' 9832 9833 case $host_os in 9834 aix*) 9835 # All AIX code is PIC. 9836 if test ia64 = "$host_cpu"; then 9837 # AIX 5 now supports IA64 processor 9838 lt_prog_compiler_static='-Bstatic' 9839 fi 9840 lt_prog_compiler_pic='-fPIC' 9841 ;; 9842 9843 amigaos*) 9844 case $host_cpu in 9845 powerpc) 9846 # see comment about AmigaOS4 .so support 9847 lt_prog_compiler_pic='-fPIC' 9848 ;; 9849 m68k) 9850 # FIXME: we need at least 68020 code to build shared libraries, but 9851 # adding the '-m68020' flag to GCC prevents building anything better, 9852 # like '-m68040'. 9853 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9854 ;; 9855 esac 9856 ;; 9857 9858 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9859 # PIC is the default for these OSes. 9860 ;; 9861 9862 mingw* | cygwin* | pw32* | os2* | cegcc*) 9863 # This hack is so that the source file can tell whether it is being 9864 # built for inclusion in a dll (and should export symbols for example). 9865 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9866 # (--disable-auto-import) libraries 9867 lt_prog_compiler_pic='-DDLL_EXPORT' 9868 case $host_os in 9869 os2*) 9870 lt_prog_compiler_static='$wl-static' 9871 ;; 9872 esac 9873 ;; 9874 9875 darwin* | rhapsody*) 9876 # PIC is the default on this platform 9877 # Common symbols not allowed in MH_DYLIB files 9878 lt_prog_compiler_pic='-fno-common' 9879 ;; 9880 9881 haiku*) 9882 # PIC is the default for Haiku. 9883 # The "-static" flag exists, but is broken. 9884 lt_prog_compiler_static= 9885 ;; 9886 9887 hpux*) 9888 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9889 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9890 # sets the default TLS model and affects inlining. 9891 case $host_cpu in 9892 hppa*64*) 9893 # +Z the default 9894 ;; 9895 *) 9896 lt_prog_compiler_pic='-fPIC' 9897 ;; 9898 esac 9899 ;; 9900 9901 interix[3-9]*) 9902 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9903 # Instead, we relocate shared libraries at runtime. 9904 ;; 9905 9906 msdosdjgpp*) 9907 # Just because we use GCC doesn't mean we suddenly get shared libraries 9908 # on systems that don't support them. 9909 lt_prog_compiler_can_build_shared=no 9910 enable_shared=no 9911 ;; 9912 9913 *nto* | *qnx*) 9914 # QNX uses GNU C++, but need to define -shared option too, otherwise 9915 # it will coredump. 9916 lt_prog_compiler_pic='-fPIC -shared' 9917 ;; 9918 9919 sysv4*MP*) 9920 if test -d /usr/nec; then 9921 lt_prog_compiler_pic=-Kconform_pic 9922 fi 9923 ;; 9924 9925 *) 9926 lt_prog_compiler_pic='-fPIC' 9927 ;; 9928 esac 9929 9930 case $cc_basename in 9931 nvcc*) # Cuda Compiler Driver 2.2 9932 lt_prog_compiler_wl='-Xlinker ' 9933 if test -n "$lt_prog_compiler_pic"; then 9934 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9935 fi 9936 ;; 9937 esac 9938 else 9939 # PORTME Check for flag to pass linker flags through the system compiler. 9940 case $host_os in 9941 aix*) 9942 lt_prog_compiler_wl='-Wl,' 9943 if test ia64 = "$host_cpu"; then 9944 # AIX 5 now supports IA64 processor 9945 lt_prog_compiler_static='-Bstatic' 9946 else 9947 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9948 fi 9949 ;; 9950 9951 darwin* | rhapsody*) 9952 # PIC is the default on this platform 9953 # Common symbols not allowed in MH_DYLIB files 9954 lt_prog_compiler_pic='-fno-common' 9955 case $cc_basename in 9956 nagfor*) 9957 # NAG Fortran compiler 9958 lt_prog_compiler_wl='-Wl,-Wl,,' 9959 lt_prog_compiler_pic='-PIC' 9960 lt_prog_compiler_static='-Bstatic' 9961 ;; 9962 esac 9963 ;; 9964 9965 mingw* | cygwin* | pw32* | os2* | cegcc*) 9966 # This hack is so that the source file can tell whether it is being 9967 # built for inclusion in a dll (and should export symbols for example). 9968 lt_prog_compiler_pic='-DDLL_EXPORT' 9969 case $host_os in 9970 os2*) 9971 lt_prog_compiler_static='$wl-static' 9972 ;; 9973 esac 9974 ;; 9975 9976 hpux9* | hpux10* | hpux11*) 9977 lt_prog_compiler_wl='-Wl,' 9978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9979 # not for PA HP-UX. 9980 case $host_cpu in 9981 hppa*64*|ia64*) 9982 # +Z the default 9983 ;; 9984 *) 9985 lt_prog_compiler_pic='+Z' 9986 ;; 9987 esac 9988 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9989 lt_prog_compiler_static='$wl-a ${wl}archive' 9990 ;; 9991 9992 irix5* | irix6* | nonstopux*) 9993 lt_prog_compiler_wl='-Wl,' 9994 # PIC (with -KPIC) is the default. 9995 lt_prog_compiler_static='-non_shared' 9996 ;; 9997 9998 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9999 case $cc_basename in 10000 # old Intel for x86_64, which still supported -KPIC. 10001 ecc*) 10002 lt_prog_compiler_wl='-Wl,' 10003 lt_prog_compiler_pic='-KPIC' 10004 lt_prog_compiler_static='-static' 10005 ;; 10006 # icc used to be incompatible with GCC. 10007 # ICC 10 doesn't accept -KPIC any more. 10008 icc* | ifort*) 10009 lt_prog_compiler_wl='-Wl,' 10010 lt_prog_compiler_pic='-fPIC' 10011 lt_prog_compiler_static='-static' 10012 ;; 10013 # Lahey Fortran 8.1. 10014 lf95*) 10015 lt_prog_compiler_wl='-Wl,' 10016 lt_prog_compiler_pic='--shared' 10017 lt_prog_compiler_static='--static' 10018 ;; 10019 nagfor*) 10020 # NAG Fortran compiler 10021 lt_prog_compiler_wl='-Wl,-Wl,,' 10022 lt_prog_compiler_pic='-PIC' 10023 lt_prog_compiler_static='-Bstatic' 10024 ;; 10025 tcc*) 10026 # Fabrice Bellard et al's Tiny C Compiler 10027 lt_prog_compiler_wl='-Wl,' 10028 lt_prog_compiler_pic='-fPIC' 10029 lt_prog_compiler_static='-static' 10030 ;; 10031 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10032 # Portland Group compilers (*not* the Pentium gcc compiler, 10033 # which looks to be a dead project) 10034 lt_prog_compiler_wl='-Wl,' 10035 lt_prog_compiler_pic='-fpic' 10036 lt_prog_compiler_static='-Bstatic' 10037 ;; 10038 ccc*) 10039 lt_prog_compiler_wl='-Wl,' 10040 # All Alpha code is PIC. 10041 lt_prog_compiler_static='-non_shared' 10042 ;; 10043 xl* | bgxl* | bgf* | mpixl*) 10044 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10045 lt_prog_compiler_wl='-Wl,' 10046 lt_prog_compiler_pic='-qpic' 10047 lt_prog_compiler_static='-qstaticlink' 10048 ;; 10049 *) 10050 case `$CC -V 2>&1 | $SED 5q` in 10051 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10052 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10053 lt_prog_compiler_pic='-KPIC' 10054 lt_prog_compiler_static='-Bstatic' 10055 lt_prog_compiler_wl='' 10056 ;; 10057 *Sun\ F* | *Sun*Fortran*) 10058 lt_prog_compiler_pic='-KPIC' 10059 lt_prog_compiler_static='-Bstatic' 10060 lt_prog_compiler_wl='-Qoption ld ' 10061 ;; 10062 *Sun\ C*) 10063 # Sun C 5.9 10064 lt_prog_compiler_pic='-KPIC' 10065 lt_prog_compiler_static='-Bstatic' 10066 lt_prog_compiler_wl='-Wl,' 10067 ;; 10068 *Intel*\ [CF]*Compiler*) 10069 lt_prog_compiler_wl='-Wl,' 10070 lt_prog_compiler_pic='-fPIC' 10071 lt_prog_compiler_static='-static' 10072 ;; 10073 *Portland\ Group*) 10074 lt_prog_compiler_wl='-Wl,' 10075 lt_prog_compiler_pic='-fpic' 10076 lt_prog_compiler_static='-Bstatic' 10077 ;; 10078 esac 10079 ;; 10080 esac 10081 ;; 10082 10083 newsos6) 10084 lt_prog_compiler_pic='-KPIC' 10085 lt_prog_compiler_static='-Bstatic' 10086 ;; 10087 10088 *nto* | *qnx*) 10089 # QNX uses GNU C++, but need to define -shared option too, otherwise 10090 # it will coredump. 10091 lt_prog_compiler_pic='-fPIC -shared' 10092 ;; 10093 10094 osf3* | osf4* | osf5*) 10095 lt_prog_compiler_wl='-Wl,' 10096 # All OSF/1 code is PIC. 10097 lt_prog_compiler_static='-non_shared' 10098 ;; 10099 10100 rdos*) 10101 lt_prog_compiler_static='-non_shared' 10102 ;; 10103 10104 solaris*) 10105 lt_prog_compiler_pic='-KPIC' 10106 lt_prog_compiler_static='-Bstatic' 10107 case $cc_basename in 10108 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10109 lt_prog_compiler_wl='-Qoption ld ';; 10110 *) 10111 lt_prog_compiler_wl='-Wl,';; 10112 esac 10113 ;; 10114 10115 sunos4*) 10116 lt_prog_compiler_wl='-Qoption ld ' 10117 lt_prog_compiler_pic='-PIC' 10118 lt_prog_compiler_static='-Bstatic' 10119 ;; 10120 10121 sysv4 | sysv4.2uw2* | sysv4.3*) 10122 lt_prog_compiler_wl='-Wl,' 10123 lt_prog_compiler_pic='-KPIC' 10124 lt_prog_compiler_static='-Bstatic' 10125 ;; 10126 10127 sysv4*MP*) 10128 if test -d /usr/nec; then 10129 lt_prog_compiler_pic='-Kconform_pic' 10130 lt_prog_compiler_static='-Bstatic' 10131 fi 10132 ;; 10133 10134 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10135 lt_prog_compiler_wl='-Wl,' 10136 lt_prog_compiler_pic='-KPIC' 10137 lt_prog_compiler_static='-Bstatic' 10138 ;; 10139 10140 unicos*) 10141 lt_prog_compiler_wl='-Wl,' 10142 lt_prog_compiler_can_build_shared=no 10143 ;; 10144 10145 uts4*) 10146 lt_prog_compiler_pic='-pic' 10147 lt_prog_compiler_static='-Bstatic' 10148 ;; 10149 10150 *) 10151 lt_prog_compiler_can_build_shared=no 10152 ;; 10153 esac 10154 fi 10155 10156case $host_os in 10157 # For platforms that do not support PIC, -DPIC is meaningless: 10158 *djgpp*) 10159 lt_prog_compiler_pic= 10160 ;; 10161 *) 10162 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10163 ;; 10164esac 10165 10166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10167printf %s "checking for $compiler option to produce PIC... " >&6; } 10168if test ${lt_cv_prog_compiler_pic+y} 10169then : 10170 printf %s "(cached) " >&6 10171else $as_nop 10172 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10173fi 10174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10175printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10176lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10177 10178# 10179# Check to make sure the PIC flag actually works. 10180# 10181if test -n "$lt_prog_compiler_pic"; then 10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10183printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10184if test ${lt_cv_prog_compiler_pic_works+y} 10185then : 10186 printf %s "(cached) " >&6 10187else $as_nop 10188 lt_cv_prog_compiler_pic_works=no 10189 ac_outfile=conftest.$ac_objext 10190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10191 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10192 # Insert the option either (1) after the last *FLAGS variable, or 10193 # (2) before a word containing "conftest.", or (3) at the end. 10194 # Note that $ac_compile itself does not contain backslashes and begins 10195 # with a dollar sign (not a hyphen), so the echo should work correctly. 10196 # The option is referenced via a variable to avoid confusing sed. 10197 lt_compile=`echo "$ac_compile" | $SED \ 10198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10200 -e 's:$: $lt_compiler_flag:'` 10201 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10202 (eval "$lt_compile" 2>conftest.err) 10203 ac_status=$? 10204 cat conftest.err >&5 10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10206 if (exit $ac_status) && test -s "$ac_outfile"; then 10207 # The compiler can only warn and ignore the option if not recognized 10208 # So say no if there are warnings other than the usual output. 10209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10210 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10211 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10212 lt_cv_prog_compiler_pic_works=yes 10213 fi 10214 fi 10215 $RM conftest* 10216 10217fi 10218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10219printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10220 10221if test yes = "$lt_cv_prog_compiler_pic_works"; then 10222 case $lt_prog_compiler_pic in 10223 "" | " "*) ;; 10224 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10225 esac 10226else 10227 lt_prog_compiler_pic= 10228 lt_prog_compiler_can_build_shared=no 10229fi 10230 10231fi 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243# 10244# Check to make sure the static flag actually works. 10245# 10246wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10248printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10249if test ${lt_cv_prog_compiler_static_works+y} 10250then : 10251 printf %s "(cached) " >&6 10252else $as_nop 10253 lt_cv_prog_compiler_static_works=no 10254 save_LDFLAGS=$LDFLAGS 10255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10256 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10258 # The linker can only warn and ignore the option if not recognized 10259 # So say no if there are warnings 10260 if test -s conftest.err; then 10261 # Append any errors to the config.log. 10262 cat conftest.err 1>&5 10263 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10265 if diff conftest.exp conftest.er2 >/dev/null; then 10266 lt_cv_prog_compiler_static_works=yes 10267 fi 10268 else 10269 lt_cv_prog_compiler_static_works=yes 10270 fi 10271 fi 10272 $RM -r conftest* 10273 LDFLAGS=$save_LDFLAGS 10274 10275fi 10276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10277printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10278 10279if test yes = "$lt_cv_prog_compiler_static_works"; then 10280 : 10281else 10282 lt_prog_compiler_static= 10283fi 10284 10285 10286 10287 10288 10289 10290 10291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10292printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10293if test ${lt_cv_prog_compiler_c_o+y} 10294then : 10295 printf %s "(cached) " >&6 10296else $as_nop 10297 lt_cv_prog_compiler_c_o=no 10298 $RM -r conftest 2>/dev/null 10299 mkdir conftest 10300 cd conftest 10301 mkdir out 10302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10303 10304 lt_compiler_flag="-o out/conftest2.$ac_objext" 10305 # Insert the option either (1) after the last *FLAGS variable, or 10306 # (2) before a word containing "conftest.", or (3) at the end. 10307 # Note that $ac_compile itself does not contain backslashes and begins 10308 # with a dollar sign (not a hyphen), so the echo should work correctly. 10309 lt_compile=`echo "$ac_compile" | $SED \ 10310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10312 -e 's:$: $lt_compiler_flag:'` 10313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10314 (eval "$lt_compile" 2>out/conftest.err) 10315 ac_status=$? 10316 cat out/conftest.err >&5 10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10318 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10319 then 10320 # The compiler can only warn and ignore the option if not recognized 10321 # So say no if there are warnings 10322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10325 lt_cv_prog_compiler_c_o=yes 10326 fi 10327 fi 10328 chmod u+w . 2>&5 10329 $RM conftest* 10330 # SGI C++ compiler will create directory out/ii_files/ for 10331 # template instantiation 10332 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10333 $RM out/* && rmdir out 10334 cd .. 10335 $RM -r conftest 10336 $RM conftest* 10337 10338fi 10339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10340printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10341 10342 10343 10344 10345 10346 10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10348printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10349if test ${lt_cv_prog_compiler_c_o+y} 10350then : 10351 printf %s "(cached) " >&6 10352else $as_nop 10353 lt_cv_prog_compiler_c_o=no 10354 $RM -r conftest 2>/dev/null 10355 mkdir conftest 10356 cd conftest 10357 mkdir out 10358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10359 10360 lt_compiler_flag="-o out/conftest2.$ac_objext" 10361 # Insert the option either (1) after the last *FLAGS variable, or 10362 # (2) before a word containing "conftest.", or (3) at the end. 10363 # Note that $ac_compile itself does not contain backslashes and begins 10364 # with a dollar sign (not a hyphen), so the echo should work correctly. 10365 lt_compile=`echo "$ac_compile" | $SED \ 10366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10368 -e 's:$: $lt_compiler_flag:'` 10369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10370 (eval "$lt_compile" 2>out/conftest.err) 10371 ac_status=$? 10372 cat out/conftest.err >&5 10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10374 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10375 then 10376 # The compiler can only warn and ignore the option if not recognized 10377 # So say no if there are warnings 10378 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10381 lt_cv_prog_compiler_c_o=yes 10382 fi 10383 fi 10384 chmod u+w . 2>&5 10385 $RM conftest* 10386 # SGI C++ compiler will create directory out/ii_files/ for 10387 # template instantiation 10388 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10389 $RM out/* && rmdir out 10390 cd .. 10391 $RM -r conftest 10392 $RM conftest* 10393 10394fi 10395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10396printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10397 10398 10399 10400 10401hard_links=nottested 10402if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10403 # do not overwrite the value of need_locks provided by the user 10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10405printf %s "checking if we can lock with hard links... " >&6; } 10406 hard_links=yes 10407 $RM conftest* 10408 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10409 touch conftest.a 10410 ln conftest.a conftest.b 2>&5 || hard_links=no 10411 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10413printf "%s\n" "$hard_links" >&6; } 10414 if test no = "$hard_links"; then 10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10416printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10417 need_locks=warn 10418 fi 10419else 10420 need_locks=no 10421fi 10422 10423 10424 10425 10426 10427 10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10429printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10430 10431 runpath_var= 10432 allow_undefined_flag= 10433 always_export_symbols=no 10434 archive_cmds= 10435 archive_expsym_cmds= 10436 compiler_needs_object=no 10437 enable_shared_with_static_runtimes=no 10438 export_dynamic_flag_spec= 10439 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10440 hardcode_automatic=no 10441 hardcode_direct=no 10442 hardcode_direct_absolute=no 10443 hardcode_libdir_flag_spec= 10444 hardcode_libdir_separator= 10445 hardcode_minus_L=no 10446 hardcode_shlibpath_var=unsupported 10447 inherit_rpath=no 10448 link_all_deplibs=unknown 10449 module_cmds= 10450 module_expsym_cmds= 10451 old_archive_from_new_cmds= 10452 old_archive_from_expsyms_cmds= 10453 thread_safe_flag_spec= 10454 whole_archive_flag_spec= 10455 # include_expsyms should be a list of space-separated symbols to be *always* 10456 # included in the symbol list 10457 include_expsyms= 10458 # exclude_expsyms can be an extended regexp of symbols to exclude 10459 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10460 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10461 # as well as any symbol that contains 'd'. 10462 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10463 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10464 # platforms (ab)use it in PIC code, but their linkers get confused if 10465 # the symbol is explicitly referenced. Since portable code cannot 10466 # rely on this symbol name, it's probably fine to never include it in 10467 # preloaded symbol tables. 10468 # Exclude shared library initialization/finalization symbols. 10469 extract_expsyms_cmds= 10470 10471 case $host_os in 10472 cygwin* | mingw* | pw32* | cegcc*) 10473 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10474 # When not using gcc, we currently assume that we are using 10475 # Microsoft Visual C++ or Intel C++ Compiler. 10476 if test yes != "$GCC"; then 10477 with_gnu_ld=no 10478 fi 10479 ;; 10480 interix*) 10481 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10482 with_gnu_ld=yes 10483 ;; 10484 openbsd* | bitrig*) 10485 with_gnu_ld=no 10486 ;; 10487 esac 10488 10489 ld_shlibs=yes 10490 10491 # On some targets, GNU ld is compatible enough with the native linker 10492 # that we're better off using the native interface for both. 10493 lt_use_gnu_ld_interface=no 10494 if test yes = "$with_gnu_ld"; then 10495 case $host_os in 10496 aix*) 10497 # The AIX port of GNU ld has always aspired to compatibility 10498 # with the native linker. However, as the warning in the GNU ld 10499 # block says, versions before 2.19.5* couldn't really create working 10500 # shared libraries, regardless of the interface used. 10501 case `$LD -v 2>&1` in 10502 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10503 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10504 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10505 *) 10506 lt_use_gnu_ld_interface=yes 10507 ;; 10508 esac 10509 ;; 10510 *) 10511 lt_use_gnu_ld_interface=yes 10512 ;; 10513 esac 10514 fi 10515 10516 if test yes = "$lt_use_gnu_ld_interface"; then 10517 # If archive_cmds runs LD, not CC, wlarc should be empty 10518 wlarc='$wl' 10519 10520 # Set some defaults for GNU ld with shared library support. These 10521 # are reset later if shared libraries are not supported. Putting them 10522 # here allows them to be overridden if necessary. 10523 runpath_var=LD_RUN_PATH 10524 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10525 export_dynamic_flag_spec='$wl--export-dynamic' 10526 # ancient GNU ld didn't support --whole-archive et. al. 10527 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10528 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10529 else 10530 whole_archive_flag_spec= 10531 fi 10532 supports_anon_versioning=no 10533 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10534 *GNU\ gold*) supports_anon_versioning=yes ;; 10535 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10536 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10537 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10538 *\ 2.11.*) ;; # other 2.11 versions 10539 *) supports_anon_versioning=yes ;; 10540 esac 10541 10542 # See if GNU ld supports shared libraries. 10543 case $host_os in 10544 aix[3-9]*) 10545 # On AIX/PPC, the GNU linker is very broken 10546 if test ia64 != "$host_cpu"; then 10547 ld_shlibs=no 10548 cat <<_LT_EOF 1>&2 10549 10550*** Warning: the GNU linker, at least up to release 2.19, is reported 10551*** to be unable to reliably create shared libraries on AIX. 10552*** Therefore, libtool is disabling shared libraries support. If you 10553*** really care for shared libraries, you may want to install binutils 10554*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10555*** You will then need to restart the configuration process. 10556 10557_LT_EOF 10558 fi 10559 ;; 10560 10561 amigaos*) 10562 case $host_cpu in 10563 powerpc) 10564 # see comment about AmigaOS4 .so support 10565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10566 archive_expsym_cmds='' 10567 ;; 10568 m68k) 10569 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)' 10570 hardcode_libdir_flag_spec='-L$libdir' 10571 hardcode_minus_L=yes 10572 ;; 10573 esac 10574 ;; 10575 10576 beos*) 10577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10578 allow_undefined_flag=unsupported 10579 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10580 # support --undefined. This deserves some investigation. FIXME 10581 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10582 else 10583 ld_shlibs=no 10584 fi 10585 ;; 10586 10587 cygwin* | mingw* | pw32* | cegcc*) 10588 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10589 # as there is no search path for DLLs. 10590 hardcode_libdir_flag_spec='-L$libdir' 10591 export_dynamic_flag_spec='$wl--export-all-symbols' 10592 allow_undefined_flag=unsupported 10593 always_export_symbols=no 10594 enable_shared_with_static_runtimes=yes 10595 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' 10596 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10597 10598 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10600 # If the export-symbols file already is a .def file, use it as 10601 # is; otherwise, prepend EXPORTS... 10602 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10603 cp $export_symbols $output_objdir/$soname.def; 10604 else 10605 echo EXPORTS > $output_objdir/$soname.def; 10606 cat $export_symbols >> $output_objdir/$soname.def; 10607 fi~ 10608 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10609 else 10610 ld_shlibs=no 10611 fi 10612 ;; 10613 10614 haiku*) 10615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10616 link_all_deplibs=yes 10617 ;; 10618 10619 os2*) 10620 hardcode_libdir_flag_spec='-L$libdir' 10621 hardcode_minus_L=yes 10622 allow_undefined_flag=unsupported 10623 shrext_cmds=.dll 10624 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10625 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10626 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10627 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10628 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10629 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10630 emximp -o $lib $output_objdir/$libname.def' 10631 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10632 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10633 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10634 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10635 prefix_cmds="$SED"~ 10636 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10637 prefix_cmds="$prefix_cmds -e 1d"; 10638 fi~ 10639 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10640 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10641 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10642 emximp -o $lib $output_objdir/$libname.def' 10643 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10644 enable_shared_with_static_runtimes=yes 10645 file_list_spec='@' 10646 ;; 10647 10648 interix[3-9]*) 10649 hardcode_direct=no 10650 hardcode_shlibpath_var=no 10651 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10652 export_dynamic_flag_spec='$wl-E' 10653 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10654 # Instead, shared libraries are loaded at an image base (0x10000000 by 10655 # default) and relocated if they conflict, which is a slow very memory 10656 # consuming and fragmenting process. To avoid this, we pick a random, 10657 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10658 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10659 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10660 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' 10661 ;; 10662 10663 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10664 tmp_diet=no 10665 if test linux-dietlibc = "$host_os"; then 10666 case $cc_basename in 10667 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10668 esac 10669 fi 10670 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10671 && test no = "$tmp_diet" 10672 then 10673 tmp_addflag=' $pic_flag' 10674 tmp_sharedflag='-shared' 10675 case $cc_basename,$host_cpu in 10676 pgcc*) # Portland Group C compiler 10677 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' 10678 tmp_addflag=' $pic_flag' 10679 ;; 10680 pgf77* | pgf90* | pgf95* | pgfortran*) 10681 # Portland Group f77 and f90 compilers 10682 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' 10683 tmp_addflag=' $pic_flag -Mnomain' ;; 10684 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10685 tmp_addflag=' -i_dynamic' ;; 10686 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10687 tmp_addflag=' -i_dynamic -nofor_main' ;; 10688 ifc* | ifort*) # Intel Fortran compiler 10689 tmp_addflag=' -nofor_main' ;; 10690 lf95*) # Lahey Fortran 8.1 10691 whole_archive_flag_spec= 10692 tmp_sharedflag='--shared' ;; 10693 nagfor*) # NAGFOR 5.3 10694 tmp_sharedflag='-Wl,-shared' ;; 10695 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10696 tmp_sharedflag='-qmkshrobj' 10697 tmp_addflag= ;; 10698 nvcc*) # Cuda Compiler Driver 2.2 10699 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' 10700 compiler_needs_object=yes 10701 ;; 10702 esac 10703 case `$CC -V 2>&1 | $SED 5q` in 10704 *Sun\ C*) # Sun C 5.9 10705 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' 10706 compiler_needs_object=yes 10707 tmp_sharedflag='-G' ;; 10708 *Sun\ F*) # Sun Fortran 8.3 10709 tmp_sharedflag='-G' ;; 10710 esac 10711 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10712 10713 if test yes = "$supports_anon_versioning"; then 10714 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10715 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10716 echo "local: *; };" >> $output_objdir/$libname.ver~ 10717 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10718 fi 10719 10720 case $cc_basename in 10721 tcc*) 10722 export_dynamic_flag_spec='-rdynamic' 10723 ;; 10724 xlf* | bgf* | bgxlf* | mpixlf*) 10725 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10726 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10727 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10728 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10729 if test yes = "$supports_anon_versioning"; then 10730 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10731 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10732 echo "local: *; };" >> $output_objdir/$libname.ver~ 10733 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10734 fi 10735 ;; 10736 esac 10737 else 10738 ld_shlibs=no 10739 fi 10740 ;; 10741 10742 netbsd*) 10743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10744 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10745 wlarc= 10746 else 10747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10748 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10749 fi 10750 ;; 10751 10752 solaris*) 10753 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10754 ld_shlibs=no 10755 cat <<_LT_EOF 1>&2 10756 10757*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10758*** create shared libraries on Solaris systems. Therefore, libtool 10759*** is disabling shared libraries support. We urge you to upgrade GNU 10760*** binutils to release 2.9.1 or newer. Another option is to modify 10761*** your PATH or compiler configuration so that the native linker is 10762*** used, and then restart. 10763 10764_LT_EOF 10765 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10767 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10768 else 10769 ld_shlibs=no 10770 fi 10771 ;; 10772 10773 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10774 case `$LD -v 2>&1` in 10775 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10776 ld_shlibs=no 10777 cat <<_LT_EOF 1>&2 10778 10779*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10780*** reliably create shared libraries on SCO systems. Therefore, libtool 10781*** is disabling shared libraries support. We urge you to upgrade GNU 10782*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10783*** your PATH or compiler configuration so that the native linker is 10784*** used, and then restart. 10785 10786_LT_EOF 10787 ;; 10788 *) 10789 # For security reasons, it is highly recommended that you always 10790 # use absolute paths for naming shared libraries, and exclude the 10791 # DT_RUNPATH tag from executables and libraries. But doing so 10792 # requires that you compile everything twice, which is a pain. 10793 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10794 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10797 else 10798 ld_shlibs=no 10799 fi 10800 ;; 10801 esac 10802 ;; 10803 10804 sunos4*) 10805 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10806 wlarc= 10807 hardcode_direct=yes 10808 hardcode_shlibpath_var=no 10809 ;; 10810 10811 *) 10812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10813 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10814 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10815 else 10816 ld_shlibs=no 10817 fi 10818 ;; 10819 esac 10820 10821 if test no = "$ld_shlibs"; then 10822 runpath_var= 10823 hardcode_libdir_flag_spec= 10824 export_dynamic_flag_spec= 10825 whole_archive_flag_spec= 10826 fi 10827 else 10828 # PORTME fill in a description of your system's linker (not GNU ld) 10829 case $host_os in 10830 aix3*) 10831 allow_undefined_flag=unsupported 10832 always_export_symbols=yes 10833 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' 10834 # Note: this linker hardcodes the directories in LIBPATH if there 10835 # are no directories specified by -L. 10836 hardcode_minus_L=yes 10837 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10838 # Neither direct hardcoding nor static linking is supported with a 10839 # broken collect2. 10840 hardcode_direct=unsupported 10841 fi 10842 ;; 10843 10844 aix[4-9]*) 10845 if test ia64 = "$host_cpu"; then 10846 # On IA64, the linker does run time linking by default, so we don't 10847 # have to do anything special. 10848 aix_use_runtimelinking=no 10849 exp_sym_flag='-Bexport' 10850 no_entry_flag= 10851 else 10852 # If we're using GNU nm, then we don't want the "-C" option. 10853 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10854 # Without the "-l" option, or with the "-B" option, AIX nm treats 10855 # weak defined symbols like other global defined symbols, whereas 10856 # GNU nm marks them as "W". 10857 # While the 'weak' keyword is ignored in the Export File, we need 10858 # it in the Import File for the 'aix-soname' feature, so we have 10859 # to replace the "-B" option with "-P" for AIX nm. 10860 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10861 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10862 else 10863 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10864 fi 10865 aix_use_runtimelinking=no 10866 10867 # Test if we are trying to use run time linking or normal 10868 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10869 # have runtime linking enabled, and use it for executables. 10870 # For shared libraries, we enable/disable runtime linking 10871 # depending on the kind of the shared library created - 10872 # when "with_aix_soname,aix_use_runtimelinking" is: 10873 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10874 # "aix,yes" lib.so shared, rtl:yes, for executables 10875 # lib.a static archive 10876 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10877 # lib.a(lib.so.V) shared, rtl:no, for executables 10878 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10879 # lib.a(lib.so.V) shared, rtl:no 10880 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10881 # lib.a static archive 10882 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10883 for ld_flag in $LDFLAGS; do 10884 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10885 aix_use_runtimelinking=yes 10886 break 10887 fi 10888 done 10889 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10890 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10891 # so we don't have lib.a shared libs to link our executables. 10892 # We have to force runtime linking in this case. 10893 aix_use_runtimelinking=yes 10894 LDFLAGS="$LDFLAGS -Wl,-brtl" 10895 fi 10896 ;; 10897 esac 10898 10899 exp_sym_flag='-bexport' 10900 no_entry_flag='-bnoentry' 10901 fi 10902 10903 # When large executables or shared objects are built, AIX ld can 10904 # have problems creating the table of contents. If linking a library 10905 # or program results in "error TOC overflow" add -mminimal-toc to 10906 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10907 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10908 10909 archive_cmds='' 10910 hardcode_direct=yes 10911 hardcode_direct_absolute=yes 10912 hardcode_libdir_separator=':' 10913 link_all_deplibs=yes 10914 file_list_spec='$wl-f,' 10915 case $with_aix_soname,$aix_use_runtimelinking in 10916 aix,*) ;; # traditional, no import file 10917 svr4,* | *,yes) # use import file 10918 # The Import File defines what to hardcode. 10919 hardcode_direct=no 10920 hardcode_direct_absolute=no 10921 ;; 10922 esac 10923 10924 if test yes = "$GCC"; then 10925 case $host_os in aix4.[012]|aix4.[012].*) 10926 # We only want to do this on AIX 4.2 and lower, the check 10927 # below for broken collect2 doesn't work under 4.3+ 10928 collect2name=`$CC -print-prog-name=collect2` 10929 if test -f "$collect2name" && 10930 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10931 then 10932 # We have reworked collect2 10933 : 10934 else 10935 # We have old collect2 10936 hardcode_direct=unsupported 10937 # It fails to find uninstalled libraries when the uninstalled 10938 # path is not listed in the libpath. Setting hardcode_minus_L 10939 # to unsupported forces relinking 10940 hardcode_minus_L=yes 10941 hardcode_libdir_flag_spec='-L$libdir' 10942 hardcode_libdir_separator= 10943 fi 10944 ;; 10945 esac 10946 shared_flag='-shared' 10947 if test yes = "$aix_use_runtimelinking"; then 10948 shared_flag="$shared_flag "'$wl-G' 10949 fi 10950 # Need to ensure runtime linking is disabled for the traditional 10951 # shared library, or the linker may eventually find shared libraries 10952 # /with/ Import File - we do not want to mix them. 10953 shared_flag_aix='-shared' 10954 shared_flag_svr4='-shared $wl-G' 10955 else 10956 # not using gcc 10957 if test ia64 = "$host_cpu"; then 10958 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10959 # chokes on -Wl,-G. The following line is correct: 10960 shared_flag='-G' 10961 else 10962 if test yes = "$aix_use_runtimelinking"; then 10963 shared_flag='$wl-G' 10964 else 10965 shared_flag='$wl-bM:SRE' 10966 fi 10967 shared_flag_aix='$wl-bM:SRE' 10968 shared_flag_svr4='$wl-G' 10969 fi 10970 fi 10971 10972 export_dynamic_flag_spec='$wl-bexpall' 10973 # It seems that -bexpall does not export symbols beginning with 10974 # underscore (_), so it is better to generate a list of symbols to export. 10975 always_export_symbols=yes 10976 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10977 # Warning - without using the other runtime loading flags (-brtl), 10978 # -berok will link without error, but may produce a broken library. 10979 allow_undefined_flag='-berok' 10980 # Determine the default libpath from the value encoded in an 10981 # empty executable. 10982 if test set = "${lt_cv_aix_libpath+set}"; then 10983 aix_libpath=$lt_cv_aix_libpath 10984else 10985 if test ${lt_cv_aix_libpath_+y} 10986then : 10987 printf %s "(cached) " >&6 10988else $as_nop 10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10990/* end confdefs.h. */ 10991 10992int 10993main (void) 10994{ 10995 10996 ; 10997 return 0; 10998} 10999_ACEOF 11000if ac_fn_c_try_link "$LINENO" 11001then : 11002 11003 lt_aix_libpath_sed=' 11004 /Import File Strings/,/^$/ { 11005 /^0/ { 11006 s/^0 *\([^ ]*\) *$/\1/ 11007 p 11008 } 11009 }' 11010 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11011 # Check for a 64-bit object if we didn't find anything. 11012 if test -z "$lt_cv_aix_libpath_"; then 11013 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11014 fi 11015fi 11016rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11017 conftest$ac_exeext conftest.$ac_ext 11018 if test -z "$lt_cv_aix_libpath_"; then 11019 lt_cv_aix_libpath_=/usr/lib:/lib 11020 fi 11021 11022fi 11023 11024 aix_libpath=$lt_cv_aix_libpath_ 11025fi 11026 11027 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11028 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11029 else 11030 if test ia64 = "$host_cpu"; then 11031 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11032 allow_undefined_flag="-z nodefs" 11033 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" 11034 else 11035 # Determine the default libpath from the value encoded in an 11036 # empty executable. 11037 if test set = "${lt_cv_aix_libpath+set}"; then 11038 aix_libpath=$lt_cv_aix_libpath 11039else 11040 if test ${lt_cv_aix_libpath_+y} 11041then : 11042 printf %s "(cached) " >&6 11043else $as_nop 11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11045/* end confdefs.h. */ 11046 11047int 11048main (void) 11049{ 11050 11051 ; 11052 return 0; 11053} 11054_ACEOF 11055if ac_fn_c_try_link "$LINENO" 11056then : 11057 11058 lt_aix_libpath_sed=' 11059 /Import File Strings/,/^$/ { 11060 /^0/ { 11061 s/^0 *\([^ ]*\) *$/\1/ 11062 p 11063 } 11064 }' 11065 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11066 # Check for a 64-bit object if we didn't find anything. 11067 if test -z "$lt_cv_aix_libpath_"; then 11068 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11069 fi 11070fi 11071rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11072 conftest$ac_exeext conftest.$ac_ext 11073 if test -z "$lt_cv_aix_libpath_"; then 11074 lt_cv_aix_libpath_=/usr/lib:/lib 11075 fi 11076 11077fi 11078 11079 aix_libpath=$lt_cv_aix_libpath_ 11080fi 11081 11082 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11083 # Warning - without using the other run time loading flags, 11084 # -berok will link without error, but may produce a broken library. 11085 no_undefined_flag=' $wl-bernotok' 11086 allow_undefined_flag=' $wl-berok' 11087 if test yes = "$with_gnu_ld"; then 11088 # We only use this code for GNU lds that support --whole-archive. 11089 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11090 else 11091 # Exported symbols can be pulled into shared objects from archives 11092 whole_archive_flag_spec='$convenience' 11093 fi 11094 archive_cmds_need_lc=yes 11095 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11096 # -brtl affects multiple linker settings, -berok does not and is overridden later 11097 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11098 if test svr4 != "$with_aix_soname"; then 11099 # This is similar to how AIX traditionally builds its shared libraries. 11100 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11101 fi 11102 if test aix != "$with_aix_soname"; then 11103 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11104 else 11105 # used by -dlpreopen to get the symbols 11106 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11107 fi 11108 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11109 fi 11110 fi 11111 ;; 11112 11113 amigaos*) 11114 case $host_cpu in 11115 powerpc) 11116 # see comment about AmigaOS4 .so support 11117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11118 archive_expsym_cmds='' 11119 ;; 11120 m68k) 11121 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)' 11122 hardcode_libdir_flag_spec='-L$libdir' 11123 hardcode_minus_L=yes 11124 ;; 11125 esac 11126 ;; 11127 11128 bsdi[45]*) 11129 export_dynamic_flag_spec=-rdynamic 11130 ;; 11131 11132 cygwin* | mingw* | pw32* | cegcc*) 11133 # When not using gcc, we currently assume that we are using 11134 # Microsoft Visual C++ or Intel C++ Compiler. 11135 # hardcode_libdir_flag_spec is actually meaningless, as there is 11136 # no search path for DLLs. 11137 case $cc_basename in 11138 cl* | icl*) 11139 # Native MSVC or ICC 11140 hardcode_libdir_flag_spec=' ' 11141 allow_undefined_flag=unsupported 11142 always_export_symbols=yes 11143 file_list_spec='@' 11144 # Tell ltmain to make .lib files, not .a files. 11145 libext=lib 11146 # Tell ltmain to make .dll files, not .so files. 11147 shrext_cmds=.dll 11148 # FIXME: Setting linknames here is a bad hack. 11149 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11150 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11151 cp "$export_symbols" "$output_objdir/$soname.def"; 11152 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11153 else 11154 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11155 fi~ 11156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11157 linknames=' 11158 # The linker will not automatically build a static lib if we build a DLL. 11159 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11160 enable_shared_with_static_runtimes=yes 11161 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11163 # Don't use ranlib 11164 old_postinstall_cmds='chmod 644 $oldlib' 11165 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11166 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11167 case $lt_outputfile in 11168 *.exe|*.EXE) ;; 11169 *) 11170 lt_outputfile=$lt_outputfile.exe 11171 lt_tool_outputfile=$lt_tool_outputfile.exe 11172 ;; 11173 esac~ 11174 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11175 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11176 $RM "$lt_outputfile.manifest"; 11177 fi' 11178 ;; 11179 *) 11180 # Assume MSVC and ICC wrapper 11181 hardcode_libdir_flag_spec=' ' 11182 allow_undefined_flag=unsupported 11183 # Tell ltmain to make .lib files, not .a files. 11184 libext=lib 11185 # Tell ltmain to make .dll files, not .so files. 11186 shrext_cmds=.dll 11187 # FIXME: Setting linknames here is a bad hack. 11188 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11189 # The linker will automatically build a .lib file if we build a DLL. 11190 old_archive_from_new_cmds='true' 11191 # FIXME: Should let the user specify the lib program. 11192 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11193 enable_shared_with_static_runtimes=yes 11194 ;; 11195 esac 11196 ;; 11197 11198 darwin* | rhapsody*) 11199 11200 11201 archive_cmds_need_lc=no 11202 hardcode_direct=no 11203 hardcode_automatic=yes 11204 hardcode_shlibpath_var=unsupported 11205 if test yes = "$lt_cv_ld_force_load"; then 11206 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\"`' 11207 11208 else 11209 whole_archive_flag_spec='' 11210 fi 11211 link_all_deplibs=yes 11212 allow_undefined_flag=$_lt_dar_allow_undefined 11213 case $cc_basename in 11214 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11215 *) _lt_dar_can_shared=$GCC ;; 11216 esac 11217 if test yes = "$_lt_dar_can_shared"; then 11218 output_verbose_link_cmd=func_echo_all 11219 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11220 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11221 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" 11222 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" 11223 11224 else 11225 ld_shlibs=no 11226 fi 11227 11228 ;; 11229 11230 dgux*) 11231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11232 hardcode_libdir_flag_spec='-L$libdir' 11233 hardcode_shlibpath_var=no 11234 ;; 11235 11236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11237 # support. Future versions do this automatically, but an explicit c++rt0.o 11238 # does not break anything, and helps significantly (at the cost of a little 11239 # extra space). 11240 freebsd2.2*) 11241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11242 hardcode_libdir_flag_spec='-R$libdir' 11243 hardcode_direct=yes 11244 hardcode_shlibpath_var=no 11245 ;; 11246 11247 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11248 freebsd2.*) 11249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11250 hardcode_direct=yes 11251 hardcode_minus_L=yes 11252 hardcode_shlibpath_var=no 11253 ;; 11254 11255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11256 freebsd* | dragonfly* | midnightbsd*) 11257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11258 hardcode_libdir_flag_spec='-R$libdir' 11259 hardcode_direct=yes 11260 hardcode_shlibpath_var=no 11261 ;; 11262 11263 hpux9*) 11264 if test yes = "$GCC"; then 11265 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11266 else 11267 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11268 fi 11269 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11270 hardcode_libdir_separator=: 11271 hardcode_direct=yes 11272 11273 # hardcode_minus_L: Not really in the search PATH, 11274 # but as the default location of the library. 11275 hardcode_minus_L=yes 11276 export_dynamic_flag_spec='$wl-E' 11277 ;; 11278 11279 hpux10*) 11280 if test yes,no = "$GCC,$with_gnu_ld"; then 11281 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11282 else 11283 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11284 fi 11285 if test no = "$with_gnu_ld"; then 11286 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11287 hardcode_libdir_separator=: 11288 hardcode_direct=yes 11289 hardcode_direct_absolute=yes 11290 export_dynamic_flag_spec='$wl-E' 11291 # hardcode_minus_L: Not really in the search PATH, 11292 # but as the default location of the library. 11293 hardcode_minus_L=yes 11294 fi 11295 ;; 11296 11297 hpux11*) 11298 if test yes,no = "$GCC,$with_gnu_ld"; then 11299 case $host_cpu in 11300 hppa*64*) 11301 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11302 ;; 11303 ia64*) 11304 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11305 ;; 11306 *) 11307 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11308 ;; 11309 esac 11310 else 11311 case $host_cpu in 11312 hppa*64*) 11313 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11314 ;; 11315 ia64*) 11316 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11317 ;; 11318 *) 11319 11320 # Older versions of the 11.00 compiler do not understand -b yet 11321 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11323printf %s "checking if $CC understands -b... " >&6; } 11324if test ${lt_cv_prog_compiler__b+y} 11325then : 11326 printf %s "(cached) " >&6 11327else $as_nop 11328 lt_cv_prog_compiler__b=no 11329 save_LDFLAGS=$LDFLAGS 11330 LDFLAGS="$LDFLAGS -b" 11331 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11332 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11333 # The linker can only warn and ignore the option if not recognized 11334 # So say no if there are warnings 11335 if test -s conftest.err; then 11336 # Append any errors to the config.log. 11337 cat conftest.err 1>&5 11338 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11340 if diff conftest.exp conftest.er2 >/dev/null; then 11341 lt_cv_prog_compiler__b=yes 11342 fi 11343 else 11344 lt_cv_prog_compiler__b=yes 11345 fi 11346 fi 11347 $RM -r conftest* 11348 LDFLAGS=$save_LDFLAGS 11349 11350fi 11351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11352printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11353 11354if test yes = "$lt_cv_prog_compiler__b"; then 11355 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11356else 11357 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11358fi 11359 11360 ;; 11361 esac 11362 fi 11363 if test no = "$with_gnu_ld"; then 11364 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11365 hardcode_libdir_separator=: 11366 11367 case $host_cpu in 11368 hppa*64*|ia64*) 11369 hardcode_direct=no 11370 hardcode_shlibpath_var=no 11371 ;; 11372 *) 11373 hardcode_direct=yes 11374 hardcode_direct_absolute=yes 11375 export_dynamic_flag_spec='$wl-E' 11376 11377 # hardcode_minus_L: Not really in the search PATH, 11378 # but as the default location of the library. 11379 hardcode_minus_L=yes 11380 ;; 11381 esac 11382 fi 11383 ;; 11384 11385 irix5* | irix6* | nonstopux*) 11386 if test yes = "$GCC"; then 11387 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' 11388 # Try to use the -exported_symbol ld option, if it does not 11389 # work, assume that -exports_file does not work either and 11390 # implicitly export all symbols. 11391 # This should be the same for all languages, so no per-tag cache variable. 11392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11393printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11394if test ${lt_cv_irix_exported_symbol+y} 11395then : 11396 printf %s "(cached) " >&6 11397else $as_nop 11398 save_LDFLAGS=$LDFLAGS 11399 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11401/* end confdefs.h. */ 11402int foo (void) { return 0; } 11403_ACEOF 11404if ac_fn_c_try_link "$LINENO" 11405then : 11406 lt_cv_irix_exported_symbol=yes 11407else $as_nop 11408 lt_cv_irix_exported_symbol=no 11409fi 11410rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11411 conftest$ac_exeext conftest.$ac_ext 11412 LDFLAGS=$save_LDFLAGS 11413fi 11414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11415printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11416 if test yes = "$lt_cv_irix_exported_symbol"; then 11417 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' 11418 fi 11419 else 11420 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' 11421 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' 11422 fi 11423 archive_cmds_need_lc='no' 11424 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11425 hardcode_libdir_separator=: 11426 inherit_rpath=yes 11427 link_all_deplibs=yes 11428 ;; 11429 11430 linux*) 11431 case $cc_basename in 11432 tcc*) 11433 # Fabrice Bellard et al's Tiny C Compiler 11434 ld_shlibs=yes 11435 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11436 ;; 11437 esac 11438 ;; 11439 11440 netbsd*) 11441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11443 else 11444 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11445 fi 11446 hardcode_libdir_flag_spec='-R$libdir' 11447 hardcode_direct=yes 11448 hardcode_shlibpath_var=no 11449 ;; 11450 11451 newsos6) 11452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11453 hardcode_direct=yes 11454 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11455 hardcode_libdir_separator=: 11456 hardcode_shlibpath_var=no 11457 ;; 11458 11459 *nto* | *qnx*) 11460 ;; 11461 11462 openbsd* | bitrig*) 11463 if test -f /usr/libexec/ld.so; then 11464 hardcode_direct=yes 11465 hardcode_shlibpath_var=no 11466 hardcode_direct_absolute=yes 11467 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11469 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11470 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11471 export_dynamic_flag_spec='$wl-E' 11472 else 11473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11474 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11475 fi 11476 else 11477 ld_shlibs=no 11478 fi 11479 ;; 11480 11481 os2*) 11482 hardcode_libdir_flag_spec='-L$libdir' 11483 hardcode_minus_L=yes 11484 allow_undefined_flag=unsupported 11485 shrext_cmds=.dll 11486 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11487 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11488 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11489 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11490 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11491 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11492 emximp -o $lib $output_objdir/$libname.def' 11493 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11494 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11495 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11496 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11497 prefix_cmds="$SED"~ 11498 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11499 prefix_cmds="$prefix_cmds -e 1d"; 11500 fi~ 11501 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11502 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11503 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11504 emximp -o $lib $output_objdir/$libname.def' 11505 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11506 enable_shared_with_static_runtimes=yes 11507 file_list_spec='@' 11508 ;; 11509 11510 osf3*) 11511 if test yes = "$GCC"; then 11512 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11513 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' 11514 else 11515 allow_undefined_flag=' -expect_unresolved \*' 11516 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' 11517 fi 11518 archive_cmds_need_lc='no' 11519 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11520 hardcode_libdir_separator=: 11521 ;; 11522 11523 osf4* | osf5*) # as osf3* with the addition of -msym flag 11524 if test yes = "$GCC"; then 11525 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11526 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' 11527 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11528 else 11529 allow_undefined_flag=' -expect_unresolved \*' 11530 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' 11531 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~ 11532 $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' 11533 11534 # Both c and cxx compiler support -rpath directly 11535 hardcode_libdir_flag_spec='-rpath $libdir' 11536 fi 11537 archive_cmds_need_lc='no' 11538 hardcode_libdir_separator=: 11539 ;; 11540 11541 solaris*) 11542 no_undefined_flag=' -z defs' 11543 if test yes = "$GCC"; then 11544 wlarc='$wl' 11545 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11547 $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' 11548 else 11549 case `$CC -V 2>&1` in 11550 *"Compilers 5.0"*) 11551 wlarc='' 11552 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11554 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11555 ;; 11556 *) 11557 wlarc='$wl' 11558 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11560 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11561 ;; 11562 esac 11563 fi 11564 hardcode_libdir_flag_spec='-R$libdir' 11565 hardcode_shlibpath_var=no 11566 case $host_os in 11567 solaris2.[0-5] | solaris2.[0-5].*) ;; 11568 *) 11569 # The compiler driver will combine and reorder linker options, 11570 # but understands '-z linker_flag'. GCC discards it without '$wl', 11571 # but is careful enough not to reorder. 11572 # Supported since Solaris 2.6 (maybe 2.5.1?) 11573 if test yes = "$GCC"; then 11574 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11575 else 11576 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11577 fi 11578 ;; 11579 esac 11580 link_all_deplibs=yes 11581 ;; 11582 11583 sunos4*) 11584 if test sequent = "$host_vendor"; then 11585 # Use $CC to link under sequent, because it throws in some extra .o 11586 # files that make .init and .fini sections work. 11587 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11588 else 11589 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11590 fi 11591 hardcode_libdir_flag_spec='-L$libdir' 11592 hardcode_direct=yes 11593 hardcode_minus_L=yes 11594 hardcode_shlibpath_var=no 11595 ;; 11596 11597 sysv4) 11598 case $host_vendor in 11599 sni) 11600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11601 hardcode_direct=yes # is this really true??? 11602 ;; 11603 siemens) 11604 ## LD is ld it makes a PLAMLIB 11605 ## CC just makes a GrossModule. 11606 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11607 reload_cmds='$CC -r -o $output$reload_objs' 11608 hardcode_direct=no 11609 ;; 11610 motorola) 11611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11612 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11613 ;; 11614 esac 11615 runpath_var='LD_RUN_PATH' 11616 hardcode_shlibpath_var=no 11617 ;; 11618 11619 sysv4.3*) 11620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11621 hardcode_shlibpath_var=no 11622 export_dynamic_flag_spec='-Bexport' 11623 ;; 11624 11625 sysv4*MP*) 11626 if test -d /usr/nec; then 11627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11628 hardcode_shlibpath_var=no 11629 runpath_var=LD_RUN_PATH 11630 hardcode_runpath_var=yes 11631 ld_shlibs=yes 11632 fi 11633 ;; 11634 11635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11636 no_undefined_flag='$wl-z,text' 11637 archive_cmds_need_lc=no 11638 hardcode_shlibpath_var=no 11639 runpath_var='LD_RUN_PATH' 11640 11641 if test yes = "$GCC"; then 11642 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11643 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11644 else 11645 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11646 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11647 fi 11648 ;; 11649 11650 sysv5* | sco3.2v5* | sco5v6*) 11651 # Note: We CANNOT use -z defs as we might desire, because we do not 11652 # link with -lc, and that would cause any symbols used from libc to 11653 # always be unresolved, which means just about no library would 11654 # ever link correctly. If we're not using GNU ld we use -z text 11655 # though, which does catch some bad symbols but isn't as heavy-handed 11656 # as -z defs. 11657 no_undefined_flag='$wl-z,text' 11658 allow_undefined_flag='$wl-z,nodefs' 11659 archive_cmds_need_lc=no 11660 hardcode_shlibpath_var=no 11661 hardcode_libdir_flag_spec='$wl-R,$libdir' 11662 hardcode_libdir_separator=':' 11663 link_all_deplibs=yes 11664 export_dynamic_flag_spec='$wl-Bexport' 11665 runpath_var='LD_RUN_PATH' 11666 11667 if test yes = "$GCC"; then 11668 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11669 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11670 else 11671 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11672 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11673 fi 11674 ;; 11675 11676 uts4*) 11677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11678 hardcode_libdir_flag_spec='-L$libdir' 11679 hardcode_shlibpath_var=no 11680 ;; 11681 11682 *) 11683 ld_shlibs=no 11684 ;; 11685 esac 11686 11687 if test sni = "$host_vendor"; then 11688 case $host in 11689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11690 export_dynamic_flag_spec='$wl-Blargedynsym' 11691 ;; 11692 esac 11693 fi 11694 fi 11695 11696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11697printf "%s\n" "$ld_shlibs" >&6; } 11698test no = "$ld_shlibs" && can_build_shared=no 11699 11700with_gnu_ld=$with_gnu_ld 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716# 11717# Do we need to explicitly link libc? 11718# 11719case "x$archive_cmds_need_lc" in 11720x|xyes) 11721 # Assume -lc should be added 11722 archive_cmds_need_lc=yes 11723 11724 if test yes,yes = "$GCC,$enable_shared"; then 11725 case $archive_cmds in 11726 *'~'*) 11727 # FIXME: we may have to deal with multi-command sequences. 11728 ;; 11729 '$CC '*) 11730 # Test whether the compiler implicitly links with -lc since on some 11731 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11732 # to ld, don't add -lc before -lgcc. 11733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11734printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11735if test ${lt_cv_archive_cmds_need_lc+y} 11736then : 11737 printf %s "(cached) " >&6 11738else $as_nop 11739 $RM conftest* 11740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11741 11742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11743 (eval $ac_compile) 2>&5 11744 ac_status=$? 11745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11746 test $ac_status = 0; } 2>conftest.err; then 11747 soname=conftest 11748 lib=conftest 11749 libobjs=conftest.$ac_objext 11750 deplibs= 11751 wl=$lt_prog_compiler_wl 11752 pic_flag=$lt_prog_compiler_pic 11753 compiler_flags=-v 11754 linker_flags=-v 11755 verstring= 11756 output_objdir=. 11757 libname=conftest 11758 lt_save_allow_undefined_flag=$allow_undefined_flag 11759 allow_undefined_flag= 11760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11761 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11762 ac_status=$? 11763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11764 test $ac_status = 0; } 11765 then 11766 lt_cv_archive_cmds_need_lc=no 11767 else 11768 lt_cv_archive_cmds_need_lc=yes 11769 fi 11770 allow_undefined_flag=$lt_save_allow_undefined_flag 11771 else 11772 cat conftest.err 1>&5 11773 fi 11774 $RM conftest* 11775 11776fi 11777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11778printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11779 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11780 ;; 11781 esac 11782 fi 11783 ;; 11784esac 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11938printf %s "checking dynamic linker characteristics... " >&6; } 11939 11940if test yes = "$GCC"; then 11941 case $host_os in 11942 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11943 *) lt_awk_arg='/^libraries:/' ;; 11944 esac 11945 case $host_os in 11946 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11947 *) lt_sed_strip_eq='s|=/|/|g' ;; 11948 esac 11949 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11950 case $lt_search_path_spec in 11951 *\;*) 11952 # if the path contains ";" then we assume it to be the separator 11953 # otherwise default to the standard path separator (i.e. ":") - it is 11954 # assumed that no part of a normal pathname contains ";" but that should 11955 # okay in the real world where ";" in dirpaths is itself problematic. 11956 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11957 ;; 11958 *) 11959 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11960 ;; 11961 esac 11962 # Ok, now we have the path, separated by spaces, we can step through it 11963 # and add multilib dir if necessary... 11964 lt_tmp_lt_search_path_spec= 11965 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11966 # ...but if some path component already ends with the multilib dir we assume 11967 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11968 case "$lt_multi_os_dir; $lt_search_path_spec " in 11969 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11970 lt_multi_os_dir= 11971 ;; 11972 esac 11973 for lt_sys_path in $lt_search_path_spec; do 11974 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11976 elif test -n "$lt_multi_os_dir"; then 11977 test -d "$lt_sys_path" && \ 11978 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11979 fi 11980 done 11981 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11982BEGIN {RS = " "; FS = "/|\n";} { 11983 lt_foo = ""; 11984 lt_count = 0; 11985 for (lt_i = NF; lt_i > 0; lt_i--) { 11986 if ($lt_i != "" && $lt_i != ".") { 11987 if ($lt_i == "..") { 11988 lt_count++; 11989 } else { 11990 if (lt_count == 0) { 11991 lt_foo = "/" $lt_i lt_foo; 11992 } else { 11993 lt_count--; 11994 } 11995 } 11996 } 11997 } 11998 if (lt_foo != "") { lt_freq[lt_foo]++; } 11999 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12000}'` 12001 # AWK program above erroneously prepends '/' to C:/dos/paths 12002 # for these hosts. 12003 case $host_os in 12004 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12005 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12006 esac 12007 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12008else 12009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12010fi 12011library_names_spec= 12012libname_spec='lib$name' 12013soname_spec= 12014shrext_cmds=.so 12015postinstall_cmds= 12016postuninstall_cmds= 12017finish_cmds= 12018finish_eval= 12019shlibpath_var= 12020shlibpath_overrides_runpath=unknown 12021version_type=none 12022dynamic_linker="$host_os ld.so" 12023sys_lib_dlsearch_path_spec="/lib /usr/lib" 12024need_lib_prefix=unknown 12025hardcode_into_libs=no 12026 12027# when you set need_version to no, make sure it does not cause -set_version 12028# flags to be left without arguments 12029need_version=unknown 12030 12031 12032 12033case $host_os in 12034aix3*) 12035 version_type=linux # correct to gnu/linux during the next big refactor 12036 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12037 shlibpath_var=LIBPATH 12038 12039 # AIX 3 has no versioning support, so we append a major version to the name. 12040 soname_spec='$libname$release$shared_ext$major' 12041 ;; 12042 12043aix[4-9]*) 12044 version_type=linux # correct to gnu/linux during the next big refactor 12045 need_lib_prefix=no 12046 need_version=no 12047 hardcode_into_libs=yes 12048 if test ia64 = "$host_cpu"; then 12049 # AIX 5 supports IA64 12050 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12051 shlibpath_var=LD_LIBRARY_PATH 12052 else 12053 # With GCC up to 2.95.x, collect2 would create an import file 12054 # for dependence libraries. The import file would start with 12055 # the line '#! .'. This would cause the generated library to 12056 # depend on '.', always an invalid library. This was fixed in 12057 # development snapshots of GCC prior to 3.0. 12058 case $host_os in 12059 aix4 | aix4.[01] | aix4.[01].*) 12060 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12061 echo ' yes ' 12062 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12063 : 12064 else 12065 can_build_shared=no 12066 fi 12067 ;; 12068 esac 12069 # Using Import Files as archive members, it is possible to support 12070 # filename-based versioning of shared library archives on AIX. While 12071 # this would work for both with and without runtime linking, it will 12072 # prevent static linking of such archives. So we do filename-based 12073 # shared library versioning with .so extension only, which is used 12074 # when both runtime linking and shared linking is enabled. 12075 # Unfortunately, runtime linking may impact performance, so we do 12076 # not want this to be the default eventually. Also, we use the 12077 # versioned .so libs for executables only if there is the -brtl 12078 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12079 # To allow for filename-based versioning support, we need to create 12080 # libNAME.so.V as an archive file, containing: 12081 # *) an Import File, referring to the versioned filename of the 12082 # archive as well as the shared archive member, telling the 12083 # bitwidth (32 or 64) of that shared object, and providing the 12084 # list of exported symbols of that shared object, eventually 12085 # decorated with the 'weak' keyword 12086 # *) the shared object with the F_LOADONLY flag set, to really avoid 12087 # it being seen by the linker. 12088 # At run time we better use the real file rather than another symlink, 12089 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12090 12091 case $with_aix_soname,$aix_use_runtimelinking in 12092 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12093 # soname into executable. Probably we can add versioning support to 12094 # collect2, so additional links can be useful in future. 12095 aix,yes) # traditional libtool 12096 dynamic_linker='AIX unversionable lib.so' 12097 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12098 # instead of lib<name>.a to let people know that these are not 12099 # typical AIX shared libraries. 12100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12101 ;; 12102 aix,no) # traditional AIX only 12103 dynamic_linker='AIX lib.a(lib.so.V)' 12104 # We preserve .a as extension for shared libraries through AIX4.2 12105 # and later when we are not doing run time linking. 12106 library_names_spec='$libname$release.a $libname.a' 12107 soname_spec='$libname$release$shared_ext$major' 12108 ;; 12109 svr4,*) # full svr4 only 12110 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12111 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12112 # We do not specify a path in Import Files, so LIBPATH fires. 12113 shlibpath_overrides_runpath=yes 12114 ;; 12115 *,yes) # both, prefer svr4 12116 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12117 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12118 # unpreferred sharedlib libNAME.a needs extra handling 12119 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12120 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12121 # We do not specify a path in Import Files, so LIBPATH fires. 12122 shlibpath_overrides_runpath=yes 12123 ;; 12124 *,no) # both, prefer aix 12125 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12126 library_names_spec='$libname$release.a $libname.a' 12127 soname_spec='$libname$release$shared_ext$major' 12128 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12129 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12130 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12131 ;; 12132 esac 12133 shlibpath_var=LIBPATH 12134 fi 12135 ;; 12136 12137amigaos*) 12138 case $host_cpu in 12139 powerpc) 12140 # Since July 2007 AmigaOS4 officially supports .so libraries. 12141 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12143 ;; 12144 m68k) 12145 library_names_spec='$libname.ixlibrary $libname.a' 12146 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12147 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12148 ;; 12149 esac 12150 ;; 12151 12152beos*) 12153 library_names_spec='$libname$shared_ext' 12154 dynamic_linker="$host_os ld.so" 12155 shlibpath_var=LIBRARY_PATH 12156 ;; 12157 12158bsdi[45]*) 12159 version_type=linux # correct to gnu/linux during the next big refactor 12160 need_version=no 12161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12162 soname_spec='$libname$release$shared_ext$major' 12163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12164 shlibpath_var=LD_LIBRARY_PATH 12165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12167 # the default ld.so.conf also contains /usr/contrib/lib and 12168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12169 # libtool to hard-code these into programs 12170 ;; 12171 12172cygwin* | mingw* | pw32* | cegcc*) 12173 version_type=windows 12174 shrext_cmds=.dll 12175 need_version=no 12176 need_lib_prefix=no 12177 12178 case $GCC,$cc_basename in 12179 yes,*) 12180 # gcc 12181 library_names_spec='$libname.dll.a' 12182 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12183 postinstall_cmds='base_file=`basename \$file`~ 12184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12185 dldir=$destdir/`dirname \$dlpath`~ 12186 test -d \$dldir || mkdir -p \$dldir~ 12187 $install_prog $dir/$dlname \$dldir/$dlname~ 12188 chmod a+x \$dldir/$dlname~ 12189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12191 fi' 12192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12193 dlpath=$dir/\$dldll~ 12194 $RM \$dlpath' 12195 shlibpath_overrides_runpath=yes 12196 12197 case $host_os in 12198 cygwin*) 12199 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12200 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12201 12202 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12203 ;; 12204 mingw* | cegcc*) 12205 # MinGW DLLs use traditional 'lib' prefix 12206 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12207 ;; 12208 pw32*) 12209 # pw32 DLLs use 'pw' prefix rather than 'lib' 12210 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12211 ;; 12212 esac 12213 dynamic_linker='Win32 ld.exe' 12214 ;; 12215 12216 *,cl* | *,icl*) 12217 # Native MSVC or ICC 12218 libname_spec='$name' 12219 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12220 library_names_spec='$libname.dll.lib' 12221 12222 case $build_os in 12223 mingw*) 12224 sys_lib_search_path_spec= 12225 lt_save_ifs=$IFS 12226 IFS=';' 12227 for lt_path in $LIB 12228 do 12229 IFS=$lt_save_ifs 12230 # Let DOS variable expansion print the short 8.3 style file name. 12231 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12232 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12233 done 12234 IFS=$lt_save_ifs 12235 # Convert to MSYS style. 12236 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12237 ;; 12238 cygwin*) 12239 # Convert to unix form, then to dos form, then back to unix form 12240 # but this time dos style (no spaces!) so that the unix form looks 12241 # like /cygdrive/c/PROGRA~1:/cygdr... 12242 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12243 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12244 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12245 ;; 12246 *) 12247 sys_lib_search_path_spec=$LIB 12248 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12249 # It is most probably a Windows format PATH. 12250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12251 else 12252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12253 fi 12254 # FIXME: find the short name or the path components, as spaces are 12255 # common. (e.g. "Program Files" -> "PROGRA~1") 12256 ;; 12257 esac 12258 12259 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12260 postinstall_cmds='base_file=`basename \$file`~ 12261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12262 dldir=$destdir/`dirname \$dlpath`~ 12263 test -d \$dldir || mkdir -p \$dldir~ 12264 $install_prog $dir/$dlname \$dldir/$dlname' 12265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12266 dlpath=$dir/\$dldll~ 12267 $RM \$dlpath' 12268 shlibpath_overrides_runpath=yes 12269 dynamic_linker='Win32 link.exe' 12270 ;; 12271 12272 *) 12273 # Assume MSVC and ICC wrapper 12274 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12275 dynamic_linker='Win32 ld.exe' 12276 ;; 12277 esac 12278 # FIXME: first we should search . and the directory the executable is in 12279 shlibpath_var=PATH 12280 ;; 12281 12282darwin* | rhapsody*) 12283 dynamic_linker="$host_os dyld" 12284 version_type=darwin 12285 need_lib_prefix=no 12286 need_version=no 12287 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12288 soname_spec='$libname$release$major$shared_ext' 12289 shlibpath_overrides_runpath=yes 12290 shlibpath_var=DYLD_LIBRARY_PATH 12291 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12292 12293 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12294 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12295 ;; 12296 12297dgux*) 12298 version_type=linux # correct to gnu/linux during the next big refactor 12299 need_lib_prefix=no 12300 need_version=no 12301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12302 soname_spec='$libname$release$shared_ext$major' 12303 shlibpath_var=LD_LIBRARY_PATH 12304 ;; 12305 12306freebsd* | dragonfly* | midnightbsd*) 12307 # DragonFly does not have aout. When/if they implement a new 12308 # versioning mechanism, adjust this. 12309 if test -x /usr/bin/objformat; then 12310 objformat=`/usr/bin/objformat` 12311 else 12312 case $host_os in 12313 freebsd[23].*) objformat=aout ;; 12314 *) objformat=elf ;; 12315 esac 12316 fi 12317 version_type=freebsd-$objformat 12318 case $version_type in 12319 freebsd-elf*) 12320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12321 soname_spec='$libname$release$shared_ext$major' 12322 need_version=no 12323 need_lib_prefix=no 12324 ;; 12325 freebsd-*) 12326 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12327 need_version=yes 12328 ;; 12329 esac 12330 shlibpath_var=LD_LIBRARY_PATH 12331 case $host_os in 12332 freebsd2.*) 12333 shlibpath_overrides_runpath=yes 12334 ;; 12335 freebsd3.[01]* | freebsdelf3.[01]*) 12336 shlibpath_overrides_runpath=yes 12337 hardcode_into_libs=yes 12338 ;; 12339 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12340 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12341 shlibpath_overrides_runpath=no 12342 hardcode_into_libs=yes 12343 ;; 12344 *) # from 4.6 on, and DragonFly 12345 shlibpath_overrides_runpath=yes 12346 hardcode_into_libs=yes 12347 ;; 12348 esac 12349 ;; 12350 12351haiku*) 12352 version_type=linux # correct to gnu/linux during the next big refactor 12353 need_lib_prefix=no 12354 need_version=no 12355 dynamic_linker="$host_os runtime_loader" 12356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12357 soname_spec='$libname$release$shared_ext$major' 12358 shlibpath_var=LIBRARY_PATH 12359 shlibpath_overrides_runpath=no 12360 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12361 hardcode_into_libs=yes 12362 ;; 12363 12364hpux9* | hpux10* | hpux11*) 12365 # Give a soname corresponding to the major version so that dld.sl refuses to 12366 # link against other versions. 12367 version_type=sunos 12368 need_lib_prefix=no 12369 need_version=no 12370 case $host_cpu in 12371 ia64*) 12372 shrext_cmds='.so' 12373 hardcode_into_libs=yes 12374 dynamic_linker="$host_os dld.so" 12375 shlibpath_var=LD_LIBRARY_PATH 12376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12378 soname_spec='$libname$release$shared_ext$major' 12379 if test 32 = "$HPUX_IA64_MODE"; then 12380 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12381 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12382 else 12383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12384 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12385 fi 12386 ;; 12387 hppa*64*) 12388 shrext_cmds='.sl' 12389 hardcode_into_libs=yes 12390 dynamic_linker="$host_os dld.sl" 12391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12394 soname_spec='$libname$release$shared_ext$major' 12395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12397 ;; 12398 *) 12399 shrext_cmds='.sl' 12400 dynamic_linker="$host_os dld.sl" 12401 shlibpath_var=SHLIB_PATH 12402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12404 soname_spec='$libname$release$shared_ext$major' 12405 ;; 12406 esac 12407 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12408 postinstall_cmds='chmod 555 $lib' 12409 # or fails outright, so override atomically: 12410 install_override_mode=555 12411 ;; 12412 12413interix[3-9]*) 12414 version_type=linux # correct to gnu/linux during the next big refactor 12415 need_lib_prefix=no 12416 need_version=no 12417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12418 soname_spec='$libname$release$shared_ext$major' 12419 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12420 shlibpath_var=LD_LIBRARY_PATH 12421 shlibpath_overrides_runpath=no 12422 hardcode_into_libs=yes 12423 ;; 12424 12425irix5* | irix6* | nonstopux*) 12426 case $host_os in 12427 nonstopux*) version_type=nonstopux ;; 12428 *) 12429 if test yes = "$lt_cv_prog_gnu_ld"; then 12430 version_type=linux # correct to gnu/linux during the next big refactor 12431 else 12432 version_type=irix 12433 fi ;; 12434 esac 12435 need_lib_prefix=no 12436 need_version=no 12437 soname_spec='$libname$release$shared_ext$major' 12438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12439 case $host_os in 12440 irix5* | nonstopux*) 12441 libsuff= shlibsuff= 12442 ;; 12443 *) 12444 case $LD in # libtool.m4 will add one of these switches to LD 12445 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12446 libsuff= shlibsuff= libmagic=32-bit;; 12447 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12448 libsuff=32 shlibsuff=N32 libmagic=N32;; 12449 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12450 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12451 *) libsuff= shlibsuff= libmagic=never-match;; 12452 esac 12453 ;; 12454 esac 12455 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12456 shlibpath_overrides_runpath=no 12457 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12458 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12459 hardcode_into_libs=yes 12460 ;; 12461 12462# No shared lib support for Linux oldld, aout, or coff. 12463linux*oldld* | linux*aout* | linux*coff*) 12464 dynamic_linker=no 12465 ;; 12466 12467linux*android*) 12468 version_type=none # Android doesn't support versioned libraries. 12469 need_lib_prefix=no 12470 need_version=no 12471 library_names_spec='$libname$release$shared_ext' 12472 soname_spec='$libname$release$shared_ext' 12473 finish_cmds= 12474 shlibpath_var=LD_LIBRARY_PATH 12475 shlibpath_overrides_runpath=yes 12476 12477 # This implies no fast_install, which is unacceptable. 12478 # Some rework will be needed to allow for fast_install 12479 # before this can be enabled. 12480 hardcode_into_libs=yes 12481 12482 dynamic_linker='Android linker' 12483 # Don't embed -rpath directories since the linker doesn't support them. 12484 hardcode_libdir_flag_spec='-L$libdir' 12485 ;; 12486 12487# This must be glibc/ELF. 12488linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12489 version_type=linux # correct to gnu/linux during the next big refactor 12490 need_lib_prefix=no 12491 need_version=no 12492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12493 soname_spec='$libname$release$shared_ext$major' 12494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12495 shlibpath_var=LD_LIBRARY_PATH 12496 shlibpath_overrides_runpath=no 12497 12498 # Some binutils ld are patched to set DT_RUNPATH 12499 if test ${lt_cv_shlibpath_overrides_runpath+y} 12500then : 12501 printf %s "(cached) " >&6 12502else $as_nop 12503 lt_cv_shlibpath_overrides_runpath=no 12504 save_LDFLAGS=$LDFLAGS 12505 save_libdir=$libdir 12506 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12507 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12509/* end confdefs.h. */ 12510 12511int 12512main (void) 12513{ 12514 12515 ; 12516 return 0; 12517} 12518_ACEOF 12519if ac_fn_c_try_link "$LINENO" 12520then : 12521 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12522then : 12523 lt_cv_shlibpath_overrides_runpath=yes 12524fi 12525fi 12526rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12527 conftest$ac_exeext conftest.$ac_ext 12528 LDFLAGS=$save_LDFLAGS 12529 libdir=$save_libdir 12530 12531fi 12532 12533 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12534 12535 # This implies no fast_install, which is unacceptable. 12536 # Some rework will be needed to allow for fast_install 12537 # before this can be enabled. 12538 hardcode_into_libs=yes 12539 12540 # Ideally, we could use ldconfig to report *all* directores which are 12541 # searched for libraries, however this is still not possible. Aside from not 12542 # being certain /sbin/ldconfig is available, command 12543 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12544 # even though it is searched at run-time. Try to do the best guess by 12545 # appending ld.so.conf contents (and includes) to the search path. 12546 if test -f /etc/ld.so.conf; then 12547 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' ' '` 12548 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12549 fi 12550 12551 # We used to test for /lib/ld.so.1 and disable shared libraries on 12552 # powerpc, because MkLinux only supported shared libraries with the 12553 # GNU dynamic linker. Since this was broken with cross compilers, 12554 # most powerpc-linux boxes support dynamic linking these days and 12555 # people can always --disable-shared, the test was removed, and we 12556 # assume the GNU/Linux dynamic linker is in use. 12557 dynamic_linker='GNU/Linux ld.so' 12558 ;; 12559 12560netbsd*) 12561 version_type=sunos 12562 need_lib_prefix=no 12563 need_version=no 12564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12567 dynamic_linker='NetBSD (a.out) ld.so' 12568 else 12569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12570 soname_spec='$libname$release$shared_ext$major' 12571 dynamic_linker='NetBSD ld.elf_so' 12572 fi 12573 shlibpath_var=LD_LIBRARY_PATH 12574 shlibpath_overrides_runpath=yes 12575 hardcode_into_libs=yes 12576 ;; 12577 12578newsos6) 12579 version_type=linux # correct to gnu/linux during the next big refactor 12580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12581 shlibpath_var=LD_LIBRARY_PATH 12582 shlibpath_overrides_runpath=yes 12583 ;; 12584 12585*nto* | *qnx*) 12586 version_type=qnx 12587 need_lib_prefix=no 12588 need_version=no 12589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12590 soname_spec='$libname$release$shared_ext$major' 12591 shlibpath_var=LD_LIBRARY_PATH 12592 shlibpath_overrides_runpath=no 12593 hardcode_into_libs=yes 12594 dynamic_linker='ldqnx.so' 12595 ;; 12596 12597openbsd* | bitrig*) 12598 version_type=sunos 12599 sys_lib_dlsearch_path_spec=/usr/lib 12600 need_lib_prefix=no 12601 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12602 need_version=no 12603 else 12604 need_version=yes 12605 fi 12606 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12608 shlibpath_var=LD_LIBRARY_PATH 12609 shlibpath_overrides_runpath=yes 12610 ;; 12611 12612os2*) 12613 libname_spec='$name' 12614 version_type=windows 12615 shrext_cmds=.dll 12616 need_version=no 12617 need_lib_prefix=no 12618 # OS/2 can only load a DLL with a base name of 8 characters or less. 12619 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12620 v=$($ECHO $release$versuffix | tr -d .-); 12621 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12622 $ECHO $n$v`$shared_ext' 12623 library_names_spec='${libname}_dll.$libext' 12624 dynamic_linker='OS/2 ld.exe' 12625 shlibpath_var=BEGINLIBPATH 12626 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12628 postinstall_cmds='base_file=`basename \$file`~ 12629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12630 dldir=$destdir/`dirname \$dlpath`~ 12631 test -d \$dldir || mkdir -p \$dldir~ 12632 $install_prog $dir/$dlname \$dldir/$dlname~ 12633 chmod a+x \$dldir/$dlname~ 12634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12636 fi' 12637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12638 dlpath=$dir/\$dldll~ 12639 $RM \$dlpath' 12640 ;; 12641 12642osf3* | osf4* | osf5*) 12643 version_type=osf 12644 need_lib_prefix=no 12645 need_version=no 12646 soname_spec='$libname$release$shared_ext$major' 12647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12648 shlibpath_var=LD_LIBRARY_PATH 12649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12651 ;; 12652 12653rdos*) 12654 dynamic_linker=no 12655 ;; 12656 12657solaris*) 12658 version_type=linux # correct to gnu/linux during the next big refactor 12659 need_lib_prefix=no 12660 need_version=no 12661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12662 soname_spec='$libname$release$shared_ext$major' 12663 shlibpath_var=LD_LIBRARY_PATH 12664 shlibpath_overrides_runpath=yes 12665 hardcode_into_libs=yes 12666 # ldd complains unless libraries are executable 12667 postinstall_cmds='chmod +x $lib' 12668 ;; 12669 12670sunos4*) 12671 version_type=sunos 12672 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12674 shlibpath_var=LD_LIBRARY_PATH 12675 shlibpath_overrides_runpath=yes 12676 if test yes = "$with_gnu_ld"; then 12677 need_lib_prefix=no 12678 fi 12679 need_version=yes 12680 ;; 12681 12682sysv4 | sysv4.3*) 12683 version_type=linux # correct to gnu/linux during the next big refactor 12684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12685 soname_spec='$libname$release$shared_ext$major' 12686 shlibpath_var=LD_LIBRARY_PATH 12687 case $host_vendor in 12688 sni) 12689 shlibpath_overrides_runpath=no 12690 need_lib_prefix=no 12691 runpath_var=LD_RUN_PATH 12692 ;; 12693 siemens) 12694 need_lib_prefix=no 12695 ;; 12696 motorola) 12697 need_lib_prefix=no 12698 need_version=no 12699 shlibpath_overrides_runpath=no 12700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12701 ;; 12702 esac 12703 ;; 12704 12705sysv4*MP*) 12706 if test -d /usr/nec; then 12707 version_type=linux # correct to gnu/linux during the next big refactor 12708 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12709 soname_spec='$libname$shared_ext.$major' 12710 shlibpath_var=LD_LIBRARY_PATH 12711 fi 12712 ;; 12713 12714sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12715 version_type=sco 12716 need_lib_prefix=no 12717 need_version=no 12718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12719 soname_spec='$libname$release$shared_ext$major' 12720 shlibpath_var=LD_LIBRARY_PATH 12721 shlibpath_overrides_runpath=yes 12722 hardcode_into_libs=yes 12723 if test yes = "$with_gnu_ld"; then 12724 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12725 else 12726 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12727 case $host_os in 12728 sco3.2v5*) 12729 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12730 ;; 12731 esac 12732 fi 12733 sys_lib_dlsearch_path_spec='/usr/lib' 12734 ;; 12735 12736tpf*) 12737 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12738 version_type=linux # correct to gnu/linux during the next big refactor 12739 need_lib_prefix=no 12740 need_version=no 12741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12742 shlibpath_var=LD_LIBRARY_PATH 12743 shlibpath_overrides_runpath=no 12744 hardcode_into_libs=yes 12745 ;; 12746 12747uts4*) 12748 version_type=linux # correct to gnu/linux during the next big refactor 12749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12750 soname_spec='$libname$release$shared_ext$major' 12751 shlibpath_var=LD_LIBRARY_PATH 12752 ;; 12753 12754*) 12755 dynamic_linker=no 12756 ;; 12757esac 12758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12759printf "%s\n" "$dynamic_linker" >&6; } 12760test no = "$dynamic_linker" && can_build_shared=no 12761 12762variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12763if test yes = "$GCC"; then 12764 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12765fi 12766 12767if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12768 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12769fi 12770 12771if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12772 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12773fi 12774 12775# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12776configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12777 12778# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12779func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12780 12781# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12782configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12881printf %s "checking how to hardcode library paths into programs... " >&6; } 12882hardcode_action= 12883if test -n "$hardcode_libdir_flag_spec" || 12884 test -n "$runpath_var" || 12885 test yes = "$hardcode_automatic"; then 12886 12887 # We can hardcode non-existent directories. 12888 if test no != "$hardcode_direct" && 12889 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12890 # have to relink, otherwise we might link with an installed library 12891 # when we should be linking with a yet-to-be-installed one 12892 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12893 test no != "$hardcode_minus_L"; then 12894 # Linking always hardcodes the temporary library directory. 12895 hardcode_action=relink 12896 else 12897 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12898 hardcode_action=immediate 12899 fi 12900else 12901 # We cannot hardcode anything, or else we can only hardcode existing 12902 # directories. 12903 hardcode_action=unsupported 12904fi 12905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12906printf "%s\n" "$hardcode_action" >&6; } 12907 12908if test relink = "$hardcode_action" || 12909 test yes = "$inherit_rpath"; then 12910 # Fast installation is not supported 12911 enable_fast_install=no 12912elif test yes = "$shlibpath_overrides_runpath" || 12913 test no = "$enable_shared"; then 12914 # Fast installation is not necessary 12915 enable_fast_install=needless 12916fi 12917 12918 12919 12920 12921 12922 12923 if test yes != "$enable_dlopen"; then 12924 enable_dlopen=unknown 12925 enable_dlopen_self=unknown 12926 enable_dlopen_self_static=unknown 12927else 12928 lt_cv_dlopen=no 12929 lt_cv_dlopen_libs= 12930 12931 case $host_os in 12932 beos*) 12933 lt_cv_dlopen=load_add_on 12934 lt_cv_dlopen_libs= 12935 lt_cv_dlopen_self=yes 12936 ;; 12937 12938 mingw* | pw32* | cegcc*) 12939 lt_cv_dlopen=LoadLibrary 12940 lt_cv_dlopen_libs= 12941 ;; 12942 12943 cygwin*) 12944 lt_cv_dlopen=dlopen 12945 lt_cv_dlopen_libs= 12946 ;; 12947 12948 darwin*) 12949 # if libdl is installed we need to link against it 12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12951printf %s "checking for dlopen in -ldl... " >&6; } 12952if test ${ac_cv_lib_dl_dlopen+y} 12953then : 12954 printf %s "(cached) " >&6 12955else $as_nop 12956 ac_check_lib_save_LIBS=$LIBS 12957LIBS="-ldl $LIBS" 12958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12959/* end confdefs.h. */ 12960 12961/* Override any GCC internal prototype to avoid an error. 12962 Use char because int might match the return type of a GCC 12963 builtin and then its argument prototype would still apply. */ 12964char dlopen (); 12965int 12966main (void) 12967{ 12968return dlopen (); 12969 ; 12970 return 0; 12971} 12972_ACEOF 12973if ac_fn_c_try_link "$LINENO" 12974then : 12975 ac_cv_lib_dl_dlopen=yes 12976else $as_nop 12977 ac_cv_lib_dl_dlopen=no 12978fi 12979rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12980 conftest$ac_exeext conftest.$ac_ext 12981LIBS=$ac_check_lib_save_LIBS 12982fi 12983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12984printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12985if test "x$ac_cv_lib_dl_dlopen" = xyes 12986then : 12987 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12988else $as_nop 12989 12990 lt_cv_dlopen=dyld 12991 lt_cv_dlopen_libs= 12992 lt_cv_dlopen_self=yes 12993 12994fi 12995 12996 ;; 12997 12998 tpf*) 12999 # Don't try to run any link tests for TPF. We know it's impossible 13000 # because TPF is a cross-compiler, and we know how we open DSOs. 13001 lt_cv_dlopen=dlopen 13002 lt_cv_dlopen_libs= 13003 lt_cv_dlopen_self=no 13004 ;; 13005 13006 *) 13007 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13008if test "x$ac_cv_func_shl_load" = xyes 13009then : 13010 lt_cv_dlopen=shl_load 13011else $as_nop 13012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13013printf %s "checking for shl_load in -ldld... " >&6; } 13014if test ${ac_cv_lib_dld_shl_load+y} 13015then : 13016 printf %s "(cached) " >&6 13017else $as_nop 13018 ac_check_lib_save_LIBS=$LIBS 13019LIBS="-ldld $LIBS" 13020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13021/* end confdefs.h. */ 13022 13023/* Override any GCC internal prototype to avoid an error. 13024 Use char because int might match the return type of a GCC 13025 builtin and then its argument prototype would still apply. */ 13026char shl_load (); 13027int 13028main (void) 13029{ 13030return shl_load (); 13031 ; 13032 return 0; 13033} 13034_ACEOF 13035if ac_fn_c_try_link "$LINENO" 13036then : 13037 ac_cv_lib_dld_shl_load=yes 13038else $as_nop 13039 ac_cv_lib_dld_shl_load=no 13040fi 13041rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13042 conftest$ac_exeext conftest.$ac_ext 13043LIBS=$ac_check_lib_save_LIBS 13044fi 13045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13046printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13047if test "x$ac_cv_lib_dld_shl_load" = xyes 13048then : 13049 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13050else $as_nop 13051 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13052if test "x$ac_cv_func_dlopen" = xyes 13053then : 13054 lt_cv_dlopen=dlopen 13055else $as_nop 13056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13057printf %s "checking for dlopen in -ldl... " >&6; } 13058if test ${ac_cv_lib_dl_dlopen+y} 13059then : 13060 printf %s "(cached) " >&6 13061else $as_nop 13062 ac_check_lib_save_LIBS=$LIBS 13063LIBS="-ldl $LIBS" 13064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13065/* end confdefs.h. */ 13066 13067/* Override any GCC internal prototype to avoid an error. 13068 Use char because int might match the return type of a GCC 13069 builtin and then its argument prototype would still apply. */ 13070char dlopen (); 13071int 13072main (void) 13073{ 13074return dlopen (); 13075 ; 13076 return 0; 13077} 13078_ACEOF 13079if ac_fn_c_try_link "$LINENO" 13080then : 13081 ac_cv_lib_dl_dlopen=yes 13082else $as_nop 13083 ac_cv_lib_dl_dlopen=no 13084fi 13085rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13086 conftest$ac_exeext conftest.$ac_ext 13087LIBS=$ac_check_lib_save_LIBS 13088fi 13089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13090printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13091if test "x$ac_cv_lib_dl_dlopen" = xyes 13092then : 13093 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13094else $as_nop 13095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13096printf %s "checking for dlopen in -lsvld... " >&6; } 13097if test ${ac_cv_lib_svld_dlopen+y} 13098then : 13099 printf %s "(cached) " >&6 13100else $as_nop 13101 ac_check_lib_save_LIBS=$LIBS 13102LIBS="-lsvld $LIBS" 13103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13104/* end confdefs.h. */ 13105 13106/* Override any GCC internal prototype to avoid an error. 13107 Use char because int might match the return type of a GCC 13108 builtin and then its argument prototype would still apply. */ 13109char dlopen (); 13110int 13111main (void) 13112{ 13113return dlopen (); 13114 ; 13115 return 0; 13116} 13117_ACEOF 13118if ac_fn_c_try_link "$LINENO" 13119then : 13120 ac_cv_lib_svld_dlopen=yes 13121else $as_nop 13122 ac_cv_lib_svld_dlopen=no 13123fi 13124rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13125 conftest$ac_exeext conftest.$ac_ext 13126LIBS=$ac_check_lib_save_LIBS 13127fi 13128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13129printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13130if test "x$ac_cv_lib_svld_dlopen" = xyes 13131then : 13132 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13133else $as_nop 13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13135printf %s "checking for dld_link in -ldld... " >&6; } 13136if test ${ac_cv_lib_dld_dld_link+y} 13137then : 13138 printf %s "(cached) " >&6 13139else $as_nop 13140 ac_check_lib_save_LIBS=$LIBS 13141LIBS="-ldld $LIBS" 13142cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13143/* end confdefs.h. */ 13144 13145/* Override any GCC internal prototype to avoid an error. 13146 Use char because int might match the return type of a GCC 13147 builtin and then its argument prototype would still apply. */ 13148char dld_link (); 13149int 13150main (void) 13151{ 13152return dld_link (); 13153 ; 13154 return 0; 13155} 13156_ACEOF 13157if ac_fn_c_try_link "$LINENO" 13158then : 13159 ac_cv_lib_dld_dld_link=yes 13160else $as_nop 13161 ac_cv_lib_dld_dld_link=no 13162fi 13163rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13164 conftest$ac_exeext conftest.$ac_ext 13165LIBS=$ac_check_lib_save_LIBS 13166fi 13167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13168printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13169if test "x$ac_cv_lib_dld_dld_link" = xyes 13170then : 13171 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13172fi 13173 13174 13175fi 13176 13177 13178fi 13179 13180 13181fi 13182 13183 13184fi 13185 13186 13187fi 13188 13189 ;; 13190 esac 13191 13192 if test no = "$lt_cv_dlopen"; then 13193 enable_dlopen=no 13194 else 13195 enable_dlopen=yes 13196 fi 13197 13198 case $lt_cv_dlopen in 13199 dlopen) 13200 save_CPPFLAGS=$CPPFLAGS 13201 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13202 13203 save_LDFLAGS=$LDFLAGS 13204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13205 13206 save_LIBS=$LIBS 13207 LIBS="$lt_cv_dlopen_libs $LIBS" 13208 13209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13210printf %s "checking whether a program can dlopen itself... " >&6; } 13211if test ${lt_cv_dlopen_self+y} 13212then : 13213 printf %s "(cached) " >&6 13214else $as_nop 13215 if test yes = "$cross_compiling"; then : 13216 lt_cv_dlopen_self=cross 13217else 13218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13219 lt_status=$lt_dlunknown 13220 cat > conftest.$ac_ext <<_LT_EOF 13221#line $LINENO "configure" 13222#include "confdefs.h" 13223 13224#if HAVE_DLFCN_H 13225#include <dlfcn.h> 13226#endif 13227 13228#include <stdio.h> 13229 13230#ifdef RTLD_GLOBAL 13231# define LT_DLGLOBAL RTLD_GLOBAL 13232#else 13233# ifdef DL_GLOBAL 13234# define LT_DLGLOBAL DL_GLOBAL 13235# else 13236# define LT_DLGLOBAL 0 13237# endif 13238#endif 13239 13240/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13241 find out it does not work in some platform. */ 13242#ifndef LT_DLLAZY_OR_NOW 13243# ifdef RTLD_LAZY 13244# define LT_DLLAZY_OR_NOW RTLD_LAZY 13245# else 13246# ifdef DL_LAZY 13247# define LT_DLLAZY_OR_NOW DL_LAZY 13248# else 13249# ifdef RTLD_NOW 13250# define LT_DLLAZY_OR_NOW RTLD_NOW 13251# else 13252# ifdef DL_NOW 13253# define LT_DLLAZY_OR_NOW DL_NOW 13254# else 13255# define LT_DLLAZY_OR_NOW 0 13256# endif 13257# endif 13258# endif 13259# endif 13260#endif 13261 13262/* When -fvisibility=hidden is used, assume the code has been annotated 13263 correspondingly for the symbols needed. */ 13264#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13265int fnord () __attribute__((visibility("default"))); 13266#endif 13267 13268int fnord () { return 42; } 13269int main () 13270{ 13271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13272 int status = $lt_dlunknown; 13273 13274 if (self) 13275 { 13276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13277 else 13278 { 13279 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13280 else puts (dlerror ()); 13281 } 13282 /* dlclose (self); */ 13283 } 13284 else 13285 puts (dlerror ()); 13286 13287 return status; 13288} 13289_LT_EOF 13290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13291 (eval $ac_link) 2>&5 13292 ac_status=$? 13293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13294 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13295 (./conftest; exit; ) >&5 2>/dev/null 13296 lt_status=$? 13297 case x$lt_status in 13298 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13299 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13300 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13301 esac 13302 else : 13303 # compilation failed 13304 lt_cv_dlopen_self=no 13305 fi 13306fi 13307rm -fr conftest* 13308 13309 13310fi 13311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13312printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13313 13314 if test yes = "$lt_cv_dlopen_self"; then 13315 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13317printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13318if test ${lt_cv_dlopen_self_static+y} 13319then : 13320 printf %s "(cached) " >&6 13321else $as_nop 13322 if test yes = "$cross_compiling"; then : 13323 lt_cv_dlopen_self_static=cross 13324else 13325 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13326 lt_status=$lt_dlunknown 13327 cat > conftest.$ac_ext <<_LT_EOF 13328#line $LINENO "configure" 13329#include "confdefs.h" 13330 13331#if HAVE_DLFCN_H 13332#include <dlfcn.h> 13333#endif 13334 13335#include <stdio.h> 13336 13337#ifdef RTLD_GLOBAL 13338# define LT_DLGLOBAL RTLD_GLOBAL 13339#else 13340# ifdef DL_GLOBAL 13341# define LT_DLGLOBAL DL_GLOBAL 13342# else 13343# define LT_DLGLOBAL 0 13344# endif 13345#endif 13346 13347/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13348 find out it does not work in some platform. */ 13349#ifndef LT_DLLAZY_OR_NOW 13350# ifdef RTLD_LAZY 13351# define LT_DLLAZY_OR_NOW RTLD_LAZY 13352# else 13353# ifdef DL_LAZY 13354# define LT_DLLAZY_OR_NOW DL_LAZY 13355# else 13356# ifdef RTLD_NOW 13357# define LT_DLLAZY_OR_NOW RTLD_NOW 13358# else 13359# ifdef DL_NOW 13360# define LT_DLLAZY_OR_NOW DL_NOW 13361# else 13362# define LT_DLLAZY_OR_NOW 0 13363# endif 13364# endif 13365# endif 13366# endif 13367#endif 13368 13369/* When -fvisibility=hidden is used, assume the code has been annotated 13370 correspondingly for the symbols needed. */ 13371#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13372int fnord () __attribute__((visibility("default"))); 13373#endif 13374 13375int fnord () { return 42; } 13376int main () 13377{ 13378 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13379 int status = $lt_dlunknown; 13380 13381 if (self) 13382 { 13383 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13384 else 13385 { 13386 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13387 else puts (dlerror ()); 13388 } 13389 /* dlclose (self); */ 13390 } 13391 else 13392 puts (dlerror ()); 13393 13394 return status; 13395} 13396_LT_EOF 13397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13398 (eval $ac_link) 2>&5 13399 ac_status=$? 13400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13401 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13402 (./conftest; exit; ) >&5 2>/dev/null 13403 lt_status=$? 13404 case x$lt_status in 13405 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13406 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13407 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13408 esac 13409 else : 13410 # compilation failed 13411 lt_cv_dlopen_self_static=no 13412 fi 13413fi 13414rm -fr conftest* 13415 13416 13417fi 13418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13419printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13420 fi 13421 13422 CPPFLAGS=$save_CPPFLAGS 13423 LDFLAGS=$save_LDFLAGS 13424 LIBS=$save_LIBS 13425 ;; 13426 esac 13427 13428 case $lt_cv_dlopen_self in 13429 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13430 *) enable_dlopen_self=unknown ;; 13431 esac 13432 13433 case $lt_cv_dlopen_self_static in 13434 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13435 *) enable_dlopen_self_static=unknown ;; 13436 esac 13437fi 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455striplib= 13456old_striplib= 13457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13458printf %s "checking whether stripping libraries is possible... " >&6; } 13459if test -z "$STRIP"; then 13460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13461printf "%s\n" "no" >&6; } 13462else 13463 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13464 old_striplib="$STRIP --strip-debug" 13465 striplib="$STRIP --strip-unneeded" 13466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13467printf "%s\n" "yes" >&6; } 13468 else 13469 case $host_os in 13470 darwin*) 13471 # FIXME - insert some real tests, host_os isn't really good enough 13472 striplib="$STRIP -x" 13473 old_striplib="$STRIP -S" 13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13475printf "%s\n" "yes" >&6; } 13476 ;; 13477 freebsd*) 13478 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13479 old_striplib="$STRIP --strip-debug" 13480 striplib="$STRIP --strip-unneeded" 13481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13482printf "%s\n" "yes" >&6; } 13483 else 13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13485printf "%s\n" "no" >&6; } 13486 fi 13487 ;; 13488 *) 13489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13490printf "%s\n" "no" >&6; } 13491 ;; 13492 esac 13493 fi 13494fi 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 # Report what library types will actually be built 13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13509printf %s "checking if libtool supports shared libraries... " >&6; } 13510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13511printf "%s\n" "$can_build_shared" >&6; } 13512 13513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13514printf %s "checking whether to build shared libraries... " >&6; } 13515 test no = "$can_build_shared" && enable_shared=no 13516 13517 # On AIX, shared libraries and static libraries use the same namespace, and 13518 # are all built from PIC. 13519 case $host_os in 13520 aix3*) 13521 test yes = "$enable_shared" && enable_static=no 13522 if test -n "$RANLIB"; then 13523 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13524 postinstall_cmds='$RANLIB $lib' 13525 fi 13526 ;; 13527 13528 aix[4-9]*) 13529 if test ia64 != "$host_cpu"; then 13530 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13531 yes,aix,yes) ;; # shared object as lib.so file only 13532 yes,svr4,*) ;; # shared object as lib.so archive member only 13533 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13534 esac 13535 fi 13536 ;; 13537 esac 13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13539printf "%s\n" "$enable_shared" >&6; } 13540 13541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13542printf %s "checking whether to build static libraries... " >&6; } 13543 # Make sure either enable_shared or enable_static is yes. 13544 test yes = "$enable_shared" || enable_static=yes 13545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13546printf "%s\n" "$enable_static" >&6; } 13547 13548 13549 13550 13551fi 13552ac_ext=c 13553ac_cpp='$CPP $CPPFLAGS' 13554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13556ac_compiler_gnu=$ac_cv_c_compiler_gnu 13557 13558CC=$lt_save_CC 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 ac_config_commands="$ac_config_commands libtool" 13575 13576 13577 13578 13579# Only expand once: 13580 13581 13582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13583printf %s "checking whether ln -s works... " >&6; } 13584LN_S=$as_ln_s 13585if test "$LN_S" = "ln -s"; then 13586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13587printf "%s\n" "yes" >&6; } 13588else 13589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13590printf "%s\n" "no, using $LN_S" >&6; } 13591fi 13592 13593 13594# Check for GCC visibility feature 13595 13596 13597 13598 VISIBILITY_CFLAGS= 13599 VISIBILITY_CXXFLAGS= 13600 HAVE_VISIBILITY=0 13601 if test -n "$GCC"; then 13602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 13603printf %s "checking whether the -Werror option is usable... " >&6; } 13604 if test ${pcre2_cv_cc_vis_werror+y} 13605then : 13606 printf %s "(cached) " >&6 13607else $as_nop 13608 13609 pcre2_save_CFLAGS="$CFLAGS" 13610 CFLAGS="$CFLAGS -Werror" 13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13612/* end confdefs.h. */ 13613 13614int 13615main (void) 13616{ 13617 13618 ; 13619 return 0; 13620} 13621_ACEOF 13622if ac_fn_c_try_compile "$LINENO" 13623then : 13624 pcre2_cv_cc_vis_werror=yes 13625else $as_nop 13626 pcre2_cv_cc_vis_werror=no 13627fi 13628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13629 CFLAGS="$pcre2_save_CFLAGS" 13630fi 13631 13632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_vis_werror" >&5 13633printf "%s\n" "$pcre2_cv_cc_vis_werror" >&6; } 13634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 13635printf %s "checking for simple visibility declarations... " >&6; } 13636 if test ${pcre2_cv_cc_visibility+y} 13637then : 13638 printf %s "(cached) " >&6 13639else $as_nop 13640 13641 pcre2_save_CFLAGS="$CFLAGS" 13642 CFLAGS="$CFLAGS -fvisibility=hidden" 13643 if test $pcre2_cv_cc_vis_werror = yes; then 13644 CFLAGS="$CFLAGS -Werror" 13645 fi 13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13647/* end confdefs.h. */ 13648extern __attribute__((__visibility__("hidden"))) int hiddenvar; 13649 extern __attribute__((__visibility__("default"))) int exportedvar; 13650 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 13651 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 13652 void dummyfunc (void) {} 13653 13654int 13655main (void) 13656{ 13657 13658 ; 13659 return 0; 13660} 13661_ACEOF 13662if ac_fn_c_try_compile "$LINENO" 13663then : 13664 pcre2_cv_cc_visibility=yes 13665else $as_nop 13666 pcre2_cv_cc_visibility=no 13667fi 13668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13669 CFLAGS="$pcre2_save_CFLAGS" 13670fi 13671 13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_visibility" >&5 13673printf "%s\n" "$pcre2_cv_cc_visibility" >&6; } 13674 if test $pcre2_cv_cc_visibility = yes; then 13675 VISIBILITY_CFLAGS="-fvisibility=hidden" 13676 VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden" 13677 HAVE_VISIBILITY=1 13678 13679printf "%s\n" "#define PCRE2_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h 13680 13681 13682printf "%s\n" "#define PCRE2_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h 13683 13684 13685printf "%s\n" "#define PCRE2POSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h 13686 13687 13688printf "%s\n" "#define PCRE2POSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h 13689 13690 fi 13691 fi 13692 13693 13694 13695 13696printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 13697 13698 13699 13700# Check for Clang __attribute__((uninitialized)) feature 13701 13702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((uninitialized))" >&5 13703printf %s "checking for __attribute__((uninitialized))... " >&6; } 13704ac_ext=c 13705ac_cpp='$CPP $CPPFLAGS' 13706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13708ac_compiler_gnu=$ac_cv_c_compiler_gnu 13709 13710tmp_CFLAGS=$CFLAGS 13711CFLAGS="$CFLAGS -Werror" 13712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13713/* end confdefs.h. */ 13714 13715int 13716main (void) 13717{ 13718char buf[128] __attribute__((uninitialized));(void)buf 13719 ; 13720 return 0; 13721} 13722_ACEOF 13723if ac_fn_c_try_compile "$LINENO" 13724then : 13725 pcre2_cc_cv_attribute_uninitialized=yes 13726else $as_nop 13727 pcre2_cc_cv_attribute_uninitialized=no 13728fi 13729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_attribute_uninitialized" >&5 13731printf "%s\n" "$pcre2_cc_cv_attribute_uninitialized" >&6; } 13732if test "$pcre2_cc_cv_attribute_uninitialized" = yes; then 13733 13734printf "%s\n" "#define HAVE_ATTRIBUTE_UNINITIALIZED 1" >>confdefs.h 13735 13736fi 13737CFLAGS=$tmp_CFLAGS 13738ac_ext=c 13739ac_cpp='$CPP $CPPFLAGS' 13740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13742ac_compiler_gnu=$ac_cv_c_compiler_gnu 13743 13744 13745# Versioning 13746 13747PCRE2_MAJOR="10" 13748PCRE2_MINOR="40" 13749PCRE2_PRERELEASE="" 13750PCRE2_DATE="2022-04-14" 13751 13752if test "$PCRE2_MINOR" = "08" -o "$PCRE2_MINOR" = "09" 13753then 13754 echo "***" 13755 echo "*** Minor version number $PCRE2_MINOR must not be used. ***" 13756 echo "*** Use only 00 to 07 or 10 onwards, to avoid octal issues. ***" 13757 echo "***" 13758 exit 1 13759fi 13760 13761 13762 13763 13764 13765 13766# Set a more sensible default value for $(htmldir). 13767if test "x$htmldir" = 'x${docdir}' 13768then 13769 htmldir='${docdir}/html' 13770fi 13771 13772# Force an error for PCRE1 size options 13773# Check whether --enable-pcre8 was given. 13774if test ${enable_pcre8+y} 13775then : 13776 enableval=$enable_pcre8; 13777else $as_nop 13778 enable_pcre8=no 13779fi 13780 13781# Check whether --enable-pcre16 was given. 13782if test ${enable_pcre16+y} 13783then : 13784 enableval=$enable_pcre16; 13785else $as_nop 13786 enable_pcre16=no 13787fi 13788 13789# Check whether --enable-pcre32 was given. 13790if test ${enable_pcre32+y} 13791then : 13792 enableval=$enable_pcre32; 13793else $as_nop 13794 enable_pcre32=no 13795fi 13796 13797 13798if test "$enable_pcre8$enable_pcre16$enable_pcre32" != "nonono" 13799then 13800 echo "** ERROR: Use --[en|dis]able-pcre2-[8|16|32], not --[en|dis]able-pcre[8|16|32]" 13801 exit 1 13802fi 13803 13804# Handle --disable-pcre2-8 (enabled by default) 13805# Check whether --enable-pcre2-8 was given. 13806if test ${enable_pcre2_8+y} 13807then : 13808 enableval=$enable_pcre2_8; 13809else $as_nop 13810 enable_pcre2_8=unset 13811fi 13812 13813 13814 13815# Handle --enable-pcre2-16 (disabled by default) 13816# Check whether --enable-pcre2-16 was given. 13817if test ${enable_pcre2_16+y} 13818then : 13819 enableval=$enable_pcre2_16; 13820else $as_nop 13821 enable_pcre2_16=unset 13822fi 13823 13824 13825 13826# Handle --enable-pcre2-32 (disabled by default) 13827# Check whether --enable-pcre2-32 was given. 13828if test ${enable_pcre2_32+y} 13829then : 13830 enableval=$enable_pcre2_32; 13831else $as_nop 13832 enable_pcre2_32=unset 13833fi 13834 13835 13836 13837# Handle --enable-debug (disabled by default) 13838# Check whether --enable-debug was given. 13839if test ${enable_debug+y} 13840then : 13841 enableval=$enable_debug; 13842else $as_nop 13843 enable_debug=no 13844fi 13845 13846 13847# Handle --enable-jit (disabled by default) 13848# Check whether --enable-jit was given. 13849if test ${enable_jit+y} 13850then : 13851 enableval=$enable_jit; 13852else $as_nop 13853 enable_jit=no 13854fi 13855 13856 13857# This code enables JIT if the hardware supports it. 13858if test "$enable_jit" = "auto"; then 13859 ac_ext=c 13860ac_cpp='$CPP $CPPFLAGS' 13861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13863ac_compiler_gnu=$ac_cv_c_compiler_gnu 13864 13865 SAVE_CPPFLAGS=$CPPFLAGS 13866 CPPFLAGS=-I$srcdir 13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13868/* end confdefs.h. */ 13869 13870 #define SLJIT_CONFIG_AUTO 1 13871 #include "src/sljit/sljitConfigInternal.h" 13872 #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED) 13873 #error unsupported 13874 #endif 13875_ACEOF 13876if ac_fn_c_try_compile "$LINENO" 13877then : 13878 enable_jit=yes 13879else $as_nop 13880 enable_jit=no 13881fi 13882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13883 CPPFLAGS=$SAVE_CPPFLAGS 13884 echo checking for JIT support on this hardware... $enable_jit 13885fi 13886 13887# Handle --enable-jit-sealloc (disabled by default and only experimental) 13888case $host_os in 13889 linux* | netbsd*) 13890 # Check whether --enable-jit-sealloc was given. 13891if test ${enable_jit_sealloc+y} 13892then : 13893 enableval=$enable_jit_sealloc; 13894else $as_nop 13895 enable_jit_sealloc=no 13896fi 13897 13898 ;; 13899 *) 13900 enable_jit_sealloc=unsupported 13901 ;; 13902esac 13903 13904# Handle --disable-pcre2grep-jit (enabled by default) 13905# Check whether --enable-pcre2grep-jit was given. 13906if test ${enable_pcre2grep_jit+y} 13907then : 13908 enableval=$enable_pcre2grep_jit; 13909else $as_nop 13910 enable_pcre2grep_jit=yes 13911fi 13912 13913 13914# Handle --disable-pcre2grep-callout (enabled by default) 13915# Check whether --enable-pcre2grep-callout was given. 13916if test ${enable_pcre2grep_callout+y} 13917then : 13918 enableval=$enable_pcre2grep_callout; 13919else $as_nop 13920 enable_pcre2grep_callout=yes 13921fi 13922 13923 13924# Handle --disable-pcre2grep-callout-fork (enabled by default) 13925# Check whether --enable-pcre2grep-callout-fork was given. 13926if test ${enable_pcre2grep_callout_fork+y} 13927then : 13928 enableval=$enable_pcre2grep_callout_fork; 13929else $as_nop 13930 enable_pcre2grep_callout_fork=yes 13931fi 13932 13933 13934# Handle --enable-rebuild-chartables 13935# Check whether --enable-rebuild-chartables was given. 13936if test ${enable_rebuild_chartables+y} 13937then : 13938 enableval=$enable_rebuild_chartables; 13939else $as_nop 13940 enable_rebuild_chartables=no 13941fi 13942 13943 13944# Handle --disable-unicode (enabled by default) 13945# Check whether --enable-unicode was given. 13946if test ${enable_unicode+y} 13947then : 13948 enableval=$enable_unicode; 13949else $as_nop 13950 enable_unicode=unset 13951fi 13952 13953 13954# Handle newline options 13955ac_pcre2_newline=lf 13956# Check whether --enable-newline-is-cr was given. 13957if test ${enable_newline_is_cr+y} 13958then : 13959 enableval=$enable_newline_is_cr; ac_pcre2_newline=cr 13960fi 13961 13962# Check whether --enable-newline-is-lf was given. 13963if test ${enable_newline_is_lf+y} 13964then : 13965 enableval=$enable_newline_is_lf; ac_pcre2_newline=lf 13966fi 13967 13968# Check whether --enable-newline-is-crlf was given. 13969if test ${enable_newline_is_crlf+y} 13970then : 13971 enableval=$enable_newline_is_crlf; ac_pcre2_newline=crlf 13972fi 13973 13974# Check whether --enable-newline-is-anycrlf was given. 13975if test ${enable_newline_is_anycrlf+y} 13976then : 13977 enableval=$enable_newline_is_anycrlf; ac_pcre2_newline=anycrlf 13978fi 13979 13980# Check whether --enable-newline-is-any was given. 13981if test ${enable_newline_is_any+y} 13982then : 13983 enableval=$enable_newline_is_any; ac_pcre2_newline=any 13984fi 13985 13986# Check whether --enable-newline-is-nul was given. 13987if test ${enable_newline_is_nul+y} 13988then : 13989 enableval=$enable_newline_is_nul; ac_pcre2_newline=nul 13990fi 13991 13992enable_newline="$ac_pcre2_newline" 13993 13994# Handle --enable-bsr-anycrlf 13995# Check whether --enable-bsr-anycrlf was given. 13996if test ${enable_bsr_anycrlf+y} 13997then : 13998 enableval=$enable_bsr_anycrlf; 13999else $as_nop 14000 enable_bsr_anycrlf=no 14001fi 14002 14003 14004# Handle --enable-never-backslash-C 14005# Check whether --enable-never-backslash-C was given. 14006if test ${enable_never_backslash_C+y} 14007then : 14008 enableval=$enable_never_backslash_C; 14009else $as_nop 14010 enable_never_backslash_C=no 14011fi 14012 14013 14014# Handle --enable-ebcdic 14015# Check whether --enable-ebcdic was given. 14016if test ${enable_ebcdic+y} 14017then : 14018 enableval=$enable_ebcdic; 14019else $as_nop 14020 enable_ebcdic=no 14021fi 14022 14023 14024# Handle --enable-ebcdic-nl25 14025# Check whether --enable-ebcdic-nl25 was given. 14026if test ${enable_ebcdic_nl25+y} 14027then : 14028 enableval=$enable_ebcdic_nl25; 14029else $as_nop 14030 enable_ebcdic_nl25=no 14031fi 14032 14033 14034# Handle --enable-pcre2grep-libz 14035# Check whether --enable-pcre2grep-libz was given. 14036if test ${enable_pcre2grep_libz+y} 14037then : 14038 enableval=$enable_pcre2grep_libz; 14039else $as_nop 14040 enable_pcre2grep_libz=no 14041fi 14042 14043 14044# Handle --enable-pcre2grep-libbz2 14045# Check whether --enable-pcre2grep-libbz2 was given. 14046if test ${enable_pcre2grep_libbz2+y} 14047then : 14048 enableval=$enable_pcre2grep_libbz2; 14049else $as_nop 14050 enable_pcre2grep_libbz2=no 14051fi 14052 14053 14054# Handle --with-pcre2grep-bufsize=N 14055 14056# Check whether --with-pcre2grep-bufsize was given. 14057if test ${with_pcre2grep_bufsize+y} 14058then : 14059 withval=$with_pcre2grep_bufsize; 14060else $as_nop 14061 with_pcre2grep_bufsize=20480 14062fi 14063 14064 14065# Handle --with-pcre2grep-max-bufsize=N 14066 14067# Check whether --with-pcre2grep-max-bufsize was given. 14068if test ${with_pcre2grep_max_bufsize+y} 14069then : 14070 withval=$with_pcre2grep_max_bufsize; 14071else $as_nop 14072 with_pcre2grep_max_bufsize=1048576 14073fi 14074 14075 14076# Handle --enable-pcre2test-libedit 14077# Check whether --enable-pcre2test-libedit was given. 14078if test ${enable_pcre2test_libedit+y} 14079then : 14080 enableval=$enable_pcre2test_libedit; 14081else $as_nop 14082 enable_pcre2test_libedit=no 14083fi 14084 14085 14086# Handle --enable-pcre2test-libreadline 14087# Check whether --enable-pcre2test-libreadline was given. 14088if test ${enable_pcre2test_libreadline+y} 14089then : 14090 enableval=$enable_pcre2test_libreadline; 14091else $as_nop 14092 enable_pcre2test_libreadline=no 14093fi 14094 14095 14096# Handle --with-link-size=N 14097 14098# Check whether --with-link-size was given. 14099if test ${with_link_size+y} 14100then : 14101 withval=$with_link_size; 14102else $as_nop 14103 with_link_size=2 14104fi 14105 14106 14107# Handle --with-parens-nest-limit=N 14108 14109# Check whether --with-parens-nest-limit was given. 14110if test ${with_parens_nest_limit+y} 14111then : 14112 withval=$with_parens_nest_limit; 14113else $as_nop 14114 with_parens_nest_limit=250 14115fi 14116 14117 14118# Handle --with-heap-limit 14119 14120# Check whether --with-heap-limit was given. 14121if test ${with_heap_limit+y} 14122then : 14123 withval=$with_heap_limit; 14124else $as_nop 14125 with_heap_limit=20000000 14126fi 14127 14128 14129# Handle --with-match-limit=N 14130 14131# Check whether --with-match-limit was given. 14132if test ${with_match_limit+y} 14133then : 14134 withval=$with_match_limit; 14135else $as_nop 14136 with_match_limit=10000000 14137fi 14138 14139 14140# Handle --with-match-limit-depth=N 14141# Recognize old synonym --with-match-limit-recursion 14142# 14143# Note: In config.h, the default is to define MATCH_LIMIT_DEPTH symbolically as 14144# MATCH_LIMIT, which in turn is defined to be some numeric value (e.g. 14145# 10000000). MATCH_LIMIT_DEPTH can otherwise be set to some different numeric 14146# value (or even the same numeric value as MATCH_LIMIT, though no longer 14147# defined in terms of the latter). 14148# 14149 14150# Check whether --with-match-limit-depth was given. 14151if test ${with_match_limit_depth+y} 14152then : 14153 withval=$with_match_limit_depth; 14154else $as_nop 14155 with_match_limit_depth=MATCH_LIMIT 14156fi 14157 14158 14159 14160# Check whether --with-match-limit-recursion was given. 14161if test ${with_match_limit_recursion+y} 14162then : 14163 withval=$with_match_limit_recursion; 14164else $as_nop 14165 with_match_limit_recursion=UNSET 14166fi 14167 14168 14169# Handle --enable-valgrind 14170# Check whether --enable-valgrind was given. 14171if test ${enable_valgrind+y} 14172then : 14173 enableval=$enable_valgrind; 14174else $as_nop 14175 enable_valgrind=no 14176fi 14177 14178 14179# Enable code coverage reports using gcov 14180# Check whether --enable-coverage was given. 14181if test ${enable_coverage+y} 14182then : 14183 enableval=$enable_coverage; 14184else $as_nop 14185 enable_coverage=no 14186fi 14187 14188 14189# Handle --enable-fuzz-support 14190# Check whether --enable-fuzz_support was given. 14191if test ${enable_fuzz_support+y} 14192then : 14193 enableval=$enable_fuzz_support; 14194else $as_nop 14195 enable_fuzz_support=no 14196fi 14197 14198 14199# Handle --disable-stack-for-recursion 14200# This option became obsolete at release 10.30. 14201# Check whether --enable-stack-for-recursion was given. 14202if test ${enable_stack_for_recursion+y} 14203then : 14204 enableval=$enable_stack_for_recursion; 14205else $as_nop 14206 enable_stack_for_recursion=yes 14207fi 14208 14209 14210# Original code 14211# AC_ARG_ENABLE(stack-for-recursion, 14212# AS_HELP_STRING([--disable-stack-for-recursion], 14213# [don't use stack recursion when matching]), 14214# , enable_stack_for_recursion=yes) 14215 14216# Handle --disable-percent_zt (set as "auto" by default) 14217# Check whether --enable-percent-zt was given. 14218if test ${enable_percent_zt+y} 14219then : 14220 enableval=$enable_percent_zt; 14221else $as_nop 14222 enable_percent_zt=auto 14223fi 14224 14225 14226# Set the default value for pcre2-8 14227if test "x$enable_pcre2_8" = "xunset" 14228then 14229 enable_pcre2_8=yes 14230fi 14231 14232# Set the default value for pcre2-16 14233if test "x$enable_pcre2_16" = "xunset" 14234then 14235 enable_pcre2_16=no 14236fi 14237 14238# Set the default value for pcre2-32 14239if test "x$enable_pcre2_32" = "xunset" 14240then 14241 enable_pcre2_32=no 14242fi 14243 14244# Make sure at least one library is selected 14245if test "x$enable_pcre2_8$enable_pcre2_16$enable_pcre2_32" = "xnonono" 14246then 14247 as_fn_error $? "At least one of the 8, 16 or 32 bit libraries must be enabled" "$LINENO" 5 14248fi 14249 14250# Unicode is enabled by default. 14251if test "x$enable_unicode" = "xunset" 14252then 14253 enable_unicode=yes 14254fi 14255 14256# Convert the newline identifier into the appropriate integer value. These must 14257# agree with the PCRE2_NEWLINE_xxx values in pcre2.h. 14258 14259case "$enable_newline" in 14260 cr) ac_pcre2_newline_value=1 ;; 14261 lf) ac_pcre2_newline_value=2 ;; 14262 crlf) ac_pcre2_newline_value=3 ;; 14263 any) ac_pcre2_newline_value=4 ;; 14264 anycrlf) ac_pcre2_newline_value=5 ;; 14265 nul) ac_pcre2_newline_value=6 ;; 14266 *) 14267 as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5 14268 ;; 14269esac 14270 14271# --enable-ebcdic-nl25 implies --enable-ebcdic 14272if test "x$enable_ebcdic_nl25" = "xyes"; then 14273 enable_ebcdic=yes 14274fi 14275 14276# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled. 14277# Also check that UTF support is not requested, because PCRE2 cannot handle 14278# EBCDIC and UTF in the same build. To do so it would need to use different 14279# character constants depending on the mode. Also, EBCDIC cannot be used with 14280# 16-bit and 32-bit libraries. 14281# 14282if test "x$enable_ebcdic" = "xyes"; then 14283 enable_rebuild_chartables=yes 14284 if test "x$enable_unicode" = "xyes"; then 14285 as_fn_error $? "support for EBCDIC and Unicode cannot be enabled at the same time" "$LINENO" 5 14286 fi 14287 if test "x$enable_pcre2_16" = "xyes" -o "x$enable_pcre2_32" = "xyes"; then 14288 as_fn_error $? "EBCDIC support is available only for the 8-bit library" "$LINENO" 5 14289 fi 14290fi 14291 14292# Check argument to --with-link-size 14293case "$with_link_size" in 14294 2|3|4) ;; 14295 *) 14296 as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5 14297 ;; 14298esac 14299 14300 14301 14302# Checks for header files. 14303ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 14304if test "x$ac_cv_header_limits_h" = xyes 14305then : 14306 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h 14307 14308fi 14309ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 14310if test "x$ac_cv_header_sys_types_h" = xyes 14311then : 14312 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 14313 14314fi 14315ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 14316if test "x$ac_cv_header_sys_stat_h" = xyes 14317then : 14318 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 14319 14320fi 14321ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" 14322if test "x$ac_cv_header_dirent_h" = xyes 14323then : 14324 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h 14325 14326fi 14327 14328 for ac_header in windows.h 14329do : 14330 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 14331if test "x$ac_cv_header_windows_h" = xyes 14332then : 14333 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h 14334 HAVE_WINDOWS_H=1 14335fi 14336 14337done 14338 for ac_header in sys/wait.h 14339do : 14340 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 14341if test "x$ac_cv_header_sys_wait_h" = xyes 14342then : 14343 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 14344 HAVE_SYS_WAIT_H=1 14345fi 14346 14347done 14348 14349# Conditional compilation 14350 if test "x$enable_pcre2_8" = "xyes"; then 14351 WITH_PCRE2_8_TRUE= 14352 WITH_PCRE2_8_FALSE='#' 14353else 14354 WITH_PCRE2_8_TRUE='#' 14355 WITH_PCRE2_8_FALSE= 14356fi 14357 14358 if test "x$enable_pcre2_16" = "xyes"; then 14359 WITH_PCRE2_16_TRUE= 14360 WITH_PCRE2_16_FALSE='#' 14361else 14362 WITH_PCRE2_16_TRUE='#' 14363 WITH_PCRE2_16_FALSE= 14364fi 14365 14366 if test "x$enable_pcre2_32" = "xyes"; then 14367 WITH_PCRE2_32_TRUE= 14368 WITH_PCRE2_32_FALSE='#' 14369else 14370 WITH_PCRE2_32_TRUE='#' 14371 WITH_PCRE2_32_FALSE= 14372fi 14373 14374 if test "x$enable_debug" = "xyes"; then 14375 WITH_DEBUG_TRUE= 14376 WITH_DEBUG_FALSE='#' 14377else 14378 WITH_DEBUG_TRUE='#' 14379 WITH_DEBUG_FALSE= 14380fi 14381 14382 if test "x$enable_rebuild_chartables" = "xyes"; then 14383 WITH_REBUILD_CHARTABLES_TRUE= 14384 WITH_REBUILD_CHARTABLES_FALSE='#' 14385else 14386 WITH_REBUILD_CHARTABLES_TRUE='#' 14387 WITH_REBUILD_CHARTABLES_FALSE= 14388fi 14389 14390 if test "x$enable_jit" = "xyes"; then 14391 WITH_JIT_TRUE= 14392 WITH_JIT_FALSE='#' 14393else 14394 WITH_JIT_TRUE='#' 14395 WITH_JIT_FALSE= 14396fi 14397 14398 if test "x$enable_unicode" = "xyes"; then 14399 WITH_UNICODE_TRUE= 14400 WITH_UNICODE_FALSE='#' 14401else 14402 WITH_UNICODE_TRUE='#' 14403 WITH_UNICODE_FALSE= 14404fi 14405 14406 if test "x$enable_valgrind" = "xyes"; then 14407 WITH_VALGRIND_TRUE= 14408 WITH_VALGRIND_FALSE='#' 14409else 14410 WITH_VALGRIND_TRUE='#' 14411 WITH_VALGRIND_FALSE= 14412fi 14413 14414 if test "x$enable_fuzz_support" = "xyes"; then 14415 WITH_FUZZ_SUPPORT_TRUE= 14416 WITH_FUZZ_SUPPORT_FALSE='#' 14417else 14418 WITH_FUZZ_SUPPORT_TRUE='#' 14419 WITH_FUZZ_SUPPORT_FALSE= 14420fi 14421 14422 14423if test "$enable_fuzz_support" = "yes" -a "$enable_pcre2_8" = "no"; then 14424 echo "** ERROR: Fuzzer support requires the 8-bit library" 14425 exit 1 14426fi 14427 14428# Checks for typedefs, structures, and compiler characteristics. 14429 14430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14431printf %s "checking for an ANSI C-conforming const... " >&6; } 14432if test ${ac_cv_c_const+y} 14433then : 14434 printf %s "(cached) " >&6 14435else $as_nop 14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14437/* end confdefs.h. */ 14438 14439int 14440main (void) 14441{ 14442 14443#ifndef __cplusplus 14444 /* Ultrix mips cc rejects this sort of thing. */ 14445 typedef int charset[2]; 14446 const charset cs = { 0, 0 }; 14447 /* SunOS 4.1.1 cc rejects this. */ 14448 char const *const *pcpcc; 14449 char **ppc; 14450 /* NEC SVR4.0.2 mips cc rejects this. */ 14451 struct point {int x, y;}; 14452 static struct point const zero = {0,0}; 14453 /* IBM XL C 1.02.0.0 rejects this. 14454 It does not let you subtract one const X* pointer from another in 14455 an arm of an if-expression whose if-part is not a constant 14456 expression */ 14457 const char *g = "string"; 14458 pcpcc = &g + (g ? g-g : 0); 14459 /* HPUX 7.0 cc rejects these. */ 14460 ++pcpcc; 14461 ppc = (char**) pcpcc; 14462 pcpcc = (char const *const *) ppc; 14463 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14464 char tx; 14465 char *t = &tx; 14466 char const *s = 0 ? (char *) 0 : (char const *) 0; 14467 14468 *t++ = 0; 14469 if (s) return 0; 14470 } 14471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14472 int x[] = {25, 17}; 14473 const int *foo = &x[0]; 14474 ++foo; 14475 } 14476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14477 typedef const int *iptr; 14478 iptr p = 0; 14479 ++p; 14480 } 14481 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 14482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14483 struct s { int j; const int *ap[3]; } bx; 14484 struct s *b = &bx; b->j = 5; 14485 } 14486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14487 const int foo = 10; 14488 if (!foo) return 0; 14489 } 14490 return !cs[0] && !zero.x; 14491#endif 14492 14493 ; 14494 return 0; 14495} 14496_ACEOF 14497if ac_fn_c_try_compile "$LINENO" 14498then : 14499 ac_cv_c_const=yes 14500else $as_nop 14501 ac_cv_c_const=no 14502fi 14503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14504fi 14505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14506printf "%s\n" "$ac_cv_c_const" >&6; } 14507if test $ac_cv_c_const = no; then 14508 14509printf "%s\n" "#define const /**/" >>confdefs.h 14510 14511fi 14512 14513ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14514if test "x$ac_cv_type_size_t" = xyes 14515then : 14516 14517else $as_nop 14518 14519printf "%s\n" "#define size_t unsigned int" >>confdefs.h 14520 14521fi 14522 14523 14524# Checks for library functions. 14525 14526ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy" 14527if test "x$ac_cv_func_bcopy" = xyes 14528then : 14529 printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h 14530 14531fi 14532ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create" 14533if test "x$ac_cv_func_memfd_create" = xyes 14534then : 14535 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 14536 14537fi 14538ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 14539if test "x$ac_cv_func_memmove" = xyes 14540then : 14541 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h 14542 14543fi 14544ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 14545if test "x$ac_cv_func_mkostemp" = xyes 14546then : 14547 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 14548 14549fi 14550ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" 14551if test "x$ac_cv_func_secure_getenv" = xyes 14552then : 14553 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h 14554 14555fi 14556ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 14557if test "x$ac_cv_func_strerror" = xyes 14558then : 14559 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h 14560 14561fi 14562 14563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for realpath" >&5 14564printf %s "checking for realpath... " >&6; } 14565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14566/* end confdefs.h. */ 14567 14568#include <stdlib.h> 14569#include <limits.h> 14570 14571int 14572main (void) 14573{ 14574 14575char buffer[PATH_MAX]; 14576realpath(".", buffer); 14577 14578 ; 14579 return 0; 14580} 14581_ACEOF 14582if ac_fn_c_try_link "$LINENO" 14583then : 14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14585printf "%s\n" "yes" >&6; } 14586 14587printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h 14588 14589 14590else $as_nop 14591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14592printf "%s\n" "no" >&6; } 14593fi 14594rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14595 conftest$ac_exeext conftest.$ac_ext 14596 14597# Check for the availability of libz (aka zlib) 14598 14599 for ac_header in zlib.h 14600do : 14601 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 14602if test "x$ac_cv_header_zlib_h" = xyes 14603then : 14604 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h 14605 HAVE_ZLIB_H=1 14606fi 14607 14608done 14609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 14610printf %s "checking for gzopen in -lz... " >&6; } 14611if test ${ac_cv_lib_z_gzopen+y} 14612then : 14613 printf %s "(cached) " >&6 14614else $as_nop 14615 ac_check_lib_save_LIBS=$LIBS 14616LIBS="-lz $LIBS" 14617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14618/* end confdefs.h. */ 14619 14620/* Override any GCC internal prototype to avoid an error. 14621 Use char because int might match the return type of a GCC 14622 builtin and then its argument prototype would still apply. */ 14623char gzopen (); 14624int 14625main (void) 14626{ 14627return gzopen (); 14628 ; 14629 return 0; 14630} 14631_ACEOF 14632if ac_fn_c_try_link "$LINENO" 14633then : 14634 ac_cv_lib_z_gzopen=yes 14635else $as_nop 14636 ac_cv_lib_z_gzopen=no 14637fi 14638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14639 conftest$ac_exeext conftest.$ac_ext 14640LIBS=$ac_check_lib_save_LIBS 14641fi 14642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 14643printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; } 14644if test "x$ac_cv_lib_z_gzopen" = xyes 14645then : 14646 HAVE_LIBZ=1 14647fi 14648 14649 14650# Check for the availability of libbz2. Originally we just used AC_CHECK_LIB, 14651# as for libz. However, this had the following problem, diagnosed and fixed by 14652# a user: 14653# 14654# - libbz2 uses the Pascal calling convention (WINAPI) for the functions 14655# under Win32. 14656# - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h", 14657# therefore missing the function definition. 14658# - The compiler thus generates a "C" signature for the test function. 14659# - The linker fails to find the "C" function. 14660# - PCRE2 fails to configure if asked to do so against libbz2. 14661# 14662# Solution: 14663# 14664# - Replace the AC_CHECK_LIB test with a custom test. 14665 14666 for ac_header in bzlib.h 14667do : 14668 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 14669if test "x$ac_cv_header_bzlib_h" = xyes 14670then : 14671 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h 14672 HAVE_BZLIB_H=1 14673fi 14674 14675done 14676# Original test 14677# AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1]) 14678# 14679# Custom test follows 14680 14681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5 14682printf %s "checking for libbz2... " >&6; } 14683OLD_LIBS="$LIBS" 14684LIBS="$LIBS -lbz2" 14685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14686/* end confdefs.h. */ 14687 14688#ifdef HAVE_BZLIB_H 14689#include <bzlib.h> 14690#endif 14691int 14692main (void) 14693{ 14694return (int)BZ2_bzopen("conftest", "rb"); 14695 ; 14696 return 0; 14697} 14698_ACEOF 14699if ac_fn_c_try_link "$LINENO" 14700then : 14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14702printf "%s\n" "yes" >&6; };HAVE_LIBBZ2=1; break; 14703else $as_nop 14704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14705printf "%s\n" "no" >&6; } 14706fi 14707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14708 conftest$ac_exeext conftest.$ac_ext 14709LIBS="$OLD_LIBS" 14710 14711# Check for the availabiity of libreadline 14712 14713if test "$enable_pcre2test_libreadline" = "yes"; then 14714 for ac_header in readline/readline.h 14715do : 14716 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 14717if test "x$ac_cv_header_readline_readline_h" = xyes 14718then : 14719 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 14720 HAVE_READLINE_H=1 14721fi 14722 14723done 14724 for ac_header in readline/history.h 14725do : 14726 ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 14727if test "x$ac_cv_header_readline_history_h" = xyes 14728then : 14729 printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h 14730 HAVE_HISTORY_H=1 14731fi 14732 14733done 14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 14735printf %s "checking for readline in -lreadline... " >&6; } 14736if test ${ac_cv_lib_readline_readline+y} 14737then : 14738 printf %s "(cached) " >&6 14739else $as_nop 14740 ac_check_lib_save_LIBS=$LIBS 14741LIBS="-lreadline $LIBS" 14742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14743/* end confdefs.h. */ 14744 14745/* Override any GCC internal prototype to avoid an error. 14746 Use char because int might match the return type of a GCC 14747 builtin and then its argument prototype would still apply. */ 14748char readline (); 14749int 14750main (void) 14751{ 14752return readline (); 14753 ; 14754 return 0; 14755} 14756_ACEOF 14757if ac_fn_c_try_link "$LINENO" 14758then : 14759 ac_cv_lib_readline_readline=yes 14760else $as_nop 14761 ac_cv_lib_readline_readline=no 14762fi 14763rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14764 conftest$ac_exeext conftest.$ac_ext 14765LIBS=$ac_check_lib_save_LIBS 14766fi 14767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14768printf "%s\n" "$ac_cv_lib_readline_readline" >&6; } 14769if test "x$ac_cv_lib_readline_readline" = xyes 14770then : 14771 LIBREADLINE="-lreadline" 14772else $as_nop 14773 unset ac_cv_lib_readline_readline; 14774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 14775printf %s "checking for readline in -lreadline... " >&6; } 14776if test ${ac_cv_lib_readline_readline+y} 14777then : 14778 printf %s "(cached) " >&6 14779else $as_nop 14780 ac_check_lib_save_LIBS=$LIBS 14781LIBS="-lreadline -ltinfo $LIBS" 14782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14783/* end confdefs.h. */ 14784 14785/* Override any GCC internal prototype to avoid an error. 14786 Use char because int might match the return type of a GCC 14787 builtin and then its argument prototype would still apply. */ 14788char readline (); 14789int 14790main (void) 14791{ 14792return readline (); 14793 ; 14794 return 0; 14795} 14796_ACEOF 14797if ac_fn_c_try_link "$LINENO" 14798then : 14799 ac_cv_lib_readline_readline=yes 14800else $as_nop 14801 ac_cv_lib_readline_readline=no 14802fi 14803rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14804 conftest$ac_exeext conftest.$ac_ext 14805LIBS=$ac_check_lib_save_LIBS 14806fi 14807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14808printf "%s\n" "$ac_cv_lib_readline_readline" >&6; } 14809if test "x$ac_cv_lib_readline_readline" = xyes 14810then : 14811 LIBREADLINE="-ltinfo" 14812else $as_nop 14813 unset ac_cv_lib_readline_readline; 14814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 14815printf %s "checking for readline in -lreadline... " >&6; } 14816if test ${ac_cv_lib_readline_readline+y} 14817then : 14818 printf %s "(cached) " >&6 14819else $as_nop 14820 ac_check_lib_save_LIBS=$LIBS 14821LIBS="-lreadline -lcurses $LIBS" 14822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14823/* end confdefs.h. */ 14824 14825/* Override any GCC internal prototype to avoid an error. 14826 Use char because int might match the return type of a GCC 14827 builtin and then its argument prototype would still apply. */ 14828char readline (); 14829int 14830main (void) 14831{ 14832return readline (); 14833 ; 14834 return 0; 14835} 14836_ACEOF 14837if ac_fn_c_try_link "$LINENO" 14838then : 14839 ac_cv_lib_readline_readline=yes 14840else $as_nop 14841 ac_cv_lib_readline_readline=no 14842fi 14843rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14844 conftest$ac_exeext conftest.$ac_ext 14845LIBS=$ac_check_lib_save_LIBS 14846fi 14847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14848printf "%s\n" "$ac_cv_lib_readline_readline" >&6; } 14849if test "x$ac_cv_lib_readline_readline" = xyes 14850then : 14851 LIBREADLINE="-lcurses" 14852else $as_nop 14853 unset ac_cv_lib_readline_readline; 14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 14855printf %s "checking for readline in -lreadline... " >&6; } 14856if test ${ac_cv_lib_readline_readline+y} 14857then : 14858 printf %s "(cached) " >&6 14859else $as_nop 14860 ac_check_lib_save_LIBS=$LIBS 14861LIBS="-lreadline -lncurses $LIBS" 14862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14863/* end confdefs.h. */ 14864 14865/* Override any GCC internal prototype to avoid an error. 14866 Use char because int might match the return type of a GCC 14867 builtin and then its argument prototype would still apply. */ 14868char readline (); 14869int 14870main (void) 14871{ 14872return readline (); 14873 ; 14874 return 0; 14875} 14876_ACEOF 14877if ac_fn_c_try_link "$LINENO" 14878then : 14879 ac_cv_lib_readline_readline=yes 14880else $as_nop 14881 ac_cv_lib_readline_readline=no 14882fi 14883rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14884 conftest$ac_exeext conftest.$ac_ext 14885LIBS=$ac_check_lib_save_LIBS 14886fi 14887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14888printf "%s\n" "$ac_cv_lib_readline_readline" >&6; } 14889if test "x$ac_cv_lib_readline_readline" = xyes 14890then : 14891 LIBREADLINE="-lncurses" 14892else $as_nop 14893 unset ac_cv_lib_readline_readline; 14894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 14895printf %s "checking for readline in -lreadline... " >&6; } 14896if test ${ac_cv_lib_readline_readline+y} 14897then : 14898 printf %s "(cached) " >&6 14899else $as_nop 14900 ac_check_lib_save_LIBS=$LIBS 14901LIBS="-lreadline -lncursesw $LIBS" 14902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14903/* end confdefs.h. */ 14904 14905/* Override any GCC internal prototype to avoid an error. 14906 Use char because int might match the return type of a GCC 14907 builtin and then its argument prototype would still apply. */ 14908char readline (); 14909int 14910main (void) 14911{ 14912return readline (); 14913 ; 14914 return 0; 14915} 14916_ACEOF 14917if ac_fn_c_try_link "$LINENO" 14918then : 14919 ac_cv_lib_readline_readline=yes 14920else $as_nop 14921 ac_cv_lib_readline_readline=no 14922fi 14923rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14924 conftest$ac_exeext conftest.$ac_ext 14925LIBS=$ac_check_lib_save_LIBS 14926fi 14927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14928printf "%s\n" "$ac_cv_lib_readline_readline" >&6; } 14929if test "x$ac_cv_lib_readline_readline" = xyes 14930then : 14931 LIBREADLINE="-lncursesw" 14932else $as_nop 14933 unset ac_cv_lib_readline_readline; 14934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 14935printf %s "checking for readline in -lreadline... " >&6; } 14936if test ${ac_cv_lib_readline_readline+y} 14937then : 14938 printf %s "(cached) " >&6 14939else $as_nop 14940 ac_check_lib_save_LIBS=$LIBS 14941LIBS="-lreadline -ltermcap $LIBS" 14942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14943/* end confdefs.h. */ 14944 14945/* Override any GCC internal prototype to avoid an error. 14946 Use char because int might match the return type of a GCC 14947 builtin and then its argument prototype would still apply. */ 14948char readline (); 14949int 14950main (void) 14951{ 14952return readline (); 14953 ; 14954 return 0; 14955} 14956_ACEOF 14957if ac_fn_c_try_link "$LINENO" 14958then : 14959 ac_cv_lib_readline_readline=yes 14960else $as_nop 14961 ac_cv_lib_readline_readline=no 14962fi 14963rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14964 conftest$ac_exeext conftest.$ac_ext 14965LIBS=$ac_check_lib_save_LIBS 14966fi 14967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14968printf "%s\n" "$ac_cv_lib_readline_readline" >&6; } 14969if test "x$ac_cv_lib_readline_readline" = xyes 14970then : 14971 LIBREADLINE="-ltermcap" 14972else $as_nop 14973 LIBREADLINE="" 14974fi 14975 14976fi 14977 14978fi 14979 14980fi 14981 14982fi 14983 14984fi 14985 14986 14987 if test -n "$LIBREADLINE"; then 14988 if test "$LIBREADLINE" != "-lreadline"; then 14989 echo "-lreadline needs $LIBREADLINE" 14990 LIBREADLINE="-lreadline $LIBREADLINE" 14991 fi 14992 fi 14993fi 14994 14995# Check for the availability of libedit. Different distributions put its 14996# headers in different places. Try to cover the most common ones. 14997 14998if test "$enable_pcre2test_libedit" = "yes"; then 14999 for ac_header in editline/readline.h edit/readline/readline.h readline.h 15000do : 15001 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 15002ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15003if eval test \"x\$"$as_ac_Header"\" = x"yes" 15004then : 15005 cat >>confdefs.h <<_ACEOF 15006#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 15007_ACEOF 15008 15009 HAVE_LIBEDIT_HEADER=1 15010 break 15011 15012fi 15013 15014done 15015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 15016printf %s "checking for readline in -ledit... " >&6; } 15017if test ${ac_cv_lib_edit_readline+y} 15018then : 15019 printf %s "(cached) " >&6 15020else $as_nop 15021 ac_check_lib_save_LIBS=$LIBS 15022LIBS="-ledit $LIBS" 15023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15024/* end confdefs.h. */ 15025 15026/* Override any GCC internal prototype to avoid an error. 15027 Use char because int might match the return type of a GCC 15028 builtin and then its argument prototype would still apply. */ 15029char readline (); 15030int 15031main (void) 15032{ 15033return readline (); 15034 ; 15035 return 0; 15036} 15037_ACEOF 15038if ac_fn_c_try_link "$LINENO" 15039then : 15040 ac_cv_lib_edit_readline=yes 15041else $as_nop 15042 ac_cv_lib_edit_readline=no 15043fi 15044rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15045 conftest$ac_exeext conftest.$ac_ext 15046LIBS=$ac_check_lib_save_LIBS 15047fi 15048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 15049printf "%s\n" "$ac_cv_lib_edit_readline" >&6; } 15050if test "x$ac_cv_lib_edit_readline" = xyes 15051then : 15052 LIBEDIT="-ledit" 15053fi 15054 15055fi 15056 15057PCRE2_STATIC_CFLAG="" 15058if test "x$enable_shared" = "xno" ; then 15059 15060printf "%s\n" "#define PCRE2_STATIC 1" >>confdefs.h 15061 15062 PCRE2_STATIC_CFLAG="-DPCRE2_STATIC" 15063fi 15064 15065 15066# Here is where PCRE2-specific defines are handled 15067 15068if test "$enable_pcre2_8" = "yes"; then 15069 15070printf "%s\n" "#define SUPPORT_PCRE2_8 /**/" >>confdefs.h 15071 15072fi 15073 15074if test "$enable_pcre2_16" = "yes"; then 15075 15076printf "%s\n" "#define SUPPORT_PCRE2_16 /**/" >>confdefs.h 15077 15078fi 15079 15080if test "$enable_pcre2_32" = "yes"; then 15081 15082printf "%s\n" "#define SUPPORT_PCRE2_32 /**/" >>confdefs.h 15083 15084fi 15085 15086if test "$enable_debug" = "yes"; then 15087 15088printf "%s\n" "#define PCRE2_DEBUG /**/" >>confdefs.h 15089 15090fi 15091 15092if test "$enable_percent_zt" = "no"; then 15093 15094printf "%s\n" "#define DISABLE_PERCENT_ZT /**/" >>confdefs.h 15095 15096else 15097 enable_percent_zt=auto 15098fi 15099 15100# Unless running under Windows, JIT support requires pthreads. 15101 15102if test "$enable_jit" = "yes"; then 15103 if test "$HAVE_WINDOWS_H" != "1"; then 15104 15105 15106ac_ext=c 15107ac_cpp='$CPP $CPPFLAGS' 15108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15110ac_compiler_gnu=$ac_cv_c_compiler_gnu 15111 15112ax_pthread_ok=no 15113 15114# We used to check for pthread.h first, but this fails if pthread.h 15115# requires special compiler flags (e.g. on True64 or Sequent). 15116# It gets checked for in the link test anyway. 15117 15118# First of all, check if the user has set any of the PTHREAD_LIBS, 15119# etcetera environment variables, and if threads linking works using 15120# them: 15121if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 15122 save_CFLAGS="$CFLAGS" 15123 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15124 save_LIBS="$LIBS" 15125 LIBS="$PTHREAD_LIBS $LIBS" 15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 15127printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15129/* end confdefs.h. */ 15130 15131/* Override any GCC internal prototype to avoid an error. 15132 Use char because int might match the return type of a GCC 15133 builtin and then its argument prototype would still apply. */ 15134char pthread_join (); 15135int 15136main (void) 15137{ 15138return pthread_join (); 15139 ; 15140 return 0; 15141} 15142_ACEOF 15143if ac_fn_c_try_link "$LINENO" 15144then : 15145 ax_pthread_ok=yes 15146fi 15147rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15148 conftest$ac_exeext conftest.$ac_ext 15149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15150printf "%s\n" "$ax_pthread_ok" >&6; } 15151 if test x"$ax_pthread_ok" = xno; then 15152 PTHREAD_LIBS="" 15153 PTHREAD_CFLAGS="" 15154 fi 15155 LIBS="$save_LIBS" 15156 CFLAGS="$save_CFLAGS" 15157fi 15158 15159# We must check for the threads library under a number of different 15160# names; the ordering is very important because some systems 15161# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15162# libraries is broken (non-POSIX). 15163 15164# Create a list of thread flags to try. Items starting with a "-" are 15165# C compiler flags, and other items are library names, except for "none" 15166# which indicates that we try without any flags at all, and "pthread-config" 15167# which is a program returning the flags for the Pth emulation library. 15168 15169ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15170 15171# The ordering *is* (sometimes) important. Some notes on the 15172# individual items follow: 15173 15174# pthreads: AIX (must check this before -lpthread) 15175# none: in case threads are in libc; should be tried before -Kthread and 15176# other compiler flags to prevent continual compiler warnings 15177# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15178# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15179# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15180# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 15181# -pthreads: Solaris/gcc 15182# -mthreads: Mingw32/gcc, Lynx/gcc 15183# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15184# doesn't hurt to check since this sometimes defines pthreads too; 15185# also defines -D_REENTRANT) 15186# ... -mt is also the pthreads flag for HP/aCC 15187# pthread: Linux, etcetera 15188# --thread-safe: KAI C++ 15189# pthread-config: use pthread-config program (for GNU Pth library) 15190 15191case ${host_os} in 15192 solaris*) 15193 15194 # On Solaris (at least, for some versions), libc contains stubbed 15195 # (non-functional) versions of the pthreads routines, so link-based 15196 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 15197 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 15198 # a function called by this macro, so we could check for that, but 15199 # who knows whether they'll stub that too in a future libc.) So, 15200 # we'll just look for -pthreads and -lpthread first: 15201 15202 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 15203 ;; 15204 15205 darwin*) 15206 ax_pthread_flags="-pthread $ax_pthread_flags" 15207 ;; 15208esac 15209 15210if test x"$ax_pthread_ok" = xno; then 15211for flag in $ax_pthread_flags; do 15212 15213 case $flag in 15214 none) 15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15216printf %s "checking whether pthreads work without any flags... " >&6; } 15217 ;; 15218 15219 -*) 15220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 15221printf %s "checking whether pthreads work with $flag... " >&6; } 15222 PTHREAD_CFLAGS="$flag" 15223 ;; 15224 15225 pthread-config) 15226 # Extract the first word of "pthread-config", so it can be a program name with args. 15227set dummy pthread-config; ac_word=$2 15228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15229printf %s "checking for $ac_word... " >&6; } 15230if test ${ac_cv_prog_ax_pthread_config+y} 15231then : 15232 printf %s "(cached) " >&6 15233else $as_nop 15234 if test -n "$ax_pthread_config"; then 15235 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15236else 15237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15238for as_dir in $PATH 15239do 15240 IFS=$as_save_IFS 15241 case $as_dir in #((( 15242 '') as_dir=./ ;; 15243 */) ;; 15244 *) as_dir=$as_dir/ ;; 15245 esac 15246 for ac_exec_ext in '' $ac_executable_extensions; do 15247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15248 ac_cv_prog_ax_pthread_config="yes" 15249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15250 break 2 15251 fi 15252done 15253 done 15254IFS=$as_save_IFS 15255 15256 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15257fi 15258fi 15259ax_pthread_config=$ac_cv_prog_ax_pthread_config 15260if test -n "$ax_pthread_config"; then 15261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15262printf "%s\n" "$ax_pthread_config" >&6; } 15263else 15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15265printf "%s\n" "no" >&6; } 15266fi 15267 15268 15269 if test x"$ax_pthread_config" = xno; then continue; fi 15270 PTHREAD_CFLAGS="`pthread-config --cflags`" 15271 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15272 ;; 15273 15274 *) 15275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 15276printf %s "checking for the pthreads library -l$flag... " >&6; } 15277 PTHREAD_LIBS="-l$flag" 15278 ;; 15279 esac 15280 15281 save_LIBS="$LIBS" 15282 save_CFLAGS="$CFLAGS" 15283 LIBS="$PTHREAD_LIBS $LIBS" 15284 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15285 15286 # Check for various functions. We must include pthread.h, 15287 # since some functions may be macros. (On the Sequent, we 15288 # need a special flag -Kthread to make this header compile.) 15289 # We check for pthread_join because it is in -lpthread on IRIX 15290 # while pthread_create is in libc. We check for pthread_attr_init 15291 # due to DEC craziness with -lpthreads. We check for 15292 # pthread_cleanup_push because it is one of the few pthread 15293 # functions on Solaris that doesn't have a non-functional libc stub. 15294 # We try pthread_create on general principles. 15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15296/* end confdefs.h. */ 15297#include <pthread.h> 15298 static void routine(void *a) { a = 0; } 15299 static void *start_routine(void *a) { return a; } 15300int 15301main (void) 15302{ 15303pthread_t th; pthread_attr_t attr; 15304 pthread_create(&th, 0, start_routine, 0); 15305 pthread_join(th, 0); 15306 pthread_attr_init(&attr); 15307 pthread_cleanup_push(routine, 0); 15308 pthread_cleanup_pop(0) /* ; */ 15309 ; 15310 return 0; 15311} 15312_ACEOF 15313if ac_fn_c_try_link "$LINENO" 15314then : 15315 ax_pthread_ok=yes 15316fi 15317rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15318 conftest$ac_exeext conftest.$ac_ext 15319 15320 LIBS="$save_LIBS" 15321 CFLAGS="$save_CFLAGS" 15322 15323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15324printf "%s\n" "$ax_pthread_ok" >&6; } 15325 if test "x$ax_pthread_ok" = xyes; then 15326 break; 15327 fi 15328 15329 PTHREAD_LIBS="" 15330 PTHREAD_CFLAGS="" 15331done 15332fi 15333 15334# Various other checks: 15335if test "x$ax_pthread_ok" = xyes; then 15336 save_LIBS="$LIBS" 15337 LIBS="$PTHREAD_LIBS $LIBS" 15338 save_CFLAGS="$CFLAGS" 15339 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15340 15341 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15343printf %s "checking for joinable pthread attribute... " >&6; } 15344 attr_name=unknown 15345 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15347/* end confdefs.h. */ 15348#include <pthread.h> 15349int 15350main (void) 15351{ 15352int attr = $attr; return attr /* ; */ 15353 ; 15354 return 0; 15355} 15356_ACEOF 15357if ac_fn_c_try_link "$LINENO" 15358then : 15359 attr_name=$attr; break 15360fi 15361rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15362 conftest$ac_exeext conftest.$ac_ext 15363 done 15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 15365printf "%s\n" "$attr_name" >&6; } 15366 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 15367 15368printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h 15369 15370 fi 15371 15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 15373printf %s "checking if more special flags are required for pthreads... " >&6; } 15374 flag=no 15375 case ${host_os} in 15376 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 15377 osf* | hpux*) flag="-D_REENTRANT";; 15378 solaris*) 15379 if test "$GCC" = "yes"; then 15380 flag="-D_REENTRANT" 15381 else 15382 flag="-mt -D_REENTRANT" 15383 fi 15384 ;; 15385 esac 15386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 15387printf "%s\n" "${flag}" >&6; } 15388 if test "x$flag" != xno; then 15389 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 15390 fi 15391 15392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15393printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15394if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 15395then : 15396 printf %s "(cached) " >&6 15397else $as_nop 15398 15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15400/* end confdefs.h. */ 15401 15402 #include <pthread.h> 15403int 15404main (void) 15405{ 15406int i = PTHREAD_PRIO_INHERIT; 15407 ; 15408 return 0; 15409} 15410_ACEOF 15411if ac_fn_c_try_link "$LINENO" 15412then : 15413 ax_cv_PTHREAD_PRIO_INHERIT=yes 15414else $as_nop 15415 ax_cv_PTHREAD_PRIO_INHERIT=no 15416fi 15417rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15418 conftest$ac_exeext conftest.$ac_ext 15419 15420fi 15421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15422printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15423 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" 15424then : 15425 15426printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15427 15428fi 15429 15430 LIBS="$save_LIBS" 15431 CFLAGS="$save_CFLAGS" 15432 15433 # More AIX lossage: must compile with xlc_r or cc_r 15434 if test x"$GCC" != xyes; then 15435 for ac_prog in xlc_r cc_r 15436do 15437 # Extract the first word of "$ac_prog", so it can be a program name with args. 15438set dummy $ac_prog; ac_word=$2 15439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15440printf %s "checking for $ac_word... " >&6; } 15441if test ${ac_cv_prog_PTHREAD_CC+y} 15442then : 15443 printf %s "(cached) " >&6 15444else $as_nop 15445 if test -n "$PTHREAD_CC"; then 15446 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15447else 15448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15449for as_dir in $PATH 15450do 15451 IFS=$as_save_IFS 15452 case $as_dir in #((( 15453 '') as_dir=./ ;; 15454 */) ;; 15455 *) as_dir=$as_dir/ ;; 15456 esac 15457 for ac_exec_ext in '' $ac_executable_extensions; do 15458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15459 ac_cv_prog_PTHREAD_CC="$ac_prog" 15460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15461 break 2 15462 fi 15463done 15464 done 15465IFS=$as_save_IFS 15466 15467fi 15468fi 15469PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15470if test -n "$PTHREAD_CC"; then 15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15472printf "%s\n" "$PTHREAD_CC" >&6; } 15473else 15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15475printf "%s\n" "no" >&6; } 15476fi 15477 15478 15479 test -n "$PTHREAD_CC" && break 15480done 15481test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 15482 15483 else 15484 PTHREAD_CC=$CC 15485 fi 15486else 15487 PTHREAD_CC="$CC" 15488fi 15489 15490 15491 15492 15493 15494# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15495if test x"$ax_pthread_ok" = xyes; then 15496 15497printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 15498 15499 : 15500else 15501 ax_pthread_ok=no 15502 as_fn_error $? "JIT support requires pthreads" "$LINENO" 5 15503fi 15504ac_ext=c 15505ac_cpp='$CPP $CPPFLAGS' 15506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15508ac_compiler_gnu=$ac_cv_c_compiler_gnu 15509 15510 15511 CC="$PTHREAD_CC" 15512 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 15513 LIBS="$PTHREAD_LIBS $LIBS" 15514 fi 15515 15516printf "%s\n" "#define SUPPORT_JIT /**/" >>confdefs.h 15517 15518else 15519 enable_pcre2grep_jit="no" 15520fi 15521 15522if test "$enable_jit_sealloc" = "yes"; then 15523 15524printf "%s\n" "#define SLJIT_PROT_EXECUTABLE_ALLOCATOR 1" >>confdefs.h 15525 15526fi 15527 15528if test "$enable_pcre2grep_jit" = "yes"; then 15529 15530printf "%s\n" "#define SUPPORT_PCRE2GREP_JIT /**/" >>confdefs.h 15531 15532fi 15533 15534if test "$enable_pcre2grep_callout" = "yes"; then 15535 if test "$enable_pcre2grep_callout_fork" = "yes"; then 15536 if test "$HAVE_WINDOWS_H" != "1"; then 15537 if test "$HAVE_SYS_WAIT_H" != "1"; then 15538 as_fn_error $? "Callout script support needs sys/wait.h." "$LINENO" 5 15539 fi 15540 fi 15541 15542printf "%s\n" "#define SUPPORT_PCRE2GREP_CALLOUT_FORK /**/" >>confdefs.h 15543 15544 fi 15545 15546printf "%s\n" "#define SUPPORT_PCRE2GREP_CALLOUT /**/" >>confdefs.h 15547 15548else 15549 enable_pcre2grep_callout_fork="no" 15550fi 15551 15552if test "$enable_unicode" = "yes"; then 15553 15554printf "%s\n" "#define SUPPORT_UNICODE /**/" >>confdefs.h 15555 15556fi 15557 15558if test "$enable_pcre2grep_libz" = "yes"; then 15559 15560printf "%s\n" "#define SUPPORT_LIBZ /**/" >>confdefs.h 15561 15562fi 15563 15564if test "$enable_pcre2grep_libbz2" = "yes"; then 15565 15566printf "%s\n" "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h 15567 15568fi 15569 15570if test $with_pcre2grep_bufsize -lt 8192 ; then 15571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&5 15572printf "%s\n" "$as_me: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&2;} 15573 with_pcre2grep_bufsize="8192" 15574else 15575 if test $? -gt 1 ; then 15576 as_fn_error $? "Bad value for --with-pcre2grep-bufsize" "$LINENO" 5 15577 fi 15578fi 15579 15580if test $with_pcre2grep_max_bufsize -lt $with_pcre2grep_bufsize ; then 15581 with_pcre2grep_max_bufsize="$with_pcre2grep_bufsize" 15582else 15583 if test $? -gt 1 ; then 15584 as_fn_error $? "Bad value for --with-pcre2grep-max-bufsize" "$LINENO" 5 15585 fi 15586fi 15587 15588 15589printf "%s\n" "#define PCRE2GREP_BUFSIZE $with_pcre2grep_bufsize" >>confdefs.h 15590 15591 15592 15593printf "%s\n" "#define PCRE2GREP_MAX_BUFSIZE $with_pcre2grep_max_bufsize" >>confdefs.h 15594 15595 15596if test "$enable_pcre2test_libedit" = "yes"; then 15597 15598printf "%s\n" "#define SUPPORT_LIBEDIT /**/" >>confdefs.h 15599 15600 LIBREADLINE="$LIBEDIT" 15601elif test "$enable_pcre2test_libreadline" = "yes"; then 15602 15603printf "%s\n" "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h 15604 15605fi 15606 15607 15608printf "%s\n" "#define NEWLINE_DEFAULT $ac_pcre2_newline_value" >>confdefs.h 15609 15610 15611if test "$enable_bsr_anycrlf" = "yes"; then 15612 15613printf "%s\n" "#define BSR_ANYCRLF /**/" >>confdefs.h 15614 15615fi 15616 15617if test "$enable_never_backslash_C" = "yes"; then 15618 15619printf "%s\n" "#define NEVER_BACKSLASH_C /**/" >>confdefs.h 15620 15621fi 15622 15623 15624printf "%s\n" "#define LINK_SIZE $with_link_size" >>confdefs.h 15625 15626 15627 15628printf "%s\n" "#define PARENS_NEST_LIMIT $with_parens_nest_limit" >>confdefs.h 15629 15630 15631 15632printf "%s\n" "#define MATCH_LIMIT $with_match_limit" >>confdefs.h 15633 15634 15635# --with-match-limit-recursion is an obsolete synonym for --with-match-limit-depth 15636 15637if test "$with_match_limit_recursion" != "UNSET"; then 15638cat <<EOF 15639 15640WARNING: --with-match-limit-recursion is an obsolete option. Please use 15641 --with-match-limit-depth in future. If both are set, --with-match-limit-depth 15642 will be used. See also --with-heap-limit. 15643 15644EOF 15645if test "$with_match_limit_depth" = "MATCH_LIMIT"; then 15646 with_match_limit_depth=$with_match_limit_recursion 15647fi 15648fi 15649 15650 15651printf "%s\n" "#define MATCH_LIMIT_DEPTH $with_match_limit_depth" >>confdefs.h 15652 15653 15654 15655printf "%s\n" "#define HEAP_LIMIT $with_heap_limit" >>confdefs.h 15656 15657 15658 15659printf "%s\n" "#define MAX_NAME_SIZE 32" >>confdefs.h 15660 15661 15662 15663printf "%s\n" "#define MAX_NAME_COUNT 10000" >>confdefs.h 15664 15665 15666 15667 15668if test "$enable_ebcdic" = "yes"; then 15669 15670printf "%s\n" "#define EBCDIC /**/" >>confdefs.h 15671 15672fi 15673 15674if test "$enable_ebcdic_nl25" = "yes"; then 15675 15676printf "%s\n" "#define EBCDIC_NL25 /**/" >>confdefs.h 15677 15678fi 15679 15680if test "$enable_valgrind" = "yes"; then 15681 15682printf "%s\n" "#define SUPPORT_VALGRIND /**/" >>confdefs.h 15683 15684fi 15685 15686# Platform specific issues 15687NO_UNDEFINED= 15688EXPORT_ALL_SYMBOLS= 15689case $host_os in 15690 cygwin* | mingw* ) 15691 if test X"$enable_shared" = Xyes; then 15692 NO_UNDEFINED="-no-undefined" 15693 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols" 15694 fi 15695 ;; 15696esac 15697 15698# The extra LDFLAGS for each particular library. The libpcre2*_version values 15699# are m4 variables, assigned above. 15700 15701EXTRA_LIBPCRE2_8_LDFLAGS="$EXTRA_LIBPCRE2_8_LDFLAGS \ 15702 $NO_UNDEFINED -version-info 11:0:11" 15703 15704EXTRA_LIBPCRE2_16_LDFLAGS="$EXTRA_LIBPCRE2_16_LDFLAGS \ 15705 $NO_UNDEFINED -version-info 11:0:11" 15706 15707EXTRA_LIBPCRE2_32_LDFLAGS="$EXTRA_LIBPCRE2_32_LDFLAGS \ 15708 $NO_UNDEFINED -version-info 11:0:11" 15709 15710EXTRA_LIBPCRE2_POSIX_LDFLAGS="$EXTRA_LIBPCRE2_POSIX_LDFLAGS \ 15711 $NO_UNDEFINED -version-info 3:2:0" 15712 15713 15714 15715 15716 15717 15718# When we run 'make distcheck', use these arguments. Turning off compiler 15719# optimization makes it run faster. 15720DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre2-16 --enable-pcre2-32 --enable-jit" 15721 15722 15723# Check that, if --enable-pcre2grep-libz or --enable-pcre2grep-libbz2 is 15724# specified, the relevant library is available. 15725 15726if test "$enable_pcre2grep_libz" = "yes"; then 15727 if test "$HAVE_ZLIB_H" != "1"; then 15728 echo "** Cannot --enable-pcre2grep-libz because zlib.h was not found" 15729 exit 1 15730 fi 15731 if test "$HAVE_LIBZ" != "1"; then 15732 echo "** Cannot --enable-pcre2grep-libz because libz was not found" 15733 exit 1 15734 fi 15735 LIBZ="-lz" 15736fi 15737 15738 15739if test "$enable_pcre2grep_libbz2" = "yes"; then 15740 if test "$HAVE_BZLIB_H" != "1"; then 15741 echo "** Cannot --enable-pcre2grep-libbz2 because bzlib.h was not found" 15742 exit 1 15743 fi 15744 if test "$HAVE_LIBBZ2" != "1"; then 15745 echo "** Cannot --enable-pcre2grep-libbz2 because libbz2 was not found" 15746 exit 1 15747 fi 15748 LIBBZ2="-lbz2" 15749fi 15750 15751 15752# Similarly for --enable-pcre2test-readline 15753 15754if test "$enable_pcre2test_libedit" = "yes"; then 15755 if test "$enable_pcre2test_libreadline" = "yes"; then 15756 echo "** Cannot use both --enable-pcre2test-libedit and --enable-pcre2test-readline" 15757 exit 1 15758 fi 15759 if test -z "$HAVE_LIBEDIT_HEADER"; then 15760 echo "** Cannot --enable-pcre2test-libedit because neither editline/readline.h," 15761 echo "** edit/readline/readline.h nor a compatible header was found." 15762 exit 1 15763 fi 15764 if test -z "$LIBEDIT"; then 15765 echo "** Cannot --enable-pcre2test-libedit because libedit library was not found." 15766 exit 1 15767 fi 15768fi 15769 15770if test "$enable_pcre2test_libreadline" = "yes"; then 15771 if test "$HAVE_READLINE_H" != "1"; then 15772 echo "** Cannot --enable-pcre2test-readline because readline/readline.h was not found." 15773 exit 1 15774 fi 15775 if test "$HAVE_HISTORY_H" != "1"; then 15776 echo "** Cannot --enable-pcre2test-readline because readline/history.h was not found." 15777 exit 1 15778 fi 15779 if test -z "$LIBREADLINE"; then 15780 echo "** Cannot --enable-pcre2test-readline because readline library was not found." 15781 exit 1 15782 fi 15783fi 15784 15785# Handle valgrind support 15786 15787if test "$enable_valgrind" = "yes"; then 15788 15789 15790 15791 15792 15793 15794 15795if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15796 if test -n "$ac_tool_prefix"; then 15797 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15798set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15800printf %s "checking for $ac_word... " >&6; } 15801if test ${ac_cv_path_PKG_CONFIG+y} 15802then : 15803 printf %s "(cached) " >&6 15804else $as_nop 15805 case $PKG_CONFIG in 15806 [\\/]* | ?:[\\/]*) 15807 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15808 ;; 15809 *) 15810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15811for as_dir in $PATH 15812do 15813 IFS=$as_save_IFS 15814 case $as_dir in #((( 15815 '') as_dir=./ ;; 15816 */) ;; 15817 *) as_dir=$as_dir/ ;; 15818 esac 15819 for ac_exec_ext in '' $ac_executable_extensions; do 15820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15821 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 15822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15823 break 2 15824 fi 15825done 15826 done 15827IFS=$as_save_IFS 15828 15829 ;; 15830esac 15831fi 15832PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15833if test -n "$PKG_CONFIG"; then 15834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15835printf "%s\n" "$PKG_CONFIG" >&6; } 15836else 15837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15838printf "%s\n" "no" >&6; } 15839fi 15840 15841 15842fi 15843if test -z "$ac_cv_path_PKG_CONFIG"; then 15844 ac_pt_PKG_CONFIG=$PKG_CONFIG 15845 # Extract the first word of "pkg-config", so it can be a program name with args. 15846set dummy pkg-config; ac_word=$2 15847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15848printf %s "checking for $ac_word... " >&6; } 15849if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 15850then : 15851 printf %s "(cached) " >&6 15852else $as_nop 15853 case $ac_pt_PKG_CONFIG in 15854 [\\/]* | ?:[\\/]*) 15855 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15856 ;; 15857 *) 15858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15859for as_dir in $PATH 15860do 15861 IFS=$as_save_IFS 15862 case $as_dir in #((( 15863 '') as_dir=./ ;; 15864 */) ;; 15865 *) as_dir=$as_dir/ ;; 15866 esac 15867 for ac_exec_ext in '' $ac_executable_extensions; do 15868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15869 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 15870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15871 break 2 15872 fi 15873done 15874 done 15875IFS=$as_save_IFS 15876 15877 ;; 15878esac 15879fi 15880ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15881if test -n "$ac_pt_PKG_CONFIG"; then 15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15883printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 15884else 15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15886printf "%s\n" "no" >&6; } 15887fi 15888 15889 if test "x$ac_pt_PKG_CONFIG" = x; then 15890 PKG_CONFIG="" 15891 else 15892 case $cross_compiling:$ac_tool_warned in 15893yes:) 15894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15895printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15896ac_tool_warned=yes ;; 15897esac 15898 PKG_CONFIG=$ac_pt_PKG_CONFIG 15899 fi 15900else 15901 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15902fi 15903 15904fi 15905if test -n "$PKG_CONFIG"; then 15906 _pkg_min_version=0.9.0 15907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15908printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15909 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15911printf "%s\n" "yes" >&6; } 15912 else 15913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15914printf "%s\n" "no" >&6; } 15915 PKG_CONFIG="" 15916 fi 15917fi 15918 15919pkg_failed=no 15920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5 15921printf %s "checking for valgrind... " >&6; } 15922 15923if test -n "$VALGRIND_CFLAGS"; then 15924 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" 15925 elif test -n "$PKG_CONFIG"; then 15926 if test -n "$PKG_CONFIG" && \ 15927 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 15928 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 15929 ac_status=$? 15930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15931 test $ac_status = 0; }; then 15932 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null` 15933 test "x$?" != "x0" && pkg_failed=yes 15934else 15935 pkg_failed=yes 15936fi 15937 else 15938 pkg_failed=untried 15939fi 15940if test -n "$VALGRIND_LIBS"; then 15941 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" 15942 elif test -n "$PKG_CONFIG"; then 15943 if test -n "$PKG_CONFIG" && \ 15944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 15945 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 15946 ac_status=$? 15947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15948 test $ac_status = 0; }; then 15949 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null` 15950 test "x$?" != "x0" && pkg_failed=yes 15951else 15952 pkg_failed=yes 15953fi 15954 else 15955 pkg_failed=untried 15956fi 15957 15958 15959 15960if test $pkg_failed = yes; then 15961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15962printf "%s\n" "no" >&6; } 15963 15964if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15965 _pkg_short_errors_supported=yes 15966else 15967 _pkg_short_errors_supported=no 15968fi 15969 if test $_pkg_short_errors_supported = yes; then 15970 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1` 15971 else 15972 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1` 15973 fi 15974 # Put the nasty error message in config.log where it belongs 15975 echo "$VALGRIND_PKG_ERRORS" >&5 15976 15977 as_fn_error $? "Package requirements (valgrind) were not met: 15978 15979$VALGRIND_PKG_ERRORS 15980 15981Consider adjusting the PKG_CONFIG_PATH environment variable if you 15982installed software in a non-standard prefix. 15983 15984Alternatively, you may set the environment variables VALGRIND_CFLAGS 15985and VALGRIND_LIBS to avoid the need to call pkg-config. 15986See the pkg-config man page for more details." "$LINENO" 5 15987elif test $pkg_failed = untried; then 15988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15989printf "%s\n" "no" >&6; } 15990 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15991printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15992as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15993is in your PATH or set the PKG_CONFIG environment variable to the full 15994path to pkg-config. 15995 15996Alternatively, you may set the environment variables VALGRIND_CFLAGS 15997and VALGRIND_LIBS to avoid the need to call pkg-config. 15998See the pkg-config man page for more details. 15999 16000To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16001See \`config.log' for more details" "$LINENO" 5; } 16002else 16003 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS 16004 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS 16005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16006printf "%s\n" "yes" >&6; } 16007 16008fi 16009fi 16010 16011# Handle code coverage reporting support 16012if test "$enable_coverage" = "yes"; then 16013 if test "x$GCC" != "xyes"; then 16014 as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5 16015 fi 16016 16017 # ccache is incompatible with gcov 16018 # Extract the first word of "shtool", so it can be a program name with args. 16019set dummy shtool; ac_word=$2 16020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16021printf %s "checking for $ac_word... " >&6; } 16022if test ${ac_cv_path_SHTOOL+y} 16023then : 16024 printf %s "(cached) " >&6 16025else $as_nop 16026 case $SHTOOL in 16027 [\\/]* | ?:[\\/]*) 16028 ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path. 16029 ;; 16030 *) 16031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16032for as_dir in $PATH 16033do 16034 IFS=$as_save_IFS 16035 case $as_dir in #((( 16036 '') as_dir=./ ;; 16037 */) ;; 16038 *) as_dir=$as_dir/ ;; 16039 esac 16040 for ac_exec_ext in '' $ac_executable_extensions; do 16041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16042 ac_cv_path_SHTOOL="$as_dir$ac_word$ac_exec_ext" 16043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16044 break 2 16045 fi 16046done 16047 done 16048IFS=$as_save_IFS 16049 16050 test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false" 16051 ;; 16052esac 16053fi 16054SHTOOL=$ac_cv_path_SHTOOL 16055if test -n "$SHTOOL"; then 16056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5 16057printf "%s\n" "$SHTOOL" >&6; } 16058else 16059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16060printf "%s\n" "no" >&6; } 16061fi 16062 16063 16064 case `$SHTOOL path $CC` in 16065 *ccache*) cc_ccache=yes;; 16066 *) cc_ccache=no;; 16067 esac 16068 16069 if test "$cc_ccache" = "yes"; then 16070 if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then 16071 as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5 16072 fi 16073 fi 16074 16075 16076 # Extract the first word of "lcov", so it can be a program name with args. 16077set dummy lcov; ac_word=$2 16078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16079printf %s "checking for $ac_word... " >&6; } 16080if test ${ac_cv_path_LCOV+y} 16081then : 16082 printf %s "(cached) " >&6 16083else $as_nop 16084 case $LCOV in 16085 [\\/]* | ?:[\\/]*) 16086 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. 16087 ;; 16088 *) 16089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16090for as_dir in $PATH 16091do 16092 IFS=$as_save_IFS 16093 case $as_dir in #((( 16094 '') as_dir=./ ;; 16095 */) ;; 16096 *) as_dir=$as_dir/ ;; 16097 esac 16098 for ac_exec_ext in '' $ac_executable_extensions; do 16099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16100 ac_cv_path_LCOV="$as_dir$ac_word$ac_exec_ext" 16101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16102 break 2 16103 fi 16104done 16105 done 16106IFS=$as_save_IFS 16107 16108 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false" 16109 ;; 16110esac 16111fi 16112LCOV=$ac_cv_path_LCOV 16113if test -n "$LCOV"; then 16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 16115printf "%s\n" "$LCOV" >&6; } 16116else 16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16118printf "%s\n" "no" >&6; } 16119fi 16120 16121 16122 if test "x$LCOV" = "xfalse"; then 16123 as_fn_error $? "lcov not found" "$LINENO" 5 16124 fi 16125 16126 16127 # Extract the first word of "genhtml", so it can be a program name with args. 16128set dummy genhtml; ac_word=$2 16129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16130printf %s "checking for $ac_word... " >&6; } 16131if test ${ac_cv_path_GENHTML+y} 16132then : 16133 printf %s "(cached) " >&6 16134else $as_nop 16135 case $GENHTML in 16136 [\\/]* | ?:[\\/]*) 16137 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. 16138 ;; 16139 *) 16140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16141for as_dir in $PATH 16142do 16143 IFS=$as_save_IFS 16144 case $as_dir in #((( 16145 '') as_dir=./ ;; 16146 */) ;; 16147 *) as_dir=$as_dir/ ;; 16148 esac 16149 for ac_exec_ext in '' $ac_executable_extensions; do 16150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16151 ac_cv_path_GENHTML="$as_dir$ac_word$ac_exec_ext" 16152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16153 break 2 16154 fi 16155done 16156 done 16157IFS=$as_save_IFS 16158 16159 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false" 16160 ;; 16161esac 16162fi 16163GENHTML=$ac_cv_path_GENHTML 16164if test -n "$GENHTML"; then 16165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 16166printf "%s\n" "$GENHTML" >&6; } 16167else 16168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16169printf "%s\n" "no" >&6; } 16170fi 16171 16172 16173 if test "x$GENHTML" = "xfalse"; then 16174 as_fn_error $? "genhtml not found" "$LINENO" 5 16175 fi 16176 16177 # Set flags needed for gcov 16178 GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage" 16179 GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage" 16180 GCOV_LIBS="-lgcov" 16181 16182 16183 16184fi # enable_coverage 16185 16186 if test "x$enable_coverage" = "xyes"; then 16187 WITH_GCOV_TRUE= 16188 WITH_GCOV_FALSE='#' 16189else 16190 WITH_GCOV_TRUE='#' 16191 WITH_GCOV_FALSE= 16192fi 16193 16194 16195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Intel CET is enabled" >&5 16196printf %s "checking whether Intel CET is enabled... " >&6; } 16197ac_ext=c 16198ac_cpp='$CPP $CPPFLAGS' 16199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16201ac_compiler_gnu=$ac_cv_c_compiler_gnu 16202 16203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16204/* end confdefs.h. */ 16205 16206int 16207main (void) 16208{ 16209#ifndef __CET__ 16210# error CET is not enabled 16211#endif 16212 ; 16213 return 0; 16214} 16215_ACEOF 16216if ac_fn_c_try_compile "$LINENO" 16217then : 16218 pcre2_cc_cv_intel_cet_enabled=yes 16219else $as_nop 16220 pcre2_cc_cv_intel_cet_enabled=no 16221fi 16222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_intel_cet_enabled" >&5 16224printf "%s\n" "$pcre2_cc_cv_intel_cet_enabled" >&6; } 16225if test "$pcre2_cc_cv_intel_cet_enabled" = yes; then 16226 CET_CFLAGS="-mshstk" 16227 16228fi 16229ac_ext=c 16230ac_cpp='$CPP $CPPFLAGS' 16231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16233ac_compiler_gnu=$ac_cv_c_compiler_gnu 16234 16235 16236# LIB_POSTFIX is used by CMakeLists.txt for Windows debug builds. 16237# Pass empty LIB_POSTFIX to *.pc files and pcre2-config here. 16238 16239 16240# Produce these files, in addition to config.h. 16241 16242ac_config_files="$ac_config_files Makefile libpcre2-8.pc libpcre2-16.pc libpcre2-32.pc libpcre2-posix.pc pcre2-config src/pcre2.h" 16243 16244 16245# Make the generated script files executable. 16246ac_config_commands="$ac_config_commands script-chmod" 16247 16248 16249# Make sure that pcre2_chartables.c is removed in case the method for 16250# creating it was changed by reconfiguration. 16251ac_config_commands="$ac_config_commands delete-old-chartables" 16252 16253 16254cat >confcache <<\_ACEOF 16255# This file is a shell script that caches the results of configure 16256# tests run on this system so they can be shared between configure 16257# scripts and configure runs, see configure's option --config-cache. 16258# It is not useful on other systems. If it contains results you don't 16259# want to keep, you may remove or edit it. 16260# 16261# config.status only pays attention to the cache file if you give it 16262# the --recheck option to rerun configure. 16263# 16264# `ac_cv_env_foo' variables (set or unset) will be overridden when 16265# loading this file, other *unset* `ac_cv_foo' will be assigned the 16266# following values. 16267 16268_ACEOF 16269 16270# The following way of writing the cache mishandles newlines in values, 16271# but we know of no workaround that is simple, portable, and efficient. 16272# So, we kill variables containing newlines. 16273# Ultrix sh set writes to stderr and can't be redirected directly, 16274# and sets the high bit in the cache file unless we assign to the vars. 16275( 16276 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16277 eval ac_val=\$$ac_var 16278 case $ac_val in #( 16279 *${as_nl}*) 16280 case $ac_var in #( 16281 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16282printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16283 esac 16284 case $ac_var in #( 16285 _ | IFS | as_nl) ;; #( 16286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16287 *) { eval $ac_var=; unset $ac_var;} ;; 16288 esac ;; 16289 esac 16290 done 16291 16292 (set) 2>&1 | 16293 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16294 *${as_nl}ac_space=\ *) 16295 # `set' does not quote correctly, so add quotes: double-quote 16296 # substitution turns \\\\ into \\, and sed turns \\ into \. 16297 sed -n \ 16298 "s/'/'\\\\''/g; 16299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16300 ;; #( 16301 *) 16302 # `set' quotes correctly as required by POSIX, so do not add quotes. 16303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16304 ;; 16305 esac | 16306 sort 16307) | 16308 sed ' 16309 /^ac_cv_env_/b end 16310 t clear 16311 :clear 16312 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 16313 t end 16314 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16315 :end' >>confcache 16316if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16317 if test -w "$cache_file"; then 16318 if test "x$cache_file" != "x/dev/null"; then 16319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16320printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 16321 if test ! -f "$cache_file" || test -h "$cache_file"; then 16322 cat confcache >"$cache_file" 16323 else 16324 case $cache_file in #( 16325 */* | ?:*) 16326 mv -f confcache "$cache_file"$$ && 16327 mv -f "$cache_file"$$ "$cache_file" ;; #( 16328 *) 16329 mv -f confcache "$cache_file" ;; 16330 esac 16331 fi 16332 fi 16333 else 16334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16335printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 16336 fi 16337fi 16338rm -f confcache 16339 16340test "x$prefix" = xNONE && prefix=$ac_default_prefix 16341# Let make expand exec_prefix. 16342test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16343 16344DEFS=-DHAVE_CONFIG_H 16345 16346ac_libobjs= 16347ac_ltlibobjs= 16348U= 16349for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16350 # 1. Remove the extension, and $U if already installed. 16351 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16352 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 16353 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16354 # will be set to the directory where LIBOBJS objects are built. 16355 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16356 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16357done 16358LIBOBJS=$ac_libobjs 16359 16360LTLIBOBJS=$ac_ltlibobjs 16361 16362 16363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16364printf %s "checking that generated files are newer than configure... " >&6; } 16365 if test -n "$am_sleep_pid"; then 16366 # Hide warnings about reused PIDs. 16367 wait $am_sleep_pid 2>/dev/null 16368 fi 16369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 16370printf "%s\n" "done" >&6; } 16371 if test -n "$EXEEXT"; then 16372 am__EXEEXT_TRUE= 16373 am__EXEEXT_FALSE='#' 16374else 16375 am__EXEEXT_TRUE='#' 16376 am__EXEEXT_FALSE= 16377fi 16378 16379if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16380 as_fn_error $? "conditional \"AMDEP\" was never defined. 16381Usually this means the macro was only invoked conditionally." "$LINENO" 5 16382fi 16383if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16384 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16385Usually this means the macro was only invoked conditionally." "$LINENO" 5 16386fi 16387if test -z "${WITH_PCRE2_8_TRUE}" && test -z "${WITH_PCRE2_8_FALSE}"; then 16388 as_fn_error $? "conditional \"WITH_PCRE2_8\" was never defined. 16389Usually this means the macro was only invoked conditionally." "$LINENO" 5 16390fi 16391if test -z "${WITH_PCRE2_16_TRUE}" && test -z "${WITH_PCRE2_16_FALSE}"; then 16392 as_fn_error $? "conditional \"WITH_PCRE2_16\" was never defined. 16393Usually this means the macro was only invoked conditionally." "$LINENO" 5 16394fi 16395if test -z "${WITH_PCRE2_32_TRUE}" && test -z "${WITH_PCRE2_32_FALSE}"; then 16396 as_fn_error $? "conditional \"WITH_PCRE2_32\" was never defined. 16397Usually this means the macro was only invoked conditionally." "$LINENO" 5 16398fi 16399if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then 16400 as_fn_error $? "conditional \"WITH_DEBUG\" was never defined. 16401Usually this means the macro was only invoked conditionally." "$LINENO" 5 16402fi 16403if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then 16404 as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined. 16405Usually this means the macro was only invoked conditionally." "$LINENO" 5 16406fi 16407if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then 16408 as_fn_error $? "conditional \"WITH_JIT\" was never defined. 16409Usually this means the macro was only invoked conditionally." "$LINENO" 5 16410fi 16411if test -z "${WITH_UNICODE_TRUE}" && test -z "${WITH_UNICODE_FALSE}"; then 16412 as_fn_error $? "conditional \"WITH_UNICODE\" was never defined. 16413Usually this means the macro was only invoked conditionally." "$LINENO" 5 16414fi 16415if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then 16416 as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined. 16417Usually this means the macro was only invoked conditionally." "$LINENO" 5 16418fi 16419if test -z "${WITH_FUZZ_SUPPORT_TRUE}" && test -z "${WITH_FUZZ_SUPPORT_FALSE}"; then 16420 as_fn_error $? "conditional \"WITH_FUZZ_SUPPORT\" was never defined. 16421Usually this means the macro was only invoked conditionally." "$LINENO" 5 16422fi 16423if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then 16424 as_fn_error $? "conditional \"WITH_GCOV\" was never defined. 16425Usually this means the macro was only invoked conditionally." "$LINENO" 5 16426fi 16427 16428: "${CONFIG_STATUS=./config.status}" 16429ac_write_fail=0 16430ac_clean_files_save=$ac_clean_files 16431ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16433printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 16434as_write_fail=0 16435cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16436#! $SHELL 16437# Generated by $as_me. 16438# Run this file to recreate the current configuration. 16439# Compiler output produced by configure, useful for debugging 16440# configure, is in config.log if it exists. 16441 16442debug=false 16443ac_cs_recheck=false 16444ac_cs_silent=false 16445 16446SHELL=\${CONFIG_SHELL-$SHELL} 16447export SHELL 16448_ASEOF 16449cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16450## -------------------- ## 16451## M4sh Initialization. ## 16452## -------------------- ## 16453 16454# Be more Bourne compatible 16455DUALCASE=1; export DUALCASE # for MKS sh 16456as_nop=: 16457if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 16458then : 16459 emulate sh 16460 NULLCMD=: 16461 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16462 # is contrary to our usage. Disable this feature. 16463 alias -g '${1+"$@"}'='"$@"' 16464 setopt NO_GLOB_SUBST 16465else $as_nop 16466 case `(set -o) 2>/dev/null` in #( 16467 *posix*) : 16468 set -o posix ;; #( 16469 *) : 16470 ;; 16471esac 16472fi 16473 16474 16475 16476# Reset variables that may have inherited troublesome values from 16477# the environment. 16478 16479# IFS needs to be set, to space, tab, and newline, in precisely that order. 16480# (If _AS_PATH_WALK were called with IFS unset, it would have the 16481# side effect of setting IFS to empty, thus disabling word splitting.) 16482# Quoting is to prevent editors from complaining about space-tab. 16483as_nl=' 16484' 16485export as_nl 16486IFS=" "" $as_nl" 16487 16488PS1='$ ' 16489PS2='> ' 16490PS4='+ ' 16491 16492# Ensure predictable behavior from utilities with locale-dependent output. 16493LC_ALL=C 16494export LC_ALL 16495LANGUAGE=C 16496export LANGUAGE 16497 16498# We cannot yet rely on "unset" to work, but we need these variables 16499# to be unset--not just set to an empty or harmless value--now, to 16500# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 16501# also avoids known problems related to "unset" and subshell syntax 16502# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 16503for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 16504do eval test \${$as_var+y} \ 16505 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16506done 16507 16508# Ensure that fds 0, 1, and 2 are open. 16509if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 16510if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 16511if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 16512 16513# The user is always right. 16514if ${PATH_SEPARATOR+false} :; then 16515 PATH_SEPARATOR=: 16516 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16517 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16518 PATH_SEPARATOR=';' 16519 } 16520fi 16521 16522 16523# Find who we are. Look in the path if we contain no directory separator. 16524as_myself= 16525case $0 in #(( 16526 *[\\/]* ) as_myself=$0 ;; 16527 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16528for as_dir in $PATH 16529do 16530 IFS=$as_save_IFS 16531 case $as_dir in #((( 16532 '') as_dir=./ ;; 16533 */) ;; 16534 *) as_dir=$as_dir/ ;; 16535 esac 16536 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 16537 done 16538IFS=$as_save_IFS 16539 16540 ;; 16541esac 16542# We did not find ourselves, most probably we were run as `sh COMMAND' 16543# in which case we are not to be found in the path. 16544if test "x$as_myself" = x; then 16545 as_myself=$0 16546fi 16547if test ! -f "$as_myself"; then 16548 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16549 exit 1 16550fi 16551 16552 16553 16554# as_fn_error STATUS ERROR [LINENO LOG_FD] 16555# ---------------------------------------- 16556# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16557# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16558# script with STATUS, using 1 if that was 0. 16559as_fn_error () 16560{ 16561 as_status=$1; test $as_status -eq 0 && as_status=1 16562 if test "$4"; then 16563 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16565 fi 16566 printf "%s\n" "$as_me: error: $2" >&2 16567 as_fn_exit $as_status 16568} # as_fn_error 16569 16570 16571 16572# as_fn_set_status STATUS 16573# ----------------------- 16574# Set $? to STATUS, without forking. 16575as_fn_set_status () 16576{ 16577 return $1 16578} # as_fn_set_status 16579 16580# as_fn_exit STATUS 16581# ----------------- 16582# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16583as_fn_exit () 16584{ 16585 set +e 16586 as_fn_set_status $1 16587 exit $1 16588} # as_fn_exit 16589 16590# as_fn_unset VAR 16591# --------------- 16592# Portably unset VAR. 16593as_fn_unset () 16594{ 16595 { eval $1=; unset $1;} 16596} 16597as_unset=as_fn_unset 16598 16599# as_fn_append VAR VALUE 16600# ---------------------- 16601# Append the text in VALUE to the end of the definition contained in VAR. Take 16602# advantage of any shell optimizations that allow amortized linear growth over 16603# repeated appends, instead of the typical quadratic growth present in naive 16604# implementations. 16605if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 16606then : 16607 eval 'as_fn_append () 16608 { 16609 eval $1+=\$2 16610 }' 16611else $as_nop 16612 as_fn_append () 16613 { 16614 eval $1=\$$1\$2 16615 } 16616fi # as_fn_append 16617 16618# as_fn_arith ARG... 16619# ------------------ 16620# Perform arithmetic evaluation on the ARGs, and store the result in the 16621# global $as_val. Take advantage of shells that can avoid forks. The arguments 16622# must be portable across $(()) and expr. 16623if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 16624then : 16625 eval 'as_fn_arith () 16626 { 16627 as_val=$(( $* )) 16628 }' 16629else $as_nop 16630 as_fn_arith () 16631 { 16632 as_val=`expr "$@" || test $? -eq 1` 16633 } 16634fi # as_fn_arith 16635 16636 16637if expr a : '\(a\)' >/dev/null 2>&1 && 16638 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16639 as_expr=expr 16640else 16641 as_expr=false 16642fi 16643 16644if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16645 as_basename=basename 16646else 16647 as_basename=false 16648fi 16649 16650if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16651 as_dirname=dirname 16652else 16653 as_dirname=false 16654fi 16655 16656as_me=`$as_basename -- "$0" || 16657$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16658 X"$0" : 'X\(//\)$' \| \ 16659 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16660printf "%s\n" X/"$0" | 16661 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16662 s//\1/ 16663 q 16664 } 16665 /^X\/\(\/\/\)$/{ 16666 s//\1/ 16667 q 16668 } 16669 /^X\/\(\/\).*/{ 16670 s//\1/ 16671 q 16672 } 16673 s/.*/./; q'` 16674 16675# Avoid depending upon Character Ranges. 16676as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16677as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16678as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16679as_cr_digits='0123456789' 16680as_cr_alnum=$as_cr_Letters$as_cr_digits 16681 16682 16683# Determine whether it's possible to make 'echo' print without a newline. 16684# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 16685# for compatibility with existing Makefiles. 16686ECHO_C= ECHO_N= ECHO_T= 16687case `echo -n x` in #((((( 16688-n*) 16689 case `echo 'xy\c'` in 16690 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16691 xy) ECHO_C='\c';; 16692 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16693 ECHO_T=' ';; 16694 esac;; 16695*) 16696 ECHO_N='-n';; 16697esac 16698 16699# For backward compatibility with old third-party macros, we provide 16700# the shell variables $as_echo and $as_echo_n. New code should use 16701# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 16702as_echo='printf %s\n' 16703as_echo_n='printf %s' 16704 16705rm -f conf$$ conf$$.exe conf$$.file 16706if test -d conf$$.dir; then 16707 rm -f conf$$.dir/conf$$.file 16708else 16709 rm -f conf$$.dir 16710 mkdir conf$$.dir 2>/dev/null 16711fi 16712if (echo >conf$$.file) 2>/dev/null; then 16713 if ln -s conf$$.file conf$$ 2>/dev/null; then 16714 as_ln_s='ln -s' 16715 # ... but there are two gotchas: 16716 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16717 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16718 # In both cases, we have to default to `cp -pR'. 16719 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16720 as_ln_s='cp -pR' 16721 elif ln conf$$.file conf$$ 2>/dev/null; then 16722 as_ln_s=ln 16723 else 16724 as_ln_s='cp -pR' 16725 fi 16726else 16727 as_ln_s='cp -pR' 16728fi 16729rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16730rmdir conf$$.dir 2>/dev/null 16731 16732 16733# as_fn_mkdir_p 16734# ------------- 16735# Create "$as_dir" as a directory, including parents if necessary. 16736as_fn_mkdir_p () 16737{ 16738 16739 case $as_dir in #( 16740 -*) as_dir=./$as_dir;; 16741 esac 16742 test -d "$as_dir" || eval $as_mkdir_p || { 16743 as_dirs= 16744 while :; do 16745 case $as_dir in #( 16746 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16747 *) as_qdir=$as_dir;; 16748 esac 16749 as_dirs="'$as_qdir' $as_dirs" 16750 as_dir=`$as_dirname -- "$as_dir" || 16751$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16752 X"$as_dir" : 'X\(//\)[^/]' \| \ 16753 X"$as_dir" : 'X\(//\)$' \| \ 16754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16755printf "%s\n" X"$as_dir" | 16756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16757 s//\1/ 16758 q 16759 } 16760 /^X\(\/\/\)[^/].*/{ 16761 s//\1/ 16762 q 16763 } 16764 /^X\(\/\/\)$/{ 16765 s//\1/ 16766 q 16767 } 16768 /^X\(\/\).*/{ 16769 s//\1/ 16770 q 16771 } 16772 s/.*/./; q'` 16773 test -d "$as_dir" && break 16774 done 16775 test -z "$as_dirs" || eval "mkdir $as_dirs" 16776 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16777 16778 16779} # as_fn_mkdir_p 16780if mkdir -p . 2>/dev/null; then 16781 as_mkdir_p='mkdir -p "$as_dir"' 16782else 16783 test -d ./-p && rmdir ./-p 16784 as_mkdir_p=false 16785fi 16786 16787 16788# as_fn_executable_p FILE 16789# ----------------------- 16790# Test if FILE is an executable regular file. 16791as_fn_executable_p () 16792{ 16793 test -f "$1" && test -x "$1" 16794} # as_fn_executable_p 16795as_test_x='test -x' 16796as_executable_p=as_fn_executable_p 16797 16798# Sed expression to map a string onto a valid CPP name. 16799as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16800 16801# Sed expression to map a string onto a valid variable name. 16802as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16803 16804 16805exec 6>&1 16806## ----------------------------------- ## 16807## Main body of $CONFIG_STATUS script. ## 16808## ----------------------------------- ## 16809_ASEOF 16810test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16811 16812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16813# Save the log message, to keep $0 and so on meaningful, and to 16814# report actual input values of CONFIG_FILES etc. instead of their 16815# values after options handling. 16816ac_log=" 16817This file was extended by PCRE2 $as_me 10.40, which was 16818generated by GNU Autoconf 2.71. Invocation command line was 16819 16820 CONFIG_FILES = $CONFIG_FILES 16821 CONFIG_HEADERS = $CONFIG_HEADERS 16822 CONFIG_LINKS = $CONFIG_LINKS 16823 CONFIG_COMMANDS = $CONFIG_COMMANDS 16824 $ $0 $@ 16825 16826on `(hostname || uname -n) 2>/dev/null | sed 1q` 16827" 16828 16829_ACEOF 16830 16831case $ac_config_files in *" 16832"*) set x $ac_config_files; shift; ac_config_files=$*;; 16833esac 16834 16835case $ac_config_headers in *" 16836"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16837esac 16838 16839 16840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16841# Files that config.status was made for. 16842config_files="$ac_config_files" 16843config_headers="$ac_config_headers" 16844config_commands="$ac_config_commands" 16845 16846_ACEOF 16847 16848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16849ac_cs_usage="\ 16850\`$as_me' instantiates files and other configuration actions 16851from templates according to the current configuration. Unless the files 16852and actions are specified as TAGs, all are instantiated by default. 16853 16854Usage: $0 [OPTION]... [TAG]... 16855 16856 -h, --help print this help, then exit 16857 -V, --version print version number and configuration settings, then exit 16858 --config print configuration, then exit 16859 -q, --quiet, --silent 16860 do not print progress messages 16861 -d, --debug don't remove temporary files 16862 --recheck update $as_me by reconfiguring in the same conditions 16863 --file=FILE[:TEMPLATE] 16864 instantiate the configuration file FILE 16865 --header=FILE[:TEMPLATE] 16866 instantiate the configuration header FILE 16867 16868Configuration files: 16869$config_files 16870 16871Configuration headers: 16872$config_headers 16873 16874Configuration commands: 16875$config_commands 16876 16877Report bugs to the package provider." 16878 16879_ACEOF 16880ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 16881ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 16882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16883ac_cs_config='$ac_cs_config_escaped' 16884ac_cs_version="\\ 16885PCRE2 config.status 10.40 16886configured by $0, generated by GNU Autoconf 2.71, 16887 with options \\"\$ac_cs_config\\" 16888 16889Copyright (C) 2021 Free Software Foundation, Inc. 16890This config.status script is free software; the Free Software Foundation 16891gives unlimited permission to copy, distribute and modify it." 16892 16893ac_pwd='$ac_pwd' 16894srcdir='$srcdir' 16895INSTALL='$INSTALL' 16896MKDIR_P='$MKDIR_P' 16897AWK='$AWK' 16898test -n "\$AWK" || AWK=awk 16899_ACEOF 16900 16901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16902# The default lists apply if the user does not specify any file. 16903ac_need_defaults=: 16904while test $# != 0 16905do 16906 case $1 in 16907 --*=?*) 16908 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16909 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16910 ac_shift=: 16911 ;; 16912 --*=) 16913 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16914 ac_optarg= 16915 ac_shift=: 16916 ;; 16917 *) 16918 ac_option=$1 16919 ac_optarg=$2 16920 ac_shift=shift 16921 ;; 16922 esac 16923 16924 case $ac_option in 16925 # Handling of the options. 16926 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16927 ac_cs_recheck=: ;; 16928 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16929 printf "%s\n" "$ac_cs_version"; exit ;; 16930 --config | --confi | --conf | --con | --co | --c ) 16931 printf "%s\n" "$ac_cs_config"; exit ;; 16932 --debug | --debu | --deb | --de | --d | -d ) 16933 debug=: ;; 16934 --file | --fil | --fi | --f ) 16935 $ac_shift 16936 case $ac_optarg in 16937 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16938 '') as_fn_error $? "missing file argument" ;; 16939 esac 16940 as_fn_append CONFIG_FILES " '$ac_optarg'" 16941 ac_need_defaults=false;; 16942 --header | --heade | --head | --hea ) 16943 $ac_shift 16944 case $ac_optarg in 16945 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16946 esac 16947 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16948 ac_need_defaults=false;; 16949 --he | --h) 16950 # Conflict between --help and --header 16951 as_fn_error $? "ambiguous option: \`$1' 16952Try \`$0 --help' for more information.";; 16953 --help | --hel | -h ) 16954 printf "%s\n" "$ac_cs_usage"; exit ;; 16955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16956 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16957 ac_cs_silent=: ;; 16958 16959 # This is an error. 16960 -*) as_fn_error $? "unrecognized option: \`$1' 16961Try \`$0 --help' for more information." ;; 16962 16963 *) as_fn_append ac_config_targets " $1" 16964 ac_need_defaults=false ;; 16965 16966 esac 16967 shift 16968done 16969 16970ac_configure_extra_args= 16971 16972if $ac_cs_silent; then 16973 exec 6>/dev/null 16974 ac_configure_extra_args="$ac_configure_extra_args --silent" 16975fi 16976 16977_ACEOF 16978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16979if \$ac_cs_recheck; then 16980 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16981 shift 16982 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 16983 CONFIG_SHELL='$SHELL' 16984 export CONFIG_SHELL 16985 exec "\$@" 16986fi 16987 16988_ACEOF 16989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16990exec 5>>config.log 16991{ 16992 echo 16993 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16994## Running $as_me. ## 16995_ASBOX 16996 printf "%s\n" "$ac_log" 16997} >&5 16998 16999_ACEOF 17000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17001# 17002# INIT-COMMANDS 17003# 17004AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17005 17006 17007# The HP-UX ksh and POSIX shell print the target directory to stdout 17008# if CDPATH is set. 17009(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17010 17011sed_quote_subst='$sed_quote_subst' 17012double_quote_subst='$double_quote_subst' 17013delay_variable_subst='$delay_variable_subst' 17014macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17015macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17016AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17017DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17018OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17019enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17020enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17021pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17022enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17023shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17024SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17025ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17026PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17027host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17028host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17029host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17030build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17031build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17032build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17033SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17034Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17035GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17036EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17037FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17038LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17039NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17040LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17041max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17042ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17043exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17044lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17045lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17046lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17047lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17048lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17049reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17050reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17051FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 17052deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17053file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17054file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17055want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17056sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17057AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17058lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 17059AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17060archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17061STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17062RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17063old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17064old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17065old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17066lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17067CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17068CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17069compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17070GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17071lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17072lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17073lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17074lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17075lt_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"`' 17076lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17077nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17078lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17079lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17080objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17081MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17082lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17083lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17084lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17085lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17086lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17087need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17088MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17089DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17090NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17091LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17092OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17093OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17094libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17095shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17096extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17097archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17098enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17099export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17100whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17101compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17102old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17103old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17104archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17105archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17106module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17107module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17108with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17109allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17110no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17111hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17112hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17113hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17114hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17115hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17116hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17117hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17118inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17119link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17120always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17121export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17122exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17123include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17124prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17125postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17126file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17127variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17128need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17129need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17130version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17131runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17132shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17133shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17134libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17135library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17136soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17137install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17138postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17139postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17140finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17141finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17142hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17143sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17144configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17145configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17146hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17147enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17148enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17149enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17150old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17151striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17152 17153LTCC='$LTCC' 17154LTCFLAGS='$LTCFLAGS' 17155compiler='$compiler_DEFAULT' 17156 17157# A function that is used when there is no print builtin or printf. 17158func_fallback_echo () 17159{ 17160 eval 'cat <<_LTECHO_EOF 17161\$1 17162_LTECHO_EOF' 17163} 17164 17165# Quote evaled strings. 17166for var in AS \ 17167DLLTOOL \ 17168OBJDUMP \ 17169SHELL \ 17170ECHO \ 17171PATH_SEPARATOR \ 17172SED \ 17173GREP \ 17174EGREP \ 17175FGREP \ 17176LD \ 17177NM \ 17178LN_S \ 17179lt_SP2NL \ 17180lt_NL2SP \ 17181reload_flag \ 17182FILECMD \ 17183deplibs_check_method \ 17184file_magic_cmd \ 17185file_magic_glob \ 17186want_nocaseglob \ 17187sharedlib_from_linklib_cmd \ 17188AR \ 17189archiver_list_spec \ 17190STRIP \ 17191RANLIB \ 17192CC \ 17193CFLAGS \ 17194compiler \ 17195lt_cv_sys_global_symbol_pipe \ 17196lt_cv_sys_global_symbol_to_cdecl \ 17197lt_cv_sys_global_symbol_to_import \ 17198lt_cv_sys_global_symbol_to_c_name_address \ 17199lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17200lt_cv_nm_interface \ 17201nm_file_list_spec \ 17202lt_cv_truncate_bin \ 17203lt_prog_compiler_no_builtin_flag \ 17204lt_prog_compiler_pic \ 17205lt_prog_compiler_wl \ 17206lt_prog_compiler_static \ 17207lt_cv_prog_compiler_c_o \ 17208need_locks \ 17209MANIFEST_TOOL \ 17210DSYMUTIL \ 17211NMEDIT \ 17212LIPO \ 17213OTOOL \ 17214OTOOL64 \ 17215shrext_cmds \ 17216export_dynamic_flag_spec \ 17217whole_archive_flag_spec \ 17218compiler_needs_object \ 17219with_gnu_ld \ 17220allow_undefined_flag \ 17221no_undefined_flag \ 17222hardcode_libdir_flag_spec \ 17223hardcode_libdir_separator \ 17224exclude_expsyms \ 17225include_expsyms \ 17226file_list_spec \ 17227variables_saved_for_relink \ 17228libname_spec \ 17229library_names_spec \ 17230soname_spec \ 17231install_override_mode \ 17232finish_eval \ 17233old_striplib \ 17234striplib; do 17235 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17236 *[\\\\\\\`\\"\\\$]*) 17237 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17238 ;; 17239 *) 17240 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17241 ;; 17242 esac 17243done 17244 17245# Double-quote double-evaled strings. 17246for var in reload_cmds \ 17247old_postinstall_cmds \ 17248old_postuninstall_cmds \ 17249old_archive_cmds \ 17250extract_expsyms_cmds \ 17251old_archive_from_new_cmds \ 17252old_archive_from_expsyms_cmds \ 17253archive_cmds \ 17254archive_expsym_cmds \ 17255module_cmds \ 17256module_expsym_cmds \ 17257export_symbols_cmds \ 17258prelink_cmds \ 17259postlink_cmds \ 17260postinstall_cmds \ 17261postuninstall_cmds \ 17262finish_cmds \ 17263sys_lib_search_path_spec \ 17264configure_time_dlsearch_path \ 17265configure_time_lt_sys_library_path; do 17266 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17267 *[\\\\\\\`\\"\\\$]*) 17268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17269 ;; 17270 *) 17271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17272 ;; 17273 esac 17274done 17275 17276ac_aux_dir='$ac_aux_dir' 17277 17278# See if we are running on zsh, and set the options that allow our 17279# commands through without removal of \ escapes INIT. 17280if test -n "\${ZSH_VERSION+set}"; then 17281 setopt NO_GLOB_SUBST 17282fi 17283 17284 17285 PACKAGE='$PACKAGE' 17286 VERSION='$VERSION' 17287 RM='$RM' 17288 ofile='$ofile' 17289 17290 17291 17292 17293_ACEOF 17294 17295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17296 17297# Handling of arguments. 17298for ac_config_target in $ac_config_targets 17299do 17300 case $ac_config_target in 17301 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 17302 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17303 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17304 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17305 "libpcre2-8.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-8.pc" ;; 17306 "libpcre2-16.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-16.pc" ;; 17307 "libpcre2-32.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-32.pc" ;; 17308 "libpcre2-posix.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-posix.pc" ;; 17309 "pcre2-config") CONFIG_FILES="$CONFIG_FILES pcre2-config" ;; 17310 "src/pcre2.h") CONFIG_FILES="$CONFIG_FILES src/pcre2.h" ;; 17311 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;; 17312 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;; 17313 17314 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17315 esac 17316done 17317 17318 17319# If the user did not use the arguments to specify the items to instantiate, 17320# then the envvar interface is used. Set only those that are not. 17321# We use the long form for the default assignment because of an extremely 17322# bizarre bug on SunOS 4.1.3. 17323if $ac_need_defaults; then 17324 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 17325 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 17326 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 17327fi 17328 17329# Have a temporary directory for convenience. Make it in the build tree 17330# simply because there is no reason against having it here, and in addition, 17331# creating and moving files from /tmp can sometimes cause problems. 17332# Hook for its removal unless debugging. 17333# Note that there is a small window in which the directory will not be cleaned: 17334# after its creation but before its name has been assigned to `$tmp'. 17335$debug || 17336{ 17337 tmp= ac_tmp= 17338 trap 'exit_status=$? 17339 : "${ac_tmp:=$tmp}" 17340 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17341' 0 17342 trap 'as_fn_exit 1' 1 2 13 15 17343} 17344# Create a (secure) tmp directory for tmp files. 17345 17346{ 17347 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17348 test -d "$tmp" 17349} || 17350{ 17351 tmp=./conf$$-$RANDOM 17352 (umask 077 && mkdir "$tmp") 17353} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17354ac_tmp=$tmp 17355 17356# Set up the scripts for CONFIG_FILES section. 17357# No need to generate them if there are no CONFIG_FILES. 17358# This happens for instance with `./config.status config.h'. 17359if test -n "$CONFIG_FILES"; then 17360 17361 17362ac_cr=`echo X | tr X '\015'` 17363# On cygwin, bash can eat \r inside `` if the user requested igncr. 17364# But we know of no other shell where ac_cr would be empty at this 17365# point, so we can use a bashism as a fallback. 17366if test "x$ac_cr" = x; then 17367 eval ac_cr=\$\'\\r\' 17368fi 17369ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17370if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17371 ac_cs_awk_cr='\\r' 17372else 17373 ac_cs_awk_cr=$ac_cr 17374fi 17375 17376echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17377_ACEOF 17378 17379 17380{ 17381 echo "cat >conf$$subs.awk <<_ACEOF" && 17382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17383 echo "_ACEOF" 17384} >conf$$subs.sh || 17385 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17386ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17387ac_delim='%!_!# ' 17388for ac_last_try in false false false false false :; do 17389 . ./conf$$subs.sh || 17390 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17391 17392 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17393 if test $ac_delim_n = $ac_delim_num; then 17394 break 17395 elif $ac_last_try; then 17396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17397 else 17398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17399 fi 17400done 17401rm -f conf$$subs.sh 17402 17403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17404cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17405_ACEOF 17406sed -n ' 17407h 17408s/^/S["/; s/!.*/"]=/ 17409p 17410g 17411s/^[^!]*!// 17412:repl 17413t repl 17414s/'"$ac_delim"'$// 17415t delim 17416:nl 17417h 17418s/\(.\{148\}\)..*/\1/ 17419t more1 17420s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17421p 17422n 17423b repl 17424:more1 17425s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17426p 17427g 17428s/.\{148\}// 17429t nl 17430:delim 17431h 17432s/\(.\{148\}\)..*/\1/ 17433t more2 17434s/["\\]/\\&/g; s/^/"/; s/$/"/ 17435p 17436b 17437:more2 17438s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17439p 17440g 17441s/.\{148\}// 17442t delim 17443' <conf$$subs.awk | sed ' 17444/^[^""]/{ 17445 N 17446 s/\n// 17447} 17448' >>$CONFIG_STATUS || ac_write_fail=1 17449rm -f conf$$subs.awk 17450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17451_ACAWK 17452cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17453 for (key in S) S_is_set[key] = 1 17454 FS = "" 17455 17456} 17457{ 17458 line = $ 0 17459 nfields = split(line, field, "@") 17460 substed = 0 17461 len = length(field[1]) 17462 for (i = 2; i < nfields; i++) { 17463 key = field[i] 17464 keylen = length(key) 17465 if (S_is_set[key]) { 17466 value = S[key] 17467 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17468 len += length(value) + length(field[++i]) 17469 substed = 1 17470 } else 17471 len += 1 + keylen 17472 } 17473 17474 print line 17475} 17476 17477_ACAWK 17478_ACEOF 17479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17480if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17481 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17482else 17483 cat 17484fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17485 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17486_ACEOF 17487 17488# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17489# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17490# trailing colons and then remove the whole line if VPATH becomes empty 17491# (actually we leave an empty line to preserve line numbers). 17492if test "x$srcdir" = x.; then 17493 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17494h 17495s/// 17496s/^/:/ 17497s/[ ]*$/:/ 17498s/:\$(srcdir):/:/g 17499s/:\${srcdir}:/:/g 17500s/:@srcdir@:/:/g 17501s/^:*// 17502s/:*$// 17503x 17504s/\(=[ ]*\).*/\1/ 17505G 17506s/\n// 17507s/^[^=]*=[ ]*$// 17508}' 17509fi 17510 17511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17512fi # test -n "$CONFIG_FILES" 17513 17514# Set up the scripts for CONFIG_HEADERS section. 17515# No need to generate them if there are no CONFIG_HEADERS. 17516# This happens for instance with `./config.status Makefile'. 17517if test -n "$CONFIG_HEADERS"; then 17518cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17519BEGIN { 17520_ACEOF 17521 17522# Transform confdefs.h into an awk script `defines.awk', embedded as 17523# here-document in config.status, that substitutes the proper values into 17524# config.h.in to produce config.h. 17525 17526# Create a delimiter string that does not exist in confdefs.h, to ease 17527# handling of long lines. 17528ac_delim='%!_!# ' 17529for ac_last_try in false false :; do 17530 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17531 if test -z "$ac_tt"; then 17532 break 17533 elif $ac_last_try; then 17534 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17535 else 17536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17537 fi 17538done 17539 17540# For the awk script, D is an array of macro values keyed by name, 17541# likewise P contains macro parameters if any. Preserve backslash 17542# newline sequences. 17543 17544ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17545sed -n ' 17546s/.\{148\}/&'"$ac_delim"'/g 17547t rset 17548:rset 17549s/^[ ]*#[ ]*define[ ][ ]*/ / 17550t def 17551d 17552:def 17553s/\\$// 17554t bsnl 17555s/["\\]/\\&/g 17556s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17557D["\1"]=" \3"/p 17558s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17559d 17560:bsnl 17561s/["\\]/\\&/g 17562s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17563D["\1"]=" \3\\\\\\n"\\/p 17564t cont 17565s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17566t cont 17567d 17568:cont 17569n 17570s/.\{148\}/&'"$ac_delim"'/g 17571t clear 17572:clear 17573s/\\$// 17574t bsnlc 17575s/["\\]/\\&/g; s/^/"/; s/$/"/p 17576d 17577:bsnlc 17578s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17579b cont 17580' <confdefs.h | sed ' 17581s/'"$ac_delim"'/"\\\ 17582"/g' >>$CONFIG_STATUS || ac_write_fail=1 17583 17584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17585 for (key in D) D_is_set[key] = 1 17586 FS = "" 17587} 17588/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17589 line = \$ 0 17590 split(line, arg, " ") 17591 if (arg[1] == "#") { 17592 defundef = arg[2] 17593 mac1 = arg[3] 17594 } else { 17595 defundef = substr(arg[1], 2) 17596 mac1 = arg[2] 17597 } 17598 split(mac1, mac2, "(") #) 17599 macro = mac2[1] 17600 prefix = substr(line, 1, index(line, defundef) - 1) 17601 if (D_is_set[macro]) { 17602 # Preserve the white space surrounding the "#". 17603 print prefix "define", macro P[macro] D[macro] 17604 next 17605 } else { 17606 # Replace #undef with comments. This is necessary, for example, 17607 # in the case of _POSIX_SOURCE, which is predefined and required 17608 # on some systems where configure will not decide to define it. 17609 if (defundef == "undef") { 17610 print "/*", prefix defundef, macro, "*/" 17611 next 17612 } 17613 } 17614} 17615{ print } 17616_ACAWK 17617_ACEOF 17618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17619 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17620fi # test -n "$CONFIG_HEADERS" 17621 17622 17623eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17624shift 17625for ac_tag 17626do 17627 case $ac_tag in 17628 :[FHLC]) ac_mode=$ac_tag; continue;; 17629 esac 17630 case $ac_mode$ac_tag in 17631 :[FHL]*:*);; 17632 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17633 :[FH]-) ac_tag=-:-;; 17634 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17635 esac 17636 ac_save_IFS=$IFS 17637 IFS=: 17638 set x $ac_tag 17639 IFS=$ac_save_IFS 17640 shift 17641 ac_file=$1 17642 shift 17643 17644 case $ac_mode in 17645 :L) ac_source=$1;; 17646 :[FH]) 17647 ac_file_inputs= 17648 for ac_f 17649 do 17650 case $ac_f in 17651 -) ac_f="$ac_tmp/stdin";; 17652 *) # Look for the file first in the build tree, then in the source tree 17653 # (if the path is not absolute). The absolute path cannot be DOS-style, 17654 # because $ac_f cannot contain `:'. 17655 test -f "$ac_f" || 17656 case $ac_f in 17657 [\\/$]*) false;; 17658 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17659 esac || 17660 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17661 esac 17662 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17663 as_fn_append ac_file_inputs " '$ac_f'" 17664 done 17665 17666 # Let's still pretend it is `configure' which instantiates (i.e., don't 17667 # use $as_me), people would be surprised to read: 17668 # /* config.h. Generated by config.status. */ 17669 configure_input='Generated from '` 17670 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17671 `' by configure.' 17672 if test x"$ac_file" != x-; then 17673 configure_input="$ac_file. $configure_input" 17674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17675printf "%s\n" "$as_me: creating $ac_file" >&6;} 17676 fi 17677 # Neutralize special characters interpreted by sed in replacement strings. 17678 case $configure_input in #( 17679 *\&* | *\|* | *\\* ) 17680 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 17681 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17682 *) ac_sed_conf_input=$configure_input;; 17683 esac 17684 17685 case $ac_tag in 17686 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17687 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17688 esac 17689 ;; 17690 esac 17691 17692 ac_dir=`$as_dirname -- "$ac_file" || 17693$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17694 X"$ac_file" : 'X\(//\)[^/]' \| \ 17695 X"$ac_file" : 'X\(//\)$' \| \ 17696 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17697printf "%s\n" X"$ac_file" | 17698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17699 s//\1/ 17700 q 17701 } 17702 /^X\(\/\/\)[^/].*/{ 17703 s//\1/ 17704 q 17705 } 17706 /^X\(\/\/\)$/{ 17707 s//\1/ 17708 q 17709 } 17710 /^X\(\/\).*/{ 17711 s//\1/ 17712 q 17713 } 17714 s/.*/./; q'` 17715 as_dir="$ac_dir"; as_fn_mkdir_p 17716 ac_builddir=. 17717 17718case "$ac_dir" in 17719.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17720*) 17721 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 17722 # A ".." for each directory in $ac_dir_suffix. 17723 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17724 case $ac_top_builddir_sub in 17725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17727 esac ;; 17728esac 17729ac_abs_top_builddir=$ac_pwd 17730ac_abs_builddir=$ac_pwd$ac_dir_suffix 17731# for backward compatibility: 17732ac_top_builddir=$ac_top_build_prefix 17733 17734case $srcdir in 17735 .) # We are building in place. 17736 ac_srcdir=. 17737 ac_top_srcdir=$ac_top_builddir_sub 17738 ac_abs_top_srcdir=$ac_pwd ;; 17739 [\\/]* | ?:[\\/]* ) # Absolute name. 17740 ac_srcdir=$srcdir$ac_dir_suffix; 17741 ac_top_srcdir=$srcdir 17742 ac_abs_top_srcdir=$srcdir ;; 17743 *) # Relative name. 17744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17745 ac_top_srcdir=$ac_top_build_prefix$srcdir 17746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17747esac 17748ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17749 17750 17751 case $ac_mode in 17752 :F) 17753 # 17754 # CONFIG_FILE 17755 # 17756 17757 case $INSTALL in 17758 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17759 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17760 esac 17761 ac_MKDIR_P=$MKDIR_P 17762 case $MKDIR_P in 17763 [\\/$]* | ?:[\\/]* ) ;; 17764 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17765 esac 17766_ACEOF 17767 17768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17769# If the template does not know about datarootdir, expand it. 17770# FIXME: This hack should be removed a few years after 2.60. 17771ac_datarootdir_hack=; ac_datarootdir_seen= 17772ac_sed_dataroot=' 17773/datarootdir/ { 17774 p 17775 q 17776} 17777/@datadir@/p 17778/@docdir@/p 17779/@infodir@/p 17780/@localedir@/p 17781/@mandir@/p' 17782case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17783*datarootdir*) ac_datarootdir_seen=yes;; 17784*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17786printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17787_ACEOF 17788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17789 ac_datarootdir_hack=' 17790 s&@datadir@&$datadir&g 17791 s&@docdir@&$docdir&g 17792 s&@infodir@&$infodir&g 17793 s&@localedir@&$localedir&g 17794 s&@mandir@&$mandir&g 17795 s&\\\${datarootdir}&$datarootdir&g' ;; 17796esac 17797_ACEOF 17798 17799# Neutralize VPATH when `$srcdir' = `.'. 17800# Shell code in configure.ac might set extrasub. 17801# FIXME: do we really want to maintain this feature? 17802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17803ac_sed_extra="$ac_vpsub 17804$extrasub 17805_ACEOF 17806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17807:t 17808/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17809s|@configure_input@|$ac_sed_conf_input|;t t 17810s&@top_builddir@&$ac_top_builddir_sub&;t t 17811s&@top_build_prefix@&$ac_top_build_prefix&;t t 17812s&@srcdir@&$ac_srcdir&;t t 17813s&@abs_srcdir@&$ac_abs_srcdir&;t t 17814s&@top_srcdir@&$ac_top_srcdir&;t t 17815s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17816s&@builddir@&$ac_builddir&;t t 17817s&@abs_builddir@&$ac_abs_builddir&;t t 17818s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17819s&@INSTALL@&$ac_INSTALL&;t t 17820s&@MKDIR_P@&$ac_MKDIR_P&;t t 17821$ac_datarootdir_hack 17822" 17823eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17824 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17825 17826test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17827 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17828 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17829 "$ac_tmp/out"`; test -z "$ac_out"; } && 17830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17831which seems to be undefined. Please make sure it is defined" >&5 17832printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17833which seems to be undefined. Please make sure it is defined" >&2;} 17834 17835 rm -f "$ac_tmp/stdin" 17836 case $ac_file in 17837 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17838 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17839 esac \ 17840 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17841 ;; 17842 :H) 17843 # 17844 # CONFIG_HEADER 17845 # 17846 if test x"$ac_file" != x-; then 17847 { 17848 printf "%s\n" "/* $configure_input */" >&1 \ 17849 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17850 } >"$ac_tmp/config.h" \ 17851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17852 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17854printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 17855 else 17856 rm -f "$ac_file" 17857 mv "$ac_tmp/config.h" "$ac_file" \ 17858 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17859 fi 17860 else 17861 printf "%s\n" "/* $configure_input */" >&1 \ 17862 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17863 || as_fn_error $? "could not create -" "$LINENO" 5 17864 fi 17865# Compute "$ac_file"'s index in $config_headers. 17866_am_arg="$ac_file" 17867_am_stamp_count=1 17868for _am_header in $config_headers :; do 17869 case $_am_header in 17870 $_am_arg | $_am_arg:* ) 17871 break ;; 17872 * ) 17873 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17874 esac 17875done 17876echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17877$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17878 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17879 X"$_am_arg" : 'X\(//\)$' \| \ 17880 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17881printf "%s\n" X"$_am_arg" | 17882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17883 s//\1/ 17884 q 17885 } 17886 /^X\(\/\/\)[^/].*/{ 17887 s//\1/ 17888 q 17889 } 17890 /^X\(\/\/\)$/{ 17891 s//\1/ 17892 q 17893 } 17894 /^X\(\/\).*/{ 17895 s//\1/ 17896 q 17897 } 17898 s/.*/./; q'`/stamp-h$_am_stamp_count 17899 ;; 17900 17901 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17902printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 17903 ;; 17904 esac 17905 17906 17907 case $ac_file$ac_mode in 17908 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17909 # Older Autoconf quotes --file arguments for eval, but not when files 17910 # are listed without --file. Let's play safe and only enable the eval 17911 # if we detect the quoting. 17912 # TODO: see whether this extra hack can be removed once we start 17913 # requiring Autoconf 2.70 or later. 17914 case $CONFIG_FILES in #( 17915 *\'*) : 17916 eval set x "$CONFIG_FILES" ;; #( 17917 *) : 17918 set x $CONFIG_FILES ;; #( 17919 *) : 17920 ;; 17921esac 17922 shift 17923 # Used to flag and report bootstrapping failures. 17924 am_rc=0 17925 for am_mf 17926 do 17927 # Strip MF so we end up with the name of the file. 17928 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 17929 # Check whether this is an Automake generated Makefile which includes 17930 # dependency-tracking related rules and includes. 17931 # Grep'ing the whole file directly is not great: AIX grep has a line 17932 # limit of 2048, but all sed's we know have understand at least 4000. 17933 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 17934 || continue 17935 am_dirpart=`$as_dirname -- "$am_mf" || 17936$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17937 X"$am_mf" : 'X\(//\)[^/]' \| \ 17938 X"$am_mf" : 'X\(//\)$' \| \ 17939 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17940printf "%s\n" X"$am_mf" | 17941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17942 s//\1/ 17943 q 17944 } 17945 /^X\(\/\/\)[^/].*/{ 17946 s//\1/ 17947 q 17948 } 17949 /^X\(\/\/\)$/{ 17950 s//\1/ 17951 q 17952 } 17953 /^X\(\/\).*/{ 17954 s//\1/ 17955 q 17956 } 17957 s/.*/./; q'` 17958 am_filepart=`$as_basename -- "$am_mf" || 17959$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 17960 X"$am_mf" : 'X\(//\)$' \| \ 17961 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17962printf "%s\n" X/"$am_mf" | 17963 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17964 s//\1/ 17965 q 17966 } 17967 /^X\/\(\/\/\)$/{ 17968 s//\1/ 17969 q 17970 } 17971 /^X\/\(\/\).*/{ 17972 s//\1/ 17973 q 17974 } 17975 s/.*/./; q'` 17976 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 17977 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17978 | $MAKE -f - am--depfiles" >&5 17979 (cd "$am_dirpart" \ 17980 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17981 | $MAKE -f - am--depfiles) >&5 2>&5 17982 ac_status=$? 17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17984 (exit $ac_status); } || am_rc=$? 17985 done 17986 if test $am_rc -ne 0; then 17987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17988printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17989as_fn_error $? "Something went wrong bootstrapping makefile fragments 17990 for automatic dependency tracking. If GNU make was not used, consider 17991 re-running the configure script with MAKE=\"gmake\" (or whatever is 17992 necessary). You can also try re-running configure with the 17993 '--disable-dependency-tracking' option to at least be able to build 17994 the package (albeit without support for automatic dependency tracking). 17995See \`config.log' for more details" "$LINENO" 5; } 17996 fi 17997 { am_dirpart=; unset am_dirpart;} 17998 { am_filepart=; unset am_filepart;} 17999 { am_mf=; unset am_mf;} 18000 { am_rc=; unset am_rc;} 18001 rm -f conftest-deps.mk 18002} 18003 ;; 18004 "libtool":C) 18005 18006 # See if we are running on zsh, and set the options that allow our 18007 # commands through without removal of \ escapes. 18008 if test -n "${ZSH_VERSION+set}"; then 18009 setopt NO_GLOB_SUBST 18010 fi 18011 18012 cfgfile=${ofile}T 18013 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18014 $RM "$cfgfile" 18015 18016 cat <<_LT_EOF >> "$cfgfile" 18017#! $SHELL 18018# Generated automatically by $as_me ($PACKAGE) $VERSION 18019# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18020 18021# Provide generalized library-building support services. 18022# Written by Gordon Matzigkeit, 1996 18023 18024# Copyright (C) 2014 Free Software Foundation, Inc. 18025# This is free software; see the source for copying conditions. There is NO 18026# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18027 18028# GNU Libtool is free software; you can redistribute it and/or modify 18029# it under the terms of the GNU General Public License as published by 18030# the Free Software Foundation; either version 2 of of the License, or 18031# (at your option) any later version. 18032# 18033# As a special exception to the GNU General Public License, if you 18034# distribute this file as part of a program or library that is built 18035# using GNU Libtool, you may include this file under the same 18036# distribution terms that you use for the rest of that program. 18037# 18038# GNU Libtool is distributed in the hope that it will be useful, but 18039# WITHOUT ANY WARRANTY; without even the implied warranty of 18040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18041# GNU General Public License for more details. 18042# 18043# You should have received a copy of the GNU General Public License 18044# along with this program. If not, see <http://www.gnu.org/licenses/>. 18045 18046 18047# The names of the tagged configurations supported by this script. 18048available_tags='' 18049 18050# Configured defaults for sys_lib_dlsearch_path munging. 18051: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18052 18053# ### BEGIN LIBTOOL CONFIG 18054 18055# Which release of libtool.m4 was used? 18056macro_version=$macro_version 18057macro_revision=$macro_revision 18058 18059# Assembler program. 18060AS=$lt_AS 18061 18062# DLL creation program. 18063DLLTOOL=$lt_DLLTOOL 18064 18065# Object dumper program. 18066OBJDUMP=$lt_OBJDUMP 18067 18068# Whether or not to build shared libraries. 18069build_libtool_libs=$enable_shared 18070 18071# Whether or not to build static libraries. 18072build_old_libs=$enable_static 18073 18074# What type of objects to build. 18075pic_mode=$pic_mode 18076 18077# Whether or not to optimize for fast installation. 18078fast_install=$enable_fast_install 18079 18080# Shared archive member basename,for filename based shared library versioning on AIX. 18081shared_archive_member_spec=$shared_archive_member_spec 18082 18083# Shell to use when invoking shell scripts. 18084SHELL=$lt_SHELL 18085 18086# An echo program that protects backslashes. 18087ECHO=$lt_ECHO 18088 18089# The PATH separator for the build system. 18090PATH_SEPARATOR=$lt_PATH_SEPARATOR 18091 18092# The host system. 18093host_alias=$host_alias 18094host=$host 18095host_os=$host_os 18096 18097# The build system. 18098build_alias=$build_alias 18099build=$build 18100build_os=$build_os 18101 18102# A sed program that does not truncate output. 18103SED=$lt_SED 18104 18105# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18106Xsed="\$SED -e 1s/^X//" 18107 18108# A grep program that handles long lines. 18109GREP=$lt_GREP 18110 18111# An ERE matcher. 18112EGREP=$lt_EGREP 18113 18114# A literal string matcher. 18115FGREP=$lt_FGREP 18116 18117# A BSD- or MS-compatible name lister. 18118NM=$lt_NM 18119 18120# Whether we need soft or hard links. 18121LN_S=$lt_LN_S 18122 18123# What is the maximum length of a command? 18124max_cmd_len=$max_cmd_len 18125 18126# Object file suffix (normally "o"). 18127objext=$ac_objext 18128 18129# Executable file suffix (normally ""). 18130exeext=$exeext 18131 18132# whether the shell understands "unset". 18133lt_unset=$lt_unset 18134 18135# turn spaces into newlines. 18136SP2NL=$lt_lt_SP2NL 18137 18138# turn newlines into spaces. 18139NL2SP=$lt_lt_NL2SP 18140 18141# convert \$build file names to \$host format. 18142to_host_file_cmd=$lt_cv_to_host_file_cmd 18143 18144# convert \$build files to toolchain format. 18145to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18146 18147# A file(cmd) program that detects file types. 18148FILECMD=$lt_FILECMD 18149 18150# Method to check whether dependent libraries are shared objects. 18151deplibs_check_method=$lt_deplibs_check_method 18152 18153# Command to use when deplibs_check_method = "file_magic". 18154file_magic_cmd=$lt_file_magic_cmd 18155 18156# How to find potential files when deplibs_check_method = "file_magic". 18157file_magic_glob=$lt_file_magic_glob 18158 18159# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18160want_nocaseglob=$lt_want_nocaseglob 18161 18162# Command to associate shared and link libraries. 18163sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18164 18165# The archiver. 18166AR=$lt_AR 18167 18168# Flags to create an archive (by configure). 18169lt_ar_flags=$lt_ar_flags 18170 18171# Flags to create an archive. 18172AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 18173 18174# How to feed a file listing to the archiver. 18175archiver_list_spec=$lt_archiver_list_spec 18176 18177# A symbol stripping program. 18178STRIP=$lt_STRIP 18179 18180# Commands used to install an old-style archive. 18181RANLIB=$lt_RANLIB 18182old_postinstall_cmds=$lt_old_postinstall_cmds 18183old_postuninstall_cmds=$lt_old_postuninstall_cmds 18184 18185# Whether to use a lock for old archive extraction. 18186lock_old_archive_extraction=$lock_old_archive_extraction 18187 18188# A C compiler. 18189LTCC=$lt_CC 18190 18191# LTCC compiler flags. 18192LTCFLAGS=$lt_CFLAGS 18193 18194# Take the output of nm and produce a listing of raw symbols and C names. 18195global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18196 18197# Transform the output of nm in a proper C declaration. 18198global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18199 18200# Transform the output of nm into a list of symbols to manually relocate. 18201global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18202 18203# Transform the output of nm in a C name address pair. 18204global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18205 18206# Transform the output of nm in a C name address pair when lib prefix is needed. 18207global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18208 18209# The name lister interface. 18210nm_interface=$lt_lt_cv_nm_interface 18211 18212# Specify filename containing input files for \$NM. 18213nm_file_list_spec=$lt_nm_file_list_spec 18214 18215# The root where to search for dependent libraries,and where our libraries should be installed. 18216lt_sysroot=$lt_sysroot 18217 18218# Command to truncate a binary pipe. 18219lt_truncate_bin=$lt_lt_cv_truncate_bin 18220 18221# The name of the directory that contains temporary libtool files. 18222objdir=$objdir 18223 18224# Used to examine libraries when file_magic_cmd begins with "file". 18225MAGIC_CMD=$MAGIC_CMD 18226 18227# Must we lock files when doing compilation? 18228need_locks=$lt_need_locks 18229 18230# Manifest tool. 18231MANIFEST_TOOL=$lt_MANIFEST_TOOL 18232 18233# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18234DSYMUTIL=$lt_DSYMUTIL 18235 18236# Tool to change global to local symbols on Mac OS X. 18237NMEDIT=$lt_NMEDIT 18238 18239# Tool to manipulate fat objects and archives on Mac OS X. 18240LIPO=$lt_LIPO 18241 18242# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18243OTOOL=$lt_OTOOL 18244 18245# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18246OTOOL64=$lt_OTOOL64 18247 18248# Old archive suffix (normally "a"). 18249libext=$libext 18250 18251# Shared library suffix (normally ".so"). 18252shrext_cmds=$lt_shrext_cmds 18253 18254# The commands to extract the exported symbol list from a shared archive. 18255extract_expsyms_cmds=$lt_extract_expsyms_cmds 18256 18257# Variables whose values should be saved in libtool wrapper scripts and 18258# restored at link time. 18259variables_saved_for_relink=$lt_variables_saved_for_relink 18260 18261# Do we need the "lib" prefix for modules? 18262need_lib_prefix=$need_lib_prefix 18263 18264# Do we need a version for libraries? 18265need_version=$need_version 18266 18267# Library versioning type. 18268version_type=$version_type 18269 18270# Shared library runtime path variable. 18271runpath_var=$runpath_var 18272 18273# Shared library path variable. 18274shlibpath_var=$shlibpath_var 18275 18276# Is shlibpath searched before the hard-coded library search path? 18277shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18278 18279# Format of library name prefix. 18280libname_spec=$lt_libname_spec 18281 18282# List of archive names. First name is the real one, the rest are links. 18283# The last name is the one that the linker finds with -lNAME 18284library_names_spec=$lt_library_names_spec 18285 18286# The coded name of the library, if different from the real name. 18287soname_spec=$lt_soname_spec 18288 18289# Permission mode override for installation of shared libraries. 18290install_override_mode=$lt_install_override_mode 18291 18292# Command to use after installation of a shared archive. 18293postinstall_cmds=$lt_postinstall_cmds 18294 18295# Command to use after uninstallation of a shared archive. 18296postuninstall_cmds=$lt_postuninstall_cmds 18297 18298# Commands used to finish a libtool library installation in a directory. 18299finish_cmds=$lt_finish_cmds 18300 18301# As "finish_cmds", except a single script fragment to be evaled but 18302# not shown. 18303finish_eval=$lt_finish_eval 18304 18305# Whether we should hardcode library paths into libraries. 18306hardcode_into_libs=$hardcode_into_libs 18307 18308# Compile-time system search path for libraries. 18309sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18310 18311# Detected run-time system search path for libraries. 18312sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18313 18314# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18315configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18316 18317# Whether dlopen is supported. 18318dlopen_support=$enable_dlopen 18319 18320# Whether dlopen of programs is supported. 18321dlopen_self=$enable_dlopen_self 18322 18323# Whether dlopen of statically linked programs is supported. 18324dlopen_self_static=$enable_dlopen_self_static 18325 18326# Commands to strip libraries. 18327old_striplib=$lt_old_striplib 18328striplib=$lt_striplib 18329 18330 18331# The linker used to build libraries. 18332LD=$lt_LD 18333 18334# How to create reloadable object files. 18335reload_flag=$lt_reload_flag 18336reload_cmds=$lt_reload_cmds 18337 18338# Commands used to build an old-style archive. 18339old_archive_cmds=$lt_old_archive_cmds 18340 18341# A language specific compiler. 18342CC=$lt_compiler 18343 18344# Is the compiler the GNU compiler? 18345with_gcc=$GCC 18346 18347# Compiler flag to turn off builtin functions. 18348no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18349 18350# Additional compiler flags for building library objects. 18351pic_flag=$lt_lt_prog_compiler_pic 18352 18353# How to pass a linker flag through the compiler. 18354wl=$lt_lt_prog_compiler_wl 18355 18356# Compiler flag to prevent dynamic linking. 18357link_static_flag=$lt_lt_prog_compiler_static 18358 18359# Does compiler simultaneously support -c and -o options? 18360compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18361 18362# Whether or not to add -lc for building shared libraries. 18363build_libtool_need_lc=$archive_cmds_need_lc 18364 18365# Whether or not to disallow shared libs when runtime libs are static. 18366allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18367 18368# Compiler flag to allow reflexive dlopens. 18369export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18370 18371# Compiler flag to generate shared objects directly from archives. 18372whole_archive_flag_spec=$lt_whole_archive_flag_spec 18373 18374# Whether the compiler copes with passing no objects directly. 18375compiler_needs_object=$lt_compiler_needs_object 18376 18377# Create an old-style archive from a shared archive. 18378old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18379 18380# Create a temporary old-style archive to link instead of a shared archive. 18381old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18382 18383# Commands used to build a shared archive. 18384archive_cmds=$lt_archive_cmds 18385archive_expsym_cmds=$lt_archive_expsym_cmds 18386 18387# Commands used to build a loadable module if different from building 18388# a shared archive. 18389module_cmds=$lt_module_cmds 18390module_expsym_cmds=$lt_module_expsym_cmds 18391 18392# Whether we are building with GNU ld or not. 18393with_gnu_ld=$lt_with_gnu_ld 18394 18395# Flag that allows shared libraries with undefined symbols to be built. 18396allow_undefined_flag=$lt_allow_undefined_flag 18397 18398# Flag that enforces no undefined symbols. 18399no_undefined_flag=$lt_no_undefined_flag 18400 18401# Flag to hardcode \$libdir into a binary during linking. 18402# This must work even if \$libdir does not exist 18403hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18404 18405# Whether we need a single "-rpath" flag with a separated argument. 18406hardcode_libdir_separator=$lt_hardcode_libdir_separator 18407 18408# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18409# DIR into the resulting binary. 18410hardcode_direct=$hardcode_direct 18411 18412# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18413# DIR into the resulting binary and the resulting library dependency is 18414# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18415# library is relocated. 18416hardcode_direct_absolute=$hardcode_direct_absolute 18417 18418# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18419# into the resulting binary. 18420hardcode_minus_L=$hardcode_minus_L 18421 18422# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18423# into the resulting binary. 18424hardcode_shlibpath_var=$hardcode_shlibpath_var 18425 18426# Set to "yes" if building a shared library automatically hardcodes DIR 18427# into the library and all subsequent libraries and executables linked 18428# against it. 18429hardcode_automatic=$hardcode_automatic 18430 18431# Set to yes if linker adds runtime paths of dependent libraries 18432# to runtime path list. 18433inherit_rpath=$inherit_rpath 18434 18435# Whether libtool must link a program against all its dependency libraries. 18436link_all_deplibs=$link_all_deplibs 18437 18438# Set to "yes" if exported symbols are required. 18439always_export_symbols=$always_export_symbols 18440 18441# The commands to list exported symbols. 18442export_symbols_cmds=$lt_export_symbols_cmds 18443 18444# Symbols that should not be listed in the preloaded symbols. 18445exclude_expsyms=$lt_exclude_expsyms 18446 18447# Symbols that must always be exported. 18448include_expsyms=$lt_include_expsyms 18449 18450# Commands necessary for linking programs (against libraries) with templates. 18451prelink_cmds=$lt_prelink_cmds 18452 18453# Commands necessary for finishing linking programs. 18454postlink_cmds=$lt_postlink_cmds 18455 18456# Specify filename containing input files. 18457file_list_spec=$lt_file_list_spec 18458 18459# How to hardcode a shared library path into an executable. 18460hardcode_action=$hardcode_action 18461 18462# ### END LIBTOOL CONFIG 18463 18464_LT_EOF 18465 18466 cat <<'_LT_EOF' >> "$cfgfile" 18467 18468# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18469 18470# func_munge_path_list VARIABLE PATH 18471# ----------------------------------- 18472# VARIABLE is name of variable containing _space_ separated list of 18473# directories to be munged by the contents of PATH, which is string 18474# having a format: 18475# "DIR[:DIR]:" 18476# string "DIR[ DIR]" will be prepended to VARIABLE 18477# ":DIR[:DIR]" 18478# string "DIR[ DIR]" will be appended to VARIABLE 18479# "DIRP[:DIRP]::[DIRA:]DIRA" 18480# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18481# "DIRA[ DIRA]" will be appended to VARIABLE 18482# "DIR[:DIR]" 18483# VARIABLE will be replaced by "DIR[ DIR]" 18484func_munge_path_list () 18485{ 18486 case x$2 in 18487 x) 18488 ;; 18489 *:) 18490 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18491 ;; 18492 x:*) 18493 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18494 ;; 18495 *::*) 18496 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18497 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18498 ;; 18499 *) 18500 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18501 ;; 18502 esac 18503} 18504 18505 18506# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18507func_cc_basename () 18508{ 18509 for cc_temp in $*""; do 18510 case $cc_temp in 18511 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18512 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18513 \-*) ;; 18514 *) break;; 18515 esac 18516 done 18517 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18518} 18519 18520 18521# ### END FUNCTIONS SHARED WITH CONFIGURE 18522 18523_LT_EOF 18524 18525 case $host_os in 18526 aix3*) 18527 cat <<\_LT_EOF >> "$cfgfile" 18528# AIX sometimes has problems with the GCC collect2 program. For some 18529# reason, if we set the COLLECT_NAMES environment variable, the problems 18530# vanish in a puff of smoke. 18531if test set != "${COLLECT_NAMES+set}"; then 18532 COLLECT_NAMES= 18533 export COLLECT_NAMES 18534fi 18535_LT_EOF 18536 ;; 18537 esac 18538 18539 18540 18541ltmain=$ac_aux_dir/ltmain.sh 18542 18543 18544 # We use sed instead of cat because bash on DJGPP gets confused if 18545 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18546 # text mode, it properly converts lines to CR/LF. This bash problem 18547 # is reportedly fixed, but why not run on old versions too? 18548 $SED '$q' "$ltmain" >> "$cfgfile" \ 18549 || (rm -f "$cfgfile"; exit 1) 18550 18551 mv -f "$cfgfile" "$ofile" || 18552 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18553 chmod +x "$ofile" 18554 18555 ;; 18556 "script-chmod":C) chmod a+x pcre2-config ;; 18557 "delete-old-chartables":C) rm -f pcre2_chartables.c ;; 18558 18559 esac 18560done # for ac_tag 18561 18562 18563as_fn_exit 0 18564_ACEOF 18565ac_clean_files=$ac_clean_files_save 18566 18567test $ac_write_fail = 0 || 18568 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18569 18570 18571# configure is writing to config.log, and then calls config.status. 18572# config.status does its own redirection, appending to config.log. 18573# Unfortunately, on DOS this fails, as config.log is still kept open 18574# by configure, so config.status won't be able to write to it; its 18575# output is simply discarded. So we exec the FD to /dev/null, 18576# effectively closing config.log, so it can be properly (re)opened and 18577# appended to by config.status. When coming back to configure, we 18578# need to make the FD available again. 18579if test "$no_create" != yes; then 18580 ac_cs_success=: 18581 ac_config_status_args= 18582 test "$silent" = yes && 18583 ac_config_status_args="$ac_config_status_args --quiet" 18584 exec 5>/dev/null 18585 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18586 exec 5>>config.log 18587 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18588 # would make configure fail if this is the last instruction. 18589 $ac_cs_success || as_fn_exit 1 18590fi 18591if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18593printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18594fi 18595 18596 18597# --disable-stack-for-recursion is obsolete and has no effect. 18598 18599if test "$enable_stack_for_recursion" = "no"; then 18600cat <<EOF 18601 18602WARNING: --disable-stack-for-recursion is obsolete and has no effect. 18603EOF 18604fi 18605 18606# Print out a nice little message after configure is run displaying the 18607# chosen options. 18608 18609ebcdic_nl_code=n/a 18610if test "$enable_ebcdic_nl25" = "yes"; then 18611 ebcdic_nl_code=0x25 18612elif test "$enable_ebcdic" = "yes"; then 18613 ebcdic_nl_code=0x15 18614fi 18615 18616cat <<EOF 18617 18618$PACKAGE-$VERSION configuration summary: 18619 18620 Install prefix ..................... : ${prefix} 18621 C preprocessor ..................... : ${CPP} 18622 C compiler ......................... : ${CC} 18623 Linker ............................. : ${LD} 18624 C preprocessor flags ............... : ${CPPFLAGS} 18625 C compiler flags ................... : ${CFLAGS} ${VISIBILITY_CFLAGS} 18626 Linker flags ....................... : ${LDFLAGS} 18627 Extra libraries .................... : ${LIBS} 18628 18629 Build 8-bit pcre2 library .......... : ${enable_pcre2_8} 18630 Build 16-bit pcre2 library ......... : ${enable_pcre2_16} 18631 Build 32-bit pcre2 library ......... : ${enable_pcre2_32} 18632 Include debugging code ............. : ${enable_debug} 18633 Enable JIT compiling support ....... : ${enable_jit} 18634 Use SELinux allocator in JIT ....... : ${enable_jit_sealloc} 18635 Enable Unicode support ............. : ${enable_unicode} 18636 Newline char/sequence .............. : ${enable_newline} 18637 \R matches only ANYCRLF ............ : ${enable_bsr_anycrlf} 18638 \C is disabled ..................... : ${enable_never_backslash_C} 18639 EBCDIC coding ...................... : ${enable_ebcdic} 18640 EBCDIC code for NL ................. : ${ebcdic_nl_code} 18641 Rebuild char tables ................ : ${enable_rebuild_chartables} 18642 Internal link size ................. : ${with_link_size} 18643 Nested parentheses limit ........... : ${with_parens_nest_limit} 18644 Heap limit ......................... : ${with_heap_limit} kibibytes 18645 Match limit ........................ : ${with_match_limit} 18646 Match depth limit .................. : ${with_match_limit_depth} 18647 Build shared libs .................. : ${enable_shared} 18648 Build static libs .................. : ${enable_static} 18649 Use JIT in pcre2grep ............... : ${enable_pcre2grep_jit} 18650 Enable callouts in pcre2grep ....... : ${enable_pcre2grep_callout} 18651 Enable fork in pcre2grep callouts .. : ${enable_pcre2grep_callout_fork} 18652 Initial buffer size for pcre2grep .. : ${with_pcre2grep_bufsize} 18653 Maximum buffer size for pcre2grep .. : ${with_pcre2grep_max_bufsize} 18654 Link pcre2grep with libz ........... : ${enable_pcre2grep_libz} 18655 Link pcre2grep with libbz2 ......... : ${enable_pcre2grep_libbz2} 18656 Link pcre2test with libedit ........ : ${enable_pcre2test_libedit} 18657 Link pcre2test with libreadline .... : ${enable_pcre2test_libreadline} 18658 Valgrind support ................... : ${enable_valgrind} 18659 Code coverage ...................... : ${enable_coverage} 18660 Fuzzer support ..................... : ${enable_fuzz_support} 18661 Use %zu and %td .................... : ${enable_percent_zt} 18662 18663EOF 18664 18665 18666