1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for PCRE2 10.33. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 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'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='PCRE2' 589PACKAGE_TARNAME='pcre2' 590PACKAGE_VERSION='10.33' 591PACKAGE_STRING='PCRE2 10.33' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/pcre2.h.in" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636WITH_GCOV_FALSE 637WITH_GCOV_TRUE 638GCOV_LIBS 639GCOV_CXXFLAGS 640GCOV_CFLAGS 641GENHTML 642LCOV 643SHTOOL 644VALGRIND_LIBS 645VALGRIND_CFLAGS 646PKG_CONFIG_LIBDIR 647PKG_CONFIG_PATH 648PKG_CONFIG 649LIBBZ2 650LIBZ 651DISTCHECK_CONFIGURE_FLAGS 652EXTRA_LIBPCRE2_POSIX_LDFLAGS 653EXTRA_LIBPCRE2_32_LDFLAGS 654EXTRA_LIBPCRE2_16_LDFLAGS 655EXTRA_LIBPCRE2_8_LDFLAGS 656PTHREAD_CFLAGS 657PTHREAD_LIBS 658PTHREAD_CC 659ax_pthread_config 660PCRE2_STATIC_CFLAG 661LIBREADLINE 662WITH_FUZZ_SUPPORT_FALSE 663WITH_FUZZ_SUPPORT_TRUE 664WITH_VALGRIND_FALSE 665WITH_VALGRIND_TRUE 666WITH_UNICODE_FALSE 667WITH_UNICODE_TRUE 668WITH_JIT_FALSE 669WITH_JIT_TRUE 670WITH_REBUILD_CHARTABLES_FALSE 671WITH_REBUILD_CHARTABLES_TRUE 672WITH_DEBUG_FALSE 673WITH_DEBUG_TRUE 674WITH_PCRE2_32_FALSE 675WITH_PCRE2_32_TRUE 676WITH_PCRE2_16_FALSE 677WITH_PCRE2_16_TRUE 678WITH_PCRE2_8_FALSE 679WITH_PCRE2_8_TRUE 680enable_pcre2_32 681enable_pcre2_16 682enable_pcre2_8 683PCRE2_DATE 684PCRE2_PRERELEASE 685PCRE2_MINOR 686PCRE2_MAJOR 687HAVE_VISIBILITY 688VISIBILITY_CXXFLAGS 689VISIBILITY_CFLAGS 690LT_SYS_LIBRARY_PATH 691OTOOL64 692OTOOL 693LIPO 694NMEDIT 695DSYMUTIL 696MANIFEST_TOOL 697RANLIB 698LN_S 699NM 700ac_ct_DUMPBIN 701DUMPBIN 702LD 703FGREP 704SED 705LIBTOOL 706OBJDUMP 707DLLTOOL 708AS 709host_os 710host_vendor 711host_cpu 712host 713build_os 714build_vendor 715build_cpu 716build 717ac_ct_AR 718AR 719EGREP 720GREP 721CPP 722am__fastdepCC_FALSE 723am__fastdepCC_TRUE 724CCDEPMODE 725am__nodep 726AMDEPBACKSLASH 727AMDEP_FALSE 728AMDEP_TRUE 729am__include 730DEPDIR 731OBJEXT 732EXEEXT 733ac_ct_CC 734CPPFLAGS 735LDFLAGS 736CFLAGS 737CC 738AM_BACKSLASH 739AM_DEFAULT_VERBOSITY 740AM_DEFAULT_V 741AM_V 742am__untar 743am__tar 744AMTAR 745am__leading_dot 746SET_MAKE 747AWK 748mkdir_p 749MKDIR_P 750INSTALL_STRIP_PROGRAM 751STRIP 752install_sh 753MAKEINFO 754AUTOHEADER 755AUTOMAKE 756AUTOCONF 757ACLOCAL 758VERSION 759PACKAGE 760CYGPATH_W 761am__isrc 762INSTALL_DATA 763INSTALL_SCRIPT 764INSTALL_PROGRAM 765target_alias 766host_alias 767build_alias 768LIBS 769ECHO_T 770ECHO_N 771ECHO_C 772DEFS 773mandir 774localedir 775libdir 776psdir 777pdfdir 778dvidir 779htmldir 780infodir 781docdir 782oldincludedir 783includedir 784localstatedir 785sharedstatedir 786sysconfdir 787datadir 788datarootdir 789libexecdir 790sbindir 791bindir 792program_transform_name 793prefix 794exec_prefix 795PACKAGE_URL 796PACKAGE_BUGREPORT 797PACKAGE_STRING 798PACKAGE_VERSION 799PACKAGE_TARNAME 800PACKAGE_NAME 801PATH_SEPARATOR 802SHELL 803am__quote' 804ac_subst_files='' 805ac_user_opts=' 806enable_option_checking 807enable_silent_rules 808enable_dependency_tracking 809enable_shared 810enable_static 811with_pic 812enable_fast_install 813with_aix_soname 814with_gnu_ld 815with_sysroot 816enable_libtool_lock 817enable_pcre8 818enable_pcre16 819enable_pcre32 820enable_pcre2_8 821enable_pcre2_16 822enable_pcre2_32 823enable_debug 824enable_jit 825enable_jit_sealloc 826enable_pcre2grep_jit 827enable_pcre2grep_callout 828enable_pcre2grep_callout_fork 829enable_rebuild_chartables 830enable_unicode 831enable_newline_is_cr 832enable_newline_is_lf 833enable_newline_is_crlf 834enable_newline_is_anycrlf 835enable_newline_is_any 836enable_newline_is_nul 837enable_bsr_anycrlf 838enable_never_backslash_C 839enable_ebcdic 840enable_ebcdic_nl25 841enable_pcre2grep_libz 842enable_pcre2grep_libbz2 843with_pcre2grep_bufsize 844with_pcre2grep_max_bufsize 845enable_pcre2test_libedit 846enable_pcre2test_libreadline 847with_link_size 848with_parens_nest_limit 849with_heap_limit 850with_match_limit 851with_match_limit_depth 852with_match_limit_recursion 853enable_valgrind 854enable_coverage 855enable_fuzz_support 856enable_stack_for_recursion 857enable_percent_zt 858' 859 ac_precious_vars='build_alias 860host_alias 861target_alias 862CC 863CFLAGS 864LDFLAGS 865LIBS 866CPPFLAGS 867CPP 868LT_SYS_LIBRARY_PATH 869PKG_CONFIG 870PKG_CONFIG_PATH 871PKG_CONFIG_LIBDIR 872VALGRIND_CFLAGS 873VALGRIND_LIBS 874LCOV 875GENHTML' 876 877 878# Initialize some variables set by options. 879ac_init_help= 880ac_init_version=false 881ac_unrecognized_opts= 882ac_unrecognized_sep= 883# The variables have the same names as the options, with 884# dashes changed to underlines. 885cache_file=/dev/null 886exec_prefix=NONE 887no_create= 888no_recursion= 889prefix=NONE 890program_prefix=NONE 891program_suffix=NONE 892program_transform_name=s,x,x, 893silent= 894site= 895srcdir= 896verbose= 897x_includes=NONE 898x_libraries=NONE 899 900# Installation directory options. 901# These are left unexpanded so users can "make install exec_prefix=/foo" 902# and all the variables that are supposed to be based on exec_prefix 903# by default will actually change. 904# Use braces instead of parens because sh, perl, etc. also accept them. 905# (The list follows the same order as the GNU Coding Standards.) 906bindir='${exec_prefix}/bin' 907sbindir='${exec_prefix}/sbin' 908libexecdir='${exec_prefix}/libexec' 909datarootdir='${prefix}/share' 910datadir='${datarootdir}' 911sysconfdir='${prefix}/etc' 912sharedstatedir='${prefix}/com' 913localstatedir='${prefix}/var' 914includedir='${prefix}/include' 915oldincludedir='/usr/include' 916docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 917infodir='${datarootdir}/info' 918htmldir='${docdir}' 919dvidir='${docdir}' 920pdfdir='${docdir}' 921psdir='${docdir}' 922libdir='${exec_prefix}/lib' 923localedir='${datarootdir}/locale' 924mandir='${datarootdir}/man' 925 926ac_prev= 927ac_dashdash= 928for ac_option 929do 930 # If the previous option needs an argument, assign it. 931 if test -n "$ac_prev"; then 932 eval $ac_prev=\$ac_option 933 ac_prev= 934 continue 935 fi 936 937 case $ac_option in 938 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 939 *=) ac_optarg= ;; 940 *) ac_optarg=yes ;; 941 esac 942 943 # Accept the important Cygnus configure options, so we can diagnose typos. 944 945 case $ac_dashdash$ac_option in 946 --) 947 ac_dashdash=yes ;; 948 949 -bindir | --bindir | --bindi | --bind | --bin | --bi) 950 ac_prev=bindir ;; 951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 952 bindir=$ac_optarg ;; 953 954 -build | --build | --buil | --bui | --bu) 955 ac_prev=build_alias ;; 956 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 957 build_alias=$ac_optarg ;; 958 959 -cache-file | --cache-file | --cache-fil | --cache-fi \ 960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 961 ac_prev=cache_file ;; 962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 964 cache_file=$ac_optarg ;; 965 966 --config-cache | -C) 967 cache_file=config.cache ;; 968 969 -datadir | --datadir | --datadi | --datad) 970 ac_prev=datadir ;; 971 -datadir=* | --datadir=* | --datadi=* | --datad=*) 972 datadir=$ac_optarg ;; 973 974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 975 | --dataroo | --dataro | --datar) 976 ac_prev=datarootdir ;; 977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 979 datarootdir=$ac_optarg ;; 980 981 -disable-* | --disable-*) 982 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 983 # Reject names that are not valid shell variable names. 984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 985 as_fn_error $? "invalid feature name: $ac_useropt" 986 ac_useropt_orig=$ac_useropt 987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 988 case $ac_user_opts in 989 *" 990"enable_$ac_useropt" 991"*) ;; 992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 993 ac_unrecognized_sep=', ';; 994 esac 995 eval enable_$ac_useropt=no ;; 996 997 -docdir | --docdir | --docdi | --doc | --do) 998 ac_prev=docdir ;; 999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1000 docdir=$ac_optarg ;; 1001 1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1003 ac_prev=dvidir ;; 1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1005 dvidir=$ac_optarg ;; 1006 1007 -enable-* | --enable-*) 1008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1009 # Reject names that are not valid shell variable names. 1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1011 as_fn_error $? "invalid feature name: $ac_useropt" 1012 ac_useropt_orig=$ac_useropt 1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1014 case $ac_user_opts in 1015 *" 1016"enable_$ac_useropt" 1017"*) ;; 1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1019 ac_unrecognized_sep=', ';; 1020 esac 1021 eval enable_$ac_useropt=\$ac_optarg ;; 1022 1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1025 | --exec | --exe | --ex) 1026 ac_prev=exec_prefix ;; 1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1029 | --exec=* | --exe=* | --ex=*) 1030 exec_prefix=$ac_optarg ;; 1031 1032 -gas | --gas | --ga | --g) 1033 # Obsolete; use --with-gas. 1034 with_gas=yes ;; 1035 1036 -help | --help | --hel | --he | -h) 1037 ac_init_help=long ;; 1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1039 ac_init_help=recursive ;; 1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1041 ac_init_help=short ;; 1042 1043 -host | --host | --hos | --ho) 1044 ac_prev=host_alias ;; 1045 -host=* | --host=* | --hos=* | --ho=*) 1046 host_alias=$ac_optarg ;; 1047 1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1049 ac_prev=htmldir ;; 1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1051 | --ht=*) 1052 htmldir=$ac_optarg ;; 1053 1054 -includedir | --includedir | --includedi | --included | --include \ 1055 | --includ | --inclu | --incl | --inc) 1056 ac_prev=includedir ;; 1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1058 | --includ=* | --inclu=* | --incl=* | --inc=*) 1059 includedir=$ac_optarg ;; 1060 1061 -infodir | --infodir | --infodi | --infod | --info | --inf) 1062 ac_prev=infodir ;; 1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1064 infodir=$ac_optarg ;; 1065 1066 -libdir | --libdir | --libdi | --libd) 1067 ac_prev=libdir ;; 1068 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1069 libdir=$ac_optarg ;; 1070 1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1072 | --libexe | --libex | --libe) 1073 ac_prev=libexecdir ;; 1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1075 | --libexe=* | --libex=* | --libe=*) 1076 libexecdir=$ac_optarg ;; 1077 1078 -localedir | --localedir | --localedi | --localed | --locale) 1079 ac_prev=localedir ;; 1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1081 localedir=$ac_optarg ;; 1082 1083 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1084 | --localstate | --localstat | --localsta | --localst | --locals) 1085 ac_prev=localstatedir ;; 1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1088 localstatedir=$ac_optarg ;; 1089 1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1091 ac_prev=mandir ;; 1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1093 mandir=$ac_optarg ;; 1094 1095 -nfp | --nfp | --nf) 1096 # Obsolete; use --without-fp. 1097 with_fp=no ;; 1098 1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1100 | --no-cr | --no-c | -n) 1101 no_create=yes ;; 1102 1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1105 no_recursion=yes ;; 1106 1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1109 | --oldin | --oldi | --old | --ol | --o) 1110 ac_prev=oldincludedir ;; 1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1114 oldincludedir=$ac_optarg ;; 1115 1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1117 ac_prev=prefix ;; 1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1119 prefix=$ac_optarg ;; 1120 1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1122 | --program-pre | --program-pr | --program-p) 1123 ac_prev=program_prefix ;; 1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1126 program_prefix=$ac_optarg ;; 1127 1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1129 | --program-suf | --program-su | --program-s) 1130 ac_prev=program_suffix ;; 1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1133 program_suffix=$ac_optarg ;; 1134 1135 -program-transform-name | --program-transform-name \ 1136 | --program-transform-nam | --program-transform-na \ 1137 | --program-transform-n | --program-transform- \ 1138 | --program-transform | --program-transfor \ 1139 | --program-transfo | --program-transf \ 1140 | --program-trans | --program-tran \ 1141 | --progr-tra | --program-tr | --program-t) 1142 ac_prev=program_transform_name ;; 1143 -program-transform-name=* | --program-transform-name=* \ 1144 | --program-transform-nam=* | --program-transform-na=* \ 1145 | --program-transform-n=* | --program-transform-=* \ 1146 | --program-transform=* | --program-transfor=* \ 1147 | --program-transfo=* | --program-transf=* \ 1148 | --program-trans=* | --program-tran=* \ 1149 | --progr-tra=* | --program-tr=* | --program-t=*) 1150 program_transform_name=$ac_optarg ;; 1151 1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1153 ac_prev=pdfdir ;; 1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1155 pdfdir=$ac_optarg ;; 1156 1157 -psdir | --psdir | --psdi | --psd | --ps) 1158 ac_prev=psdir ;; 1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1160 psdir=$ac_optarg ;; 1161 1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1163 | -silent | --silent | --silen | --sile | --sil) 1164 silent=yes ;; 1165 1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1167 ac_prev=sbindir ;; 1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1169 | --sbi=* | --sb=*) 1170 sbindir=$ac_optarg ;; 1171 1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1174 | --sharedst | --shareds | --shared | --share | --shar \ 1175 | --sha | --sh) 1176 ac_prev=sharedstatedir ;; 1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1180 | --sha=* | --sh=*) 1181 sharedstatedir=$ac_optarg ;; 1182 1183 -site | --site | --sit) 1184 ac_prev=site ;; 1185 -site=* | --site=* | --sit=*) 1186 site=$ac_optarg ;; 1187 1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1189 ac_prev=srcdir ;; 1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1191 srcdir=$ac_optarg ;; 1192 1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1194 | --syscon | --sysco | --sysc | --sys | --sy) 1195 ac_prev=sysconfdir ;; 1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1198 sysconfdir=$ac_optarg ;; 1199 1200 -target | --target | --targe | --targ | --tar | --ta | --t) 1201 ac_prev=target_alias ;; 1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1203 target_alias=$ac_optarg ;; 1204 1205 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1206 verbose=yes ;; 1207 1208 -version | --version | --versio | --versi | --vers | -V) 1209 ac_init_version=: ;; 1210 1211 -with-* | --with-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error $? "invalid package name: $ac_useropt" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220"with_$ac_useropt" 1221"*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval with_$ac_useropt=\$ac_optarg ;; 1226 1227 -without-* | --without-*) 1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1231 as_fn_error $? "invalid package name: $ac_useropt" 1232 ac_useropt_orig=$ac_useropt 1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1234 case $ac_user_opts in 1235 *" 1236"with_$ac_useropt" 1237"*) ;; 1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1239 ac_unrecognized_sep=', ';; 1240 esac 1241 eval with_$ac_useropt=no ;; 1242 1243 --x) 1244 # Obsolete; use --with-x. 1245 with_x=yes ;; 1246 1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1248 | --x-incl | --x-inc | --x-in | --x-i) 1249 ac_prev=x_includes ;; 1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1252 x_includes=$ac_optarg ;; 1253 1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1256 ac_prev=x_libraries ;; 1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1259 x_libraries=$ac_optarg ;; 1260 1261 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1262Try \`$0 --help' for more information" 1263 ;; 1264 1265 *=*) 1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1267 # Reject names that are not valid shell variable names. 1268 case $ac_envvar in #( 1269 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1271 esac 1272 eval $ac_envvar=\$ac_optarg 1273 export $ac_envvar ;; 1274 1275 *) 1276 # FIXME: should be removed in autoconf 3.0. 1277 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1279 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1281 ;; 1282 1283 esac 1284done 1285 1286if test -n "$ac_prev"; then 1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1288 as_fn_error $? "missing argument to $ac_option" 1289fi 1290 1291if test -n "$ac_unrecognized_opts"; then 1292 case $enable_option_checking in 1293 no) ;; 1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1295 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1296 esac 1297fi 1298 1299# Check all directory arguments for consistency. 1300for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1301 datadir sysconfdir sharedstatedir localstatedir includedir \ 1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1303 libdir localedir mandir 1304do 1305 eval ac_val=\$$ac_var 1306 # Remove trailing slashes. 1307 case $ac_val in 1308 */ ) 1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1310 eval $ac_var=\$ac_val;; 1311 esac 1312 # Be sure to have absolute directory names. 1313 case $ac_val in 1314 [\\/$]* | ?:[\\/]* ) continue;; 1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1316 esac 1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1318done 1319 1320# There might be people who depend on the old broken behavior: `$host' 1321# used to hold the argument of --host etc. 1322# FIXME: To remove some day. 1323build=$build_alias 1324host=$host_alias 1325target=$target_alias 1326 1327# FIXME: To remove some day. 1328if test "x$host_alias" != x; then 1329 if test "x$build_alias" = x; then 1330 cross_compiling=maybe 1331 elif test "x$build_alias" != "x$host_alias"; then 1332 cross_compiling=yes 1333 fi 1334fi 1335 1336ac_tool_prefix= 1337test -n "$host_alias" && ac_tool_prefix=$host_alias- 1338 1339test "$silent" = yes && exec 6>/dev/null 1340 1341 1342ac_pwd=`pwd` && test -n "$ac_pwd" && 1343ac_ls_di=`ls -di .` && 1344ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1345 as_fn_error $? "working directory cannot be determined" 1346test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1347 as_fn_error $? "pwd does not report name of working directory" 1348 1349 1350# Find the source files, if location was not specified. 1351if test -z "$srcdir"; then 1352 ac_srcdir_defaulted=yes 1353 # Try the directory containing this script, then the parent directory. 1354 ac_confdir=`$as_dirname -- "$as_myself" || 1355$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1356 X"$as_myself" : 'X\(//\)[^/]' \| \ 1357 X"$as_myself" : 'X\(//\)$' \| \ 1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1359$as_echo X"$as_myself" | 1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\/\)[^/].*/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\/\)$/{ 1369 s//\1/ 1370 q 1371 } 1372 /^X\(\/\).*/{ 1373 s//\1/ 1374 q 1375 } 1376 s/.*/./; q'` 1377 srcdir=$ac_confdir 1378 if test ! -r "$srcdir/$ac_unique_file"; then 1379 srcdir=.. 1380 fi 1381else 1382 ac_srcdir_defaulted=no 1383fi 1384if test ! -r "$srcdir/$ac_unique_file"; then 1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1387fi 1388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1389ac_abs_confdir=`( 1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1391 pwd)` 1392# When building in place, set srcdir=. 1393if test "$ac_abs_confdir" = "$ac_pwd"; then 1394 srcdir=. 1395fi 1396# Remove unnecessary trailing slashes from srcdir. 1397# Double slashes in file names in object file debugging info 1398# mess up M-x gdb in Emacs. 1399case $srcdir in 1400*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1401esac 1402for ac_var in $ac_precious_vars; do 1403 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1404 eval ac_env_${ac_var}_value=\$${ac_var} 1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1406 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1407done 1408 1409# 1410# Report the --help message. 1411# 1412if test "$ac_init_help" = "long"; then 1413 # Omit some internal or obsolete options to make the list less imposing. 1414 # This message is too long to be a string in the A/UX 3.1 sh. 1415 cat <<_ACEOF 1416\`configure' configures PCRE2 10.33 to adapt to many kinds of systems. 1417 1418Usage: $0 [OPTION]... [VAR=VALUE]... 1419 1420To assign environment variables (e.g., CC, CFLAGS...), specify them as 1421VAR=VALUE. See below for descriptions of some of the useful variables. 1422 1423Defaults for the options are specified in brackets. 1424 1425Configuration: 1426 -h, --help display this help and exit 1427 --help=short display options specific to this package 1428 --help=recursive display the short help of all the included packages 1429 -V, --version display version information and exit 1430 -q, --quiet, --silent do not print \`checking ...' messages 1431 --cache-file=FILE cache test results in FILE [disabled] 1432 -C, --config-cache alias for \`--cache-file=config.cache' 1433 -n, --no-create do not create output files 1434 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1435 1436Installation directories: 1437 --prefix=PREFIX install architecture-independent files in PREFIX 1438 [$ac_default_prefix] 1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1440 [PREFIX] 1441 1442By default, \`make install' will install all the files in 1443\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1444an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1445for instance \`--prefix=\$HOME'. 1446 1447For better control, use the options below. 1448 1449Fine tuning of the installation directories: 1450 --bindir=DIR user executables [EPREFIX/bin] 1451 --sbindir=DIR system admin executables [EPREFIX/sbin] 1452 --libexecdir=DIR program executables [EPREFIX/libexec] 1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1456 --libdir=DIR object code libraries [EPREFIX/lib] 1457 --includedir=DIR C header files [PREFIX/include] 1458 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1461 --infodir=DIR info documentation [DATAROOTDIR/info] 1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1463 --mandir=DIR man documentation [DATAROOTDIR/man] 1464 --docdir=DIR documentation root [DATAROOTDIR/doc/pcre2] 1465 --htmldir=DIR html documentation [DOCDIR] 1466 --dvidir=DIR dvi documentation [DOCDIR] 1467 --pdfdir=DIR pdf documentation [DOCDIR] 1468 --psdir=DIR ps documentation [DOCDIR] 1469_ACEOF 1470 1471 cat <<\_ACEOF 1472 1473Program names: 1474 --program-prefix=PREFIX prepend PREFIX to installed program names 1475 --program-suffix=SUFFIX append SUFFIX to installed program names 1476 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1477 1478System types: 1479 --build=BUILD configure for building on BUILD [guessed] 1480 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1481_ACEOF 1482fi 1483 1484if test -n "$ac_init_help"; then 1485 case $ac_init_help in 1486 short | recursive ) echo "Configuration of PCRE2 10.33:";; 1487 esac 1488 cat <<\_ACEOF 1489 1490Optional Features: 1491 --disable-option-checking ignore unrecognized --enable/--with options 1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1494 --enable-silent-rules less verbose build output (undo: "make V=1") 1495 --disable-silent-rules verbose build output (undo: "make V=0") 1496 --enable-dependency-tracking 1497 do not reject slow dependency extractors 1498 --disable-dependency-tracking 1499 speeds up one-time build 1500 --enable-shared[=PKGS] build shared libraries [default=yes] 1501 --enable-static[=PKGS] build static libraries [default=yes] 1502 --enable-fast-install[=PKGS] 1503 optimize for fast installation [default=yes] 1504 --disable-libtool-lock avoid locking (might break parallel builds) 1505 1506 --disable-pcre2-8 disable 8 bit character support 1507 --enable-pcre2-16 enable 16 bit character support 1508 --enable-pcre2-32 enable 32 bit character support 1509 --enable-debug enable debugging code 1510 --enable-jit enable Just-In-Time compiling support 1511 --enable-jit-sealloc enable SELinux compatible execmem allocator in JIT 1512 --disable-pcre2grep-jit disable JIT support in pcre2grep 1513 --disable-pcre2grep-callout 1514 disable callout script support in pcre2grep 1515 --disable-pcre2grep-callout-fork 1516 disable callout script fork support in pcre2grep 1517 --enable-rebuild-chartables 1518 rebuild character tables in current locale 1519 --disable-unicode disable Unicode support 1520 --enable-newline-is-cr use CR as newline character 1521 --enable-newline-is-lf use LF as newline character (default) 1522 --enable-newline-is-crlf 1523 use CRLF as newline sequence 1524 --enable-newline-is-anycrlf 1525 use CR, LF, or CRLF as newline sequence 1526 --enable-newline-is-any use any valid Unicode newline sequence 1527 --enable-newline-is-nul use NUL (binary zero) as newline character 1528 --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default 1529 --enable-never-backslash-C 1530 use of \C causes an error 1531 --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible 1532 with --enable-utf; use only in (uncommon) EBCDIC 1533 environments; it implies --enable-rebuild-chartables 1534 --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it 1535 implies --enable-ebcdic 1536 --enable-pcre2grep-libz link pcre2grep with libz to handle .gz files 1537 --enable-pcre2grep-libbz2 1538 link pcre2grep with libbz2 to handle .bz2 files 1539 --enable-pcre2test-libedit 1540 link pcre2test with libedit 1541 --enable-pcre2test-libreadline 1542 link pcre2test with libreadline 1543 --enable-valgrind enable valgrind support 1544 --enable-coverage enable code coverage reports using gcov 1545 --enable-fuzz-support enable fuzzer support 1546 --disable-percent-zt disable the use of z and t formatting modifiers 1547 1548Optional Packages: 1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1551 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1552 both] 1553 --with-aix-soname=aix|svr4|both 1554 shared library versioning (aka "SONAME") variant to 1555 provide on AIX, [default=aix]. 1556 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1557 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1558 compiler's sysroot if not specified). 1559 --with-pcre2grep-bufsize=N 1560 pcre2grep initial buffer size (default=20480, 1561 minimum=8192) 1562 --with-pcre2grep-max-bufsize=N 1563 pcre2grep maximum buffer size (default=1048576, 1564 minimum=8192) 1565 --with-link-size=N internal link size (2, 3, or 4 allowed; default=2) 1566 --with-parens-nest-limit=N 1567 nested parentheses limit (default=250) 1568 --with-heap-limit=N default limit on heap memory (kibibytes, 1569 default=20000000) 1570 --with-match-limit=N default limit on internal looping (default=10000000) 1571 --with-match-limit-depth=N 1572 default limit on match tree depth 1573 (default=MATCH_LIMIT) 1574 1575 1576Some influential environment variables: 1577 CC C compiler command 1578 CFLAGS C compiler flags 1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1580 nonstandard directory <lib dir> 1581 LIBS libraries to pass to the linker, e.g. -l<library> 1582 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1583 you have headers in a nonstandard directory <include dir> 1584 CPP C preprocessor 1585 LT_SYS_LIBRARY_PATH 1586 User-defined run-time library search path. 1587 PKG_CONFIG path to pkg-config utility 1588 PKG_CONFIG_PATH 1589 directories to add to pkg-config's search path 1590 PKG_CONFIG_LIBDIR 1591 path overriding pkg-config's built-in search path 1592 VALGRIND_CFLAGS 1593 C compiler flags for VALGRIND, overriding pkg-config 1594 VALGRIND_LIBS 1595 linker flags for VALGRIND, overriding pkg-config 1596 LCOV the ltp lcov program 1597 GENHTML the ltp genhtml program 1598 1599Use these variables to override the choices made by `configure' or to help 1600it to find libraries and programs with nonstandard names/locations. 1601 1602Report bugs to the package provider. 1603_ACEOF 1604ac_status=$? 1605fi 1606 1607if test "$ac_init_help" = "recursive"; then 1608 # If there are subdirs, report their specific --help. 1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1610 test -d "$ac_dir" || 1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1612 continue 1613 ac_builddir=. 1614 1615case "$ac_dir" in 1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1617*) 1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1619 # A ".." for each directory in $ac_dir_suffix. 1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1621 case $ac_top_builddir_sub in 1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1624 esac ;; 1625esac 1626ac_abs_top_builddir=$ac_pwd 1627ac_abs_builddir=$ac_pwd$ac_dir_suffix 1628# for backward compatibility: 1629ac_top_builddir=$ac_top_build_prefix 1630 1631case $srcdir in 1632 .) # We are building in place. 1633 ac_srcdir=. 1634 ac_top_srcdir=$ac_top_builddir_sub 1635 ac_abs_top_srcdir=$ac_pwd ;; 1636 [\\/]* | ?:[\\/]* ) # Absolute name. 1637 ac_srcdir=$srcdir$ac_dir_suffix; 1638 ac_top_srcdir=$srcdir 1639 ac_abs_top_srcdir=$srcdir ;; 1640 *) # Relative name. 1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1642 ac_top_srcdir=$ac_top_build_prefix$srcdir 1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1644esac 1645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1646 1647 cd "$ac_dir" || { ac_status=$?; continue; } 1648 # Check for guested configure. 1649 if test -f "$ac_srcdir/configure.gnu"; then 1650 echo && 1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1652 elif test -f "$ac_srcdir/configure"; then 1653 echo && 1654 $SHELL "$ac_srcdir/configure" --help=recursive 1655 else 1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1657 fi || ac_status=$? 1658 cd "$ac_pwd" || { ac_status=$?; break; } 1659 done 1660fi 1661 1662test -n "$ac_init_help" && exit $ac_status 1663if $ac_init_version; then 1664 cat <<\_ACEOF 1665PCRE2 configure 10.33 1666generated by GNU Autoconf 2.69 1667 1668Copyright (C) 2012 Free Software Foundation, Inc. 1669This configure script is free software; the Free Software Foundation 1670gives unlimited permission to copy, distribute and modify it. 1671_ACEOF 1672 exit 1673fi 1674 1675## ------------------------ ## 1676## Autoconf initialization. ## 1677## ------------------------ ## 1678 1679# ac_fn_c_try_compile LINENO 1680# -------------------------- 1681# Try to compile conftest.$ac_ext, and return whether this succeeded. 1682ac_fn_c_try_compile () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 rm -f conftest.$ac_objext 1686 if { { ac_try="$ac_compile" 1687case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690esac 1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692$as_echo "$ac_try_echo"; } >&5 1693 (eval "$ac_compile") 2>conftest.err 1694 ac_status=$? 1695 if test -s conftest.err; then 1696 grep -v '^ *+' conftest.err >conftest.er1 1697 cat conftest.er1 >&5 1698 mv -f conftest.er1 conftest.err 1699 fi 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } && { 1702 test -z "$ac_c_werror_flag" || 1703 test ! -s conftest.err 1704 } && test -s conftest.$ac_objext; then : 1705 ac_retval=0 1706else 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=1 1711fi 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715} # ac_fn_c_try_compile 1716 1717# ac_fn_c_try_cpp LINENO 1718# ---------------------- 1719# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1720ac_fn_c_try_cpp () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 if { { ac_try="$ac_cpp conftest.$ac_ext" 1724case "(($ac_try" in 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1726 *) ac_try_echo=$ac_try;; 1727esac 1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1729$as_echo "$ac_try_echo"; } >&5 1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1731 ac_status=$? 1732 if test -s conftest.err; then 1733 grep -v '^ *+' conftest.err >conftest.er1 1734 cat conftest.er1 >&5 1735 mv -f conftest.er1 conftest.err 1736 fi 1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1738 test $ac_status = 0; } > conftest.i && { 1739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1740 test ! -s conftest.err 1741 }; then : 1742 ac_retval=0 1743else 1744 $as_echo "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=1 1748fi 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 as_fn_set_status $ac_retval 1751 1752} # ac_fn_c_try_cpp 1753 1754# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1755# ------------------------------------------------------- 1756# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1757# the include files in INCLUDES and setting the cache variable VAR 1758# accordingly. 1759ac_fn_c_check_header_mongrel () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 if eval \${$3+:} false; then : 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1764$as_echo_n "checking for $2... " >&6; } 1765if eval \${$3+:} false; then : 1766 $as_echo_n "(cached) " >&6 1767fi 1768eval ac_res=\$$3 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1770$as_echo "$ac_res" >&6; } 1771else 1772 # Is the header compilable? 1773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1774$as_echo_n "checking $2 usability... " >&6; } 1775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776/* end confdefs.h. */ 1777$4 1778#include <$2> 1779_ACEOF 1780if ac_fn_c_try_compile "$LINENO"; then : 1781 ac_header_compiler=yes 1782else 1783 ac_header_compiler=no 1784fi 1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1787$as_echo "$ac_header_compiler" >&6; } 1788 1789# Is the header present? 1790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1791$as_echo_n "checking $2 presence... " >&6; } 1792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1793/* end confdefs.h. */ 1794#include <$2> 1795_ACEOF 1796if ac_fn_c_try_cpp "$LINENO"; then : 1797 ac_header_preproc=yes 1798else 1799 ac_header_preproc=no 1800fi 1801rm -f conftest.err conftest.i conftest.$ac_ext 1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1803$as_echo "$ac_header_preproc" >&6; } 1804 1805# So? What about this header? 1806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1807 yes:no: ) 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1809$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1811$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1812 ;; 1813 no:yes:* ) 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1815$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1817$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1819$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1821$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1823$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1824 ;; 1825esac 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1827$as_echo_n "checking for $2... " >&6; } 1828if eval \${$3+:} false; then : 1829 $as_echo_n "(cached) " >&6 1830else 1831 eval "$3=\$ac_header_compiler" 1832fi 1833eval ac_res=\$$3 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1835$as_echo "$ac_res" >&6; } 1836fi 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 1839} # ac_fn_c_check_header_mongrel 1840 1841# ac_fn_c_try_run LINENO 1842# ---------------------- 1843# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1844# that executables *can* be run. 1845ac_fn_c_try_run () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 if { { ac_try="$ac_link" 1849case "(($ac_try" in 1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1851 *) ac_try_echo=$ac_try;; 1852esac 1853eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1854$as_echo "$ac_try_echo"; } >&5 1855 (eval "$ac_link") 2>&5 1856 ac_status=$? 1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1859 { { case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862esac 1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864$as_echo "$ac_try_echo"; } >&5 1865 (eval "$ac_try") 2>&5 1866 ac_status=$? 1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1868 test $ac_status = 0; }; }; then : 1869 ac_retval=0 1870else 1871 $as_echo "$as_me: program exited with status $ac_status" >&5 1872 $as_echo "$as_me: failed program was:" >&5 1873sed 's/^/| /' conftest.$ac_ext >&5 1874 1875 ac_retval=$ac_status 1876fi 1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1879 as_fn_set_status $ac_retval 1880 1881} # ac_fn_c_try_run 1882 1883# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1884# ------------------------------------------------------- 1885# Tests whether HEADER exists and can be compiled using the include files in 1886# INCLUDES, setting the cache variable VAR accordingly. 1887ac_fn_c_check_header_compile () 1888{ 1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1891$as_echo_n "checking for $2... " >&6; } 1892if eval \${$3+:} false; then : 1893 $as_echo_n "(cached) " >&6 1894else 1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1896/* end confdefs.h. */ 1897$4 1898#include <$2> 1899_ACEOF 1900if ac_fn_c_try_compile "$LINENO"; then : 1901 eval "$3=yes" 1902else 1903 eval "$3=no" 1904fi 1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1906fi 1907eval ac_res=\$$3 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1909$as_echo "$ac_res" >&6; } 1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1911 1912} # ac_fn_c_check_header_compile 1913 1914# ac_fn_c_find_intX_t LINENO BITS VAR 1915# ----------------------------------- 1916# Finds a signed integer type with width BITS, setting cache variable VAR 1917# accordingly. 1918ac_fn_c_find_intX_t () 1919{ 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 1922$as_echo_n "checking for int$2_t... " >&6; } 1923if eval \${$3+:} false; then : 1924 $as_echo_n "(cached) " >&6 1925else 1926 eval "$3=no" 1927 # Order is important - never check a type that is potentially smaller 1928 # than half of the expected target width. 1929 for ac_type in int$2_t 'int' 'long int' \ 1930 'long long int' 'short int' 'signed char'; do 1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932/* end confdefs.h. */ 1933$ac_includes_default 1934 enum { N = $2 / 2 - 1 }; 1935int 1936main () 1937{ 1938static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 1939test_array [0] = 0; 1940return test_array [0]; 1941 1942 ; 1943 return 0; 1944} 1945_ACEOF 1946if ac_fn_c_try_compile "$LINENO"; then : 1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1948/* end confdefs.h. */ 1949$ac_includes_default 1950 enum { N = $2 / 2 - 1 }; 1951int 1952main () 1953{ 1954static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 1955 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 1956test_array [0] = 0; 1957return test_array [0]; 1958 1959 ; 1960 return 0; 1961} 1962_ACEOF 1963if ac_fn_c_try_compile "$LINENO"; then : 1964 1965else 1966 case $ac_type in #( 1967 int$2_t) : 1968 eval "$3=yes" ;; #( 1969 *) : 1970 eval "$3=\$ac_type" ;; 1971esac 1972fi 1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1974fi 1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1976 if eval test \"x\$"$3"\" = x"no"; then : 1977 1978else 1979 break 1980fi 1981 done 1982fi 1983eval ac_res=\$$3 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1985$as_echo "$ac_res" >&6; } 1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1987 1988} # ac_fn_c_find_intX_t 1989 1990# ac_fn_c_try_link LINENO 1991# ----------------------- 1992# Try to link conftest.$ac_ext, and return whether this succeeded. 1993ac_fn_c_try_link () 1994{ 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 rm -f conftest.$ac_objext conftest$ac_exeext 1997 if { { ac_try="$ac_link" 1998case "(($ac_try" in 1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2000 *) ac_try_echo=$ac_try;; 2001esac 2002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2003$as_echo "$ac_try_echo"; } >&5 2004 (eval "$ac_link") 2>conftest.err 2005 ac_status=$? 2006 if test -s conftest.err; then 2007 grep -v '^ *+' conftest.err >conftest.er1 2008 cat conftest.er1 >&5 2009 mv -f conftest.er1 conftest.err 2010 fi 2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2012 test $ac_status = 0; } && { 2013 test -z "$ac_c_werror_flag" || 2014 test ! -s conftest.err 2015 } && test -s conftest$ac_exeext && { 2016 test "$cross_compiling" = yes || 2017 test -x conftest$ac_exeext 2018 }; then : 2019 ac_retval=0 2020else 2021 $as_echo "$as_me: failed program was:" >&5 2022sed 's/^/| /' conftest.$ac_ext >&5 2023 2024 ac_retval=1 2025fi 2026 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2027 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2028 # interfere with the next link command; also delete a directory that is 2029 # left behind by Apple's compiler. We do this before executing the actions. 2030 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2032 as_fn_set_status $ac_retval 2033 2034} # ac_fn_c_try_link 2035 2036# ac_fn_c_check_func LINENO FUNC VAR 2037# ---------------------------------- 2038# Tests whether FUNC exists, setting the cache variable VAR accordingly 2039ac_fn_c_check_func () 2040{ 2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2043$as_echo_n "checking for $2... " >&6; } 2044if eval \${$3+:} false; then : 2045 $as_echo_n "(cached) " >&6 2046else 2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2048/* end confdefs.h. */ 2049/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2050 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2051#define $2 innocuous_$2 2052 2053/* System header to define __stub macros and hopefully few prototypes, 2054 which can conflict with char $2 (); below. 2055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2056 <limits.h> exists even on freestanding compilers. */ 2057 2058#ifdef __STDC__ 2059# include <limits.h> 2060#else 2061# include <assert.h> 2062#endif 2063 2064#undef $2 2065 2066/* Override any GCC internal prototype to avoid an error. 2067 Use char because int might match the return type of a GCC 2068 builtin and then its argument prototype would still apply. */ 2069#ifdef __cplusplus 2070extern "C" 2071#endif 2072char $2 (); 2073/* The GNU C library defines this for functions which it implements 2074 to always fail with ENOSYS. Some functions are actually named 2075 something starting with __ and the normal name is an alias. */ 2076#if defined __stub_$2 || defined __stub___$2 2077choke me 2078#endif 2079 2080int 2081main () 2082{ 2083return $2 (); 2084 ; 2085 return 0; 2086} 2087_ACEOF 2088if ac_fn_c_try_link "$LINENO"; then : 2089 eval "$3=yes" 2090else 2091 eval "$3=no" 2092fi 2093rm -f core conftest.err conftest.$ac_objext \ 2094 conftest$ac_exeext conftest.$ac_ext 2095fi 2096eval ac_res=\$$3 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2098$as_echo "$ac_res" >&6; } 2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2100 2101} # ac_fn_c_check_func 2102 2103# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2104# ------------------------------------------- 2105# Tests whether TYPE exists after having included INCLUDES, setting cache 2106# variable VAR accordingly. 2107ac_fn_c_check_type () 2108{ 2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2111$as_echo_n "checking for $2... " >&6; } 2112if eval \${$3+:} false; then : 2113 $as_echo_n "(cached) " >&6 2114else 2115 eval "$3=no" 2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2117/* end confdefs.h. */ 2118$4 2119int 2120main () 2121{ 2122if (sizeof ($2)) 2123 return 0; 2124 ; 2125 return 0; 2126} 2127_ACEOF 2128if ac_fn_c_try_compile "$LINENO"; then : 2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2130/* end confdefs.h. */ 2131$4 2132int 2133main () 2134{ 2135if (sizeof (($2))) 2136 return 0; 2137 ; 2138 return 0; 2139} 2140_ACEOF 2141if ac_fn_c_try_compile "$LINENO"; then : 2142 2143else 2144 eval "$3=yes" 2145fi 2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2147fi 2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2149fi 2150eval ac_res=\$$3 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2152$as_echo "$ac_res" >&6; } 2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2154 2155} # ac_fn_c_check_type 2156cat >config.log <<_ACEOF 2157This file contains any messages produced by compilers while 2158running configure, to aid debugging if configure makes a mistake. 2159 2160It was created by PCRE2 $as_me 10.33, which was 2161generated by GNU Autoconf 2.69. Invocation command line was 2162 2163 $ $0 $@ 2164 2165_ACEOF 2166exec 5>>config.log 2167{ 2168cat <<_ASUNAME 2169## --------- ## 2170## Platform. ## 2171## --------- ## 2172 2173hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2174uname -m = `(uname -m) 2>/dev/null || echo unknown` 2175uname -r = `(uname -r) 2>/dev/null || echo unknown` 2176uname -s = `(uname -s) 2>/dev/null || echo unknown` 2177uname -v = `(uname -v) 2>/dev/null || echo unknown` 2178 2179/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2180/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2181 2182/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2183/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2184/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2185/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2186/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2187/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2188/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2189 2190_ASUNAME 2191 2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2193for as_dir in $PATH 2194do 2195 IFS=$as_save_IFS 2196 test -z "$as_dir" && as_dir=. 2197 $as_echo "PATH: $as_dir" 2198 done 2199IFS=$as_save_IFS 2200 2201} >&5 2202 2203cat >&5 <<_ACEOF 2204 2205 2206## ----------- ## 2207## Core tests. ## 2208## ----------- ## 2209 2210_ACEOF 2211 2212 2213# Keep a trace of the command line. 2214# Strip out --no-create and --no-recursion so they do not pile up. 2215# Strip out --silent because we don't want to record it for future runs. 2216# Also quote any args containing shell meta-characters. 2217# Make two passes to allow for proper duplicate-argument suppression. 2218ac_configure_args= 2219ac_configure_args0= 2220ac_configure_args1= 2221ac_must_keep_next=false 2222for ac_pass in 1 2 2223do 2224 for ac_arg 2225 do 2226 case $ac_arg in 2227 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2229 | -silent | --silent | --silen | --sile | --sil) 2230 continue ;; 2231 *\'*) 2232 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2233 esac 2234 case $ac_pass in 2235 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2236 2) 2237 as_fn_append ac_configure_args1 " '$ac_arg'" 2238 if test $ac_must_keep_next = true; then 2239 ac_must_keep_next=false # Got value, back to normal. 2240 else 2241 case $ac_arg in 2242 *=* | --config-cache | -C | -disable-* | --disable-* \ 2243 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2244 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2245 | -with-* | --with-* | -without-* | --without-* | --x) 2246 case "$ac_configure_args0 " in 2247 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2248 esac 2249 ;; 2250 -* ) ac_must_keep_next=true ;; 2251 esac 2252 fi 2253 as_fn_append ac_configure_args " '$ac_arg'" 2254 ;; 2255 esac 2256 done 2257done 2258{ ac_configure_args0=; unset ac_configure_args0;} 2259{ ac_configure_args1=; unset ac_configure_args1;} 2260 2261# When interrupted or exit'd, cleanup temporary files, and complete 2262# config.log. We remove comments because anyway the quotes in there 2263# would cause problems or look ugly. 2264# WARNING: Use '\'' to represent an apostrophe within the trap. 2265# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2266trap 'exit_status=$? 2267 # Save into config.log some information that might help in debugging. 2268 { 2269 echo 2270 2271 $as_echo "## ---------------- ## 2272## Cache variables. ## 2273## ---------------- ##" 2274 echo 2275 # The following way of writing the cache mishandles newlines in values, 2276( 2277 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2278 eval ac_val=\$$ac_var 2279 case $ac_val in #( 2280 *${as_nl}*) 2281 case $ac_var in #( 2282 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2283$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2284 esac 2285 case $ac_var in #( 2286 _ | IFS | as_nl) ;; #( 2287 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2288 *) { eval $ac_var=; unset $ac_var;} ;; 2289 esac ;; 2290 esac 2291 done 2292 (set) 2>&1 | 2293 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2294 *${as_nl}ac_space=\ *) 2295 sed -n \ 2296 "s/'\''/'\''\\\\'\'''\''/g; 2297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2298 ;; #( 2299 *) 2300 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2301 ;; 2302 esac | 2303 sort 2304) 2305 echo 2306 2307 $as_echo "## ----------------- ## 2308## Output variables. ## 2309## ----------------- ##" 2310 echo 2311 for ac_var in $ac_subst_vars 2312 do 2313 eval ac_val=\$$ac_var 2314 case $ac_val in 2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2316 esac 2317 $as_echo "$ac_var='\''$ac_val'\''" 2318 done | sort 2319 echo 2320 2321 if test -n "$ac_subst_files"; then 2322 $as_echo "## ------------------- ## 2323## File substitutions. ## 2324## ------------------- ##" 2325 echo 2326 for ac_var in $ac_subst_files 2327 do 2328 eval ac_val=\$$ac_var 2329 case $ac_val in 2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2331 esac 2332 $as_echo "$ac_var='\''$ac_val'\''" 2333 done | sort 2334 echo 2335 fi 2336 2337 if test -s confdefs.h; then 2338 $as_echo "## ----------- ## 2339## confdefs.h. ## 2340## ----------- ##" 2341 echo 2342 cat confdefs.h 2343 echo 2344 fi 2345 test "$ac_signal" != 0 && 2346 $as_echo "$as_me: caught signal $ac_signal" 2347 $as_echo "$as_me: exit $exit_status" 2348 } >&5 2349 rm -f core *.core core.conftest.* && 2350 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2351 exit $exit_status 2352' 0 2353for ac_signal in 1 2 13 15; do 2354 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2355done 2356ac_signal=0 2357 2358# confdefs.h avoids OS command line length limits that DEFS can exceed. 2359rm -f -r conftest* confdefs.h 2360 2361$as_echo "/* confdefs.h */" > confdefs.h 2362 2363# Predefined preprocessor variables. 2364 2365cat >>confdefs.h <<_ACEOF 2366#define PACKAGE_NAME "$PACKAGE_NAME" 2367_ACEOF 2368 2369cat >>confdefs.h <<_ACEOF 2370#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2371_ACEOF 2372 2373cat >>confdefs.h <<_ACEOF 2374#define PACKAGE_VERSION "$PACKAGE_VERSION" 2375_ACEOF 2376 2377cat >>confdefs.h <<_ACEOF 2378#define PACKAGE_STRING "$PACKAGE_STRING" 2379_ACEOF 2380 2381cat >>confdefs.h <<_ACEOF 2382#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2383_ACEOF 2384 2385cat >>confdefs.h <<_ACEOF 2386#define PACKAGE_URL "$PACKAGE_URL" 2387_ACEOF 2388 2389 2390# Let the site file select an alternate cache file if it wants to. 2391# Prefer an explicitly selected file to automatically selected ones. 2392ac_site_file1=NONE 2393ac_site_file2=NONE 2394if test -n "$CONFIG_SITE"; then 2395 # We do not want a PATH search for config.site. 2396 case $CONFIG_SITE in #(( 2397 -*) ac_site_file1=./$CONFIG_SITE;; 2398 */*) ac_site_file1=$CONFIG_SITE;; 2399 *) ac_site_file1=./$CONFIG_SITE;; 2400 esac 2401elif test "x$prefix" != xNONE; then 2402 ac_site_file1=$prefix/share/config.site 2403 ac_site_file2=$prefix/etc/config.site 2404else 2405 ac_site_file1=$ac_default_prefix/share/config.site 2406 ac_site_file2=$ac_default_prefix/etc/config.site 2407fi 2408for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2409do 2410 test "x$ac_site_file" = xNONE && continue 2411 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2413$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2414 sed 's/^/| /' "$ac_site_file" >&5 2415 . "$ac_site_file" \ 2416 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2418as_fn_error $? "failed to load site script $ac_site_file 2419See \`config.log' for more details" "$LINENO" 5; } 2420 fi 2421done 2422 2423if test -r "$cache_file"; then 2424 # Some versions of bash will fail to source /dev/null (special files 2425 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2426 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2428$as_echo "$as_me: loading cache $cache_file" >&6;} 2429 case $cache_file in 2430 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2431 *) . "./$cache_file";; 2432 esac 2433 fi 2434else 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2436$as_echo "$as_me: creating cache $cache_file" >&6;} 2437 >$cache_file 2438fi 2439 2440# Check that the precious variables saved in the cache have kept the same 2441# value. 2442ac_cache_corrupted=false 2443for ac_var in $ac_precious_vars; do 2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2445 eval ac_new_set=\$ac_env_${ac_var}_set 2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2447 eval ac_new_val=\$ac_env_${ac_var}_value 2448 case $ac_old_set,$ac_new_set in 2449 set,) 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2451$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2452 ac_cache_corrupted=: ;; 2453 ,set) 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2455$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2456 ac_cache_corrupted=: ;; 2457 ,);; 2458 *) 2459 if test "x$ac_old_val" != "x$ac_new_val"; then 2460 # differences in whitespace do not lead to failure. 2461 ac_old_val_w=`echo x $ac_old_val` 2462 ac_new_val_w=`echo x $ac_new_val` 2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2465$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2466 ac_cache_corrupted=: 2467 else 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2469$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2470 eval $ac_var=\$ac_old_val 2471 fi 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2473$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2475$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2476 fi;; 2477 esac 2478 # Pass precious variables to config.status. 2479 if test "$ac_new_set" = set; then 2480 case $ac_new_val in 2481 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2482 *) ac_arg=$ac_var=$ac_new_val ;; 2483 esac 2484 case " $ac_configure_args " in 2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2486 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2487 esac 2488 fi 2489done 2490if $ac_cache_corrupted; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2494$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2495 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2496fi 2497## -------------------- ## 2498## Main body of script. ## 2499## -------------------- ## 2500 2501ac_ext=c 2502ac_cpp='$CPP $CPPFLAGS' 2503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2505ac_compiler_gnu=$ac_cv_c_compiler_gnu 2506 2507 2508 2509am__api_version='1.16' 2510 2511ac_aux_dir= 2512for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2513 if test -f "$ac_dir/install-sh"; then 2514 ac_aux_dir=$ac_dir 2515 ac_install_sh="$ac_aux_dir/install-sh -c" 2516 break 2517 elif test -f "$ac_dir/install.sh"; then 2518 ac_aux_dir=$ac_dir 2519 ac_install_sh="$ac_aux_dir/install.sh -c" 2520 break 2521 elif test -f "$ac_dir/shtool"; then 2522 ac_aux_dir=$ac_dir 2523 ac_install_sh="$ac_aux_dir/shtool install -c" 2524 break 2525 fi 2526done 2527if test -z "$ac_aux_dir"; then 2528 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2529fi 2530 2531# These three variables are undocumented and unsupported, 2532# and are intended to be withdrawn in a future Autoconf release. 2533# They can cause serious problems if a builder's source tree is in a directory 2534# whose full name contains unusual characters. 2535ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2536ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2537ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2538 2539 2540# Find a good install program. We prefer a C program (faster), 2541# so one script is as good as another. But avoid the broken or 2542# incompatible versions: 2543# SysV /etc/install, /usr/sbin/install 2544# SunOS /usr/etc/install 2545# IRIX /sbin/install 2546# AIX /bin/install 2547# AmigaOS /C/install, which installs bootblocks on floppy discs 2548# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2549# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2550# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2551# OS/2's system install, which has a completely different semantic 2552# ./install, which can be erroneously created by make from ./install.sh. 2553# Reject install programs that cannot install multiple files. 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2555$as_echo_n "checking for a BSD-compatible install... " >&6; } 2556if test -z "$INSTALL"; then 2557if ${ac_cv_path_install+:} false; then : 2558 $as_echo_n "(cached) " >&6 2559else 2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2561for as_dir in $PATH 2562do 2563 IFS=$as_save_IFS 2564 test -z "$as_dir" && as_dir=. 2565 # Account for people who put trailing slashes in PATH elements. 2566case $as_dir/ in #(( 2567 ./ | .// | /[cC]/* | \ 2568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2569 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2570 /usr/ucb/* ) ;; 2571 *) 2572 # OSF1 and SCO ODT 3.0 have their own names for install. 2573 # Don't use installbsd from OSF since it installs stuff as root 2574 # by default. 2575 for ac_prog in ginstall scoinst install; do 2576 for ac_exec_ext in '' $ac_executable_extensions; do 2577 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2578 if test $ac_prog = install && 2579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2580 # AIX install. It has an incompatible calling convention. 2581 : 2582 elif test $ac_prog = install && 2583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2584 # program-specific install script used by HP pwplus--don't use. 2585 : 2586 else 2587 rm -rf conftest.one conftest.two conftest.dir 2588 echo one > conftest.one 2589 echo two > conftest.two 2590 mkdir conftest.dir 2591 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2592 test -s conftest.one && test -s conftest.two && 2593 test -s conftest.dir/conftest.one && 2594 test -s conftest.dir/conftest.two 2595 then 2596 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2597 break 3 2598 fi 2599 fi 2600 fi 2601 done 2602 done 2603 ;; 2604esac 2605 2606 done 2607IFS=$as_save_IFS 2608 2609rm -rf conftest.one conftest.two conftest.dir 2610 2611fi 2612 if test "${ac_cv_path_install+set}" = set; then 2613 INSTALL=$ac_cv_path_install 2614 else 2615 # As a last resort, use the slow shell script. Don't cache a 2616 # value for INSTALL within a source directory, because that will 2617 # break other packages using the cache if that directory is 2618 # removed, or if the value is a relative name. 2619 INSTALL=$ac_install_sh 2620 fi 2621fi 2622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2623$as_echo "$INSTALL" >&6; } 2624 2625# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2626# It thinks the first close brace ends the variable substitution. 2627test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2628 2629test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2630 2631test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2632 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2634$as_echo_n "checking whether build environment is sane... " >&6; } 2635# Reject unsafe characters in $srcdir or the absolute working directory 2636# name. Accept space and tab only in the latter. 2637am_lf=' 2638' 2639case `pwd` in 2640 *[\\\"\#\$\&\'\`$am_lf]*) 2641 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2642esac 2643case $srcdir in 2644 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2645 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2646esac 2647 2648# Do 'set' in a subshell so we don't clobber the current shell's 2649# arguments. Must try -L first in case configure is actually a 2650# symlink; some systems play weird games with the mod time of symlinks 2651# (eg FreeBSD returns the mod time of the symlink's containing 2652# directory). 2653if ( 2654 am_has_slept=no 2655 for am_try in 1 2; do 2656 echo "timestamp, slept: $am_has_slept" > conftest.file 2657 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2658 if test "$*" = "X"; then 2659 # -L didn't work. 2660 set X `ls -t "$srcdir/configure" conftest.file` 2661 fi 2662 if test "$*" != "X $srcdir/configure conftest.file" \ 2663 && test "$*" != "X conftest.file $srcdir/configure"; then 2664 2665 # If neither matched, then we have a broken ls. This can happen 2666 # if, for instance, CONFIG_SHELL is bash and it inherits a 2667 # broken ls alias from the environment. This has actually 2668 # happened. Such a system could not be considered "sane". 2669 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2670 alias in your environment" "$LINENO" 5 2671 fi 2672 if test "$2" = conftest.file || test $am_try -eq 2; then 2673 break 2674 fi 2675 # Just in case. 2676 sleep 1 2677 am_has_slept=yes 2678 done 2679 test "$2" = conftest.file 2680 ) 2681then 2682 # Ok. 2683 : 2684else 2685 as_fn_error $? "newly created file is older than distributed files! 2686Check your system clock" "$LINENO" 5 2687fi 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2689$as_echo "yes" >&6; } 2690# If we didn't sleep, we still need to ensure time stamps of config.status and 2691# generated files are strictly newer. 2692am_sleep_pid= 2693if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2694 ( sleep 1 ) & 2695 am_sleep_pid=$! 2696fi 2697 2698rm -f conftest.file 2699 2700test "$program_prefix" != NONE && 2701 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2702# Use a double $ so make ignores it. 2703test "$program_suffix" != NONE && 2704 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2705# Double any \ or $. 2706# By default was `s,x,x', remove it if useless. 2707ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2708program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2709 2710# Expand $ac_aux_dir to an absolute path. 2711am_aux_dir=`cd "$ac_aux_dir" && pwd` 2712 2713if test x"${MISSING+set}" != xset; then 2714 case $am_aux_dir in 2715 *\ * | *\ *) 2716 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2717 *) 2718 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2719 esac 2720fi 2721# Use eval to expand $SHELL 2722if eval "$MISSING --is-lightweight"; then 2723 am_missing_run="$MISSING " 2724else 2725 am_missing_run= 2726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2727$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2728fi 2729 2730if test x"${install_sh+set}" != xset; then 2731 case $am_aux_dir in 2732 *\ * | *\ *) 2733 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2734 *) 2735 install_sh="\${SHELL} $am_aux_dir/install-sh" 2736 esac 2737fi 2738 2739# Installed binaries are usually stripped using 'strip' when the user 2740# run "make install-strip". However 'strip' might not be the right 2741# tool to use in cross-compilation environments, therefore Automake 2742# will honor the 'STRIP' environment variable to overrule this program. 2743if test "$cross_compiling" != no; then 2744 if test -n "$ac_tool_prefix"; then 2745 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2746set dummy ${ac_tool_prefix}strip; ac_word=$2 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2748$as_echo_n "checking for $ac_word... " >&6; } 2749if ${ac_cv_prog_STRIP+:} false; then : 2750 $as_echo_n "(cached) " >&6 2751else 2752 if test -n "$STRIP"; then 2753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2754else 2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2756for as_dir in $PATH 2757do 2758 IFS=$as_save_IFS 2759 test -z "$as_dir" && as_dir=. 2760 for ac_exec_ext in '' $ac_executable_extensions; do 2761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2762 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2764 break 2 2765 fi 2766done 2767 done 2768IFS=$as_save_IFS 2769 2770fi 2771fi 2772STRIP=$ac_cv_prog_STRIP 2773if test -n "$STRIP"; then 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2775$as_echo "$STRIP" >&6; } 2776else 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2778$as_echo "no" >&6; } 2779fi 2780 2781 2782fi 2783if test -z "$ac_cv_prog_STRIP"; then 2784 ac_ct_STRIP=$STRIP 2785 # Extract the first word of "strip", so it can be a program name with args. 2786set dummy strip; ac_word=$2 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2788$as_echo_n "checking for $ac_word... " >&6; } 2789if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2790 $as_echo_n "(cached) " >&6 2791else 2792 if test -n "$ac_ct_STRIP"; then 2793 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2794else 2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2796for as_dir in $PATH 2797do 2798 IFS=$as_save_IFS 2799 test -z "$as_dir" && as_dir=. 2800 for ac_exec_ext in '' $ac_executable_extensions; do 2801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2802 ac_cv_prog_ac_ct_STRIP="strip" 2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2804 break 2 2805 fi 2806done 2807 done 2808IFS=$as_save_IFS 2809 2810fi 2811fi 2812ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2813if test -n "$ac_ct_STRIP"; then 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2815$as_echo "$ac_ct_STRIP" >&6; } 2816else 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2818$as_echo "no" >&6; } 2819fi 2820 2821 if test "x$ac_ct_STRIP" = x; then 2822 STRIP=":" 2823 else 2824 case $cross_compiling:$ac_tool_warned in 2825yes:) 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2828ac_tool_warned=yes ;; 2829esac 2830 STRIP=$ac_ct_STRIP 2831 fi 2832else 2833 STRIP="$ac_cv_prog_STRIP" 2834fi 2835 2836fi 2837INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2838 2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2840$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2841if test -z "$MKDIR_P"; then 2842 if ${ac_cv_path_mkdir+:} false; then : 2843 $as_echo_n "(cached) " >&6 2844else 2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2846for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2847do 2848 IFS=$as_save_IFS 2849 test -z "$as_dir" && as_dir=. 2850 for ac_prog in mkdir gmkdir; do 2851 for ac_exec_ext in '' $ac_executable_extensions; do 2852 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2853 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2854 'mkdir (GNU coreutils) '* | \ 2855 'mkdir (coreutils) '* | \ 2856 'mkdir (fileutils) '4.1*) 2857 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2858 break 3;; 2859 esac 2860 done 2861 done 2862 done 2863IFS=$as_save_IFS 2864 2865fi 2866 2867 test -d ./--version && rmdir ./--version 2868 if test "${ac_cv_path_mkdir+set}" = set; then 2869 MKDIR_P="$ac_cv_path_mkdir -p" 2870 else 2871 # As a last resort, use the slow shell script. Don't cache a 2872 # value for MKDIR_P within a source directory, because that will 2873 # break other packages using the cache if that directory is 2874 # removed, or if the value is a relative name. 2875 MKDIR_P="$ac_install_sh -d" 2876 fi 2877fi 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2879$as_echo "$MKDIR_P" >&6; } 2880 2881for ac_prog in gawk mawk nawk awk 2882do 2883 # Extract the first word of "$ac_prog", so it can be a program name with args. 2884set dummy $ac_prog; ac_word=$2 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2886$as_echo_n "checking for $ac_word... " >&6; } 2887if ${ac_cv_prog_AWK+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 if test -n "$AWK"; then 2891 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2892else 2893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894for as_dir in $PATH 2895do 2896 IFS=$as_save_IFS 2897 test -z "$as_dir" && as_dir=. 2898 for ac_exec_ext in '' $ac_executable_extensions; do 2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2900 ac_cv_prog_AWK="$ac_prog" 2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2902 break 2 2903 fi 2904done 2905 done 2906IFS=$as_save_IFS 2907 2908fi 2909fi 2910AWK=$ac_cv_prog_AWK 2911if test -n "$AWK"; then 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2913$as_echo "$AWK" >&6; } 2914else 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2916$as_echo "no" >&6; } 2917fi 2918 2919 2920 test -n "$AWK" && break 2921done 2922 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2924$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2925set x ${MAKE-make} 2926ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2927if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2928 $as_echo_n "(cached) " >&6 2929else 2930 cat >conftest.make <<\_ACEOF 2931SHELL = /bin/sh 2932all: 2933 @echo '@@@%%%=$(MAKE)=@@@%%%' 2934_ACEOF 2935# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2936case `${MAKE-make} -f conftest.make 2>/dev/null` in 2937 *@@@%%%=?*=@@@%%%*) 2938 eval ac_cv_prog_make_${ac_make}_set=yes;; 2939 *) 2940 eval ac_cv_prog_make_${ac_make}_set=no;; 2941esac 2942rm -f conftest.make 2943fi 2944if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2946$as_echo "yes" >&6; } 2947 SET_MAKE= 2948else 2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2950$as_echo "no" >&6; } 2951 SET_MAKE="MAKE=${MAKE-make}" 2952fi 2953 2954rm -rf .tst 2>/dev/null 2955mkdir .tst 2>/dev/null 2956if test -d .tst; then 2957 am__leading_dot=. 2958else 2959 am__leading_dot=_ 2960fi 2961rmdir .tst 2>/dev/null 2962 2963# Check whether --enable-silent-rules was given. 2964if test "${enable_silent_rules+set}" = set; then : 2965 enableval=$enable_silent_rules; 2966fi 2967 2968case $enable_silent_rules in # ((( 2969 yes) AM_DEFAULT_VERBOSITY=0;; 2970 no) AM_DEFAULT_VERBOSITY=1;; 2971 *) AM_DEFAULT_VERBOSITY=1;; 2972esac 2973am_make=${MAKE-make} 2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2975$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2976if ${am_cv_make_support_nested_variables+:} false; then : 2977 $as_echo_n "(cached) " >&6 2978else 2979 if $as_echo 'TRUE=$(BAR$(V)) 2980BAR0=false 2981BAR1=true 2982V=1 2983am__doit: 2984 @$(TRUE) 2985.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2986 am_cv_make_support_nested_variables=yes 2987else 2988 am_cv_make_support_nested_variables=no 2989fi 2990fi 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2992$as_echo "$am_cv_make_support_nested_variables" >&6; } 2993if test $am_cv_make_support_nested_variables = yes; then 2994 AM_V='$(V)' 2995 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2996else 2997 AM_V=$AM_DEFAULT_VERBOSITY 2998 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2999fi 3000AM_BACKSLASH='\' 3001 3002if test "`cd $srcdir && pwd`" != "`pwd`"; then 3003 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3004 # is not polluted with repeated "-I." 3005 am__isrc=' -I$(srcdir)' 3006 # test to see if srcdir already configured 3007 if test -f $srcdir/config.status; then 3008 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3009 fi 3010fi 3011 3012# test whether we have cygpath 3013if test -z "$CYGPATH_W"; then 3014 if (cygpath --version) >/dev/null 2>/dev/null; then 3015 CYGPATH_W='cygpath -w' 3016 else 3017 CYGPATH_W=echo 3018 fi 3019fi 3020 3021 3022# Define the identity of the package. 3023 PACKAGE='pcre2' 3024 VERSION='10.33' 3025 3026 3027cat >>confdefs.h <<_ACEOF 3028#define PACKAGE "$PACKAGE" 3029_ACEOF 3030 3031 3032cat >>confdefs.h <<_ACEOF 3033#define VERSION "$VERSION" 3034_ACEOF 3035 3036# Some tools Automake needs. 3037 3038ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3039 3040 3041AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3042 3043 3044AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3045 3046 3047AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3048 3049 3050MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3051 3052# For better backward compatibility. To be removed once Automake 1.9.x 3053# dies out for good. For more background, see: 3054# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3055# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3056mkdir_p='$(MKDIR_P)' 3057 3058# We need awk for the "check" target (and possibly the TAP driver). The 3059# system "awk" is bad on some platforms. 3060# Always define AMTAR for backward compatibility. Yes, it's still used 3061# in the wild :-( We should find a proper way to deprecate it ... 3062AMTAR='$${TAR-tar}' 3063 3064 3065# We'll loop over all known methods to create a tar archive until one works. 3066_am_tools='gnutar pax cpio none' 3067 3068am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3069 3070 3071 3072 3073 3074 3075# POSIX will say in a future version that running "rm -f" with no argument 3076# is OK; and we want to be able to make that assumption in our Makefile 3077# recipes. So use an aggressive probe to check that the usage we want is 3078# actually supported "in the wild" to an acceptable degree. 3079# See automake bug#10828. 3080# To make any issue more visible, cause the running configure to be aborted 3081# by default if the 'rm' program in use doesn't match our expectations; the 3082# user can still override this though. 3083if rm -f && rm -fr && rm -rf; then : OK; else 3084 cat >&2 <<'END' 3085Oops! 3086 3087Your 'rm' program seems unable to run without file operands specified 3088on the command line, even when the '-f' option is present. This is contrary 3089to the behaviour of most rm programs out there, and not conforming with 3090the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3091 3092Please tell bug-automake@gnu.org about your system, including the value 3093of your $PATH and any error possibly output before this message. This 3094can help us improve future automake versions. 3095 3096END 3097 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3098 echo 'Configuration will proceed anyway, since you have set the' >&2 3099 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3100 echo >&2 3101 else 3102 cat >&2 <<'END' 3103Aborting the configuration process, to ensure you take notice of the issue. 3104 3105You can download and install GNU coreutils to get an 'rm' implementation 3106that behaves properly: <https://www.gnu.org/software/coreutils/>. 3107 3108If you want to complete the configuration process using your problematic 3109'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3110to "yes", and re-run configure. 3111 3112END 3113 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3114 fi 3115fi 3116 3117# Check whether --enable-silent-rules was given. 3118if test "${enable_silent_rules+set}" = set; then : 3119 enableval=$enable_silent_rules; 3120fi 3121 3122case $enable_silent_rules in # ((( 3123 yes) AM_DEFAULT_VERBOSITY=0;; 3124 no) AM_DEFAULT_VERBOSITY=1;; 3125 *) AM_DEFAULT_VERBOSITY=0;; 3126esac 3127am_make=${MAKE-make} 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3129$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3130if ${am_cv_make_support_nested_variables+:} false; then : 3131 $as_echo_n "(cached) " >&6 3132else 3133 if $as_echo 'TRUE=$(BAR$(V)) 3134BAR0=false 3135BAR1=true 3136V=1 3137am__doit: 3138 @$(TRUE) 3139.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3140 am_cv_make_support_nested_variables=yes 3141else 3142 am_cv_make_support_nested_variables=no 3143fi 3144fi 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3146$as_echo "$am_cv_make_support_nested_variables" >&6; } 3147if test $am_cv_make_support_nested_variables = yes; then 3148 AM_V='$(V)' 3149 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3150else 3151 AM_V=$AM_DEFAULT_VERBOSITY 3152 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3153fi 3154AM_BACKSLASH='\' 3155 3156ac_config_headers="$ac_config_headers src/config.h" 3157 3158 3159# This was added at the suggestion of libtoolize (03-Jan-10) 3160 3161 3162# The default CFLAGS in Autoconf are "-g -O2" for gcc and just "-g" for any 3163# other compiler. There doesn't seem to be a standard way of getting rid of the 3164# -g (which I don't think is needed for a production library). This fudge seems 3165# to achieve the necessary. First, we remember the externally set values of 3166# CFLAGS. Then call the AC_PROG_CC macro to find the compiler - if CFLAGS is 3167# not set, it will be set to Autoconf's defaults. Afterwards, if the original 3168# values were not set, remove the -g from the Autoconf defaults. 3169 3170remember_set_CFLAGS="$CFLAGS" 3171 3172ac_ext=c 3173ac_cpp='$CPP $CPPFLAGS' 3174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3176ac_compiler_gnu=$ac_cv_c_compiler_gnu 3177if test -n "$ac_tool_prefix"; then 3178 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3179set dummy ${ac_tool_prefix}gcc; ac_word=$2 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3181$as_echo_n "checking for $ac_word... " >&6; } 3182if ${ac_cv_prog_CC+:} false; then : 3183 $as_echo_n "(cached) " >&6 3184else 3185 if test -n "$CC"; then 3186 ac_cv_prog_CC="$CC" # Let the user override the test. 3187else 3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3189for as_dir in $PATH 3190do 3191 IFS=$as_save_IFS 3192 test -z "$as_dir" && as_dir=. 3193 for ac_exec_ext in '' $ac_executable_extensions; do 3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3195 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3197 break 2 3198 fi 3199done 3200 done 3201IFS=$as_save_IFS 3202 3203fi 3204fi 3205CC=$ac_cv_prog_CC 3206if test -n "$CC"; then 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3208$as_echo "$CC" >&6; } 3209else 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3211$as_echo "no" >&6; } 3212fi 3213 3214 3215fi 3216if test -z "$ac_cv_prog_CC"; then 3217 ac_ct_CC=$CC 3218 # Extract the first word of "gcc", so it can be a program name with args. 3219set dummy gcc; ac_word=$2 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3221$as_echo_n "checking for $ac_word... " >&6; } 3222if ${ac_cv_prog_ac_ct_CC+:} false; then : 3223 $as_echo_n "(cached) " >&6 3224else 3225 if test -n "$ac_ct_CC"; then 3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3227else 3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3229for as_dir in $PATH 3230do 3231 IFS=$as_save_IFS 3232 test -z "$as_dir" && as_dir=. 3233 for ac_exec_ext in '' $ac_executable_extensions; do 3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3235 ac_cv_prog_ac_ct_CC="gcc" 3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3237 break 2 3238 fi 3239done 3240 done 3241IFS=$as_save_IFS 3242 3243fi 3244fi 3245ac_ct_CC=$ac_cv_prog_ac_ct_CC 3246if test -n "$ac_ct_CC"; then 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3248$as_echo "$ac_ct_CC" >&6; } 3249else 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3251$as_echo "no" >&6; } 3252fi 3253 3254 if test "x$ac_ct_CC" = x; then 3255 CC="" 3256 else 3257 case $cross_compiling:$ac_tool_warned in 3258yes:) 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3261ac_tool_warned=yes ;; 3262esac 3263 CC=$ac_ct_CC 3264 fi 3265else 3266 CC="$ac_cv_prog_CC" 3267fi 3268 3269if test -z "$CC"; then 3270 if test -n "$ac_tool_prefix"; then 3271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3272set dummy ${ac_tool_prefix}cc; ac_word=$2 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3274$as_echo_n "checking for $ac_word... " >&6; } 3275if ${ac_cv_prog_CC+:} false; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 if test -n "$CC"; then 3279 ac_cv_prog_CC="$CC" # Let the user override the test. 3280else 3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3282for as_dir in $PATH 3283do 3284 IFS=$as_save_IFS 3285 test -z "$as_dir" && as_dir=. 3286 for ac_exec_ext in '' $ac_executable_extensions; do 3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3288 ac_cv_prog_CC="${ac_tool_prefix}cc" 3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3290 break 2 3291 fi 3292done 3293 done 3294IFS=$as_save_IFS 3295 3296fi 3297fi 3298CC=$ac_cv_prog_CC 3299if test -n "$CC"; then 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3301$as_echo "$CC" >&6; } 3302else 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3304$as_echo "no" >&6; } 3305fi 3306 3307 3308 fi 3309fi 3310if test -z "$CC"; then 3311 # Extract the first word of "cc", so it can be a program name with args. 3312set dummy cc; ac_word=$2 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3314$as_echo_n "checking for $ac_word... " >&6; } 3315if ${ac_cv_prog_CC+:} false; then : 3316 $as_echo_n "(cached) " >&6 3317else 3318 if test -n "$CC"; then 3319 ac_cv_prog_CC="$CC" # Let the user override the test. 3320else 3321 ac_prog_rejected=no 3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3323for as_dir in $PATH 3324do 3325 IFS=$as_save_IFS 3326 test -z "$as_dir" && as_dir=. 3327 for ac_exec_ext in '' $ac_executable_extensions; do 3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3329 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3330 ac_prog_rejected=yes 3331 continue 3332 fi 3333 ac_cv_prog_CC="cc" 3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3335 break 2 3336 fi 3337done 3338 done 3339IFS=$as_save_IFS 3340 3341if test $ac_prog_rejected = yes; then 3342 # We found a bogon in the path, so make sure we never use it. 3343 set dummy $ac_cv_prog_CC 3344 shift 3345 if test $# != 0; then 3346 # We chose a different compiler from the bogus one. 3347 # However, it has the same basename, so the bogon will be chosen 3348 # first if we set CC to just the basename; use the full file name. 3349 shift 3350 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3351 fi 3352fi 3353fi 3354fi 3355CC=$ac_cv_prog_CC 3356if test -n "$CC"; then 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3358$as_echo "$CC" >&6; } 3359else 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3361$as_echo "no" >&6; } 3362fi 3363 3364 3365fi 3366if test -z "$CC"; then 3367 if test -n "$ac_tool_prefix"; then 3368 for ac_prog in cl.exe 3369 do 3370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3371set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3373$as_echo_n "checking for $ac_word... " >&6; } 3374if ${ac_cv_prog_CC+:} false; then : 3375 $as_echo_n "(cached) " >&6 3376else 3377 if test -n "$CC"; then 3378 ac_cv_prog_CC="$CC" # Let the user override the test. 3379else 3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3381for as_dir in $PATH 3382do 3383 IFS=$as_save_IFS 3384 test -z "$as_dir" && as_dir=. 3385 for ac_exec_ext in '' $ac_executable_extensions; do 3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3387 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3389 break 2 3390 fi 3391done 3392 done 3393IFS=$as_save_IFS 3394 3395fi 3396fi 3397CC=$ac_cv_prog_CC 3398if test -n "$CC"; then 3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3400$as_echo "$CC" >&6; } 3401else 3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3403$as_echo "no" >&6; } 3404fi 3405 3406 3407 test -n "$CC" && break 3408 done 3409fi 3410if test -z "$CC"; then 3411 ac_ct_CC=$CC 3412 for ac_prog in cl.exe 3413do 3414 # Extract the first word of "$ac_prog", so it can be a program name with args. 3415set dummy $ac_prog; ac_word=$2 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3417$as_echo_n "checking for $ac_word... " >&6; } 3418if ${ac_cv_prog_ac_ct_CC+:} false; then : 3419 $as_echo_n "(cached) " >&6 3420else 3421 if test -n "$ac_ct_CC"; then 3422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3423else 3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3425for as_dir in $PATH 3426do 3427 IFS=$as_save_IFS 3428 test -z "$as_dir" && as_dir=. 3429 for ac_exec_ext in '' $ac_executable_extensions; do 3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3431 ac_cv_prog_ac_ct_CC="$ac_prog" 3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3433 break 2 3434 fi 3435done 3436 done 3437IFS=$as_save_IFS 3438 3439fi 3440fi 3441ac_ct_CC=$ac_cv_prog_ac_ct_CC 3442if test -n "$ac_ct_CC"; then 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3444$as_echo "$ac_ct_CC" >&6; } 3445else 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3447$as_echo "no" >&6; } 3448fi 3449 3450 3451 test -n "$ac_ct_CC" && break 3452done 3453 3454 if test "x$ac_ct_CC" = x; then 3455 CC="" 3456 else 3457 case $cross_compiling:$ac_tool_warned in 3458yes:) 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3461ac_tool_warned=yes ;; 3462esac 3463 CC=$ac_ct_CC 3464 fi 3465fi 3466 3467fi 3468 3469 3470test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3472as_fn_error $? "no acceptable C compiler found in \$PATH 3473See \`config.log' for more details" "$LINENO" 5; } 3474 3475# Provide some information about the compiler. 3476$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3477set X $ac_compile 3478ac_compiler=$2 3479for ac_option in --version -v -V -qversion; do 3480 { { ac_try="$ac_compiler $ac_option >&5" 3481case "(($ac_try" in 3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3483 *) ac_try_echo=$ac_try;; 3484esac 3485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3486$as_echo "$ac_try_echo"; } >&5 3487 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3488 ac_status=$? 3489 if test -s conftest.err; then 3490 sed '10a\ 3491... rest of stderr output deleted ... 3492 10q' conftest.err >conftest.er1 3493 cat conftest.er1 >&5 3494 fi 3495 rm -f conftest.er1 conftest.err 3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3497 test $ac_status = 0; } 3498done 3499 3500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502 3503int 3504main () 3505{ 3506 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511ac_clean_files_save=$ac_clean_files 3512ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3513# Try to create an executable without -o first, disregard a.out. 3514# It will help us diagnose broken compilers, and finding out an intuition 3515# of exeext. 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3517$as_echo_n "checking whether the C compiler works... " >&6; } 3518ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3519 3520# The possible output files: 3521ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3522 3523ac_rmfiles= 3524for ac_file in $ac_files 3525do 3526 case $ac_file in 3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3528 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3529 esac 3530done 3531rm -f $ac_rmfiles 3532 3533if { { ac_try="$ac_link_default" 3534case "(($ac_try" in 3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3536 *) ac_try_echo=$ac_try;; 3537esac 3538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3539$as_echo "$ac_try_echo"; } >&5 3540 (eval "$ac_link_default") 2>&5 3541 ac_status=$? 3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3543 test $ac_status = 0; }; then : 3544 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3545# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3546# in a Makefile. We should not override ac_cv_exeext if it was cached, 3547# so that the user can short-circuit this test for compilers unknown to 3548# Autoconf. 3549for ac_file in $ac_files '' 3550do 3551 test -f "$ac_file" || continue 3552 case $ac_file in 3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3554 ;; 3555 [ab].out ) 3556 # We found the default executable, but exeext='' is most 3557 # certainly right. 3558 break;; 3559 *.* ) 3560 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3561 then :; else 3562 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3563 fi 3564 # We set ac_cv_exeext here because the later test for it is not 3565 # safe: cross compilers may not add the suffix if given an `-o' 3566 # argument, so we may need to know it at that point already. 3567 # Even if this section looks crufty: it has the advantage of 3568 # actually working. 3569 break;; 3570 * ) 3571 break;; 3572 esac 3573done 3574test "$ac_cv_exeext" = no && ac_cv_exeext= 3575 3576else 3577 ac_file='' 3578fi 3579if test -z "$ac_file"; then : 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581$as_echo "no" >&6; } 3582$as_echo "$as_me: failed program was:" >&5 3583sed 's/^/| /' conftest.$ac_ext >&5 3584 3585{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3587as_fn_error 77 "C compiler cannot create executables 3588See \`config.log' for more details" "$LINENO" 5; } 3589else 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3591$as_echo "yes" >&6; } 3592fi 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3594$as_echo_n "checking for C compiler default output file name... " >&6; } 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3596$as_echo "$ac_file" >&6; } 3597ac_exeext=$ac_cv_exeext 3598 3599rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3600ac_clean_files=$ac_clean_files_save 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3602$as_echo_n "checking for suffix of executables... " >&6; } 3603if { { ac_try="$ac_link" 3604case "(($ac_try" in 3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3606 *) ac_try_echo=$ac_try;; 3607esac 3608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3609$as_echo "$ac_try_echo"; } >&5 3610 (eval "$ac_link") 2>&5 3611 ac_status=$? 3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3613 test $ac_status = 0; }; then : 3614 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3615# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3616# work properly (i.e., refer to `conftest.exe'), while it won't with 3617# `rm'. 3618for ac_file in conftest.exe conftest conftest.*; do 3619 test -f "$ac_file" || continue 3620 case $ac_file in 3621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3623 break;; 3624 * ) break;; 3625 esac 3626done 3627else 3628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3630as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3631See \`config.log' for more details" "$LINENO" 5; } 3632fi 3633rm -f conftest conftest$ac_cv_exeext 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3635$as_echo "$ac_cv_exeext" >&6; } 3636 3637rm -f conftest.$ac_ext 3638EXEEXT=$ac_cv_exeext 3639ac_exeext=$EXEEXT 3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3641/* end confdefs.h. */ 3642#include <stdio.h> 3643int 3644main () 3645{ 3646FILE *f = fopen ("conftest.out", "w"); 3647 return ferror (f) || fclose (f) != 0; 3648 3649 ; 3650 return 0; 3651} 3652_ACEOF 3653ac_clean_files="$ac_clean_files conftest.out" 3654# Check that the compiler produces executables we can run. If not, either 3655# the compiler is broken, or we cross compile. 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3657$as_echo_n "checking whether we are cross compiling... " >&6; } 3658if test "$cross_compiling" != yes; then 3659 { { ac_try="$ac_link" 3660case "(($ac_try" in 3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3662 *) ac_try_echo=$ac_try;; 3663esac 3664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3665$as_echo "$ac_try_echo"; } >&5 3666 (eval "$ac_link") 2>&5 3667 ac_status=$? 3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3669 test $ac_status = 0; } 3670 if { ac_try='./conftest$ac_cv_exeext' 3671 { { case "(($ac_try" in 3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3673 *) ac_try_echo=$ac_try;; 3674esac 3675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3676$as_echo "$ac_try_echo"; } >&5 3677 (eval "$ac_try") 2>&5 3678 ac_status=$? 3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3680 test $ac_status = 0; }; }; then 3681 cross_compiling=no 3682 else 3683 if test "$cross_compiling" = maybe; then 3684 cross_compiling=yes 3685 else 3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3688as_fn_error $? "cannot run C compiled programs. 3689If you meant to cross compile, use \`--host'. 3690See \`config.log' for more details" "$LINENO" 5; } 3691 fi 3692 fi 3693fi 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3695$as_echo "$cross_compiling" >&6; } 3696 3697rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3698ac_clean_files=$ac_clean_files_save 3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3700$as_echo_n "checking for suffix of object files... " >&6; } 3701if ${ac_cv_objext+:} false; then : 3702 $as_echo_n "(cached) " >&6 3703else 3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3705/* end confdefs.h. */ 3706 3707int 3708main () 3709{ 3710 3711 ; 3712 return 0; 3713} 3714_ACEOF 3715rm -f conftest.o conftest.obj 3716if { { ac_try="$ac_compile" 3717case "(($ac_try" in 3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3719 *) ac_try_echo=$ac_try;; 3720esac 3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3722$as_echo "$ac_try_echo"; } >&5 3723 (eval "$ac_compile") 2>&5 3724 ac_status=$? 3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3726 test $ac_status = 0; }; then : 3727 for ac_file in conftest.o conftest.obj conftest.*; do 3728 test -f "$ac_file" || continue; 3729 case $ac_file in 3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3731 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3732 break;; 3733 esac 3734done 3735else 3736 $as_echo "$as_me: failed program was:" >&5 3737sed 's/^/| /' conftest.$ac_ext >&5 3738 3739{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3741as_fn_error $? "cannot compute suffix of object files: cannot compile 3742See \`config.log' for more details" "$LINENO" 5; } 3743fi 3744rm -f conftest.$ac_cv_objext conftest.$ac_ext 3745fi 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3747$as_echo "$ac_cv_objext" >&6; } 3748OBJEXT=$ac_cv_objext 3749ac_objext=$OBJEXT 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3751$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3752if ${ac_cv_c_compiler_gnu+:} false; then : 3753 $as_echo_n "(cached) " >&6 3754else 3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756/* end confdefs.h. */ 3757 3758int 3759main () 3760{ 3761#ifndef __GNUC__ 3762 choke me 3763#endif 3764 3765 ; 3766 return 0; 3767} 3768_ACEOF 3769if ac_fn_c_try_compile "$LINENO"; then : 3770 ac_compiler_gnu=yes 3771else 3772 ac_compiler_gnu=no 3773fi 3774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3775ac_cv_c_compiler_gnu=$ac_compiler_gnu 3776 3777fi 3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3779$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3780if test $ac_compiler_gnu = yes; then 3781 GCC=yes 3782else 3783 GCC= 3784fi 3785ac_test_CFLAGS=${CFLAGS+set} 3786ac_save_CFLAGS=$CFLAGS 3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3788$as_echo_n "checking whether $CC accepts -g... " >&6; } 3789if ${ac_cv_prog_cc_g+:} false; then : 3790 $as_echo_n "(cached) " >&6 3791else 3792 ac_save_c_werror_flag=$ac_c_werror_flag 3793 ac_c_werror_flag=yes 3794 ac_cv_prog_cc_g=no 3795 CFLAGS="-g" 3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3797/* end confdefs.h. */ 3798 3799int 3800main () 3801{ 3802 3803 ; 3804 return 0; 3805} 3806_ACEOF 3807if ac_fn_c_try_compile "$LINENO"; then : 3808 ac_cv_prog_cc_g=yes 3809else 3810 CFLAGS="" 3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3812/* end confdefs.h. */ 3813 3814int 3815main () 3816{ 3817 3818 ; 3819 return 0; 3820} 3821_ACEOF 3822if ac_fn_c_try_compile "$LINENO"; then : 3823 3824else 3825 ac_c_werror_flag=$ac_save_c_werror_flag 3826 CFLAGS="-g" 3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3828/* end confdefs.h. */ 3829 3830int 3831main () 3832{ 3833 3834 ; 3835 return 0; 3836} 3837_ACEOF 3838if ac_fn_c_try_compile "$LINENO"; then : 3839 ac_cv_prog_cc_g=yes 3840fi 3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3842fi 3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3844fi 3845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3846 ac_c_werror_flag=$ac_save_c_werror_flag 3847fi 3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3849$as_echo "$ac_cv_prog_cc_g" >&6; } 3850if test "$ac_test_CFLAGS" = set; then 3851 CFLAGS=$ac_save_CFLAGS 3852elif test $ac_cv_prog_cc_g = yes; then 3853 if test "$GCC" = yes; then 3854 CFLAGS="-g -O2" 3855 else 3856 CFLAGS="-g" 3857 fi 3858else 3859 if test "$GCC" = yes; then 3860 CFLAGS="-O2" 3861 else 3862 CFLAGS= 3863 fi 3864fi 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3866$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3867if ${ac_cv_prog_cc_c89+:} false; then : 3868 $as_echo_n "(cached) " >&6 3869else 3870 ac_cv_prog_cc_c89=no 3871ac_save_CC=$CC 3872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3873/* end confdefs.h. */ 3874#include <stdarg.h> 3875#include <stdio.h> 3876struct stat; 3877/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3878struct buf { int x; }; 3879FILE * (*rcsopen) (struct buf *, struct stat *, int); 3880static char *e (p, i) 3881 char **p; 3882 int i; 3883{ 3884 return p[i]; 3885} 3886static char *f (char * (*g) (char **, int), char **p, ...) 3887{ 3888 char *s; 3889 va_list v; 3890 va_start (v,p); 3891 s = g (p, va_arg (v,int)); 3892 va_end (v); 3893 return s; 3894} 3895 3896/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3897 function prototypes and stuff, but not '\xHH' hex character constants. 3898 These don't provoke an error unfortunately, instead are silently treated 3899 as 'x'. The following induces an error, until -std is added to get 3900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3901 array size at least. It's necessary to write '\x00'==0 to get something 3902 that's true only with -std. */ 3903int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3904 3905/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3906 inside strings and character constants. */ 3907#define FOO(x) 'x' 3908int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3909 3910int test (int i, double x); 3911struct s1 {int (*f) (int a);}; 3912struct s2 {int (*f) (double a);}; 3913int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3914int argc; 3915char **argv; 3916int 3917main () 3918{ 3919return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3920 ; 3921 return 0; 3922} 3923_ACEOF 3924for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3926do 3927 CC="$ac_save_CC $ac_arg" 3928 if ac_fn_c_try_compile "$LINENO"; then : 3929 ac_cv_prog_cc_c89=$ac_arg 3930fi 3931rm -f core conftest.err conftest.$ac_objext 3932 test "x$ac_cv_prog_cc_c89" != "xno" && break 3933done 3934rm -f conftest.$ac_ext 3935CC=$ac_save_CC 3936 3937fi 3938# AC_CACHE_VAL 3939case "x$ac_cv_prog_cc_c89" in 3940 x) 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3942$as_echo "none needed" >&6; } ;; 3943 xno) 3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3945$as_echo "unsupported" >&6; } ;; 3946 *) 3947 CC="$CC $ac_cv_prog_cc_c89" 3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3949$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3950esac 3951if test "x$ac_cv_prog_cc_c89" != xno; then : 3952 3953fi 3954 3955ac_ext=c 3956ac_cpp='$CPP $CPPFLAGS' 3957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3959ac_compiler_gnu=$ac_cv_c_compiler_gnu 3960 3961ac_ext=c 3962ac_cpp='$CPP $CPPFLAGS' 3963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3965ac_compiler_gnu=$ac_cv_c_compiler_gnu 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3967$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3968if ${am_cv_prog_cc_c_o+:} false; then : 3969 $as_echo_n "(cached) " >&6 3970else 3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3972/* end confdefs.h. */ 3973 3974int 3975main () 3976{ 3977 3978 ; 3979 return 0; 3980} 3981_ACEOF 3982 # Make sure it works both with $CC and with simple cc. 3983 # Following AC_PROG_CC_C_O, we do the test twice because some 3984 # compilers refuse to overwrite an existing .o file with -o, 3985 # though they will create one. 3986 am_cv_prog_cc_c_o=yes 3987 for am_i in 1 2; do 3988 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3989 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3990 ac_status=$? 3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3992 (exit $ac_status); } \ 3993 && test -f conftest2.$ac_objext; then 3994 : OK 3995 else 3996 am_cv_prog_cc_c_o=no 3997 break 3998 fi 3999 done 4000 rm -f core conftest* 4001 unset am_i 4002fi 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4004$as_echo "$am_cv_prog_cc_c_o" >&6; } 4005if test "$am_cv_prog_cc_c_o" != yes; then 4006 # Losing compiler, so override with the script. 4007 # FIXME: It is wrong to rewrite CC. 4008 # But if we don't then we get into trouble of one sort or another. 4009 # A longer-term fix would be to have automake use am__CC in this case, 4010 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4011 CC="$am_aux_dir/compile $CC" 4012fi 4013ac_ext=c 4014ac_cpp='$CPP $CPPFLAGS' 4015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4017ac_compiler_gnu=$ac_cv_c_compiler_gnu 4018 4019DEPDIR="${am__leading_dot}deps" 4020 4021ac_config_commands="$ac_config_commands depfiles" 4022 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4024$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4025cat > confinc.mk << 'END' 4026am__doit: 4027 @echo this is the am__doit target >confinc.out 4028.PHONY: am__doit 4029END 4030am__include="#" 4031am__quote= 4032# BSD make does it like this. 4033echo '.include "confinc.mk" # ignored' > confmf.BSD 4034# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4035echo 'include confinc.mk # ignored' > confmf.GNU 4036_am_result=no 4037for s in GNU BSD; do 4038 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4039 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4040 ac_status=$? 4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4042 (exit $ac_status); } 4043 case $?:`cat confinc.out 2>/dev/null` in #( 4044 '0:this is the am__doit target') : 4045 case $s in #( 4046 BSD) : 4047 am__include='.include' am__quote='"' ;; #( 4048 *) : 4049 am__include='include' am__quote='' ;; 4050esac ;; #( 4051 *) : 4052 ;; 4053esac 4054 if test "$am__include" != "#"; then 4055 _am_result="yes ($s style)" 4056 break 4057 fi 4058done 4059rm -f confinc.* confmf.* 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4061$as_echo "${_am_result}" >&6; } 4062 4063# Check whether --enable-dependency-tracking was given. 4064if test "${enable_dependency_tracking+set}" = set; then : 4065 enableval=$enable_dependency_tracking; 4066fi 4067 4068if test "x$enable_dependency_tracking" != xno; then 4069 am_depcomp="$ac_aux_dir/depcomp" 4070 AMDEPBACKSLASH='\' 4071 am__nodep='_no' 4072fi 4073 if test "x$enable_dependency_tracking" != xno; then 4074 AMDEP_TRUE= 4075 AMDEP_FALSE='#' 4076else 4077 AMDEP_TRUE='#' 4078 AMDEP_FALSE= 4079fi 4080 4081 4082 4083depcc="$CC" am_compiler_list= 4084 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4086$as_echo_n "checking dependency style of $depcc... " >&6; } 4087if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4088 $as_echo_n "(cached) " >&6 4089else 4090 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4091 # We make a subdir and do the tests there. Otherwise we can end up 4092 # making bogus files that we don't know about and never remove. For 4093 # instance it was reported that on HP-UX the gcc test will end up 4094 # making a dummy file named 'D' -- because '-MD' means "put the output 4095 # in D". 4096 rm -rf conftest.dir 4097 mkdir conftest.dir 4098 # Copy depcomp to subdir because otherwise we won't find it if we're 4099 # using a relative directory. 4100 cp "$am_depcomp" conftest.dir 4101 cd conftest.dir 4102 # We will build objects and dependencies in a subdirectory because 4103 # it helps to detect inapplicable dependency modes. For instance 4104 # both Tru64's cc and ICC support -MD to output dependencies as a 4105 # side effect of compilation, but ICC will put the dependencies in 4106 # the current directory while Tru64 will put them in the object 4107 # directory. 4108 mkdir sub 4109 4110 am_cv_CC_dependencies_compiler_type=none 4111 if test "$am_compiler_list" = ""; then 4112 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4113 fi 4114 am__universal=false 4115 case " $depcc " in #( 4116 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4117 esac 4118 4119 for depmode in $am_compiler_list; do 4120 # Setup a source with many dependencies, because some compilers 4121 # like to wrap large dependency lists on column 80 (with \), and 4122 # we should not choose a depcomp mode which is confused by this. 4123 # 4124 # We need to recreate these files for each test, as the compiler may 4125 # overwrite some of them when testing with obscure command lines. 4126 # This happens at least with the AIX C compiler. 4127 : > sub/conftest.c 4128 for i in 1 2 3 4 5 6; do 4129 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4130 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4131 # Solaris 10 /bin/sh. 4132 echo '/* dummy */' > sub/conftst$i.h 4133 done 4134 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4135 4136 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4137 # mode. It turns out that the SunPro C++ compiler does not properly 4138 # handle '-M -o', and we need to detect this. Also, some Intel 4139 # versions had trouble with output in subdirs. 4140 am__obj=sub/conftest.${OBJEXT-o} 4141 am__minus_obj="-o $am__obj" 4142 case $depmode in 4143 gcc) 4144 # This depmode causes a compiler race in universal mode. 4145 test "$am__universal" = false || continue 4146 ;; 4147 nosideeffect) 4148 # After this tag, mechanisms are not by side-effect, so they'll 4149 # only be used when explicitly requested. 4150 if test "x$enable_dependency_tracking" = xyes; then 4151 continue 4152 else 4153 break 4154 fi 4155 ;; 4156 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4157 # This compiler won't grok '-c -o', but also, the minuso test has 4158 # not run yet. These depmodes are late enough in the game, and 4159 # so weak that their functioning should not be impacted. 4160 am__obj=conftest.${OBJEXT-o} 4161 am__minus_obj= 4162 ;; 4163 none) break ;; 4164 esac 4165 if depmode=$depmode \ 4166 source=sub/conftest.c object=$am__obj \ 4167 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4168 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4169 >/dev/null 2>conftest.err && 4170 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4171 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4172 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4173 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4174 # icc doesn't choke on unknown options, it will just issue warnings 4175 # or remarks (even with -Werror). So we grep stderr for any message 4176 # that says an option was ignored or not supported. 4177 # When given -MP, icc 7.0 and 7.1 complain thusly: 4178 # icc: Command line warning: ignoring option '-M'; no argument required 4179 # The diagnosis changed in icc 8.0: 4180 # icc: Command line remark: option '-MP' not supported 4181 if (grep 'ignoring option' conftest.err || 4182 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4183 am_cv_CC_dependencies_compiler_type=$depmode 4184 break 4185 fi 4186 fi 4187 done 4188 4189 cd .. 4190 rm -rf conftest.dir 4191else 4192 am_cv_CC_dependencies_compiler_type=none 4193fi 4194 4195fi 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4197$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4198CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4199 4200 if 4201 test "x$enable_dependency_tracking" != xno \ 4202 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4203 am__fastdepCC_TRUE= 4204 am__fastdepCC_FALSE='#' 4205else 4206 am__fastdepCC_TRUE='#' 4207 am__fastdepCC_FALSE= 4208fi 4209 4210 4211 4212 4213ac_ext=c 4214ac_cpp='$CPP $CPPFLAGS' 4215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4217ac_compiler_gnu=$ac_cv_c_compiler_gnu 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4219$as_echo_n "checking how to run the C preprocessor... " >&6; } 4220# On Suns, sometimes $CPP names a directory. 4221if test -n "$CPP" && test -d "$CPP"; then 4222 CPP= 4223fi 4224if test -z "$CPP"; then 4225 if ${ac_cv_prog_CPP+:} false; then : 4226 $as_echo_n "(cached) " >&6 4227else 4228 # Double quotes because CPP needs to be expanded 4229 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4230 do 4231 ac_preproc_ok=false 4232for ac_c_preproc_warn_flag in '' yes 4233do 4234 # Use a header file that comes with gcc, so configuring glibc 4235 # with a fresh cross-compiler works. 4236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4237 # <limits.h> exists even on freestanding compilers. 4238 # On the NeXT, cc -E runs the code through the compiler's parser, 4239 # not just through cpp. "Syntax error" is here to catch this case. 4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241/* end confdefs.h. */ 4242#ifdef __STDC__ 4243# include <limits.h> 4244#else 4245# include <assert.h> 4246#endif 4247 Syntax error 4248_ACEOF 4249if ac_fn_c_try_cpp "$LINENO"; then : 4250 4251else 4252 # Broken: fails on valid input. 4253continue 4254fi 4255rm -f conftest.err conftest.i conftest.$ac_ext 4256 4257 # OK, works on sane cases. Now check whether nonexistent headers 4258 # can be detected and how. 4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4260/* end confdefs.h. */ 4261#include <ac_nonexistent.h> 4262_ACEOF 4263if ac_fn_c_try_cpp "$LINENO"; then : 4264 # Broken: success on invalid input. 4265continue 4266else 4267 # Passes both tests. 4268ac_preproc_ok=: 4269break 4270fi 4271rm -f conftest.err conftest.i conftest.$ac_ext 4272 4273done 4274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4275rm -f conftest.i conftest.err conftest.$ac_ext 4276if $ac_preproc_ok; then : 4277 break 4278fi 4279 4280 done 4281 ac_cv_prog_CPP=$CPP 4282 4283fi 4284 CPP=$ac_cv_prog_CPP 4285else 4286 ac_cv_prog_CPP=$CPP 4287fi 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4289$as_echo "$CPP" >&6; } 4290ac_preproc_ok=false 4291for ac_c_preproc_warn_flag in '' yes 4292do 4293 # Use a header file that comes with gcc, so configuring glibc 4294 # with a fresh cross-compiler works. 4295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4296 # <limits.h> exists even on freestanding compilers. 4297 # On the NeXT, cc -E runs the code through the compiler's parser, 4298 # not just through cpp. "Syntax error" is here to catch this case. 4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300/* end confdefs.h. */ 4301#ifdef __STDC__ 4302# include <limits.h> 4303#else 4304# include <assert.h> 4305#endif 4306 Syntax error 4307_ACEOF 4308if ac_fn_c_try_cpp "$LINENO"; then : 4309 4310else 4311 # Broken: fails on valid input. 4312continue 4313fi 4314rm -f conftest.err conftest.i conftest.$ac_ext 4315 4316 # OK, works on sane cases. Now check whether nonexistent headers 4317 # can be detected and how. 4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4319/* end confdefs.h. */ 4320#include <ac_nonexistent.h> 4321_ACEOF 4322if ac_fn_c_try_cpp "$LINENO"; then : 4323 # Broken: success on invalid input. 4324continue 4325else 4326 # Passes both tests. 4327ac_preproc_ok=: 4328break 4329fi 4330rm -f conftest.err conftest.i conftest.$ac_ext 4331 4332done 4333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4334rm -f conftest.i conftest.err conftest.$ac_ext 4335if $ac_preproc_ok; then : 4336 4337else 4338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4340as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4341See \`config.log' for more details" "$LINENO" 5; } 4342fi 4343 4344ac_ext=c 4345ac_cpp='$CPP $CPPFLAGS' 4346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4348ac_compiler_gnu=$ac_cv_c_compiler_gnu 4349 4350 4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4352$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4353if ${ac_cv_path_GREP+:} false; then : 4354 $as_echo_n "(cached) " >&6 4355else 4356 if test -z "$GREP"; then 4357 ac_path_GREP_found=false 4358 # Loop through the user's path and test for each of PROGNAME-LIST 4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4361do 4362 IFS=$as_save_IFS 4363 test -z "$as_dir" && as_dir=. 4364 for ac_prog in grep ggrep; do 4365 for ac_exec_ext in '' $ac_executable_extensions; do 4366 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4367 as_fn_executable_p "$ac_path_GREP" || continue 4368# Check for GNU ac_path_GREP and select it if it is found. 4369 # Check for GNU $ac_path_GREP 4370case `"$ac_path_GREP" --version 2>&1` in 4371*GNU*) 4372 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4373*) 4374 ac_count=0 4375 $as_echo_n 0123456789 >"conftest.in" 4376 while : 4377 do 4378 cat "conftest.in" "conftest.in" >"conftest.tmp" 4379 mv "conftest.tmp" "conftest.in" 4380 cp "conftest.in" "conftest.nl" 4381 $as_echo 'GREP' >> "conftest.nl" 4382 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4384 as_fn_arith $ac_count + 1 && ac_count=$as_val 4385 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4386 # Best one so far, save it but keep looking for a better one 4387 ac_cv_path_GREP="$ac_path_GREP" 4388 ac_path_GREP_max=$ac_count 4389 fi 4390 # 10*(2^10) chars as input seems more than enough 4391 test $ac_count -gt 10 && break 4392 done 4393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4394esac 4395 4396 $ac_path_GREP_found && break 3 4397 done 4398 done 4399 done 4400IFS=$as_save_IFS 4401 if test -z "$ac_cv_path_GREP"; then 4402 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4403 fi 4404else 4405 ac_cv_path_GREP=$GREP 4406fi 4407 4408fi 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4410$as_echo "$ac_cv_path_GREP" >&6; } 4411 GREP="$ac_cv_path_GREP" 4412 4413 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4415$as_echo_n "checking for egrep... " >&6; } 4416if ${ac_cv_path_EGREP+:} false; then : 4417 $as_echo_n "(cached) " >&6 4418else 4419 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4420 then ac_cv_path_EGREP="$GREP -E" 4421 else 4422 if test -z "$EGREP"; then 4423 ac_path_EGREP_found=false 4424 # Loop through the user's path and test for each of PROGNAME-LIST 4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4427do 4428 IFS=$as_save_IFS 4429 test -z "$as_dir" && as_dir=. 4430 for ac_prog in egrep; do 4431 for ac_exec_ext in '' $ac_executable_extensions; do 4432 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4433 as_fn_executable_p "$ac_path_EGREP" || continue 4434# Check for GNU ac_path_EGREP and select it if it is found. 4435 # Check for GNU $ac_path_EGREP 4436case `"$ac_path_EGREP" --version 2>&1` in 4437*GNU*) 4438 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4439*) 4440 ac_count=0 4441 $as_echo_n 0123456789 >"conftest.in" 4442 while : 4443 do 4444 cat "conftest.in" "conftest.in" >"conftest.tmp" 4445 mv "conftest.tmp" "conftest.in" 4446 cp "conftest.in" "conftest.nl" 4447 $as_echo 'EGREP' >> "conftest.nl" 4448 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4450 as_fn_arith $ac_count + 1 && ac_count=$as_val 4451 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4452 # Best one so far, save it but keep looking for a better one 4453 ac_cv_path_EGREP="$ac_path_EGREP" 4454 ac_path_EGREP_max=$ac_count 4455 fi 4456 # 10*(2^10) chars as input seems more than enough 4457 test $ac_count -gt 10 && break 4458 done 4459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4460esac 4461 4462 $ac_path_EGREP_found && break 3 4463 done 4464 done 4465 done 4466IFS=$as_save_IFS 4467 if test -z "$ac_cv_path_EGREP"; then 4468 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4469 fi 4470else 4471 ac_cv_path_EGREP=$EGREP 4472fi 4473 4474 fi 4475fi 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4477$as_echo "$ac_cv_path_EGREP" >&6; } 4478 EGREP="$ac_cv_path_EGREP" 4479 4480 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4482$as_echo_n "checking for ANSI C header files... " >&6; } 4483if ${ac_cv_header_stdc+:} false; then : 4484 $as_echo_n "(cached) " >&6 4485else 4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4487/* end confdefs.h. */ 4488#include <stdlib.h> 4489#include <stdarg.h> 4490#include <string.h> 4491#include <float.h> 4492 4493int 4494main () 4495{ 4496 4497 ; 4498 return 0; 4499} 4500_ACEOF 4501if ac_fn_c_try_compile "$LINENO"; then : 4502 ac_cv_header_stdc=yes 4503else 4504 ac_cv_header_stdc=no 4505fi 4506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4507 4508if test $ac_cv_header_stdc = yes; then 4509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4511/* end confdefs.h. */ 4512#include <string.h> 4513 4514_ACEOF 4515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4516 $EGREP "memchr" >/dev/null 2>&1; then : 4517 4518else 4519 ac_cv_header_stdc=no 4520fi 4521rm -f conftest* 4522 4523fi 4524 4525if test $ac_cv_header_stdc = yes; then 4526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4528/* end confdefs.h. */ 4529#include <stdlib.h> 4530 4531_ACEOF 4532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4533 $EGREP "free" >/dev/null 2>&1; then : 4534 4535else 4536 ac_cv_header_stdc=no 4537fi 4538rm -f conftest* 4539 4540fi 4541 4542if test $ac_cv_header_stdc = yes; then 4543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4544 if test "$cross_compiling" = yes; then : 4545 : 4546else 4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4548/* end confdefs.h. */ 4549#include <ctype.h> 4550#include <stdlib.h> 4551#if ((' ' & 0x0FF) == 0x020) 4552# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4553# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4554#else 4555# define ISLOWER(c) \ 4556 (('a' <= (c) && (c) <= 'i') \ 4557 || ('j' <= (c) && (c) <= 'r') \ 4558 || ('s' <= (c) && (c) <= 'z')) 4559# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4560#endif 4561 4562#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4563int 4564main () 4565{ 4566 int i; 4567 for (i = 0; i < 256; i++) 4568 if (XOR (islower (i), ISLOWER (i)) 4569 || toupper (i) != TOUPPER (i)) 4570 return 2; 4571 return 0; 4572} 4573_ACEOF 4574if ac_fn_c_try_run "$LINENO"; then : 4575 4576else 4577 ac_cv_header_stdc=no 4578fi 4579rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4580 conftest.$ac_objext conftest.beam conftest.$ac_ext 4581fi 4582 4583fi 4584fi 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4586$as_echo "$ac_cv_header_stdc" >&6; } 4587if test $ac_cv_header_stdc = yes; then 4588 4589$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4590 4591fi 4592 4593# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4594for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4595 inttypes.h stdint.h unistd.h 4596do : 4597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4598ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4599" 4600if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4601 cat >>confdefs.h <<_ACEOF 4602#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4603_ACEOF 4604 4605fi 4606 4607done 4608 4609 4610 4611 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4612if test "x$ac_cv_header_minix_config_h" = xyes; then : 4613 MINIX=yes 4614else 4615 MINIX= 4616fi 4617 4618 4619 if test "$MINIX" = yes; then 4620 4621$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4622 4623 4624$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4625 4626 4627$as_echo "#define _MINIX 1" >>confdefs.h 4628 4629 fi 4630 4631 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4633$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4634if ${ac_cv_safe_to_define___extensions__+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636else 4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4638/* end confdefs.h. */ 4639 4640# define __EXTENSIONS__ 1 4641 $ac_includes_default 4642int 4643main () 4644{ 4645 4646 ; 4647 return 0; 4648} 4649_ACEOF 4650if ac_fn_c_try_compile "$LINENO"; then : 4651 ac_cv_safe_to_define___extensions__=yes 4652else 4653 ac_cv_safe_to_define___extensions__=no 4654fi 4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4656fi 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4658$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4659 test $ac_cv_safe_to_define___extensions__ = yes && 4660 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4661 4662 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4663 4664 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4665 4666 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4667 4668 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4669 4670 4671 4672if test "x$remember_set_CFLAGS" = "x" 4673then 4674 if test "$CFLAGS" = "-g -O2" 4675 then 4676 CFLAGS="-O2" 4677 elif test "$CFLAGS" = "-g" 4678 then 4679 CFLAGS="" 4680 fi 4681fi 4682 4683# This is a new thing required to stop a warning from automake 1.12 4684if test -n "$ac_tool_prefix"; then 4685 for ac_prog in ar lib "link -lib" 4686 do 4687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4688set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4690$as_echo_n "checking for $ac_word... " >&6; } 4691if ${ac_cv_prog_AR+:} false; then : 4692 $as_echo_n "(cached) " >&6 4693else 4694 if test -n "$AR"; then 4695 ac_cv_prog_AR="$AR" # Let the user override the test. 4696else 4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4698for as_dir in $PATH 4699do 4700 IFS=$as_save_IFS 4701 test -z "$as_dir" && as_dir=. 4702 for ac_exec_ext in '' $ac_executable_extensions; do 4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4704 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4706 break 2 4707 fi 4708done 4709 done 4710IFS=$as_save_IFS 4711 4712fi 4713fi 4714AR=$ac_cv_prog_AR 4715if test -n "$AR"; then 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4717$as_echo "$AR" >&6; } 4718else 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4720$as_echo "no" >&6; } 4721fi 4722 4723 4724 test -n "$AR" && break 4725 done 4726fi 4727if test -z "$AR"; then 4728 ac_ct_AR=$AR 4729 for ac_prog in ar lib "link -lib" 4730do 4731 # Extract the first word of "$ac_prog", so it can be a program name with args. 4732set dummy $ac_prog; ac_word=$2 4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4734$as_echo_n "checking for $ac_word... " >&6; } 4735if ${ac_cv_prog_ac_ct_AR+:} false; then : 4736 $as_echo_n "(cached) " >&6 4737else 4738 if test -n "$ac_ct_AR"; then 4739 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4740else 4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4742for as_dir in $PATH 4743do 4744 IFS=$as_save_IFS 4745 test -z "$as_dir" && as_dir=. 4746 for ac_exec_ext in '' $ac_executable_extensions; do 4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4748 ac_cv_prog_ac_ct_AR="$ac_prog" 4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4750 break 2 4751 fi 4752done 4753 done 4754IFS=$as_save_IFS 4755 4756fi 4757fi 4758ac_ct_AR=$ac_cv_prog_ac_ct_AR 4759if test -n "$ac_ct_AR"; then 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4761$as_echo "$ac_ct_AR" >&6; } 4762else 4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4764$as_echo "no" >&6; } 4765fi 4766 4767 4768 test -n "$ac_ct_AR" && break 4769done 4770 4771 if test "x$ac_ct_AR" = x; then 4772 AR="false" 4773 else 4774 case $cross_compiling:$ac_tool_warned in 4775yes:) 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4778ac_tool_warned=yes ;; 4779esac 4780 AR=$ac_ct_AR 4781 fi 4782fi 4783 4784: ${AR=ar} 4785 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4787$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4788if ${am_cv_ar_interface+:} false; then : 4789 $as_echo_n "(cached) " >&6 4790else 4791 ac_ext=c 4792ac_cpp='$CPP $CPPFLAGS' 4793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4795ac_compiler_gnu=$ac_cv_c_compiler_gnu 4796 4797 am_cv_ar_interface=ar 4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4799/* end confdefs.h. */ 4800int some_variable = 0; 4801_ACEOF 4802if ac_fn_c_try_compile "$LINENO"; then : 4803 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4805 (eval $am_ar_try) 2>&5 4806 ac_status=$? 4807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4808 test $ac_status = 0; } 4809 if test "$ac_status" -eq 0; then 4810 am_cv_ar_interface=ar 4811 else 4812 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4814 (eval $am_ar_try) 2>&5 4815 ac_status=$? 4816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4817 test $ac_status = 0; } 4818 if test "$ac_status" -eq 0; then 4819 am_cv_ar_interface=lib 4820 else 4821 am_cv_ar_interface=unknown 4822 fi 4823 fi 4824 rm -f conftest.lib libconftest.a 4825 4826fi 4827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4828 ac_ext=c 4829ac_cpp='$CPP $CPPFLAGS' 4830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4832ac_compiler_gnu=$ac_cv_c_compiler_gnu 4833 4834fi 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4836$as_echo "$am_cv_ar_interface" >&6; } 4837 4838case $am_cv_ar_interface in 4839ar) 4840 ;; 4841lib) 4842 # Microsoft lib, so override with the ar-lib wrapper script. 4843 # FIXME: It is wrong to rewrite AR. 4844 # But if we don't then we get into trouble of one sort or another. 4845 # A longer-term fix would be to have automake use am__AR in this case, 4846 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4847 # similar. 4848 AR="$am_aux_dir/ar-lib $AR" 4849 ;; 4850unknown) 4851 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4852 ;; 4853esac 4854 4855 4856# Check for a 64-bit integer type 4857ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 4858case $ac_cv_c_int64_t in #( 4859 no|yes) ;; #( 4860 *) 4861 4862cat >>confdefs.h <<_ACEOF 4863#define int64_t $ac_cv_c_int64_t 4864_ACEOF 4865;; 4866esac 4867 4868 4869 4870# Make sure we can run config.sub. 4871$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4872 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4873 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4875$as_echo_n "checking build system type... " >&6; } 4876if ${ac_cv_build+:} false; then : 4877 $as_echo_n "(cached) " >&6 4878else 4879 ac_build_alias=$build_alias 4880test "x$ac_build_alias" = x && 4881 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4882test "x$ac_build_alias" = x && 4883 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4884ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4885 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4886 4887fi 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4889$as_echo "$ac_cv_build" >&6; } 4890case $ac_cv_build in 4891*-*-*) ;; 4892*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4893esac 4894build=$ac_cv_build 4895ac_save_IFS=$IFS; IFS='-' 4896set x $ac_cv_build 4897shift 4898build_cpu=$1 4899build_vendor=$2 4900shift; shift 4901# Remember, the first character of IFS is used to create $*, 4902# except with old shells: 4903build_os=$* 4904IFS=$ac_save_IFS 4905case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4906 4907 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4909$as_echo_n "checking host system type... " >&6; } 4910if ${ac_cv_host+:} false; then : 4911 $as_echo_n "(cached) " >&6 4912else 4913 if test "x$host_alias" = x; then 4914 ac_cv_host=$ac_cv_build 4915else 4916 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4917 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4918fi 4919 4920fi 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4922$as_echo "$ac_cv_host" >&6; } 4923case $ac_cv_host in 4924*-*-*) ;; 4925*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4926esac 4927host=$ac_cv_host 4928ac_save_IFS=$IFS; IFS='-' 4929set x $ac_cv_host 4930shift 4931host_cpu=$1 4932host_vendor=$2 4933shift; shift 4934# Remember, the first character of IFS is used to create $*, 4935# except with old shells: 4936host_os=$* 4937IFS=$ac_save_IFS 4938case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4939 4940 4941enable_win32_dll=yes 4942 4943case $host in 4944*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4945 if test -n "$ac_tool_prefix"; then 4946 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4947set dummy ${ac_tool_prefix}as; ac_word=$2 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4949$as_echo_n "checking for $ac_word... " >&6; } 4950if ${ac_cv_prog_AS+:} false; then : 4951 $as_echo_n "(cached) " >&6 4952else 4953 if test -n "$AS"; then 4954 ac_cv_prog_AS="$AS" # Let the user override the test. 4955else 4956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4957for as_dir in $PATH 4958do 4959 IFS=$as_save_IFS 4960 test -z "$as_dir" && as_dir=. 4961 for ac_exec_ext in '' $ac_executable_extensions; do 4962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4963 ac_cv_prog_AS="${ac_tool_prefix}as" 4964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4965 break 2 4966 fi 4967done 4968 done 4969IFS=$as_save_IFS 4970 4971fi 4972fi 4973AS=$ac_cv_prog_AS 4974if test -n "$AS"; then 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4976$as_echo "$AS" >&6; } 4977else 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4979$as_echo "no" >&6; } 4980fi 4981 4982 4983fi 4984if test -z "$ac_cv_prog_AS"; then 4985 ac_ct_AS=$AS 4986 # Extract the first word of "as", so it can be a program name with args. 4987set dummy as; ac_word=$2 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4989$as_echo_n "checking for $ac_word... " >&6; } 4990if ${ac_cv_prog_ac_ct_AS+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 if test -n "$ac_ct_AS"; then 4994 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4995else 4996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4997for as_dir in $PATH 4998do 4999 IFS=$as_save_IFS 5000 test -z "$as_dir" && as_dir=. 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_AS="as" 5004 $as_echo "$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_AS=$ac_cv_prog_ac_ct_AS 5014if test -n "$ac_ct_AS"; then 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5016$as_echo "$ac_ct_AS" >&6; } 5017else 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5019$as_echo "no" >&6; } 5020fi 5021 5022 if test "x$ac_ct_AS" = x; then 5023 AS="false" 5024 else 5025 case $cross_compiling:$ac_tool_warned in 5026yes:) 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5029ac_tool_warned=yes ;; 5030esac 5031 AS=$ac_ct_AS 5032 fi 5033else 5034 AS="$ac_cv_prog_AS" 5035fi 5036 5037 if test -n "$ac_tool_prefix"; then 5038 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5039set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5041$as_echo_n "checking for $ac_word... " >&6; } 5042if ${ac_cv_prog_DLLTOOL+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 if test -n "$DLLTOOL"; then 5046 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5047else 5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5049for as_dir in $PATH 5050do 5051 IFS=$as_save_IFS 5052 test -z "$as_dir" && as_dir=. 5053 for ac_exec_ext in '' $ac_executable_extensions; do 5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5055 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5057 break 2 5058 fi 5059done 5060 done 5061IFS=$as_save_IFS 5062 5063fi 5064fi 5065DLLTOOL=$ac_cv_prog_DLLTOOL 5066if test -n "$DLLTOOL"; then 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5068$as_echo "$DLLTOOL" >&6; } 5069else 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5071$as_echo "no" >&6; } 5072fi 5073 5074 5075fi 5076if test -z "$ac_cv_prog_DLLTOOL"; then 5077 ac_ct_DLLTOOL=$DLLTOOL 5078 # Extract the first word of "dlltool", so it can be a program name with args. 5079set dummy dlltool; ac_word=$2 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5081$as_echo_n "checking for $ac_word... " >&6; } 5082if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5083 $as_echo_n "(cached) " >&6 5084else 5085 if test -n "$ac_ct_DLLTOOL"; then 5086 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5087else 5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5089for as_dir in $PATH 5090do 5091 IFS=$as_save_IFS 5092 test -z "$as_dir" && as_dir=. 5093 for ac_exec_ext in '' $ac_executable_extensions; do 5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5095 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5097 break 2 5098 fi 5099done 5100 done 5101IFS=$as_save_IFS 5102 5103fi 5104fi 5105ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5106if test -n "$ac_ct_DLLTOOL"; then 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5108$as_echo "$ac_ct_DLLTOOL" >&6; } 5109else 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5111$as_echo "no" >&6; } 5112fi 5113 5114 if test "x$ac_ct_DLLTOOL" = x; then 5115 DLLTOOL="false" 5116 else 5117 case $cross_compiling:$ac_tool_warned in 5118yes:) 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5121ac_tool_warned=yes ;; 5122esac 5123 DLLTOOL=$ac_ct_DLLTOOL 5124 fi 5125else 5126 DLLTOOL="$ac_cv_prog_DLLTOOL" 5127fi 5128 5129 if test -n "$ac_tool_prefix"; then 5130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5131set dummy ${ac_tool_prefix}objdump; ac_word=$2 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5133$as_echo_n "checking for $ac_word... " >&6; } 5134if ${ac_cv_prog_OBJDUMP+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 if test -n "$OBJDUMP"; then 5138 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5139else 5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5141for as_dir in $PATH 5142do 5143 IFS=$as_save_IFS 5144 test -z "$as_dir" && as_dir=. 5145 for ac_exec_ext in '' $ac_executable_extensions; do 5146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5147 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5149 break 2 5150 fi 5151done 5152 done 5153IFS=$as_save_IFS 5154 5155fi 5156fi 5157OBJDUMP=$ac_cv_prog_OBJDUMP 5158if test -n "$OBJDUMP"; then 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5160$as_echo "$OBJDUMP" >&6; } 5161else 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5163$as_echo "no" >&6; } 5164fi 5165 5166 5167fi 5168if test -z "$ac_cv_prog_OBJDUMP"; then 5169 ac_ct_OBJDUMP=$OBJDUMP 5170 # Extract the first word of "objdump", so it can be a program name with args. 5171set dummy objdump; ac_word=$2 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5173$as_echo_n "checking for $ac_word... " >&6; } 5174if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5175 $as_echo_n "(cached) " >&6 5176else 5177 if test -n "$ac_ct_OBJDUMP"; then 5178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5179else 5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5181for as_dir in $PATH 5182do 5183 IFS=$as_save_IFS 5184 test -z "$as_dir" && as_dir=. 5185 for ac_exec_ext in '' $ac_executable_extensions; do 5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5187 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5189 break 2 5190 fi 5191done 5192 done 5193IFS=$as_save_IFS 5194 5195fi 5196fi 5197ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5198if test -n "$ac_ct_OBJDUMP"; then 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5200$as_echo "$ac_ct_OBJDUMP" >&6; } 5201else 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5203$as_echo "no" >&6; } 5204fi 5205 5206 if test "x$ac_ct_OBJDUMP" = x; then 5207 OBJDUMP="false" 5208 else 5209 case $cross_compiling:$ac_tool_warned in 5210yes:) 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5213ac_tool_warned=yes ;; 5214esac 5215 OBJDUMP=$ac_ct_OBJDUMP 5216 fi 5217else 5218 OBJDUMP="$ac_cv_prog_OBJDUMP" 5219fi 5220 5221 ;; 5222esac 5223 5224test -z "$AS" && AS=as 5225 5226 5227 5228 5229 5230test -z "$DLLTOOL" && DLLTOOL=dlltool 5231 5232 5233 5234 5235 5236test -z "$OBJDUMP" && OBJDUMP=objdump 5237 5238 5239 5240 5241 5242 5243 5244case `pwd` in 5245 *\ * | *\ *) 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5247$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5248esac 5249 5250 5251 5252macro_version='2.4.6.42-b88ce' 5253macro_revision='2.4.6.42' 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267ltmain=$ac_aux_dir/ltmain.sh 5268 5269# Backslashify metacharacters that are still active within 5270# double-quoted strings. 5271sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5272 5273# Same as above, but do not quote variable references. 5274double_quote_subst='s/\(["`\\]\)/\\\1/g' 5275 5276# Sed substitution to delay expansion of an escaped shell variable in a 5277# double_quote_subst'ed string. 5278delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5279 5280# Sed substitution to delay expansion of an escaped single quote. 5281delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5282 5283# Sed substitution to avoid accidental globbing in evaled expressions 5284no_glob_subst='s/\*/\\\*/g' 5285 5286ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5287ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5288ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5289 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5291$as_echo_n "checking how to print strings... " >&6; } 5292# Test print first, because it will be a builtin if present. 5293if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5294 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5295 ECHO='print -r --' 5296elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5297 ECHO='printf %s\n' 5298else 5299 # Use this function as a fallback that always works. 5300 func_fallback_echo () 5301 { 5302 eval 'cat <<_LTECHO_EOF 5303$1 5304_LTECHO_EOF' 5305 } 5306 ECHO='func_fallback_echo' 5307fi 5308 5309# func_echo_all arg... 5310# Invoke $ECHO with all args, space-separated. 5311func_echo_all () 5312{ 5313 $ECHO "" 5314} 5315 5316case $ECHO in 5317 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5318$as_echo "printf" >&6; } ;; 5319 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5320$as_echo "print -r" >&6; } ;; 5321 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5322$as_echo "cat" >&6; } ;; 5323esac 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5339$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5340if ${ac_cv_path_SED+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5344 for ac_i in 1 2 3 4 5 6 7; do 5345 ac_script="$ac_script$as_nl$ac_script" 5346 done 5347 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5348 { ac_script=; unset ac_script;} 5349 if test -z "$SED"; then 5350 ac_path_SED_found=false 5351 # Loop through the user's path and test for each of PROGNAME-LIST 5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5353for as_dir in $PATH 5354do 5355 IFS=$as_save_IFS 5356 test -z "$as_dir" && as_dir=. 5357 for ac_prog in sed gsed; do 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5360 as_fn_executable_p "$ac_path_SED" || continue 5361# Check for GNU ac_path_SED and select it if it is found. 5362 # Check for GNU $ac_path_SED 5363case `"$ac_path_SED" --version 2>&1` in 5364*GNU*) 5365 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5366*) 5367 ac_count=0 5368 $as_echo_n 0123456789 >"conftest.in" 5369 while : 5370 do 5371 cat "conftest.in" "conftest.in" >"conftest.tmp" 5372 mv "conftest.tmp" "conftest.in" 5373 cp "conftest.in" "conftest.nl" 5374 $as_echo '' >> "conftest.nl" 5375 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5377 as_fn_arith $ac_count + 1 && ac_count=$as_val 5378 if test $ac_count -gt ${ac_path_SED_max-0}; then 5379 # Best one so far, save it but keep looking for a better one 5380 ac_cv_path_SED="$ac_path_SED" 5381 ac_path_SED_max=$ac_count 5382 fi 5383 # 10*(2^10) chars as input seems more than enough 5384 test $ac_count -gt 10 && break 5385 done 5386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5387esac 5388 5389 $ac_path_SED_found && break 3 5390 done 5391 done 5392 done 5393IFS=$as_save_IFS 5394 if test -z "$ac_cv_path_SED"; then 5395 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5396 fi 5397else 5398 ac_cv_path_SED=$SED 5399fi 5400 5401fi 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5403$as_echo "$ac_cv_path_SED" >&6; } 5404 SED="$ac_cv_path_SED" 5405 rm -f conftest.sed 5406 5407test -z "$SED" && SED=sed 5408Xsed="$SED -e 1s/^X//" 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5421$as_echo_n "checking for fgrep... " >&6; } 5422if ${ac_cv_path_FGREP+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5426 then ac_cv_path_FGREP="$GREP -F" 5427 else 5428 if test -z "$FGREP"; then 5429 ac_path_FGREP_found=false 5430 # Loop through the user's path and test for each of PROGNAME-LIST 5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5432for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5433do 5434 IFS=$as_save_IFS 5435 test -z "$as_dir" && as_dir=. 5436 for ac_prog in fgrep; do 5437 for ac_exec_ext in '' $ac_executable_extensions; do 5438 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5439 as_fn_executable_p "$ac_path_FGREP" || continue 5440# Check for GNU ac_path_FGREP and select it if it is found. 5441 # Check for GNU $ac_path_FGREP 5442case `"$ac_path_FGREP" --version 2>&1` in 5443*GNU*) 5444 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5445*) 5446 ac_count=0 5447 $as_echo_n 0123456789 >"conftest.in" 5448 while : 5449 do 5450 cat "conftest.in" "conftest.in" >"conftest.tmp" 5451 mv "conftest.tmp" "conftest.in" 5452 cp "conftest.in" "conftest.nl" 5453 $as_echo 'FGREP' >> "conftest.nl" 5454 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5456 as_fn_arith $ac_count + 1 && ac_count=$as_val 5457 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5458 # Best one so far, save it but keep looking for a better one 5459 ac_cv_path_FGREP="$ac_path_FGREP" 5460 ac_path_FGREP_max=$ac_count 5461 fi 5462 # 10*(2^10) chars as input seems more than enough 5463 test $ac_count -gt 10 && break 5464 done 5465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5466esac 5467 5468 $ac_path_FGREP_found && break 3 5469 done 5470 done 5471 done 5472IFS=$as_save_IFS 5473 if test -z "$ac_cv_path_FGREP"; then 5474 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5475 fi 5476else 5477 ac_cv_path_FGREP=$FGREP 5478fi 5479 5480 fi 5481fi 5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5483$as_echo "$ac_cv_path_FGREP" >&6; } 5484 FGREP="$ac_cv_path_FGREP" 5485 5486 5487test -z "$GREP" && GREP=grep 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507# Check whether --with-gnu-ld was given. 5508if test "${with_gnu_ld+set}" = set; then : 5509 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5510else 5511 with_gnu_ld=no 5512fi 5513 5514ac_prog=ld 5515if test yes = "$GCC"; then 5516 # Check if gcc -print-prog-name=ld gives a path. 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5518$as_echo_n "checking for ld used by $CC... " >&6; } 5519 case $host in 5520 *-*-mingw*) 5521 # gcc leaves a trailing carriage return, which upsets mingw 5522 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5523 *) 5524 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5525 esac 5526 case $ac_prog in 5527 # Accept absolute paths. 5528 [\\/]* | ?:[\\/]*) 5529 re_direlt='/[^/][^/]*/\.\./' 5530 # Canonicalize the pathname of ld 5531 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5532 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5533 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5534 done 5535 test -z "$LD" && LD=$ac_prog 5536 ;; 5537 "") 5538 # If it fails, then pretend we aren't using GCC. 5539 ac_prog=ld 5540 ;; 5541 *) 5542 # If it is relative, then search for the first ld in PATH. 5543 with_gnu_ld=unknown 5544 ;; 5545 esac 5546elif test yes = "$with_gnu_ld"; then 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5548$as_echo_n "checking for GNU ld... " >&6; } 5549else 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5551$as_echo_n "checking for non-GNU ld... " >&6; } 5552fi 5553if ${lt_cv_path_LD+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 if test -z "$LD"; then 5557 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5558 for ac_dir in $PATH; do 5559 IFS=$lt_save_ifs 5560 test -z "$ac_dir" && ac_dir=. 5561 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5562 lt_cv_path_LD=$ac_dir/$ac_prog 5563 # Check to see if the program is GNU ld. I'd rather use --version, 5564 # but apparently some variants of GNU ld only accept -v. 5565 # Break only if it was the GNU/non-GNU ld that we prefer. 5566 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5567 *GNU* | *'with BFD'*) 5568 test no != "$with_gnu_ld" && break 5569 ;; 5570 *) 5571 test yes != "$with_gnu_ld" && break 5572 ;; 5573 esac 5574 fi 5575 done 5576 IFS=$lt_save_ifs 5577else 5578 lt_cv_path_LD=$LD # Let the user override the test with a path. 5579fi 5580fi 5581 5582LD=$lt_cv_path_LD 5583if test -n "$LD"; then 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5585$as_echo "$LD" >&6; } 5586else 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5588$as_echo "no" >&6; } 5589fi 5590test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5592$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5593if ${lt_cv_prog_gnu_ld+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595else 5596 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5597case `$LD -v 2>&1 </dev/null` in 5598*GNU* | *'with BFD'*) 5599 lt_cv_prog_gnu_ld=yes 5600 ;; 5601*) 5602 lt_cv_prog_gnu_ld=no 5603 ;; 5604esac 5605fi 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5607$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5608with_gnu_ld=$lt_cv_prog_gnu_ld 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5619$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5620if ${lt_cv_path_NM+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 if test -n "$NM"; then 5624 # Let the user override the test. 5625 lt_cv_path_NM=$NM 5626else 5627 lt_nm_to_check=${ac_tool_prefix}nm 5628 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5629 lt_nm_to_check="$lt_nm_to_check nm" 5630 fi 5631 for lt_tmp_nm in $lt_nm_to_check; do 5632 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5634 IFS=$lt_save_ifs 5635 test -z "$ac_dir" && ac_dir=. 5636 tmp_nm=$ac_dir/$lt_tmp_nm 5637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5638 # Check to see if the nm accepts a BSD-compat flag. 5639 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5640 # nm: unknown option "B" ignored 5641 # Tru64's nm complains that /dev/null is an invalid object file 5642 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5643 case $build_os in 5644 mingw*) lt_bad_file=conftest.nm/nofile ;; 5645 *) lt_bad_file=/dev/null ;; 5646 esac 5647 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5648 *$lt_bad_file* | *'Invalid file or object type'*) 5649 lt_cv_path_NM="$tmp_nm -B" 5650 break 2 5651 ;; 5652 *) 5653 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5654 */dev/null*) 5655 lt_cv_path_NM="$tmp_nm -p" 5656 break 2 5657 ;; 5658 *) 5659 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5660 continue # so that we can try to find one that supports BSD flags 5661 ;; 5662 esac 5663 ;; 5664 esac 5665 fi 5666 done 5667 IFS=$lt_save_ifs 5668 done 5669 : ${lt_cv_path_NM=no} 5670fi 5671fi 5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5673$as_echo "$lt_cv_path_NM" >&6; } 5674if test no != "$lt_cv_path_NM"; then 5675 NM=$lt_cv_path_NM 5676else 5677 # Didn't find any BSD compatible name lister, look for dumpbin. 5678 if test -n "$DUMPBIN"; then : 5679 # Let the user override the test. 5680 else 5681 if test -n "$ac_tool_prefix"; then 5682 for ac_prog in dumpbin "link -dump" 5683 do 5684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5685set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5687$as_echo_n "checking for $ac_word... " >&6; } 5688if ${ac_cv_prog_DUMPBIN+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 if test -n "$DUMPBIN"; then 5692 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5693else 5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5695for as_dir in $PATH 5696do 5697 IFS=$as_save_IFS 5698 test -z "$as_dir" && as_dir=. 5699 for ac_exec_ext in '' $ac_executable_extensions; do 5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5701 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5703 break 2 5704 fi 5705done 5706 done 5707IFS=$as_save_IFS 5708 5709fi 5710fi 5711DUMPBIN=$ac_cv_prog_DUMPBIN 5712if test -n "$DUMPBIN"; then 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5714$as_echo "$DUMPBIN" >&6; } 5715else 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717$as_echo "no" >&6; } 5718fi 5719 5720 5721 test -n "$DUMPBIN" && break 5722 done 5723fi 5724if test -z "$DUMPBIN"; then 5725 ac_ct_DUMPBIN=$DUMPBIN 5726 for ac_prog in dumpbin "link -dump" 5727do 5728 # Extract the first word of "$ac_prog", so it can be a program name with args. 5729set dummy $ac_prog; ac_word=$2 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731$as_echo_n "checking for $ac_word... " >&6; } 5732if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 if test -n "$ac_ct_DUMPBIN"; then 5736 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5737else 5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5739for as_dir in $PATH 5740do 5741 IFS=$as_save_IFS 5742 test -z "$as_dir" && as_dir=. 5743 for ac_exec_ext in '' $ac_executable_extensions; do 5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5745 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5747 break 2 5748 fi 5749done 5750 done 5751IFS=$as_save_IFS 5752 5753fi 5754fi 5755ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5756if test -n "$ac_ct_DUMPBIN"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5758$as_echo "$ac_ct_DUMPBIN" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761$as_echo "no" >&6; } 5762fi 5763 5764 5765 test -n "$ac_ct_DUMPBIN" && break 5766done 5767 5768 if test "x$ac_ct_DUMPBIN" = x; then 5769 DUMPBIN=":" 5770 else 5771 case $cross_compiling:$ac_tool_warned in 5772yes:) 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5775ac_tool_warned=yes ;; 5776esac 5777 DUMPBIN=$ac_ct_DUMPBIN 5778 fi 5779fi 5780 5781 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5782 *COFF*) 5783 DUMPBIN="$DUMPBIN -symbols -headers" 5784 ;; 5785 *) 5786 DUMPBIN=: 5787 ;; 5788 esac 5789 fi 5790 5791 if test : != "$DUMPBIN"; then 5792 NM=$DUMPBIN 5793 fi 5794fi 5795test -z "$NM" && NM=nm 5796 5797 5798 5799 5800 5801 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5803$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5804if ${lt_cv_nm_interface+:} false; then : 5805 $as_echo_n "(cached) " >&6 5806else 5807 lt_cv_nm_interface="BSD nm" 5808 echo "int some_variable = 0;" > conftest.$ac_ext 5809 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5810 (eval "$ac_compile" 2>conftest.err) 5811 cat conftest.err >&5 5812 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5813 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5814 cat conftest.err >&5 5815 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5816 cat conftest.out >&5 5817 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5818 lt_cv_nm_interface="MS dumpbin" 5819 fi 5820 rm -f conftest* 5821fi 5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5823$as_echo "$lt_cv_nm_interface" >&6; } 5824 5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5826$as_echo_n "checking whether ln -s works... " >&6; } 5827LN_S=$as_ln_s 5828if test "$LN_S" = "ln -s"; then 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5830$as_echo "yes" >&6; } 5831else 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5833$as_echo "no, using $LN_S" >&6; } 5834fi 5835 5836# find the maximum length of command line arguments 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5838$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5839if ${lt_cv_sys_max_cmd_len+:} false; then : 5840 $as_echo_n "(cached) " >&6 5841else 5842 i=0 5843 teststring=ABCD 5844 5845 case $build_os in 5846 msdosdjgpp*) 5847 # On DJGPP, this test can blow up pretty badly due to problems in libc 5848 # (any single argument exceeding 2000 bytes causes a buffer overrun 5849 # during glob expansion). Even if it were fixed, the result of this 5850 # check would be larger than it should be. 5851 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5852 ;; 5853 5854 gnu*) 5855 # Under GNU Hurd, this test is not required because there is 5856 # no limit to the length of command line arguments. 5857 # Libtool will interpret -1 as no limit whatsoever 5858 lt_cv_sys_max_cmd_len=-1; 5859 ;; 5860 5861 cygwin* | mingw* | cegcc*) 5862 # On Win9x/ME, this test blows up -- it succeeds, but takes 5863 # about 5 minutes as the teststring grows exponentially. 5864 # Worse, since 9x/ME are not pre-emptively multitasking, 5865 # you end up with a "frozen" computer, even though with patience 5866 # the test eventually succeeds (with a max line length of 256k). 5867 # Instead, let's just punt: use the minimum linelength reported by 5868 # all of the supported platforms: 8192 (on NT/2K/XP). 5869 lt_cv_sys_max_cmd_len=8192; 5870 ;; 5871 5872 mint*) 5873 # On MiNT this can take a long time and run out of memory. 5874 lt_cv_sys_max_cmd_len=8192; 5875 ;; 5876 5877 amigaos*) 5878 # On AmigaOS with pdksh, this test takes hours, literally. 5879 # So we just punt and use a minimum line length of 8192. 5880 lt_cv_sys_max_cmd_len=8192; 5881 ;; 5882 5883 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5884 # This has been around since 386BSD, at least. Likely further. 5885 if test -x /sbin/sysctl; then 5886 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5887 elif test -x /usr/sbin/sysctl; then 5888 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5889 else 5890 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5891 fi 5892 # And add a safety zone 5893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5895 ;; 5896 5897 interix*) 5898 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5899 lt_cv_sys_max_cmd_len=196608 5900 ;; 5901 5902 os2*) 5903 # The test takes a long time on OS/2. 5904 lt_cv_sys_max_cmd_len=8192 5905 ;; 5906 5907 osf*) 5908 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5909 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5910 # nice to cause kernel panics so lets avoid the loop below. 5911 # First set a reasonable default. 5912 lt_cv_sys_max_cmd_len=16384 5913 # 5914 if test -x /sbin/sysconfig; then 5915 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5916 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5917 esac 5918 fi 5919 ;; 5920 sco3.2v5*) 5921 lt_cv_sys_max_cmd_len=102400 5922 ;; 5923 sysv5* | sco5v6* | sysv4.2uw2*) 5924 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5925 if test -n "$kargmax"; then 5926 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5927 else 5928 lt_cv_sys_max_cmd_len=32768 5929 fi 5930 ;; 5931 *) 5932 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5933 if test -n "$lt_cv_sys_max_cmd_len" && \ 5934 test undefined != "$lt_cv_sys_max_cmd_len"; then 5935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5937 else 5938 # Make teststring a little bigger before we do anything with it. 5939 # a 1K string should be a reasonable start. 5940 for i in 1 2 3 4 5 6 7 8; do 5941 teststring=$teststring$teststring 5942 done 5943 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5944 # If test is not a shell built-in, we'll probably end up computing a 5945 # maximum length that is only half of the actual maximum length, but 5946 # we can't tell. 5947 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5948 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5949 test 17 != "$i" # 1/2 MB should be enough 5950 do 5951 i=`expr $i + 1` 5952 teststring=$teststring$teststring 5953 done 5954 # Only check the string length outside the loop. 5955 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5956 teststring= 5957 # Add a significant safety factor because C++ compilers can tack on 5958 # massive amounts of additional arguments before passing them to the 5959 # linker. It appears as though 1/2 is a usable value. 5960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5961 fi 5962 ;; 5963 esac 5964 5965fi 5966 5967if test -n "$lt_cv_sys_max_cmd_len"; then 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5969$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5970else 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5972$as_echo "none" >&6; } 5973fi 5974max_cmd_len=$lt_cv_sys_max_cmd_len 5975 5976 5977 5978 5979 5980 5981: ${CP="cp -f"} 5982: ${MV="mv -f"} 5983: ${RM="rm -f"} 5984 5985if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5986 lt_unset=unset 5987else 5988 lt_unset=false 5989fi 5990 5991 5992 5993 5994 5995# test EBCDIC or ASCII 5996case `echo X|tr X '\101'` in 5997 A) # ASCII based system 5998 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5999 lt_SP2NL='tr \040 \012' 6000 lt_NL2SP='tr \015\012 \040\040' 6001 ;; 6002 *) # EBCDIC based system 6003 lt_SP2NL='tr \100 \n' 6004 lt_NL2SP='tr \r\n \100\100' 6005 ;; 6006esac 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6017$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6018if ${lt_cv_to_host_file_cmd+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 case $host in 6022 *-*-mingw* ) 6023 case $build in 6024 *-*-mingw* ) # actually msys 6025 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6026 ;; 6027 *-*-cygwin* ) 6028 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6029 ;; 6030 * ) # otherwise, assume *nix 6031 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6032 ;; 6033 esac 6034 ;; 6035 *-*-cygwin* ) 6036 case $build in 6037 *-*-mingw* ) # actually msys 6038 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6039 ;; 6040 *-*-cygwin* ) 6041 lt_cv_to_host_file_cmd=func_convert_file_noop 6042 ;; 6043 * ) # otherwise, assume *nix 6044 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6045 ;; 6046 esac 6047 ;; 6048 * ) # unhandled hosts (and "normal" native builds) 6049 lt_cv_to_host_file_cmd=func_convert_file_noop 6050 ;; 6051esac 6052 6053fi 6054 6055to_host_file_cmd=$lt_cv_to_host_file_cmd 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6057$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6058 6059 6060 6061 6062 6063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6064$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6065if ${lt_cv_to_tool_file_cmd+:} false; then : 6066 $as_echo_n "(cached) " >&6 6067else 6068 #assume ordinary cross tools, or native build. 6069lt_cv_to_tool_file_cmd=func_convert_file_noop 6070case $host in 6071 *-*-mingw* ) 6072 case $build in 6073 *-*-mingw* ) # actually msys 6074 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6075 ;; 6076 esac 6077 ;; 6078esac 6079 6080fi 6081 6082to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6084$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6085 6086 6087 6088 6089 6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6091$as_echo_n "checking for $LD option to reload object files... " >&6; } 6092if ${lt_cv_ld_reload_flag+:} false; then : 6093 $as_echo_n "(cached) " >&6 6094else 6095 lt_cv_ld_reload_flag='-r' 6096fi 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6098$as_echo "$lt_cv_ld_reload_flag" >&6; } 6099reload_flag=$lt_cv_ld_reload_flag 6100case $reload_flag in 6101"" | " "*) ;; 6102*) reload_flag=" $reload_flag" ;; 6103esac 6104reload_cmds='$LD$reload_flag -o $output$reload_objs' 6105case $host_os in 6106 cygwin* | mingw* | pw32* | cegcc*) 6107 if test yes != "$GCC"; then 6108 reload_cmds=false 6109 fi 6110 ;; 6111 darwin*) 6112 if test yes = "$GCC"; then 6113 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6114 else 6115 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6116 fi 6117 ;; 6118esac 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128if test -n "$ac_tool_prefix"; then 6129 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6130set dummy ${ac_tool_prefix}objdump; ac_word=$2 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6132$as_echo_n "checking for $ac_word... " >&6; } 6133if ${ac_cv_prog_OBJDUMP+:} false; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 if test -n "$OBJDUMP"; then 6137 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6138else 6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6140for as_dir in $PATH 6141do 6142 IFS=$as_save_IFS 6143 test -z "$as_dir" && as_dir=. 6144 for ac_exec_ext in '' $ac_executable_extensions; do 6145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6146 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6148 break 2 6149 fi 6150done 6151 done 6152IFS=$as_save_IFS 6153 6154fi 6155fi 6156OBJDUMP=$ac_cv_prog_OBJDUMP 6157if test -n "$OBJDUMP"; then 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6159$as_echo "$OBJDUMP" >&6; } 6160else 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6162$as_echo "no" >&6; } 6163fi 6164 6165 6166fi 6167if test -z "$ac_cv_prog_OBJDUMP"; then 6168 ac_ct_OBJDUMP=$OBJDUMP 6169 # Extract the first word of "objdump", so it can be a program name with args. 6170set dummy objdump; ac_word=$2 6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6172$as_echo_n "checking for $ac_word... " >&6; } 6173if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6174 $as_echo_n "(cached) " >&6 6175else 6176 if test -n "$ac_ct_OBJDUMP"; then 6177 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6178else 6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6180for as_dir in $PATH 6181do 6182 IFS=$as_save_IFS 6183 test -z "$as_dir" && as_dir=. 6184 for ac_exec_ext in '' $ac_executable_extensions; do 6185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6186 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6188 break 2 6189 fi 6190done 6191 done 6192IFS=$as_save_IFS 6193 6194fi 6195fi 6196ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6197if test -n "$ac_ct_OBJDUMP"; then 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6199$as_echo "$ac_ct_OBJDUMP" >&6; } 6200else 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6202$as_echo "no" >&6; } 6203fi 6204 6205 if test "x$ac_ct_OBJDUMP" = x; then 6206 OBJDUMP="false" 6207 else 6208 case $cross_compiling:$ac_tool_warned in 6209yes:) 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6212ac_tool_warned=yes ;; 6213esac 6214 OBJDUMP=$ac_ct_OBJDUMP 6215 fi 6216else 6217 OBJDUMP="$ac_cv_prog_OBJDUMP" 6218fi 6219 6220test -z "$OBJDUMP" && OBJDUMP=objdump 6221 6222 6223 6224 6225 6226 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6228$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6229if ${lt_cv_deplibs_check_method+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 lt_cv_file_magic_cmd='$MAGIC_CMD' 6233lt_cv_file_magic_test_file= 6234lt_cv_deplibs_check_method='unknown' 6235# Need to set the preceding variable on all platforms that support 6236# interlibrary dependencies. 6237# 'none' -- dependencies not supported. 6238# 'unknown' -- same as none, but documents that we really don't know. 6239# 'pass_all' -- all dependencies passed with no checks. 6240# 'test_compile' -- check by making test program. 6241# 'file_magic [[regex]]' -- check by looking for files in library path 6242# that responds to the $file_magic_cmd with a given extended regex. 6243# If you have 'file' or equivalent on your system and you're not sure 6244# whether 'pass_all' will *always* work, you probably want this one. 6245 6246case $host_os in 6247aix[4-9]*) 6248 lt_cv_deplibs_check_method=pass_all 6249 ;; 6250 6251beos*) 6252 lt_cv_deplibs_check_method=pass_all 6253 ;; 6254 6255bsdi[45]*) 6256 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6257 lt_cv_file_magic_cmd='/usr/bin/file -L' 6258 lt_cv_file_magic_test_file=/shlib/libc.so 6259 ;; 6260 6261cygwin*) 6262 # func_win32_libid is a shell function defined in ltmain.sh 6263 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6264 lt_cv_file_magic_cmd='func_win32_libid' 6265 ;; 6266 6267mingw* | pw32*) 6268 # Base MSYS/MinGW do not provide the 'file' command needed by 6269 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6270 # unless we find 'file', for example because we are cross-compiling. 6271 if ( file / ) >/dev/null 2>&1; then 6272 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6273 lt_cv_file_magic_cmd='func_win32_libid' 6274 else 6275 # Keep this pattern in sync with the one in func_win32_libid. 6276 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6277 lt_cv_file_magic_cmd='$OBJDUMP -f' 6278 fi 6279 ;; 6280 6281cegcc*) 6282 # use the weaker test based on 'objdump'. See mingw*. 6283 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6284 lt_cv_file_magic_cmd='$OBJDUMP -f' 6285 ;; 6286 6287darwin* | rhapsody*) 6288 lt_cv_deplibs_check_method=pass_all 6289 ;; 6290 6291freebsd* | dragonfly*) 6292 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6293 case $host_cpu in 6294 i*86 ) 6295 # Not sure whether the presence of OpenBSD here was a mistake. 6296 # Let's accept both of them until this is cleared up. 6297 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6298 lt_cv_file_magic_cmd=/usr/bin/file 6299 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6300 ;; 6301 esac 6302 else 6303 lt_cv_deplibs_check_method=pass_all 6304 fi 6305 ;; 6306 6307haiku*) 6308 lt_cv_deplibs_check_method=pass_all 6309 ;; 6310 6311hpux10.20* | hpux11*) 6312 lt_cv_file_magic_cmd=/usr/bin/file 6313 case $host_cpu in 6314 ia64*) 6315 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6316 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6317 ;; 6318 hppa*64*) 6319 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]' 6320 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6321 ;; 6322 *) 6323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6324 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6325 ;; 6326 esac 6327 ;; 6328 6329interix[3-9]*) 6330 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6332 ;; 6333 6334irix5* | irix6* | nonstopux*) 6335 case $LD in 6336 *-32|*"-32 ") libmagic=32-bit;; 6337 *-n32|*"-n32 ") libmagic=N32;; 6338 *-64|*"-64 ") libmagic=64-bit;; 6339 *) libmagic=never-match;; 6340 esac 6341 lt_cv_deplibs_check_method=pass_all 6342 ;; 6343 6344# This must be glibc/ELF. 6345linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6346 lt_cv_deplibs_check_method=pass_all 6347 ;; 6348 6349netbsd*) 6350 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6352 else 6353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6354 fi 6355 ;; 6356 6357newos6*) 6358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6359 lt_cv_file_magic_cmd=/usr/bin/file 6360 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6361 ;; 6362 6363*nto* | *qnx*) 6364 lt_cv_deplibs_check_method=pass_all 6365 ;; 6366 6367openbsd* | bitrig*) 6368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6370 else 6371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6372 fi 6373 ;; 6374 6375osf3* | osf4* | osf5*) 6376 lt_cv_deplibs_check_method=pass_all 6377 ;; 6378 6379rdos*) 6380 lt_cv_deplibs_check_method=pass_all 6381 ;; 6382 6383solaris*) 6384 lt_cv_deplibs_check_method=pass_all 6385 ;; 6386 6387sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6388 lt_cv_deplibs_check_method=pass_all 6389 ;; 6390 6391sysv4 | sysv4.3*) 6392 case $host_vendor in 6393 motorola) 6394 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]' 6395 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6396 ;; 6397 ncr) 6398 lt_cv_deplibs_check_method=pass_all 6399 ;; 6400 sequent) 6401 lt_cv_file_magic_cmd='/bin/file' 6402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6403 ;; 6404 sni) 6405 lt_cv_file_magic_cmd='/bin/file' 6406 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6407 lt_cv_file_magic_test_file=/lib/libc.so 6408 ;; 6409 siemens) 6410 lt_cv_deplibs_check_method=pass_all 6411 ;; 6412 pc) 6413 lt_cv_deplibs_check_method=pass_all 6414 ;; 6415 esac 6416 ;; 6417 6418tpf*) 6419 lt_cv_deplibs_check_method=pass_all 6420 ;; 6421os2*) 6422 lt_cv_deplibs_check_method=pass_all 6423 ;; 6424esac 6425 6426fi 6427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6428$as_echo "$lt_cv_deplibs_check_method" >&6; } 6429 6430file_magic_glob= 6431want_nocaseglob=no 6432if test "$build" = "$host"; then 6433 case $host_os in 6434 mingw* | pw32*) 6435 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6436 want_nocaseglob=yes 6437 else 6438 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6439 fi 6440 ;; 6441 esac 6442fi 6443 6444file_magic_cmd=$lt_cv_file_magic_cmd 6445deplibs_check_method=$lt_cv_deplibs_check_method 6446test -z "$deplibs_check_method" && deplibs_check_method=unknown 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469if test -n "$ac_tool_prefix"; then 6470 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6471set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6473$as_echo_n "checking for $ac_word... " >&6; } 6474if ${ac_cv_prog_DLLTOOL+:} false; then : 6475 $as_echo_n "(cached) " >&6 6476else 6477 if test -n "$DLLTOOL"; then 6478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6479else 6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6481for as_dir in $PATH 6482do 6483 IFS=$as_save_IFS 6484 test -z "$as_dir" && as_dir=. 6485 for ac_exec_ext in '' $ac_executable_extensions; do 6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6487 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6489 break 2 6490 fi 6491done 6492 done 6493IFS=$as_save_IFS 6494 6495fi 6496fi 6497DLLTOOL=$ac_cv_prog_DLLTOOL 6498if test -n "$DLLTOOL"; then 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6500$as_echo "$DLLTOOL" >&6; } 6501else 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6503$as_echo "no" >&6; } 6504fi 6505 6506 6507fi 6508if test -z "$ac_cv_prog_DLLTOOL"; then 6509 ac_ct_DLLTOOL=$DLLTOOL 6510 # Extract the first word of "dlltool", so it can be a program name with args. 6511set dummy dlltool; ac_word=$2 6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6513$as_echo_n "checking for $ac_word... " >&6; } 6514if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6515 $as_echo_n "(cached) " >&6 6516else 6517 if test -n "$ac_ct_DLLTOOL"; then 6518 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6519else 6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6521for as_dir in $PATH 6522do 6523 IFS=$as_save_IFS 6524 test -z "$as_dir" && as_dir=. 6525 for ac_exec_ext in '' $ac_executable_extensions; do 6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6527 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6529 break 2 6530 fi 6531done 6532 done 6533IFS=$as_save_IFS 6534 6535fi 6536fi 6537ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6538if test -n "$ac_ct_DLLTOOL"; then 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6540$as_echo "$ac_ct_DLLTOOL" >&6; } 6541else 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6543$as_echo "no" >&6; } 6544fi 6545 6546 if test "x$ac_ct_DLLTOOL" = x; then 6547 DLLTOOL="false" 6548 else 6549 case $cross_compiling:$ac_tool_warned in 6550yes:) 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6553ac_tool_warned=yes ;; 6554esac 6555 DLLTOOL=$ac_ct_DLLTOOL 6556 fi 6557else 6558 DLLTOOL="$ac_cv_prog_DLLTOOL" 6559fi 6560 6561test -z "$DLLTOOL" && DLLTOOL=dlltool 6562 6563 6564 6565 6566 6567 6568 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6570$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6571if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6572 $as_echo_n "(cached) " >&6 6573else 6574 lt_cv_sharedlib_from_linklib_cmd='unknown' 6575 6576case $host_os in 6577cygwin* | mingw* | pw32* | cegcc*) 6578 # two different shell functions defined in ltmain.sh; 6579 # decide which one to use based on capabilities of $DLLTOOL 6580 case `$DLLTOOL --help 2>&1` in 6581 *--identify-strict*) 6582 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6583 ;; 6584 *) 6585 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6586 ;; 6587 esac 6588 ;; 6589*) 6590 # fallback: assume linklib IS sharedlib 6591 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6592 ;; 6593esac 6594 6595fi 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6597$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6598sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6599test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6600 6601 6602 6603 6604 6605 6606 6607if test -n "$ac_tool_prefix"; then 6608 for ac_prog in ar 6609 do 6610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6611set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6613$as_echo_n "checking for $ac_word... " >&6; } 6614if ${ac_cv_prog_AR+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 if test -n "$AR"; then 6618 ac_cv_prog_AR="$AR" # Let the user override the test. 6619else 6620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6621for as_dir in $PATH 6622do 6623 IFS=$as_save_IFS 6624 test -z "$as_dir" && as_dir=. 6625 for ac_exec_ext in '' $ac_executable_extensions; do 6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6627 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6629 break 2 6630 fi 6631done 6632 done 6633IFS=$as_save_IFS 6634 6635fi 6636fi 6637AR=$ac_cv_prog_AR 6638if test -n "$AR"; then 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6640$as_echo "$AR" >&6; } 6641else 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6643$as_echo "no" >&6; } 6644fi 6645 6646 6647 test -n "$AR" && break 6648 done 6649fi 6650if test -z "$AR"; then 6651 ac_ct_AR=$AR 6652 for ac_prog in ar 6653do 6654 # Extract the first word of "$ac_prog", so it can be a program name with args. 6655set dummy $ac_prog; ac_word=$2 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6657$as_echo_n "checking for $ac_word... " >&6; } 6658if ${ac_cv_prog_ac_ct_AR+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660else 6661 if test -n "$ac_ct_AR"; then 6662 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6663else 6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665for as_dir in $PATH 6666do 6667 IFS=$as_save_IFS 6668 test -z "$as_dir" && as_dir=. 6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6671 ac_cv_prog_ac_ct_AR="$ac_prog" 6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6673 break 2 6674 fi 6675done 6676 done 6677IFS=$as_save_IFS 6678 6679fi 6680fi 6681ac_ct_AR=$ac_cv_prog_ac_ct_AR 6682if test -n "$ac_ct_AR"; then 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6684$as_echo "$ac_ct_AR" >&6; } 6685else 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6687$as_echo "no" >&6; } 6688fi 6689 6690 6691 test -n "$ac_ct_AR" && break 6692done 6693 6694 if test "x$ac_ct_AR" = x; then 6695 AR="false" 6696 else 6697 case $cross_compiling:$ac_tool_warned in 6698yes:) 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6701ac_tool_warned=yes ;; 6702esac 6703 AR=$ac_ct_AR 6704 fi 6705fi 6706 6707: ${AR=ar} 6708 6709 6710 6711 6712 6713 6714# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6715# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6716# higher priority because thats what people were doing historically (setting 6717# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6718# variable obsoleted/removed. 6719 6720test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6721lt_ar_flags=$AR_FLAGS 6722 6723 6724 6725 6726 6727 6728# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6729# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6730 6731 6732 6733 6734 6735 6736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6737$as_echo_n "checking for archiver @FILE support... " >&6; } 6738if ${lt_cv_ar_at_file+:} false; then : 6739 $as_echo_n "(cached) " >&6 6740else 6741 lt_cv_ar_at_file=no 6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6743/* end confdefs.h. */ 6744 6745int 6746main () 6747{ 6748 6749 ; 6750 return 0; 6751} 6752_ACEOF 6753if ac_fn_c_try_compile "$LINENO"; then : 6754 echo conftest.$ac_objext > conftest.lst 6755 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6757 (eval $lt_ar_try) 2>&5 6758 ac_status=$? 6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6760 test $ac_status = 0; } 6761 if test 0 -eq "$ac_status"; then 6762 # Ensure the archiver fails upon bogus file names. 6763 rm -f conftest.$ac_objext libconftest.a 6764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6765 (eval $lt_ar_try) 2>&5 6766 ac_status=$? 6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6768 test $ac_status = 0; } 6769 if test 0 -ne "$ac_status"; then 6770 lt_cv_ar_at_file=@ 6771 fi 6772 fi 6773 rm -f conftest.* libconftest.a 6774 6775fi 6776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6777 6778fi 6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6780$as_echo "$lt_cv_ar_at_file" >&6; } 6781 6782if test no = "$lt_cv_ar_at_file"; then 6783 archiver_list_spec= 6784else 6785 archiver_list_spec=$lt_cv_ar_at_file 6786fi 6787 6788 6789 6790 6791 6792 6793 6794if test -n "$ac_tool_prefix"; then 6795 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6796set dummy ${ac_tool_prefix}strip; ac_word=$2 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6798$as_echo_n "checking for $ac_word... " >&6; } 6799if ${ac_cv_prog_STRIP+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 if test -n "$STRIP"; then 6803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6804else 6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6806for as_dir in $PATH 6807do 6808 IFS=$as_save_IFS 6809 test -z "$as_dir" && as_dir=. 6810 for ac_exec_ext in '' $ac_executable_extensions; do 6811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6812 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6814 break 2 6815 fi 6816done 6817 done 6818IFS=$as_save_IFS 6819 6820fi 6821fi 6822STRIP=$ac_cv_prog_STRIP 6823if test -n "$STRIP"; then 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6825$as_echo "$STRIP" >&6; } 6826else 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6828$as_echo "no" >&6; } 6829fi 6830 6831 6832fi 6833if test -z "$ac_cv_prog_STRIP"; then 6834 ac_ct_STRIP=$STRIP 6835 # Extract the first word of "strip", so it can be a program name with args. 6836set dummy strip; ac_word=$2 6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6838$as_echo_n "checking for $ac_word... " >&6; } 6839if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6840 $as_echo_n "(cached) " >&6 6841else 6842 if test -n "$ac_ct_STRIP"; then 6843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6844else 6845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6846for as_dir in $PATH 6847do 6848 IFS=$as_save_IFS 6849 test -z "$as_dir" && as_dir=. 6850 for ac_exec_ext in '' $ac_executable_extensions; do 6851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6852 ac_cv_prog_ac_ct_STRIP="strip" 6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6854 break 2 6855 fi 6856done 6857 done 6858IFS=$as_save_IFS 6859 6860fi 6861fi 6862ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6863if test -n "$ac_ct_STRIP"; then 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6865$as_echo "$ac_ct_STRIP" >&6; } 6866else 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6868$as_echo "no" >&6; } 6869fi 6870 6871 if test "x$ac_ct_STRIP" = x; then 6872 STRIP=":" 6873 else 6874 case $cross_compiling:$ac_tool_warned in 6875yes:) 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6878ac_tool_warned=yes ;; 6879esac 6880 STRIP=$ac_ct_STRIP 6881 fi 6882else 6883 STRIP="$ac_cv_prog_STRIP" 6884fi 6885 6886test -z "$STRIP" && STRIP=: 6887 6888 6889 6890 6891 6892 6893if test -n "$ac_tool_prefix"; then 6894 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6895set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6897$as_echo_n "checking for $ac_word... " >&6; } 6898if ${ac_cv_prog_RANLIB+:} false; then : 6899 $as_echo_n "(cached) " >&6 6900else 6901 if test -n "$RANLIB"; then 6902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6903else 6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905for as_dir in $PATH 6906do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6911 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915done 6916 done 6917IFS=$as_save_IFS 6918 6919fi 6920fi 6921RANLIB=$ac_cv_prog_RANLIB 6922if test -n "$RANLIB"; then 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6924$as_echo "$RANLIB" >&6; } 6925else 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6927$as_echo "no" >&6; } 6928fi 6929 6930 6931fi 6932if test -z "$ac_cv_prog_RANLIB"; then 6933 ac_ct_RANLIB=$RANLIB 6934 # Extract the first word of "ranlib", so it can be a program name with args. 6935set dummy ranlib; ac_word=$2 6936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6937$as_echo_n "checking for $ac_word... " >&6; } 6938if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6939 $as_echo_n "(cached) " >&6 6940else 6941 if test -n "$ac_ct_RANLIB"; then 6942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6943else 6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6945for as_dir in $PATH 6946do 6947 IFS=$as_save_IFS 6948 test -z "$as_dir" && as_dir=. 6949 for ac_exec_ext in '' $ac_executable_extensions; do 6950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6951 ac_cv_prog_ac_ct_RANLIB="ranlib" 6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6953 break 2 6954 fi 6955done 6956 done 6957IFS=$as_save_IFS 6958 6959fi 6960fi 6961ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6962if test -n "$ac_ct_RANLIB"; then 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6964$as_echo "$ac_ct_RANLIB" >&6; } 6965else 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6967$as_echo "no" >&6; } 6968fi 6969 6970 if test "x$ac_ct_RANLIB" = x; then 6971 RANLIB=":" 6972 else 6973 case $cross_compiling:$ac_tool_warned in 6974yes:) 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6977ac_tool_warned=yes ;; 6978esac 6979 RANLIB=$ac_ct_RANLIB 6980 fi 6981else 6982 RANLIB="$ac_cv_prog_RANLIB" 6983fi 6984 6985test -z "$RANLIB" && RANLIB=: 6986 6987 6988 6989 6990 6991 6992# Determine commands to create old-style static archives. 6993old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6994old_postinstall_cmds='chmod 644 $oldlib' 6995old_postuninstall_cmds= 6996 6997if test -n "$RANLIB"; then 6998 case $host_os in 6999 bitrig* | openbsd*) 7000 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7001 ;; 7002 *) 7003 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7004 ;; 7005 esac 7006 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7007fi 7008 7009case $host_os in 7010 darwin*) 7011 lock_old_archive_extraction=yes ;; 7012 *) 7013 lock_old_archive_extraction=no ;; 7014esac 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054# If no C compiler was specified, use CC. 7055LTCC=${LTCC-"$CC"} 7056 7057# If no C compiler flags were specified, use CFLAGS. 7058LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7059 7060# Allow CC to be a program name with arguments. 7061compiler=$CC 7062 7063 7064# Check for command to grab the raw symbol name followed by C symbol from nm. 7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7066$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7067if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7068 $as_echo_n "(cached) " >&6 7069else 7070 7071# These are sane defaults that work on at least a few old systems. 7072# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7073 7074# Character class describing NM global symbol codes. 7075symcode='[BCDEGRST]' 7076 7077# Regexp to match symbols that can be accessed directly from C. 7078sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7079 7080# Define system-specific variables. 7081case $host_os in 7082aix*) 7083 symcode='[BCDT]' 7084 ;; 7085cygwin* | mingw* | pw32* | cegcc*) 7086 symcode='[ABCDGISTW]' 7087 ;; 7088hpux*) 7089 if test ia64 = "$host_cpu"; then 7090 symcode='[ABCDEGRST]' 7091 fi 7092 ;; 7093irix* | nonstopux*) 7094 symcode='[BCDEGRST]' 7095 ;; 7096osf*) 7097 symcode='[BCDEGQRST]' 7098 ;; 7099solaris*) 7100 symcode='[BDRT]' 7101 ;; 7102sco3.2v5*) 7103 symcode='[DT]' 7104 ;; 7105sysv4.2uw2*) 7106 symcode='[DT]' 7107 ;; 7108sysv5* | sco5v6* | unixware* | OpenUNIX*) 7109 symcode='[ABDT]' 7110 ;; 7111sysv4) 7112 symcode='[DFNSTU]' 7113 ;; 7114esac 7115 7116# If we're using GNU nm, then use its standard symbol codes. 7117case `$NM -V 2>&1` in 7118*GNU* | *'with BFD'*) 7119 symcode='[ABCDGIRSTW]' ;; 7120esac 7121 7122if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7123 # Gets list of data symbols to import. 7124 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7125 # Adjust the below global symbol transforms to fixup imported variables. 7126 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7127 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7128 lt_c_name_lib_hook="\ 7129 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7130 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7131else 7132 # Disable hooks by default. 7133 lt_cv_sys_global_symbol_to_import= 7134 lt_cdecl_hook= 7135 lt_c_name_hook= 7136 lt_c_name_lib_hook= 7137fi 7138 7139# Transform an extracted symbol line into a proper C declaration. 7140# Some systems (esp. on ia64) link data and code symbols differently, 7141# so use this general approach. 7142lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7143$lt_cdecl_hook\ 7144" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7145" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7146 7147# Transform an extracted symbol line into symbol name and symbol address 7148lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7149$lt_c_name_hook\ 7150" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7151" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7152 7153# Transform an extracted symbol line into symbol name with lib prefix and 7154# symbol address. 7155lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7156$lt_c_name_lib_hook\ 7157" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7158" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7159" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7160 7161# Handle CRLF in mingw tool chain 7162opt_cr= 7163case $build_os in 7164mingw*) 7165 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7166 ;; 7167esac 7168 7169# Try without a prefix underscore, then with it. 7170for ac_symprfx in "" "_"; do 7171 7172 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7173 symxfrm="\\1 $ac_symprfx\\2 \\2" 7174 7175 # Write the raw and C identifiers. 7176 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7177 # Fake it for dumpbin and say T for any non-static function, 7178 # D for any global variable and I for any imported variable. 7179 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7180 # which start with @ or ?. 7181 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7182" {last_section=section; section=\$ 3};"\ 7183" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7184" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7185" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7186" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7187" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7188" \$ 0!~/External *\|/{next};"\ 7189" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7190" {if(hide[section]) next};"\ 7191" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7192" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7193" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7194" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7195" ' prfx=^$ac_symprfx" 7196 else 7197 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7198 fi 7199 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7200 7201 # Check to see that the pipe works correctly. 7202 pipe_works=no 7203 7204 rm -f conftest* 7205 cat > conftest.$ac_ext <<_LT_EOF 7206#ifdef __cplusplus 7207extern "C" { 7208#endif 7209char nm_test_var; 7210void nm_test_func(void); 7211void nm_test_func(void){} 7212#ifdef __cplusplus 7213} 7214#endif 7215int main(){nm_test_var='a';nm_test_func();return(0);} 7216_LT_EOF 7217 7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7219 (eval $ac_compile) 2>&5 7220 ac_status=$? 7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7222 test $ac_status = 0; }; then 7223 # Now try to grab the symbols. 7224 nlist=conftest.nm 7225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7226 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7227 ac_status=$? 7228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7229 test $ac_status = 0; } && test -s "$nlist"; then 7230 # Try sorting and uniquifying the output. 7231 if sort "$nlist" | uniq > "$nlist"T; then 7232 mv -f "$nlist"T "$nlist" 7233 else 7234 rm -f "$nlist"T 7235 fi 7236 7237 # Make sure that we snagged all the symbols we need. 7238 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7239 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7240 cat <<_LT_EOF > conftest.$ac_ext 7241/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7242#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7243/* DATA imports from DLLs on WIN32 can't be const, because runtime 7244 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7245# define LT_DLSYM_CONST 7246#elif defined __osf__ 7247/* This system does not cope well with relocations in const data. */ 7248# define LT_DLSYM_CONST 7249#else 7250# define LT_DLSYM_CONST const 7251#endif 7252 7253#ifdef __cplusplus 7254extern "C" { 7255#endif 7256 7257_LT_EOF 7258 # Now generate the symbol file. 7259 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7260 7261 cat <<_LT_EOF >> conftest.$ac_ext 7262 7263/* The mapping between symbol names and symbols. */ 7264LT_DLSYM_CONST struct { 7265 const char *name; 7266 void *address; 7267} 7268lt__PROGRAM__LTX_preloaded_symbols[] = 7269{ 7270 { "@PROGRAM@", (void *) 0 }, 7271_LT_EOF 7272 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7273 cat <<\_LT_EOF >> conftest.$ac_ext 7274 {0, (void *) 0} 7275}; 7276 7277/* This works around a problem in FreeBSD linker */ 7278#ifdef FREEBSD_WORKAROUND 7279static const void *lt_preloaded_setup() { 7280 return lt__PROGRAM__LTX_preloaded_symbols; 7281} 7282#endif 7283 7284#ifdef __cplusplus 7285} 7286#endif 7287_LT_EOF 7288 # Now try linking the two files. 7289 mv conftest.$ac_objext conftstm.$ac_objext 7290 lt_globsym_save_LIBS=$LIBS 7291 lt_globsym_save_CFLAGS=$CFLAGS 7292 LIBS=conftstm.$ac_objext 7293 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7295 (eval $ac_link) 2>&5 7296 ac_status=$? 7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7298 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7299 pipe_works=yes 7300 fi 7301 LIBS=$lt_globsym_save_LIBS 7302 CFLAGS=$lt_globsym_save_CFLAGS 7303 else 7304 echo "cannot find nm_test_func in $nlist" >&5 7305 fi 7306 else 7307 echo "cannot find nm_test_var in $nlist" >&5 7308 fi 7309 else 7310 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7311 fi 7312 else 7313 echo "$progname: failed program was:" >&5 7314 cat conftest.$ac_ext >&5 7315 fi 7316 rm -rf conftest* conftst* 7317 7318 # Do not use the global_symbol_pipe unless it works. 7319 if test yes = "$pipe_works"; then 7320 break 7321 else 7322 lt_cv_sys_global_symbol_pipe= 7323 fi 7324done 7325 7326fi 7327 7328if test -z "$lt_cv_sys_global_symbol_pipe"; then 7329 lt_cv_sys_global_symbol_to_cdecl= 7330fi 7331if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7333$as_echo "failed" >&6; } 7334else 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7336$as_echo "ok" >&6; } 7337fi 7338 7339# Response file support. 7340if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7341 nm_file_list_spec='@' 7342elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7343 nm_file_list_spec='@' 7344fi 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7383$as_echo_n "checking for sysroot... " >&6; } 7384 7385# Check whether --with-sysroot was given. 7386if test "${with_sysroot+set}" = set; then : 7387 withval=$with_sysroot; 7388else 7389 with_sysroot=no 7390fi 7391 7392 7393lt_sysroot= 7394case $with_sysroot in #( 7395 yes) 7396 if test yes = "$GCC"; then 7397 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7398 fi 7399 ;; #( 7400 /*) 7401 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7402 ;; #( 7403 no|'') 7404 ;; #( 7405 *) 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7407$as_echo "$with_sysroot" >&6; } 7408 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7409 ;; 7410esac 7411 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7413$as_echo "${lt_sysroot:-no}" >&6; } 7414 7415 7416 7417 7418 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7420$as_echo_n "checking for a working dd... " >&6; } 7421if ${ac_cv_path_lt_DD+:} false; then : 7422 $as_echo_n "(cached) " >&6 7423else 7424 printf 0123456789abcdef0123456789abcdef >conftest.i 7425cat conftest.i conftest.i >conftest2.i 7426: ${lt_DD:=$DD} 7427if test -z "$lt_DD"; then 7428 ac_path_lt_DD_found=false 7429 # Loop through the user's path and test for each of PROGNAME-LIST 7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7431for as_dir in $PATH 7432do 7433 IFS=$as_save_IFS 7434 test -z "$as_dir" && as_dir=. 7435 for ac_prog in dd; do 7436 for ac_exec_ext in '' $ac_executable_extensions; do 7437 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7438 as_fn_executable_p "$ac_path_lt_DD" || continue 7439if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7440 cmp -s conftest.i conftest.out \ 7441 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7442fi 7443 $ac_path_lt_DD_found && break 3 7444 done 7445 done 7446 done 7447IFS=$as_save_IFS 7448 if test -z "$ac_cv_path_lt_DD"; then 7449 : 7450 fi 7451else 7452 ac_cv_path_lt_DD=$lt_DD 7453fi 7454 7455rm -f conftest.i conftest2.i conftest.out 7456fi 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7458$as_echo "$ac_cv_path_lt_DD" >&6; } 7459 7460 7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7462$as_echo_n "checking how to truncate binary pipes... " >&6; } 7463if ${lt_cv_truncate_bin+:} false; then : 7464 $as_echo_n "(cached) " >&6 7465else 7466 printf 0123456789abcdef0123456789abcdef >conftest.i 7467cat conftest.i conftest.i >conftest2.i 7468lt_cv_truncate_bin= 7469if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7470 cmp -s conftest.i conftest.out \ 7471 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7472fi 7473rm -f conftest.i conftest2.i conftest.out 7474test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7475fi 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7477$as_echo "$lt_cv_truncate_bin" >&6; } 7478 7479 7480 7481 7482 7483 7484 7485# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7486func_cc_basename () 7487{ 7488 for cc_temp in $*""; do 7489 case $cc_temp in 7490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7492 \-*) ;; 7493 *) break;; 7494 esac 7495 done 7496 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7497} 7498 7499# Check whether --enable-libtool-lock was given. 7500if test "${enable_libtool_lock+set}" = set; then : 7501 enableval=$enable_libtool_lock; 7502fi 7503 7504test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7505 7506# Some flags need to be propagated to the compiler or linker for good 7507# libtool support. 7508case $host in 7509ia64-*-hpux*) 7510 # Find out what ABI is being produced by ac_compile, and set mode 7511 # options accordingly. 7512 echo 'int i;' > conftest.$ac_ext 7513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7514 (eval $ac_compile) 2>&5 7515 ac_status=$? 7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7517 test $ac_status = 0; }; then 7518 case `/usr/bin/file conftest.$ac_objext` in 7519 *ELF-32*) 7520 HPUX_IA64_MODE=32 7521 ;; 7522 *ELF-64*) 7523 HPUX_IA64_MODE=64 7524 ;; 7525 esac 7526 fi 7527 rm -rf conftest* 7528 ;; 7529*-*-irix6*) 7530 # Find out what ABI is being produced by ac_compile, and set linker 7531 # options accordingly. 7532 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7534 (eval $ac_compile) 2>&5 7535 ac_status=$? 7536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7537 test $ac_status = 0; }; then 7538 if test yes = "$lt_cv_prog_gnu_ld"; then 7539 case `/usr/bin/file conftest.$ac_objext` in 7540 *32-bit*) 7541 LD="${LD-ld} -melf32bsmip" 7542 ;; 7543 *N32*) 7544 LD="${LD-ld} -melf32bmipn32" 7545 ;; 7546 *64-bit*) 7547 LD="${LD-ld} -melf64bmip" 7548 ;; 7549 esac 7550 else 7551 case `/usr/bin/file conftest.$ac_objext` in 7552 *32-bit*) 7553 LD="${LD-ld} -32" 7554 ;; 7555 *N32*) 7556 LD="${LD-ld} -n32" 7557 ;; 7558 *64-bit*) 7559 LD="${LD-ld} -64" 7560 ;; 7561 esac 7562 fi 7563 fi 7564 rm -rf conftest* 7565 ;; 7566 7567mips64*-*linux*) 7568 # Find out what ABI is being produced by ac_compile, and set linker 7569 # options accordingly. 7570 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7572 (eval $ac_compile) 2>&5 7573 ac_status=$? 7574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7575 test $ac_status = 0; }; then 7576 emul=elf 7577 case `/usr/bin/file conftest.$ac_objext` in 7578 *32-bit*) 7579 emul="${emul}32" 7580 ;; 7581 *64-bit*) 7582 emul="${emul}64" 7583 ;; 7584 esac 7585 case `/usr/bin/file conftest.$ac_objext` in 7586 *MSB*) 7587 emul="${emul}btsmip" 7588 ;; 7589 *LSB*) 7590 emul="${emul}ltsmip" 7591 ;; 7592 esac 7593 case `/usr/bin/file conftest.$ac_objext` in 7594 *N32*) 7595 emul="${emul}n32" 7596 ;; 7597 esac 7598 LD="${LD-ld} -m $emul" 7599 fi 7600 rm -rf conftest* 7601 ;; 7602 7603x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7604s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7605 # Find out what ABI is being produced by ac_compile, and set linker 7606 # options accordingly. Note that the listed cases only cover the 7607 # situations where additional linker options are needed (such as when 7608 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7609 # vice versa); the common cases where no linker options are needed do 7610 # not appear in the list. 7611 echo 'int i;' > conftest.$ac_ext 7612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7613 (eval $ac_compile) 2>&5 7614 ac_status=$? 7615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7616 test $ac_status = 0; }; then 7617 case `/usr/bin/file conftest.o` in 7618 *32-bit*) 7619 case $host in 7620 x86_64-*kfreebsd*-gnu) 7621 LD="${LD-ld} -m elf_i386_fbsd" 7622 ;; 7623 x86_64-*linux*) 7624 case `/usr/bin/file conftest.o` in 7625 *x86-64*) 7626 LD="${LD-ld} -m elf32_x86_64" 7627 ;; 7628 *) 7629 LD="${LD-ld} -m elf_i386" 7630 ;; 7631 esac 7632 ;; 7633 powerpc64le-*linux*) 7634 LD="${LD-ld} -m elf32lppclinux" 7635 ;; 7636 powerpc64-*linux*) 7637 LD="${LD-ld} -m elf32ppclinux" 7638 ;; 7639 s390x-*linux*) 7640 LD="${LD-ld} -m elf_s390" 7641 ;; 7642 sparc64-*linux*) 7643 LD="${LD-ld} -m elf32_sparc" 7644 ;; 7645 esac 7646 ;; 7647 *64-bit*) 7648 case $host in 7649 x86_64-*kfreebsd*-gnu) 7650 LD="${LD-ld} -m elf_x86_64_fbsd" 7651 ;; 7652 x86_64-*linux*) 7653 LD="${LD-ld} -m elf_x86_64" 7654 ;; 7655 powerpcle-*linux*) 7656 LD="${LD-ld} -m elf64lppc" 7657 ;; 7658 powerpc-*linux*) 7659 LD="${LD-ld} -m elf64ppc" 7660 ;; 7661 s390*-*linux*|s390*-*tpf*) 7662 LD="${LD-ld} -m elf64_s390" 7663 ;; 7664 sparc*-*linux*) 7665 LD="${LD-ld} -m elf64_sparc" 7666 ;; 7667 esac 7668 ;; 7669 esac 7670 fi 7671 rm -rf conftest* 7672 ;; 7673 7674*-*-sco3.2v5*) 7675 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7676 SAVE_CFLAGS=$CFLAGS 7677 CFLAGS="$CFLAGS -belf" 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7679$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7680if ${lt_cv_cc_needs_belf+:} false; then : 7681 $as_echo_n "(cached) " >&6 7682else 7683 ac_ext=c 7684ac_cpp='$CPP $CPPFLAGS' 7685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7687ac_compiler_gnu=$ac_cv_c_compiler_gnu 7688 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7690/* end confdefs.h. */ 7691 7692int 7693main () 7694{ 7695 7696 ; 7697 return 0; 7698} 7699_ACEOF 7700if ac_fn_c_try_link "$LINENO"; then : 7701 lt_cv_cc_needs_belf=yes 7702else 7703 lt_cv_cc_needs_belf=no 7704fi 7705rm -f core conftest.err conftest.$ac_objext \ 7706 conftest$ac_exeext conftest.$ac_ext 7707 ac_ext=c 7708ac_cpp='$CPP $CPPFLAGS' 7709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7711ac_compiler_gnu=$ac_cv_c_compiler_gnu 7712 7713fi 7714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7715$as_echo "$lt_cv_cc_needs_belf" >&6; } 7716 if test yes != "$lt_cv_cc_needs_belf"; then 7717 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7718 CFLAGS=$SAVE_CFLAGS 7719 fi 7720 ;; 7721*-*solaris*) 7722 # Find out what ABI is being produced by ac_compile, and set linker 7723 # options accordingly. 7724 echo 'int i;' > conftest.$ac_ext 7725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7726 (eval $ac_compile) 2>&5 7727 ac_status=$? 7728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7729 test $ac_status = 0; }; then 7730 case `/usr/bin/file conftest.o` in 7731 *64-bit*) 7732 case $lt_cv_prog_gnu_ld in 7733 yes*) 7734 case $host in 7735 i?86-*-solaris*|x86_64-*-solaris*) 7736 LD="${LD-ld} -m elf_x86_64" 7737 ;; 7738 sparc*-*-solaris*) 7739 LD="${LD-ld} -m elf64_sparc" 7740 ;; 7741 esac 7742 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7743 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7744 LD=${LD-ld}_sol2 7745 fi 7746 ;; 7747 *) 7748 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7749 LD="${LD-ld} -64" 7750 fi 7751 ;; 7752 esac 7753 ;; 7754 esac 7755 fi 7756 rm -rf conftest* 7757 ;; 7758esac 7759 7760need_locks=$enable_libtool_lock 7761 7762if test -n "$ac_tool_prefix"; then 7763 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7764set dummy ${ac_tool_prefix}mt; ac_word=$2 7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7766$as_echo_n "checking for $ac_word... " >&6; } 7767if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7768 $as_echo_n "(cached) " >&6 7769else 7770 if test -n "$MANIFEST_TOOL"; then 7771 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7772else 7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7774for as_dir in $PATH 7775do 7776 IFS=$as_save_IFS 7777 test -z "$as_dir" && as_dir=. 7778 for ac_exec_ext in '' $ac_executable_extensions; do 7779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7780 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7782 break 2 7783 fi 7784done 7785 done 7786IFS=$as_save_IFS 7787 7788fi 7789fi 7790MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7791if test -n "$MANIFEST_TOOL"; then 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7793$as_echo "$MANIFEST_TOOL" >&6; } 7794else 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7796$as_echo "no" >&6; } 7797fi 7798 7799 7800fi 7801if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7802 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7803 # Extract the first word of "mt", so it can be a program name with args. 7804set dummy mt; ac_word=$2 7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7806$as_echo_n "checking for $ac_word... " >&6; } 7807if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7808 $as_echo_n "(cached) " >&6 7809else 7810 if test -n "$ac_ct_MANIFEST_TOOL"; then 7811 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7812else 7813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7814for as_dir in $PATH 7815do 7816 IFS=$as_save_IFS 7817 test -z "$as_dir" && as_dir=. 7818 for ac_exec_ext in '' $ac_executable_extensions; do 7819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7820 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7822 break 2 7823 fi 7824done 7825 done 7826IFS=$as_save_IFS 7827 7828fi 7829fi 7830ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7831if test -n "$ac_ct_MANIFEST_TOOL"; then 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7833$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7834else 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7836$as_echo "no" >&6; } 7837fi 7838 7839 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7840 MANIFEST_TOOL=":" 7841 else 7842 case $cross_compiling:$ac_tool_warned in 7843yes:) 7844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7846ac_tool_warned=yes ;; 7847esac 7848 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7849 fi 7850else 7851 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7852fi 7853 7854test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7856$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7857if ${lt_cv_path_mainfest_tool+:} false; then : 7858 $as_echo_n "(cached) " >&6 7859else 7860 lt_cv_path_mainfest_tool=no 7861 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7862 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7863 cat conftest.err >&5 7864 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7865 lt_cv_path_mainfest_tool=yes 7866 fi 7867 rm -f conftest* 7868fi 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7870$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7871if test yes != "$lt_cv_path_mainfest_tool"; then 7872 MANIFEST_TOOL=: 7873fi 7874 7875 7876 7877 7878 7879 7880 case $host_os in 7881 rhapsody* | darwin*) 7882 if test -n "$ac_tool_prefix"; then 7883 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7884set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7886$as_echo_n "checking for $ac_word... " >&6; } 7887if ${ac_cv_prog_DSYMUTIL+:} false; then : 7888 $as_echo_n "(cached) " >&6 7889else 7890 if test -n "$DSYMUTIL"; then 7891 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7892else 7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7894for as_dir in $PATH 7895do 7896 IFS=$as_save_IFS 7897 test -z "$as_dir" && as_dir=. 7898 for ac_exec_ext in '' $ac_executable_extensions; do 7899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7900 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7902 break 2 7903 fi 7904done 7905 done 7906IFS=$as_save_IFS 7907 7908fi 7909fi 7910DSYMUTIL=$ac_cv_prog_DSYMUTIL 7911if test -n "$DSYMUTIL"; then 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7913$as_echo "$DSYMUTIL" >&6; } 7914else 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7916$as_echo "no" >&6; } 7917fi 7918 7919 7920fi 7921if test -z "$ac_cv_prog_DSYMUTIL"; then 7922 ac_ct_DSYMUTIL=$DSYMUTIL 7923 # Extract the first word of "dsymutil", so it can be a program name with args. 7924set dummy dsymutil; ac_word=$2 7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7926$as_echo_n "checking for $ac_word... " >&6; } 7927if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7928 $as_echo_n "(cached) " >&6 7929else 7930 if test -n "$ac_ct_DSYMUTIL"; then 7931 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7932else 7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7934for as_dir in $PATH 7935do 7936 IFS=$as_save_IFS 7937 test -z "$as_dir" && as_dir=. 7938 for ac_exec_ext in '' $ac_executable_extensions; do 7939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7940 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7942 break 2 7943 fi 7944done 7945 done 7946IFS=$as_save_IFS 7947 7948fi 7949fi 7950ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7951if test -n "$ac_ct_DSYMUTIL"; then 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7953$as_echo "$ac_ct_DSYMUTIL" >&6; } 7954else 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7956$as_echo "no" >&6; } 7957fi 7958 7959 if test "x$ac_ct_DSYMUTIL" = x; then 7960 DSYMUTIL=":" 7961 else 7962 case $cross_compiling:$ac_tool_warned in 7963yes:) 7964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7966ac_tool_warned=yes ;; 7967esac 7968 DSYMUTIL=$ac_ct_DSYMUTIL 7969 fi 7970else 7971 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7972fi 7973 7974 if test -n "$ac_tool_prefix"; then 7975 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7976set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7978$as_echo_n "checking for $ac_word... " >&6; } 7979if ${ac_cv_prog_NMEDIT+:} false; then : 7980 $as_echo_n "(cached) " >&6 7981else 7982 if test -n "$NMEDIT"; then 7983 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7984else 7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7986for as_dir in $PATH 7987do 7988 IFS=$as_save_IFS 7989 test -z "$as_dir" && as_dir=. 7990 for ac_exec_ext in '' $ac_executable_extensions; do 7991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7992 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7994 break 2 7995 fi 7996done 7997 done 7998IFS=$as_save_IFS 7999 8000fi 8001fi 8002NMEDIT=$ac_cv_prog_NMEDIT 8003if test -n "$NMEDIT"; then 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8005$as_echo "$NMEDIT" >&6; } 8006else 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8008$as_echo "no" >&6; } 8009fi 8010 8011 8012fi 8013if test -z "$ac_cv_prog_NMEDIT"; then 8014 ac_ct_NMEDIT=$NMEDIT 8015 # Extract the first word of "nmedit", so it can be a program name with args. 8016set dummy nmedit; ac_word=$2 8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8018$as_echo_n "checking for $ac_word... " >&6; } 8019if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8020 $as_echo_n "(cached) " >&6 8021else 8022 if test -n "$ac_ct_NMEDIT"; then 8023 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8024else 8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8026for as_dir in $PATH 8027do 8028 IFS=$as_save_IFS 8029 test -z "$as_dir" && as_dir=. 8030 for ac_exec_ext in '' $ac_executable_extensions; do 8031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8032 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8034 break 2 8035 fi 8036done 8037 done 8038IFS=$as_save_IFS 8039 8040fi 8041fi 8042ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8043if test -n "$ac_ct_NMEDIT"; then 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8045$as_echo "$ac_ct_NMEDIT" >&6; } 8046else 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8048$as_echo "no" >&6; } 8049fi 8050 8051 if test "x$ac_ct_NMEDIT" = x; then 8052 NMEDIT=":" 8053 else 8054 case $cross_compiling:$ac_tool_warned in 8055yes:) 8056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8058ac_tool_warned=yes ;; 8059esac 8060 NMEDIT=$ac_ct_NMEDIT 8061 fi 8062else 8063 NMEDIT="$ac_cv_prog_NMEDIT" 8064fi 8065 8066 if test -n "$ac_tool_prefix"; then 8067 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8068set dummy ${ac_tool_prefix}lipo; ac_word=$2 8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8070$as_echo_n "checking for $ac_word... " >&6; } 8071if ${ac_cv_prog_LIPO+:} false; then : 8072 $as_echo_n "(cached) " >&6 8073else 8074 if test -n "$LIPO"; then 8075 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8076else 8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8078for as_dir in $PATH 8079do 8080 IFS=$as_save_IFS 8081 test -z "$as_dir" && as_dir=. 8082 for ac_exec_ext in '' $ac_executable_extensions; do 8083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8084 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8086 break 2 8087 fi 8088done 8089 done 8090IFS=$as_save_IFS 8091 8092fi 8093fi 8094LIPO=$ac_cv_prog_LIPO 8095if test -n "$LIPO"; then 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8097$as_echo "$LIPO" >&6; } 8098else 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8100$as_echo "no" >&6; } 8101fi 8102 8103 8104fi 8105if test -z "$ac_cv_prog_LIPO"; then 8106 ac_ct_LIPO=$LIPO 8107 # Extract the first word of "lipo", so it can be a program name with args. 8108set dummy lipo; ac_word=$2 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8110$as_echo_n "checking for $ac_word... " >&6; } 8111if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8112 $as_echo_n "(cached) " >&6 8113else 8114 if test -n "$ac_ct_LIPO"; then 8115 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8116else 8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8118for as_dir in $PATH 8119do 8120 IFS=$as_save_IFS 8121 test -z "$as_dir" && as_dir=. 8122 for ac_exec_ext in '' $ac_executable_extensions; do 8123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8124 ac_cv_prog_ac_ct_LIPO="lipo" 8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8126 break 2 8127 fi 8128done 8129 done 8130IFS=$as_save_IFS 8131 8132fi 8133fi 8134ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8135if test -n "$ac_ct_LIPO"; then 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8137$as_echo "$ac_ct_LIPO" >&6; } 8138else 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8140$as_echo "no" >&6; } 8141fi 8142 8143 if test "x$ac_ct_LIPO" = x; then 8144 LIPO=":" 8145 else 8146 case $cross_compiling:$ac_tool_warned in 8147yes:) 8148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8150ac_tool_warned=yes ;; 8151esac 8152 LIPO=$ac_ct_LIPO 8153 fi 8154else 8155 LIPO="$ac_cv_prog_LIPO" 8156fi 8157 8158 if test -n "$ac_tool_prefix"; then 8159 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8160set dummy ${ac_tool_prefix}otool; ac_word=$2 8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8162$as_echo_n "checking for $ac_word... " >&6; } 8163if ${ac_cv_prog_OTOOL+:} false; then : 8164 $as_echo_n "(cached) " >&6 8165else 8166 if test -n "$OTOOL"; then 8167 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8168else 8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8170for as_dir in $PATH 8171do 8172 IFS=$as_save_IFS 8173 test -z "$as_dir" && as_dir=. 8174 for ac_exec_ext in '' $ac_executable_extensions; do 8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8176 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8178 break 2 8179 fi 8180done 8181 done 8182IFS=$as_save_IFS 8183 8184fi 8185fi 8186OTOOL=$ac_cv_prog_OTOOL 8187if test -n "$OTOOL"; then 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8189$as_echo "$OTOOL" >&6; } 8190else 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8192$as_echo "no" >&6; } 8193fi 8194 8195 8196fi 8197if test -z "$ac_cv_prog_OTOOL"; then 8198 ac_ct_OTOOL=$OTOOL 8199 # Extract the first word of "otool", so it can be a program name with args. 8200set dummy otool; ac_word=$2 8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8202$as_echo_n "checking for $ac_word... " >&6; } 8203if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8204 $as_echo_n "(cached) " >&6 8205else 8206 if test -n "$ac_ct_OTOOL"; then 8207 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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 test -z "$as_dir" && as_dir=. 8214 for ac_exec_ext in '' $ac_executable_extensions; do 8215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8216 ac_cv_prog_ac_ct_OTOOL="otool" 8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8218 break 2 8219 fi 8220done 8221 done 8222IFS=$as_save_IFS 8223 8224fi 8225fi 8226ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8227if test -n "$ac_ct_OTOOL"; then 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8229$as_echo "$ac_ct_OTOOL" >&6; } 8230else 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8232$as_echo "no" >&6; } 8233fi 8234 8235 if test "x$ac_ct_OTOOL" = x; then 8236 OTOOL=":" 8237 else 8238 case $cross_compiling:$ac_tool_warned in 8239yes:) 8240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8242ac_tool_warned=yes ;; 8243esac 8244 OTOOL=$ac_ct_OTOOL 8245 fi 8246else 8247 OTOOL="$ac_cv_prog_OTOOL" 8248fi 8249 8250 if test -n "$ac_tool_prefix"; then 8251 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8252set dummy ${ac_tool_prefix}otool64; ac_word=$2 8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8254$as_echo_n "checking for $ac_word... " >&6; } 8255if ${ac_cv_prog_OTOOL64+:} false; then : 8256 $as_echo_n "(cached) " >&6 8257else 8258 if test -n "$OTOOL64"; then 8259 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8260else 8261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8262for as_dir in $PATH 8263do 8264 IFS=$as_save_IFS 8265 test -z "$as_dir" && as_dir=. 8266 for ac_exec_ext in '' $ac_executable_extensions; do 8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8268 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8270 break 2 8271 fi 8272done 8273 done 8274IFS=$as_save_IFS 8275 8276fi 8277fi 8278OTOOL64=$ac_cv_prog_OTOOL64 8279if test -n "$OTOOL64"; then 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8281$as_echo "$OTOOL64" >&6; } 8282else 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8284$as_echo "no" >&6; } 8285fi 8286 8287 8288fi 8289if test -z "$ac_cv_prog_OTOOL64"; then 8290 ac_ct_OTOOL64=$OTOOL64 8291 # Extract the first word of "otool64", so it can be a program name with args. 8292set dummy otool64; ac_word=$2 8293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8294$as_echo_n "checking for $ac_word... " >&6; } 8295if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8296 $as_echo_n "(cached) " >&6 8297else 8298 if test -n "$ac_ct_OTOOL64"; then 8299 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8300else 8301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8302for as_dir in $PATH 8303do 8304 IFS=$as_save_IFS 8305 test -z "$as_dir" && as_dir=. 8306 for ac_exec_ext in '' $ac_executable_extensions; do 8307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8308 ac_cv_prog_ac_ct_OTOOL64="otool64" 8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8310 break 2 8311 fi 8312done 8313 done 8314IFS=$as_save_IFS 8315 8316fi 8317fi 8318ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8319if test -n "$ac_ct_OTOOL64"; then 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8321$as_echo "$ac_ct_OTOOL64" >&6; } 8322else 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8324$as_echo "no" >&6; } 8325fi 8326 8327 if test "x$ac_ct_OTOOL64" = x; then 8328 OTOOL64=":" 8329 else 8330 case $cross_compiling:$ac_tool_warned in 8331yes:) 8332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8334ac_tool_warned=yes ;; 8335esac 8336 OTOOL64=$ac_ct_OTOOL64 8337 fi 8338else 8339 OTOOL64="$ac_cv_prog_OTOOL64" 8340fi 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8369$as_echo_n "checking for -single_module linker flag... " >&6; } 8370if ${lt_cv_apple_cc_single_mod+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 lt_cv_apple_cc_single_mod=no 8374 if test -z "$LT_MULTI_MODULE"; then 8375 # By default we will add the -single_module flag. You can override 8376 # by either setting the environment variable LT_MULTI_MODULE 8377 # non-empty at configure time, or by adding -multi_module to the 8378 # link flags. 8379 rm -rf libconftest.dylib* 8380 echo "int foo(void){return 1;}" > conftest.c 8381 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8382-dynamiclib -Wl,-single_module conftest.c" >&5 8383 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8384 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8385 _lt_result=$? 8386 # If there is a non-empty error log, and "single_module" 8387 # appears in it, assume the flag caused a linker warning 8388 if test -s conftest.err && $GREP single_module conftest.err; then 8389 cat conftest.err >&5 8390 # Otherwise, if the output was created with a 0 exit code from 8391 # the compiler, it worked. 8392 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8393 lt_cv_apple_cc_single_mod=yes 8394 else 8395 cat conftest.err >&5 8396 fi 8397 rm -rf libconftest.dylib* 8398 rm -f conftest.* 8399 fi 8400fi 8401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8402$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8403 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8405$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8406if ${lt_cv_ld_exported_symbols_list+:} false; then : 8407 $as_echo_n "(cached) " >&6 8408else 8409 lt_cv_ld_exported_symbols_list=no 8410 save_LDFLAGS=$LDFLAGS 8411 echo "_main" > conftest.sym 8412 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8414/* end confdefs.h. */ 8415 8416int 8417main () 8418{ 8419 8420 ; 8421 return 0; 8422} 8423_ACEOF 8424if ac_fn_c_try_link "$LINENO"; then : 8425 lt_cv_ld_exported_symbols_list=yes 8426else 8427 lt_cv_ld_exported_symbols_list=no 8428fi 8429rm -f core conftest.err conftest.$ac_objext \ 8430 conftest$ac_exeext conftest.$ac_ext 8431 LDFLAGS=$save_LDFLAGS 8432 8433fi 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8435$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8436 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8438$as_echo_n "checking for -force_load linker flag... " >&6; } 8439if ${lt_cv_ld_force_load+:} false; then : 8440 $as_echo_n "(cached) " >&6 8441else 8442 lt_cv_ld_force_load=no 8443 cat > conftest.c << _LT_EOF 8444int forced_loaded() { return 2;} 8445_LT_EOF 8446 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8447 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8448 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8449 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8450 echo "$RANLIB libconftest.a" >&5 8451 $RANLIB libconftest.a 2>&5 8452 cat > conftest.c << _LT_EOF 8453int main() { return 0;} 8454_LT_EOF 8455 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8456 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8457 _lt_result=$? 8458 if test -s conftest.err && $GREP force_load conftest.err; then 8459 cat conftest.err >&5 8460 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8461 lt_cv_ld_force_load=yes 8462 else 8463 cat conftest.err >&5 8464 fi 8465 rm -f conftest.err libconftest.a conftest conftest.c 8466 rm -rf conftest.dSYM 8467 8468fi 8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8470$as_echo "$lt_cv_ld_force_load" >&6; } 8471 case $host_os in 8472 rhapsody* | darwin1.[012]) 8473 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8474 darwin1.*) 8475 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8476 darwin*) # darwin 5.x on 8477 # if running on 10.5 or later, the deployment target defaults 8478 # to the OS version, if on x86, and 10.4, the deployment 8479 # target defaults to 10.4. Don't you love it? 8480 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8481 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8482 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8483 10.[012][,.]*) 8484 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8485 10.*) 8486 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8487 esac 8488 ;; 8489 esac 8490 if test yes = "$lt_cv_apple_cc_single_mod"; then 8491 _lt_dar_single_mod='$single_module' 8492 fi 8493 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8494 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8495 else 8496 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8497 fi 8498 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8499 _lt_dsymutil='~$DSYMUTIL $lib || :' 8500 else 8501 _lt_dsymutil= 8502 fi 8503 ;; 8504 esac 8505 8506# func_munge_path_list VARIABLE PATH 8507# ----------------------------------- 8508# VARIABLE is name of variable containing _space_ separated list of 8509# directories to be munged by the contents of PATH, which is string 8510# having a format: 8511# "DIR[:DIR]:" 8512# string "DIR[ DIR]" will be prepended to VARIABLE 8513# ":DIR[:DIR]" 8514# string "DIR[ DIR]" will be appended to VARIABLE 8515# "DIRP[:DIRP]::[DIRA:]DIRA" 8516# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8517# "DIRA[ DIRA]" will be appended to VARIABLE 8518# "DIR[:DIR]" 8519# VARIABLE will be replaced by "DIR[ DIR]" 8520func_munge_path_list () 8521{ 8522 case x$2 in 8523 x) 8524 ;; 8525 *:) 8526 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8527 ;; 8528 x:*) 8529 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8530 ;; 8531 *::*) 8532 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8533 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8534 ;; 8535 *) 8536 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8537 ;; 8538 esac 8539} 8540 8541for ac_header in dlfcn.h 8542do : 8543 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8544" 8545if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8546 cat >>confdefs.h <<_ACEOF 8547#define HAVE_DLFCN_H 1 8548_ACEOF 8549 8550fi 8551 8552done 8553 8554 8555 8556 8557 8558# Set options 8559 8560 8561 8562 enable_dlopen=no 8563 8564 8565 8566 # Check whether --enable-shared was given. 8567if test "${enable_shared+set}" = set; then : 8568 enableval=$enable_shared; p=${PACKAGE-default} 8569 case $enableval in 8570 yes) enable_shared=yes ;; 8571 no) enable_shared=no ;; 8572 *) 8573 enable_shared=no 8574 # Look at the argument we got. We use all the common list separators. 8575 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8576 for pkg in $enableval; do 8577 IFS=$lt_save_ifs 8578 if test "X$pkg" = "X$p"; then 8579 enable_shared=yes 8580 fi 8581 done 8582 IFS=$lt_save_ifs 8583 ;; 8584 esac 8585else 8586 enable_shared=yes 8587fi 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 # Check whether --enable-static was given. 8598if test "${enable_static+set}" = set; then : 8599 enableval=$enable_static; p=${PACKAGE-default} 8600 case $enableval in 8601 yes) enable_static=yes ;; 8602 no) enable_static=no ;; 8603 *) 8604 enable_static=no 8605 # Look at the argument we got. We use all the common list separators. 8606 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8607 for pkg in $enableval; do 8608 IFS=$lt_save_ifs 8609 if test "X$pkg" = "X$p"; then 8610 enable_static=yes 8611 fi 8612 done 8613 IFS=$lt_save_ifs 8614 ;; 8615 esac 8616else 8617 enable_static=yes 8618fi 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629# Check whether --with-pic was given. 8630if test "${with_pic+set}" = set; then : 8631 withval=$with_pic; lt_p=${PACKAGE-default} 8632 case $withval in 8633 yes|no) pic_mode=$withval ;; 8634 *) 8635 pic_mode=default 8636 # Look at the argument we got. We use all the common list separators. 8637 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8638 for lt_pkg in $withval; do 8639 IFS=$lt_save_ifs 8640 if test "X$lt_pkg" = "X$lt_p"; then 8641 pic_mode=yes 8642 fi 8643 done 8644 IFS=$lt_save_ifs 8645 ;; 8646 esac 8647else 8648 pic_mode=default 8649fi 8650 8651 8652 8653 8654 8655 8656 8657 8658 # Check whether --enable-fast-install was given. 8659if test "${enable_fast_install+set}" = set; then : 8660 enableval=$enable_fast_install; p=${PACKAGE-default} 8661 case $enableval in 8662 yes) enable_fast_install=yes ;; 8663 no) enable_fast_install=no ;; 8664 *) 8665 enable_fast_install=no 8666 # Look at the argument we got. We use all the common list separators. 8667 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8668 for pkg in $enableval; do 8669 IFS=$lt_save_ifs 8670 if test "X$pkg" = "X$p"; then 8671 enable_fast_install=yes 8672 fi 8673 done 8674 IFS=$lt_save_ifs 8675 ;; 8676 esac 8677else 8678 enable_fast_install=yes 8679fi 8680 8681 8682 8683 8684 8685 8686 8687 8688 shared_archive_member_spec= 8689case $host,$enable_shared in 8690power*-*-aix[5-9]*,yes) 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8692$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8693 8694# Check whether --with-aix-soname was given. 8695if test "${with_aix_soname+set}" = set; then : 8696 withval=$with_aix_soname; case $withval in 8697 aix|svr4|both) 8698 ;; 8699 *) 8700 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8701 ;; 8702 esac 8703 lt_cv_with_aix_soname=$with_aix_soname 8704else 8705 if ${lt_cv_with_aix_soname+:} false; then : 8706 $as_echo_n "(cached) " >&6 8707else 8708 lt_cv_with_aix_soname=aix 8709fi 8710 8711 with_aix_soname=$lt_cv_with_aix_soname 8712fi 8713 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8715$as_echo "$with_aix_soname" >&6; } 8716 if test aix != "$with_aix_soname"; then 8717 # For the AIX way of multilib, we name the shared archive member 8718 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8719 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8720 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8721 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8722 if test 64 = "${OBJECT_MODE-32}"; then 8723 shared_archive_member_spec=shr_64 8724 else 8725 shared_archive_member_spec=shr 8726 fi 8727 fi 8728 ;; 8729*) 8730 with_aix_soname=aix 8731 ;; 8732esac 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743# This can be used to rebuild libtool when needed 8744LIBTOOL_DEPS=$ltmain 8745 8746# Always use our own libtool. 8747LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778test -z "$LN_S" && LN_S="ln -s" 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793if test -n "${ZSH_VERSION+set}"; then 8794 setopt NO_GLOB_SUBST 8795fi 8796 8797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8798$as_echo_n "checking for objdir... " >&6; } 8799if ${lt_cv_objdir+:} false; then : 8800 $as_echo_n "(cached) " >&6 8801else 8802 rm -f .libs 2>/dev/null 8803mkdir .libs 2>/dev/null 8804if test -d .libs; then 8805 lt_cv_objdir=.libs 8806else 8807 # MS-DOS does not allow filenames that begin with a dot. 8808 lt_cv_objdir=_libs 8809fi 8810rmdir .libs 2>/dev/null 8811fi 8812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8813$as_echo "$lt_cv_objdir" >&6; } 8814objdir=$lt_cv_objdir 8815 8816 8817 8818 8819 8820cat >>confdefs.h <<_ACEOF 8821#define LT_OBJDIR "$lt_cv_objdir/" 8822_ACEOF 8823 8824 8825 8826 8827case $host_os in 8828aix3*) 8829 # AIX sometimes has problems with the GCC collect2 program. For some 8830 # reason, if we set the COLLECT_NAMES environment variable, the problems 8831 # vanish in a puff of smoke. 8832 if test set != "${COLLECT_NAMES+set}"; then 8833 COLLECT_NAMES= 8834 export COLLECT_NAMES 8835 fi 8836 ;; 8837esac 8838 8839# Global variables: 8840ofile=libtool 8841can_build_shared=yes 8842 8843# All known linkers require a '.a' archive for static linking (except MSVC and 8844# ICC, which need '.lib'). 8845libext=a 8846 8847with_gnu_ld=$lt_cv_prog_gnu_ld 8848 8849old_CC=$CC 8850old_CFLAGS=$CFLAGS 8851 8852# Set sane defaults for various variables 8853test -z "$CC" && CC=cc 8854test -z "$LTCC" && LTCC=$CC 8855test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8856test -z "$LD" && LD=ld 8857test -z "$ac_objext" && ac_objext=o 8858 8859func_cc_basename $compiler 8860cc_basename=$func_cc_basename_result 8861 8862 8863# Only perform the check for file, if the check method requires it 8864test -z "$MAGIC_CMD" && MAGIC_CMD=file 8865case $deplibs_check_method in 8866file_magic*) 8867 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8869$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8870if ${lt_cv_path_MAGIC_CMD+:} false; then : 8871 $as_echo_n "(cached) " >&6 8872else 8873 case $MAGIC_CMD in 8874[\\/*] | ?:[\\/]*) 8875 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8876 ;; 8877*) 8878 lt_save_MAGIC_CMD=$MAGIC_CMD 8879 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8880 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8881 for ac_dir in $ac_dummy; do 8882 IFS=$lt_save_ifs 8883 test -z "$ac_dir" && ac_dir=. 8884 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8885 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8886 if test -n "$file_magic_test_file"; then 8887 case $deplibs_check_method in 8888 "file_magic "*) 8889 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8890 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8891 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8892 $EGREP "$file_magic_regex" > /dev/null; then 8893 : 8894 else 8895 cat <<_LT_EOF 1>&2 8896 8897*** Warning: the command libtool uses to detect shared libraries, 8898*** $file_magic_cmd, produces output that libtool cannot recognize. 8899*** The result is that libtool may fail to recognize shared libraries 8900*** as such. This will affect the creation of libtool libraries that 8901*** depend on shared libraries, but programs linked with such libtool 8902*** libraries will work regardless of this problem. Nevertheless, you 8903*** may want to report the problem to your system manager and/or to 8904*** bug-libtool@gnu.org 8905 8906_LT_EOF 8907 fi ;; 8908 esac 8909 fi 8910 break 8911 fi 8912 done 8913 IFS=$lt_save_ifs 8914 MAGIC_CMD=$lt_save_MAGIC_CMD 8915 ;; 8916esac 8917fi 8918 8919MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8920if test -n "$MAGIC_CMD"; then 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8922$as_echo "$MAGIC_CMD" >&6; } 8923else 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8925$as_echo "no" >&6; } 8926fi 8927 8928 8929 8930 8931 8932if test -z "$lt_cv_path_MAGIC_CMD"; then 8933 if test -n "$ac_tool_prefix"; then 8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8935$as_echo_n "checking for file... " >&6; } 8936if ${lt_cv_path_MAGIC_CMD+:} false; then : 8937 $as_echo_n "(cached) " >&6 8938else 8939 case $MAGIC_CMD in 8940[\\/*] | ?:[\\/]*) 8941 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8942 ;; 8943*) 8944 lt_save_MAGIC_CMD=$MAGIC_CMD 8945 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8946 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8947 for ac_dir in $ac_dummy; do 8948 IFS=$lt_save_ifs 8949 test -z "$ac_dir" && ac_dir=. 8950 if test -f "$ac_dir/file"; then 8951 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8952 if test -n "$file_magic_test_file"; then 8953 case $deplibs_check_method in 8954 "file_magic "*) 8955 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8956 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8958 $EGREP "$file_magic_regex" > /dev/null; then 8959 : 8960 else 8961 cat <<_LT_EOF 1>&2 8962 8963*** Warning: the command libtool uses to detect shared libraries, 8964*** $file_magic_cmd, produces output that libtool cannot recognize. 8965*** The result is that libtool may fail to recognize shared libraries 8966*** as such. This will affect the creation of libtool libraries that 8967*** depend on shared libraries, but programs linked with such libtool 8968*** libraries will work regardless of this problem. Nevertheless, you 8969*** may want to report the problem to your system manager and/or to 8970*** bug-libtool@gnu.org 8971 8972_LT_EOF 8973 fi ;; 8974 esac 8975 fi 8976 break 8977 fi 8978 done 8979 IFS=$lt_save_ifs 8980 MAGIC_CMD=$lt_save_MAGIC_CMD 8981 ;; 8982esac 8983fi 8984 8985MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8986if test -n "$MAGIC_CMD"; then 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8988$as_echo "$MAGIC_CMD" >&6; } 8989else 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8991$as_echo "no" >&6; } 8992fi 8993 8994 8995 else 8996 MAGIC_CMD=: 8997 fi 8998fi 8999 9000 fi 9001 ;; 9002esac 9003 9004# Use C for the default configuration in the libtool script 9005 9006lt_save_CC=$CC 9007ac_ext=c 9008ac_cpp='$CPP $CPPFLAGS' 9009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9011ac_compiler_gnu=$ac_cv_c_compiler_gnu 9012 9013 9014# Source file extension for C test sources. 9015ac_ext=c 9016 9017# Object file extension for compiled C test sources. 9018objext=o 9019objext=$objext 9020 9021# Code to be used in simple compile tests 9022lt_simple_compile_test_code="int some_variable = 0;" 9023 9024# Code to be used in simple link tests 9025lt_simple_link_test_code='int main(){return(0);}' 9026 9027 9028 9029 9030 9031 9032 9033# If no C compiler was specified, use CC. 9034LTCC=${LTCC-"$CC"} 9035 9036# If no C compiler flags were specified, use CFLAGS. 9037LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9038 9039# Allow CC to be a program name with arguments. 9040compiler=$CC 9041 9042# Save the default compiler, since it gets overwritten when the other 9043# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9044compiler_DEFAULT=$CC 9045 9046# save warnings/boilerplate of simple test code 9047ac_outfile=conftest.$ac_objext 9048echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9049eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9050_lt_compiler_boilerplate=`cat conftest.err` 9051$RM conftest* 9052 9053ac_outfile=conftest.$ac_objext 9054echo "$lt_simple_link_test_code" >conftest.$ac_ext 9055eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9056_lt_linker_boilerplate=`cat conftest.err` 9057$RM -r conftest* 9058 9059 9060## CAVEAT EMPTOR: 9061## There is no encapsulation within the following macros, do not change 9062## the running order or otherwise move them around unless you know exactly 9063## what you are doing... 9064if test -n "$compiler"; then 9065 9066lt_prog_compiler_no_builtin_flag= 9067 9068if test yes = "$GCC"; then 9069 case $cc_basename in 9070 nvcc*) 9071 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9072 *) 9073 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9074 esac 9075 9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9077$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9078if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9079 $as_echo_n "(cached) " >&6 9080else 9081 lt_cv_prog_compiler_rtti_exceptions=no 9082 ac_outfile=conftest.$ac_objext 9083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9084 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9085 # Insert the option either (1) after the last *FLAGS variable, or 9086 # (2) before a word containing "conftest.", or (3) at the end. 9087 # Note that $ac_compile itself does not contain backslashes and begins 9088 # with a dollar sign (not a hyphen), so the echo should work correctly. 9089 # The option is referenced via a variable to avoid confusing sed. 9090 lt_compile=`echo "$ac_compile" | $SED \ 9091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9093 -e 's:$: $lt_compiler_flag:'` 9094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9095 (eval "$lt_compile" 2>conftest.err) 9096 ac_status=$? 9097 cat conftest.err >&5 9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9099 if (exit $ac_status) && test -s "$ac_outfile"; then 9100 # The compiler can only warn and ignore the option if not recognized 9101 # So say no if there are warnings other than the usual output. 9102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9104 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9105 lt_cv_prog_compiler_rtti_exceptions=yes 9106 fi 9107 fi 9108 $RM conftest* 9109 9110fi 9111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9112$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9113 9114if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9115 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9116else 9117 : 9118fi 9119 9120fi 9121 9122 9123 9124 9125 9126 9127 lt_prog_compiler_wl= 9128lt_prog_compiler_pic= 9129lt_prog_compiler_static= 9130 9131 9132 if test yes = "$GCC"; then 9133 lt_prog_compiler_wl='-Wl,' 9134 lt_prog_compiler_static='-static' 9135 9136 case $host_os in 9137 aix*) 9138 # All AIX code is PIC. 9139 if test ia64 = "$host_cpu"; then 9140 # AIX 5 now supports IA64 processor 9141 lt_prog_compiler_static='-Bstatic' 9142 fi 9143 lt_prog_compiler_pic='-fPIC' 9144 ;; 9145 9146 amigaos*) 9147 case $host_cpu in 9148 powerpc) 9149 # see comment about AmigaOS4 .so support 9150 lt_prog_compiler_pic='-fPIC' 9151 ;; 9152 m68k) 9153 # FIXME: we need at least 68020 code to build shared libraries, but 9154 # adding the '-m68020' flag to GCC prevents building anything better, 9155 # like '-m68040'. 9156 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9157 ;; 9158 esac 9159 ;; 9160 9161 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9162 # PIC is the default for these OSes. 9163 ;; 9164 9165 mingw* | cygwin* | pw32* | os2* | cegcc*) 9166 # This hack is so that the source file can tell whether it is being 9167 # built for inclusion in a dll (and should export symbols for example). 9168 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9169 # (--disable-auto-import) libraries 9170 lt_prog_compiler_pic='-DDLL_EXPORT' 9171 case $host_os in 9172 os2*) 9173 lt_prog_compiler_static='$wl-static' 9174 ;; 9175 esac 9176 ;; 9177 9178 darwin* | rhapsody*) 9179 # PIC is the default on this platform 9180 # Common symbols not allowed in MH_DYLIB files 9181 lt_prog_compiler_pic='-fno-common' 9182 ;; 9183 9184 haiku*) 9185 # PIC is the default for Haiku. 9186 # The "-static" flag exists, but is broken. 9187 lt_prog_compiler_static= 9188 ;; 9189 9190 hpux*) 9191 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9192 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9193 # sets the default TLS model and affects inlining. 9194 case $host_cpu in 9195 hppa*64*) 9196 # +Z the default 9197 ;; 9198 *) 9199 lt_prog_compiler_pic='-fPIC' 9200 ;; 9201 esac 9202 ;; 9203 9204 interix[3-9]*) 9205 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9206 # Instead, we relocate shared libraries at runtime. 9207 ;; 9208 9209 msdosdjgpp*) 9210 # Just because we use GCC doesn't mean we suddenly get shared libraries 9211 # on systems that don't support them. 9212 lt_prog_compiler_can_build_shared=no 9213 enable_shared=no 9214 ;; 9215 9216 *nto* | *qnx*) 9217 # QNX uses GNU C++, but need to define -shared option too, otherwise 9218 # it will coredump. 9219 lt_prog_compiler_pic='-fPIC -shared' 9220 ;; 9221 9222 sysv4*MP*) 9223 if test -d /usr/nec; then 9224 lt_prog_compiler_pic=-Kconform_pic 9225 fi 9226 ;; 9227 9228 *) 9229 lt_prog_compiler_pic='-fPIC' 9230 ;; 9231 esac 9232 9233 case $cc_basename in 9234 nvcc*) # Cuda Compiler Driver 2.2 9235 lt_prog_compiler_wl='-Xlinker ' 9236 if test -n "$lt_prog_compiler_pic"; then 9237 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9238 fi 9239 ;; 9240 esac 9241 else 9242 # PORTME Check for flag to pass linker flags through the system compiler. 9243 case $host_os in 9244 aix*) 9245 lt_prog_compiler_wl='-Wl,' 9246 if test ia64 = "$host_cpu"; then 9247 # AIX 5 now supports IA64 processor 9248 lt_prog_compiler_static='-Bstatic' 9249 else 9250 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9251 fi 9252 ;; 9253 9254 darwin* | rhapsody*) 9255 # PIC is the default on this platform 9256 # Common symbols not allowed in MH_DYLIB files 9257 lt_prog_compiler_pic='-fno-common' 9258 case $cc_basename in 9259 nagfor*) 9260 # NAG Fortran compiler 9261 lt_prog_compiler_wl='-Wl,-Wl,,' 9262 lt_prog_compiler_pic='-PIC' 9263 lt_prog_compiler_static='-Bstatic' 9264 ;; 9265 esac 9266 ;; 9267 9268 mingw* | cygwin* | pw32* | os2* | cegcc*) 9269 # This hack is so that the source file can tell whether it is being 9270 # built for inclusion in a dll (and should export symbols for example). 9271 lt_prog_compiler_pic='-DDLL_EXPORT' 9272 case $host_os in 9273 os2*) 9274 lt_prog_compiler_static='$wl-static' 9275 ;; 9276 esac 9277 ;; 9278 9279 hpux9* | hpux10* | hpux11*) 9280 lt_prog_compiler_wl='-Wl,' 9281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9282 # not for PA HP-UX. 9283 case $host_cpu in 9284 hppa*64*|ia64*) 9285 # +Z the default 9286 ;; 9287 *) 9288 lt_prog_compiler_pic='+Z' 9289 ;; 9290 esac 9291 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9292 lt_prog_compiler_static='$wl-a ${wl}archive' 9293 ;; 9294 9295 irix5* | irix6* | nonstopux*) 9296 lt_prog_compiler_wl='-Wl,' 9297 # PIC (with -KPIC) is the default. 9298 lt_prog_compiler_static='-non_shared' 9299 ;; 9300 9301 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9302 case $cc_basename in 9303 # old Intel for x86_64, which still supported -KPIC. 9304 ecc*) 9305 lt_prog_compiler_wl='-Wl,' 9306 lt_prog_compiler_pic='-KPIC' 9307 lt_prog_compiler_static='-static' 9308 ;; 9309 # icc used to be incompatible with GCC. 9310 # ICC 10 doesn't accept -KPIC any more. 9311 icc* | ifort*) 9312 lt_prog_compiler_wl='-Wl,' 9313 lt_prog_compiler_pic='-fPIC' 9314 lt_prog_compiler_static='-static' 9315 ;; 9316 # Lahey Fortran 8.1. 9317 lf95*) 9318 lt_prog_compiler_wl='-Wl,' 9319 lt_prog_compiler_pic='--shared' 9320 lt_prog_compiler_static='--static' 9321 ;; 9322 nagfor*) 9323 # NAG Fortran compiler 9324 lt_prog_compiler_wl='-Wl,-Wl,,' 9325 lt_prog_compiler_pic='-PIC' 9326 lt_prog_compiler_static='-Bstatic' 9327 ;; 9328 tcc*) 9329 # Fabrice Bellard et al's Tiny C Compiler 9330 lt_prog_compiler_wl='-Wl,' 9331 lt_prog_compiler_pic='-fPIC' 9332 lt_prog_compiler_static='-static' 9333 ;; 9334 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9335 # Portland Group compilers (*not* the Pentium gcc compiler, 9336 # which looks to be a dead project) 9337 lt_prog_compiler_wl='-Wl,' 9338 lt_prog_compiler_pic='-fpic' 9339 lt_prog_compiler_static='-Bstatic' 9340 ;; 9341 ccc*) 9342 lt_prog_compiler_wl='-Wl,' 9343 # All Alpha code is PIC. 9344 lt_prog_compiler_static='-non_shared' 9345 ;; 9346 xl* | bgxl* | bgf* | mpixl*) 9347 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9348 lt_prog_compiler_wl='-Wl,' 9349 lt_prog_compiler_pic='-qpic' 9350 lt_prog_compiler_static='-qstaticlink' 9351 ;; 9352 *) 9353 case `$CC -V 2>&1 | sed 5q` in 9354 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9355 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9356 lt_prog_compiler_pic='-KPIC' 9357 lt_prog_compiler_static='-Bstatic' 9358 lt_prog_compiler_wl='' 9359 ;; 9360 *Sun\ F* | *Sun*Fortran*) 9361 lt_prog_compiler_pic='-KPIC' 9362 lt_prog_compiler_static='-Bstatic' 9363 lt_prog_compiler_wl='-Qoption ld ' 9364 ;; 9365 *Sun\ C*) 9366 # Sun C 5.9 9367 lt_prog_compiler_pic='-KPIC' 9368 lt_prog_compiler_static='-Bstatic' 9369 lt_prog_compiler_wl='-Wl,' 9370 ;; 9371 *Intel*\ [CF]*Compiler*) 9372 lt_prog_compiler_wl='-Wl,' 9373 lt_prog_compiler_pic='-fPIC' 9374 lt_prog_compiler_static='-static' 9375 ;; 9376 *Portland\ Group*) 9377 lt_prog_compiler_wl='-Wl,' 9378 lt_prog_compiler_pic='-fpic' 9379 lt_prog_compiler_static='-Bstatic' 9380 ;; 9381 esac 9382 ;; 9383 esac 9384 ;; 9385 9386 newsos6) 9387 lt_prog_compiler_pic='-KPIC' 9388 lt_prog_compiler_static='-Bstatic' 9389 ;; 9390 9391 *nto* | *qnx*) 9392 # QNX uses GNU C++, but need to define -shared option too, otherwise 9393 # it will coredump. 9394 lt_prog_compiler_pic='-fPIC -shared' 9395 ;; 9396 9397 osf3* | osf4* | osf5*) 9398 lt_prog_compiler_wl='-Wl,' 9399 # All OSF/1 code is PIC. 9400 lt_prog_compiler_static='-non_shared' 9401 ;; 9402 9403 rdos*) 9404 lt_prog_compiler_static='-non_shared' 9405 ;; 9406 9407 solaris*) 9408 lt_prog_compiler_pic='-KPIC' 9409 lt_prog_compiler_static='-Bstatic' 9410 case $cc_basename in 9411 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9412 lt_prog_compiler_wl='-Qoption ld ';; 9413 *) 9414 lt_prog_compiler_wl='-Wl,';; 9415 esac 9416 ;; 9417 9418 sunos4*) 9419 lt_prog_compiler_wl='-Qoption ld ' 9420 lt_prog_compiler_pic='-PIC' 9421 lt_prog_compiler_static='-Bstatic' 9422 ;; 9423 9424 sysv4 | sysv4.2uw2* | sysv4.3*) 9425 lt_prog_compiler_wl='-Wl,' 9426 lt_prog_compiler_pic='-KPIC' 9427 lt_prog_compiler_static='-Bstatic' 9428 ;; 9429 9430 sysv4*MP*) 9431 if test -d /usr/nec; then 9432 lt_prog_compiler_pic='-Kconform_pic' 9433 lt_prog_compiler_static='-Bstatic' 9434 fi 9435 ;; 9436 9437 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9438 lt_prog_compiler_wl='-Wl,' 9439 lt_prog_compiler_pic='-KPIC' 9440 lt_prog_compiler_static='-Bstatic' 9441 ;; 9442 9443 unicos*) 9444 lt_prog_compiler_wl='-Wl,' 9445 lt_prog_compiler_can_build_shared=no 9446 ;; 9447 9448 uts4*) 9449 lt_prog_compiler_pic='-pic' 9450 lt_prog_compiler_static='-Bstatic' 9451 ;; 9452 9453 *) 9454 lt_prog_compiler_can_build_shared=no 9455 ;; 9456 esac 9457 fi 9458 9459case $host_os in 9460 # For platforms that do not support PIC, -DPIC is meaningless: 9461 *djgpp*) 9462 lt_prog_compiler_pic= 9463 ;; 9464 *) 9465 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9466 ;; 9467esac 9468 9469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9470$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9471if ${lt_cv_prog_compiler_pic+:} false; then : 9472 $as_echo_n "(cached) " >&6 9473else 9474 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9475fi 9476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9477$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9478lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9479 9480# 9481# Check to make sure the PIC flag actually works. 9482# 9483if test -n "$lt_prog_compiler_pic"; then 9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9485$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9486if ${lt_cv_prog_compiler_pic_works+:} false; then : 9487 $as_echo_n "(cached) " >&6 9488else 9489 lt_cv_prog_compiler_pic_works=no 9490 ac_outfile=conftest.$ac_objext 9491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9492 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9493 # Insert the option either (1) after the last *FLAGS variable, or 9494 # (2) before a word containing "conftest.", or (3) at the end. 9495 # Note that $ac_compile itself does not contain backslashes and begins 9496 # with a dollar sign (not a hyphen), so the echo should work correctly. 9497 # The option is referenced via a variable to avoid confusing sed. 9498 lt_compile=`echo "$ac_compile" | $SED \ 9499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9501 -e 's:$: $lt_compiler_flag:'` 9502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9503 (eval "$lt_compile" 2>conftest.err) 9504 ac_status=$? 9505 cat conftest.err >&5 9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9507 if (exit $ac_status) && test -s "$ac_outfile"; then 9508 # The compiler can only warn and ignore the option if not recognized 9509 # So say no if there are warnings other than the usual output. 9510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9513 lt_cv_prog_compiler_pic_works=yes 9514 fi 9515 fi 9516 $RM conftest* 9517 9518fi 9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9520$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9521 9522if test yes = "$lt_cv_prog_compiler_pic_works"; then 9523 case $lt_prog_compiler_pic in 9524 "" | " "*) ;; 9525 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9526 esac 9527else 9528 lt_prog_compiler_pic= 9529 lt_prog_compiler_can_build_shared=no 9530fi 9531 9532fi 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544# 9545# Check to make sure the static flag actually works. 9546# 9547wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9549$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9550if ${lt_cv_prog_compiler_static_works+:} false; then : 9551 $as_echo_n "(cached) " >&6 9552else 9553 lt_cv_prog_compiler_static_works=no 9554 save_LDFLAGS=$LDFLAGS 9555 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9556 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9557 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9558 # The linker can only warn and ignore the option if not recognized 9559 # So say no if there are warnings 9560 if test -s conftest.err; then 9561 # Append any errors to the config.log. 9562 cat conftest.err 1>&5 9563 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9565 if diff conftest.exp conftest.er2 >/dev/null; then 9566 lt_cv_prog_compiler_static_works=yes 9567 fi 9568 else 9569 lt_cv_prog_compiler_static_works=yes 9570 fi 9571 fi 9572 $RM -r conftest* 9573 LDFLAGS=$save_LDFLAGS 9574 9575fi 9576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9577$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9578 9579if test yes = "$lt_cv_prog_compiler_static_works"; then 9580 : 9581else 9582 lt_prog_compiler_static= 9583fi 9584 9585 9586 9587 9588 9589 9590 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9592$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9593if ${lt_cv_prog_compiler_c_o+:} false; then : 9594 $as_echo_n "(cached) " >&6 9595else 9596 lt_cv_prog_compiler_c_o=no 9597 $RM -r conftest 2>/dev/null 9598 mkdir conftest 9599 cd conftest 9600 mkdir out 9601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9602 9603 lt_compiler_flag="-o out/conftest2.$ac_objext" 9604 # Insert the option either (1) after the last *FLAGS variable, or 9605 # (2) before a word containing "conftest.", or (3) at the end. 9606 # Note that $ac_compile itself does not contain backslashes and begins 9607 # with a dollar sign (not a hyphen), so the echo should work correctly. 9608 lt_compile=`echo "$ac_compile" | $SED \ 9609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9611 -e 's:$: $lt_compiler_flag:'` 9612 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9613 (eval "$lt_compile" 2>out/conftest.err) 9614 ac_status=$? 9615 cat out/conftest.err >&5 9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9617 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9618 then 9619 # The compiler can only warn and ignore the option if not recognized 9620 # So say no if there are warnings 9621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9624 lt_cv_prog_compiler_c_o=yes 9625 fi 9626 fi 9627 chmod u+w . 2>&5 9628 $RM conftest* 9629 # SGI C++ compiler will create directory out/ii_files/ for 9630 # template instantiation 9631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9632 $RM out/* && rmdir out 9633 cd .. 9634 $RM -r conftest 9635 $RM conftest* 9636 9637fi 9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9639$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9640 9641 9642 9643 9644 9645 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9647$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9648if ${lt_cv_prog_compiler_c_o+:} false; then : 9649 $as_echo_n "(cached) " >&6 9650else 9651 lt_cv_prog_compiler_c_o=no 9652 $RM -r conftest 2>/dev/null 9653 mkdir conftest 9654 cd conftest 9655 mkdir out 9656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9657 9658 lt_compiler_flag="-o out/conftest2.$ac_objext" 9659 # Insert the option either (1) after the last *FLAGS variable, or 9660 # (2) before a word containing "conftest.", or (3) at the end. 9661 # Note that $ac_compile itself does not contain backslashes and begins 9662 # with a dollar sign (not a hyphen), so the echo should work correctly. 9663 lt_compile=`echo "$ac_compile" | $SED \ 9664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9666 -e 's:$: $lt_compiler_flag:'` 9667 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9668 (eval "$lt_compile" 2>out/conftest.err) 9669 ac_status=$? 9670 cat out/conftest.err >&5 9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9672 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9673 then 9674 # The compiler can only warn and ignore the option if not recognized 9675 # So say no if there are warnings 9676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9677 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9678 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9679 lt_cv_prog_compiler_c_o=yes 9680 fi 9681 fi 9682 chmod u+w . 2>&5 9683 $RM conftest* 9684 # SGI C++ compiler will create directory out/ii_files/ for 9685 # template instantiation 9686 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9687 $RM out/* && rmdir out 9688 cd .. 9689 $RM -r conftest 9690 $RM conftest* 9691 9692fi 9693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9694$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9695 9696 9697 9698 9699hard_links=nottested 9700if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9701 # do not overwrite the value of need_locks provided by the user 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9703$as_echo_n "checking if we can lock with hard links... " >&6; } 9704 hard_links=yes 9705 $RM conftest* 9706 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9707 touch conftest.a 9708 ln conftest.a conftest.b 2>&5 || hard_links=no 9709 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9711$as_echo "$hard_links" >&6; } 9712 if test no = "$hard_links"; then 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9714$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9715 need_locks=warn 9716 fi 9717else 9718 need_locks=no 9719fi 9720 9721 9722 9723 9724 9725 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9727$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9728 9729 runpath_var= 9730 allow_undefined_flag= 9731 always_export_symbols=no 9732 archive_cmds= 9733 archive_expsym_cmds= 9734 compiler_needs_object=no 9735 enable_shared_with_static_runtimes=no 9736 export_dynamic_flag_spec= 9737 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9738 hardcode_automatic=no 9739 hardcode_direct=no 9740 hardcode_direct_absolute=no 9741 hardcode_libdir_flag_spec= 9742 hardcode_libdir_separator= 9743 hardcode_minus_L=no 9744 hardcode_shlibpath_var=unsupported 9745 inherit_rpath=no 9746 link_all_deplibs=unknown 9747 module_cmds= 9748 module_expsym_cmds= 9749 old_archive_from_new_cmds= 9750 old_archive_from_expsyms_cmds= 9751 thread_safe_flag_spec= 9752 whole_archive_flag_spec= 9753 # include_expsyms should be a list of space-separated symbols to be *always* 9754 # included in the symbol list 9755 include_expsyms= 9756 # exclude_expsyms can be an extended regexp of symbols to exclude 9757 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9758 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9759 # as well as any symbol that contains 'd'. 9760 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9761 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9762 # platforms (ab)use it in PIC code, but their linkers get confused if 9763 # the symbol is explicitly referenced. Since portable code cannot 9764 # rely on this symbol name, it's probably fine to never include it in 9765 # preloaded symbol tables. 9766 # Exclude shared library initialization/finalization symbols. 9767 extract_expsyms_cmds= 9768 9769 case $host_os in 9770 cygwin* | mingw* | pw32* | cegcc*) 9771 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9772 # When not using gcc, we currently assume that we are using 9773 # Microsoft Visual C++ or Intel C++ Compiler. 9774 if test yes != "$GCC"; then 9775 with_gnu_ld=no 9776 fi 9777 ;; 9778 interix*) 9779 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9780 with_gnu_ld=yes 9781 ;; 9782 openbsd* | bitrig*) 9783 with_gnu_ld=no 9784 ;; 9785 esac 9786 9787 ld_shlibs=yes 9788 9789 # On some targets, GNU ld is compatible enough with the native linker 9790 # that we're better off using the native interface for both. 9791 lt_use_gnu_ld_interface=no 9792 if test yes = "$with_gnu_ld"; then 9793 case $host_os in 9794 aix*) 9795 # The AIX port of GNU ld has always aspired to compatibility 9796 # with the native linker. However, as the warning in the GNU ld 9797 # block says, versions before 2.19.5* couldn't really create working 9798 # shared libraries, regardless of the interface used. 9799 case `$LD -v 2>&1` in 9800 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9801 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9802 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9803 *) 9804 lt_use_gnu_ld_interface=yes 9805 ;; 9806 esac 9807 ;; 9808 *) 9809 lt_use_gnu_ld_interface=yes 9810 ;; 9811 esac 9812 fi 9813 9814 if test yes = "$lt_use_gnu_ld_interface"; then 9815 # If archive_cmds runs LD, not CC, wlarc should be empty 9816 wlarc='$wl' 9817 9818 # Set some defaults for GNU ld with shared library support. These 9819 # are reset later if shared libraries are not supported. Putting them 9820 # here allows them to be overridden if necessary. 9821 runpath_var=LD_RUN_PATH 9822 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9823 export_dynamic_flag_spec='$wl--export-dynamic' 9824 # ancient GNU ld didn't support --whole-archive et. al. 9825 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9826 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9827 else 9828 whole_archive_flag_spec= 9829 fi 9830 supports_anon_versioning=no 9831 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9832 *GNU\ gold*) supports_anon_versioning=yes ;; 9833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9836 *\ 2.11.*) ;; # other 2.11 versions 9837 *) supports_anon_versioning=yes ;; 9838 esac 9839 9840 # See if GNU ld supports shared libraries. 9841 case $host_os in 9842 aix[3-9]*) 9843 # On AIX/PPC, the GNU linker is very broken 9844 if test ia64 != "$host_cpu"; then 9845 ld_shlibs=no 9846 cat <<_LT_EOF 1>&2 9847 9848*** Warning: the GNU linker, at least up to release 2.19, is reported 9849*** to be unable to reliably create shared libraries on AIX. 9850*** Therefore, libtool is disabling shared libraries support. If you 9851*** really care for shared libraries, you may want to install binutils 9852*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9853*** You will then need to restart the configuration process. 9854 9855_LT_EOF 9856 fi 9857 ;; 9858 9859 amigaos*) 9860 case $host_cpu in 9861 powerpc) 9862 # see comment about AmigaOS4 .so support 9863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9864 archive_expsym_cmds='' 9865 ;; 9866 m68k) 9867 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)' 9868 hardcode_libdir_flag_spec='-L$libdir' 9869 hardcode_minus_L=yes 9870 ;; 9871 esac 9872 ;; 9873 9874 beos*) 9875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9876 allow_undefined_flag=unsupported 9877 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9878 # support --undefined. This deserves some investigation. FIXME 9879 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9880 else 9881 ld_shlibs=no 9882 fi 9883 ;; 9884 9885 cygwin* | mingw* | pw32* | cegcc*) 9886 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9887 # as there is no search path for DLLs. 9888 hardcode_libdir_flag_spec='-L$libdir' 9889 export_dynamic_flag_spec='$wl--export-all-symbols' 9890 allow_undefined_flag=unsupported 9891 always_export_symbols=no 9892 enable_shared_with_static_runtimes=yes 9893 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' 9894 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9895 9896 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9898 # If the export-symbols file already is a .def file, use it as 9899 # is; otherwise, prepend EXPORTS... 9900 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9901 cp $export_symbols $output_objdir/$soname.def; 9902 else 9903 echo EXPORTS > $output_objdir/$soname.def; 9904 cat $export_symbols >> $output_objdir/$soname.def; 9905 fi~ 9906 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9907 else 9908 ld_shlibs=no 9909 fi 9910 ;; 9911 9912 haiku*) 9913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9914 link_all_deplibs=yes 9915 ;; 9916 9917 os2*) 9918 hardcode_libdir_flag_spec='-L$libdir' 9919 hardcode_minus_L=yes 9920 allow_undefined_flag=unsupported 9921 shrext_cmds=.dll 9922 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9923 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9924 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9925 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9926 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9927 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9928 emximp -o $lib $output_objdir/$libname.def' 9929 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9930 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9931 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9932 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9933 prefix_cmds="$SED"~ 9934 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9935 prefix_cmds="$prefix_cmds -e 1d"; 9936 fi~ 9937 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9938 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9939 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9940 emximp -o $lib $output_objdir/$libname.def' 9941 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9942 enable_shared_with_static_runtimes=yes 9943 file_list_spec='@' 9944 ;; 9945 9946 interix[3-9]*) 9947 hardcode_direct=no 9948 hardcode_shlibpath_var=no 9949 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9950 export_dynamic_flag_spec='$wl-E' 9951 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9952 # Instead, shared libraries are loaded at an image base (0x10000000 by 9953 # default) and relocated if they conflict, which is a slow very memory 9954 # consuming and fragmenting process. To avoid this, we pick a random, 9955 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9956 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9957 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9958 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' 9959 ;; 9960 9961 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9962 tmp_diet=no 9963 if test linux-dietlibc = "$host_os"; then 9964 case $cc_basename in 9965 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9966 esac 9967 fi 9968 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9969 && test no = "$tmp_diet" 9970 then 9971 tmp_addflag=' $pic_flag' 9972 tmp_sharedflag='-shared' 9973 case $cc_basename,$host_cpu in 9974 pgcc*) # Portland Group C compiler 9975 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' 9976 tmp_addflag=' $pic_flag' 9977 ;; 9978 pgf77* | pgf90* | pgf95* | pgfortran*) 9979 # Portland Group f77 and f90 compilers 9980 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' 9981 tmp_addflag=' $pic_flag -Mnomain' ;; 9982 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9983 tmp_addflag=' -i_dynamic' ;; 9984 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9985 tmp_addflag=' -i_dynamic -nofor_main' ;; 9986 ifc* | ifort*) # Intel Fortran compiler 9987 tmp_addflag=' -nofor_main' ;; 9988 lf95*) # Lahey Fortran 8.1 9989 whole_archive_flag_spec= 9990 tmp_sharedflag='--shared' ;; 9991 nagfor*) # NAGFOR 5.3 9992 tmp_sharedflag='-Wl,-shared' ;; 9993 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9994 tmp_sharedflag='-qmkshrobj' 9995 tmp_addflag= ;; 9996 nvcc*) # Cuda Compiler Driver 2.2 9997 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' 9998 compiler_needs_object=yes 9999 ;; 10000 esac 10001 case `$CC -V 2>&1 | sed 5q` in 10002 *Sun\ C*) # Sun C 5.9 10003 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' 10004 compiler_needs_object=yes 10005 tmp_sharedflag='-G' ;; 10006 *Sun\ F*) # Sun Fortran 8.3 10007 tmp_sharedflag='-G' ;; 10008 esac 10009 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10010 10011 if test yes = "$supports_anon_versioning"; then 10012 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10014 echo "local: *; };" >> $output_objdir/$libname.ver~ 10015 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10016 fi 10017 10018 case $cc_basename in 10019 tcc*) 10020 export_dynamic_flag_spec='-rdynamic' 10021 ;; 10022 xlf* | bgf* | bgxlf* | mpixlf*) 10023 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10024 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10025 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10026 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10027 if test yes = "$supports_anon_versioning"; then 10028 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10029 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10030 echo "local: *; };" >> $output_objdir/$libname.ver~ 10031 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10032 fi 10033 ;; 10034 esac 10035 else 10036 ld_shlibs=no 10037 fi 10038 ;; 10039 10040 netbsd*) 10041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10042 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10043 wlarc= 10044 else 10045 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10046 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10047 fi 10048 ;; 10049 10050 solaris*) 10051 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10052 ld_shlibs=no 10053 cat <<_LT_EOF 1>&2 10054 10055*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10056*** create shared libraries on Solaris systems. Therefore, libtool 10057*** is disabling shared libraries support. We urge you to upgrade GNU 10058*** binutils to release 2.9.1 or newer. Another option is to modify 10059*** your PATH or compiler configuration so that the native linker is 10060*** used, and then restart. 10061 10062_LT_EOF 10063 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10064 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10065 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10066 else 10067 ld_shlibs=no 10068 fi 10069 ;; 10070 10071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10072 case `$LD -v 2>&1` in 10073 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10074 ld_shlibs=no 10075 cat <<_LT_EOF 1>&2 10076 10077*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10078*** reliably create shared libraries on SCO systems. Therefore, libtool 10079*** is disabling shared libraries support. We urge you to upgrade GNU 10080*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10081*** your PATH or compiler configuration so that the native linker is 10082*** used, and then restart. 10083 10084_LT_EOF 10085 ;; 10086 *) 10087 # For security reasons, it is highly recommended that you always 10088 # use absolute paths for naming shared libraries, and exclude the 10089 # DT_RUNPATH tag from executables and libraries. But doing so 10090 # requires that you compile everything twice, which is a pain. 10091 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10092 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10094 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10095 else 10096 ld_shlibs=no 10097 fi 10098 ;; 10099 esac 10100 ;; 10101 10102 sunos4*) 10103 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10104 wlarc= 10105 hardcode_direct=yes 10106 hardcode_shlibpath_var=no 10107 ;; 10108 10109 *) 10110 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10111 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10112 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10113 else 10114 ld_shlibs=no 10115 fi 10116 ;; 10117 esac 10118 10119 if test no = "$ld_shlibs"; then 10120 runpath_var= 10121 hardcode_libdir_flag_spec= 10122 export_dynamic_flag_spec= 10123 whole_archive_flag_spec= 10124 fi 10125 else 10126 # PORTME fill in a description of your system's linker (not GNU ld) 10127 case $host_os in 10128 aix3*) 10129 allow_undefined_flag=unsupported 10130 always_export_symbols=yes 10131 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' 10132 # Note: this linker hardcodes the directories in LIBPATH if there 10133 # are no directories specified by -L. 10134 hardcode_minus_L=yes 10135 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10136 # Neither direct hardcoding nor static linking is supported with a 10137 # broken collect2. 10138 hardcode_direct=unsupported 10139 fi 10140 ;; 10141 10142 aix[4-9]*) 10143 if test ia64 = "$host_cpu"; then 10144 # On IA64, the linker does run time linking by default, so we don't 10145 # have to do anything special. 10146 aix_use_runtimelinking=no 10147 exp_sym_flag='-Bexport' 10148 no_entry_flag= 10149 else 10150 # If we're using GNU nm, then we don't want the "-C" option. 10151 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10152 # Without the "-l" option, or with the "-B" option, AIX nm treats 10153 # weak defined symbols like other global defined symbols, whereas 10154 # GNU nm marks them as "W". 10155 # While the 'weak' keyword is ignored in the Export File, we need 10156 # it in the Import File for the 'aix-soname' feature, so we have 10157 # to replace the "-B" option with "-P" for AIX nm. 10158 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10159 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' 10160 else 10161 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' 10162 fi 10163 aix_use_runtimelinking=no 10164 10165 # Test if we are trying to use run time linking or normal 10166 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10167 # have runtime linking enabled, and use it for executables. 10168 # For shared libraries, we enable/disable runtime linking 10169 # depending on the kind of the shared library created - 10170 # when "with_aix_soname,aix_use_runtimelinking" is: 10171 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10172 # "aix,yes" lib.so shared, rtl:yes, for executables 10173 # lib.a static archive 10174 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10175 # lib.a(lib.so.V) shared, rtl:no, for executables 10176 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10177 # lib.a(lib.so.V) shared, rtl:no 10178 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10179 # lib.a static archive 10180 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10181 for ld_flag in $LDFLAGS; do 10182 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10183 aix_use_runtimelinking=yes 10184 break 10185 fi 10186 done 10187 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10188 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10189 # so we don't have lib.a shared libs to link our executables. 10190 # We have to force runtime linking in this case. 10191 aix_use_runtimelinking=yes 10192 LDFLAGS="$LDFLAGS -Wl,-brtl" 10193 fi 10194 ;; 10195 esac 10196 10197 exp_sym_flag='-bexport' 10198 no_entry_flag='-bnoentry' 10199 fi 10200 10201 # When large executables or shared objects are built, AIX ld can 10202 # have problems creating the table of contents. If linking a library 10203 # or program results in "error TOC overflow" add -mminimal-toc to 10204 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10205 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10206 10207 archive_cmds='' 10208 hardcode_direct=yes 10209 hardcode_direct_absolute=yes 10210 hardcode_libdir_separator=':' 10211 link_all_deplibs=yes 10212 file_list_spec='$wl-f,' 10213 case $with_aix_soname,$aix_use_runtimelinking in 10214 aix,*) ;; # traditional, no import file 10215 svr4,* | *,yes) # use import file 10216 # The Import File defines what to hardcode. 10217 hardcode_direct=no 10218 hardcode_direct_absolute=no 10219 ;; 10220 esac 10221 10222 if test yes = "$GCC"; then 10223 case $host_os in aix4.[012]|aix4.[012].*) 10224 # We only want to do this on AIX 4.2 and lower, the check 10225 # below for broken collect2 doesn't work under 4.3+ 10226 collect2name=`$CC -print-prog-name=collect2` 10227 if test -f "$collect2name" && 10228 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10229 then 10230 # We have reworked collect2 10231 : 10232 else 10233 # We have old collect2 10234 hardcode_direct=unsupported 10235 # It fails to find uninstalled libraries when the uninstalled 10236 # path is not listed in the libpath. Setting hardcode_minus_L 10237 # to unsupported forces relinking 10238 hardcode_minus_L=yes 10239 hardcode_libdir_flag_spec='-L$libdir' 10240 hardcode_libdir_separator= 10241 fi 10242 ;; 10243 esac 10244 shared_flag='-shared' 10245 if test yes = "$aix_use_runtimelinking"; then 10246 shared_flag="$shared_flag "'$wl-G' 10247 fi 10248 # Need to ensure runtime linking is disabled for the traditional 10249 # shared library, or the linker may eventually find shared libraries 10250 # /with/ Import File - we do not want to mix them. 10251 shared_flag_aix='-shared' 10252 shared_flag_svr4='-shared $wl-G' 10253 else 10254 # not using gcc 10255 if test ia64 = "$host_cpu"; then 10256 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10257 # chokes on -Wl,-G. The following line is correct: 10258 shared_flag='-G' 10259 else 10260 if test yes = "$aix_use_runtimelinking"; then 10261 shared_flag='$wl-G' 10262 else 10263 shared_flag='$wl-bM:SRE' 10264 fi 10265 shared_flag_aix='$wl-bM:SRE' 10266 shared_flag_svr4='$wl-G' 10267 fi 10268 fi 10269 10270 export_dynamic_flag_spec='$wl-bexpall' 10271 # It seems that -bexpall does not export symbols beginning with 10272 # underscore (_), so it is better to generate a list of symbols to export. 10273 always_export_symbols=yes 10274 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10275 # Warning - without using the other runtime loading flags (-brtl), 10276 # -berok will link without error, but may produce a broken library. 10277 allow_undefined_flag='-berok' 10278 # Determine the default libpath from the value encoded in an 10279 # empty executable. 10280 if test set = "${lt_cv_aix_libpath+set}"; then 10281 aix_libpath=$lt_cv_aix_libpath 10282else 10283 if ${lt_cv_aix_libpath_+:} false; then : 10284 $as_echo_n "(cached) " >&6 10285else 10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10287/* end confdefs.h. */ 10288 10289int 10290main () 10291{ 10292 10293 ; 10294 return 0; 10295} 10296_ACEOF 10297if ac_fn_c_try_link "$LINENO"; then : 10298 10299 lt_aix_libpath_sed=' 10300 /Import File Strings/,/^$/ { 10301 /^0/ { 10302 s/^0 *\([^ ]*\) *$/\1/ 10303 p 10304 } 10305 }' 10306 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10307 # Check for a 64-bit object if we didn't find anything. 10308 if test -z "$lt_cv_aix_libpath_"; then 10309 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10310 fi 10311fi 10312rm -f core conftest.err conftest.$ac_objext \ 10313 conftest$ac_exeext conftest.$ac_ext 10314 if test -z "$lt_cv_aix_libpath_"; then 10315 lt_cv_aix_libpath_=/usr/lib:/lib 10316 fi 10317 10318fi 10319 10320 aix_libpath=$lt_cv_aix_libpath_ 10321fi 10322 10323 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10324 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 10325 else 10326 if test ia64 = "$host_cpu"; then 10327 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10328 allow_undefined_flag="-z nodefs" 10329 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" 10330 else 10331 # Determine the default libpath from the value encoded in an 10332 # empty executable. 10333 if test set = "${lt_cv_aix_libpath+set}"; then 10334 aix_libpath=$lt_cv_aix_libpath 10335else 10336 if ${lt_cv_aix_libpath_+:} false; then : 10337 $as_echo_n "(cached) " >&6 10338else 10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10340/* end confdefs.h. */ 10341 10342int 10343main () 10344{ 10345 10346 ; 10347 return 0; 10348} 10349_ACEOF 10350if ac_fn_c_try_link "$LINENO"; then : 10351 10352 lt_aix_libpath_sed=' 10353 /Import File Strings/,/^$/ { 10354 /^0/ { 10355 s/^0 *\([^ ]*\) *$/\1/ 10356 p 10357 } 10358 }' 10359 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10360 # Check for a 64-bit object if we didn't find anything. 10361 if test -z "$lt_cv_aix_libpath_"; then 10362 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10363 fi 10364fi 10365rm -f core conftest.err conftest.$ac_objext \ 10366 conftest$ac_exeext conftest.$ac_ext 10367 if test -z "$lt_cv_aix_libpath_"; then 10368 lt_cv_aix_libpath_=/usr/lib:/lib 10369 fi 10370 10371fi 10372 10373 aix_libpath=$lt_cv_aix_libpath_ 10374fi 10375 10376 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10377 # Warning - without using the other run time loading flags, 10378 # -berok will link without error, but may produce a broken library. 10379 no_undefined_flag=' $wl-bernotok' 10380 allow_undefined_flag=' $wl-berok' 10381 if test yes = "$with_gnu_ld"; then 10382 # We only use this code for GNU lds that support --whole-archive. 10383 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10384 else 10385 # Exported symbols can be pulled into shared objects from archives 10386 whole_archive_flag_spec='$convenience' 10387 fi 10388 archive_cmds_need_lc=yes 10389 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10390 # -brtl affects multiple linker settings, -berok does not and is overridden later 10391 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10392 if test svr4 != "$with_aix_soname"; then 10393 # This is similar to how AIX traditionally builds its shared libraries. 10394 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' 10395 fi 10396 if test aix != "$with_aix_soname"; then 10397 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' 10398 else 10399 # used by -dlpreopen to get the symbols 10400 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10401 fi 10402 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10403 fi 10404 fi 10405 ;; 10406 10407 amigaos*) 10408 case $host_cpu in 10409 powerpc) 10410 # see comment about AmigaOS4 .so support 10411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10412 archive_expsym_cmds='' 10413 ;; 10414 m68k) 10415 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)' 10416 hardcode_libdir_flag_spec='-L$libdir' 10417 hardcode_minus_L=yes 10418 ;; 10419 esac 10420 ;; 10421 10422 bsdi[45]*) 10423 export_dynamic_flag_spec=-rdynamic 10424 ;; 10425 10426 cygwin* | mingw* | pw32* | cegcc*) 10427 # When not using gcc, we currently assume that we are using 10428 # Microsoft Visual C++ or Intel C++ Compiler. 10429 # hardcode_libdir_flag_spec is actually meaningless, as there is 10430 # no search path for DLLs. 10431 case $cc_basename in 10432 cl* | icl*) 10433 # Native MSVC or ICC 10434 hardcode_libdir_flag_spec=' ' 10435 allow_undefined_flag=unsupported 10436 always_export_symbols=yes 10437 file_list_spec='@' 10438 # Tell ltmain to make .lib files, not .a files. 10439 libext=lib 10440 # Tell ltmain to make .dll files, not .so files. 10441 shrext_cmds=.dll 10442 # FIXME: Setting linknames here is a bad hack. 10443 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10444 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10445 cp "$export_symbols" "$output_objdir/$soname.def"; 10446 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10447 else 10448 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10449 fi~ 10450 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10451 linknames=' 10452 # The linker will not automatically build a static lib if we build a DLL. 10453 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10454 enable_shared_with_static_runtimes=yes 10455 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10456 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10457 # Don't use ranlib 10458 old_postinstall_cmds='chmod 644 $oldlib' 10459 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10460 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10461 case $lt_outputfile in 10462 *.exe|*.EXE) ;; 10463 *) 10464 lt_outputfile=$lt_outputfile.exe 10465 lt_tool_outputfile=$lt_tool_outputfile.exe 10466 ;; 10467 esac~ 10468 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10469 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10470 $RM "$lt_outputfile.manifest"; 10471 fi' 10472 ;; 10473 *) 10474 # Assume MSVC and ICC wrapper 10475 hardcode_libdir_flag_spec=' ' 10476 allow_undefined_flag=unsupported 10477 # Tell ltmain to make .lib files, not .a files. 10478 libext=lib 10479 # Tell ltmain to make .dll files, not .so files. 10480 shrext_cmds=.dll 10481 # FIXME: Setting linknames here is a bad hack. 10482 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10483 # The linker will automatically build a .lib file if we build a DLL. 10484 old_archive_from_new_cmds='true' 10485 # FIXME: Should let the user specify the lib program. 10486 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10487 enable_shared_with_static_runtimes=yes 10488 ;; 10489 esac 10490 ;; 10491 10492 darwin* | rhapsody*) 10493 10494 10495 archive_cmds_need_lc=no 10496 hardcode_direct=no 10497 hardcode_automatic=yes 10498 hardcode_shlibpath_var=unsupported 10499 if test yes = "$lt_cv_ld_force_load"; then 10500 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\"`' 10501 10502 else 10503 whole_archive_flag_spec='' 10504 fi 10505 link_all_deplibs=yes 10506 allow_undefined_flag=$_lt_dar_allow_undefined 10507 case $cc_basename in 10508 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10509 *) _lt_dar_can_shared=$GCC ;; 10510 esac 10511 if test yes = "$_lt_dar_can_shared"; then 10512 output_verbose_link_cmd=func_echo_all 10513 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10514 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10515 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" 10516 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" 10517 10518 else 10519 ld_shlibs=no 10520 fi 10521 10522 ;; 10523 10524 dgux*) 10525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10526 hardcode_libdir_flag_spec='-L$libdir' 10527 hardcode_shlibpath_var=no 10528 ;; 10529 10530 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10531 # support. Future versions do this automatically, but an explicit c++rt0.o 10532 # does not break anything, and helps significantly (at the cost of a little 10533 # extra space). 10534 freebsd2.2*) 10535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10536 hardcode_libdir_flag_spec='-R$libdir' 10537 hardcode_direct=yes 10538 hardcode_shlibpath_var=no 10539 ;; 10540 10541 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10542 freebsd2.*) 10543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10544 hardcode_direct=yes 10545 hardcode_minus_L=yes 10546 hardcode_shlibpath_var=no 10547 ;; 10548 10549 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10550 freebsd* | dragonfly*) 10551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10552 hardcode_libdir_flag_spec='-R$libdir' 10553 hardcode_direct=yes 10554 hardcode_shlibpath_var=no 10555 ;; 10556 10557 hpux9*) 10558 if test yes = "$GCC"; then 10559 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' 10560 else 10561 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' 10562 fi 10563 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10564 hardcode_libdir_separator=: 10565 hardcode_direct=yes 10566 10567 # hardcode_minus_L: Not really in the search PATH, 10568 # but as the default location of the library. 10569 hardcode_minus_L=yes 10570 export_dynamic_flag_spec='$wl-E' 10571 ;; 10572 10573 hpux10*) 10574 if test yes,no = "$GCC,$with_gnu_ld"; then 10575 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10576 else 10577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10578 fi 10579 if test no = "$with_gnu_ld"; then 10580 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10581 hardcode_libdir_separator=: 10582 hardcode_direct=yes 10583 hardcode_direct_absolute=yes 10584 export_dynamic_flag_spec='$wl-E' 10585 # hardcode_minus_L: Not really in the search PATH, 10586 # but as the default location of the library. 10587 hardcode_minus_L=yes 10588 fi 10589 ;; 10590 10591 hpux11*) 10592 if test yes,no = "$GCC,$with_gnu_ld"; then 10593 case $host_cpu in 10594 hppa*64*) 10595 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10596 ;; 10597 ia64*) 10598 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10599 ;; 10600 *) 10601 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10602 ;; 10603 esac 10604 else 10605 case $host_cpu in 10606 hppa*64*) 10607 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10608 ;; 10609 ia64*) 10610 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10611 ;; 10612 *) 10613 10614 # Older versions of the 11.00 compiler do not understand -b yet 10615 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10617$as_echo_n "checking if $CC understands -b... " >&6; } 10618if ${lt_cv_prog_compiler__b+:} false; then : 10619 $as_echo_n "(cached) " >&6 10620else 10621 lt_cv_prog_compiler__b=no 10622 save_LDFLAGS=$LDFLAGS 10623 LDFLAGS="$LDFLAGS -b" 10624 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10625 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10626 # The linker can only warn and ignore the option if not recognized 10627 # So say no if there are warnings 10628 if test -s conftest.err; then 10629 # Append any errors to the config.log. 10630 cat conftest.err 1>&5 10631 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10633 if diff conftest.exp conftest.er2 >/dev/null; then 10634 lt_cv_prog_compiler__b=yes 10635 fi 10636 else 10637 lt_cv_prog_compiler__b=yes 10638 fi 10639 fi 10640 $RM -r conftest* 10641 LDFLAGS=$save_LDFLAGS 10642 10643fi 10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10645$as_echo "$lt_cv_prog_compiler__b" >&6; } 10646 10647if test yes = "$lt_cv_prog_compiler__b"; then 10648 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10649else 10650 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10651fi 10652 10653 ;; 10654 esac 10655 fi 10656 if test no = "$with_gnu_ld"; then 10657 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10658 hardcode_libdir_separator=: 10659 10660 case $host_cpu in 10661 hppa*64*|ia64*) 10662 hardcode_direct=no 10663 hardcode_shlibpath_var=no 10664 ;; 10665 *) 10666 hardcode_direct=yes 10667 hardcode_direct_absolute=yes 10668 export_dynamic_flag_spec='$wl-E' 10669 10670 # hardcode_minus_L: Not really in the search PATH, 10671 # but as the default location of the library. 10672 hardcode_minus_L=yes 10673 ;; 10674 esac 10675 fi 10676 ;; 10677 10678 irix5* | irix6* | nonstopux*) 10679 if test yes = "$GCC"; then 10680 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' 10681 # Try to use the -exported_symbol ld option, if it does not 10682 # work, assume that -exports_file does not work either and 10683 # implicitly export all symbols. 10684 # This should be the same for all languages, so no per-tag cache variable. 10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10686$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10687if ${lt_cv_irix_exported_symbol+:} false; then : 10688 $as_echo_n "(cached) " >&6 10689else 10690 save_LDFLAGS=$LDFLAGS 10691 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10693/* end confdefs.h. */ 10694int foo (void) { return 0; } 10695_ACEOF 10696if ac_fn_c_try_link "$LINENO"; then : 10697 lt_cv_irix_exported_symbol=yes 10698else 10699 lt_cv_irix_exported_symbol=no 10700fi 10701rm -f core conftest.err conftest.$ac_objext \ 10702 conftest$ac_exeext conftest.$ac_ext 10703 LDFLAGS=$save_LDFLAGS 10704fi 10705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10706$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10707 if test yes = "$lt_cv_irix_exported_symbol"; then 10708 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' 10709 fi 10710 else 10711 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' 10712 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' 10713 fi 10714 archive_cmds_need_lc='no' 10715 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10716 hardcode_libdir_separator=: 10717 inherit_rpath=yes 10718 link_all_deplibs=yes 10719 ;; 10720 10721 linux*) 10722 case $cc_basename in 10723 tcc*) 10724 # Fabrice Bellard et al's Tiny C Compiler 10725 ld_shlibs=yes 10726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10727 ;; 10728 esac 10729 ;; 10730 10731 netbsd*) 10732 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10734 else 10735 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10736 fi 10737 hardcode_libdir_flag_spec='-R$libdir' 10738 hardcode_direct=yes 10739 hardcode_shlibpath_var=no 10740 ;; 10741 10742 newsos6) 10743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10744 hardcode_direct=yes 10745 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10746 hardcode_libdir_separator=: 10747 hardcode_shlibpath_var=no 10748 ;; 10749 10750 *nto* | *qnx*) 10751 ;; 10752 10753 openbsd* | bitrig*) 10754 if test -f /usr/libexec/ld.so; then 10755 hardcode_direct=yes 10756 hardcode_shlibpath_var=no 10757 hardcode_direct_absolute=yes 10758 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10760 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10761 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10762 export_dynamic_flag_spec='$wl-E' 10763 else 10764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10765 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10766 fi 10767 else 10768 ld_shlibs=no 10769 fi 10770 ;; 10771 10772 os2*) 10773 hardcode_libdir_flag_spec='-L$libdir' 10774 hardcode_minus_L=yes 10775 allow_undefined_flag=unsupported 10776 shrext_cmds=.dll 10777 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10778 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10779 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10780 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10781 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10782 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10783 emximp -o $lib $output_objdir/$libname.def' 10784 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10785 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10786 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10787 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10788 prefix_cmds="$SED"~ 10789 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10790 prefix_cmds="$prefix_cmds -e 1d"; 10791 fi~ 10792 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10793 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10794 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10795 emximp -o $lib $output_objdir/$libname.def' 10796 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10797 enable_shared_with_static_runtimes=yes 10798 file_list_spec='@' 10799 ;; 10800 10801 osf3*) 10802 if test yes = "$GCC"; then 10803 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10804 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' 10805 else 10806 allow_undefined_flag=' -expect_unresolved \*' 10807 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' 10808 fi 10809 archive_cmds_need_lc='no' 10810 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10811 hardcode_libdir_separator=: 10812 ;; 10813 10814 osf4* | osf5*) # as osf3* with the addition of -msym flag 10815 if test yes = "$GCC"; then 10816 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10817 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' 10818 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10819 else 10820 allow_undefined_flag=' -expect_unresolved \*' 10821 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' 10822 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~ 10823 $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' 10824 10825 # Both c and cxx compiler support -rpath directly 10826 hardcode_libdir_flag_spec='-rpath $libdir' 10827 fi 10828 archive_cmds_need_lc='no' 10829 hardcode_libdir_separator=: 10830 ;; 10831 10832 solaris*) 10833 no_undefined_flag=' -z defs' 10834 if test yes = "$GCC"; then 10835 wlarc='$wl' 10836 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10837 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10838 $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' 10839 else 10840 case `$CC -V 2>&1` in 10841 *"Compilers 5.0"*) 10842 wlarc='' 10843 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10844 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10845 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10846 ;; 10847 *) 10848 wlarc='$wl' 10849 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10850 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10851 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10852 ;; 10853 esac 10854 fi 10855 hardcode_libdir_flag_spec='-R$libdir' 10856 hardcode_shlibpath_var=no 10857 case $host_os in 10858 solaris2.[0-5] | solaris2.[0-5].*) ;; 10859 *) 10860 # The compiler driver will combine and reorder linker options, 10861 # but understands '-z linker_flag'. GCC discards it without '$wl', 10862 # but is careful enough not to reorder. 10863 # Supported since Solaris 2.6 (maybe 2.5.1?) 10864 if test yes = "$GCC"; then 10865 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10866 else 10867 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10868 fi 10869 ;; 10870 esac 10871 link_all_deplibs=yes 10872 ;; 10873 10874 sunos4*) 10875 if test sequent = "$host_vendor"; then 10876 # Use $CC to link under sequent, because it throws in some extra .o 10877 # files that make .init and .fini sections work. 10878 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10879 else 10880 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10881 fi 10882 hardcode_libdir_flag_spec='-L$libdir' 10883 hardcode_direct=yes 10884 hardcode_minus_L=yes 10885 hardcode_shlibpath_var=no 10886 ;; 10887 10888 sysv4) 10889 case $host_vendor in 10890 sni) 10891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10892 hardcode_direct=yes # is this really true??? 10893 ;; 10894 siemens) 10895 ## LD is ld it makes a PLAMLIB 10896 ## CC just makes a GrossModule. 10897 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10898 reload_cmds='$CC -r -o $output$reload_objs' 10899 hardcode_direct=no 10900 ;; 10901 motorola) 10902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10903 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10904 ;; 10905 esac 10906 runpath_var='LD_RUN_PATH' 10907 hardcode_shlibpath_var=no 10908 ;; 10909 10910 sysv4.3*) 10911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10912 hardcode_shlibpath_var=no 10913 export_dynamic_flag_spec='-Bexport' 10914 ;; 10915 10916 sysv4*MP*) 10917 if test -d /usr/nec; then 10918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10919 hardcode_shlibpath_var=no 10920 runpath_var=LD_RUN_PATH 10921 hardcode_runpath_var=yes 10922 ld_shlibs=yes 10923 fi 10924 ;; 10925 10926 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10927 no_undefined_flag='$wl-z,text' 10928 archive_cmds_need_lc=no 10929 hardcode_shlibpath_var=no 10930 runpath_var='LD_RUN_PATH' 10931 10932 if test yes = "$GCC"; then 10933 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10934 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10935 else 10936 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10937 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10938 fi 10939 ;; 10940 10941 sysv5* | sco3.2v5* | sco5v6*) 10942 # Note: We CANNOT use -z defs as we might desire, because we do not 10943 # link with -lc, and that would cause any symbols used from libc to 10944 # always be unresolved, which means just about no library would 10945 # ever link correctly. If we're not using GNU ld we use -z text 10946 # though, which does catch some bad symbols but isn't as heavy-handed 10947 # as -z defs. 10948 no_undefined_flag='$wl-z,text' 10949 allow_undefined_flag='$wl-z,nodefs' 10950 archive_cmds_need_lc=no 10951 hardcode_shlibpath_var=no 10952 hardcode_libdir_flag_spec='$wl-R,$libdir' 10953 hardcode_libdir_separator=':' 10954 link_all_deplibs=yes 10955 export_dynamic_flag_spec='$wl-Bexport' 10956 runpath_var='LD_RUN_PATH' 10957 10958 if test yes = "$GCC"; then 10959 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10960 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10961 else 10962 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10963 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10964 fi 10965 ;; 10966 10967 uts4*) 10968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10969 hardcode_libdir_flag_spec='-L$libdir' 10970 hardcode_shlibpath_var=no 10971 ;; 10972 10973 *) 10974 ld_shlibs=no 10975 ;; 10976 esac 10977 10978 if test sni = "$host_vendor"; then 10979 case $host in 10980 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10981 export_dynamic_flag_spec='$wl-Blargedynsym' 10982 ;; 10983 esac 10984 fi 10985 fi 10986 10987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10988$as_echo "$ld_shlibs" >&6; } 10989test no = "$ld_shlibs" && can_build_shared=no 10990 10991with_gnu_ld=$with_gnu_ld 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007# 11008# Do we need to explicitly link libc? 11009# 11010case "x$archive_cmds_need_lc" in 11011x|xyes) 11012 # Assume -lc should be added 11013 archive_cmds_need_lc=yes 11014 11015 if test yes,yes = "$GCC,$enable_shared"; then 11016 case $archive_cmds in 11017 *'~'*) 11018 # FIXME: we may have to deal with multi-command sequences. 11019 ;; 11020 '$CC '*) 11021 # Test whether the compiler implicitly links with -lc since on some 11022 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11023 # to ld, don't add -lc before -lgcc. 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11025$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11026if ${lt_cv_archive_cmds_need_lc+:} false; then : 11027 $as_echo_n "(cached) " >&6 11028else 11029 $RM conftest* 11030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11031 11032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11033 (eval $ac_compile) 2>&5 11034 ac_status=$? 11035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11036 test $ac_status = 0; } 2>conftest.err; then 11037 soname=conftest 11038 lib=conftest 11039 libobjs=conftest.$ac_objext 11040 deplibs= 11041 wl=$lt_prog_compiler_wl 11042 pic_flag=$lt_prog_compiler_pic 11043 compiler_flags=-v 11044 linker_flags=-v 11045 verstring= 11046 output_objdir=. 11047 libname=conftest 11048 lt_save_allow_undefined_flag=$allow_undefined_flag 11049 allow_undefined_flag= 11050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11051 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11052 ac_status=$? 11053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11054 test $ac_status = 0; } 11055 then 11056 lt_cv_archive_cmds_need_lc=no 11057 else 11058 lt_cv_archive_cmds_need_lc=yes 11059 fi 11060 allow_undefined_flag=$lt_save_allow_undefined_flag 11061 else 11062 cat conftest.err 1>&5 11063 fi 11064 $RM conftest* 11065 11066fi 11067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11068$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11069 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11070 ;; 11071 esac 11072 fi 11073 ;; 11074esac 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11228$as_echo_n "checking dynamic linker characteristics... " >&6; } 11229 11230if test yes = "$GCC"; then 11231 case $host_os in 11232 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11233 *) lt_awk_arg='/^libraries:/' ;; 11234 esac 11235 case $host_os in 11236 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11237 *) lt_sed_strip_eq='s|=/|/|g' ;; 11238 esac 11239 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11240 case $lt_search_path_spec in 11241 *\;*) 11242 # if the path contains ";" then we assume it to be the separator 11243 # otherwise default to the standard path separator (i.e. ":") - it is 11244 # assumed that no part of a normal pathname contains ";" but that should 11245 # okay in the real world where ";" in dirpaths is itself problematic. 11246 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11247 ;; 11248 *) 11249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11250 ;; 11251 esac 11252 # Ok, now we have the path, separated by spaces, we can step through it 11253 # and add multilib dir if necessary... 11254 lt_tmp_lt_search_path_spec= 11255 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11256 # ...but if some path component already ends with the multilib dir we assume 11257 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11258 case "$lt_multi_os_dir; $lt_search_path_spec " in 11259 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11260 lt_multi_os_dir= 11261 ;; 11262 esac 11263 for lt_sys_path in $lt_search_path_spec; do 11264 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11265 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11266 elif test -n "$lt_multi_os_dir"; then 11267 test -d "$lt_sys_path" && \ 11268 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11269 fi 11270 done 11271 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11272BEGIN {RS = " "; FS = "/|\n";} { 11273 lt_foo = ""; 11274 lt_count = 0; 11275 for (lt_i = NF; lt_i > 0; lt_i--) { 11276 if ($lt_i != "" && $lt_i != ".") { 11277 if ($lt_i == "..") { 11278 lt_count++; 11279 } else { 11280 if (lt_count == 0) { 11281 lt_foo = "/" $lt_i lt_foo; 11282 } else { 11283 lt_count--; 11284 } 11285 } 11286 } 11287 } 11288 if (lt_foo != "") { lt_freq[lt_foo]++; } 11289 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11290}'` 11291 # AWK program above erroneously prepends '/' to C:/dos/paths 11292 # for these hosts. 11293 case $host_os in 11294 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11295 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11296 esac 11297 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11298else 11299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11300fi 11301library_names_spec= 11302libname_spec='lib$name' 11303soname_spec= 11304shrext_cmds=.so 11305postinstall_cmds= 11306postuninstall_cmds= 11307finish_cmds= 11308finish_eval= 11309shlibpath_var= 11310shlibpath_overrides_runpath=unknown 11311version_type=none 11312dynamic_linker="$host_os ld.so" 11313sys_lib_dlsearch_path_spec="/lib /usr/lib" 11314need_lib_prefix=unknown 11315hardcode_into_libs=no 11316 11317# when you set need_version to no, make sure it does not cause -set_version 11318# flags to be left without arguments 11319need_version=unknown 11320 11321 11322 11323case $host_os in 11324aix3*) 11325 version_type=linux # correct to gnu/linux during the next big refactor 11326 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11327 shlibpath_var=LIBPATH 11328 11329 # AIX 3 has no versioning support, so we append a major version to the name. 11330 soname_spec='$libname$release$shared_ext$major' 11331 ;; 11332 11333aix[4-9]*) 11334 version_type=linux # correct to gnu/linux during the next big refactor 11335 need_lib_prefix=no 11336 need_version=no 11337 hardcode_into_libs=yes 11338 if test ia64 = "$host_cpu"; then 11339 # AIX 5 supports IA64 11340 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11341 shlibpath_var=LD_LIBRARY_PATH 11342 else 11343 # With GCC up to 2.95.x, collect2 would create an import file 11344 # for dependence libraries. The import file would start with 11345 # the line '#! .'. This would cause the generated library to 11346 # depend on '.', always an invalid library. This was fixed in 11347 # development snapshots of GCC prior to 3.0. 11348 case $host_os in 11349 aix4 | aix4.[01] | aix4.[01].*) 11350 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11351 echo ' yes ' 11352 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11353 : 11354 else 11355 can_build_shared=no 11356 fi 11357 ;; 11358 esac 11359 # Using Import Files as archive members, it is possible to support 11360 # filename-based versioning of shared library archives on AIX. While 11361 # this would work for both with and without runtime linking, it will 11362 # prevent static linking of such archives. So we do filename-based 11363 # shared library versioning with .so extension only, which is used 11364 # when both runtime linking and shared linking is enabled. 11365 # Unfortunately, runtime linking may impact performance, so we do 11366 # not want this to be the default eventually. Also, we use the 11367 # versioned .so libs for executables only if there is the -brtl 11368 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11369 # To allow for filename-based versioning support, we need to create 11370 # libNAME.so.V as an archive file, containing: 11371 # *) an Import File, referring to the versioned filename of the 11372 # archive as well as the shared archive member, telling the 11373 # bitwidth (32 or 64) of that shared object, and providing the 11374 # list of exported symbols of that shared object, eventually 11375 # decorated with the 'weak' keyword 11376 # *) the shared object with the F_LOADONLY flag set, to really avoid 11377 # it being seen by the linker. 11378 # At run time we better use the real file rather than another symlink, 11379 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11380 11381 case $with_aix_soname,$aix_use_runtimelinking in 11382 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11383 # soname into executable. Probably we can add versioning support to 11384 # collect2, so additional links can be useful in future. 11385 aix,yes) # traditional libtool 11386 dynamic_linker='AIX unversionable lib.so' 11387 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11388 # instead of lib<name>.a to let people know that these are not 11389 # typical AIX shared libraries. 11390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11391 ;; 11392 aix,no) # traditional AIX only 11393 dynamic_linker='AIX lib.a(lib.so.V)' 11394 # We preserve .a as extension for shared libraries through AIX4.2 11395 # and later when we are not doing run time linking. 11396 library_names_spec='$libname$release.a $libname.a' 11397 soname_spec='$libname$release$shared_ext$major' 11398 ;; 11399 svr4,*) # full svr4 only 11400 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11401 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11402 # We do not specify a path in Import Files, so LIBPATH fires. 11403 shlibpath_overrides_runpath=yes 11404 ;; 11405 *,yes) # both, prefer svr4 11406 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11407 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11408 # unpreferred sharedlib libNAME.a needs extra handling 11409 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"' 11410 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"' 11411 # We do not specify a path in Import Files, so LIBPATH fires. 11412 shlibpath_overrides_runpath=yes 11413 ;; 11414 *,no) # both, prefer aix 11415 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11416 library_names_spec='$libname$release.a $libname.a' 11417 soname_spec='$libname$release$shared_ext$major' 11418 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11419 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)' 11420 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"' 11421 ;; 11422 esac 11423 shlibpath_var=LIBPATH 11424 fi 11425 ;; 11426 11427amigaos*) 11428 case $host_cpu in 11429 powerpc) 11430 # Since July 2007 AmigaOS4 officially supports .so libraries. 11431 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11433 ;; 11434 m68k) 11435 library_names_spec='$libname.ixlibrary $libname.a' 11436 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11437 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' 11438 ;; 11439 esac 11440 ;; 11441 11442beos*) 11443 library_names_spec='$libname$shared_ext' 11444 dynamic_linker="$host_os ld.so" 11445 shlibpath_var=LIBRARY_PATH 11446 ;; 11447 11448bsdi[45]*) 11449 version_type=linux # correct to gnu/linux during the next big refactor 11450 need_version=no 11451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11452 soname_spec='$libname$release$shared_ext$major' 11453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11454 shlibpath_var=LD_LIBRARY_PATH 11455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11457 # the default ld.so.conf also contains /usr/contrib/lib and 11458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11459 # libtool to hard-code these into programs 11460 ;; 11461 11462cygwin* | mingw* | pw32* | cegcc*) 11463 version_type=windows 11464 shrext_cmds=.dll 11465 need_version=no 11466 need_lib_prefix=no 11467 11468 case $GCC,$cc_basename in 11469 yes,*) 11470 # gcc 11471 library_names_spec='$libname.dll.a' 11472 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11473 postinstall_cmds='base_file=`basename \$file`~ 11474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11475 dldir=$destdir/`dirname \$dlpath`~ 11476 test -d \$dldir || mkdir -p \$dldir~ 11477 $install_prog $dir/$dlname \$dldir/$dlname~ 11478 chmod a+x \$dldir/$dlname~ 11479 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11480 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11481 fi' 11482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11483 dlpath=$dir/\$dldll~ 11484 $RM \$dlpath' 11485 shlibpath_overrides_runpath=yes 11486 11487 case $host_os in 11488 cygwin*) 11489 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11490 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11491 11492 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11493 ;; 11494 mingw* | cegcc*) 11495 # MinGW DLLs use traditional 'lib' prefix 11496 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11497 ;; 11498 pw32*) 11499 # pw32 DLLs use 'pw' prefix rather than 'lib' 11500 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11501 ;; 11502 esac 11503 dynamic_linker='Win32 ld.exe' 11504 ;; 11505 11506 *,cl* | *,icl*) 11507 # Native MSVC or ICC 11508 libname_spec='$name' 11509 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11510 library_names_spec='$libname.dll.lib' 11511 11512 case $build_os in 11513 mingw*) 11514 sys_lib_search_path_spec= 11515 lt_save_ifs=$IFS 11516 IFS=';' 11517 for lt_path in $LIB 11518 do 11519 IFS=$lt_save_ifs 11520 # Let DOS variable expansion print the short 8.3 style file name. 11521 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11522 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11523 done 11524 IFS=$lt_save_ifs 11525 # Convert to MSYS style. 11526 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11527 ;; 11528 cygwin*) 11529 # Convert to unix form, then to dos form, then back to unix form 11530 # but this time dos style (no spaces!) so that the unix form looks 11531 # like /cygdrive/c/PROGRA~1:/cygdr... 11532 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11533 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11534 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11535 ;; 11536 *) 11537 sys_lib_search_path_spec=$LIB 11538 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11539 # It is most probably a Windows format PATH. 11540 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11541 else 11542 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11543 fi 11544 # FIXME: find the short name or the path components, as spaces are 11545 # common. (e.g. "Program Files" -> "PROGRA~1") 11546 ;; 11547 esac 11548 11549 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11550 postinstall_cmds='base_file=`basename \$file`~ 11551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11552 dldir=$destdir/`dirname \$dlpath`~ 11553 test -d \$dldir || mkdir -p \$dldir~ 11554 $install_prog $dir/$dlname \$dldir/$dlname' 11555 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11556 dlpath=$dir/\$dldll~ 11557 $RM \$dlpath' 11558 shlibpath_overrides_runpath=yes 11559 dynamic_linker='Win32 link.exe' 11560 ;; 11561 11562 *) 11563 # Assume MSVC and ICC wrapper 11564 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11565 dynamic_linker='Win32 ld.exe' 11566 ;; 11567 esac 11568 # FIXME: first we should search . and the directory the executable is in 11569 shlibpath_var=PATH 11570 ;; 11571 11572darwin* | rhapsody*) 11573 dynamic_linker="$host_os dyld" 11574 version_type=darwin 11575 need_lib_prefix=no 11576 need_version=no 11577 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11578 soname_spec='$libname$release$major$shared_ext' 11579 shlibpath_overrides_runpath=yes 11580 shlibpath_var=DYLD_LIBRARY_PATH 11581 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11582 11583 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11584 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11585 ;; 11586 11587dgux*) 11588 version_type=linux # correct to gnu/linux during the next big refactor 11589 need_lib_prefix=no 11590 need_version=no 11591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11592 soname_spec='$libname$release$shared_ext$major' 11593 shlibpath_var=LD_LIBRARY_PATH 11594 ;; 11595 11596freebsd* | dragonfly*) 11597 # DragonFly does not have aout. When/if they implement a new 11598 # versioning mechanism, adjust this. 11599 if test -x /usr/bin/objformat; then 11600 objformat=`/usr/bin/objformat` 11601 else 11602 case $host_os in 11603 freebsd[23].*) objformat=aout ;; 11604 *) objformat=elf ;; 11605 esac 11606 fi 11607 version_type=freebsd-$objformat 11608 case $version_type in 11609 freebsd-elf*) 11610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11611 soname_spec='$libname$release$shared_ext$major' 11612 need_version=no 11613 need_lib_prefix=no 11614 ;; 11615 freebsd-*) 11616 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11617 need_version=yes 11618 ;; 11619 esac 11620 shlibpath_var=LD_LIBRARY_PATH 11621 case $host_os in 11622 freebsd2.*) 11623 shlibpath_overrides_runpath=yes 11624 ;; 11625 freebsd3.[01]* | freebsdelf3.[01]*) 11626 shlibpath_overrides_runpath=yes 11627 hardcode_into_libs=yes 11628 ;; 11629 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11630 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11631 shlibpath_overrides_runpath=no 11632 hardcode_into_libs=yes 11633 ;; 11634 *) # from 4.6 on, and DragonFly 11635 shlibpath_overrides_runpath=yes 11636 hardcode_into_libs=yes 11637 ;; 11638 esac 11639 ;; 11640 11641haiku*) 11642 version_type=linux # correct to gnu/linux during the next big refactor 11643 need_lib_prefix=no 11644 need_version=no 11645 dynamic_linker="$host_os runtime_loader" 11646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11647 soname_spec='$libname$release$shared_ext$major' 11648 shlibpath_var=LIBRARY_PATH 11649 shlibpath_overrides_runpath=no 11650 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11651 hardcode_into_libs=yes 11652 ;; 11653 11654hpux9* | hpux10* | hpux11*) 11655 # Give a soname corresponding to the major version so that dld.sl refuses to 11656 # link against other versions. 11657 version_type=sunos 11658 need_lib_prefix=no 11659 need_version=no 11660 case $host_cpu in 11661 ia64*) 11662 shrext_cmds='.so' 11663 hardcode_into_libs=yes 11664 dynamic_linker="$host_os dld.so" 11665 shlibpath_var=LD_LIBRARY_PATH 11666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11668 soname_spec='$libname$release$shared_ext$major' 11669 if test 32 = "$HPUX_IA64_MODE"; then 11670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11671 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11672 else 11673 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11674 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11675 fi 11676 ;; 11677 hppa*64*) 11678 shrext_cmds='.sl' 11679 hardcode_into_libs=yes 11680 dynamic_linker="$host_os dld.sl" 11681 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11684 soname_spec='$libname$release$shared_ext$major' 11685 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11687 ;; 11688 *) 11689 shrext_cmds='.sl' 11690 dynamic_linker="$host_os dld.sl" 11691 shlibpath_var=SHLIB_PATH 11692 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11694 soname_spec='$libname$release$shared_ext$major' 11695 ;; 11696 esac 11697 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11698 postinstall_cmds='chmod 555 $lib' 11699 # or fails outright, so override atomically: 11700 install_override_mode=555 11701 ;; 11702 11703interix[3-9]*) 11704 version_type=linux # correct to gnu/linux during the next big refactor 11705 need_lib_prefix=no 11706 need_version=no 11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11708 soname_spec='$libname$release$shared_ext$major' 11709 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11710 shlibpath_var=LD_LIBRARY_PATH 11711 shlibpath_overrides_runpath=no 11712 hardcode_into_libs=yes 11713 ;; 11714 11715irix5* | irix6* | nonstopux*) 11716 case $host_os in 11717 nonstopux*) version_type=nonstopux ;; 11718 *) 11719 if test yes = "$lt_cv_prog_gnu_ld"; then 11720 version_type=linux # correct to gnu/linux during the next big refactor 11721 else 11722 version_type=irix 11723 fi ;; 11724 esac 11725 need_lib_prefix=no 11726 need_version=no 11727 soname_spec='$libname$release$shared_ext$major' 11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11729 case $host_os in 11730 irix5* | nonstopux*) 11731 libsuff= shlibsuff= 11732 ;; 11733 *) 11734 case $LD in # libtool.m4 will add one of these switches to LD 11735 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11736 libsuff= shlibsuff= libmagic=32-bit;; 11737 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11738 libsuff=32 shlibsuff=N32 libmagic=N32;; 11739 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11740 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11741 *) libsuff= shlibsuff= libmagic=never-match;; 11742 esac 11743 ;; 11744 esac 11745 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11746 shlibpath_overrides_runpath=no 11747 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11748 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11749 hardcode_into_libs=yes 11750 ;; 11751 11752# No shared lib support for Linux oldld, aout, or coff. 11753linux*oldld* | linux*aout* | linux*coff*) 11754 dynamic_linker=no 11755 ;; 11756 11757linux*android*) 11758 version_type=none # Android doesn't support versioned libraries. 11759 need_lib_prefix=no 11760 need_version=no 11761 library_names_spec='$libname$release$shared_ext' 11762 soname_spec='$libname$release$shared_ext' 11763 finish_cmds= 11764 shlibpath_var=LD_LIBRARY_PATH 11765 shlibpath_overrides_runpath=yes 11766 11767 # This implies no fast_install, which is unacceptable. 11768 # Some rework will be needed to allow for fast_install 11769 # before this can be enabled. 11770 hardcode_into_libs=yes 11771 11772 dynamic_linker='Android linker' 11773 # Don't embed -rpath directories since the linker doesn't support them. 11774 hardcode_libdir_flag_spec='-L$libdir' 11775 ;; 11776 11777# This must be glibc/ELF. 11778linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11779 version_type=linux # correct to gnu/linux during the next big refactor 11780 need_lib_prefix=no 11781 need_version=no 11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11783 soname_spec='$libname$release$shared_ext$major' 11784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11785 shlibpath_var=LD_LIBRARY_PATH 11786 shlibpath_overrides_runpath=no 11787 11788 # Some binutils ld are patched to set DT_RUNPATH 11789 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11790 $as_echo_n "(cached) " >&6 11791else 11792 lt_cv_shlibpath_overrides_runpath=no 11793 save_LDFLAGS=$LDFLAGS 11794 save_libdir=$libdir 11795 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11796 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11798/* end confdefs.h. */ 11799 11800int 11801main () 11802{ 11803 11804 ; 11805 return 0; 11806} 11807_ACEOF 11808if ac_fn_c_try_link "$LINENO"; then : 11809 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11810 lt_cv_shlibpath_overrides_runpath=yes 11811fi 11812fi 11813rm -f core conftest.err conftest.$ac_objext \ 11814 conftest$ac_exeext conftest.$ac_ext 11815 LDFLAGS=$save_LDFLAGS 11816 libdir=$save_libdir 11817 11818fi 11819 11820 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11821 11822 # This implies no fast_install, which is unacceptable. 11823 # Some rework will be needed to allow for fast_install 11824 # before this can be enabled. 11825 hardcode_into_libs=yes 11826 11827 # Ideally, we could use ldconfig to report *all* directores which are 11828 # searched for libraries, however this is still not possible. Aside from not 11829 # being certain /sbin/ldconfig is available, command 11830 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11831 # even though it is searched at run-time. Try to do the best guess by 11832 # appending ld.so.conf contents (and includes) to the search path. 11833 if test -f /etc/ld.so.conf; then 11834 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' ' '` 11835 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11836 fi 11837 11838 # We used to test for /lib/ld.so.1 and disable shared libraries on 11839 # powerpc, because MkLinux only supported shared libraries with the 11840 # GNU dynamic linker. Since this was broken with cross compilers, 11841 # most powerpc-linux boxes support dynamic linking these days and 11842 # people can always --disable-shared, the test was removed, and we 11843 # assume the GNU/Linux dynamic linker is in use. 11844 dynamic_linker='GNU/Linux ld.so' 11845 ;; 11846 11847netbsd*) 11848 version_type=sunos 11849 need_lib_prefix=no 11850 need_version=no 11851 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11852 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11854 dynamic_linker='NetBSD (a.out) ld.so' 11855 else 11856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11857 soname_spec='$libname$release$shared_ext$major' 11858 dynamic_linker='NetBSD ld.elf_so' 11859 fi 11860 shlibpath_var=LD_LIBRARY_PATH 11861 shlibpath_overrides_runpath=yes 11862 hardcode_into_libs=yes 11863 ;; 11864 11865newsos6) 11866 version_type=linux # correct to gnu/linux during the next big refactor 11867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11868 shlibpath_var=LD_LIBRARY_PATH 11869 shlibpath_overrides_runpath=yes 11870 ;; 11871 11872*nto* | *qnx*) 11873 version_type=qnx 11874 need_lib_prefix=no 11875 need_version=no 11876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11877 soname_spec='$libname$release$shared_ext$major' 11878 shlibpath_var=LD_LIBRARY_PATH 11879 shlibpath_overrides_runpath=no 11880 hardcode_into_libs=yes 11881 dynamic_linker='ldqnx.so' 11882 ;; 11883 11884openbsd* | bitrig*) 11885 version_type=sunos 11886 sys_lib_dlsearch_path_spec=/usr/lib 11887 need_lib_prefix=no 11888 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11889 need_version=no 11890 else 11891 need_version=yes 11892 fi 11893 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11895 shlibpath_var=LD_LIBRARY_PATH 11896 shlibpath_overrides_runpath=yes 11897 ;; 11898 11899os2*) 11900 libname_spec='$name' 11901 version_type=windows 11902 shrext_cmds=.dll 11903 need_version=no 11904 need_lib_prefix=no 11905 # OS/2 can only load a DLL with a base name of 8 characters or less. 11906 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11907 v=$($ECHO $release$versuffix | tr -d .-); 11908 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11909 $ECHO $n$v`$shared_ext' 11910 library_names_spec='${libname}_dll.$libext' 11911 dynamic_linker='OS/2 ld.exe' 11912 shlibpath_var=BEGINLIBPATH 11913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11915 postinstall_cmds='base_file=`basename \$file`~ 11916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11917 dldir=$destdir/`dirname \$dlpath`~ 11918 test -d \$dldir || mkdir -p \$dldir~ 11919 $install_prog $dir/$dlname \$dldir/$dlname~ 11920 chmod a+x \$dldir/$dlname~ 11921 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11922 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11923 fi' 11924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11925 dlpath=$dir/\$dldll~ 11926 $RM \$dlpath' 11927 ;; 11928 11929osf3* | osf4* | osf5*) 11930 version_type=osf 11931 need_lib_prefix=no 11932 need_version=no 11933 soname_spec='$libname$release$shared_ext$major' 11934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11935 shlibpath_var=LD_LIBRARY_PATH 11936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11938 ;; 11939 11940rdos*) 11941 dynamic_linker=no 11942 ;; 11943 11944solaris*) 11945 version_type=linux # correct to gnu/linux during the next big refactor 11946 need_lib_prefix=no 11947 need_version=no 11948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11949 soname_spec='$libname$release$shared_ext$major' 11950 shlibpath_var=LD_LIBRARY_PATH 11951 shlibpath_overrides_runpath=yes 11952 hardcode_into_libs=yes 11953 # ldd complains unless libraries are executable 11954 postinstall_cmds='chmod +x $lib' 11955 ;; 11956 11957sunos4*) 11958 version_type=sunos 11959 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11960 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11961 shlibpath_var=LD_LIBRARY_PATH 11962 shlibpath_overrides_runpath=yes 11963 if test yes = "$with_gnu_ld"; then 11964 need_lib_prefix=no 11965 fi 11966 need_version=yes 11967 ;; 11968 11969sysv4 | sysv4.3*) 11970 version_type=linux # correct to gnu/linux during the next big refactor 11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11972 soname_spec='$libname$release$shared_ext$major' 11973 shlibpath_var=LD_LIBRARY_PATH 11974 case $host_vendor in 11975 sni) 11976 shlibpath_overrides_runpath=no 11977 need_lib_prefix=no 11978 runpath_var=LD_RUN_PATH 11979 ;; 11980 siemens) 11981 need_lib_prefix=no 11982 ;; 11983 motorola) 11984 need_lib_prefix=no 11985 need_version=no 11986 shlibpath_overrides_runpath=no 11987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11988 ;; 11989 esac 11990 ;; 11991 11992sysv4*MP*) 11993 if test -d /usr/nec; then 11994 version_type=linux # correct to gnu/linux during the next big refactor 11995 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11996 soname_spec='$libname$shared_ext.$major' 11997 shlibpath_var=LD_LIBRARY_PATH 11998 fi 11999 ;; 12000 12001sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12002 version_type=sco 12003 need_lib_prefix=no 12004 need_version=no 12005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12006 soname_spec='$libname$release$shared_ext$major' 12007 shlibpath_var=LD_LIBRARY_PATH 12008 shlibpath_overrides_runpath=yes 12009 hardcode_into_libs=yes 12010 if test yes = "$with_gnu_ld"; then 12011 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12012 else 12013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12014 case $host_os in 12015 sco3.2v5*) 12016 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12017 ;; 12018 esac 12019 fi 12020 sys_lib_dlsearch_path_spec='/usr/lib' 12021 ;; 12022 12023tpf*) 12024 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12025 version_type=linux # correct to gnu/linux during the next big refactor 12026 need_lib_prefix=no 12027 need_version=no 12028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12029 shlibpath_var=LD_LIBRARY_PATH 12030 shlibpath_overrides_runpath=no 12031 hardcode_into_libs=yes 12032 ;; 12033 12034uts4*) 12035 version_type=linux # correct to gnu/linux during the next big refactor 12036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12037 soname_spec='$libname$release$shared_ext$major' 12038 shlibpath_var=LD_LIBRARY_PATH 12039 ;; 12040 12041*) 12042 dynamic_linker=no 12043 ;; 12044esac 12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12046$as_echo "$dynamic_linker" >&6; } 12047test no = "$dynamic_linker" && can_build_shared=no 12048 12049variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12050if test yes = "$GCC"; then 12051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12052fi 12053 12054if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12055 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12056fi 12057 12058if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12059 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12060fi 12061 12062# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12063configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12064 12065# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12066func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12067 12068# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12069configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12168$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12169hardcode_action= 12170if test -n "$hardcode_libdir_flag_spec" || 12171 test -n "$runpath_var" || 12172 test yes = "$hardcode_automatic"; then 12173 12174 # We can hardcode non-existent directories. 12175 if test no != "$hardcode_direct" && 12176 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12177 # have to relink, otherwise we might link with an installed library 12178 # when we should be linking with a yet-to-be-installed one 12179 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12180 test no != "$hardcode_minus_L"; then 12181 # Linking always hardcodes the temporary library directory. 12182 hardcode_action=relink 12183 else 12184 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12185 hardcode_action=immediate 12186 fi 12187else 12188 # We cannot hardcode anything, or else we can only hardcode existing 12189 # directories. 12190 hardcode_action=unsupported 12191fi 12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12193$as_echo "$hardcode_action" >&6; } 12194 12195if test relink = "$hardcode_action" || 12196 test yes = "$inherit_rpath"; then 12197 # Fast installation is not supported 12198 enable_fast_install=no 12199elif test yes = "$shlibpath_overrides_runpath" || 12200 test no = "$enable_shared"; then 12201 # Fast installation is not necessary 12202 enable_fast_install=needless 12203fi 12204 12205 12206 12207 12208 12209 12210 if test yes != "$enable_dlopen"; then 12211 enable_dlopen=unknown 12212 enable_dlopen_self=unknown 12213 enable_dlopen_self_static=unknown 12214else 12215 lt_cv_dlopen=no 12216 lt_cv_dlopen_libs= 12217 12218 case $host_os in 12219 beos*) 12220 lt_cv_dlopen=load_add_on 12221 lt_cv_dlopen_libs= 12222 lt_cv_dlopen_self=yes 12223 ;; 12224 12225 mingw* | pw32* | cegcc*) 12226 lt_cv_dlopen=LoadLibrary 12227 lt_cv_dlopen_libs= 12228 ;; 12229 12230 cygwin*) 12231 lt_cv_dlopen=dlopen 12232 lt_cv_dlopen_libs= 12233 ;; 12234 12235 darwin*) 12236 # if libdl is installed we need to link against it 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12238$as_echo_n "checking for dlopen in -ldl... " >&6; } 12239if ${ac_cv_lib_dl_dlopen+:} false; then : 12240 $as_echo_n "(cached) " >&6 12241else 12242 ac_check_lib_save_LIBS=$LIBS 12243LIBS="-ldl $LIBS" 12244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12245/* end confdefs.h. */ 12246 12247/* Override any GCC internal prototype to avoid an error. 12248 Use char because int might match the return type of a GCC 12249 builtin and then its argument prototype would still apply. */ 12250#ifdef __cplusplus 12251extern "C" 12252#endif 12253char dlopen (); 12254int 12255main () 12256{ 12257return dlopen (); 12258 ; 12259 return 0; 12260} 12261_ACEOF 12262if ac_fn_c_try_link "$LINENO"; then : 12263 ac_cv_lib_dl_dlopen=yes 12264else 12265 ac_cv_lib_dl_dlopen=no 12266fi 12267rm -f core conftest.err conftest.$ac_objext \ 12268 conftest$ac_exeext conftest.$ac_ext 12269LIBS=$ac_check_lib_save_LIBS 12270fi 12271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12272$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12273if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12274 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12275else 12276 12277 lt_cv_dlopen=dyld 12278 lt_cv_dlopen_libs= 12279 lt_cv_dlopen_self=yes 12280 12281fi 12282 12283 ;; 12284 12285 tpf*) 12286 # Don't try to run any link tests for TPF. We know it's impossible 12287 # because TPF is a cross-compiler, and we know how we open DSOs. 12288 lt_cv_dlopen=dlopen 12289 lt_cv_dlopen_libs= 12290 lt_cv_dlopen_self=no 12291 ;; 12292 12293 *) 12294 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12295if test "x$ac_cv_func_shl_load" = xyes; then : 12296 lt_cv_dlopen=shl_load 12297else 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12299$as_echo_n "checking for shl_load in -ldld... " >&6; } 12300if ${ac_cv_lib_dld_shl_load+:} false; then : 12301 $as_echo_n "(cached) " >&6 12302else 12303 ac_check_lib_save_LIBS=$LIBS 12304LIBS="-ldld $LIBS" 12305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12306/* end confdefs.h. */ 12307 12308/* Override any GCC internal prototype to avoid an error. 12309 Use char because int might match the return type of a GCC 12310 builtin and then its argument prototype would still apply. */ 12311#ifdef __cplusplus 12312extern "C" 12313#endif 12314char shl_load (); 12315int 12316main () 12317{ 12318return shl_load (); 12319 ; 12320 return 0; 12321} 12322_ACEOF 12323if ac_fn_c_try_link "$LINENO"; then : 12324 ac_cv_lib_dld_shl_load=yes 12325else 12326 ac_cv_lib_dld_shl_load=no 12327fi 12328rm -f core conftest.err conftest.$ac_objext \ 12329 conftest$ac_exeext conftest.$ac_ext 12330LIBS=$ac_check_lib_save_LIBS 12331fi 12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12333$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12334if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12335 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12336else 12337 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12338if test "x$ac_cv_func_dlopen" = xyes; then : 12339 lt_cv_dlopen=dlopen 12340else 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12342$as_echo_n "checking for dlopen in -ldl... " >&6; } 12343if ${ac_cv_lib_dl_dlopen+:} false; then : 12344 $as_echo_n "(cached) " >&6 12345else 12346 ac_check_lib_save_LIBS=$LIBS 12347LIBS="-ldl $LIBS" 12348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12349/* end confdefs.h. */ 12350 12351/* Override any GCC internal prototype to avoid an error. 12352 Use char because int might match the return type of a GCC 12353 builtin and then its argument prototype would still apply. */ 12354#ifdef __cplusplus 12355extern "C" 12356#endif 12357char dlopen (); 12358int 12359main () 12360{ 12361return dlopen (); 12362 ; 12363 return 0; 12364} 12365_ACEOF 12366if ac_fn_c_try_link "$LINENO"; then : 12367 ac_cv_lib_dl_dlopen=yes 12368else 12369 ac_cv_lib_dl_dlopen=no 12370fi 12371rm -f core conftest.err conftest.$ac_objext \ 12372 conftest$ac_exeext conftest.$ac_ext 12373LIBS=$ac_check_lib_save_LIBS 12374fi 12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12376$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12377if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12378 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12379else 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12381$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12382if ${ac_cv_lib_svld_dlopen+:} false; then : 12383 $as_echo_n "(cached) " >&6 12384else 12385 ac_check_lib_save_LIBS=$LIBS 12386LIBS="-lsvld $LIBS" 12387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12388/* end confdefs.h. */ 12389 12390/* Override any GCC internal prototype to avoid an error. 12391 Use char because int might match the return type of a GCC 12392 builtin and then its argument prototype would still apply. */ 12393#ifdef __cplusplus 12394extern "C" 12395#endif 12396char dlopen (); 12397int 12398main () 12399{ 12400return dlopen (); 12401 ; 12402 return 0; 12403} 12404_ACEOF 12405if ac_fn_c_try_link "$LINENO"; then : 12406 ac_cv_lib_svld_dlopen=yes 12407else 12408 ac_cv_lib_svld_dlopen=no 12409fi 12410rm -f core conftest.err conftest.$ac_objext \ 12411 conftest$ac_exeext conftest.$ac_ext 12412LIBS=$ac_check_lib_save_LIBS 12413fi 12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12415$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12416if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12417 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12418else 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12420$as_echo_n "checking for dld_link in -ldld... " >&6; } 12421if ${ac_cv_lib_dld_dld_link+:} false; then : 12422 $as_echo_n "(cached) " >&6 12423else 12424 ac_check_lib_save_LIBS=$LIBS 12425LIBS="-ldld $LIBS" 12426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12427/* end confdefs.h. */ 12428 12429/* Override any GCC internal prototype to avoid an error. 12430 Use char because int might match the return type of a GCC 12431 builtin and then its argument prototype would still apply. */ 12432#ifdef __cplusplus 12433extern "C" 12434#endif 12435char dld_link (); 12436int 12437main () 12438{ 12439return dld_link (); 12440 ; 12441 return 0; 12442} 12443_ACEOF 12444if ac_fn_c_try_link "$LINENO"; then : 12445 ac_cv_lib_dld_dld_link=yes 12446else 12447 ac_cv_lib_dld_dld_link=no 12448fi 12449rm -f core conftest.err conftest.$ac_objext \ 12450 conftest$ac_exeext conftest.$ac_ext 12451LIBS=$ac_check_lib_save_LIBS 12452fi 12453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12454$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12455if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12456 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12457fi 12458 12459 12460fi 12461 12462 12463fi 12464 12465 12466fi 12467 12468 12469fi 12470 12471 12472fi 12473 12474 ;; 12475 esac 12476 12477 if test no = "$lt_cv_dlopen"; then 12478 enable_dlopen=no 12479 else 12480 enable_dlopen=yes 12481 fi 12482 12483 case $lt_cv_dlopen in 12484 dlopen) 12485 save_CPPFLAGS=$CPPFLAGS 12486 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12487 12488 save_LDFLAGS=$LDFLAGS 12489 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12490 12491 save_LIBS=$LIBS 12492 LIBS="$lt_cv_dlopen_libs $LIBS" 12493 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12495$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12496if ${lt_cv_dlopen_self+:} false; then : 12497 $as_echo_n "(cached) " >&6 12498else 12499 if test yes = "$cross_compiling"; then : 12500 lt_cv_dlopen_self=cross 12501else 12502 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12503 lt_status=$lt_dlunknown 12504 cat > conftest.$ac_ext <<_LT_EOF 12505#line $LINENO "configure" 12506#include "confdefs.h" 12507 12508#if HAVE_DLFCN_H 12509#include <dlfcn.h> 12510#endif 12511 12512#include <stdio.h> 12513 12514#ifdef RTLD_GLOBAL 12515# define LT_DLGLOBAL RTLD_GLOBAL 12516#else 12517# ifdef DL_GLOBAL 12518# define LT_DLGLOBAL DL_GLOBAL 12519# else 12520# define LT_DLGLOBAL 0 12521# endif 12522#endif 12523 12524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12525 find out it does not work in some platform. */ 12526#ifndef LT_DLLAZY_OR_NOW 12527# ifdef RTLD_LAZY 12528# define LT_DLLAZY_OR_NOW RTLD_LAZY 12529# else 12530# ifdef DL_LAZY 12531# define LT_DLLAZY_OR_NOW DL_LAZY 12532# else 12533# ifdef RTLD_NOW 12534# define LT_DLLAZY_OR_NOW RTLD_NOW 12535# else 12536# ifdef DL_NOW 12537# define LT_DLLAZY_OR_NOW DL_NOW 12538# else 12539# define LT_DLLAZY_OR_NOW 0 12540# endif 12541# endif 12542# endif 12543# endif 12544#endif 12545 12546/* When -fvisibility=hidden is used, assume the code has been annotated 12547 correspondingly for the symbols needed. */ 12548#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12549int fnord () __attribute__((visibility("default"))); 12550#endif 12551 12552int fnord () { return 42; } 12553int main () 12554{ 12555 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12556 int status = $lt_dlunknown; 12557 12558 if (self) 12559 { 12560 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12561 else 12562 { 12563 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12564 else puts (dlerror ()); 12565 } 12566 /* dlclose (self); */ 12567 } 12568 else 12569 puts (dlerror ()); 12570 12571 return status; 12572} 12573_LT_EOF 12574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12575 (eval $ac_link) 2>&5 12576 ac_status=$? 12577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12578 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12579 (./conftest; exit; ) >&5 2>/dev/null 12580 lt_status=$? 12581 case x$lt_status in 12582 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12583 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12584 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12585 esac 12586 else : 12587 # compilation failed 12588 lt_cv_dlopen_self=no 12589 fi 12590fi 12591rm -fr conftest* 12592 12593 12594fi 12595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12596$as_echo "$lt_cv_dlopen_self" >&6; } 12597 12598 if test yes = "$lt_cv_dlopen_self"; then 12599 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12601$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12602if ${lt_cv_dlopen_self_static+:} false; then : 12603 $as_echo_n "(cached) " >&6 12604else 12605 if test yes = "$cross_compiling"; then : 12606 lt_cv_dlopen_self_static=cross 12607else 12608 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12609 lt_status=$lt_dlunknown 12610 cat > conftest.$ac_ext <<_LT_EOF 12611#line $LINENO "configure" 12612#include "confdefs.h" 12613 12614#if HAVE_DLFCN_H 12615#include <dlfcn.h> 12616#endif 12617 12618#include <stdio.h> 12619 12620#ifdef RTLD_GLOBAL 12621# define LT_DLGLOBAL RTLD_GLOBAL 12622#else 12623# ifdef DL_GLOBAL 12624# define LT_DLGLOBAL DL_GLOBAL 12625# else 12626# define LT_DLGLOBAL 0 12627# endif 12628#endif 12629 12630/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12631 find out it does not work in some platform. */ 12632#ifndef LT_DLLAZY_OR_NOW 12633# ifdef RTLD_LAZY 12634# define LT_DLLAZY_OR_NOW RTLD_LAZY 12635# else 12636# ifdef DL_LAZY 12637# define LT_DLLAZY_OR_NOW DL_LAZY 12638# else 12639# ifdef RTLD_NOW 12640# define LT_DLLAZY_OR_NOW RTLD_NOW 12641# else 12642# ifdef DL_NOW 12643# define LT_DLLAZY_OR_NOW DL_NOW 12644# else 12645# define LT_DLLAZY_OR_NOW 0 12646# endif 12647# endif 12648# endif 12649# endif 12650#endif 12651 12652/* When -fvisibility=hidden is used, assume the code has been annotated 12653 correspondingly for the symbols needed. */ 12654#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12655int fnord () __attribute__((visibility("default"))); 12656#endif 12657 12658int fnord () { return 42; } 12659int main () 12660{ 12661 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12662 int status = $lt_dlunknown; 12663 12664 if (self) 12665 { 12666 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12667 else 12668 { 12669 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12670 else puts (dlerror ()); 12671 } 12672 /* dlclose (self); */ 12673 } 12674 else 12675 puts (dlerror ()); 12676 12677 return status; 12678} 12679_LT_EOF 12680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12681 (eval $ac_link) 2>&5 12682 ac_status=$? 12683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12684 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12685 (./conftest; exit; ) >&5 2>/dev/null 12686 lt_status=$? 12687 case x$lt_status in 12688 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12689 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12690 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12691 esac 12692 else : 12693 # compilation failed 12694 lt_cv_dlopen_self_static=no 12695 fi 12696fi 12697rm -fr conftest* 12698 12699 12700fi 12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12702$as_echo "$lt_cv_dlopen_self_static" >&6; } 12703 fi 12704 12705 CPPFLAGS=$save_CPPFLAGS 12706 LDFLAGS=$save_LDFLAGS 12707 LIBS=$save_LIBS 12708 ;; 12709 esac 12710 12711 case $lt_cv_dlopen_self in 12712 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12713 *) enable_dlopen_self=unknown ;; 12714 esac 12715 12716 case $lt_cv_dlopen_self_static in 12717 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12718 *) enable_dlopen_self_static=unknown ;; 12719 esac 12720fi 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738striplib= 12739old_striplib= 12740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12741$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12742if test -z "$STRIP"; then 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12744$as_echo "no" >&6; } 12745else 12746 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12747 old_striplib="$STRIP --strip-debug" 12748 striplib="$STRIP --strip-unneeded" 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12750$as_echo "yes" >&6; } 12751 else 12752 case $host_os in 12753 darwin*) 12754 # FIXME - insert some real tests, host_os isn't really good enough 12755 striplib="$STRIP -x" 12756 old_striplib="$STRIP -S" 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12758$as_echo "yes" >&6; } 12759 ;; 12760 freebsd*) 12761 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12762 old_striplib="$STRIP --strip-debug" 12763 striplib="$STRIP --strip-unneeded" 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12765$as_echo "yes" >&6; } 12766 else 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12768$as_echo "no" >&6; } 12769 fi 12770 ;; 12771 *) 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12773$as_echo "no" >&6; } 12774 ;; 12775 esac 12776 fi 12777fi 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 # Report what library types will actually be built 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12792$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12794$as_echo "$can_build_shared" >&6; } 12795 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12797$as_echo_n "checking whether to build shared libraries... " >&6; } 12798 test no = "$can_build_shared" && enable_shared=no 12799 12800 # On AIX, shared libraries and static libraries use the same namespace, and 12801 # are all built from PIC. 12802 case $host_os in 12803 aix3*) 12804 test yes = "$enable_shared" && enable_static=no 12805 if test -n "$RANLIB"; then 12806 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12807 postinstall_cmds='$RANLIB $lib' 12808 fi 12809 ;; 12810 12811 aix[4-9]*) 12812 if test ia64 != "$host_cpu"; then 12813 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12814 yes,aix,yes) ;; # shared object as lib.so file only 12815 yes,svr4,*) ;; # shared object as lib.so archive member only 12816 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12817 esac 12818 fi 12819 ;; 12820 esac 12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12822$as_echo "$enable_shared" >&6; } 12823 12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12825$as_echo_n "checking whether to build static libraries... " >&6; } 12826 # Make sure either enable_shared or enable_static is yes. 12827 test yes = "$enable_shared" || enable_static=yes 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12829$as_echo "$enable_static" >&6; } 12830 12831 12832 12833 12834fi 12835ac_ext=c 12836ac_cpp='$CPP $CPPFLAGS' 12837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12839ac_compiler_gnu=$ac_cv_c_compiler_gnu 12840 12841CC=$lt_save_CC 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 ac_config_commands="$ac_config_commands libtool" 12858 12859 12860 12861 12862# Only expand once: 12863 12864 12865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12866$as_echo_n "checking whether ln -s works... " >&6; } 12867LN_S=$as_ln_s 12868if test "$LN_S" = "ln -s"; then 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12870$as_echo "yes" >&6; } 12871else 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12873$as_echo "no, using $LN_S" >&6; } 12874fi 12875 12876 12877# Check for GCC visibility feature 12878 12879 12880 12881 VISIBILITY_CFLAGS= 12882 VISIBILITY_CXXFLAGS= 12883 HAVE_VISIBILITY=0 12884 if test -n "$GCC"; then 12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 12886$as_echo_n "checking whether the -Werror option is usable... " >&6; } 12887 if ${pcre2_cv_cc_vis_werror+:} false; then : 12888 $as_echo_n "(cached) " >&6 12889else 12890 12891 pcre2_save_CFLAGS="$CFLAGS" 12892 CFLAGS="$CFLAGS -Werror" 12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12894/* end confdefs.h. */ 12895 12896int 12897main () 12898{ 12899 12900 ; 12901 return 0; 12902} 12903_ACEOF 12904if ac_fn_c_try_compile "$LINENO"; then : 12905 pcre2_cv_cc_vis_werror=yes 12906else 12907 pcre2_cv_cc_vis_werror=no 12908fi 12909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12910 CFLAGS="$pcre2_save_CFLAGS" 12911fi 12912 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_vis_werror" >&5 12914$as_echo "$pcre2_cv_cc_vis_werror" >&6; } 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 12916$as_echo_n "checking for simple visibility declarations... " >&6; } 12917 if ${pcre2_cv_cc_visibility+:} false; then : 12918 $as_echo_n "(cached) " >&6 12919else 12920 12921 pcre2_save_CFLAGS="$CFLAGS" 12922 CFLAGS="$CFLAGS -fvisibility=hidden" 12923 if test $pcre2_cv_cc_vis_werror = yes; then 12924 CFLAGS="$CFLAGS -Werror" 12925 fi 12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12927/* end confdefs.h. */ 12928extern __attribute__((__visibility__("hidden"))) int hiddenvar; 12929 extern __attribute__((__visibility__("default"))) int exportedvar; 12930 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 12931 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 12932 void dummyfunc (void) {} 12933 12934int 12935main () 12936{ 12937 12938 ; 12939 return 0; 12940} 12941_ACEOF 12942if ac_fn_c_try_compile "$LINENO"; then : 12943 pcre2_cv_cc_visibility=yes 12944else 12945 pcre2_cv_cc_visibility=no 12946fi 12947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12948 CFLAGS="$pcre2_save_CFLAGS" 12949fi 12950 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_visibility" >&5 12952$as_echo "$pcre2_cv_cc_visibility" >&6; } 12953 if test $pcre2_cv_cc_visibility = yes; then 12954 VISIBILITY_CFLAGS="-fvisibility=hidden" 12955 VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden" 12956 HAVE_VISIBILITY=1 12957 12958$as_echo "#define PCRE2_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h 12959 12960 12961$as_echo "#define PCRE2_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h 12962 12963 12964$as_echo "#define PCRE2POSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h 12965 12966 12967$as_echo "#define PCRE2POSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h 12968 12969 fi 12970 fi 12971 12972 12973 12974 12975cat >>confdefs.h <<_ACEOF 12976#define HAVE_VISIBILITY $HAVE_VISIBILITY 12977_ACEOF 12978 12979 12980 12981# Versioning 12982 12983PCRE2_MAJOR="10" 12984PCRE2_MINOR="33" 12985PCRE2_PRERELEASE="" 12986PCRE2_DATE="2019-04-16" 12987 12988if test "$PCRE2_MINOR" = "08" -o "$PCRE2_MINOR" = "09" 12989then 12990 echo "***" 12991 echo "*** Minor version number $PCRE2_MINOR must not be used. ***" 12992 echo "*** Use only 00 to 07 or 10 onwards, to avoid octal issues. ***" 12993 echo "***" 12994 exit 1 12995fi 12996 12997 12998 12999 13000 13001 13002# Set a more sensible default value for $(htmldir). 13003if test "x$htmldir" = 'x${docdir}' 13004then 13005 htmldir='${docdir}/html' 13006fi 13007 13008# Force an error for PCRE1 size options 13009# Check whether --enable-pcre8 was given. 13010if test "${enable_pcre8+set}" = set; then : 13011 enableval=$enable_pcre8; 13012else 13013 enable_pcre8=no 13014fi 13015 13016# Check whether --enable-pcre16 was given. 13017if test "${enable_pcre16+set}" = set; then : 13018 enableval=$enable_pcre16; 13019else 13020 enable_pcre16=no 13021fi 13022 13023# Check whether --enable-pcre32 was given. 13024if test "${enable_pcre32+set}" = set; then : 13025 enableval=$enable_pcre32; 13026else 13027 enable_pcre32=no 13028fi 13029 13030 13031if test "$enable_pcre8$enable_pcre16$enable_pcre32" != "nonono" 13032then 13033 echo "** ERROR: Use --[en|dis]able-pcre2-[8|16|32], not --[en|dis]able-pcre[8|16|32]" 13034 exit 1 13035fi 13036 13037# Handle --disable-pcre2-8 (enabled by default) 13038# Check whether --enable-pcre2-8 was given. 13039if test "${enable_pcre2_8+set}" = set; then : 13040 enableval=$enable_pcre2_8; 13041else 13042 enable_pcre2_8=unset 13043fi 13044 13045 13046 13047# Handle --enable-pcre2-16 (disabled by default) 13048# Check whether --enable-pcre2-16 was given. 13049if test "${enable_pcre2_16+set}" = set; then : 13050 enableval=$enable_pcre2_16; 13051else 13052 enable_pcre2_16=unset 13053fi 13054 13055 13056 13057# Handle --enable-pcre2-32 (disabled by default) 13058# Check whether --enable-pcre2-32 was given. 13059if test "${enable_pcre2_32+set}" = set; then : 13060 enableval=$enable_pcre2_32; 13061else 13062 enable_pcre2_32=unset 13063fi 13064 13065 13066 13067# Handle --enable-debug (disabled by default) 13068# Check whether --enable-debug was given. 13069if test "${enable_debug+set}" = set; then : 13070 enableval=$enable_debug; 13071else 13072 enable_debug=no 13073fi 13074 13075 13076# Handle --enable-jit (disabled by default) 13077# Check whether --enable-jit was given. 13078if test "${enable_jit+set}" = set; then : 13079 enableval=$enable_jit; 13080else 13081 enable_jit=no 13082fi 13083 13084 13085# This code enables JIT if the hardware supports it. 13086if test "$enable_jit" = "auto"; then 13087 ac_ext=c 13088ac_cpp='$CPP $CPPFLAGS' 13089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13091ac_compiler_gnu=$ac_cv_c_compiler_gnu 13092 13093 SAVE_CPPFLAGS=$CPPFLAGS 13094 CPPFLAGS=-I$srcdir 13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13096/* end confdefs.h. */ 13097 13098 #define SLJIT_CONFIG_AUTO 1 13099 #include "src/sljit/sljitConfigInternal.h" 13100 #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED) 13101 #error unsupported 13102 #endif 13103_ACEOF 13104if ac_fn_c_try_compile "$LINENO"; then : 13105 enable_jit=yes 13106else 13107 enable_jit=no 13108fi 13109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13110 CPPFLAGS=$SAVE_CPPFLAGS 13111 echo checking for JIT support on this hardware... $enable_jit 13112fi 13113 13114# Handle --enable-jit-sealloc (disabled by default) 13115# Check whether --enable-jit-sealloc was given. 13116if test "${enable_jit_sealloc+set}" = set; then : 13117 enableval=$enable_jit_sealloc; 13118else 13119 enable_jit_sealloc=no 13120fi 13121 13122 13123# Handle --disable-pcre2grep-jit (enabled by default) 13124# Check whether --enable-pcre2grep-jit was given. 13125if test "${enable_pcre2grep_jit+set}" = set; then : 13126 enableval=$enable_pcre2grep_jit; 13127else 13128 enable_pcre2grep_jit=yes 13129fi 13130 13131 13132# Handle --disable-pcre2grep-callout (enabled by default) 13133# Check whether --enable-pcre2grep-callout was given. 13134if test "${enable_pcre2grep_callout+set}" = set; then : 13135 enableval=$enable_pcre2grep_callout; 13136else 13137 enable_pcre2grep_callout=yes 13138fi 13139 13140 13141# Handle --disable-pcre2grep-callout-fork (enabled by default) 13142# Check whether --enable-pcre2grep-callout-fork was given. 13143if test "${enable_pcre2grep_callout_fork+set}" = set; then : 13144 enableval=$enable_pcre2grep_callout_fork; 13145else 13146 enable_pcre2grep_callout_fork=yes 13147fi 13148 13149 13150# Handle --enable-rebuild-chartables 13151# Check whether --enable-rebuild-chartables was given. 13152if test "${enable_rebuild_chartables+set}" = set; then : 13153 enableval=$enable_rebuild_chartables; 13154else 13155 enable_rebuild_chartables=no 13156fi 13157 13158 13159# Handle --disable-unicode (enabled by default) 13160# Check whether --enable-unicode was given. 13161if test "${enable_unicode+set}" = set; then : 13162 enableval=$enable_unicode; 13163else 13164 enable_unicode=unset 13165fi 13166 13167 13168# Handle newline options 13169ac_pcre2_newline=lf 13170# Check whether --enable-newline-is-cr was given. 13171if test "${enable_newline_is_cr+set}" = set; then : 13172 enableval=$enable_newline_is_cr; ac_pcre2_newline=cr 13173fi 13174 13175# Check whether --enable-newline-is-lf was given. 13176if test "${enable_newline_is_lf+set}" = set; then : 13177 enableval=$enable_newline_is_lf; ac_pcre2_newline=lf 13178fi 13179 13180# Check whether --enable-newline-is-crlf was given. 13181if test "${enable_newline_is_crlf+set}" = set; then : 13182 enableval=$enable_newline_is_crlf; ac_pcre2_newline=crlf 13183fi 13184 13185# Check whether --enable-newline-is-anycrlf was given. 13186if test "${enable_newline_is_anycrlf+set}" = set; then : 13187 enableval=$enable_newline_is_anycrlf; ac_pcre2_newline=anycrlf 13188fi 13189 13190# Check whether --enable-newline-is-any was given. 13191if test "${enable_newline_is_any+set}" = set; then : 13192 enableval=$enable_newline_is_any; ac_pcre2_newline=any 13193fi 13194 13195# Check whether --enable-newline-is-nul was given. 13196if test "${enable_newline_is_nul+set}" = set; then : 13197 enableval=$enable_newline_is_nul; ac_pcre2_newline=nul 13198fi 13199 13200enable_newline="$ac_pcre2_newline" 13201 13202# Handle --enable-bsr-anycrlf 13203# Check whether --enable-bsr-anycrlf was given. 13204if test "${enable_bsr_anycrlf+set}" = set; then : 13205 enableval=$enable_bsr_anycrlf; 13206else 13207 enable_bsr_anycrlf=no 13208fi 13209 13210 13211# Handle --enable-never-backslash-C 13212# Check whether --enable-never-backslash-C was given. 13213if test "${enable_never_backslash_C+set}" = set; then : 13214 enableval=$enable_never_backslash_C; 13215else 13216 enable_never_backslash_C=no 13217fi 13218 13219 13220# Handle --enable-ebcdic 13221# Check whether --enable-ebcdic was given. 13222if test "${enable_ebcdic+set}" = set; then : 13223 enableval=$enable_ebcdic; 13224else 13225 enable_ebcdic=no 13226fi 13227 13228 13229# Handle --enable-ebcdic-nl25 13230# Check whether --enable-ebcdic-nl25 was given. 13231if test "${enable_ebcdic_nl25+set}" = set; then : 13232 enableval=$enable_ebcdic_nl25; 13233else 13234 enable_ebcdic_nl25=no 13235fi 13236 13237 13238# Handle --enable-pcre2grep-libz 13239# Check whether --enable-pcre2grep-libz was given. 13240if test "${enable_pcre2grep_libz+set}" = set; then : 13241 enableval=$enable_pcre2grep_libz; 13242else 13243 enable_pcre2grep_libz=no 13244fi 13245 13246 13247# Handle --enable-pcre2grep-libbz2 13248# Check whether --enable-pcre2grep-libbz2 was given. 13249if test "${enable_pcre2grep_libbz2+set}" = set; then : 13250 enableval=$enable_pcre2grep_libbz2; 13251else 13252 enable_pcre2grep_libbz2=no 13253fi 13254 13255 13256# Handle --with-pcre2grep-bufsize=N 13257 13258# Check whether --with-pcre2grep-bufsize was given. 13259if test "${with_pcre2grep_bufsize+set}" = set; then : 13260 withval=$with_pcre2grep_bufsize; 13261else 13262 with_pcre2grep_bufsize=20480 13263fi 13264 13265 13266# Handle --with-pcre2grep-max-bufsize=N 13267 13268# Check whether --with-pcre2grep-max-bufsize was given. 13269if test "${with_pcre2grep_max_bufsize+set}" = set; then : 13270 withval=$with_pcre2grep_max_bufsize; 13271else 13272 with_pcre2grep_max_bufsize=1048576 13273fi 13274 13275 13276# Handle --enable-pcre2test-libedit 13277# Check whether --enable-pcre2test-libedit was given. 13278if test "${enable_pcre2test_libedit+set}" = set; then : 13279 enableval=$enable_pcre2test_libedit; 13280else 13281 enable_pcre2test_libedit=no 13282fi 13283 13284 13285# Handle --enable-pcre2test-libreadline 13286# Check whether --enable-pcre2test-libreadline was given. 13287if test "${enable_pcre2test_libreadline+set}" = set; then : 13288 enableval=$enable_pcre2test_libreadline; 13289else 13290 enable_pcre2test_libreadline=no 13291fi 13292 13293 13294# Handle --with-link-size=N 13295 13296# Check whether --with-link-size was given. 13297if test "${with_link_size+set}" = set; then : 13298 withval=$with_link_size; 13299else 13300 with_link_size=2 13301fi 13302 13303 13304# Handle --with-parens-nest-limit=N 13305 13306# Check whether --with-parens-nest-limit was given. 13307if test "${with_parens_nest_limit+set}" = set; then : 13308 withval=$with_parens_nest_limit; 13309else 13310 with_parens_nest_limit=250 13311fi 13312 13313 13314# Handle --with-heap-limit 13315 13316# Check whether --with-heap-limit was given. 13317if test "${with_heap_limit+set}" = set; then : 13318 withval=$with_heap_limit; 13319else 13320 with_heap_limit=20000000 13321fi 13322 13323 13324# Handle --with-match-limit=N 13325 13326# Check whether --with-match-limit was given. 13327if test "${with_match_limit+set}" = set; then : 13328 withval=$with_match_limit; 13329else 13330 with_match_limit=10000000 13331fi 13332 13333 13334# Handle --with-match-limit-depth=N 13335# Recognize old synonym --with-match-limit-recursion 13336# 13337# Note: In config.h, the default is to define MATCH_LIMIT_DEPTH symbolically as 13338# MATCH_LIMIT, which in turn is defined to be some numeric value (e.g. 13339# 10000000). MATCH_LIMIT_DEPTH can otherwise be set to some different numeric 13340# value (or even the same numeric value as MATCH_LIMIT, though no longer 13341# defined in terms of the latter). 13342# 13343 13344# Check whether --with-match-limit-depth was given. 13345if test "${with_match_limit_depth+set}" = set; then : 13346 withval=$with_match_limit_depth; 13347else 13348 with_match_limit_depth=MATCH_LIMIT 13349fi 13350 13351 13352 13353# Check whether --with-match-limit-recursion was given. 13354if test "${with_match_limit_recursion+set}" = set; then : 13355 withval=$with_match_limit_recursion; 13356else 13357 with_match_limit_recursion=UNSET 13358fi 13359 13360 13361# Handle --enable-valgrind 13362# Check whether --enable-valgrind was given. 13363if test "${enable_valgrind+set}" = set; then : 13364 enableval=$enable_valgrind; 13365else 13366 enable_valgrind=no 13367fi 13368 13369 13370# Enable code coverage reports using gcov 13371# Check whether --enable-coverage was given. 13372if test "${enable_coverage+set}" = set; then : 13373 enableval=$enable_coverage; 13374else 13375 enable_coverage=no 13376fi 13377 13378 13379# Handle --enable-fuzz-support 13380# Check whether --enable-fuzz_support was given. 13381if test "${enable_fuzz_support+set}" = set; then : 13382 enableval=$enable_fuzz_support; 13383else 13384 enable_fuzz_support=no 13385fi 13386 13387 13388# Handle --disable-stack-for-recursion 13389# This option became obsolete at release 10.30. 13390# Check whether --enable-stack-for-recursion was given. 13391if test "${enable_stack_for_recursion+set}" = set; then : 13392 enableval=$enable_stack_for_recursion; 13393else 13394 enable_stack_for_recursion=yes 13395fi 13396 13397 13398# Original code 13399# AC_ARG_ENABLE(stack-for-recursion, 13400# AS_HELP_STRING([--disable-stack-for-recursion], 13401# [don't use stack recursion when matching]), 13402# , enable_stack_for_recursion=yes) 13403 13404# Handle --disable-percent_zt (set as "auto" by default) 13405# Check whether --enable-percent-zt was given. 13406if test "${enable_percent_zt+set}" = set; then : 13407 enableval=$enable_percent_zt; 13408else 13409 enable_percent_zt=auto 13410fi 13411 13412 13413# Set the default value for pcre2-8 13414if test "x$enable_pcre2_8" = "xunset" 13415then 13416 enable_pcre2_8=yes 13417fi 13418 13419# Set the default value for pcre2-16 13420if test "x$enable_pcre2_16" = "xunset" 13421then 13422 enable_pcre2_16=no 13423fi 13424 13425# Set the default value for pcre2-32 13426if test "x$enable_pcre2_32" = "xunset" 13427then 13428 enable_pcre2_32=no 13429fi 13430 13431# Make sure at least one library is selected 13432if test "x$enable_pcre2_8$enable_pcre2_16$enable_pcre2_32" = "xnonono" 13433then 13434 as_fn_error $? "At least one of the 8, 16 or 32 bit libraries must be enabled" "$LINENO" 5 13435fi 13436 13437# Unicode is enabled by default. 13438if test "x$enable_unicode" = "xunset" 13439then 13440 enable_unicode=yes 13441fi 13442 13443# Convert the newline identifier into the appropriate integer value. These must 13444# agree with the PCRE2_NEWLINE_xxx values in pcre2.h. 13445 13446case "$enable_newline" in 13447 cr) ac_pcre2_newline_value=1 ;; 13448 lf) ac_pcre2_newline_value=2 ;; 13449 crlf) ac_pcre2_newline_value=3 ;; 13450 any) ac_pcre2_newline_value=4 ;; 13451 anycrlf) ac_pcre2_newline_value=5 ;; 13452 nul) ac_pcre2_newline_value=6 ;; 13453 *) 13454 as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5 13455 ;; 13456esac 13457 13458# --enable-ebcdic-nl25 implies --enable-ebcdic 13459if test "x$enable_ebcdic_nl25" = "xyes"; then 13460 enable_ebcdic=yes 13461fi 13462 13463# Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled. 13464# Also check that UTF support is not requested, because PCRE2 cannot handle 13465# EBCDIC and UTF in the same build. To do so it would need to use different 13466# character constants depending on the mode. Also, EBCDIC cannot be used with 13467# 16-bit and 32-bit libraries. 13468# 13469if test "x$enable_ebcdic" = "xyes"; then 13470 enable_rebuild_chartables=yes 13471 if test "x$enable_unicode" = "xyes"; then 13472 as_fn_error $? "support for EBCDIC and Unicode cannot be enabled at the same time" "$LINENO" 5 13473 fi 13474 if test "x$enable_pcre2_16" = "xyes" -o "x$enable_pcre2_32" = "xyes"; then 13475 as_fn_error $? "EBCDIC support is available only for the 8-bit library" "$LINENO" 5 13476 fi 13477fi 13478 13479# Check argument to --with-link-size 13480case "$with_link_size" in 13481 2|3|4) ;; 13482 *) 13483 as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5 13484 ;; 13485esac 13486 13487 13488 13489# Checks for header files. 13490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13491$as_echo_n "checking for ANSI C header files... " >&6; } 13492if ${ac_cv_header_stdc+:} false; then : 13493 $as_echo_n "(cached) " >&6 13494else 13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13496/* end confdefs.h. */ 13497#include <stdlib.h> 13498#include <stdarg.h> 13499#include <string.h> 13500#include <float.h> 13501 13502int 13503main () 13504{ 13505 13506 ; 13507 return 0; 13508} 13509_ACEOF 13510if ac_fn_c_try_compile "$LINENO"; then : 13511 ac_cv_header_stdc=yes 13512else 13513 ac_cv_header_stdc=no 13514fi 13515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13516 13517if test $ac_cv_header_stdc = yes; then 13518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13520/* end confdefs.h. */ 13521#include <string.h> 13522 13523_ACEOF 13524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13525 $EGREP "memchr" >/dev/null 2>&1; then : 13526 13527else 13528 ac_cv_header_stdc=no 13529fi 13530rm -f conftest* 13531 13532fi 13533 13534if test $ac_cv_header_stdc = yes; then 13535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13537/* end confdefs.h. */ 13538#include <stdlib.h> 13539 13540_ACEOF 13541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13542 $EGREP "free" >/dev/null 2>&1; then : 13543 13544else 13545 ac_cv_header_stdc=no 13546fi 13547rm -f conftest* 13548 13549fi 13550 13551if test $ac_cv_header_stdc = yes; then 13552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13553 if test "$cross_compiling" = yes; then : 13554 : 13555else 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13557/* end confdefs.h. */ 13558#include <ctype.h> 13559#include <stdlib.h> 13560#if ((' ' & 0x0FF) == 0x020) 13561# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13562# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13563#else 13564# define ISLOWER(c) \ 13565 (('a' <= (c) && (c) <= 'i') \ 13566 || ('j' <= (c) && (c) <= 'r') \ 13567 || ('s' <= (c) && (c) <= 'z')) 13568# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13569#endif 13570 13571#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13572int 13573main () 13574{ 13575 int i; 13576 for (i = 0; i < 256; i++) 13577 if (XOR (islower (i), ISLOWER (i)) 13578 || toupper (i) != TOUPPER (i)) 13579 return 2; 13580 return 0; 13581} 13582_ACEOF 13583if ac_fn_c_try_run "$LINENO"; then : 13584 13585else 13586 ac_cv_header_stdc=no 13587fi 13588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13589 conftest.$ac_objext conftest.beam conftest.$ac_ext 13590fi 13591 13592fi 13593fi 13594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13595$as_echo "$ac_cv_header_stdc" >&6; } 13596if test $ac_cv_header_stdc = yes; then 13597 13598$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13599 13600fi 13601 13602for ac_header in limits.h sys/types.h sys/stat.h dirent.h 13603do : 13604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13605ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13606if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13607 cat >>confdefs.h <<_ACEOF 13608#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13609_ACEOF 13610 13611fi 13612 13613done 13614 13615for ac_header in windows.h 13616do : 13617 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 13618if test "x$ac_cv_header_windows_h" = xyes; then : 13619 cat >>confdefs.h <<_ACEOF 13620#define HAVE_WINDOWS_H 1 13621_ACEOF 13622 HAVE_WINDOWS_H=1 13623fi 13624 13625done 13626 13627for ac_header in sys/wait.h 13628do : 13629 ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 13630if test "x$ac_cv_header_sys_wait_h" = xyes; then : 13631 cat >>confdefs.h <<_ACEOF 13632#define HAVE_SYS_WAIT_H 1 13633_ACEOF 13634 HAVE_SYS_WAIT_H=1 13635fi 13636 13637done 13638 13639 13640# Conditional compilation 13641 if test "x$enable_pcre2_8" = "xyes"; then 13642 WITH_PCRE2_8_TRUE= 13643 WITH_PCRE2_8_FALSE='#' 13644else 13645 WITH_PCRE2_8_TRUE='#' 13646 WITH_PCRE2_8_FALSE= 13647fi 13648 13649 if test "x$enable_pcre2_16" = "xyes"; then 13650 WITH_PCRE2_16_TRUE= 13651 WITH_PCRE2_16_FALSE='#' 13652else 13653 WITH_PCRE2_16_TRUE='#' 13654 WITH_PCRE2_16_FALSE= 13655fi 13656 13657 if test "x$enable_pcre2_32" = "xyes"; then 13658 WITH_PCRE2_32_TRUE= 13659 WITH_PCRE2_32_FALSE='#' 13660else 13661 WITH_PCRE2_32_TRUE='#' 13662 WITH_PCRE2_32_FALSE= 13663fi 13664 13665 if test "x$enable_debug" = "xyes"; then 13666 WITH_DEBUG_TRUE= 13667 WITH_DEBUG_FALSE='#' 13668else 13669 WITH_DEBUG_TRUE='#' 13670 WITH_DEBUG_FALSE= 13671fi 13672 13673 if test "x$enable_rebuild_chartables" = "xyes"; then 13674 WITH_REBUILD_CHARTABLES_TRUE= 13675 WITH_REBUILD_CHARTABLES_FALSE='#' 13676else 13677 WITH_REBUILD_CHARTABLES_TRUE='#' 13678 WITH_REBUILD_CHARTABLES_FALSE= 13679fi 13680 13681 if test "x$enable_jit" = "xyes"; then 13682 WITH_JIT_TRUE= 13683 WITH_JIT_FALSE='#' 13684else 13685 WITH_JIT_TRUE='#' 13686 WITH_JIT_FALSE= 13687fi 13688 13689 if test "x$enable_unicode" = "xyes"; then 13690 WITH_UNICODE_TRUE= 13691 WITH_UNICODE_FALSE='#' 13692else 13693 WITH_UNICODE_TRUE='#' 13694 WITH_UNICODE_FALSE= 13695fi 13696 13697 if test "x$enable_valgrind" = "xyes"; then 13698 WITH_VALGRIND_TRUE= 13699 WITH_VALGRIND_FALSE='#' 13700else 13701 WITH_VALGRIND_TRUE='#' 13702 WITH_VALGRIND_FALSE= 13703fi 13704 13705 if test "x$enable_fuzz_support" = "xyes"; then 13706 WITH_FUZZ_SUPPORT_TRUE= 13707 WITH_FUZZ_SUPPORT_FALSE='#' 13708else 13709 WITH_FUZZ_SUPPORT_TRUE='#' 13710 WITH_FUZZ_SUPPORT_FALSE= 13711fi 13712 13713 13714if test "$enable_fuzz_support" = "yes" -a "$enable_pcre2_8" = "no"; then 13715 echo "** ERROR: Fuzzer support requires the 8-bit library" 13716 exit 1 13717fi 13718 13719# Checks for typedefs, structures, and compiler characteristics. 13720 13721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13722$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13723if ${ac_cv_c_const+:} false; then : 13724 $as_echo_n "(cached) " >&6 13725else 13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13727/* end confdefs.h. */ 13728 13729int 13730main () 13731{ 13732 13733#ifndef __cplusplus 13734 /* Ultrix mips cc rejects this sort of thing. */ 13735 typedef int charset[2]; 13736 const charset cs = { 0, 0 }; 13737 /* SunOS 4.1.1 cc rejects this. */ 13738 char const *const *pcpcc; 13739 char **ppc; 13740 /* NEC SVR4.0.2 mips cc rejects this. */ 13741 struct point {int x, y;}; 13742 static struct point const zero = {0,0}; 13743 /* AIX XL C 1.02.0.0 rejects this. 13744 It does not let you subtract one const X* pointer from another in 13745 an arm of an if-expression whose if-part is not a constant 13746 expression */ 13747 const char *g = "string"; 13748 pcpcc = &g + (g ? g-g : 0); 13749 /* HPUX 7.0 cc rejects these. */ 13750 ++pcpcc; 13751 ppc = (char**) pcpcc; 13752 pcpcc = (char const *const *) ppc; 13753 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13754 char tx; 13755 char *t = &tx; 13756 char const *s = 0 ? (char *) 0 : (char const *) 0; 13757 13758 *t++ = 0; 13759 if (s) return 0; 13760 } 13761 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13762 int x[] = {25, 17}; 13763 const int *foo = &x[0]; 13764 ++foo; 13765 } 13766 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13767 typedef const int *iptr; 13768 iptr p = 0; 13769 ++p; 13770 } 13771 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13772 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13773 struct s { int j; const int *ap[3]; } bx; 13774 struct s *b = &bx; b->j = 5; 13775 } 13776 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13777 const int foo = 10; 13778 if (!foo) return 0; 13779 } 13780 return !cs[0] && !zero.x; 13781#endif 13782 13783 ; 13784 return 0; 13785} 13786_ACEOF 13787if ac_fn_c_try_compile "$LINENO"; then : 13788 ac_cv_c_const=yes 13789else 13790 ac_cv_c_const=no 13791fi 13792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13793fi 13794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13795$as_echo "$ac_cv_c_const" >&6; } 13796if test $ac_cv_c_const = no; then 13797 13798$as_echo "#define const /**/" >>confdefs.h 13799 13800fi 13801 13802ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13803if test "x$ac_cv_type_size_t" = xyes; then : 13804 13805else 13806 13807cat >>confdefs.h <<_ACEOF 13808#define size_t unsigned int 13809_ACEOF 13810 13811fi 13812 13813 13814# Checks for library functions. 13815 13816for ac_func in bcopy memmove strerror mkostemp secure_getenv 13817do : 13818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13819ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13820if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13821 cat >>confdefs.h <<_ACEOF 13822#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13823_ACEOF 13824 13825fi 13826done 13827 13828 13829# Check for the availability of libz (aka zlib) 13830 13831for ac_header in zlib.h 13832do : 13833 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 13834if test "x$ac_cv_header_zlib_h" = xyes; then : 13835 cat >>confdefs.h <<_ACEOF 13836#define HAVE_ZLIB_H 1 13837_ACEOF 13838 HAVE_ZLIB_H=1 13839fi 13840 13841done 13842 13843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 13844$as_echo_n "checking for gzopen in -lz... " >&6; } 13845if ${ac_cv_lib_z_gzopen+:} false; then : 13846 $as_echo_n "(cached) " >&6 13847else 13848 ac_check_lib_save_LIBS=$LIBS 13849LIBS="-lz $LIBS" 13850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13851/* end confdefs.h. */ 13852 13853/* Override any GCC internal prototype to avoid an error. 13854 Use char because int might match the return type of a GCC 13855 builtin and then its argument prototype would still apply. */ 13856#ifdef __cplusplus 13857extern "C" 13858#endif 13859char gzopen (); 13860int 13861main () 13862{ 13863return gzopen (); 13864 ; 13865 return 0; 13866} 13867_ACEOF 13868if ac_fn_c_try_link "$LINENO"; then : 13869 ac_cv_lib_z_gzopen=yes 13870else 13871 ac_cv_lib_z_gzopen=no 13872fi 13873rm -f core conftest.err conftest.$ac_objext \ 13874 conftest$ac_exeext conftest.$ac_ext 13875LIBS=$ac_check_lib_save_LIBS 13876fi 13877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 13878$as_echo "$ac_cv_lib_z_gzopen" >&6; } 13879if test "x$ac_cv_lib_z_gzopen" = xyes; then : 13880 HAVE_LIBZ=1 13881fi 13882 13883 13884# Check for the availability of libbz2. Originally we just used AC_CHECK_LIB, 13885# as for libz. However, this had the following problem, diagnosed and fixed by 13886# a user: 13887# 13888# - libbz2 uses the Pascal calling convention (WINAPI) for the functions 13889# under Win32. 13890# - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h", 13891# therefore missing the function definition. 13892# - The compiler thus generates a "C" signature for the test function. 13893# - The linker fails to find the "C" function. 13894# - PCRE2 fails to configure if asked to do so against libbz2. 13895# 13896# Solution: 13897# 13898# - Replace the AC_CHECK_LIB test with a custom test. 13899 13900for ac_header in bzlib.h 13901do : 13902 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 13903if test "x$ac_cv_header_bzlib_h" = xyes; then : 13904 cat >>confdefs.h <<_ACEOF 13905#define HAVE_BZLIB_H 1 13906_ACEOF 13907 HAVE_BZLIB_H=1 13908fi 13909 13910done 13911 13912# Original test 13913# AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1]) 13914# 13915# Custom test follows 13916 13917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5 13918$as_echo_n "checking for libbz2... " >&6; } 13919OLD_LIBS="$LIBS" 13920LIBS="$LIBS -lbz2" 13921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13922/* end confdefs.h. */ 13923 13924#ifdef HAVE_BZLIB_H 13925#include <bzlib.h> 13926#endif 13927int 13928main () 13929{ 13930return (int)BZ2_bzopen("conftest", "rb"); 13931 ; 13932 return 0; 13933} 13934_ACEOF 13935if ac_fn_c_try_link "$LINENO"; then : 13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13937$as_echo "yes" >&6; };HAVE_LIBBZ2=1; break; 13938else 13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13940$as_echo "no" >&6; } 13941fi 13942rm -f core conftest.err conftest.$ac_objext \ 13943 conftest$ac_exeext conftest.$ac_ext 13944LIBS="$OLD_LIBS" 13945 13946# Check for the availabiity of libreadline 13947 13948if test "$enable_pcre2test_libreadline" = "yes"; then 13949 for ac_header in readline/readline.h 13950do : 13951 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 13952if test "x$ac_cv_header_readline_readline_h" = xyes; then : 13953 cat >>confdefs.h <<_ACEOF 13954#define HAVE_READLINE_READLINE_H 1 13955_ACEOF 13956 HAVE_READLINE_H=1 13957fi 13958 13959done 13960 13961 for ac_header in readline/history.h 13962do : 13963 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 13964if test "x$ac_cv_header_readline_history_h" = xyes; then : 13965 cat >>confdefs.h <<_ACEOF 13966#define HAVE_READLINE_HISTORY_H 1 13967_ACEOF 13968 HAVE_HISTORY_H=1 13969fi 13970 13971done 13972 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 13974$as_echo_n "checking for readline in -lreadline... " >&6; } 13975if ${ac_cv_lib_readline_readline+:} false; then : 13976 $as_echo_n "(cached) " >&6 13977else 13978 ac_check_lib_save_LIBS=$LIBS 13979LIBS="-lreadline $LIBS" 13980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13981/* end confdefs.h. */ 13982 13983/* Override any GCC internal prototype to avoid an error. 13984 Use char because int might match the return type of a GCC 13985 builtin and then its argument prototype would still apply. */ 13986#ifdef __cplusplus 13987extern "C" 13988#endif 13989char readline (); 13990int 13991main () 13992{ 13993return readline (); 13994 ; 13995 return 0; 13996} 13997_ACEOF 13998if ac_fn_c_try_link "$LINENO"; then : 13999 ac_cv_lib_readline_readline=yes 14000else 14001 ac_cv_lib_readline_readline=no 14002fi 14003rm -f core conftest.err conftest.$ac_objext \ 14004 conftest$ac_exeext conftest.$ac_ext 14005LIBS=$ac_check_lib_save_LIBS 14006fi 14007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14008$as_echo "$ac_cv_lib_readline_readline" >&6; } 14009if test "x$ac_cv_lib_readline_readline" = xyes; then : 14010 LIBREADLINE="-lreadline" 14011else 14012 unset ac_cv_lib_readline_readline; 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 14014$as_echo_n "checking for readline in -lreadline... " >&6; } 14015if ${ac_cv_lib_readline_readline+:} false; then : 14016 $as_echo_n "(cached) " >&6 14017else 14018 ac_check_lib_save_LIBS=$LIBS 14019LIBS="-lreadline -ltinfo $LIBS" 14020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14021/* end confdefs.h. */ 14022 14023/* Override any GCC internal prototype to avoid an error. 14024 Use char because int might match the return type of a GCC 14025 builtin and then its argument prototype would still apply. */ 14026#ifdef __cplusplus 14027extern "C" 14028#endif 14029char readline (); 14030int 14031main () 14032{ 14033return readline (); 14034 ; 14035 return 0; 14036} 14037_ACEOF 14038if ac_fn_c_try_link "$LINENO"; then : 14039 ac_cv_lib_readline_readline=yes 14040else 14041 ac_cv_lib_readline_readline=no 14042fi 14043rm -f core conftest.err conftest.$ac_objext \ 14044 conftest$ac_exeext conftest.$ac_ext 14045LIBS=$ac_check_lib_save_LIBS 14046fi 14047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14048$as_echo "$ac_cv_lib_readline_readline" >&6; } 14049if test "x$ac_cv_lib_readline_readline" = xyes; then : 14050 LIBREADLINE="-ltinfo" 14051else 14052 unset ac_cv_lib_readline_readline; 14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 14054$as_echo_n "checking for readline in -lreadline... " >&6; } 14055if ${ac_cv_lib_readline_readline+:} false; then : 14056 $as_echo_n "(cached) " >&6 14057else 14058 ac_check_lib_save_LIBS=$LIBS 14059LIBS="-lreadline -lcurses $LIBS" 14060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14061/* end confdefs.h. */ 14062 14063/* Override any GCC internal prototype to avoid an error. 14064 Use char because int might match the return type of a GCC 14065 builtin and then its argument prototype would still apply. */ 14066#ifdef __cplusplus 14067extern "C" 14068#endif 14069char readline (); 14070int 14071main () 14072{ 14073return readline (); 14074 ; 14075 return 0; 14076} 14077_ACEOF 14078if ac_fn_c_try_link "$LINENO"; then : 14079 ac_cv_lib_readline_readline=yes 14080else 14081 ac_cv_lib_readline_readline=no 14082fi 14083rm -f core conftest.err conftest.$ac_objext \ 14084 conftest$ac_exeext conftest.$ac_ext 14085LIBS=$ac_check_lib_save_LIBS 14086fi 14087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14088$as_echo "$ac_cv_lib_readline_readline" >&6; } 14089if test "x$ac_cv_lib_readline_readline" = xyes; then : 14090 LIBREADLINE="-lcurses" 14091else 14092 unset ac_cv_lib_readline_readline; 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 14094$as_echo_n "checking for readline in -lreadline... " >&6; } 14095if ${ac_cv_lib_readline_readline+:} false; then : 14096 $as_echo_n "(cached) " >&6 14097else 14098 ac_check_lib_save_LIBS=$LIBS 14099LIBS="-lreadline -lncurses $LIBS" 14100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14101/* end confdefs.h. */ 14102 14103/* Override any GCC internal prototype to avoid an error. 14104 Use char because int might match the return type of a GCC 14105 builtin and then its argument prototype would still apply. */ 14106#ifdef __cplusplus 14107extern "C" 14108#endif 14109char readline (); 14110int 14111main () 14112{ 14113return readline (); 14114 ; 14115 return 0; 14116} 14117_ACEOF 14118if ac_fn_c_try_link "$LINENO"; then : 14119 ac_cv_lib_readline_readline=yes 14120else 14121 ac_cv_lib_readline_readline=no 14122fi 14123rm -f core conftest.err conftest.$ac_objext \ 14124 conftest$ac_exeext conftest.$ac_ext 14125LIBS=$ac_check_lib_save_LIBS 14126fi 14127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14128$as_echo "$ac_cv_lib_readline_readline" >&6; } 14129if test "x$ac_cv_lib_readline_readline" = xyes; then : 14130 LIBREADLINE="-lncurses" 14131else 14132 unset ac_cv_lib_readline_readline; 14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 14134$as_echo_n "checking for readline in -lreadline... " >&6; } 14135if ${ac_cv_lib_readline_readline+:} false; then : 14136 $as_echo_n "(cached) " >&6 14137else 14138 ac_check_lib_save_LIBS=$LIBS 14139LIBS="-lreadline -lncursesw $LIBS" 14140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14141/* end confdefs.h. */ 14142 14143/* Override any GCC internal prototype to avoid an error. 14144 Use char because int might match the return type of a GCC 14145 builtin and then its argument prototype would still apply. */ 14146#ifdef __cplusplus 14147extern "C" 14148#endif 14149char readline (); 14150int 14151main () 14152{ 14153return readline (); 14154 ; 14155 return 0; 14156} 14157_ACEOF 14158if ac_fn_c_try_link "$LINENO"; then : 14159 ac_cv_lib_readline_readline=yes 14160else 14161 ac_cv_lib_readline_readline=no 14162fi 14163rm -f core conftest.err conftest.$ac_objext \ 14164 conftest$ac_exeext conftest.$ac_ext 14165LIBS=$ac_check_lib_save_LIBS 14166fi 14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14168$as_echo "$ac_cv_lib_readline_readline" >&6; } 14169if test "x$ac_cv_lib_readline_readline" = xyes; then : 14170 LIBREADLINE="-lncursesw" 14171else 14172 unset ac_cv_lib_readline_readline; 14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 14174$as_echo_n "checking for readline in -lreadline... " >&6; } 14175if ${ac_cv_lib_readline_readline+:} false; then : 14176 $as_echo_n "(cached) " >&6 14177else 14178 ac_check_lib_save_LIBS=$LIBS 14179LIBS="-lreadline -ltermcap $LIBS" 14180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14181/* end confdefs.h. */ 14182 14183/* Override any GCC internal prototype to avoid an error. 14184 Use char because int might match the return type of a GCC 14185 builtin and then its argument prototype would still apply. */ 14186#ifdef __cplusplus 14187extern "C" 14188#endif 14189char readline (); 14190int 14191main () 14192{ 14193return readline (); 14194 ; 14195 return 0; 14196} 14197_ACEOF 14198if ac_fn_c_try_link "$LINENO"; then : 14199 ac_cv_lib_readline_readline=yes 14200else 14201 ac_cv_lib_readline_readline=no 14202fi 14203rm -f core conftest.err conftest.$ac_objext \ 14204 conftest$ac_exeext conftest.$ac_ext 14205LIBS=$ac_check_lib_save_LIBS 14206fi 14207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 14208$as_echo "$ac_cv_lib_readline_readline" >&6; } 14209if test "x$ac_cv_lib_readline_readline" = xyes; then : 14210 LIBREADLINE="-ltermcap" 14211else 14212 LIBREADLINE="" 14213fi 14214 14215fi 14216 14217fi 14218 14219fi 14220 14221fi 14222 14223fi 14224 14225 14226 if test -n "$LIBREADLINE"; then 14227 if test "$LIBREADLINE" != "-lreadline"; then 14228 echo "-lreadline needs $LIBREADLINE" 14229 LIBREADLINE="-lreadline $LIBREADLINE" 14230 fi 14231 fi 14232fi 14233 14234 14235# Check for the availability of libedit. Different distributions put its 14236# headers in different places. Try to cover the most common ones. 14237 14238if test "$enable_pcre2test_libedit" = "yes"; then 14239 for ac_header in editline/readline.h 14240do : 14241 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 14242if test "x$ac_cv_header_editline_readline_h" = xyes; then : 14243 cat >>confdefs.h <<_ACEOF 14244#define HAVE_EDITLINE_READLINE_H 1 14245_ACEOF 14246 HAVE_EDITLINE_READLINE_H=1 14247else 14248 for ac_header in edit/readline/readline.h 14249do : 14250 ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default" 14251if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then : 14252 cat >>confdefs.h <<_ACEOF 14253#define HAVE_EDIT_READLINE_READLINE_H 1 14254_ACEOF 14255 HAVE_READLINE_READLINE_H=1 14256else 14257 for ac_header in readline/readline.h 14258do : 14259 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 14260if test "x$ac_cv_header_readline_readline_h" = xyes; then : 14261 cat >>confdefs.h <<_ACEOF 14262#define HAVE_READLINE_READLINE_H 1 14263_ACEOF 14264 HAVE_READLINE_READLINE_H=1 14265fi 14266 14267done 14268 14269fi 14270 14271done 14272 14273fi 14274 14275done 14276 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 14278$as_echo_n "checking for readline in -ledit... " >&6; } 14279if ${ac_cv_lib_edit_readline+:} false; then : 14280 $as_echo_n "(cached) " >&6 14281else 14282 ac_check_lib_save_LIBS=$LIBS 14283LIBS="-ledit $LIBS" 14284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14285/* end confdefs.h. */ 14286 14287/* Override any GCC internal prototype to avoid an error. 14288 Use char because int might match the return type of a GCC 14289 builtin and then its argument prototype would still apply. */ 14290#ifdef __cplusplus 14291extern "C" 14292#endif 14293char readline (); 14294int 14295main () 14296{ 14297return readline (); 14298 ; 14299 return 0; 14300} 14301_ACEOF 14302if ac_fn_c_try_link "$LINENO"; then : 14303 ac_cv_lib_edit_readline=yes 14304else 14305 ac_cv_lib_edit_readline=no 14306fi 14307rm -f core conftest.err conftest.$ac_objext \ 14308 conftest$ac_exeext conftest.$ac_ext 14309LIBS=$ac_check_lib_save_LIBS 14310fi 14311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 14312$as_echo "$ac_cv_lib_edit_readline" >&6; } 14313if test "x$ac_cv_lib_edit_readline" = xyes; then : 14314 LIBEDIT="-ledit" 14315fi 14316 14317fi 14318 14319PCRE2_STATIC_CFLAG="" 14320if test "x$enable_shared" = "xno" ; then 14321 14322$as_echo "#define PCRE2_STATIC 1" >>confdefs.h 14323 14324 PCRE2_STATIC_CFLAG="-DPCRE2_STATIC" 14325fi 14326 14327 14328# Here is where PCRE2-specific defines are handled 14329 14330if test "$enable_pcre2_8" = "yes"; then 14331 14332$as_echo "#define SUPPORT_PCRE2_8 /**/" >>confdefs.h 14333 14334fi 14335 14336if test "$enable_pcre2_16" = "yes"; then 14337 14338$as_echo "#define SUPPORT_PCRE2_16 /**/" >>confdefs.h 14339 14340fi 14341 14342if test "$enable_pcre2_32" = "yes"; then 14343 14344$as_echo "#define SUPPORT_PCRE2_32 /**/" >>confdefs.h 14345 14346fi 14347 14348if test "$enable_debug" = "yes"; then 14349 14350$as_echo "#define PCRE2_DEBUG /**/" >>confdefs.h 14351 14352fi 14353 14354if test "$enable_percent_zt" = "no"; then 14355 14356$as_echo "#define DISABLE_PERCENT_ZT /**/" >>confdefs.h 14357 14358else 14359 enable_percent_zt=auto 14360fi 14361 14362# Unless running under Windows, JIT support requires pthreads. 14363 14364if test "$enable_jit" = "yes"; then 14365 if test "$HAVE_WINDOWS_H" != "1"; then 14366 14367 14368ac_ext=c 14369ac_cpp='$CPP $CPPFLAGS' 14370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14372ac_compiler_gnu=$ac_cv_c_compiler_gnu 14373 14374ax_pthread_ok=no 14375 14376# We used to check for pthread.h first, but this fails if pthread.h 14377# requires special compiler flags (e.g. on True64 or Sequent). 14378# It gets checked for in the link test anyway. 14379 14380# First of all, check if the user has set any of the PTHREAD_LIBS, 14381# etcetera environment variables, and if threads linking works using 14382# them: 14383if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 14384 save_CFLAGS="$CFLAGS" 14385 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14386 save_LIBS="$LIBS" 14387 LIBS="$PTHREAD_LIBS $LIBS" 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 14389$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 14390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14391/* end confdefs.h. */ 14392 14393/* Override any GCC internal prototype to avoid an error. 14394 Use char because int might match the return type of a GCC 14395 builtin and then its argument prototype would still apply. */ 14396#ifdef __cplusplus 14397extern "C" 14398#endif 14399char pthread_join (); 14400int 14401main () 14402{ 14403return pthread_join (); 14404 ; 14405 return 0; 14406} 14407_ACEOF 14408if ac_fn_c_try_link "$LINENO"; then : 14409 ax_pthread_ok=yes 14410fi 14411rm -f core conftest.err conftest.$ac_objext \ 14412 conftest$ac_exeext conftest.$ac_ext 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 14414$as_echo "$ax_pthread_ok" >&6; } 14415 if test x"$ax_pthread_ok" = xno; then 14416 PTHREAD_LIBS="" 14417 PTHREAD_CFLAGS="" 14418 fi 14419 LIBS="$save_LIBS" 14420 CFLAGS="$save_CFLAGS" 14421fi 14422 14423# We must check for the threads library under a number of different 14424# names; the ordering is very important because some systems 14425# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 14426# libraries is broken (non-POSIX). 14427 14428# Create a list of thread flags to try. Items starting with a "-" are 14429# C compiler flags, and other items are library names, except for "none" 14430# which indicates that we try without any flags at all, and "pthread-config" 14431# which is a program returning the flags for the Pth emulation library. 14432 14433ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 14434 14435# The ordering *is* (sometimes) important. Some notes on the 14436# individual items follow: 14437 14438# pthreads: AIX (must check this before -lpthread) 14439# none: in case threads are in libc; should be tried before -Kthread and 14440# other compiler flags to prevent continual compiler warnings 14441# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 14442# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 14443# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 14444# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 14445# -pthreads: Solaris/gcc 14446# -mthreads: Mingw32/gcc, Lynx/gcc 14447# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 14448# doesn't hurt to check since this sometimes defines pthreads too; 14449# also defines -D_REENTRANT) 14450# ... -mt is also the pthreads flag for HP/aCC 14451# pthread: Linux, etcetera 14452# --thread-safe: KAI C++ 14453# pthread-config: use pthread-config program (for GNU Pth library) 14454 14455case ${host_os} in 14456 solaris*) 14457 14458 # On Solaris (at least, for some versions), libc contains stubbed 14459 # (non-functional) versions of the pthreads routines, so link-based 14460 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 14461 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 14462 # a function called by this macro, so we could check for that, but 14463 # who knows whether they'll stub that too in a future libc.) So, 14464 # we'll just look for -pthreads and -lpthread first: 14465 14466 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 14467 ;; 14468 14469 darwin*) 14470 ax_pthread_flags="-pthread $ax_pthread_flags" 14471 ;; 14472esac 14473 14474if test x"$ax_pthread_ok" = xno; then 14475for flag in $ax_pthread_flags; do 14476 14477 case $flag in 14478 none) 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 14480$as_echo_n "checking whether pthreads work without any flags... " >&6; } 14481 ;; 14482 14483 -*) 14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 14485$as_echo_n "checking whether pthreads work with $flag... " >&6; } 14486 PTHREAD_CFLAGS="$flag" 14487 ;; 14488 14489 pthread-config) 14490 # Extract the first word of "pthread-config", so it can be a program name with args. 14491set dummy pthread-config; ac_word=$2 14492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14493$as_echo_n "checking for $ac_word... " >&6; } 14494if ${ac_cv_prog_ax_pthread_config+:} false; then : 14495 $as_echo_n "(cached) " >&6 14496else 14497 if test -n "$ax_pthread_config"; then 14498 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 14499else 14500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14501for as_dir in $PATH 14502do 14503 IFS=$as_save_IFS 14504 test -z "$as_dir" && as_dir=. 14505 for ac_exec_ext in '' $ac_executable_extensions; do 14506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14507 ac_cv_prog_ax_pthread_config="yes" 14508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14509 break 2 14510 fi 14511done 14512 done 14513IFS=$as_save_IFS 14514 14515 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 14516fi 14517fi 14518ax_pthread_config=$ac_cv_prog_ax_pthread_config 14519if test -n "$ax_pthread_config"; then 14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 14521$as_echo "$ax_pthread_config" >&6; } 14522else 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14524$as_echo "no" >&6; } 14525fi 14526 14527 14528 if test x"$ax_pthread_config" = xno; then continue; fi 14529 PTHREAD_CFLAGS="`pthread-config --cflags`" 14530 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 14531 ;; 14532 14533 *) 14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 14535$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 14536 PTHREAD_LIBS="-l$flag" 14537 ;; 14538 esac 14539 14540 save_LIBS="$LIBS" 14541 save_CFLAGS="$CFLAGS" 14542 LIBS="$PTHREAD_LIBS $LIBS" 14543 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14544 14545 # Check for various functions. We must include pthread.h, 14546 # since some functions may be macros. (On the Sequent, we 14547 # need a special flag -Kthread to make this header compile.) 14548 # We check for pthread_join because it is in -lpthread on IRIX 14549 # while pthread_create is in libc. We check for pthread_attr_init 14550 # due to DEC craziness with -lpthreads. We check for 14551 # pthread_cleanup_push because it is one of the few pthread 14552 # functions on Solaris that doesn't have a non-functional libc stub. 14553 # We try pthread_create on general principles. 14554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14555/* end confdefs.h. */ 14556#include <pthread.h> 14557 static void routine(void *a) { a = 0; } 14558 static void *start_routine(void *a) { return a; } 14559int 14560main () 14561{ 14562pthread_t th; pthread_attr_t attr; 14563 pthread_create(&th, 0, start_routine, 0); 14564 pthread_join(th, 0); 14565 pthread_attr_init(&attr); 14566 pthread_cleanup_push(routine, 0); 14567 pthread_cleanup_pop(0) /* ; */ 14568 ; 14569 return 0; 14570} 14571_ACEOF 14572if ac_fn_c_try_link "$LINENO"; then : 14573 ax_pthread_ok=yes 14574fi 14575rm -f core conftest.err conftest.$ac_objext \ 14576 conftest$ac_exeext conftest.$ac_ext 14577 14578 LIBS="$save_LIBS" 14579 CFLAGS="$save_CFLAGS" 14580 14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 14582$as_echo "$ax_pthread_ok" >&6; } 14583 if test "x$ax_pthread_ok" = xyes; then 14584 break; 14585 fi 14586 14587 PTHREAD_LIBS="" 14588 PTHREAD_CFLAGS="" 14589done 14590fi 14591 14592# Various other checks: 14593if test "x$ax_pthread_ok" = xyes; then 14594 save_LIBS="$LIBS" 14595 LIBS="$PTHREAD_LIBS $LIBS" 14596 save_CFLAGS="$CFLAGS" 14597 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14598 14599 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 14601$as_echo_n "checking for joinable pthread attribute... " >&6; } 14602 attr_name=unknown 14603 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14605/* end confdefs.h. */ 14606#include <pthread.h> 14607int 14608main () 14609{ 14610int attr = $attr; return attr /* ; */ 14611 ; 14612 return 0; 14613} 14614_ACEOF 14615if ac_fn_c_try_link "$LINENO"; then : 14616 attr_name=$attr; break 14617fi 14618rm -f core conftest.err conftest.$ac_objext \ 14619 conftest$ac_exeext conftest.$ac_ext 14620 done 14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 14622$as_echo "$attr_name" >&6; } 14623 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 14624 14625cat >>confdefs.h <<_ACEOF 14626#define PTHREAD_CREATE_JOINABLE $attr_name 14627_ACEOF 14628 14629 fi 14630 14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 14632$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 14633 flag=no 14634 case ${host_os} in 14635 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 14636 osf* | hpux*) flag="-D_REENTRANT";; 14637 solaris*) 14638 if test "$GCC" = "yes"; then 14639 flag="-D_REENTRANT" 14640 else 14641 flag="-mt -D_REENTRANT" 14642 fi 14643 ;; 14644 esac 14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 14646$as_echo "${flag}" >&6; } 14647 if test "x$flag" != xno; then 14648 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 14649 fi 14650 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 14652$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 14653if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 14654 $as_echo_n "(cached) " >&6 14655else 14656 14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14658/* end confdefs.h. */ 14659 14660 #include <pthread.h> 14661int 14662main () 14663{ 14664int i = PTHREAD_PRIO_INHERIT; 14665 ; 14666 return 0; 14667} 14668_ACEOF 14669if ac_fn_c_try_link "$LINENO"; then : 14670 ax_cv_PTHREAD_PRIO_INHERIT=yes 14671else 14672 ax_cv_PTHREAD_PRIO_INHERIT=no 14673fi 14674rm -f core conftest.err conftest.$ac_objext \ 14675 conftest$ac_exeext conftest.$ac_ext 14676 14677fi 14678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 14679$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 14680 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 14681 14682$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 14683 14684fi 14685 14686 LIBS="$save_LIBS" 14687 CFLAGS="$save_CFLAGS" 14688 14689 # More AIX lossage: must compile with xlc_r or cc_r 14690 if test x"$GCC" != xyes; then 14691 for ac_prog in xlc_r cc_r 14692do 14693 # Extract the first word of "$ac_prog", so it can be a program name with args. 14694set dummy $ac_prog; ac_word=$2 14695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14696$as_echo_n "checking for $ac_word... " >&6; } 14697if ${ac_cv_prog_PTHREAD_CC+:} false; then : 14698 $as_echo_n "(cached) " >&6 14699else 14700 if test -n "$PTHREAD_CC"; then 14701 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 14702else 14703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14704for as_dir in $PATH 14705do 14706 IFS=$as_save_IFS 14707 test -z "$as_dir" && as_dir=. 14708 for ac_exec_ext in '' $ac_executable_extensions; do 14709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14710 ac_cv_prog_PTHREAD_CC="$ac_prog" 14711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14712 break 2 14713 fi 14714done 14715 done 14716IFS=$as_save_IFS 14717 14718fi 14719fi 14720PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 14721if test -n "$PTHREAD_CC"; then 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 14723$as_echo "$PTHREAD_CC" >&6; } 14724else 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14726$as_echo "no" >&6; } 14727fi 14728 14729 14730 test -n "$PTHREAD_CC" && break 14731done 14732test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 14733 14734 else 14735 PTHREAD_CC=$CC 14736 fi 14737else 14738 PTHREAD_CC="$CC" 14739fi 14740 14741 14742 14743 14744 14745# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 14746if test x"$ax_pthread_ok" = xyes; then 14747 14748$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 14749 14750 : 14751else 14752 ax_pthread_ok=no 14753 as_fn_error $? "JIT support requires pthreads" "$LINENO" 5 14754fi 14755ac_ext=c 14756ac_cpp='$CPP $CPPFLAGS' 14757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14759ac_compiler_gnu=$ac_cv_c_compiler_gnu 14760 14761 14762 CC="$PTHREAD_CC" 14763 CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 14764 LIBS="$PTHREAD_LIBS $LIBS" 14765 fi 14766 14767$as_echo "#define SUPPORT_JIT /**/" >>confdefs.h 14768 14769else 14770 enable_pcre2grep_jit="no" 14771fi 14772 14773if test "$enable_jit_sealloc" = "yes"; then 14774 14775$as_echo "#define SLJIT_PROT_EXECUTABLE_ALLOCATOR 1" >>confdefs.h 14776 14777fi 14778 14779if test "$enable_pcre2grep_jit" = "yes"; then 14780 14781$as_echo "#define SUPPORT_PCRE2GREP_JIT /**/" >>confdefs.h 14782 14783fi 14784 14785if test "$enable_pcre2grep_callout" = "yes"; then 14786 if test "$enable_pcre2grep_callout_fork" = "yes"; then 14787 if test "$HAVE_WINDOWS_H" != "1"; then 14788 if test "$HAVE_SYS_WAIT_H" != "1"; then 14789 as_fn_error $? "Callout script support needs sys/wait.h." "$LINENO" 5 14790 fi 14791 fi 14792 14793$as_echo "#define SUPPORT_PCRE2GREP_CALLOUT_FORK /**/" >>confdefs.h 14794 14795 fi 14796 14797$as_echo "#define SUPPORT_PCRE2GREP_CALLOUT /**/" >>confdefs.h 14798 14799else 14800 enable_pcre2grep_callout_fork="no" 14801fi 14802 14803if test "$enable_unicode" = "yes"; then 14804 14805$as_echo "#define SUPPORT_UNICODE /**/" >>confdefs.h 14806 14807fi 14808 14809if test "$enable_pcre2grep_libz" = "yes"; then 14810 14811$as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h 14812 14813fi 14814 14815if test "$enable_pcre2grep_libbz2" = "yes"; then 14816 14817$as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h 14818 14819fi 14820 14821if test $with_pcre2grep_bufsize -lt 8192 ; then 14822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&5 14823$as_echo "$as_me: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&2;} 14824 with_pcre2grep_bufsize="8192" 14825else 14826 if test $? -gt 1 ; then 14827 as_fn_error $? "Bad value for --with-pcre2grep-bufsize" "$LINENO" 5 14828 fi 14829fi 14830 14831if test $with_pcre2grep_max_bufsize -lt $with_pcre2grep_bufsize ; then 14832 with_pcre2grep_max_bufsize="$with_pcre2grep_bufsize" 14833else 14834 if test $? -gt 1 ; then 14835 as_fn_error $? "Bad value for --with-pcre2grep-max-bufsize" "$LINENO" 5 14836 fi 14837fi 14838 14839 14840cat >>confdefs.h <<_ACEOF 14841#define PCRE2GREP_BUFSIZE $with_pcre2grep_bufsize 14842_ACEOF 14843 14844 14845 14846cat >>confdefs.h <<_ACEOF 14847#define PCRE2GREP_MAX_BUFSIZE $with_pcre2grep_max_bufsize 14848_ACEOF 14849 14850 14851if test "$enable_pcre2test_libedit" = "yes"; then 14852 14853$as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h 14854 14855 LIBREADLINE="$LIBEDIT" 14856elif test "$enable_pcre2test_libreadline" = "yes"; then 14857 14858$as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h 14859 14860fi 14861 14862 14863cat >>confdefs.h <<_ACEOF 14864#define NEWLINE_DEFAULT $ac_pcre2_newline_value 14865_ACEOF 14866 14867 14868if test "$enable_bsr_anycrlf" = "yes"; then 14869 14870$as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h 14871 14872fi 14873 14874if test "$enable_never_backslash_C" = "yes"; then 14875 14876$as_echo "#define NEVER_BACKSLASH_C /**/" >>confdefs.h 14877 14878fi 14879 14880 14881cat >>confdefs.h <<_ACEOF 14882#define LINK_SIZE $with_link_size 14883_ACEOF 14884 14885 14886 14887cat >>confdefs.h <<_ACEOF 14888#define PARENS_NEST_LIMIT $with_parens_nest_limit 14889_ACEOF 14890 14891 14892 14893cat >>confdefs.h <<_ACEOF 14894#define MATCH_LIMIT $with_match_limit 14895_ACEOF 14896 14897 14898# --with-match-limit-recursion is an obsolete synonym for --with-match-limit-depth 14899 14900if test "$with_match_limit_recursion" != "UNSET"; then 14901cat <<EOF 14902 14903WARNING: --with-match-limit-recursion is an obsolete option. Please use 14904 --with-match-limit-depth in future. If both are set, --with-match-limit-depth 14905 will be used. See also --with-heap-limit. 14906 14907EOF 14908if test "$with_match_limit_depth" = "MATCH_LIMIT"; then 14909 with_match_limit_depth=$with_match_limit_recursion 14910fi 14911fi 14912 14913 14914cat >>confdefs.h <<_ACEOF 14915#define MATCH_LIMIT_DEPTH $with_match_limit_depth 14916_ACEOF 14917 14918 14919 14920cat >>confdefs.h <<_ACEOF 14921#define HEAP_LIMIT $with_heap_limit 14922_ACEOF 14923 14924 14925 14926$as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h 14927 14928 14929 14930$as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h 14931 14932 14933 14934 14935if test "$enable_ebcdic" = "yes"; then 14936 14937cat >>confdefs.h <<_ACEOF 14938#define EBCDIC /**/ 14939_ACEOF 14940 14941fi 14942 14943if test "$enable_ebcdic_nl25" = "yes"; then 14944 14945cat >>confdefs.h <<_ACEOF 14946#define EBCDIC_NL25 /**/ 14947_ACEOF 14948 14949fi 14950 14951if test "$enable_valgrind" = "yes"; then 14952 14953cat >>confdefs.h <<_ACEOF 14954#define SUPPORT_VALGRIND /**/ 14955_ACEOF 14956 14957fi 14958 14959# Platform specific issues 14960NO_UNDEFINED= 14961EXPORT_ALL_SYMBOLS= 14962case $host_os in 14963 cygwin* | mingw* ) 14964 if test X"$enable_shared" = Xyes; then 14965 NO_UNDEFINED="-no-undefined" 14966 EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols" 14967 fi 14968 ;; 14969esac 14970 14971# The extra LDFLAGS for each particular library. The libpcre2*_version values 14972# are m4 variables, assigned above. 14973 14974EXTRA_LIBPCRE2_8_LDFLAGS="$EXTRA_LIBPCRE2_8_LDFLAGS \ 14975 $NO_UNDEFINED -version-info 8:0:8" 14976 14977EXTRA_LIBPCRE2_16_LDFLAGS="$EXTRA_LIBPCRE2_16_LDFLAGS \ 14978 $NO_UNDEFINED -version-info 8:0:8" 14979 14980EXTRA_LIBPCRE2_32_LDFLAGS="$EXTRA_LIBPCRE2_32_LDFLAGS \ 14981 $NO_UNDEFINED -version-info 8:0:8" 14982 14983EXTRA_LIBPCRE2_POSIX_LDFLAGS="$EXTRA_LIBPCRE2_POSIX_LDFLAGS \ 14984 $NO_UNDEFINED -version-info 2:2:0" 14985 14986 14987 14988 14989 14990 14991# When we run 'make distcheck', use these arguments. Turning off compiler 14992# optimization makes it run faster. 14993DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre2-16 --enable-pcre2-32 --enable-jit" 14994 14995 14996# Check that, if --enable-pcre2grep-libz or --enable-pcre2grep-libbz2 is 14997# specified, the relevant library is available. 14998 14999if test "$enable_pcre2grep_libz" = "yes"; then 15000 if test "$HAVE_ZLIB_H" != "1"; then 15001 echo "** Cannot --enable-pcre2grep-libz because zlib.h was not found" 15002 exit 1 15003 fi 15004 if test "$HAVE_LIBZ" != "1"; then 15005 echo "** Cannot --enable-pcre2grep-libz because libz was not found" 15006 exit 1 15007 fi 15008 LIBZ="-lz" 15009fi 15010 15011 15012if test "$enable_pcre2grep_libbz2" = "yes"; then 15013 if test "$HAVE_BZLIB_H" != "1"; then 15014 echo "** Cannot --enable-pcre2grep-libbz2 because bzlib.h was not found" 15015 exit 1 15016 fi 15017 if test "$HAVE_LIBBZ2" != "1"; then 15018 echo "** Cannot --enable-pcre2grep-libbz2 because libbz2 was not found" 15019 exit 1 15020 fi 15021 LIBBZ2="-lbz2" 15022fi 15023 15024 15025# Similarly for --enable-pcre2test-readline 15026 15027if test "$enable_pcre2test_libedit" = "yes"; then 15028 if test "$enable_pcre2test_libreadline" = "yes"; then 15029 echo "** Cannot use both --enable-pcre2test-libedit and --enable-pcre2test-readline" 15030 exit 1 15031 fi 15032 if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \ 15033 "$HAVE_READLINE_READLINE_H" != "1"; then 15034 echo "** Cannot --enable-pcre2test-libedit because neither editline/readline.h" 15035 echo "** nor readline/readline.h was found." 15036 exit 1 15037 fi 15038 if test -z "$LIBEDIT"; then 15039 echo "** Cannot --enable-pcre2test-libedit because libedit library was not found." 15040 exit 1 15041 fi 15042fi 15043 15044if test "$enable_pcre2test_libreadline" = "yes"; then 15045 if test "$HAVE_READLINE_H" != "1"; then 15046 echo "** Cannot --enable-pcre2test-readline because readline/readline.h was not found." 15047 exit 1 15048 fi 15049 if test "$HAVE_HISTORY_H" != "1"; then 15050 echo "** Cannot --enable-pcre2test-readline because readline/history.h was not found." 15051 exit 1 15052 fi 15053 if test -z "$LIBREADLINE"; then 15054 echo "** Cannot --enable-pcre2test-readline because readline library was not found." 15055 exit 1 15056 fi 15057fi 15058 15059# Handle valgrind support 15060 15061if test "$enable_valgrind" = "yes"; then 15062 15063 15064 15065 15066 15067 15068 15069if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15070 if test -n "$ac_tool_prefix"; then 15071 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15072set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15074$as_echo_n "checking for $ac_word... " >&6; } 15075if ${ac_cv_path_PKG_CONFIG+:} false; then : 15076 $as_echo_n "(cached) " >&6 15077else 15078 case $PKG_CONFIG in 15079 [\\/]* | ?:[\\/]*) 15080 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15081 ;; 15082 *) 15083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15084for as_dir in $PATH 15085do 15086 IFS=$as_save_IFS 15087 test -z "$as_dir" && as_dir=. 15088 for ac_exec_ext in '' $ac_executable_extensions; do 15089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15090 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15092 break 2 15093 fi 15094done 15095 done 15096IFS=$as_save_IFS 15097 15098 ;; 15099esac 15100fi 15101PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15102if test -n "$PKG_CONFIG"; then 15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15104$as_echo "$PKG_CONFIG" >&6; } 15105else 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15107$as_echo "no" >&6; } 15108fi 15109 15110 15111fi 15112if test -z "$ac_cv_path_PKG_CONFIG"; then 15113 ac_pt_PKG_CONFIG=$PKG_CONFIG 15114 # Extract the first word of "pkg-config", so it can be a program name with args. 15115set dummy pkg-config; ac_word=$2 15116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15117$as_echo_n "checking for $ac_word... " >&6; } 15118if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15119 $as_echo_n "(cached) " >&6 15120else 15121 case $ac_pt_PKG_CONFIG in 15122 [\\/]* | ?:[\\/]*) 15123 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15124 ;; 15125 *) 15126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15127for as_dir in $PATH 15128do 15129 IFS=$as_save_IFS 15130 test -z "$as_dir" && as_dir=. 15131 for ac_exec_ext in '' $ac_executable_extensions; do 15132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15133 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15135 break 2 15136 fi 15137done 15138 done 15139IFS=$as_save_IFS 15140 15141 ;; 15142esac 15143fi 15144ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15145if test -n "$ac_pt_PKG_CONFIG"; then 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15147$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15148else 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15150$as_echo "no" >&6; } 15151fi 15152 15153 if test "x$ac_pt_PKG_CONFIG" = x; then 15154 PKG_CONFIG="" 15155 else 15156 case $cross_compiling:$ac_tool_warned in 15157yes:) 15158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15160ac_tool_warned=yes ;; 15161esac 15162 PKG_CONFIG=$ac_pt_PKG_CONFIG 15163 fi 15164else 15165 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15166fi 15167 15168fi 15169if test -n "$PKG_CONFIG"; then 15170 _pkg_min_version=0.9.0 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15172$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15173 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15175$as_echo "yes" >&6; } 15176 else 15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15178$as_echo "no" >&6; } 15179 PKG_CONFIG="" 15180 fi 15181fi 15182 15183pkg_failed=no 15184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5 15185$as_echo_n "checking for VALGRIND... " >&6; } 15186 15187if test -n "$VALGRIND_CFLAGS"; then 15188 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" 15189 elif test -n "$PKG_CONFIG"; then 15190 if test -n "$PKG_CONFIG" && \ 15191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 15192 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 15193 ac_status=$? 15194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15195 test $ac_status = 0; }; then 15196 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null` 15197 test "x$?" != "x0" && pkg_failed=yes 15198else 15199 pkg_failed=yes 15200fi 15201 else 15202 pkg_failed=untried 15203fi 15204if test -n "$VALGRIND_LIBS"; then 15205 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" 15206 elif test -n "$PKG_CONFIG"; then 15207 if test -n "$PKG_CONFIG" && \ 15208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 15209 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 15210 ac_status=$? 15211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15212 test $ac_status = 0; }; then 15213 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null` 15214 test "x$?" != "x0" && pkg_failed=yes 15215else 15216 pkg_failed=yes 15217fi 15218 else 15219 pkg_failed=untried 15220fi 15221 15222 15223 15224if test $pkg_failed = yes; then 15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15226$as_echo "no" >&6; } 15227 15228if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15229 _pkg_short_errors_supported=yes 15230else 15231 _pkg_short_errors_supported=no 15232fi 15233 if test $_pkg_short_errors_supported = yes; then 15234 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1` 15235 else 15236 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1` 15237 fi 15238 # Put the nasty error message in config.log where it belongs 15239 echo "$VALGRIND_PKG_ERRORS" >&5 15240 15241 as_fn_error $? "Package requirements (valgrind) were not met: 15242 15243$VALGRIND_PKG_ERRORS 15244 15245Consider adjusting the PKG_CONFIG_PATH environment variable if you 15246installed software in a non-standard prefix. 15247 15248Alternatively, you may set the environment variables VALGRIND_CFLAGS 15249and VALGRIND_LIBS to avoid the need to call pkg-config. 15250See the pkg-config man page for more details." "$LINENO" 5 15251elif test $pkg_failed = untried; then 15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15253$as_echo "no" >&6; } 15254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15256as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15257is in your PATH or set the PKG_CONFIG environment variable to the full 15258path to pkg-config. 15259 15260Alternatively, you may set the environment variables VALGRIND_CFLAGS 15261and VALGRIND_LIBS to avoid the need to call pkg-config. 15262See the pkg-config man page for more details. 15263 15264To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15265See \`config.log' for more details" "$LINENO" 5; } 15266else 15267 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS 15268 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS 15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15270$as_echo "yes" >&6; } 15271 15272fi 15273fi 15274 15275# Handle code coverage reporting support 15276if test "$enable_coverage" = "yes"; then 15277 if test "x$GCC" != "xyes"; then 15278 as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5 15279 fi 15280 15281 # ccache is incompatible with gcov 15282 # Extract the first word of "shtool", so it can be a program name with args. 15283set dummy shtool; ac_word=$2 15284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15285$as_echo_n "checking for $ac_word... " >&6; } 15286if ${ac_cv_path_SHTOOL+:} false; then : 15287 $as_echo_n "(cached) " >&6 15288else 15289 case $SHTOOL in 15290 [\\/]* | ?:[\\/]*) 15291 ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path. 15292 ;; 15293 *) 15294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15295for as_dir in $PATH 15296do 15297 IFS=$as_save_IFS 15298 test -z "$as_dir" && as_dir=. 15299 for ac_exec_ext in '' $ac_executable_extensions; do 15300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15301 ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext" 15302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15303 break 2 15304 fi 15305done 15306 done 15307IFS=$as_save_IFS 15308 15309 test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false" 15310 ;; 15311esac 15312fi 15313SHTOOL=$ac_cv_path_SHTOOL 15314if test -n "$SHTOOL"; then 15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5 15316$as_echo "$SHTOOL" >&6; } 15317else 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15319$as_echo "no" >&6; } 15320fi 15321 15322 15323 case `$SHTOOL path $CC` in 15324 *ccache*) cc_ccache=yes;; 15325 *) cc_ccache=no;; 15326 esac 15327 15328 if test "$cc_ccache" = "yes"; then 15329 if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then 15330 as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5 15331 fi 15332 fi 15333 15334 15335 # Extract the first word of "lcov", so it can be a program name with args. 15336set dummy lcov; ac_word=$2 15337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15338$as_echo_n "checking for $ac_word... " >&6; } 15339if ${ac_cv_path_LCOV+:} false; then : 15340 $as_echo_n "(cached) " >&6 15341else 15342 case $LCOV in 15343 [\\/]* | ?:[\\/]*) 15344 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. 15345 ;; 15346 *) 15347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15348for as_dir in $PATH 15349do 15350 IFS=$as_save_IFS 15351 test -z "$as_dir" && as_dir=. 15352 for ac_exec_ext in '' $ac_executable_extensions; do 15353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15354 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" 15355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15356 break 2 15357 fi 15358done 15359 done 15360IFS=$as_save_IFS 15361 15362 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false" 15363 ;; 15364esac 15365fi 15366LCOV=$ac_cv_path_LCOV 15367if test -n "$LCOV"; then 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 15369$as_echo "$LCOV" >&6; } 15370else 15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15372$as_echo "no" >&6; } 15373fi 15374 15375 15376 if test "x$LCOV" = "xfalse"; then 15377 as_fn_error $? "lcov not found" "$LINENO" 5 15378 fi 15379 15380 15381 # Extract the first word of "genhtml", so it can be a program name with args. 15382set dummy genhtml; ac_word=$2 15383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15384$as_echo_n "checking for $ac_word... " >&6; } 15385if ${ac_cv_path_GENHTML+:} false; then : 15386 $as_echo_n "(cached) " >&6 15387else 15388 case $GENHTML in 15389 [\\/]* | ?:[\\/]*) 15390 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. 15391 ;; 15392 *) 15393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15394for as_dir in $PATH 15395do 15396 IFS=$as_save_IFS 15397 test -z "$as_dir" && as_dir=. 15398 for ac_exec_ext in '' $ac_executable_extensions; do 15399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15400 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" 15401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15402 break 2 15403 fi 15404done 15405 done 15406IFS=$as_save_IFS 15407 15408 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false" 15409 ;; 15410esac 15411fi 15412GENHTML=$ac_cv_path_GENHTML 15413if test -n "$GENHTML"; then 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 15415$as_echo "$GENHTML" >&6; } 15416else 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15418$as_echo "no" >&6; } 15419fi 15420 15421 15422 if test "x$GENHTML" = "xfalse"; then 15423 as_fn_error $? "genhtml not found" "$LINENO" 5 15424 fi 15425 15426 # Set flags needed for gcov 15427 GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage" 15428 GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage" 15429 GCOV_LIBS="-lgcov" 15430 15431 15432 15433fi # enable_coverage 15434 15435 if test "x$enable_coverage" = "xyes"; then 15436 WITH_GCOV_TRUE= 15437 WITH_GCOV_FALSE='#' 15438else 15439 WITH_GCOV_TRUE='#' 15440 WITH_GCOV_FALSE= 15441fi 15442 15443 15444# Produce these files, in addition to config.h. 15445ac_config_files="$ac_config_files Makefile libpcre2-8.pc libpcre2-16.pc libpcre2-32.pc libpcre2-posix.pc pcre2-config src/pcre2.h" 15446 15447 15448# Make the generated script files executable. 15449ac_config_commands="$ac_config_commands script-chmod" 15450 15451 15452# Make sure that pcre2_chartables.c is removed in case the method for 15453# creating it was changed by reconfiguration. 15454ac_config_commands="$ac_config_commands delete-old-chartables" 15455 15456 15457cat >confcache <<\_ACEOF 15458# This file is a shell script that caches the results of configure 15459# tests run on this system so they can be shared between configure 15460# scripts and configure runs, see configure's option --config-cache. 15461# It is not useful on other systems. If it contains results you don't 15462# want to keep, you may remove or edit it. 15463# 15464# config.status only pays attention to the cache file if you give it 15465# the --recheck option to rerun configure. 15466# 15467# `ac_cv_env_foo' variables (set or unset) will be overridden when 15468# loading this file, other *unset* `ac_cv_foo' will be assigned the 15469# following values. 15470 15471_ACEOF 15472 15473# The following way of writing the cache mishandles newlines in values, 15474# but we know of no workaround that is simple, portable, and efficient. 15475# So, we kill variables containing newlines. 15476# Ultrix sh set writes to stderr and can't be redirected directly, 15477# and sets the high bit in the cache file unless we assign to the vars. 15478( 15479 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15480 eval ac_val=\$$ac_var 15481 case $ac_val in #( 15482 *${as_nl}*) 15483 case $ac_var in #( 15484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15485$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15486 esac 15487 case $ac_var in #( 15488 _ | IFS | as_nl) ;; #( 15489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15490 *) { eval $ac_var=; unset $ac_var;} ;; 15491 esac ;; 15492 esac 15493 done 15494 15495 (set) 2>&1 | 15496 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15497 *${as_nl}ac_space=\ *) 15498 # `set' does not quote correctly, so add quotes: double-quote 15499 # substitution turns \\\\ into \\, and sed turns \\ into \. 15500 sed -n \ 15501 "s/'/'\\\\''/g; 15502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15503 ;; #( 15504 *) 15505 # `set' quotes correctly as required by POSIX, so do not add quotes. 15506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15507 ;; 15508 esac | 15509 sort 15510) | 15511 sed ' 15512 /^ac_cv_env_/b end 15513 t clear 15514 :clear 15515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15516 t end 15517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15518 :end' >>confcache 15519if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15520 if test -w "$cache_file"; then 15521 if test "x$cache_file" != "x/dev/null"; then 15522 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15523$as_echo "$as_me: updating cache $cache_file" >&6;} 15524 if test ! -f "$cache_file" || test -h "$cache_file"; then 15525 cat confcache >"$cache_file" 15526 else 15527 case $cache_file in #( 15528 */* | ?:*) 15529 mv -f confcache "$cache_file"$$ && 15530 mv -f "$cache_file"$$ "$cache_file" ;; #( 15531 *) 15532 mv -f confcache "$cache_file" ;; 15533 esac 15534 fi 15535 fi 15536 else 15537 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15538$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15539 fi 15540fi 15541rm -f confcache 15542 15543test "x$prefix" = xNONE && prefix=$ac_default_prefix 15544# Let make expand exec_prefix. 15545test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15546 15547DEFS=-DHAVE_CONFIG_H 15548 15549ac_libobjs= 15550ac_ltlibobjs= 15551U= 15552for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15553 # 1. Remove the extension, and $U if already installed. 15554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15555 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15557 # will be set to the directory where LIBOBJS objects are built. 15558 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15559 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15560done 15561LIBOBJS=$ac_libobjs 15562 15563LTLIBOBJS=$ac_ltlibobjs 15564 15565 15566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15567$as_echo_n "checking that generated files are newer than configure... " >&6; } 15568 if test -n "$am_sleep_pid"; then 15569 # Hide warnings about reused PIDs. 15570 wait $am_sleep_pid 2>/dev/null 15571 fi 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15573$as_echo "done" >&6; } 15574 if test -n "$EXEEXT"; then 15575 am__EXEEXT_TRUE= 15576 am__EXEEXT_FALSE='#' 15577else 15578 am__EXEEXT_TRUE='#' 15579 am__EXEEXT_FALSE= 15580fi 15581 15582if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15583 as_fn_error $? "conditional \"AMDEP\" was never defined. 15584Usually this means the macro was only invoked conditionally." "$LINENO" 5 15585fi 15586if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15587 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15588Usually this means the macro was only invoked conditionally." "$LINENO" 5 15589fi 15590if test -z "${WITH_PCRE2_8_TRUE}" && test -z "${WITH_PCRE2_8_FALSE}"; then 15591 as_fn_error $? "conditional \"WITH_PCRE2_8\" was never defined. 15592Usually this means the macro was only invoked conditionally." "$LINENO" 5 15593fi 15594if test -z "${WITH_PCRE2_16_TRUE}" && test -z "${WITH_PCRE2_16_FALSE}"; then 15595 as_fn_error $? "conditional \"WITH_PCRE2_16\" was never defined. 15596Usually this means the macro was only invoked conditionally." "$LINENO" 5 15597fi 15598if test -z "${WITH_PCRE2_32_TRUE}" && test -z "${WITH_PCRE2_32_FALSE}"; then 15599 as_fn_error $? "conditional \"WITH_PCRE2_32\" was never defined. 15600Usually this means the macro was only invoked conditionally." "$LINENO" 5 15601fi 15602if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then 15603 as_fn_error $? "conditional \"WITH_DEBUG\" was never defined. 15604Usually this means the macro was only invoked conditionally." "$LINENO" 5 15605fi 15606if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then 15607 as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined. 15608Usually this means the macro was only invoked conditionally." "$LINENO" 5 15609fi 15610if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then 15611 as_fn_error $? "conditional \"WITH_JIT\" was never defined. 15612Usually this means the macro was only invoked conditionally." "$LINENO" 5 15613fi 15614if test -z "${WITH_UNICODE_TRUE}" && test -z "${WITH_UNICODE_FALSE}"; then 15615 as_fn_error $? "conditional \"WITH_UNICODE\" was never defined. 15616Usually this means the macro was only invoked conditionally." "$LINENO" 5 15617fi 15618if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then 15619 as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined. 15620Usually this means the macro was only invoked conditionally." "$LINENO" 5 15621fi 15622if test -z "${WITH_FUZZ_SUPPORT_TRUE}" && test -z "${WITH_FUZZ_SUPPORT_FALSE}"; then 15623 as_fn_error $? "conditional \"WITH_FUZZ_SUPPORT\" was never defined. 15624Usually this means the macro was only invoked conditionally." "$LINENO" 5 15625fi 15626if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then 15627 as_fn_error $? "conditional \"WITH_GCOV\" was never defined. 15628Usually this means the macro was only invoked conditionally." "$LINENO" 5 15629fi 15630 15631: "${CONFIG_STATUS=./config.status}" 15632ac_write_fail=0 15633ac_clean_files_save=$ac_clean_files 15634ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15635{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15636$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15637as_write_fail=0 15638cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15639#! $SHELL 15640# Generated by $as_me. 15641# Run this file to recreate the current configuration. 15642# Compiler output produced by configure, useful for debugging 15643# configure, is in config.log if it exists. 15644 15645debug=false 15646ac_cs_recheck=false 15647ac_cs_silent=false 15648 15649SHELL=\${CONFIG_SHELL-$SHELL} 15650export SHELL 15651_ASEOF 15652cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15653## -------------------- ## 15654## M4sh Initialization. ## 15655## -------------------- ## 15656 15657# Be more Bourne compatible 15658DUALCASE=1; export DUALCASE # for MKS sh 15659if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15660 emulate sh 15661 NULLCMD=: 15662 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15663 # is contrary to our usage. Disable this feature. 15664 alias -g '${1+"$@"}'='"$@"' 15665 setopt NO_GLOB_SUBST 15666else 15667 case `(set -o) 2>/dev/null` in #( 15668 *posix*) : 15669 set -o posix ;; #( 15670 *) : 15671 ;; 15672esac 15673fi 15674 15675 15676as_nl=' 15677' 15678export as_nl 15679# Printing a long string crashes Solaris 7 /usr/bin/printf. 15680as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15681as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15682as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15683# Prefer a ksh shell builtin over an external printf program on Solaris, 15684# but without wasting forks for bash or zsh. 15685if test -z "$BASH_VERSION$ZSH_VERSION" \ 15686 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15687 as_echo='print -r --' 15688 as_echo_n='print -rn --' 15689elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15690 as_echo='printf %s\n' 15691 as_echo_n='printf %s' 15692else 15693 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15694 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15695 as_echo_n='/usr/ucb/echo -n' 15696 else 15697 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15698 as_echo_n_body='eval 15699 arg=$1; 15700 case $arg in #( 15701 *"$as_nl"*) 15702 expr "X$arg" : "X\\(.*\\)$as_nl"; 15703 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15704 esac; 15705 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15706 ' 15707 export as_echo_n_body 15708 as_echo_n='sh -c $as_echo_n_body as_echo' 15709 fi 15710 export as_echo_body 15711 as_echo='sh -c $as_echo_body as_echo' 15712fi 15713 15714# The user is always right. 15715if test "${PATH_SEPARATOR+set}" != set; then 15716 PATH_SEPARATOR=: 15717 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15718 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15719 PATH_SEPARATOR=';' 15720 } 15721fi 15722 15723 15724# IFS 15725# We need space, tab and new line, in precisely that order. Quoting is 15726# there to prevent editors from complaining about space-tab. 15727# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15728# splitting by setting IFS to empty value.) 15729IFS=" "" $as_nl" 15730 15731# Find who we are. Look in the path if we contain no directory separator. 15732as_myself= 15733case $0 in #(( 15734 *[\\/]* ) as_myself=$0 ;; 15735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15736for as_dir in $PATH 15737do 15738 IFS=$as_save_IFS 15739 test -z "$as_dir" && as_dir=. 15740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15741 done 15742IFS=$as_save_IFS 15743 15744 ;; 15745esac 15746# We did not find ourselves, most probably we were run as `sh COMMAND' 15747# in which case we are not to be found in the path. 15748if test "x$as_myself" = x; then 15749 as_myself=$0 15750fi 15751if test ! -f "$as_myself"; then 15752 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15753 exit 1 15754fi 15755 15756# Unset variables that we do not need and which cause bugs (e.g. in 15757# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15758# suppresses any "Segmentation fault" message there. '((' could 15759# trigger a bug in pdksh 5.2.14. 15760for as_var in BASH_ENV ENV MAIL MAILPATH 15761do eval test x\${$as_var+set} = xset \ 15762 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15763done 15764PS1='$ ' 15765PS2='> ' 15766PS4='+ ' 15767 15768# NLS nuisances. 15769LC_ALL=C 15770export LC_ALL 15771LANGUAGE=C 15772export LANGUAGE 15773 15774# CDPATH. 15775(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15776 15777 15778# as_fn_error STATUS ERROR [LINENO LOG_FD] 15779# ---------------------------------------- 15780# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15781# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15782# script with STATUS, using 1 if that was 0. 15783as_fn_error () 15784{ 15785 as_status=$1; test $as_status -eq 0 && as_status=1 15786 if test "$4"; then 15787 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15788 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15789 fi 15790 $as_echo "$as_me: error: $2" >&2 15791 as_fn_exit $as_status 15792} # as_fn_error 15793 15794 15795# as_fn_set_status STATUS 15796# ----------------------- 15797# Set $? to STATUS, without forking. 15798as_fn_set_status () 15799{ 15800 return $1 15801} # as_fn_set_status 15802 15803# as_fn_exit STATUS 15804# ----------------- 15805# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15806as_fn_exit () 15807{ 15808 set +e 15809 as_fn_set_status $1 15810 exit $1 15811} # as_fn_exit 15812 15813# as_fn_unset VAR 15814# --------------- 15815# Portably unset VAR. 15816as_fn_unset () 15817{ 15818 { eval $1=; unset $1;} 15819} 15820as_unset=as_fn_unset 15821# as_fn_append VAR VALUE 15822# ---------------------- 15823# Append the text in VALUE to the end of the definition contained in VAR. Take 15824# advantage of any shell optimizations that allow amortized linear growth over 15825# repeated appends, instead of the typical quadratic growth present in naive 15826# implementations. 15827if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15828 eval 'as_fn_append () 15829 { 15830 eval $1+=\$2 15831 }' 15832else 15833 as_fn_append () 15834 { 15835 eval $1=\$$1\$2 15836 } 15837fi # as_fn_append 15838 15839# as_fn_arith ARG... 15840# ------------------ 15841# Perform arithmetic evaluation on the ARGs, and store the result in the 15842# global $as_val. Take advantage of shells that can avoid forks. The arguments 15843# must be portable across $(()) and expr. 15844if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15845 eval 'as_fn_arith () 15846 { 15847 as_val=$(( $* )) 15848 }' 15849else 15850 as_fn_arith () 15851 { 15852 as_val=`expr "$@" || test $? -eq 1` 15853 } 15854fi # as_fn_arith 15855 15856 15857if expr a : '\(a\)' >/dev/null 2>&1 && 15858 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15859 as_expr=expr 15860else 15861 as_expr=false 15862fi 15863 15864if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15865 as_basename=basename 15866else 15867 as_basename=false 15868fi 15869 15870if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15871 as_dirname=dirname 15872else 15873 as_dirname=false 15874fi 15875 15876as_me=`$as_basename -- "$0" || 15877$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15878 X"$0" : 'X\(//\)$' \| \ 15879 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15880$as_echo X/"$0" | 15881 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15882 s//\1/ 15883 q 15884 } 15885 /^X\/\(\/\/\)$/{ 15886 s//\1/ 15887 q 15888 } 15889 /^X\/\(\/\).*/{ 15890 s//\1/ 15891 q 15892 } 15893 s/.*/./; q'` 15894 15895# Avoid depending upon Character Ranges. 15896as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15897as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15898as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15899as_cr_digits='0123456789' 15900as_cr_alnum=$as_cr_Letters$as_cr_digits 15901 15902ECHO_C= ECHO_N= ECHO_T= 15903case `echo -n x` in #((((( 15904-n*) 15905 case `echo 'xy\c'` in 15906 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15907 xy) ECHO_C='\c';; 15908 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15909 ECHO_T=' ';; 15910 esac;; 15911*) 15912 ECHO_N='-n';; 15913esac 15914 15915rm -f conf$$ conf$$.exe conf$$.file 15916if test -d conf$$.dir; then 15917 rm -f conf$$.dir/conf$$.file 15918else 15919 rm -f conf$$.dir 15920 mkdir conf$$.dir 2>/dev/null 15921fi 15922if (echo >conf$$.file) 2>/dev/null; then 15923 if ln -s conf$$.file conf$$ 2>/dev/null; then 15924 as_ln_s='ln -s' 15925 # ... but there are two gotchas: 15926 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15927 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15928 # In both cases, we have to default to `cp -pR'. 15929 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15930 as_ln_s='cp -pR' 15931 elif ln conf$$.file conf$$ 2>/dev/null; then 15932 as_ln_s=ln 15933 else 15934 as_ln_s='cp -pR' 15935 fi 15936else 15937 as_ln_s='cp -pR' 15938fi 15939rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15940rmdir conf$$.dir 2>/dev/null 15941 15942 15943# as_fn_mkdir_p 15944# ------------- 15945# Create "$as_dir" as a directory, including parents if necessary. 15946as_fn_mkdir_p () 15947{ 15948 15949 case $as_dir in #( 15950 -*) as_dir=./$as_dir;; 15951 esac 15952 test -d "$as_dir" || eval $as_mkdir_p || { 15953 as_dirs= 15954 while :; do 15955 case $as_dir in #( 15956 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15957 *) as_qdir=$as_dir;; 15958 esac 15959 as_dirs="'$as_qdir' $as_dirs" 15960 as_dir=`$as_dirname -- "$as_dir" || 15961$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15962 X"$as_dir" : 'X\(//\)[^/]' \| \ 15963 X"$as_dir" : 'X\(//\)$' \| \ 15964 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15965$as_echo X"$as_dir" | 15966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15967 s//\1/ 15968 q 15969 } 15970 /^X\(\/\/\)[^/].*/{ 15971 s//\1/ 15972 q 15973 } 15974 /^X\(\/\/\)$/{ 15975 s//\1/ 15976 q 15977 } 15978 /^X\(\/\).*/{ 15979 s//\1/ 15980 q 15981 } 15982 s/.*/./; q'` 15983 test -d "$as_dir" && break 15984 done 15985 test -z "$as_dirs" || eval "mkdir $as_dirs" 15986 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15987 15988 15989} # as_fn_mkdir_p 15990if mkdir -p . 2>/dev/null; then 15991 as_mkdir_p='mkdir -p "$as_dir"' 15992else 15993 test -d ./-p && rmdir ./-p 15994 as_mkdir_p=false 15995fi 15996 15997 15998# as_fn_executable_p FILE 15999# ----------------------- 16000# Test if FILE is an executable regular file. 16001as_fn_executable_p () 16002{ 16003 test -f "$1" && test -x "$1" 16004} # as_fn_executable_p 16005as_test_x='test -x' 16006as_executable_p=as_fn_executable_p 16007 16008# Sed expression to map a string onto a valid CPP name. 16009as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16010 16011# Sed expression to map a string onto a valid variable name. 16012as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16013 16014 16015exec 6>&1 16016## ----------------------------------- ## 16017## Main body of $CONFIG_STATUS script. ## 16018## ----------------------------------- ## 16019_ASEOF 16020test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16021 16022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16023# Save the log message, to keep $0 and so on meaningful, and to 16024# report actual input values of CONFIG_FILES etc. instead of their 16025# values after options handling. 16026ac_log=" 16027This file was extended by PCRE2 $as_me 10.33, which was 16028generated by GNU Autoconf 2.69. Invocation command line was 16029 16030 CONFIG_FILES = $CONFIG_FILES 16031 CONFIG_HEADERS = $CONFIG_HEADERS 16032 CONFIG_LINKS = $CONFIG_LINKS 16033 CONFIG_COMMANDS = $CONFIG_COMMANDS 16034 $ $0 $@ 16035 16036on `(hostname || uname -n) 2>/dev/null | sed 1q` 16037" 16038 16039_ACEOF 16040 16041case $ac_config_files in *" 16042"*) set x $ac_config_files; shift; ac_config_files=$*;; 16043esac 16044 16045case $ac_config_headers in *" 16046"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16047esac 16048 16049 16050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16051# Files that config.status was made for. 16052config_files="$ac_config_files" 16053config_headers="$ac_config_headers" 16054config_commands="$ac_config_commands" 16055 16056_ACEOF 16057 16058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16059ac_cs_usage="\ 16060\`$as_me' instantiates files and other configuration actions 16061from templates according to the current configuration. Unless the files 16062and actions are specified as TAGs, all are instantiated by default. 16063 16064Usage: $0 [OPTION]... [TAG]... 16065 16066 -h, --help print this help, then exit 16067 -V, --version print version number and configuration settings, then exit 16068 --config print configuration, then exit 16069 -q, --quiet, --silent 16070 do not print progress messages 16071 -d, --debug don't remove temporary files 16072 --recheck update $as_me by reconfiguring in the same conditions 16073 --file=FILE[:TEMPLATE] 16074 instantiate the configuration file FILE 16075 --header=FILE[:TEMPLATE] 16076 instantiate the configuration header FILE 16077 16078Configuration files: 16079$config_files 16080 16081Configuration headers: 16082$config_headers 16083 16084Configuration commands: 16085$config_commands 16086 16087Report bugs to the package provider." 16088 16089_ACEOF 16090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16091ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16092ac_cs_version="\\ 16093PCRE2 config.status 10.33 16094configured by $0, generated by GNU Autoconf 2.69, 16095 with options \\"\$ac_cs_config\\" 16096 16097Copyright (C) 2012 Free Software Foundation, Inc. 16098This config.status script is free software; the Free Software Foundation 16099gives unlimited permission to copy, distribute and modify it." 16100 16101ac_pwd='$ac_pwd' 16102srcdir='$srcdir' 16103INSTALL='$INSTALL' 16104MKDIR_P='$MKDIR_P' 16105AWK='$AWK' 16106test -n "\$AWK" || AWK=awk 16107_ACEOF 16108 16109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16110# The default lists apply if the user does not specify any file. 16111ac_need_defaults=: 16112while test $# != 0 16113do 16114 case $1 in 16115 --*=?*) 16116 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16117 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16118 ac_shift=: 16119 ;; 16120 --*=) 16121 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16122 ac_optarg= 16123 ac_shift=: 16124 ;; 16125 *) 16126 ac_option=$1 16127 ac_optarg=$2 16128 ac_shift=shift 16129 ;; 16130 esac 16131 16132 case $ac_option in 16133 # Handling of the options. 16134 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16135 ac_cs_recheck=: ;; 16136 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16137 $as_echo "$ac_cs_version"; exit ;; 16138 --config | --confi | --conf | --con | --co | --c ) 16139 $as_echo "$ac_cs_config"; exit ;; 16140 --debug | --debu | --deb | --de | --d | -d ) 16141 debug=: ;; 16142 --file | --fil | --fi | --f ) 16143 $ac_shift 16144 case $ac_optarg in 16145 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16146 '') as_fn_error $? "missing file argument" ;; 16147 esac 16148 as_fn_append CONFIG_FILES " '$ac_optarg'" 16149 ac_need_defaults=false;; 16150 --header | --heade | --head | --hea ) 16151 $ac_shift 16152 case $ac_optarg in 16153 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16154 esac 16155 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16156 ac_need_defaults=false;; 16157 --he | --h) 16158 # Conflict between --help and --header 16159 as_fn_error $? "ambiguous option: \`$1' 16160Try \`$0 --help' for more information.";; 16161 --help | --hel | -h ) 16162 $as_echo "$ac_cs_usage"; exit ;; 16163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16164 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16165 ac_cs_silent=: ;; 16166 16167 # This is an error. 16168 -*) as_fn_error $? "unrecognized option: \`$1' 16169Try \`$0 --help' for more information." ;; 16170 16171 *) as_fn_append ac_config_targets " $1" 16172 ac_need_defaults=false ;; 16173 16174 esac 16175 shift 16176done 16177 16178ac_configure_extra_args= 16179 16180if $ac_cs_silent; then 16181 exec 6>/dev/null 16182 ac_configure_extra_args="$ac_configure_extra_args --silent" 16183fi 16184 16185_ACEOF 16186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16187if \$ac_cs_recheck; then 16188 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16189 shift 16190 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16191 CONFIG_SHELL='$SHELL' 16192 export CONFIG_SHELL 16193 exec "\$@" 16194fi 16195 16196_ACEOF 16197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16198exec 5>>config.log 16199{ 16200 echo 16201 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16202## Running $as_me. ## 16203_ASBOX 16204 $as_echo "$ac_log" 16205} >&5 16206 16207_ACEOF 16208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16209# 16210# INIT-COMMANDS 16211# 16212AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 16213 16214 16215# The HP-UX ksh and POSIX shell print the target directory to stdout 16216# if CDPATH is set. 16217(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16218 16219sed_quote_subst='$sed_quote_subst' 16220double_quote_subst='$double_quote_subst' 16221delay_variable_subst='$delay_variable_subst' 16222AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 16223DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16224OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16225macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16226macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16227enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16228enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16229pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16230enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16231shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 16232SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16233ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16234PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16235host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16236host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16237host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16238build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16239build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16240build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16241SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16242Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16243GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16244EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16245FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16246LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16247NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16248LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16249max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16250ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16251exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16252lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16253lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16254lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16255lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16256lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16257reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16258reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16259deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16260file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16261file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16262want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16263sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16264AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16265lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 16266AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16267archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16268STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16269RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16270old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16271old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16272old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16273lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16274CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16275CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16276compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16277GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16278lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16279lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16280lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16281lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16282lt_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"`' 16283lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16284nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16285lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16286lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16287objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16288MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16289lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16290lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16291lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16292lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16293lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16294need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16295MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16296DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16297NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16298LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16299OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16300OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16301libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16302shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16303extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16304archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16305enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16306export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16307whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16308compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16309old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16310old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16311archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16312archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16313module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16314module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16315with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16316allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16317no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16318hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16319hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16320hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16321hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16322hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16323hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16324hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16325inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16326link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16327always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16328export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16329exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16330include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16331prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16332postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16333file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16334variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16335need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16336need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16337version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16338runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16339shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16340shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16341libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16342library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16343soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16344install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16345postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16346postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16347finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16348finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16349hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16350sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16351configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 16352configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 16353hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16354enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16355enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16356enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16357old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16358striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16359 16360LTCC='$LTCC' 16361LTCFLAGS='$LTCFLAGS' 16362compiler='$compiler_DEFAULT' 16363 16364# A function that is used when there is no print builtin or printf. 16365func_fallback_echo () 16366{ 16367 eval 'cat <<_LTECHO_EOF 16368\$1 16369_LTECHO_EOF' 16370} 16371 16372# Quote evaled strings. 16373for var in AS \ 16374DLLTOOL \ 16375OBJDUMP \ 16376SHELL \ 16377ECHO \ 16378PATH_SEPARATOR \ 16379SED \ 16380GREP \ 16381EGREP \ 16382FGREP \ 16383LD \ 16384NM \ 16385LN_S \ 16386lt_SP2NL \ 16387lt_NL2SP \ 16388reload_flag \ 16389deplibs_check_method \ 16390file_magic_cmd \ 16391file_magic_glob \ 16392want_nocaseglob \ 16393sharedlib_from_linklib_cmd \ 16394AR \ 16395archiver_list_spec \ 16396STRIP \ 16397RANLIB \ 16398CC \ 16399CFLAGS \ 16400compiler \ 16401lt_cv_sys_global_symbol_pipe \ 16402lt_cv_sys_global_symbol_to_cdecl \ 16403lt_cv_sys_global_symbol_to_import \ 16404lt_cv_sys_global_symbol_to_c_name_address \ 16405lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16406lt_cv_nm_interface \ 16407nm_file_list_spec \ 16408lt_cv_truncate_bin \ 16409lt_prog_compiler_no_builtin_flag \ 16410lt_prog_compiler_pic \ 16411lt_prog_compiler_wl \ 16412lt_prog_compiler_static \ 16413lt_cv_prog_compiler_c_o \ 16414need_locks \ 16415MANIFEST_TOOL \ 16416DSYMUTIL \ 16417NMEDIT \ 16418LIPO \ 16419OTOOL \ 16420OTOOL64 \ 16421shrext_cmds \ 16422export_dynamic_flag_spec \ 16423whole_archive_flag_spec \ 16424compiler_needs_object \ 16425with_gnu_ld \ 16426allow_undefined_flag \ 16427no_undefined_flag \ 16428hardcode_libdir_flag_spec \ 16429hardcode_libdir_separator \ 16430exclude_expsyms \ 16431include_expsyms \ 16432file_list_spec \ 16433variables_saved_for_relink \ 16434libname_spec \ 16435library_names_spec \ 16436soname_spec \ 16437install_override_mode \ 16438finish_eval \ 16439old_striplib \ 16440striplib; do 16441 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16442 *[\\\\\\\`\\"\\\$]*) 16443 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16444 ;; 16445 *) 16446 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16447 ;; 16448 esac 16449done 16450 16451# Double-quote double-evaled strings. 16452for var in reload_cmds \ 16453old_postinstall_cmds \ 16454old_postuninstall_cmds \ 16455old_archive_cmds \ 16456extract_expsyms_cmds \ 16457old_archive_from_new_cmds \ 16458old_archive_from_expsyms_cmds \ 16459archive_cmds \ 16460archive_expsym_cmds \ 16461module_cmds \ 16462module_expsym_cmds \ 16463export_symbols_cmds \ 16464prelink_cmds \ 16465postlink_cmds \ 16466postinstall_cmds \ 16467postuninstall_cmds \ 16468finish_cmds \ 16469sys_lib_search_path_spec \ 16470configure_time_dlsearch_path \ 16471configure_time_lt_sys_library_path; do 16472 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16473 *[\\\\\\\`\\"\\\$]*) 16474 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16475 ;; 16476 *) 16477 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16478 ;; 16479 esac 16480done 16481 16482ac_aux_dir='$ac_aux_dir' 16483 16484# See if we are running on zsh, and set the options that allow our 16485# commands through without removal of \ escapes INIT. 16486if test -n "\${ZSH_VERSION+set}"; then 16487 setopt NO_GLOB_SUBST 16488fi 16489 16490 16491 PACKAGE='$PACKAGE' 16492 VERSION='$VERSION' 16493 RM='$RM' 16494 ofile='$ofile' 16495 16496 16497 16498 16499_ACEOF 16500 16501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16502 16503# Handling of arguments. 16504for ac_config_target in $ac_config_targets 16505do 16506 case $ac_config_target in 16507 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 16508 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16509 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16510 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16511 "libpcre2-8.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-8.pc" ;; 16512 "libpcre2-16.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-16.pc" ;; 16513 "libpcre2-32.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-32.pc" ;; 16514 "libpcre2-posix.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-posix.pc" ;; 16515 "pcre2-config") CONFIG_FILES="$CONFIG_FILES pcre2-config" ;; 16516 "src/pcre2.h") CONFIG_FILES="$CONFIG_FILES src/pcre2.h" ;; 16517 "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;; 16518 "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;; 16519 16520 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16521 esac 16522done 16523 16524 16525# If the user did not use the arguments to specify the items to instantiate, 16526# then the envvar interface is used. Set only those that are not. 16527# We use the long form for the default assignment because of an extremely 16528# bizarre bug on SunOS 4.1.3. 16529if $ac_need_defaults; then 16530 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16531 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16533fi 16534 16535# Have a temporary directory for convenience. Make it in the build tree 16536# simply because there is no reason against having it here, and in addition, 16537# creating and moving files from /tmp can sometimes cause problems. 16538# Hook for its removal unless debugging. 16539# Note that there is a small window in which the directory will not be cleaned: 16540# after its creation but before its name has been assigned to `$tmp'. 16541$debug || 16542{ 16543 tmp= ac_tmp= 16544 trap 'exit_status=$? 16545 : "${ac_tmp:=$tmp}" 16546 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16547' 0 16548 trap 'as_fn_exit 1' 1 2 13 15 16549} 16550# Create a (secure) tmp directory for tmp files. 16551 16552{ 16553 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16554 test -d "$tmp" 16555} || 16556{ 16557 tmp=./conf$$-$RANDOM 16558 (umask 077 && mkdir "$tmp") 16559} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16560ac_tmp=$tmp 16561 16562# Set up the scripts for CONFIG_FILES section. 16563# No need to generate them if there are no CONFIG_FILES. 16564# This happens for instance with `./config.status config.h'. 16565if test -n "$CONFIG_FILES"; then 16566 16567 16568ac_cr=`echo X | tr X '\015'` 16569# On cygwin, bash can eat \r inside `` if the user requested igncr. 16570# But we know of no other shell where ac_cr would be empty at this 16571# point, so we can use a bashism as a fallback. 16572if test "x$ac_cr" = x; then 16573 eval ac_cr=\$\'\\r\' 16574fi 16575ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16576if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16577 ac_cs_awk_cr='\\r' 16578else 16579 ac_cs_awk_cr=$ac_cr 16580fi 16581 16582echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16583_ACEOF 16584 16585 16586{ 16587 echo "cat >conf$$subs.awk <<_ACEOF" && 16588 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16589 echo "_ACEOF" 16590} >conf$$subs.sh || 16591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16592ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16593ac_delim='%!_!# ' 16594for ac_last_try in false false false false false :; do 16595 . ./conf$$subs.sh || 16596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16597 16598 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16599 if test $ac_delim_n = $ac_delim_num; then 16600 break 16601 elif $ac_last_try; then 16602 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16603 else 16604 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16605 fi 16606done 16607rm -f conf$$subs.sh 16608 16609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16610cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16611_ACEOF 16612sed -n ' 16613h 16614s/^/S["/; s/!.*/"]=/ 16615p 16616g 16617s/^[^!]*!// 16618:repl 16619t repl 16620s/'"$ac_delim"'$// 16621t delim 16622:nl 16623h 16624s/\(.\{148\}\)..*/\1/ 16625t more1 16626s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16627p 16628n 16629b repl 16630:more1 16631s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16632p 16633g 16634s/.\{148\}// 16635t nl 16636:delim 16637h 16638s/\(.\{148\}\)..*/\1/ 16639t more2 16640s/["\\]/\\&/g; s/^/"/; s/$/"/ 16641p 16642b 16643:more2 16644s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16645p 16646g 16647s/.\{148\}// 16648t delim 16649' <conf$$subs.awk | sed ' 16650/^[^""]/{ 16651 N 16652 s/\n// 16653} 16654' >>$CONFIG_STATUS || ac_write_fail=1 16655rm -f conf$$subs.awk 16656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16657_ACAWK 16658cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16659 for (key in S) S_is_set[key] = 1 16660 FS = "" 16661 16662} 16663{ 16664 line = $ 0 16665 nfields = split(line, field, "@") 16666 substed = 0 16667 len = length(field[1]) 16668 for (i = 2; i < nfields; i++) { 16669 key = field[i] 16670 keylen = length(key) 16671 if (S_is_set[key]) { 16672 value = S[key] 16673 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16674 len += length(value) + length(field[++i]) 16675 substed = 1 16676 } else 16677 len += 1 + keylen 16678 } 16679 16680 print line 16681} 16682 16683_ACAWK 16684_ACEOF 16685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16686if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16687 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16688else 16689 cat 16690fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16691 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16692_ACEOF 16693 16694# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16695# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16696# trailing colons and then remove the whole line if VPATH becomes empty 16697# (actually we leave an empty line to preserve line numbers). 16698if test "x$srcdir" = x.; then 16699 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16700h 16701s/// 16702s/^/:/ 16703s/[ ]*$/:/ 16704s/:\$(srcdir):/:/g 16705s/:\${srcdir}:/:/g 16706s/:@srcdir@:/:/g 16707s/^:*// 16708s/:*$// 16709x 16710s/\(=[ ]*\).*/\1/ 16711G 16712s/\n// 16713s/^[^=]*=[ ]*$// 16714}' 16715fi 16716 16717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16718fi # test -n "$CONFIG_FILES" 16719 16720# Set up the scripts for CONFIG_HEADERS section. 16721# No need to generate them if there are no CONFIG_HEADERS. 16722# This happens for instance with `./config.status Makefile'. 16723if test -n "$CONFIG_HEADERS"; then 16724cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16725BEGIN { 16726_ACEOF 16727 16728# Transform confdefs.h into an awk script `defines.awk', embedded as 16729# here-document in config.status, that substitutes the proper values into 16730# config.h.in to produce config.h. 16731 16732# Create a delimiter string that does not exist in confdefs.h, to ease 16733# handling of long lines. 16734ac_delim='%!_!# ' 16735for ac_last_try in false false :; do 16736 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16737 if test -z "$ac_tt"; then 16738 break 16739 elif $ac_last_try; then 16740 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16741 else 16742 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16743 fi 16744done 16745 16746# For the awk script, D is an array of macro values keyed by name, 16747# likewise P contains macro parameters if any. Preserve backslash 16748# newline sequences. 16749 16750ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16751sed -n ' 16752s/.\{148\}/&'"$ac_delim"'/g 16753t rset 16754:rset 16755s/^[ ]*#[ ]*define[ ][ ]*/ / 16756t def 16757d 16758:def 16759s/\\$// 16760t bsnl 16761s/["\\]/\\&/g 16762s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16763D["\1"]=" \3"/p 16764s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16765d 16766:bsnl 16767s/["\\]/\\&/g 16768s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16769D["\1"]=" \3\\\\\\n"\\/p 16770t cont 16771s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16772t cont 16773d 16774:cont 16775n 16776s/.\{148\}/&'"$ac_delim"'/g 16777t clear 16778:clear 16779s/\\$// 16780t bsnlc 16781s/["\\]/\\&/g; s/^/"/; s/$/"/p 16782d 16783:bsnlc 16784s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16785b cont 16786' <confdefs.h | sed ' 16787s/'"$ac_delim"'/"\\\ 16788"/g' >>$CONFIG_STATUS || ac_write_fail=1 16789 16790cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16791 for (key in D) D_is_set[key] = 1 16792 FS = "" 16793} 16794/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16795 line = \$ 0 16796 split(line, arg, " ") 16797 if (arg[1] == "#") { 16798 defundef = arg[2] 16799 mac1 = arg[3] 16800 } else { 16801 defundef = substr(arg[1], 2) 16802 mac1 = arg[2] 16803 } 16804 split(mac1, mac2, "(") #) 16805 macro = mac2[1] 16806 prefix = substr(line, 1, index(line, defundef) - 1) 16807 if (D_is_set[macro]) { 16808 # Preserve the white space surrounding the "#". 16809 print prefix "define", macro P[macro] D[macro] 16810 next 16811 } else { 16812 # Replace #undef with comments. This is necessary, for example, 16813 # in the case of _POSIX_SOURCE, which is predefined and required 16814 # on some systems where configure will not decide to define it. 16815 if (defundef == "undef") { 16816 print "/*", prefix defundef, macro, "*/" 16817 next 16818 } 16819 } 16820} 16821{ print } 16822_ACAWK 16823_ACEOF 16824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16825 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16826fi # test -n "$CONFIG_HEADERS" 16827 16828 16829eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16830shift 16831for ac_tag 16832do 16833 case $ac_tag in 16834 :[FHLC]) ac_mode=$ac_tag; continue;; 16835 esac 16836 case $ac_mode$ac_tag in 16837 :[FHL]*:*);; 16838 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16839 :[FH]-) ac_tag=-:-;; 16840 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16841 esac 16842 ac_save_IFS=$IFS 16843 IFS=: 16844 set x $ac_tag 16845 IFS=$ac_save_IFS 16846 shift 16847 ac_file=$1 16848 shift 16849 16850 case $ac_mode in 16851 :L) ac_source=$1;; 16852 :[FH]) 16853 ac_file_inputs= 16854 for ac_f 16855 do 16856 case $ac_f in 16857 -) ac_f="$ac_tmp/stdin";; 16858 *) # Look for the file first in the build tree, then in the source tree 16859 # (if the path is not absolute). The absolute path cannot be DOS-style, 16860 # because $ac_f cannot contain `:'. 16861 test -f "$ac_f" || 16862 case $ac_f in 16863 [\\/$]*) false;; 16864 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16865 esac || 16866 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16867 esac 16868 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16869 as_fn_append ac_file_inputs " '$ac_f'" 16870 done 16871 16872 # Let's still pretend it is `configure' which instantiates (i.e., don't 16873 # use $as_me), people would be surprised to read: 16874 # /* config.h. Generated by config.status. */ 16875 configure_input='Generated from '` 16876 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16877 `' by configure.' 16878 if test x"$ac_file" != x-; then 16879 configure_input="$ac_file. $configure_input" 16880 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16881$as_echo "$as_me: creating $ac_file" >&6;} 16882 fi 16883 # Neutralize special characters interpreted by sed in replacement strings. 16884 case $configure_input in #( 16885 *\&* | *\|* | *\\* ) 16886 ac_sed_conf_input=`$as_echo "$configure_input" | 16887 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16888 *) ac_sed_conf_input=$configure_input;; 16889 esac 16890 16891 case $ac_tag in 16892 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16894 esac 16895 ;; 16896 esac 16897 16898 ac_dir=`$as_dirname -- "$ac_file" || 16899$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16900 X"$ac_file" : 'X\(//\)[^/]' \| \ 16901 X"$ac_file" : 'X\(//\)$' \| \ 16902 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16903$as_echo X"$ac_file" | 16904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16905 s//\1/ 16906 q 16907 } 16908 /^X\(\/\/\)[^/].*/{ 16909 s//\1/ 16910 q 16911 } 16912 /^X\(\/\/\)$/{ 16913 s//\1/ 16914 q 16915 } 16916 /^X\(\/\).*/{ 16917 s//\1/ 16918 q 16919 } 16920 s/.*/./; q'` 16921 as_dir="$ac_dir"; as_fn_mkdir_p 16922 ac_builddir=. 16923 16924case "$ac_dir" in 16925.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16926*) 16927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16928 # A ".." for each directory in $ac_dir_suffix. 16929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16930 case $ac_top_builddir_sub in 16931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16933 esac ;; 16934esac 16935ac_abs_top_builddir=$ac_pwd 16936ac_abs_builddir=$ac_pwd$ac_dir_suffix 16937# for backward compatibility: 16938ac_top_builddir=$ac_top_build_prefix 16939 16940case $srcdir in 16941 .) # We are building in place. 16942 ac_srcdir=. 16943 ac_top_srcdir=$ac_top_builddir_sub 16944 ac_abs_top_srcdir=$ac_pwd ;; 16945 [\\/]* | ?:[\\/]* ) # Absolute name. 16946 ac_srcdir=$srcdir$ac_dir_suffix; 16947 ac_top_srcdir=$srcdir 16948 ac_abs_top_srcdir=$srcdir ;; 16949 *) # Relative name. 16950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16951 ac_top_srcdir=$ac_top_build_prefix$srcdir 16952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16953esac 16954ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16955 16956 16957 case $ac_mode in 16958 :F) 16959 # 16960 # CONFIG_FILE 16961 # 16962 16963 case $INSTALL in 16964 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16965 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16966 esac 16967 ac_MKDIR_P=$MKDIR_P 16968 case $MKDIR_P in 16969 [\\/$]* | ?:[\\/]* ) ;; 16970 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16971 esac 16972_ACEOF 16973 16974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16975# If the template does not know about datarootdir, expand it. 16976# FIXME: This hack should be removed a few years after 2.60. 16977ac_datarootdir_hack=; ac_datarootdir_seen= 16978ac_sed_dataroot=' 16979/datarootdir/ { 16980 p 16981 q 16982} 16983/@datadir@/p 16984/@docdir@/p 16985/@infodir@/p 16986/@localedir@/p 16987/@mandir@/p' 16988case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16989*datarootdir*) ac_datarootdir_seen=yes;; 16990*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16992$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16993_ACEOF 16994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16995 ac_datarootdir_hack=' 16996 s&@datadir@&$datadir&g 16997 s&@docdir@&$docdir&g 16998 s&@infodir@&$infodir&g 16999 s&@localedir@&$localedir&g 17000 s&@mandir@&$mandir&g 17001 s&\\\${datarootdir}&$datarootdir&g' ;; 17002esac 17003_ACEOF 17004 17005# Neutralize VPATH when `$srcdir' = `.'. 17006# Shell code in configure.ac might set extrasub. 17007# FIXME: do we really want to maintain this feature? 17008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17009ac_sed_extra="$ac_vpsub 17010$extrasub 17011_ACEOF 17012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17013:t 17014/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17015s|@configure_input@|$ac_sed_conf_input|;t t 17016s&@top_builddir@&$ac_top_builddir_sub&;t t 17017s&@top_build_prefix@&$ac_top_build_prefix&;t t 17018s&@srcdir@&$ac_srcdir&;t t 17019s&@abs_srcdir@&$ac_abs_srcdir&;t t 17020s&@top_srcdir@&$ac_top_srcdir&;t t 17021s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17022s&@builddir@&$ac_builddir&;t t 17023s&@abs_builddir@&$ac_abs_builddir&;t t 17024s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17025s&@INSTALL@&$ac_INSTALL&;t t 17026s&@MKDIR_P@&$ac_MKDIR_P&;t t 17027$ac_datarootdir_hack 17028" 17029eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17030 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17031 17032test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17033 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17034 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17035 "$ac_tmp/out"`; test -z "$ac_out"; } && 17036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17037which seems to be undefined. Please make sure it is defined" >&5 17038$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17039which seems to be undefined. Please make sure it is defined" >&2;} 17040 17041 rm -f "$ac_tmp/stdin" 17042 case $ac_file in 17043 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17044 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17045 esac \ 17046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17047 ;; 17048 :H) 17049 # 17050 # CONFIG_HEADER 17051 # 17052 if test x"$ac_file" != x-; then 17053 { 17054 $as_echo "/* $configure_input */" \ 17055 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17056 } >"$ac_tmp/config.h" \ 17057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17058 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17059 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17060$as_echo "$as_me: $ac_file is unchanged" >&6;} 17061 else 17062 rm -f "$ac_file" 17063 mv "$ac_tmp/config.h" "$ac_file" \ 17064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17065 fi 17066 else 17067 $as_echo "/* $configure_input */" \ 17068 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17069 || as_fn_error $? "could not create -" "$LINENO" 5 17070 fi 17071# Compute "$ac_file"'s index in $config_headers. 17072_am_arg="$ac_file" 17073_am_stamp_count=1 17074for _am_header in $config_headers :; do 17075 case $_am_header in 17076 $_am_arg | $_am_arg:* ) 17077 break ;; 17078 * ) 17079 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17080 esac 17081done 17082echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17083$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17084 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17085 X"$_am_arg" : 'X\(//\)$' \| \ 17086 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17087$as_echo X"$_am_arg" | 17088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17089 s//\1/ 17090 q 17091 } 17092 /^X\(\/\/\)[^/].*/{ 17093 s//\1/ 17094 q 17095 } 17096 /^X\(\/\/\)$/{ 17097 s//\1/ 17098 q 17099 } 17100 /^X\(\/\).*/{ 17101 s//\1/ 17102 q 17103 } 17104 s/.*/./; q'`/stamp-h$_am_stamp_count 17105 ;; 17106 17107 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17108$as_echo "$as_me: executing $ac_file commands" >&6;} 17109 ;; 17110 esac 17111 17112 17113 case $ac_file$ac_mode in 17114 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17115 # Older Autoconf quotes --file arguments for eval, but not when files 17116 # are listed without --file. Let's play safe and only enable the eval 17117 # if we detect the quoting. 17118 # TODO: see whether this extra hack can be removed once we start 17119 # requiring Autoconf 2.70 or later. 17120 case $CONFIG_FILES in #( 17121 *\'*) : 17122 eval set x "$CONFIG_FILES" ;; #( 17123 *) : 17124 set x $CONFIG_FILES ;; #( 17125 *) : 17126 ;; 17127esac 17128 shift 17129 # Used to flag and report bootstrapping failures. 17130 am_rc=0 17131 for am_mf 17132 do 17133 # Strip MF so we end up with the name of the file. 17134 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 17135 # Check whether this is an Automake generated Makefile which includes 17136 # dependency-tracking related rules and includes. 17137 # Grep'ing the whole file directly is not great: AIX grep has a line 17138 # limit of 2048, but all sed's we know have understand at least 4000. 17139 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 17140 || continue 17141 am_dirpart=`$as_dirname -- "$am_mf" || 17142$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17143 X"$am_mf" : 'X\(//\)[^/]' \| \ 17144 X"$am_mf" : 'X\(//\)$' \| \ 17145 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17146$as_echo X"$am_mf" | 17147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17148 s//\1/ 17149 q 17150 } 17151 /^X\(\/\/\)[^/].*/{ 17152 s//\1/ 17153 q 17154 } 17155 /^X\(\/\/\)$/{ 17156 s//\1/ 17157 q 17158 } 17159 /^X\(\/\).*/{ 17160 s//\1/ 17161 q 17162 } 17163 s/.*/./; q'` 17164 am_filepart=`$as_basename -- "$am_mf" || 17165$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 17166 X"$am_mf" : 'X\(//\)$' \| \ 17167 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17168$as_echo X/"$am_mf" | 17169 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17170 s//\1/ 17171 q 17172 } 17173 /^X\/\(\/\/\)$/{ 17174 s//\1/ 17175 q 17176 } 17177 /^X\/\(\/\).*/{ 17178 s//\1/ 17179 q 17180 } 17181 s/.*/./; q'` 17182 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 17183 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17184 | $MAKE -f - am--depfiles" >&5 17185 (cd "$am_dirpart" \ 17186 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17187 | $MAKE -f - am--depfiles) >&5 2>&5 17188 ac_status=$? 17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17190 (exit $ac_status); } || am_rc=$? 17191 done 17192 if test $am_rc -ne 0; then 17193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17195as_fn_error $? "Something went wrong bootstrapping makefile fragments 17196 for automatic dependency tracking. Try re-running configure with the 17197 '--disable-dependency-tracking' option to at least be able to build 17198 the package (albeit without support for automatic dependency tracking). 17199See \`config.log' for more details" "$LINENO" 5; } 17200 fi 17201 { am_dirpart=; unset am_dirpart;} 17202 { am_filepart=; unset am_filepart;} 17203 { am_mf=; unset am_mf;} 17204 { am_rc=; unset am_rc;} 17205 rm -f conftest-deps.mk 17206} 17207 ;; 17208 "libtool":C) 17209 17210 # See if we are running on zsh, and set the options that allow our 17211 # commands through without removal of \ escapes. 17212 if test -n "${ZSH_VERSION+set}"; then 17213 setopt NO_GLOB_SUBST 17214 fi 17215 17216 cfgfile=${ofile}T 17217 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17218 $RM "$cfgfile" 17219 17220 cat <<_LT_EOF >> "$cfgfile" 17221#! $SHELL 17222# Generated automatically by $as_me ($PACKAGE) $VERSION 17223# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17224# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17225 17226# Provide generalized library-building support services. 17227# Written by Gordon Matzigkeit, 1996 17228 17229# Copyright (C) 2014 Free Software Foundation, Inc. 17230# This is free software; see the source for copying conditions. There is NO 17231# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17232 17233# GNU Libtool is free software; you can redistribute it and/or modify 17234# it under the terms of the GNU General Public License as published by 17235# the Free Software Foundation; either version 2 of of the License, or 17236# (at your option) any later version. 17237# 17238# As a special exception to the GNU General Public License, if you 17239# distribute this file as part of a program or library that is built 17240# using GNU Libtool, you may include this file under the same 17241# distribution terms that you use for the rest of that program. 17242# 17243# GNU Libtool is distributed in the hope that it will be useful, but 17244# WITHOUT ANY WARRANTY; without even the implied warranty of 17245# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17246# GNU General Public License for more details. 17247# 17248# You should have received a copy of the GNU General Public License 17249# along with this program. If not, see <http://www.gnu.org/licenses/>. 17250 17251 17252# The names of the tagged configurations supported by this script. 17253available_tags='' 17254 17255# Configured defaults for sys_lib_dlsearch_path munging. 17256: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 17257 17258# ### BEGIN LIBTOOL CONFIG 17259 17260# Assembler program. 17261AS=$lt_AS 17262 17263# DLL creation program. 17264DLLTOOL=$lt_DLLTOOL 17265 17266# Object dumper program. 17267OBJDUMP=$lt_OBJDUMP 17268 17269# Which release of libtool.m4 was used? 17270macro_version=$macro_version 17271macro_revision=$macro_revision 17272 17273# Whether or not to build shared libraries. 17274build_libtool_libs=$enable_shared 17275 17276# Whether or not to build static libraries. 17277build_old_libs=$enable_static 17278 17279# What type of objects to build. 17280pic_mode=$pic_mode 17281 17282# Whether or not to optimize for fast installation. 17283fast_install=$enable_fast_install 17284 17285# Shared archive member basename,for filename based shared library versioning on AIX. 17286shared_archive_member_spec=$shared_archive_member_spec 17287 17288# Shell to use when invoking shell scripts. 17289SHELL=$lt_SHELL 17290 17291# An echo program that protects backslashes. 17292ECHO=$lt_ECHO 17293 17294# The PATH separator for the build system. 17295PATH_SEPARATOR=$lt_PATH_SEPARATOR 17296 17297# The host system. 17298host_alias=$host_alias 17299host=$host 17300host_os=$host_os 17301 17302# The build system. 17303build_alias=$build_alias 17304build=$build 17305build_os=$build_os 17306 17307# A sed program that does not truncate output. 17308SED=$lt_SED 17309 17310# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17311Xsed="\$SED -e 1s/^X//" 17312 17313# A grep program that handles long lines. 17314GREP=$lt_GREP 17315 17316# An ERE matcher. 17317EGREP=$lt_EGREP 17318 17319# A literal string matcher. 17320FGREP=$lt_FGREP 17321 17322# A BSD- or MS-compatible name lister. 17323NM=$lt_NM 17324 17325# Whether we need soft or hard links. 17326LN_S=$lt_LN_S 17327 17328# What is the maximum length of a command? 17329max_cmd_len=$max_cmd_len 17330 17331# Object file suffix (normally "o"). 17332objext=$ac_objext 17333 17334# Executable file suffix (normally ""). 17335exeext=$exeext 17336 17337# whether the shell understands "unset". 17338lt_unset=$lt_unset 17339 17340# turn spaces into newlines. 17341SP2NL=$lt_lt_SP2NL 17342 17343# turn newlines into spaces. 17344NL2SP=$lt_lt_NL2SP 17345 17346# convert \$build file names to \$host format. 17347to_host_file_cmd=$lt_cv_to_host_file_cmd 17348 17349# convert \$build files to toolchain format. 17350to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17351 17352# Method to check whether dependent libraries are shared objects. 17353deplibs_check_method=$lt_deplibs_check_method 17354 17355# Command to use when deplibs_check_method = "file_magic". 17356file_magic_cmd=$lt_file_magic_cmd 17357 17358# How to find potential files when deplibs_check_method = "file_magic". 17359file_magic_glob=$lt_file_magic_glob 17360 17361# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17362want_nocaseglob=$lt_want_nocaseglob 17363 17364# Command to associate shared and link libraries. 17365sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17366 17367# The archiver. 17368AR=$lt_AR 17369 17370# Flags to create an archive (by configure). 17371lt_ar_flags=$lt_ar_flags 17372 17373# Flags to create an archive. 17374AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 17375 17376# How to feed a file listing to the archiver. 17377archiver_list_spec=$lt_archiver_list_spec 17378 17379# A symbol stripping program. 17380STRIP=$lt_STRIP 17381 17382# Commands used to install an old-style archive. 17383RANLIB=$lt_RANLIB 17384old_postinstall_cmds=$lt_old_postinstall_cmds 17385old_postuninstall_cmds=$lt_old_postuninstall_cmds 17386 17387# Whether to use a lock for old archive extraction. 17388lock_old_archive_extraction=$lock_old_archive_extraction 17389 17390# A C compiler. 17391LTCC=$lt_CC 17392 17393# LTCC compiler flags. 17394LTCFLAGS=$lt_CFLAGS 17395 17396# Take the output of nm and produce a listing of raw symbols and C names. 17397global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17398 17399# Transform the output of nm in a proper C declaration. 17400global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17401 17402# Transform the output of nm into a list of symbols to manually relocate. 17403global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 17404 17405# Transform the output of nm in a C name address pair. 17406global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17407 17408# Transform the output of nm in a C name address pair when lib prefix is needed. 17409global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17410 17411# The name lister interface. 17412nm_interface=$lt_lt_cv_nm_interface 17413 17414# Specify filename containing input files for \$NM. 17415nm_file_list_spec=$lt_nm_file_list_spec 17416 17417# The root where to search for dependent libraries,and where our libraries should be installed. 17418lt_sysroot=$lt_sysroot 17419 17420# Command to truncate a binary pipe. 17421lt_truncate_bin=$lt_lt_cv_truncate_bin 17422 17423# The name of the directory that contains temporary libtool files. 17424objdir=$objdir 17425 17426# Used to examine libraries when file_magic_cmd begins with "file". 17427MAGIC_CMD=$MAGIC_CMD 17428 17429# Must we lock files when doing compilation? 17430need_locks=$lt_need_locks 17431 17432# Manifest tool. 17433MANIFEST_TOOL=$lt_MANIFEST_TOOL 17434 17435# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17436DSYMUTIL=$lt_DSYMUTIL 17437 17438# Tool to change global to local symbols on Mac OS X. 17439NMEDIT=$lt_NMEDIT 17440 17441# Tool to manipulate fat objects and archives on Mac OS X. 17442LIPO=$lt_LIPO 17443 17444# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17445OTOOL=$lt_OTOOL 17446 17447# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17448OTOOL64=$lt_OTOOL64 17449 17450# Old archive suffix (normally "a"). 17451libext=$libext 17452 17453# Shared library suffix (normally ".so"). 17454shrext_cmds=$lt_shrext_cmds 17455 17456# The commands to extract the exported symbol list from a shared archive. 17457extract_expsyms_cmds=$lt_extract_expsyms_cmds 17458 17459# Variables whose values should be saved in libtool wrapper scripts and 17460# restored at link time. 17461variables_saved_for_relink=$lt_variables_saved_for_relink 17462 17463# Do we need the "lib" prefix for modules? 17464need_lib_prefix=$need_lib_prefix 17465 17466# Do we need a version for libraries? 17467need_version=$need_version 17468 17469# Library versioning type. 17470version_type=$version_type 17471 17472# Shared library runtime path variable. 17473runpath_var=$runpath_var 17474 17475# Shared library path variable. 17476shlibpath_var=$shlibpath_var 17477 17478# Is shlibpath searched before the hard-coded library search path? 17479shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17480 17481# Format of library name prefix. 17482libname_spec=$lt_libname_spec 17483 17484# List of archive names. First name is the real one, the rest are links. 17485# The last name is the one that the linker finds with -lNAME 17486library_names_spec=$lt_library_names_spec 17487 17488# The coded name of the library, if different from the real name. 17489soname_spec=$lt_soname_spec 17490 17491# Permission mode override for installation of shared libraries. 17492install_override_mode=$lt_install_override_mode 17493 17494# Command to use after installation of a shared archive. 17495postinstall_cmds=$lt_postinstall_cmds 17496 17497# Command to use after uninstallation of a shared archive. 17498postuninstall_cmds=$lt_postuninstall_cmds 17499 17500# Commands used to finish a libtool library installation in a directory. 17501finish_cmds=$lt_finish_cmds 17502 17503# As "finish_cmds", except a single script fragment to be evaled but 17504# not shown. 17505finish_eval=$lt_finish_eval 17506 17507# Whether we should hardcode library paths into libraries. 17508hardcode_into_libs=$hardcode_into_libs 17509 17510# Compile-time system search path for libraries. 17511sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17512 17513# Detected run-time system search path for libraries. 17514sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 17515 17516# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 17517configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 17518 17519# Whether dlopen is supported. 17520dlopen_support=$enable_dlopen 17521 17522# Whether dlopen of programs is supported. 17523dlopen_self=$enable_dlopen_self 17524 17525# Whether dlopen of statically linked programs is supported. 17526dlopen_self_static=$enable_dlopen_self_static 17527 17528# Commands to strip libraries. 17529old_striplib=$lt_old_striplib 17530striplib=$lt_striplib 17531 17532 17533# The linker used to build libraries. 17534LD=$lt_LD 17535 17536# How to create reloadable object files. 17537reload_flag=$lt_reload_flag 17538reload_cmds=$lt_reload_cmds 17539 17540# Commands used to build an old-style archive. 17541old_archive_cmds=$lt_old_archive_cmds 17542 17543# A language specific compiler. 17544CC=$lt_compiler 17545 17546# Is the compiler the GNU compiler? 17547with_gcc=$GCC 17548 17549# Compiler flag to turn off builtin functions. 17550no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17551 17552# Additional compiler flags for building library objects. 17553pic_flag=$lt_lt_prog_compiler_pic 17554 17555# How to pass a linker flag through the compiler. 17556wl=$lt_lt_prog_compiler_wl 17557 17558# Compiler flag to prevent dynamic linking. 17559link_static_flag=$lt_lt_prog_compiler_static 17560 17561# Does compiler simultaneously support -c and -o options? 17562compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17563 17564# Whether or not to add -lc for building shared libraries. 17565build_libtool_need_lc=$archive_cmds_need_lc 17566 17567# Whether or not to disallow shared libs when runtime libs are static. 17568allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17569 17570# Compiler flag to allow reflexive dlopens. 17571export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17572 17573# Compiler flag to generate shared objects directly from archives. 17574whole_archive_flag_spec=$lt_whole_archive_flag_spec 17575 17576# Whether the compiler copes with passing no objects directly. 17577compiler_needs_object=$lt_compiler_needs_object 17578 17579# Create an old-style archive from a shared archive. 17580old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17581 17582# Create a temporary old-style archive to link instead of a shared archive. 17583old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17584 17585# Commands used to build a shared archive. 17586archive_cmds=$lt_archive_cmds 17587archive_expsym_cmds=$lt_archive_expsym_cmds 17588 17589# Commands used to build a loadable module if different from building 17590# a shared archive. 17591module_cmds=$lt_module_cmds 17592module_expsym_cmds=$lt_module_expsym_cmds 17593 17594# Whether we are building with GNU ld or not. 17595with_gnu_ld=$lt_with_gnu_ld 17596 17597# Flag that allows shared libraries with undefined symbols to be built. 17598allow_undefined_flag=$lt_allow_undefined_flag 17599 17600# Flag that enforces no undefined symbols. 17601no_undefined_flag=$lt_no_undefined_flag 17602 17603# Flag to hardcode \$libdir into a binary during linking. 17604# This must work even if \$libdir does not exist 17605hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17606 17607# Whether we need a single "-rpath" flag with a separated argument. 17608hardcode_libdir_separator=$lt_hardcode_libdir_separator 17609 17610# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17611# DIR into the resulting binary. 17612hardcode_direct=$hardcode_direct 17613 17614# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 17615# DIR into the resulting binary and the resulting library dependency is 17616# "absolute",i.e impossible to change by setting \$shlibpath_var if the 17617# library is relocated. 17618hardcode_direct_absolute=$hardcode_direct_absolute 17619 17620# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17621# into the resulting binary. 17622hardcode_minus_L=$hardcode_minus_L 17623 17624# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17625# into the resulting binary. 17626hardcode_shlibpath_var=$hardcode_shlibpath_var 17627 17628# Set to "yes" if building a shared library automatically hardcodes DIR 17629# into the library and all subsequent libraries and executables linked 17630# against it. 17631hardcode_automatic=$hardcode_automatic 17632 17633# Set to yes if linker adds runtime paths of dependent libraries 17634# to runtime path list. 17635inherit_rpath=$inherit_rpath 17636 17637# Whether libtool must link a program against all its dependency libraries. 17638link_all_deplibs=$link_all_deplibs 17639 17640# Set to "yes" if exported symbols are required. 17641always_export_symbols=$always_export_symbols 17642 17643# The commands to list exported symbols. 17644export_symbols_cmds=$lt_export_symbols_cmds 17645 17646# Symbols that should not be listed in the preloaded symbols. 17647exclude_expsyms=$lt_exclude_expsyms 17648 17649# Symbols that must always be exported. 17650include_expsyms=$lt_include_expsyms 17651 17652# Commands necessary for linking programs (against libraries) with templates. 17653prelink_cmds=$lt_prelink_cmds 17654 17655# Commands necessary for finishing linking programs. 17656postlink_cmds=$lt_postlink_cmds 17657 17658# Specify filename containing input files. 17659file_list_spec=$lt_file_list_spec 17660 17661# How to hardcode a shared library path into an executable. 17662hardcode_action=$hardcode_action 17663 17664# ### END LIBTOOL CONFIG 17665 17666_LT_EOF 17667 17668 cat <<'_LT_EOF' >> "$cfgfile" 17669 17670# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 17671 17672# func_munge_path_list VARIABLE PATH 17673# ----------------------------------- 17674# VARIABLE is name of variable containing _space_ separated list of 17675# directories to be munged by the contents of PATH, which is string 17676# having a format: 17677# "DIR[:DIR]:" 17678# string "DIR[ DIR]" will be prepended to VARIABLE 17679# ":DIR[:DIR]" 17680# string "DIR[ DIR]" will be appended to VARIABLE 17681# "DIRP[:DIRP]::[DIRA:]DIRA" 17682# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 17683# "DIRA[ DIRA]" will be appended to VARIABLE 17684# "DIR[:DIR]" 17685# VARIABLE will be replaced by "DIR[ DIR]" 17686func_munge_path_list () 17687{ 17688 case x$2 in 17689 x) 17690 ;; 17691 *:) 17692 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 17693 ;; 17694 x:*) 17695 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 17696 ;; 17697 *::*) 17698 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 17699 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 17700 ;; 17701 *) 17702 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 17703 ;; 17704 esac 17705} 17706 17707 17708# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 17709func_cc_basename () 17710{ 17711 for cc_temp in $*""; do 17712 case $cc_temp in 17713 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17714 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17715 \-*) ;; 17716 *) break;; 17717 esac 17718 done 17719 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 17720} 17721 17722 17723# ### END FUNCTIONS SHARED WITH CONFIGURE 17724 17725_LT_EOF 17726 17727 case $host_os in 17728 aix3*) 17729 cat <<\_LT_EOF >> "$cfgfile" 17730# AIX sometimes has problems with the GCC collect2 program. For some 17731# reason, if we set the COLLECT_NAMES environment variable, the problems 17732# vanish in a puff of smoke. 17733if test set != "${COLLECT_NAMES+set}"; then 17734 COLLECT_NAMES= 17735 export COLLECT_NAMES 17736fi 17737_LT_EOF 17738 ;; 17739 esac 17740 17741 17742ltmain=$ac_aux_dir/ltmain.sh 17743 17744 17745 # We use sed instead of cat because bash on DJGPP gets confused if 17746 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17747 # text mode, it properly converts lines to CR/LF. This bash problem 17748 # is reportedly fixed, but why not run on old versions too? 17749 sed '$q' "$ltmain" >> "$cfgfile" \ 17750 || (rm -f "$cfgfile"; exit 1) 17751 17752 mv -f "$cfgfile" "$ofile" || 17753 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17754 chmod +x "$ofile" 17755 17756 ;; 17757 "script-chmod":C) chmod a+x pcre2-config ;; 17758 "delete-old-chartables":C) rm -f pcre2_chartables.c ;; 17759 17760 esac 17761done # for ac_tag 17762 17763 17764as_fn_exit 0 17765_ACEOF 17766ac_clean_files=$ac_clean_files_save 17767 17768test $ac_write_fail = 0 || 17769 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17770 17771 17772# configure is writing to config.log, and then calls config.status. 17773# config.status does its own redirection, appending to config.log. 17774# Unfortunately, on DOS this fails, as config.log is still kept open 17775# by configure, so config.status won't be able to write to it; its 17776# output is simply discarded. So we exec the FD to /dev/null, 17777# effectively closing config.log, so it can be properly (re)opened and 17778# appended to by config.status. When coming back to configure, we 17779# need to make the FD available again. 17780if test "$no_create" != yes; then 17781 ac_cs_success=: 17782 ac_config_status_args= 17783 test "$silent" = yes && 17784 ac_config_status_args="$ac_config_status_args --quiet" 17785 exec 5>/dev/null 17786 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17787 exec 5>>config.log 17788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17789 # would make configure fail if this is the last instruction. 17790 $ac_cs_success || as_fn_exit 1 17791fi 17792if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17794$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17795fi 17796 17797 17798# --disable-stack-for-recursion is obsolete and has no effect. 17799 17800if test "$enable_stack_for_recursion" = "no"; then 17801cat <<EOF 17802 17803WARNING: --disable-stack-for-recursion is obsolete and has no effect. 17804EOF 17805fi 17806 17807# Print out a nice little message after configure is run displaying the 17808# chosen options. 17809 17810ebcdic_nl_code=n/a 17811if test "$enable_ebcdic_nl25" = "yes"; then 17812 ebcdic_nl_code=0x25 17813elif test "$enable_ebcdic" = "yes"; then 17814 ebcdic_nl_code=0x15 17815fi 17816 17817cat <<EOF 17818 17819$PACKAGE-$VERSION configuration summary: 17820 17821 Install prefix ..................... : ${prefix} 17822 C preprocessor ..................... : ${CPP} 17823 C compiler ......................... : ${CC} 17824 Linker ............................. : ${LD} 17825 C preprocessor flags ............... : ${CPPFLAGS} 17826 C compiler flags ................... : ${CFLAGS} ${VISIBILITY_CFLAGS} 17827 Linker flags ....................... : ${LDFLAGS} 17828 Extra libraries .................... : ${LIBS} 17829 17830 Build 8-bit pcre2 library .......... : ${enable_pcre2_8} 17831 Build 16-bit pcre2 library ......... : ${enable_pcre2_16} 17832 Build 32-bit pcre2 library ......... : ${enable_pcre2_32} 17833 Include debugging code ............. : ${enable_debug} 17834 Enable JIT compiling support ....... : ${enable_jit} 17835 Use SELinux allocator in JIT ....... : ${enable_jit_sealloc} 17836 Enable Unicode support ............. : ${enable_unicode} 17837 Newline char/sequence .............. : ${enable_newline} 17838 \R matches only ANYCRLF ............ : ${enable_bsr_anycrlf} 17839 \C is disabled ..................... : ${enable_never_backslash_C} 17840 EBCDIC coding ...................... : ${enable_ebcdic} 17841 EBCDIC code for NL ................. : ${ebcdic_nl_code} 17842 Rebuild char tables ................ : ${enable_rebuild_chartables} 17843 Internal link size ................. : ${with_link_size} 17844 Nested parentheses limit ........... : ${with_parens_nest_limit} 17845 Heap limit ......................... : ${with_heap_limit} kibibytes 17846 Match limit ........................ : ${with_match_limit} 17847 Match depth limit .................. : ${with_match_limit_depth} 17848 Build shared libs .................. : ${enable_shared} 17849 Build static libs .................. : ${enable_static} 17850 Use JIT in pcre2grep ............... : ${enable_pcre2grep_jit} 17851 Enable callouts in pcre2grep ....... : ${enable_pcre2grep_callout} 17852 Enable fork in pcre2grep callouts .. : ${enable_pcre2grep_callout_fork} 17853 Initial buffer size for pcre2grep .. : ${with_pcre2grep_bufsize} 17854 Maximum buffer size for pcre2grep .. : ${with_pcre2grep_max_bufsize} 17855 Link pcre2grep with libz ........... : ${enable_pcre2grep_libz} 17856 Link pcre2grep with libbz2 ......... : ${enable_pcre2grep_libbz2} 17857 Link pcre2test with libedit ........ : ${enable_pcre2test_libedit} 17858 Link pcre2test with libreadline .... : ${enable_pcre2test_libreadline} 17859 Valgrind support ................... : ${enable_valgrind} 17860 Code coverage ...................... : ${enable_coverage} 17861 Fuzzer support ..................... : ${enable_fuzz_support} 17862 Use %zu and %td .................... : ${enable_percent_zt} 17863 17864EOF 17865 17866