1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for stringi 1.7. 4# 5# Report bugs to <https://stringi.gagolewski.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://stringi.gagolewski.com about your system, 271$0: including any error possibly output before this 272$0: message. Then install a modern shell, or manually run 273$0: the script under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='stringi' 582PACKAGE_TARNAME='stringi' 583PACKAGE_VERSION='1.7' 584PACKAGE_STRING='stringi 1.7' 585PACKAGE_BUGREPORT='https://stringi.gagolewski.com' 586PACKAGE_URL='' 587 588# Factoring default headers for most tests. 589ac_includes_default="\ 590#include <stdio.h> 591#ifdef HAVE_SYS_TYPES_H 592# include <sys/types.h> 593#endif 594#ifdef HAVE_SYS_STAT_H 595# include <sys/stat.h> 596#endif 597#ifdef STDC_HEADERS 598# include <stdlib.h> 599# include <stddef.h> 600#else 601# ifdef HAVE_STDLIB_H 602# include <stdlib.h> 603# endif 604#endif 605#ifdef HAVE_STRING_H 606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 607# include <memory.h> 608# endif 609# include <string.h> 610#endif 611#ifdef HAVE_STRINGS_H 612# include <strings.h> 613#endif 614#ifdef HAVE_INTTYPES_H 615# include <inttypes.h> 616#endif 617#ifdef HAVE_STDINT_H 618# include <stdint.h> 619#endif 620#ifdef HAVE_UNISTD_H 621# include <unistd.h> 622#endif" 623 624ac_subst_vars='LTLIBOBJS 625LIBOBJS 626ICUDT_ENDIANNESS 627ICU_BUNDLE_VERSION 628ICU_FOUND 629STRINGI_CXXSTD 630STRINGI_OBJECTS 631STRINGI_ICU_STUBDATA_SOURCES_C 632STRINGI_ICU_STUBDATA_SOURCES_CPP 633STRINGI_ICU_I18N_SOURCES_C 634STRINGI_ICU_I18N_SOURCES_CPP 635STRINGI_ICU_COMMON_SOURCES_C 636STRINGI_ICU_COMMON_SOURCES_CPP 637STRINGI_SOURCES_CPP 638ac_ct_CXX 639EGREP 640GREP 641OBJEXT 642EXEEXT 643ac_ct_CC 644STRINGI_LIBS 645STRINGI_LDFLAGS 646STRINGI_CXXFLAGS 647STRINGI_CPPFLAGS 648STRINGI_CFLAGS 649STRINGI_DISABLE_PKG_CONFIG 650STRINGI_DISABLE_ICU_BUNDLE 651STRINGI_DISABLE_CXX11 652LDFLAGS 653CXXFLAGS 654CXX 655CPPFLAGS 656CPP 657CFLAGS 658CC 659PKG_CONFIG_PATH 660ICUDT_DIR 661PKG_CONFIG 662CAT 663R_HOME 664target_alias 665host_alias 666build_alias 667LIBS 668ECHO_T 669ECHO_N 670ECHO_C 671DEFS 672mandir 673localedir 674libdir 675psdir 676pdfdir 677dvidir 678htmldir 679infodir 680docdir 681oldincludedir 682includedir 683runstatedir 684localstatedir 685sharedstatedir 686sysconfdir 687datadir 688datarootdir 689libexecdir 690sbindir 691bindir 692program_transform_name 693prefix 694exec_prefix 695PACKAGE_URL 696PACKAGE_BUGREPORT 697PACKAGE_STRING 698PACKAGE_VERSION 699PACKAGE_TARNAME 700PACKAGE_NAME 701PATH_SEPARATOR 702SHELL' 703ac_subst_files='' 704ac_user_opts=' 705enable_option_checking 706enable_cxx11 707enable_icu_bundle 708enable_pkg_config 709enable_gcc_debug 710enable_gcc_pedantic 711with_extra_cflags 712with_extra_cppflags 713with_extra_cxxflags 714with_extra_ldflags 715with_extra_libs 716' 717 ac_precious_vars='build_alias 718host_alias 719target_alias 720R_HOME 721CAT 722PKG_CONFIG 723ICUDT_DIR 724PKG_CONFIG_PATH 725CC 726CFLAGS 727CPP 728CPPFLAGS 729CXX 730CXXFLAGS 731LDFLAGS 732LIBS 733STRINGI_DISABLE_CXX11 734STRINGI_DISABLE_ICU_BUNDLE 735STRINGI_DISABLE_PKG_CONFIG 736STRINGI_CFLAGS 737STRINGI_CPPFLAGS 738STRINGI_CXXFLAGS 739STRINGI_LDFLAGS 740STRINGI_LIBS 741CCC' 742 743 744# Initialize some variables set by options. 745ac_init_help= 746ac_init_version=false 747ac_unrecognized_opts= 748ac_unrecognized_sep= 749# The variables have the same names as the options, with 750# dashes changed to underlines. 751cache_file=/dev/null 752exec_prefix=NONE 753no_create= 754no_recursion= 755prefix=NONE 756program_prefix=NONE 757program_suffix=NONE 758program_transform_name=s,x,x, 759silent= 760site= 761srcdir= 762verbose= 763x_includes=NONE 764x_libraries=NONE 765 766# Installation directory options. 767# These are left unexpanded so users can "make install exec_prefix=/foo" 768# and all the variables that are supposed to be based on exec_prefix 769# by default will actually change. 770# Use braces instead of parens because sh, perl, etc. also accept them. 771# (The list follows the same order as the GNU Coding Standards.) 772bindir='${exec_prefix}/bin' 773sbindir='${exec_prefix}/sbin' 774libexecdir='${exec_prefix}/libexec' 775datarootdir='${prefix}/share' 776datadir='${datarootdir}' 777sysconfdir='${prefix}/etc' 778sharedstatedir='${prefix}/com' 779localstatedir='${prefix}/var' 780runstatedir='${localstatedir}/run' 781includedir='${prefix}/include' 782oldincludedir='/usr/include' 783docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 784infodir='${datarootdir}/info' 785htmldir='${docdir}' 786dvidir='${docdir}' 787pdfdir='${docdir}' 788psdir='${docdir}' 789libdir='${exec_prefix}/lib' 790localedir='${datarootdir}/locale' 791mandir='${datarootdir}/man' 792 793ac_prev= 794ac_dashdash= 795for ac_option 796do 797 # If the previous option needs an argument, assign it. 798 if test -n "$ac_prev"; then 799 eval $ac_prev=\$ac_option 800 ac_prev= 801 continue 802 fi 803 804 case $ac_option in 805 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 806 *=) ac_optarg= ;; 807 *) ac_optarg=yes ;; 808 esac 809 810 # Accept the important Cygnus configure options, so we can diagnose typos. 811 812 case $ac_dashdash$ac_option in 813 --) 814 ac_dashdash=yes ;; 815 816 -bindir | --bindir | --bindi | --bind | --bin | --bi) 817 ac_prev=bindir ;; 818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 819 bindir=$ac_optarg ;; 820 821 -build | --build | --buil | --bui | --bu) 822 ac_prev=build_alias ;; 823 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 824 build_alias=$ac_optarg ;; 825 826 -cache-file | --cache-file | --cache-fil | --cache-fi \ 827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 828 ac_prev=cache_file ;; 829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 831 cache_file=$ac_optarg ;; 832 833 --config-cache | -C) 834 cache_file=config.cache ;; 835 836 -datadir | --datadir | --datadi | --datad) 837 ac_prev=datadir ;; 838 -datadir=* | --datadir=* | --datadi=* | --datad=*) 839 datadir=$ac_optarg ;; 840 841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 842 | --dataroo | --dataro | --datar) 843 ac_prev=datarootdir ;; 844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 846 datarootdir=$ac_optarg ;; 847 848 -disable-* | --disable-*) 849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 850 # Reject names that are not valid shell variable names. 851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 852 as_fn_error $? "invalid feature name: $ac_useropt" 853 ac_useropt_orig=$ac_useropt 854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 855 case $ac_user_opts in 856 *" 857"enable_$ac_useropt" 858"*) ;; 859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 860 ac_unrecognized_sep=', ';; 861 esac 862 eval enable_$ac_useropt=no ;; 863 864 -docdir | --docdir | --docdi | --doc | --do) 865 ac_prev=docdir ;; 866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 867 docdir=$ac_optarg ;; 868 869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 870 ac_prev=dvidir ;; 871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 872 dvidir=$ac_optarg ;; 873 874 -enable-* | --enable-*) 875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 876 # Reject names that are not valid shell variable names. 877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 878 as_fn_error $? "invalid feature name: $ac_useropt" 879 ac_useropt_orig=$ac_useropt 880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 881 case $ac_user_opts in 882 *" 883"enable_$ac_useropt" 884"*) ;; 885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 886 ac_unrecognized_sep=', ';; 887 esac 888 eval enable_$ac_useropt=\$ac_optarg ;; 889 890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 892 | --exec | --exe | --ex) 893 ac_prev=exec_prefix ;; 894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 896 | --exec=* | --exe=* | --ex=*) 897 exec_prefix=$ac_optarg ;; 898 899 -gas | --gas | --ga | --g) 900 # Obsolete; use --with-gas. 901 with_gas=yes ;; 902 903 -help | --help | --hel | --he | -h) 904 ac_init_help=long ;; 905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 906 ac_init_help=recursive ;; 907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 908 ac_init_help=short ;; 909 910 -host | --host | --hos | --ho) 911 ac_prev=host_alias ;; 912 -host=* | --host=* | --hos=* | --ho=*) 913 host_alias=$ac_optarg ;; 914 915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 916 ac_prev=htmldir ;; 917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 918 | --ht=*) 919 htmldir=$ac_optarg ;; 920 921 -includedir | --includedir | --includedi | --included | --include \ 922 | --includ | --inclu | --incl | --inc) 923 ac_prev=includedir ;; 924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 925 | --includ=* | --inclu=* | --incl=* | --inc=*) 926 includedir=$ac_optarg ;; 927 928 -infodir | --infodir | --infodi | --infod | --info | --inf) 929 ac_prev=infodir ;; 930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 931 infodir=$ac_optarg ;; 932 933 -libdir | --libdir | --libdi | --libd) 934 ac_prev=libdir ;; 935 -libdir=* | --libdir=* | --libdi=* | --libd=*) 936 libdir=$ac_optarg ;; 937 938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 939 | --libexe | --libex | --libe) 940 ac_prev=libexecdir ;; 941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 942 | --libexe=* | --libex=* | --libe=*) 943 libexecdir=$ac_optarg ;; 944 945 -localedir | --localedir | --localedi | --localed | --locale) 946 ac_prev=localedir ;; 947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 948 localedir=$ac_optarg ;; 949 950 -localstatedir | --localstatedir | --localstatedi | --localstated \ 951 | --localstate | --localstat | --localsta | --localst | --locals) 952 ac_prev=localstatedir ;; 953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 955 localstatedir=$ac_optarg ;; 956 957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 958 ac_prev=mandir ;; 959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 960 mandir=$ac_optarg ;; 961 962 -nfp | --nfp | --nf) 963 # Obsolete; use --without-fp. 964 with_fp=no ;; 965 966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 967 | --no-cr | --no-c | -n) 968 no_create=yes ;; 969 970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 972 no_recursion=yes ;; 973 974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 976 | --oldin | --oldi | --old | --ol | --o) 977 ac_prev=oldincludedir ;; 978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 981 oldincludedir=$ac_optarg ;; 982 983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 984 ac_prev=prefix ;; 985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 986 prefix=$ac_optarg ;; 987 988 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 989 | --program-pre | --program-pr | --program-p) 990 ac_prev=program_prefix ;; 991 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 993 program_prefix=$ac_optarg ;; 994 995 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 996 | --program-suf | --program-su | --program-s) 997 ac_prev=program_suffix ;; 998 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1000 program_suffix=$ac_optarg ;; 1001 1002 -program-transform-name | --program-transform-name \ 1003 | --program-transform-nam | --program-transform-na \ 1004 | --program-transform-n | --program-transform- \ 1005 | --program-transform | --program-transfor \ 1006 | --program-transfo | --program-transf \ 1007 | --program-trans | --program-tran \ 1008 | --progr-tra | --program-tr | --program-t) 1009 ac_prev=program_transform_name ;; 1010 -program-transform-name=* | --program-transform-name=* \ 1011 | --program-transform-nam=* | --program-transform-na=* \ 1012 | --program-transform-n=* | --program-transform-=* \ 1013 | --program-transform=* | --program-transfor=* \ 1014 | --program-transfo=* | --program-transf=* \ 1015 | --program-trans=* | --program-tran=* \ 1016 | --progr-tra=* | --program-tr=* | --program-t=*) 1017 program_transform_name=$ac_optarg ;; 1018 1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1020 ac_prev=pdfdir ;; 1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1022 pdfdir=$ac_optarg ;; 1023 1024 -psdir | --psdir | --psdi | --psd | --ps) 1025 ac_prev=psdir ;; 1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1027 psdir=$ac_optarg ;; 1028 1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1030 | -silent | --silent | --silen | --sile | --sil) 1031 silent=yes ;; 1032 1033 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1034 | --runstate | --runstat | --runsta | --runst | --runs \ 1035 | --run | --ru | --r) 1036 ac_prev=runstatedir ;; 1037 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1038 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1039 | --run=* | --ru=* | --r=*) 1040 runstatedir=$ac_optarg ;; 1041 1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1043 ac_prev=sbindir ;; 1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1045 | --sbi=* | --sb=*) 1046 sbindir=$ac_optarg ;; 1047 1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1050 | --sharedst | --shareds | --shared | --share | --shar \ 1051 | --sha | --sh) 1052 ac_prev=sharedstatedir ;; 1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1056 | --sha=* | --sh=*) 1057 sharedstatedir=$ac_optarg ;; 1058 1059 -site | --site | --sit) 1060 ac_prev=site ;; 1061 -site=* | --site=* | --sit=*) 1062 site=$ac_optarg ;; 1063 1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1065 ac_prev=srcdir ;; 1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1067 srcdir=$ac_optarg ;; 1068 1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1070 | --syscon | --sysco | --sysc | --sys | --sy) 1071 ac_prev=sysconfdir ;; 1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1074 sysconfdir=$ac_optarg ;; 1075 1076 -target | --target | --targe | --targ | --tar | --ta | --t) 1077 ac_prev=target_alias ;; 1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1079 target_alias=$ac_optarg ;; 1080 1081 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1082 verbose=yes ;; 1083 1084 -version | --version | --versio | --versi | --vers | -V) 1085 ac_init_version=: ;; 1086 1087 -with-* | --with-*) 1088 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1089 # Reject names that are not valid shell variable names. 1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1091 as_fn_error $? "invalid package name: $ac_useropt" 1092 ac_useropt_orig=$ac_useropt 1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1094 case $ac_user_opts in 1095 *" 1096"with_$ac_useropt" 1097"*) ;; 1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1099 ac_unrecognized_sep=', ';; 1100 esac 1101 eval with_$ac_useropt=\$ac_optarg ;; 1102 1103 -without-* | --without-*) 1104 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1105 # Reject names that are not valid shell variable names. 1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1107 as_fn_error $? "invalid package name: $ac_useropt" 1108 ac_useropt_orig=$ac_useropt 1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1110 case $ac_user_opts in 1111 *" 1112"with_$ac_useropt" 1113"*) ;; 1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1115 ac_unrecognized_sep=', ';; 1116 esac 1117 eval with_$ac_useropt=no ;; 1118 1119 --x) 1120 # Obsolete; use --with-x. 1121 with_x=yes ;; 1122 1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1124 | --x-incl | --x-inc | --x-in | --x-i) 1125 ac_prev=x_includes ;; 1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1128 x_includes=$ac_optarg ;; 1129 1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1132 ac_prev=x_libraries ;; 1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1135 x_libraries=$ac_optarg ;; 1136 1137 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1138Try \`$0 --help' for more information" 1139 ;; 1140 1141 *=*) 1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1143 # Reject names that are not valid shell variable names. 1144 case $ac_envvar in #( 1145 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1146 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1147 esac 1148 eval $ac_envvar=\$ac_optarg 1149 export $ac_envvar ;; 1150 1151 *) 1152 # FIXME: should be removed in autoconf 3.0. 1153 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1155 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1156 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1157 ;; 1158 1159 esac 1160done 1161 1162if test -n "$ac_prev"; then 1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1164 as_fn_error $? "missing argument to $ac_option" 1165fi 1166 1167if test -n "$ac_unrecognized_opts"; then 1168 case $enable_option_checking in 1169 no) ;; 1170 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1171 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1172 esac 1173fi 1174 1175# Check all directory arguments for consistency. 1176for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1177 datadir sysconfdir sharedstatedir localstatedir includedir \ 1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1179 libdir localedir mandir runstatedir 1180do 1181 eval ac_val=\$$ac_var 1182 # Remove trailing slashes. 1183 case $ac_val in 1184 */ ) 1185 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1186 eval $ac_var=\$ac_val;; 1187 esac 1188 # Be sure to have absolute directory names. 1189 case $ac_val in 1190 [\\/$]* | ?:[\\/]* ) continue;; 1191 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1192 esac 1193 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1194done 1195 1196# There might be people who depend on the old broken behavior: `$host' 1197# used to hold the argument of --host etc. 1198# FIXME: To remove some day. 1199build=$build_alias 1200host=$host_alias 1201target=$target_alias 1202 1203# FIXME: To remove some day. 1204if test "x$host_alias" != x; then 1205 if test "x$build_alias" = x; then 1206 cross_compiling=maybe 1207 elif test "x$build_alias" != "x$host_alias"; then 1208 cross_compiling=yes 1209 fi 1210fi 1211 1212ac_tool_prefix= 1213test -n "$host_alias" && ac_tool_prefix=$host_alias- 1214 1215test "$silent" = yes && exec 6>/dev/null 1216 1217 1218ac_pwd=`pwd` && test -n "$ac_pwd" && 1219ac_ls_di=`ls -di .` && 1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1221 as_fn_error $? "working directory cannot be determined" 1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1223 as_fn_error $? "pwd does not report name of working directory" 1224 1225 1226# Find the source files, if location was not specified. 1227if test -z "$srcdir"; then 1228 ac_srcdir_defaulted=yes 1229 # Try the directory containing this script, then the parent directory. 1230 ac_confdir=`$as_dirname -- "$as_myself" || 1231$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1232 X"$as_myself" : 'X\(//\)[^/]' \| \ 1233 X"$as_myself" : 'X\(//\)$' \| \ 1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1235$as_echo X"$as_myself" | 1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1237 s//\1/ 1238 q 1239 } 1240 /^X\(\/\/\)[^/].*/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\/\)$/{ 1245 s//\1/ 1246 q 1247 } 1248 /^X\(\/\).*/{ 1249 s//\1/ 1250 q 1251 } 1252 s/.*/./; q'` 1253 srcdir=$ac_confdir 1254 if test ! -r "$srcdir/$ac_unique_file"; then 1255 srcdir=.. 1256 fi 1257else 1258 ac_srcdir_defaulted=no 1259fi 1260if test ! -r "$srcdir/$ac_unique_file"; then 1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1263fi 1264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1265ac_abs_confdir=`( 1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1267 pwd)` 1268# When building in place, set srcdir=. 1269if test "$ac_abs_confdir" = "$ac_pwd"; then 1270 srcdir=. 1271fi 1272# Remove unnecessary trailing slashes from srcdir. 1273# Double slashes in file names in object file debugging info 1274# mess up M-x gdb in Emacs. 1275case $srcdir in 1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1277esac 1278for ac_var in $ac_precious_vars; do 1279 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_env_${ac_var}_value=\$${ac_var} 1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1282 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1283done 1284 1285# 1286# Report the --help message. 1287# 1288if test "$ac_init_help" = "long"; then 1289 # Omit some internal or obsolete options to make the list less imposing. 1290 # This message is too long to be a string in the A/UX 3.1 sh. 1291 cat <<_ACEOF 1292\`configure' configures stringi 1.7 to adapt to many kinds of systems. 1293 1294Usage: $0 [OPTION]... [VAR=VALUE]... 1295 1296To assign environment variables (e.g., CC, CFLAGS...), specify them as 1297VAR=VALUE. See below for descriptions of some of the useful variables. 1298 1299Defaults for the options are specified in brackets. 1300 1301Configuration: 1302 -h, --help display this help and exit 1303 --help=short display options specific to this package 1304 --help=recursive display the short help of all the included packages 1305 -V, --version display version information and exit 1306 -q, --quiet, --silent do not print \`checking ...' messages 1307 --cache-file=FILE cache test results in FILE [disabled] 1308 -C, --config-cache alias for \`--cache-file=config.cache' 1309 -n, --no-create do not create output files 1310 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1311 1312Installation directories: 1313 --prefix=PREFIX install architecture-independent files in PREFIX 1314 [$ac_default_prefix] 1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1316 [PREFIX] 1317 1318By default, \`make install' will install all the files in 1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1320an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1321for instance \`--prefix=\$HOME'. 1322 1323For better control, use the options below. 1324 1325Fine tuning of the installation directories: 1326 --bindir=DIR user executables [EPREFIX/bin] 1327 --sbindir=DIR system admin executables [EPREFIX/sbin] 1328 --libexecdir=DIR program executables [EPREFIX/libexec] 1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1332 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1333 --libdir=DIR object code libraries [EPREFIX/lib] 1334 --includedir=DIR C header files [PREFIX/include] 1335 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1338 --infodir=DIR info documentation [DATAROOTDIR/info] 1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1340 --mandir=DIR man documentation [DATAROOTDIR/man] 1341 --docdir=DIR documentation root [DATAROOTDIR/doc/stringi] 1342 --htmldir=DIR html documentation [DOCDIR] 1343 --dvidir=DIR dvi documentation [DOCDIR] 1344 --pdfdir=DIR pdf documentation [DOCDIR] 1345 --psdir=DIR ps documentation [DOCDIR] 1346_ACEOF 1347 1348 cat <<\_ACEOF 1349_ACEOF 1350fi 1351 1352if test -n "$ac_init_help"; then 1353 case $ac_init_help in 1354 short | recursive ) echo "Configuration of stringi 1.7:";; 1355 esac 1356 cat <<\_ACEOF 1357 1358Optional Features: 1359 --disable-option-checking ignore unrecognized --enable/--with options 1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1362 --disable-cxx11 Disable C++11; if you build ICU4C from sources, make 1363 sure your C++ compiler supports the long long type. 1364 If C++11 is disabled, the older ICU4C 55.1 bundle 1365 will be used. 1366 --disable-icu-bundle Enforce system ICU. 1367 --disable-pkg-config Disable pkg-config for locating the system ICU; 1368 ICU4C will be compiled from sources (strongly 1369 recommended for portability across platforms). 1370 --enable-gcc-debug Enable -UNDEBUG when compiling stringi (for 1371 developers of stringi) 1372 --enable-gcc-pedantic Enable -Wall -Wextra -pedantic when compiling 1373 stringi with gcc/clang (for developers of stringi) 1374 1375Optional Packages: 1376 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1377 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1378 --with-extra-cflags=FLAGS 1379 Additional C compiler flags, see also the 1380 STRINGI_CFLAGS environment variable 1381 --with-extra-cppflags=FLAGS 1382 Additional C/C++ preprocessor flags, see also the 1383 STRINGI_CPPFLAGS environment variable 1384 --with-extra-cxxflags=FLAGS 1385 Additional C++ compiler flags, see also the 1386 STRINGI_CXXFLAGS environment variable 1387 --with-extra-ldflags=FLAGS 1388 Additional linker flags, see also the 1389 STRINGI_LDFLAGS environment variable 1390 --with-extra-libs=FLAGS Additional libraries to link against, see also the 1391 STRINGI_LIBS environment variable 1392 1393Some influential environment variables: 1394 R_HOME Override the R directory, e.g., /usr/lib64/R, where /usr/lib64 1395 is in the search path. Note that $R_HOME/bin/R should point to 1396 the R executable. 1397 CAT The 'cat' command used for generating the list of source files 1398 to compile. 1399 PKG_CONFIG The 'pkg-config' command to determine an appropriate build 1400 configuration for the system ICU. 1401 ICUDT_DIR Optional directory with an already downloaded ICU data archive 1402 (icudt; icu*.zip); either an absolute path or a path relative to 1403 <package source dir>/src; defaults to icuXX/data. 1404 PKG_CONFIG_PATH 1405 An optional list of directories to search for pkg-config's .pc 1406 files. 1407 CC Purposely ignored. 1408 CFLAGS Purposely ignored. 1409 CPP Purposely ignored. 1410 CPPFLAGS Purposely ignored. 1411 CXX Purposely ignored. 1412 CXXFLAGS Purposely ignored. 1413 LDFLAGS Purposely ignored. 1414 LIBS Purposely ignored. 1415 STRINGI_DISABLE_CXX11 1416 Disable C++11, see also --disable-cxx11. 1417 STRINGI_DISABLE_ICU_BUNDLE 1418 Enforce system ICU, see also --disable-icu-bundle. 1419 STRINGI_DISABLE_PKG_CONFIG 1420 Enforce our ICU source bundle, see also --disable-pkg-config. 1421 STRINGI_CFLAGS 1422 Additional C compiler flags, see also --with-extra-cflags. 1423 STRINGI_CPPFLAGS 1424 Additional C/C++ preprocessor flags, see also 1425 --with-extra-cppflags. 1426 STRINGI_CXXFLAGS 1427 Additional C++ compiler flags, see also --with-extra-cxxflags. 1428 STRINGI_LDFLAGS 1429 Additional linker flags, see also --with-extra-ldflags. 1430 STRINGI_LIBS 1431 Additional libraries to link against, see also 1432 --with-extra-libs. 1433 1434Use these variables to override the choices made by `configure' or to help 1435it to find libraries and programs with nonstandard names/locations. 1436 1437Report bugs to <https://stringi.gagolewski.com>. 1438_ACEOF 1439ac_status=$? 1440fi 1441 1442if test "$ac_init_help" = "recursive"; then 1443 # If there are subdirs, report their specific --help. 1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1445 test -d "$ac_dir" || 1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1447 continue 1448 ac_builddir=. 1449 1450case "$ac_dir" in 1451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1452*) 1453 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1454 # A ".." for each directory in $ac_dir_suffix. 1455 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1456 case $ac_top_builddir_sub in 1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1459 esac ;; 1460esac 1461ac_abs_top_builddir=$ac_pwd 1462ac_abs_builddir=$ac_pwd$ac_dir_suffix 1463# for backward compatibility: 1464ac_top_builddir=$ac_top_build_prefix 1465 1466case $srcdir in 1467 .) # We are building in place. 1468 ac_srcdir=. 1469 ac_top_srcdir=$ac_top_builddir_sub 1470 ac_abs_top_srcdir=$ac_pwd ;; 1471 [\\/]* | ?:[\\/]* ) # Absolute name. 1472 ac_srcdir=$srcdir$ac_dir_suffix; 1473 ac_top_srcdir=$srcdir 1474 ac_abs_top_srcdir=$srcdir ;; 1475 *) # Relative name. 1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1477 ac_top_srcdir=$ac_top_build_prefix$srcdir 1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1479esac 1480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1481 1482 cd "$ac_dir" || { ac_status=$?; continue; } 1483 # Check for guested configure. 1484 if test -f "$ac_srcdir/configure.gnu"; then 1485 echo && 1486 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1487 elif test -f "$ac_srcdir/configure"; then 1488 echo && 1489 $SHELL "$ac_srcdir/configure" --help=recursive 1490 else 1491 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1492 fi || ac_status=$? 1493 cd "$ac_pwd" || { ac_status=$?; break; } 1494 done 1495fi 1496 1497test -n "$ac_init_help" && exit $ac_status 1498if $ac_init_version; then 1499 cat <<\_ACEOF 1500stringi configure 1.7 1501generated by GNU Autoconf 2.69 1502 1503Copyright (C) 2012 Free Software Foundation, Inc. 1504This configure script is free software; the Free Software Foundation 1505gives unlimited permission to copy, distribute and modify it. 1506_ACEOF 1507 exit 1508fi 1509 1510## ------------------------ ## 1511## Autoconf initialization. ## 1512## ------------------------ ## 1513 1514# ac_fn_c_try_compile LINENO 1515# -------------------------- 1516# Try to compile conftest.$ac_ext, and return whether this succeeded. 1517ac_fn_c_try_compile () 1518{ 1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1520 rm -f conftest.$ac_objext 1521 if { { ac_try="$ac_compile" 1522case "(($ac_try" in 1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1524 *) ac_try_echo=$ac_try;; 1525esac 1526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1527$as_echo "$ac_try_echo"; } >&5 1528 (eval "$ac_compile") 2>conftest.err 1529 ac_status=$? 1530 if test -s conftest.err; then 1531 grep -v '^ *+' conftest.err >conftest.er1 1532 cat conftest.er1 >&5 1533 mv -f conftest.er1 conftest.err 1534 fi 1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1536 test $ac_status = 0; } && { 1537 test -z "$ac_c_werror_flag" || 1538 test ! -s conftest.err 1539 } && test -s conftest.$ac_objext; then : 1540 ac_retval=0 1541else 1542 $as_echo "$as_me: failed program was:" >&5 1543sed 's/^/| /' conftest.$ac_ext >&5 1544 1545 ac_retval=1 1546fi 1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1548 as_fn_set_status $ac_retval 1549 1550} # ac_fn_c_try_compile 1551 1552# ac_fn_c_try_cpp LINENO 1553# ---------------------- 1554# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1555ac_fn_c_try_cpp () 1556{ 1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1558 if { { ac_try="$ac_cpp conftest.$ac_ext" 1559case "(($ac_try" in 1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1561 *) ac_try_echo=$ac_try;; 1562esac 1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1564$as_echo "$ac_try_echo"; } >&5 1565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1566 ac_status=$? 1567 if test -s conftest.err; then 1568 grep -v '^ *+' conftest.err >conftest.er1 1569 cat conftest.er1 >&5 1570 mv -f conftest.er1 conftest.err 1571 fi 1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573 test $ac_status = 0; } > conftest.i && { 1574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1575 test ! -s conftest.err 1576 }; then : 1577 ac_retval=0 1578else 1579 $as_echo "$as_me: failed program was:" >&5 1580sed 's/^/| /' conftest.$ac_ext >&5 1581 1582 ac_retval=1 1583fi 1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1585 as_fn_set_status $ac_retval 1586 1587} # ac_fn_c_try_cpp 1588 1589# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1590# ------------------------------------------------------- 1591# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1592# the include files in INCLUDES and setting the cache variable VAR 1593# accordingly. 1594ac_fn_c_check_header_mongrel () 1595{ 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 if eval \${$3+:} false; then : 1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1599$as_echo_n "checking for $2... " >&6; } 1600if eval \${$3+:} false; then : 1601 $as_echo_n "(cached) " >&6 1602fi 1603eval ac_res=\$$3 1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1605$as_echo "$ac_res" >&6; } 1606else 1607 # Is the header compilable? 1608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1609$as_echo_n "checking $2 usability... " >&6; } 1610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1611/* end confdefs.h. */ 1612$4 1613#include <$2> 1614_ACEOF 1615if ac_fn_c_try_compile "$LINENO"; then : 1616 ac_header_compiler=yes 1617else 1618 ac_header_compiler=no 1619fi 1620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1622$as_echo "$ac_header_compiler" >&6; } 1623 1624# Is the header present? 1625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1626$as_echo_n "checking $2 presence... " >&6; } 1627cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1628/* end confdefs.h. */ 1629#include <$2> 1630_ACEOF 1631if ac_fn_c_try_cpp "$LINENO"; then : 1632 ac_header_preproc=yes 1633else 1634 ac_header_preproc=no 1635fi 1636rm -f conftest.err conftest.i conftest.$ac_ext 1637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1638$as_echo "$ac_header_preproc" >&6; } 1639 1640# So? What about this header? 1641case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1642 yes:no: ) 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1644$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1646$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1647 ;; 1648 no:yes:* ) 1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1650$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1652$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1654$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1656$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1658$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1659( $as_echo "## --------------------------------------------- ## 1660## Report this to https://stringi.gagolewski.com ## 1661## --------------------------------------------- ##" 1662 ) | sed "s/^/$as_me: WARNING: /" >&2 1663 ;; 1664esac 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666$as_echo_n "checking for $2... " >&6; } 1667if eval \${$3+:} false; then : 1668 $as_echo_n "(cached) " >&6 1669else 1670 eval "$3=\$ac_header_compiler" 1671fi 1672eval ac_res=\$$3 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1674$as_echo "$ac_res" >&6; } 1675fi 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 1678} # ac_fn_c_check_header_mongrel 1679 1680# ac_fn_c_try_run LINENO 1681# ---------------------- 1682# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1683# that executables *can* be run. 1684ac_fn_c_try_run () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 if { { ac_try="$ac_link" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693$as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_link") 2>&5 1695 ac_status=$? 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1698 { { case "(($ac_try" in 1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1700 *) ac_try_echo=$ac_try;; 1701esac 1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1703$as_echo "$ac_try_echo"; } >&5 1704 (eval "$ac_try") 2>&5 1705 ac_status=$? 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; }; }; then : 1708 ac_retval=0 1709else 1710 $as_echo "$as_me: program exited with status $ac_status" >&5 1711 $as_echo "$as_me: failed program was:" >&5 1712sed 's/^/| /' conftest.$ac_ext >&5 1713 1714 ac_retval=$ac_status 1715fi 1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_run 1721 1722# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1723# ------------------------------------------------------- 1724# Tests whether HEADER exists and can be compiled using the include files in 1725# INCLUDES, setting the cache variable VAR accordingly. 1726ac_fn_c_check_header_compile () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730$as_echo_n "checking for $2... " >&6; } 1731if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733else 1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735/* end confdefs.h. */ 1736$4 1737#include <$2> 1738_ACEOF 1739if ac_fn_c_try_compile "$LINENO"; then : 1740 eval "$3=yes" 1741else 1742 eval "$3=no" 1743fi 1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1745fi 1746eval ac_res=\$$3 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1748$as_echo "$ac_res" >&6; } 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 1751} # ac_fn_c_check_header_compile 1752 1753# ac_fn_cxx_try_compile LINENO 1754# ---------------------------- 1755# Try to compile conftest.$ac_ext, and return whether this succeeded. 1756ac_fn_cxx_try_compile () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 rm -f conftest.$ac_objext 1760 if { { ac_try="$ac_compile" 1761case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_compile") 2>conftest.err 1768 ac_status=$? 1769 if test -s conftest.err; then 1770 grep -v '^ *+' conftest.err >conftest.er1 1771 cat conftest.er1 >&5 1772 mv -f conftest.er1 conftest.err 1773 fi 1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1775 test $ac_status = 0; } && { 1776 test -z "$ac_cxx_werror_flag" || 1777 test ! -s conftest.err 1778 } && test -s conftest.$ac_objext; then : 1779 ac_retval=0 1780else 1781 $as_echo "$as_me: failed program was:" >&5 1782sed 's/^/| /' conftest.$ac_ext >&5 1783 1784 ac_retval=1 1785fi 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1787 as_fn_set_status $ac_retval 1788 1789} # ac_fn_cxx_try_compile 1790 1791# ac_fn_cxx_try_link LINENO 1792# ------------------------- 1793# Try to link conftest.$ac_ext, and return whether this succeeded. 1794ac_fn_cxx_try_link () 1795{ 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 rm -f conftest.$ac_objext conftest$ac_exeext 1798 if { { ac_try="$ac_link" 1799case "(($ac_try" in 1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1801 *) ac_try_echo=$ac_try;; 1802esac 1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1804$as_echo "$ac_try_echo"; } >&5 1805 (eval "$ac_link") 2>conftest.err 1806 ac_status=$? 1807 if test -s conftest.err; then 1808 grep -v '^ *+' conftest.err >conftest.er1 1809 cat conftest.er1 >&5 1810 mv -f conftest.er1 conftest.err 1811 fi 1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1813 test $ac_status = 0; } && { 1814 test -z "$ac_cxx_werror_flag" || 1815 test ! -s conftest.err 1816 } && test -s conftest$ac_exeext && { 1817 test "$cross_compiling" = yes || 1818 test -x conftest$ac_exeext 1819 }; then : 1820 ac_retval=0 1821else 1822 $as_echo "$as_me: failed program was:" >&5 1823sed 's/^/| /' conftest.$ac_ext >&5 1824 1825 ac_retval=1 1826fi 1827 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1828 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1829 # interfere with the next link command; also delete a directory that is 1830 # left behind by Apple's compiler. We do this before executing the actions. 1831 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 as_fn_set_status $ac_retval 1834 1835} # ac_fn_cxx_try_link 1836cat >config.log <<_ACEOF 1837This file contains any messages produced by compilers while 1838running configure, to aid debugging if configure makes a mistake. 1839 1840It was created by stringi $as_me 1.7, which was 1841generated by GNU Autoconf 2.69. Invocation command line was 1842 1843 $ $0 $@ 1844 1845_ACEOF 1846exec 5>>config.log 1847{ 1848cat <<_ASUNAME 1849## --------- ## 1850## Platform. ## 1851## --------- ## 1852 1853hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1854uname -m = `(uname -m) 2>/dev/null || echo unknown` 1855uname -r = `(uname -r) 2>/dev/null || echo unknown` 1856uname -s = `(uname -s) 2>/dev/null || echo unknown` 1857uname -v = `(uname -v) 2>/dev/null || echo unknown` 1858 1859/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1860/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1861 1862/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1863/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1864/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1865/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1866/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1867/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1868/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1869 1870_ASUNAME 1871 1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1873for as_dir in $PATH 1874do 1875 IFS=$as_save_IFS 1876 test -z "$as_dir" && as_dir=. 1877 $as_echo "PATH: $as_dir" 1878 done 1879IFS=$as_save_IFS 1880 1881} >&5 1882 1883cat >&5 <<_ACEOF 1884 1885 1886## ----------- ## 1887## Core tests. ## 1888## ----------- ## 1889 1890_ACEOF 1891 1892 1893# Keep a trace of the command line. 1894# Strip out --no-create and --no-recursion so they do not pile up. 1895# Strip out --silent because we don't want to record it for future runs. 1896# Also quote any args containing shell meta-characters. 1897# Make two passes to allow for proper duplicate-argument suppression. 1898ac_configure_args= 1899ac_configure_args0= 1900ac_configure_args1= 1901ac_must_keep_next=false 1902for ac_pass in 1 2 1903do 1904 for ac_arg 1905 do 1906 case $ac_arg in 1907 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1909 | -silent | --silent | --silen | --sile | --sil) 1910 continue ;; 1911 *\'*) 1912 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1913 esac 1914 case $ac_pass in 1915 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1916 2) 1917 as_fn_append ac_configure_args1 " '$ac_arg'" 1918 if test $ac_must_keep_next = true; then 1919 ac_must_keep_next=false # Got value, back to normal. 1920 else 1921 case $ac_arg in 1922 *=* | --config-cache | -C | -disable-* | --disable-* \ 1923 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1924 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1925 | -with-* | --with-* | -without-* | --without-* | --x) 1926 case "$ac_configure_args0 " in 1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1928 esac 1929 ;; 1930 -* ) ac_must_keep_next=true ;; 1931 esac 1932 fi 1933 as_fn_append ac_configure_args " '$ac_arg'" 1934 ;; 1935 esac 1936 done 1937done 1938{ ac_configure_args0=; unset ac_configure_args0;} 1939{ ac_configure_args1=; unset ac_configure_args1;} 1940 1941# When interrupted or exit'd, cleanup temporary files, and complete 1942# config.log. We remove comments because anyway the quotes in there 1943# would cause problems or look ugly. 1944# WARNING: Use '\'' to represent an apostrophe within the trap. 1945# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1946trap 'exit_status=$? 1947 # Save into config.log some information that might help in debugging. 1948 { 1949 echo 1950 1951 $as_echo "## ---------------- ## 1952## Cache variables. ## 1953## ---------------- ##" 1954 echo 1955 # The following way of writing the cache mishandles newlines in values, 1956( 1957 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1958 eval ac_val=\$$ac_var 1959 case $ac_val in #( 1960 *${as_nl}*) 1961 case $ac_var in #( 1962 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1963$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1964 esac 1965 case $ac_var in #( 1966 _ | IFS | as_nl) ;; #( 1967 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1968 *) { eval $ac_var=; unset $ac_var;} ;; 1969 esac ;; 1970 esac 1971 done 1972 (set) 2>&1 | 1973 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1974 *${as_nl}ac_space=\ *) 1975 sed -n \ 1976 "s/'\''/'\''\\\\'\'''\''/g; 1977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1978 ;; #( 1979 *) 1980 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1981 ;; 1982 esac | 1983 sort 1984) 1985 echo 1986 1987 $as_echo "## ----------------- ## 1988## Output variables. ## 1989## ----------------- ##" 1990 echo 1991 for ac_var in $ac_subst_vars 1992 do 1993 eval ac_val=\$$ac_var 1994 case $ac_val in 1995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1996 esac 1997 $as_echo "$ac_var='\''$ac_val'\''" 1998 done | sort 1999 echo 2000 2001 if test -n "$ac_subst_files"; then 2002 $as_echo "## ------------------- ## 2003## File substitutions. ## 2004## ------------------- ##" 2005 echo 2006 for ac_var in $ac_subst_files 2007 do 2008 eval ac_val=\$$ac_var 2009 case $ac_val in 2010 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2011 esac 2012 $as_echo "$ac_var='\''$ac_val'\''" 2013 done | sort 2014 echo 2015 fi 2016 2017 if test -s confdefs.h; then 2018 $as_echo "## ----------- ## 2019## confdefs.h. ## 2020## ----------- ##" 2021 echo 2022 cat confdefs.h 2023 echo 2024 fi 2025 test "$ac_signal" != 0 && 2026 $as_echo "$as_me: caught signal $ac_signal" 2027 $as_echo "$as_me: exit $exit_status" 2028 } >&5 2029 rm -f core *.core core.conftest.* && 2030 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2031 exit $exit_status 2032' 0 2033for ac_signal in 1 2 13 15; do 2034 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2035done 2036ac_signal=0 2037 2038# confdefs.h avoids OS command line length limits that DEFS can exceed. 2039rm -f -r conftest* confdefs.h 2040 2041$as_echo "/* confdefs.h */" > confdefs.h 2042 2043# Predefined preprocessor variables. 2044 2045cat >>confdefs.h <<_ACEOF 2046#define PACKAGE_NAME "$PACKAGE_NAME" 2047_ACEOF 2048 2049cat >>confdefs.h <<_ACEOF 2050#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2051_ACEOF 2052 2053cat >>confdefs.h <<_ACEOF 2054#define PACKAGE_VERSION "$PACKAGE_VERSION" 2055_ACEOF 2056 2057cat >>confdefs.h <<_ACEOF 2058#define PACKAGE_STRING "$PACKAGE_STRING" 2059_ACEOF 2060 2061cat >>confdefs.h <<_ACEOF 2062#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2063_ACEOF 2064 2065cat >>confdefs.h <<_ACEOF 2066#define PACKAGE_URL "$PACKAGE_URL" 2067_ACEOF 2068 2069 2070# Let the site file select an alternate cache file if it wants to. 2071# Prefer an explicitly selected file to automatically selected ones. 2072ac_site_file1=NONE 2073ac_site_file2=NONE 2074if test -n "$CONFIG_SITE"; then 2075 # We do not want a PATH search for config.site. 2076 case $CONFIG_SITE in #(( 2077 -*) ac_site_file1=./$CONFIG_SITE;; 2078 */*) ac_site_file1=$CONFIG_SITE;; 2079 *) ac_site_file1=./$CONFIG_SITE;; 2080 esac 2081elif test "x$prefix" != xNONE; then 2082 ac_site_file1=$prefix/share/config.site 2083 ac_site_file2=$prefix/etc/config.site 2084else 2085 ac_site_file1=$ac_default_prefix/share/config.site 2086 ac_site_file2=$ac_default_prefix/etc/config.site 2087fi 2088for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2089do 2090 test "x$ac_site_file" = xNONE && continue 2091 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2093$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2094 sed 's/^/| /' "$ac_site_file" >&5 2095 . "$ac_site_file" \ 2096 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2098as_fn_error $? "failed to load site script $ac_site_file 2099See \`config.log' for more details" "$LINENO" 5; } 2100 fi 2101done 2102 2103if test -r "$cache_file"; then 2104 # Some versions of bash will fail to source /dev/null (special files 2105 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2106 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2108$as_echo "$as_me: loading cache $cache_file" >&6;} 2109 case $cache_file in 2110 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2111 *) . "./$cache_file";; 2112 esac 2113 fi 2114else 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2116$as_echo "$as_me: creating cache $cache_file" >&6;} 2117 >$cache_file 2118fi 2119 2120# Check that the precious variables saved in the cache have kept the same 2121# value. 2122ac_cache_corrupted=false 2123for ac_var in $ac_precious_vars; do 2124 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2125 eval ac_new_set=\$ac_env_${ac_var}_set 2126 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2127 eval ac_new_val=\$ac_env_${ac_var}_value 2128 case $ac_old_set,$ac_new_set in 2129 set,) 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2131$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2132 ac_cache_corrupted=: ;; 2133 ,set) 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2135$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2136 ac_cache_corrupted=: ;; 2137 ,);; 2138 *) 2139 if test "x$ac_old_val" != "x$ac_new_val"; then 2140 # differences in whitespace do not lead to failure. 2141 ac_old_val_w=`echo x $ac_old_val` 2142 ac_new_val_w=`echo x $ac_new_val` 2143 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2145$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2146 ac_cache_corrupted=: 2147 else 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2149$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2150 eval $ac_var=\$ac_old_val 2151 fi 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2153$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2155$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2156 fi;; 2157 esac 2158 # Pass precious variables to config.status. 2159 if test "$ac_new_set" = set; then 2160 case $ac_new_val in 2161 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2162 *) ac_arg=$ac_var=$ac_new_val ;; 2163 esac 2164 case " $ac_configure_args " in 2165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2166 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2167 esac 2168 fi 2169done 2170if $ac_cache_corrupted; then 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2174$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2175 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2176fi 2177## -------------------- ## 2178## Main body of script. ## 2179## -------------------- ## 2180 2181ac_ext=c 2182ac_cpp='$CPP $CPPFLAGS' 2183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2185ac_compiler_gnu=$ac_cv_c_compiler_gnu 2186 2187 2188 2189ICU_VERSION_NEEDED="55" # minimal version of ICU4C required to build stringi 2190# We still support ICU 55.1 because of... yes, Solaris. 2191# It was a good exercise, though. 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209##### OPTIONS ################################################################# 2210 2211# shell variables/arguments accepted: 2212# R_HOME - R's home dir 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235# AC_ARG_VAR([CXXCPP], [Purposely ignored.]) 2236 2237 2238 2239 2240 2241 2242 2243 2244# Check whether --enable-cxx11 was given. 2245if test "${enable_cxx11+set}" = set; then : 2246 enableval=$enable_cxx11; 2247fi 2248 2249 2250 2251 2252 2253if test "x$enable_cxx11" != "xno" -a -z "${STRINGI_DISABLE_CXX11}"; then 2254 enable_cxx11="yes" 2255else 2256 enable_cxx11="no" 2257fi 2258 2259 2260 2261# Check whether --enable-icu_bundle was given. 2262if test "${enable_icu_bundle+set}" = set; then : 2263 enableval=$enable_icu_bundle; 2264fi 2265 2266 2267 2268 2269if test "x$enable_icu_bundle" != "xno" -a -z "${STRINGI_DISABLE_ICU_BUNDLE}"; then 2270 enable_icu_bundle="yes" 2271else 2272 enable_icu_bundle="no" 2273fi 2274 2275 2276 2277 2278 2279 2280# Check whether --enable-pkg_config was given. 2281if test "${enable_pkg_config+set}" = set; then : 2282 enableval=$enable_pkg_config; 2283fi 2284 2285 2286 2287 2288if test "x$enable_pkg_config" != "xno" -a -z "${STRINGI_DISABLE_PKG_CONFIG}"; then 2289 enable_pkg_config="yes" 2290else 2291 enable_pkg_config="no" 2292fi 2293 2294 2295# Check whether --enable-gcc_debug was given. 2296if test "${enable_gcc_debug+set}" = set; then : 2297 enableval=$enable_gcc_debug; 2298fi 2299 2300 2301if test "x$enable_gcc_debug" = "xyes"; then 2302 enable_gcc_debug="yes" 2303else 2304 enable_gcc_debug="no" 2305fi 2306 2307 2308# Check whether --enable-gcc_pedantic was given. 2309if test "${enable_gcc_pedantic+set}" = set; then : 2310 enableval=$enable_gcc_pedantic; 2311fi 2312 2313 2314if test "x$enable_gcc_pedantic" = "xyes"; then 2315 enable_gcc_pedantic="yes" 2316else 2317 enable_gcc_pedantic="no" 2318fi 2319 2320 2321 2322# Check whether --with-extra_cflags was given. 2323if test "${with_extra_cflags+set}" = set; then : 2324 withval=$with_extra_cflags; 2325fi 2326 2327 2328 2329# Check whether --with-extra_cppflags was given. 2330if test "${with_extra_cppflags+set}" = set; then : 2331 withval=$with_extra_cppflags; 2332fi 2333 2334 2335 2336# Check whether --with-extra_cxxflags was given. 2337if test "${with_extra_cxxflags+set}" = set; then : 2338 withval=$with_extra_cxxflags; 2339fi 2340 2341 2342 2343# Check whether --with-extra_ldflags was given. 2344if test "${with_extra_ldflags+set}" = set; then : 2345 withval=$with_extra_ldflags; 2346fi 2347 2348 2349 2350# Check whether --with-extra_libs was given. 2351if test "${with_extra_libs+set}" = set; then : 2352 withval=$with_extra_libs; 2353fi 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367with_extra_cflags="${with_extra_cflags} ${STRINGI_CFLAGS}" 2368with_extra_cppflags="${with_extra_cppflags} ${STRINGI_CPPFLAGS}" 2369with_extra_cxxflags="${with_extra_cxxflags} ${STRINGI_CXXFLAGS}" 2370with_extra_ldflags="${with_extra_ldflags} ${STRINGI_LDFLAGS}" 2371with_extra_libs="${with_extra_libs} ${STRINGI_LIBS}" 2372 2373##### 2374 2375MSG_CONFIG_FAIL=" 2376*** ********************************************************************* 2377*** stringi cannot be built with these settings in place. 2378*** See the INSTALL file for the solutions to the most common problems. 2379*** Moreover, explore the list of open and closed issues at 2380*** https://github.com/gagolews/stringi/issues/ 2381*** ********************************************************************* 2382" 2383 2384 2385##### CHECK FOR R ############################################################# 2386 2387# this is inspired by the "Writing R Extensions" manual: 2388# determine R_HOME directory... 2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for R_HOME" >&5 2390$as_echo_n "checking for R_HOME... " >&6; } 2391if test -z "${R_HOME}"; then 2392 R_HOME=`R RHOME` # set R_HOME if it has not been set already 2393fi 2394if test -z "${R_HOME}"; then 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2396$as_echo "no" >&6; } 2397 echo "*** Could not determine R_HOME. Is R installed?" 2398 exit 1 2399fi 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $R_HOME" >&5 2401$as_echo "$R_HOME" >&6; } 2402 2403 2404 2405# ...and then R_PATH 2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for R" >&5 2407$as_echo_n "checking for R... " >&6; } 2408R_PATH="${R_HOME}/bin/R" # see "Writing R Extensions" 2409if test ! -e "${R_PATH}"; then 2410 # if it was determined by calling `R RHOME`, then this is likely a bug 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2412$as_echo "no" >&6; } 2413 echo "*** Could not find R at R_HOME/bin/R, i.e., ${R_HOME}/bin/R" 2414 exit 1 2415fi 2416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $R_PATH" >&5 2417$as_echo "$R_PATH" >&6; } 2418 2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for endianness" >&5 2420$as_echo_n "checking for endianness... " >&6; } 2421"${R_PATH}" --vanilla --slave -e "if (.Platform\$endian!=\"little\") q(\"no\", 1, FALSE)" 2422if test $? -ne 0; then 2423 ICUDT_ENDIANNESS="big" 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: big" >&5 2425$as_echo "big" >&6; } 2426else 2427 ICUDT_ENDIANNESS="little" 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: little" >&5 2429$as_echo "little" >&6; } 2430fi 2431 2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for R >= 3.1.0 for C++11 use" >&5 2433$as_echo_n "checking for R >= 3.1.0 for C++11 use... " >&6; } 2434R_GE_31=`"${R_PATH}" --vanilla --slave -e 'cat(if (getRversion() >= numeric_version("3.1.0")) "yes" else "no")'` 2435if test "x$R_GE_31" = "xyes"; then 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2437$as_echo "yes" >&6; } 2438else 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2440$as_echo "no" >&6; } 2441 echo "*** Support for R < 3.1 is deprecated." 2442 echo "*** Whatever follows, comes with no warranty." 2443 # TODO: exit 1 (Depends: R (>= 3.1)) 2444 # TODO: echo "${MSG_CONFIG_FAIL}" 2445 # TODO: in the distant future, support only R >= 3.4 2446 2447 if test "x$enable_cxx11" = "xyes"; then 2448 echo "*** Disabling C++11 use." 2449 enable_cxx11="no" 2450 fi 2451fi 2452 2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for R < 3.4.0 for CXX1X flag use" >&5 2454$as_echo_n "checking for R < 3.4.0 for CXX1X flag use... " >&6; } 2455R_GE_34=`"${R_PATH}" --vanilla --slave -e 'cat(if (getRversion() >= numeric_version("3.4.0")) "yes" else "no")'` 2456if test "x$R_GE_34" = "xyes"; then 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2458$as_echo "no" >&6; } 2459 STRINGI_CXX1X="CXX11" 2460else 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2462$as_echo "yes" >&6; } 2463 STRINGI_CXX1X="CXX1X" 2464fi 2465 2466 2467 2468 2469##### CHECK FOR CAT ############################################################ 2470 2471# Check for 'cat' and get full path. 2472# Extract the first word of "cat", so it can be a program name with args. 2473set dummy cat; ac_word=$2 2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2475$as_echo_n "checking for $ac_word... " >&6; } 2476if ${ac_cv_path_CAT+:} false; then : 2477 $as_echo_n "(cached) " >&6 2478else 2479 case $CAT in 2480 [\\/]* | ?:[\\/]*) 2481 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 2482 ;; 2483 *) 2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2485for as_dir in $PATH 2486do 2487 IFS=$as_save_IFS 2488 test -z "$as_dir" && as_dir=. 2489 for ac_exec_ext in '' $ac_executable_extensions; do 2490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2491 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2493 break 2 2494 fi 2495done 2496 done 2497IFS=$as_save_IFS 2498 2499 ;; 2500esac 2501fi 2502CAT=$ac_cv_path_CAT 2503if test -n "$CAT"; then 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 2505$as_echo "$CAT" >&6; } 2506else 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2508$as_echo "no" >&6; } 2509fi 2510 2511 2512if test "x$CAT" = "x"; then 2513 echo "*** The 'cat' command cannot be found." 2514 echo "*** Set the environment variable 'CAT' appropriately." 2515 exit 1 2516fi 2517 2518 2519###### SETUP COMPILER FLAGS FOR TESTING ###################################### 2520 2521if test "x$enable_gcc_debug" = "xyes"; then 2522 # -fsanitize=address -fno-omit-frame-pointer 2523 with_extra_cppflags="${with_extra_cppflags} -DDEBUG -UNDEBUG" 2524else 2525 with_extra_cppflags="${with_extra_cppflags} -UDEBUG -DNDEBUG" 2526fi 2527 2528if test "x$enable_gcc_pedantic" = "xyes"; then 2529 with_extra_cflags="${with_extra_cflags} -Wall -Wextra -pedantic" 2530 with_extra_cxxflags="${with_extra_cxxflags} -Wall -Wextra -pedantic" 2531fi 2532 2533 2534if test -z "${ICUDT_DIR}"; then 2535 ICUDT_DIR_FORCE="yes" 2536else 2537 ICUDT_DIR_FORCE="no" 2538fi 2539 2540 2541 2542### AUXILIARY FUNCTIONS ######################################################## 2543 2544disable_cxx11() { 2545 echo "*** Trying with C++11 compiler disabled." 2546 enable_cxx11="no" 2547 # unset cached C++ compiler features: 2548 unset ac_cv_cxx_compiler_gnu 2549 unset ac_cv_c_compiler_gnu 2550 unset ac_cv_prog_cxx_g 2551 unset ac_cv_prog_cc_g 2552 unset ac_cv_prog_cc_c89 2553 unset ac_cv_prog_CPP 2554 unset ac_cv_prog_CXX 2555 unset ac_cv_prog_CC 2556 unset ac_cv_header_stdc 2557 unset ac_cv_prog_ac_ct_CXX 2558 unset ac_cv_prog_ac_ct_CC 2559 unset ac_cv_cxx_namespaces 2560 unset ac_cv_cxx_have_stl 2561 unset ac_cv_objext 2562 return 0 2563} 2564 2565 2566 2567 2568 2569 2570################################################################################ 2571 2572while true; do 2573 # if C++11 support is enabled, we'll try it first; 2574 # if it fails, we'll switch to C++98 2575 # if this fails again, we'll stop right there 2576 2577 # TODO: In year 2069, support C++11 only with R >= 3.4 <== because Solaris 2578 2579 2580 CC=`"${R_PATH}" CMD config CC` 2581 #CPP=`"${R_PATH}" CMD config CXXCPP` 2582 LD=`"${R_PATH}" CMD config SHLIB_CXXLD` 2583 CFLAGS_base=`"${R_PATH}" CMD config CFLAGS` 2584 CFLAGS_pic=`"${R_PATH}" CMD config CPICFLAGS` 2585 CFLAGS="${CFLAGS_base} ${CFLAGS_pic}" 2586 CPPFLAGS=`"${R_PATH}" CMD config CPPFLAGS` 2587 LIBS= 2588 LDFLAGS= 2589 2590 if test "x$enable_cxx11" = "xyes"; then 2591 CXX_tmp1=`"${R_PATH}" CMD config ${STRINGI_CXX1X}` 2592 CXX_tmp2=`"${R_PATH}" CMD config ${STRINGI_CXX1X}STD` 2593 CXX="${CXX_tmp1} ${CXX_tmp2}" 2594 CXXFLAGS_base=`"${R_PATH}" CMD config ${STRINGI_CXX1X}FLAGS` 2595 CXXFLAGS_pic=`"${R_PATH}" CMD config ${STRINGI_CXX1X}PICFLAGS` 2596 CXXFLAGS="${CXXFLAGS_base} ${CXXFLAGS_pic}" 2597 STRINGI_CXXSTD="CXX_STD=CXX11" 2598 ICU_BUNDLE_VERSION="69" 2599 else 2600 CXX=`"${R_PATH}" CMD config CXX` 2601 CXXFLAGS_base=`"${R_PATH}" CMD config CXXFLAGS` 2602 CXXFLAGS_pic=`"${R_PATH}" CMD config CXXPICFLAGS` 2603 CXXFLAGS="${CXXFLAGS_base} ${CXXFLAGS_pic}" 2604 STRINGI_CXXSTD="" 2605 ICU_BUNDLE_VERSION="55" 2606 fi 2607 2608 CFLAGS="${CFLAGS} ${with_extra_cflags}" 2609 CXXFLAGS="${CXXFLAGS} ${with_extra_cxxflags}" 2610 CPPFLAGS="${CPPFLAGS} ${with_extra_cppflags}" 2611 LDFLAGS="${LDFLAGS} ${with_extra_ldflags}" 2612 LIBS="${LIBS} ${with_extra_libs}" 2613 2614 2615 # set ICUDT_DIR 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local ICUDT_DIR" >&5 2617$as_echo_n "checking for local ICUDT_DIR... " >&6; } 2618 if test "x$ICUDT_DIR_FORCE" = "xyes"; then 2619 # Remember to update the configure.win file too 2620 ICUDT_DIR="icu${ICU_BUNDLE_VERSION}/data" 2621 fi 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICUDT_DIR" >&5 2623$as_echo "$ICUDT_DIR" >&6; } 2624 2625 2626 ac_ext=c 2627ac_cpp='$CPP $CPPFLAGS' 2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2630ac_compiler_gnu=$ac_cv_c_compiler_gnu 2631 2632 ac_ext=c 2633ac_cpp='$CPP $CPPFLAGS' 2634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2636ac_compiler_gnu=$ac_cv_c_compiler_gnu 2637if test -n "$ac_tool_prefix"; then 2638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2639set dummy ${ac_tool_prefix}gcc; ac_word=$2 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2641$as_echo_n "checking for $ac_word... " >&6; } 2642if ${ac_cv_prog_CC+:} false; then : 2643 $as_echo_n "(cached) " >&6 2644else 2645 if test -n "$CC"; then 2646 ac_cv_prog_CC="$CC" # Let the user override the test. 2647else 2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649for as_dir in $PATH 2650do 2651 IFS=$as_save_IFS 2652 test -z "$as_dir" && as_dir=. 2653 for ac_exec_ext in '' $ac_executable_extensions; do 2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2655 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2657 break 2 2658 fi 2659done 2660 done 2661IFS=$as_save_IFS 2662 2663fi 2664fi 2665CC=$ac_cv_prog_CC 2666if test -n "$CC"; then 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2668$as_echo "$CC" >&6; } 2669else 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2671$as_echo "no" >&6; } 2672fi 2673 2674 2675fi 2676if test -z "$ac_cv_prog_CC"; then 2677 ac_ct_CC=$CC 2678 # Extract the first word of "gcc", so it can be a program name with args. 2679set dummy gcc; ac_word=$2 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2681$as_echo_n "checking for $ac_word... " >&6; } 2682if ${ac_cv_prog_ac_ct_CC+:} false; then : 2683 $as_echo_n "(cached) " >&6 2684else 2685 if test -n "$ac_ct_CC"; then 2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2687else 2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 test -z "$as_dir" && as_dir=. 2693 for ac_exec_ext in '' $ac_executable_extensions; do 2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2695 ac_cv_prog_ac_ct_CC="gcc" 2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2697 break 2 2698 fi 2699done 2700 done 2701IFS=$as_save_IFS 2702 2703fi 2704fi 2705ac_ct_CC=$ac_cv_prog_ac_ct_CC 2706if test -n "$ac_ct_CC"; then 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2708$as_echo "$ac_ct_CC" >&6; } 2709else 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2711$as_echo "no" >&6; } 2712fi 2713 2714 if test "x$ac_ct_CC" = x; then 2715 CC="" 2716 else 2717 case $cross_compiling:$ac_tool_warned in 2718yes:) 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2721ac_tool_warned=yes ;; 2722esac 2723 CC=$ac_ct_CC 2724 fi 2725else 2726 CC="$ac_cv_prog_CC" 2727fi 2728 2729if test -z "$CC"; then 2730 if test -n "$ac_tool_prefix"; then 2731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2732set dummy ${ac_tool_prefix}cc; ac_word=$2 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2734$as_echo_n "checking for $ac_word... " >&6; } 2735if ${ac_cv_prog_CC+:} false; then : 2736 $as_echo_n "(cached) " >&6 2737else 2738 if test -n "$CC"; then 2739 ac_cv_prog_CC="$CC" # Let the user override the test. 2740else 2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2742for as_dir in $PATH 2743do 2744 IFS=$as_save_IFS 2745 test -z "$as_dir" && as_dir=. 2746 for ac_exec_ext in '' $ac_executable_extensions; do 2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2748 ac_cv_prog_CC="${ac_tool_prefix}cc" 2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2750 break 2 2751 fi 2752done 2753 done 2754IFS=$as_save_IFS 2755 2756fi 2757fi 2758CC=$ac_cv_prog_CC 2759if test -n "$CC"; then 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2761$as_echo "$CC" >&6; } 2762else 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2764$as_echo "no" >&6; } 2765fi 2766 2767 2768 fi 2769fi 2770if test -z "$CC"; then 2771 # Extract the first word of "cc", so it can be a program name with args. 2772set dummy cc; ac_word=$2 2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2774$as_echo_n "checking for $ac_word... " >&6; } 2775if ${ac_cv_prog_CC+:} false; then : 2776 $as_echo_n "(cached) " >&6 2777else 2778 if test -n "$CC"; then 2779 ac_cv_prog_CC="$CC" # Let the user override the test. 2780else 2781 ac_prog_rejected=no 2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2783for as_dir in $PATH 2784do 2785 IFS=$as_save_IFS 2786 test -z "$as_dir" && as_dir=. 2787 for ac_exec_ext in '' $ac_executable_extensions; do 2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2790 ac_prog_rejected=yes 2791 continue 2792 fi 2793 ac_cv_prog_CC="cc" 2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2795 break 2 2796 fi 2797done 2798 done 2799IFS=$as_save_IFS 2800 2801if test $ac_prog_rejected = yes; then 2802 # We found a bogon in the path, so make sure we never use it. 2803 set dummy $ac_cv_prog_CC 2804 shift 2805 if test $# != 0; then 2806 # We chose a different compiler from the bogus one. 2807 # However, it has the same basename, so the bogon will be chosen 2808 # first if we set CC to just the basename; use the full file name. 2809 shift 2810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2811 fi 2812fi 2813fi 2814fi 2815CC=$ac_cv_prog_CC 2816if test -n "$CC"; then 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2818$as_echo "$CC" >&6; } 2819else 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821$as_echo "no" >&6; } 2822fi 2823 2824 2825fi 2826if test -z "$CC"; then 2827 if test -n "$ac_tool_prefix"; then 2828 for ac_prog in cl.exe 2829 do 2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2831set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2833$as_echo_n "checking for $ac_word... " >&6; } 2834if ${ac_cv_prog_CC+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 if test -n "$CC"; then 2838 ac_cv_prog_CC="$CC" # Let the user override the test. 2839else 2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2841for as_dir in $PATH 2842do 2843 IFS=$as_save_IFS 2844 test -z "$as_dir" && as_dir=. 2845 for ac_exec_ext in '' $ac_executable_extensions; do 2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2849 break 2 2850 fi 2851done 2852 done 2853IFS=$as_save_IFS 2854 2855fi 2856fi 2857CC=$ac_cv_prog_CC 2858if test -n "$CC"; then 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2860$as_echo "$CC" >&6; } 2861else 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2863$as_echo "no" >&6; } 2864fi 2865 2866 2867 test -n "$CC" && break 2868 done 2869fi 2870if test -z "$CC"; then 2871 ac_ct_CC=$CC 2872 for ac_prog in cl.exe 2873do 2874 # Extract the first word of "$ac_prog", so it can be a program name with args. 2875set dummy $ac_prog; ac_word=$2 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2877$as_echo_n "checking for $ac_word... " >&6; } 2878if ${ac_cv_prog_ac_ct_CC+:} false; then : 2879 $as_echo_n "(cached) " >&6 2880else 2881 if test -n "$ac_ct_CC"; then 2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2883else 2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2885for as_dir in $PATH 2886do 2887 IFS=$as_save_IFS 2888 test -z "$as_dir" && as_dir=. 2889 for ac_exec_ext in '' $ac_executable_extensions; do 2890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2891 ac_cv_prog_ac_ct_CC="$ac_prog" 2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2893 break 2 2894 fi 2895done 2896 done 2897IFS=$as_save_IFS 2898 2899fi 2900fi 2901ac_ct_CC=$ac_cv_prog_ac_ct_CC 2902if test -n "$ac_ct_CC"; then 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2904$as_echo "$ac_ct_CC" >&6; } 2905else 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2907$as_echo "no" >&6; } 2908fi 2909 2910 2911 test -n "$ac_ct_CC" && break 2912done 2913 2914 if test "x$ac_ct_CC" = x; then 2915 CC="" 2916 else 2917 case $cross_compiling:$ac_tool_warned in 2918yes:) 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2921ac_tool_warned=yes ;; 2922esac 2923 CC=$ac_ct_CC 2924 fi 2925fi 2926 2927fi 2928 2929 2930test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2932as_fn_error $? "no acceptable C compiler found in \$PATH 2933See \`config.log' for more details" "$LINENO" 5; } 2934 2935# Provide some information about the compiler. 2936$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2937set X $ac_compile 2938ac_compiler=$2 2939for ac_option in --version -v -V -qversion; do 2940 { { ac_try="$ac_compiler $ac_option >&5" 2941case "(($ac_try" in 2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2943 *) ac_try_echo=$ac_try;; 2944esac 2945eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2946$as_echo "$ac_try_echo"; } >&5 2947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2948 ac_status=$? 2949 if test -s conftest.err; then 2950 sed '10a\ 2951... rest of stderr output deleted ... 2952 10q' conftest.err >conftest.er1 2953 cat conftest.er1 >&5 2954 fi 2955 rm -f conftest.er1 conftest.err 2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2957 test $ac_status = 0; } 2958done 2959 2960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2961/* end confdefs.h. */ 2962 2963int 2964main () 2965{ 2966 2967 ; 2968 return 0; 2969} 2970_ACEOF 2971ac_clean_files_save=$ac_clean_files 2972ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2973# Try to create an executable without -o first, disregard a.out. 2974# It will help us diagnose broken compilers, and finding out an intuition 2975# of exeext. 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2977$as_echo_n "checking whether the C compiler works... " >&6; } 2978ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2979 2980# The possible output files: 2981ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2982 2983ac_rmfiles= 2984for ac_file in $ac_files 2985do 2986 case $ac_file in 2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2989 esac 2990done 2991rm -f $ac_rmfiles 2992 2993if { { ac_try="$ac_link_default" 2994case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2999$as_echo "$ac_try_echo"; } >&5 3000 (eval "$ac_link_default") 2>&5 3001 ac_status=$? 3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3003 test $ac_status = 0; }; then : 3004 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3005# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3006# in a Makefile. We should not override ac_cv_exeext if it was cached, 3007# so that the user can short-circuit this test for compilers unknown to 3008# Autoconf. 3009for ac_file in $ac_files '' 3010do 3011 test -f "$ac_file" || continue 3012 case $ac_file in 3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3014 ;; 3015 [ab].out ) 3016 # We found the default executable, but exeext='' is most 3017 # certainly right. 3018 break;; 3019 *.* ) 3020 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3021 then :; else 3022 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3023 fi 3024 # We set ac_cv_exeext here because the later test for it is not 3025 # safe: cross compilers may not add the suffix if given an `-o' 3026 # argument, so we may need to know it at that point already. 3027 # Even if this section looks crufty: it has the advantage of 3028 # actually working. 3029 break;; 3030 * ) 3031 break;; 3032 esac 3033done 3034test "$ac_cv_exeext" = no && ac_cv_exeext= 3035 3036else 3037 ac_file='' 3038fi 3039if test -z "$ac_file"; then : 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3041$as_echo "no" >&6; } 3042$as_echo "$as_me: failed program was:" >&5 3043sed 's/^/| /' conftest.$ac_ext >&5 3044 3045{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3047as_fn_error 77 "C compiler cannot create executables 3048See \`config.log' for more details" "$LINENO" 5; } 3049else 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3051$as_echo "yes" >&6; } 3052fi 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3054$as_echo_n "checking for C compiler default output file name... " >&6; } 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3056$as_echo "$ac_file" >&6; } 3057ac_exeext=$ac_cv_exeext 3058 3059rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3060ac_clean_files=$ac_clean_files_save 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3062$as_echo_n "checking for suffix of executables... " >&6; } 3063if { { ac_try="$ac_link" 3064case "(($ac_try" in 3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3066 *) ac_try_echo=$ac_try;; 3067esac 3068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3069$as_echo "$ac_try_echo"; } >&5 3070 (eval "$ac_link") 2>&5 3071 ac_status=$? 3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3073 test $ac_status = 0; }; then : 3074 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3075# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3076# work properly (i.e., refer to `conftest.exe'), while it won't with 3077# `rm'. 3078for ac_file in conftest.exe conftest conftest.*; do 3079 test -f "$ac_file" || continue 3080 case $ac_file in 3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3082 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3083 break;; 3084 * ) break;; 3085 esac 3086done 3087else 3088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3090as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3091See \`config.log' for more details" "$LINENO" 5; } 3092fi 3093rm -f conftest conftest$ac_cv_exeext 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3095$as_echo "$ac_cv_exeext" >&6; } 3096 3097rm -f conftest.$ac_ext 3098EXEEXT=$ac_cv_exeext 3099ac_exeext=$EXEEXT 3100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3101/* end confdefs.h. */ 3102#include <stdio.h> 3103int 3104main () 3105{ 3106FILE *f = fopen ("conftest.out", "w"); 3107 return ferror (f) || fclose (f) != 0; 3108 3109 ; 3110 return 0; 3111} 3112_ACEOF 3113ac_clean_files="$ac_clean_files conftest.out" 3114# Check that the compiler produces executables we can run. If not, either 3115# the compiler is broken, or we cross compile. 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3117$as_echo_n "checking whether we are cross compiling... " >&6; } 3118if test "$cross_compiling" != yes; then 3119 { { ac_try="$ac_link" 3120case "(($ac_try" in 3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3122 *) ac_try_echo=$ac_try;; 3123esac 3124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3125$as_echo "$ac_try_echo"; } >&5 3126 (eval "$ac_link") 2>&5 3127 ac_status=$? 3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3129 test $ac_status = 0; } 3130 if { ac_try='./conftest$ac_cv_exeext' 3131 { { case "(($ac_try" in 3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3133 *) ac_try_echo=$ac_try;; 3134esac 3135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3136$as_echo "$ac_try_echo"; } >&5 3137 (eval "$ac_try") 2>&5 3138 ac_status=$? 3139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3140 test $ac_status = 0; }; }; then 3141 cross_compiling=no 3142 else 3143 if test "$cross_compiling" = maybe; then 3144 cross_compiling=yes 3145 else 3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3148as_fn_error $? "cannot run C compiled programs. 3149If you meant to cross compile, use \`--host'. 3150See \`config.log' for more details" "$LINENO" 5; } 3151 fi 3152 fi 3153fi 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3155$as_echo "$cross_compiling" >&6; } 3156 3157rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3158ac_clean_files=$ac_clean_files_save 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3160$as_echo_n "checking for suffix of object files... " >&6; } 3161if ${ac_cv_objext+:} false; then : 3162 $as_echo_n "(cached) " >&6 3163else 3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3165/* end confdefs.h. */ 3166 3167int 3168main () 3169{ 3170 3171 ; 3172 return 0; 3173} 3174_ACEOF 3175rm -f conftest.o conftest.obj 3176if { { ac_try="$ac_compile" 3177case "(($ac_try" in 3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3179 *) ac_try_echo=$ac_try;; 3180esac 3181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3182$as_echo "$ac_try_echo"; } >&5 3183 (eval "$ac_compile") 2>&5 3184 ac_status=$? 3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3186 test $ac_status = 0; }; then : 3187 for ac_file in conftest.o conftest.obj conftest.*; do 3188 test -f "$ac_file" || continue; 3189 case $ac_file in 3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3191 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3192 break;; 3193 esac 3194done 3195else 3196 $as_echo "$as_me: failed program was:" >&5 3197sed 's/^/| /' conftest.$ac_ext >&5 3198 3199{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3201as_fn_error $? "cannot compute suffix of object files: cannot compile 3202See \`config.log' for more details" "$LINENO" 5; } 3203fi 3204rm -f conftest.$ac_cv_objext conftest.$ac_ext 3205fi 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3207$as_echo "$ac_cv_objext" >&6; } 3208OBJEXT=$ac_cv_objext 3209ac_objext=$OBJEXT 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3211$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3212if ${ac_cv_c_compiler_gnu+:} false; then : 3213 $as_echo_n "(cached) " >&6 3214else 3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3216/* end confdefs.h. */ 3217 3218int 3219main () 3220{ 3221#ifndef __GNUC__ 3222 choke me 3223#endif 3224 3225 ; 3226 return 0; 3227} 3228_ACEOF 3229if ac_fn_c_try_compile "$LINENO"; then : 3230 ac_compiler_gnu=yes 3231else 3232 ac_compiler_gnu=no 3233fi 3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3235ac_cv_c_compiler_gnu=$ac_compiler_gnu 3236 3237fi 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3239$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3240if test $ac_compiler_gnu = yes; then 3241 GCC=yes 3242else 3243 GCC= 3244fi 3245ac_test_CFLAGS=${CFLAGS+set} 3246ac_save_CFLAGS=$CFLAGS 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3248$as_echo_n "checking whether $CC accepts -g... " >&6; } 3249if ${ac_cv_prog_cc_g+:} false; then : 3250 $as_echo_n "(cached) " >&6 3251else 3252 ac_save_c_werror_flag=$ac_c_werror_flag 3253 ac_c_werror_flag=yes 3254 ac_cv_prog_cc_g=no 3255 CFLAGS="-g" 3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3257/* end confdefs.h. */ 3258 3259int 3260main () 3261{ 3262 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267if ac_fn_c_try_compile "$LINENO"; then : 3268 ac_cv_prog_cc_g=yes 3269else 3270 CFLAGS="" 3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3272/* end confdefs.h. */ 3273 3274int 3275main () 3276{ 3277 3278 ; 3279 return 0; 3280} 3281_ACEOF 3282if ac_fn_c_try_compile "$LINENO"; then : 3283 3284else 3285 ac_c_werror_flag=$ac_save_c_werror_flag 3286 CFLAGS="-g" 3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3288/* end confdefs.h. */ 3289 3290int 3291main () 3292{ 3293 3294 ; 3295 return 0; 3296} 3297_ACEOF 3298if ac_fn_c_try_compile "$LINENO"; then : 3299 ac_cv_prog_cc_g=yes 3300fi 3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3302fi 3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3304fi 3305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3306 ac_c_werror_flag=$ac_save_c_werror_flag 3307fi 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3309$as_echo "$ac_cv_prog_cc_g" >&6; } 3310if test "$ac_test_CFLAGS" = set; then 3311 CFLAGS=$ac_save_CFLAGS 3312elif test $ac_cv_prog_cc_g = yes; then 3313 if test "$GCC" = yes; then 3314 CFLAGS="-g -O2" 3315 else 3316 CFLAGS="-g" 3317 fi 3318else 3319 if test "$GCC" = yes; then 3320 CFLAGS="-O2" 3321 else 3322 CFLAGS= 3323 fi 3324fi 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3326$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3327if ${ac_cv_prog_cc_c89+:} false; then : 3328 $as_echo_n "(cached) " >&6 3329else 3330 ac_cv_prog_cc_c89=no 3331ac_save_CC=$CC 3332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3333/* end confdefs.h. */ 3334#include <stdarg.h> 3335#include <stdio.h> 3336struct stat; 3337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3338struct buf { int x; }; 3339FILE * (*rcsopen) (struct buf *, struct stat *, int); 3340static char *e (p, i) 3341 char **p; 3342 int i; 3343{ 3344 return p[i]; 3345} 3346static char *f (char * (*g) (char **, int), char **p, ...) 3347{ 3348 char *s; 3349 va_list v; 3350 va_start (v,p); 3351 s = g (p, va_arg (v,int)); 3352 va_end (v); 3353 return s; 3354} 3355 3356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3357 function prototypes and stuff, but not '\xHH' hex character constants. 3358 These don't provoke an error unfortunately, instead are silently treated 3359 as 'x'. The following induces an error, until -std is added to get 3360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3361 array size at least. It's necessary to write '\x00'==0 to get something 3362 that's true only with -std. */ 3363int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3364 3365/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3366 inside strings and character constants. */ 3367#define FOO(x) 'x' 3368int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3369 3370int test (int i, double x); 3371struct s1 {int (*f) (int a);}; 3372struct s2 {int (*f) (double a);}; 3373int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3374int argc; 3375char **argv; 3376int 3377main () 3378{ 3379return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3380 ; 3381 return 0; 3382} 3383_ACEOF 3384for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3386do 3387 CC="$ac_save_CC $ac_arg" 3388 if ac_fn_c_try_compile "$LINENO"; then : 3389 ac_cv_prog_cc_c89=$ac_arg 3390fi 3391rm -f core conftest.err conftest.$ac_objext 3392 test "x$ac_cv_prog_cc_c89" != "xno" && break 3393done 3394rm -f conftest.$ac_ext 3395CC=$ac_save_CC 3396 3397fi 3398# AC_CACHE_VAL 3399case "x$ac_cv_prog_cc_c89" in 3400 x) 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3402$as_echo "none needed" >&6; } ;; 3403 xno) 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3405$as_echo "unsupported" >&6; } ;; 3406 *) 3407 CC="$CC $ac_cv_prog_cc_c89" 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3409$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3410esac 3411if test "x$ac_cv_prog_cc_c89" != xno; then : 3412 3413fi 3414 3415ac_ext=c 3416ac_cpp='$CPP $CPPFLAGS' 3417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3419ac_compiler_gnu=$ac_cv_c_compiler_gnu 3420 3421 3422 3423ac_ext=c 3424ac_cpp='$CPP $CPPFLAGS' 3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3427ac_compiler_gnu=$ac_cv_c_compiler_gnu 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3429$as_echo_n "checking how to run the C preprocessor... " >&6; } 3430# On Suns, sometimes $CPP names a directory. 3431if test -n "$CPP" && test -d "$CPP"; then 3432 CPP= 3433fi 3434if test -z "$CPP"; then 3435 if ${ac_cv_prog_CPP+:} false; then : 3436 $as_echo_n "(cached) " >&6 3437else 3438 # Double quotes because CPP needs to be expanded 3439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3440 do 3441 ac_preproc_ok=false 3442for ac_c_preproc_warn_flag in '' yes 3443do 3444 # Use a header file that comes with gcc, so configuring glibc 3445 # with a fresh cross-compiler works. 3446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3447 # <limits.h> exists even on freestanding compilers. 3448 # On the NeXT, cc -E runs the code through the compiler's parser, 3449 # not just through cpp. "Syntax error" is here to catch this case. 3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3451/* end confdefs.h. */ 3452#ifdef __STDC__ 3453# include <limits.h> 3454#else 3455# include <assert.h> 3456#endif 3457 Syntax error 3458_ACEOF 3459if ac_fn_c_try_cpp "$LINENO"; then : 3460 3461else 3462 # Broken: fails on valid input. 3463continue 3464fi 3465rm -f conftest.err conftest.i conftest.$ac_ext 3466 3467 # OK, works on sane cases. Now check whether nonexistent headers 3468 # can be detected and how. 3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3470/* end confdefs.h. */ 3471#include <ac_nonexistent.h> 3472_ACEOF 3473if ac_fn_c_try_cpp "$LINENO"; then : 3474 # Broken: success on invalid input. 3475continue 3476else 3477 # Passes both tests. 3478ac_preproc_ok=: 3479break 3480fi 3481rm -f conftest.err conftest.i conftest.$ac_ext 3482 3483done 3484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3485rm -f conftest.i conftest.err conftest.$ac_ext 3486if $ac_preproc_ok; then : 3487 break 3488fi 3489 3490 done 3491 ac_cv_prog_CPP=$CPP 3492 3493fi 3494 CPP=$ac_cv_prog_CPP 3495else 3496 ac_cv_prog_CPP=$CPP 3497fi 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3499$as_echo "$CPP" >&6; } 3500ac_preproc_ok=false 3501for ac_c_preproc_warn_flag in '' yes 3502do 3503 # Use a header file that comes with gcc, so configuring glibc 3504 # with a fresh cross-compiler works. 3505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3506 # <limits.h> exists even on freestanding compilers. 3507 # On the NeXT, cc -E runs the code through the compiler's parser, 3508 # not just through cpp. "Syntax error" is here to catch this case. 3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510/* end confdefs.h. */ 3511#ifdef __STDC__ 3512# include <limits.h> 3513#else 3514# include <assert.h> 3515#endif 3516 Syntax error 3517_ACEOF 3518if ac_fn_c_try_cpp "$LINENO"; then : 3519 3520else 3521 # Broken: fails on valid input. 3522continue 3523fi 3524rm -f conftest.err conftest.i conftest.$ac_ext 3525 3526 # OK, works on sane cases. Now check whether nonexistent headers 3527 # can be detected and how. 3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3529/* end confdefs.h. */ 3530#include <ac_nonexistent.h> 3531_ACEOF 3532if ac_fn_c_try_cpp "$LINENO"; then : 3533 # Broken: success on invalid input. 3534continue 3535else 3536 # Passes both tests. 3537ac_preproc_ok=: 3538break 3539fi 3540rm -f conftest.err conftest.i conftest.$ac_ext 3541 3542done 3543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3544rm -f conftest.i conftest.err conftest.$ac_ext 3545if $ac_preproc_ok; then : 3546 3547else 3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3550as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3551See \`config.log' for more details" "$LINENO" 5; } 3552fi 3553 3554ac_ext=c 3555ac_cpp='$CPP $CPPFLAGS' 3556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3558ac_compiler_gnu=$ac_cv_c_compiler_gnu 3559 3560 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3562$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3563if ${ac_cv_path_GREP+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 if test -z "$GREP"; then 3567 ac_path_GREP_found=false 3568 # Loop through the user's path and test for each of PROGNAME-LIST 3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3570for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3571do 3572 IFS=$as_save_IFS 3573 test -z "$as_dir" && as_dir=. 3574 for ac_prog in grep ggrep; do 3575 for ac_exec_ext in '' $ac_executable_extensions; do 3576 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3577 as_fn_executable_p "$ac_path_GREP" || continue 3578# Check for GNU ac_path_GREP and select it if it is found. 3579 # Check for GNU $ac_path_GREP 3580case `"$ac_path_GREP" --version 2>&1` in 3581*GNU*) 3582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3583*) 3584 ac_count=0 3585 $as_echo_n 0123456789 >"conftest.in" 3586 while : 3587 do 3588 cat "conftest.in" "conftest.in" >"conftest.tmp" 3589 mv "conftest.tmp" "conftest.in" 3590 cp "conftest.in" "conftest.nl" 3591 $as_echo 'GREP' >> "conftest.nl" 3592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3594 as_fn_arith $ac_count + 1 && ac_count=$as_val 3595 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3596 # Best one so far, save it but keep looking for a better one 3597 ac_cv_path_GREP="$ac_path_GREP" 3598 ac_path_GREP_max=$ac_count 3599 fi 3600 # 10*(2^10) chars as input seems more than enough 3601 test $ac_count -gt 10 && break 3602 done 3603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3604esac 3605 3606 $ac_path_GREP_found && break 3 3607 done 3608 done 3609 done 3610IFS=$as_save_IFS 3611 if test -z "$ac_cv_path_GREP"; then 3612 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3613 fi 3614else 3615 ac_cv_path_GREP=$GREP 3616fi 3617 3618fi 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3620$as_echo "$ac_cv_path_GREP" >&6; } 3621 GREP="$ac_cv_path_GREP" 3622 3623 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3625$as_echo_n "checking for egrep... " >&6; } 3626if ${ac_cv_path_EGREP+:} false; then : 3627 $as_echo_n "(cached) " >&6 3628else 3629 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3630 then ac_cv_path_EGREP="$GREP -E" 3631 else 3632 if test -z "$EGREP"; then 3633 ac_path_EGREP_found=false 3634 # Loop through the user's path and test for each of PROGNAME-LIST 3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3636for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3637do 3638 IFS=$as_save_IFS 3639 test -z "$as_dir" && as_dir=. 3640 for ac_prog in egrep; do 3641 for ac_exec_ext in '' $ac_executable_extensions; do 3642 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3643 as_fn_executable_p "$ac_path_EGREP" || continue 3644# Check for GNU ac_path_EGREP and select it if it is found. 3645 # Check for GNU $ac_path_EGREP 3646case `"$ac_path_EGREP" --version 2>&1` in 3647*GNU*) 3648 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3649*) 3650 ac_count=0 3651 $as_echo_n 0123456789 >"conftest.in" 3652 while : 3653 do 3654 cat "conftest.in" "conftest.in" >"conftest.tmp" 3655 mv "conftest.tmp" "conftest.in" 3656 cp "conftest.in" "conftest.nl" 3657 $as_echo 'EGREP' >> "conftest.nl" 3658 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3660 as_fn_arith $ac_count + 1 && ac_count=$as_val 3661 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3662 # Best one so far, save it but keep looking for a better one 3663 ac_cv_path_EGREP="$ac_path_EGREP" 3664 ac_path_EGREP_max=$ac_count 3665 fi 3666 # 10*(2^10) chars as input seems more than enough 3667 test $ac_count -gt 10 && break 3668 done 3669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3670esac 3671 3672 $ac_path_EGREP_found && break 3 3673 done 3674 done 3675 done 3676IFS=$as_save_IFS 3677 if test -z "$ac_cv_path_EGREP"; then 3678 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3679 fi 3680else 3681 ac_cv_path_EGREP=$EGREP 3682fi 3683 3684 fi 3685fi 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3687$as_echo "$ac_cv_path_EGREP" >&6; } 3688 EGREP="$ac_cv_path_EGREP" 3689 3690 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3692$as_echo_n "checking for ANSI C header files... " >&6; } 3693if ${ac_cv_header_stdc+:} false; then : 3694 $as_echo_n "(cached) " >&6 3695else 3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3697/* end confdefs.h. */ 3698#include <stdlib.h> 3699#include <stdarg.h> 3700#include <string.h> 3701#include <float.h> 3702 3703int 3704main () 3705{ 3706 3707 ; 3708 return 0; 3709} 3710_ACEOF 3711if ac_fn_c_try_compile "$LINENO"; then : 3712 ac_cv_header_stdc=yes 3713else 3714 ac_cv_header_stdc=no 3715fi 3716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3717 3718if test $ac_cv_header_stdc = yes; then 3719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3721/* end confdefs.h. */ 3722#include <string.h> 3723 3724_ACEOF 3725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3726 $EGREP "memchr" >/dev/null 2>&1; then : 3727 3728else 3729 ac_cv_header_stdc=no 3730fi 3731rm -f conftest* 3732 3733fi 3734 3735if test $ac_cv_header_stdc = yes; then 3736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3738/* end confdefs.h. */ 3739#include <stdlib.h> 3740 3741_ACEOF 3742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3743 $EGREP "free" >/dev/null 2>&1; then : 3744 3745else 3746 ac_cv_header_stdc=no 3747fi 3748rm -f conftest* 3749 3750fi 3751 3752if test $ac_cv_header_stdc = yes; then 3753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3754 if test "$cross_compiling" = yes; then : 3755 : 3756else 3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3758/* end confdefs.h. */ 3759#include <ctype.h> 3760#include <stdlib.h> 3761#if ((' ' & 0x0FF) == 0x020) 3762# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3763# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3764#else 3765# define ISLOWER(c) \ 3766 (('a' <= (c) && (c) <= 'i') \ 3767 || ('j' <= (c) && (c) <= 'r') \ 3768 || ('s' <= (c) && (c) <= 'z')) 3769# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3770#endif 3771 3772#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3773int 3774main () 3775{ 3776 int i; 3777 for (i = 0; i < 256; i++) 3778 if (XOR (islower (i), ISLOWER (i)) 3779 || toupper (i) != TOUPPER (i)) 3780 return 2; 3781 return 0; 3782} 3783_ACEOF 3784if ac_fn_c_try_run "$LINENO"; then : 3785 3786else 3787 ac_cv_header_stdc=no 3788fi 3789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3790 conftest.$ac_objext conftest.beam conftest.$ac_ext 3791fi 3792 3793fi 3794fi 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3796$as_echo "$ac_cv_header_stdc" >&6; } 3797if test $ac_cv_header_stdc = yes; then 3798 3799$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3800 3801fi 3802 3803# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3804for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3805 inttypes.h stdint.h unistd.h 3806do : 3807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3808ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3809" 3810if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3811 cat >>confdefs.h <<_ACEOF 3812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3813_ACEOF 3814 3815fi 3816 3817done 3818 3819 3820ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 3821if test "x$ac_cv_header_elf_h" = xyes; then : 3822 3823 with_extra_cppflags="${with_extra_cppflags} -DU_HAVE_ELF_H" 3824 3825fi 3826 3827 3828 3829 3830 # Basic C++ compiler checks: are long long type and stl data structures 3831 # available? These are absolutely needed to compile ICU>=55. 3832 # 3833 # If this is the case, return 0 3834 check_cpp() { 3835 ac_ext=cpp 3836ac_cpp='$CXXCPP $CPPFLAGS' 3837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3840 3841 ac_ext=cpp 3842ac_cpp='$CXXCPP $CPPFLAGS' 3843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3846if test -z "$CXX"; then 3847 if test -n "$CCC"; then 3848 CXX=$CCC 3849 else 3850 if test -n "$ac_tool_prefix"; then 3851 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3852 do 3853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3854set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3856$as_echo_n "checking for $ac_word... " >&6; } 3857if ${ac_cv_prog_CXX+:} false; then : 3858 $as_echo_n "(cached) " >&6 3859else 3860 if test -n "$CXX"; then 3861 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3862else 3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3864for as_dir in $PATH 3865do 3866 IFS=$as_save_IFS 3867 test -z "$as_dir" && as_dir=. 3868 for ac_exec_ext in '' $ac_executable_extensions; do 3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3870 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3872 break 2 3873 fi 3874done 3875 done 3876IFS=$as_save_IFS 3877 3878fi 3879fi 3880CXX=$ac_cv_prog_CXX 3881if test -n "$CXX"; then 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3883$as_echo "$CXX" >&6; } 3884else 3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3886$as_echo "no" >&6; } 3887fi 3888 3889 3890 test -n "$CXX" && break 3891 done 3892fi 3893if test -z "$CXX"; then 3894 ac_ct_CXX=$CXX 3895 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3896do 3897 # Extract the first word of "$ac_prog", so it can be a program name with args. 3898set dummy $ac_prog; ac_word=$2 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3900$as_echo_n "checking for $ac_word... " >&6; } 3901if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3902 $as_echo_n "(cached) " >&6 3903else 3904 if test -n "$ac_ct_CXX"; then 3905 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3906else 3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3908for as_dir in $PATH 3909do 3910 IFS=$as_save_IFS 3911 test -z "$as_dir" && as_dir=. 3912 for ac_exec_ext in '' $ac_executable_extensions; do 3913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3914 ac_cv_prog_ac_ct_CXX="$ac_prog" 3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3916 break 2 3917 fi 3918done 3919 done 3920IFS=$as_save_IFS 3921 3922fi 3923fi 3924ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3925if test -n "$ac_ct_CXX"; then 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3927$as_echo "$ac_ct_CXX" >&6; } 3928else 3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3930$as_echo "no" >&6; } 3931fi 3932 3933 3934 test -n "$ac_ct_CXX" && break 3935done 3936 3937 if test "x$ac_ct_CXX" = x; then 3938 CXX="g++" 3939 else 3940 case $cross_compiling:$ac_tool_warned in 3941yes:) 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3944ac_tool_warned=yes ;; 3945esac 3946 CXX=$ac_ct_CXX 3947 fi 3948fi 3949 3950 fi 3951fi 3952# Provide some information about the compiler. 3953$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3954set X $ac_compile 3955ac_compiler=$2 3956for ac_option in --version -v -V -qversion; do 3957 { { ac_try="$ac_compiler $ac_option >&5" 3958case "(($ac_try" in 3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3960 *) ac_try_echo=$ac_try;; 3961esac 3962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3963$as_echo "$ac_try_echo"; } >&5 3964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3965 ac_status=$? 3966 if test -s conftest.err; then 3967 sed '10a\ 3968... rest of stderr output deleted ... 3969 10q' conftest.err >conftest.er1 3970 cat conftest.er1 >&5 3971 fi 3972 rm -f conftest.er1 conftest.err 3973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3974 test $ac_status = 0; } 3975done 3976 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3978$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3979if ${ac_cv_cxx_compiler_gnu+:} false; then : 3980 $as_echo_n "(cached) " >&6 3981else 3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983/* end confdefs.h. */ 3984 3985int 3986main () 3987{ 3988#ifndef __GNUC__ 3989 choke me 3990#endif 3991 3992 ; 3993 return 0; 3994} 3995_ACEOF 3996if ac_fn_cxx_try_compile "$LINENO"; then : 3997 ac_compiler_gnu=yes 3998else 3999 ac_compiler_gnu=no 4000fi 4001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4002ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4003 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4006$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4007if test $ac_compiler_gnu = yes; then 4008 GXX=yes 4009else 4010 GXX= 4011fi 4012ac_test_CXXFLAGS=${CXXFLAGS+set} 4013ac_save_CXXFLAGS=$CXXFLAGS 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4015$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4016if ${ac_cv_prog_cxx_g+:} false; then : 4017 $as_echo_n "(cached) " >&6 4018else 4019 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4020 ac_cxx_werror_flag=yes 4021 ac_cv_prog_cxx_g=no 4022 CXXFLAGS="-g" 4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4024/* end confdefs.h. */ 4025 4026int 4027main () 4028{ 4029 4030 ; 4031 return 0; 4032} 4033_ACEOF 4034if ac_fn_cxx_try_compile "$LINENO"; then : 4035 ac_cv_prog_cxx_g=yes 4036else 4037 CXXFLAGS="" 4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4039/* end confdefs.h. */ 4040 4041int 4042main () 4043{ 4044 4045 ; 4046 return 0; 4047} 4048_ACEOF 4049if ac_fn_cxx_try_compile "$LINENO"; then : 4050 4051else 4052 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4053 CXXFLAGS="-g" 4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056 4057int 4058main () 4059{ 4060 4061 ; 4062 return 0; 4063} 4064_ACEOF 4065if ac_fn_cxx_try_compile "$LINENO"; then : 4066 ac_cv_prog_cxx_g=yes 4067fi 4068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4069fi 4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4071fi 4072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4073 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4074fi 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4076$as_echo "$ac_cv_prog_cxx_g" >&6; } 4077if test "$ac_test_CXXFLAGS" = set; then 4078 CXXFLAGS=$ac_save_CXXFLAGS 4079elif test $ac_cv_prog_cxx_g = yes; then 4080 if test "$GXX" = yes; then 4081 CXXFLAGS="-g -O2" 4082 else 4083 CXXFLAGS="-g" 4084 fi 4085else 4086 if test "$GXX" = yes; then 4087 CXXFLAGS="-O2" 4088 else 4089 CXXFLAGS= 4090 fi 4091fi 4092ac_ext=cpp 4093ac_cpp='$CXXCPP $CPPFLAGS' 4094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4097 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports the long long type" >&5 4099$as_echo_n "checking whether the C++ compiler supports the long long type... " >&6; } 4100 4101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103 4104 #include <iostream> 4105 using namespace std; 4106 4107 int main() { 4108 long long x = 1; 4109 cout << x << endl; 4110 4111 cout << 1LL << 1ULL << endl; 4112 cout << 9223372036854775807LL << 18446744073709551615ULL << endl; 4113 4114 return 0; 4115 } 4116 4117_ACEOF 4118if ac_fn_cxx_try_link "$LINENO"; then : 4119 4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4121$as_echo "yes" >&6; } 4122 4123else 4124 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4126$as_echo "no" >&6; } 4127 return 1 4128 4129fi 4130rm -f core conftest.err conftest.$ac_objext \ 4131 conftest$ac_exeext conftest.$ac_ext 4132 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 4134$as_echo_n "checking whether the compiler implements namespaces... " >&6; } 4135if ${ac_cv_cxx_namespaces+:} false; then : 4136 $as_echo_n "(cached) " >&6 4137else 4138 4139 ac_ext=cpp 4140ac_cpp='$CXXCPP $CPPFLAGS' 4141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4144 4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146/* end confdefs.h. */ 4147namespace Outer { namespace Inner { int i = 0; }} 4148int 4149main () 4150{ 4151using namespace Outer::Inner; return i; 4152 ; 4153 return 0; 4154} 4155_ACEOF 4156if ac_fn_cxx_try_link "$LINENO"; then : 4157 ac_cv_cxx_namespaces=yes 4158else 4159 ac_cv_cxx_namespaces=no 4160fi 4161rm -f core conftest.err conftest.$ac_objext \ 4162 conftest$ac_exeext conftest.$ac_ext 4163 ac_ext=cpp 4164ac_cpp='$CXXCPP $CPPFLAGS' 4165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4168 4169 4170fi 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5 4172$as_echo "$ac_cv_cxx_namespaces" >&6; } 4173if test "$ac_cv_cxx_namespaces" = yes; then 4174 4175$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h 4176 4177fi 4178 4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the Standard Template Library" >&5 4180$as_echo_n "checking whether the compiler supports the Standard Template Library... " >&6; } 4181if ${ac_cv_cxx_have_stl+:} false; then : 4182 $as_echo_n "(cached) " >&6 4183else 4184 4185 4186 ac_ext=cpp 4187ac_cpp='$CXXCPP $CPPFLAGS' 4188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4191 4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4193/* end confdefs.h. */ 4194#include <list> 4195#include <deque> 4196#ifdef HAVE_NAMESPACES 4197using namespace std; 4198#endif 4199int 4200main () 4201{ 4202list<int> x; x.push_back(5); 4203list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0; 4204 ; 4205 return 0; 4206} 4207_ACEOF 4208if ac_fn_cxx_try_link "$LINENO"; then : 4209 ac_cv_cxx_have_stl=yes 4210else 4211 ac_cv_cxx_have_stl=no 4212fi 4213rm -f core conftest.err conftest.$ac_objext \ 4214 conftest$ac_exeext conftest.$ac_ext 4215 ac_ext=cpp 4216ac_cpp='$CXXCPP $CPPFLAGS' 4217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4220 4221 4222fi 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_stl" >&5 4224$as_echo "$ac_cv_cxx_have_stl" >&6; } 4225if test "$ac_cv_cxx_have_stl" = yes; then 4226 4227$as_echo "#define HAVE_STL /**/" >>confdefs.h 4228 4229fi 4230 4231 if test "$ac_cv_cxx_have_stl" = not; then 4232 return 1 4233 fi 4234 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::map is available" >&5 4236$as_echo_n "checking whether std::map is available... " >&6; } 4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4238/* end confdefs.h. */ 4239 4240 #include <iostream> 4241 #include <map> 4242 #include <vector> 4243 #include <utility> 4244 4245 int main() { 4246 std::map< int, std::vector< int > > curmap; 4247 std::vector<int> v1(10); 4248 curmap.insert(std::pair< int, std::vector< int > >(100, v1)); 4249 std::cout << curmap.size() << std::endl; 4250 return 0; 4251 } 4252 4253_ACEOF 4254if ac_fn_cxx_try_link "$LINENO"; then : 4255 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4257$as_echo "yes" >&6; } 4258 4259else 4260 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4262$as_echo "no" >&6; } 4263 return 1 4264 4265fi 4266rm -f core conftest.err conftest.$ac_objext \ 4267 conftest$ac_exeext conftest.$ac_ext 4268 4269 return 0 4270 } # end check_cpp() 4271 4272 ##### Checking whether the C++ compiler supports the long long type etc. 4273 4274 if ! check_cpp; then 4275 if test "x$enable_cxx11" = "xyes"; then 4276 disable_cxx11 4277 continue 4278 else 4279 echo "${MSG_CONFIG_FAIL}" 4280 exit 1 4281 fi 4282 fi 4283 4284 ##### CHECK FOR ICU4C ########################################################## 4285 4286 detect_icu_with_pkg_config() { 4287 # Note that according to 4288 # https://unicode-org.github.io/icu/userguide/icu/howtouseicu.html, 4289 # icu-config is deprecated and no longer recommended for production use. 4290 4291 # Retrieve pkg-config's path 4292 # Extract the first word of "pkg-config", so it can be a program name with args. 4293set dummy pkg-config; ac_word=$2 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4295$as_echo_n "checking for $ac_word... " >&6; } 4296if ${ac_cv_path_PKG_CONFIG+:} false; then : 4297 $as_echo_n "(cached) " >&6 4298else 4299 case $PKG_CONFIG in 4300 [\\/]* | ?:[\\/]*) 4301 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4302 ;; 4303 *) 4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4305as_dummy="$PATH:/usr/local/bin:/bin:/usr/bin:ext/bin:ext:/sw/bin:/opt/bin" 4306for as_dir in $as_dummy 4307do 4308 IFS=$as_save_IFS 4309 test -z "$as_dir" && as_dir=. 4310 for ac_exec_ext in '' $ac_executable_extensions; do 4311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4312 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4314 break 2 4315 fi 4316done 4317 done 4318IFS=$as_save_IFS 4319 4320 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 4321 ;; 4322esac 4323fi 4324PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4325if test -n "$PKG_CONFIG"; then 4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4327$as_echo "$PKG_CONFIG" >&6; } 4328else 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4330$as_echo "no" >&6; } 4331fi 4332 4333 # auto-detect 4334 4335 if test ! -f "${PKG_CONFIG}"; then 4336 echo "*** pkg-config cannot be found" 4337 #echo "${MSG_CONFIG_FAIL}" 4338 return 1 # go back immediately 4339 fi 4340 4341 # check if pkg-config knows about icu-i18n 4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking with pkg-config for the system ICU4C" >&5 4343$as_echo_n "checking with pkg-config for the system ICU4C... " >&6; } 4344 if ! `"${PKG_CONFIG}" --exists icu-i18n icu-uc`; then 4345 # pkg config doesn't know about icu-i18n 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4347$as_echo "no" >&6; } 4348 echo "*** pkg-config did not detect ICU4C-devel libraries installed" 4349 #echo "${MSG_CONFIG_FAIL}" 4350 return 1 # nothing more to do 4351 fi 4352 4353 # check which version of ICU4C is installed 4354 ICU_VERSION=`"${PKG_CONFIG}" --modversion icu-i18n` 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_VERSION" >&5 4356$as_echo "$ICU_VERSION" >&6; } 4357 4358 # check for a suitable version 4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU4C >= $ICU_VERSION_NEEDED" >&5 4360$as_echo_n "checking for ICU4C >= $ICU_VERSION_NEEDED... " >&6; } 4361 #VERSION_CHECK=`expr $ICU_VERSION ">=" $ICU_VERSION_NEEDED` 4362 #if test "$VERSION_CHECK" != "1" ; then 4363 if ! `"${PKG_CONFIG}" --atleast-version=${ICU_VERSION_NEEDED} icu-i18n icu-uc`; then 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4365$as_echo "no" >&6; } 4366 echo "*** ICU4C ${ICU_VERSION} has been detected" 4367 echo "*** Minimal requirements, i.e., ICU4C >= ${ICU_VERSION_NEEDED}, are not met" 4368 #echo "${MSG_CONFIG_FAIL}" 4369 return 1 # you may quit querying pkg-config here 4370 fi 4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4372$as_echo "yes" >&6; } # detected version of ICU4C is sufficient 4373 4374 export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 # always provide system -L 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional required CPPFLAGS, LDFLAGS, and LIBS" >&5 4376$as_echo_n "checking for additional required CPPFLAGS, LDFLAGS, and LIBS... " >&6; } 4377 ICU_CPPFLAGS=`"${PKG_CONFIG}" --cflags icu-uc icu-i18n` 4378 ICU_LDFLAGS=`"${PKG_CONFIG}" --libs-only-L icu-uc icu-i18n` 4379 ICU_LIBS=`"${PKG_CONFIG}" --libs-only-l icu-uc icu-i18n` 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 4381$as_echo "done" >&6; } 4382 4383 # It has been indicated that icu-config may return 32bit libs 4384 # when 64bit libs are not available, even if we compile a 64bit version. 4385 # Thus, we should then check if the current settings are valid anyway. 4386 4387 return 0 4388 } # end detect_icu_with_pkg_config() 4389 4390 4391 check_icu_with_pkg_config() { 4392 CPPFLAGS="${CPPFLAGS} ${ICU_CPPFLAGS}" 4393 LDFLAGS="${LDFLAGS} ${ICU_LDFLAGS}" 4394 LIBS="${LIBS} ${ICU_LIBS}" 4395 4396 ac_ext=cpp 4397ac_cpp='$CXXCPP $CPPFLAGS' 4398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4401 4402 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether an ICU4C-based project can be built" >&5 4404$as_echo_n "checking whether an ICU4C-based project can be built... " >&6; } 4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4406/* end confdefs.h. */ 4407 4408 #include <unicode/unistr.h> 4409 #include <unicode/uvernum.h> 4410 #include <unicode/ptypes.h> 4411 #include <unicode/uchar.h> 4412 #include <unicode/utypes.h> 4413 #include <stdio.h> 4414 using namespace icu; 4415 4416 int main() { 4417 // base tests 4418 UnicodeString x("abc"); 4419 x = x+x; 4420 printf(U_ICU_VERSION); 4421 4422 return 0; 4423 } 4424 4425_ACEOF 4426if ac_fn_cxx_try_link "$LINENO"; then : 4427 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4429$as_echo "yes" >&6; } 4430 4431else 4432 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4434$as_echo "no" >&6; } 4435 echo "*** This version of ICU4C cannot be used." 4436 #echo "${MSG_CONFIG_FAIL}" 4437 return 1 4438 4439fi 4440rm -f core conftest.err conftest.$ac_objext \ 4441 conftest$ac_exeext conftest.$ac_ext 4442 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking programmatically for sufficient U_ICU_VERSION_MAJOR_NUM" >&5 4444$as_echo_n "checking programmatically for sufficient U_ICU_VERSION_MAJOR_NUM... " >&6; } 4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4446/* end confdefs.h. */ 4447 4448 #include <unicode/uvernum.h> 4449 #if U_ICU_VERSION_MAJOR_NUM < ${ICU_VERSION_NEEDED} 4450 #error "insufficient U_ICU_VERSION_MAJOR_NUM" 4451 #endif 4452 4453 int main() { 4454 return 0; 4455 } 4456 4457_ACEOF 4458if ac_fn_cxx_try_link "$LINENO"; then : 4459 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4461$as_echo "yes" >&6; } 4462 4463else 4464 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4466$as_echo "no" >&6; } 4467 echo "*** This version of ICU4C cannot be used." 4468 #echo "${MSG_CONFIG_FAIL}" 4469 return 1 4470 4471fi 4472rm -f core conftest.err conftest.$ac_objext \ 4473 conftest$ac_exeext conftest.$ac_ext 4474 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking programmatically if U_CHARSET_IS_UTF8 is defined and set" >&5 4476$as_echo_n "checking programmatically if U_CHARSET_IS_UTF8 is defined and set... " >&6; } 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478/* end confdefs.h. */ 4479 4480 #include <unicode/unistr.h> 4481 #include <unicode/uvernum.h> 4482 #include <unicode/ptypes.h> 4483 #include <unicode/uchar.h> 4484 #include <unicode/utypes.h> 4485 #include <unicode/utf8.h> 4486 #include <unicode/utf16.h> 4487 #include <unicode/ucnv.h> 4488 4489 int main() { 4490 #ifdef U_CHARSET_IS_UTF8 4491 #if U_CHARSET_IS_UTF8 4492 #error "U_CHARSET_IS_UTF8 is defined and set" 4493 return 10; 4494 #endif 4495 #endif 4496 4497 /* we additionally verify if ucnv_setDefaultName() has no effect */ 4498 ucnv_setDefaultName("ISO-8859-2"); 4499 const char* val = ucnv_getDefaultName(); 4500 if (*(val+0)=='U' && 4501 *(val+1)=='T' && 4502 *(val+2)=='F' && 4503 *(val+3)=='-' && 4504 *(val+4)=='8' 4505 ) { 4506 return 1; /* :( */ 4507 } else { 4508 return 0; /* :) */ 4509 } 4510 } 4511 4512_ACEOF 4513if ac_fn_cxx_try_link "$LINENO"; then : 4514 4515 # U_CHARSET_IS_UTF8 is not defined 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4517$as_echo "no" >&6; } 4518 U_CHARSET_IS_UTF8=0 4519 4520else 4521 4522 # U_CHARSET_IS_UTF8 is defined 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4524$as_echo "yes" >&6; } 4525 4526 ## issue#314: fail now: 4527 #echo "*** The available ICU4C cannot be used." 4528 #return 1 4529 4530 # issue#335: revert#314; allow U_CHARSET_IS_UTF8=1; 4531 # but warn in stri_enc_set() 4532 U_CHARSET_IS_UTF8=1 4533 # => continue 4534 4535fi 4536rm -f core conftest.err conftest.$ac_objext \ 4537 conftest$ac_exeext conftest.$ac_ext 4538 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the capabilities of the ICU data library (ucnv, uloc, utrans)" >&5 4540$as_echo_n "checking the capabilities of the ICU data library (ucnv, uloc, utrans)... " >&6; } 4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4542/* end confdefs.h. */ 4543 4544 #include <unicode/unistr.h> 4545 #include <unicode/uvernum.h> 4546 #include <unicode/ptypes.h> 4547 #include <unicode/uchar.h> 4548 #include <unicode/utypes.h> 4549 #include <unicode/ucnv.h> 4550 #include <unicode/ustring.h> 4551 #include <unicode/stringpiece.h> 4552 #include <unicode/utf8.h> 4553 #include <unicode/utf16.h> 4554 #include <unicode/normalizer2.h> 4555 #include <unicode/locid.h> 4556 #include <unicode/uloc.h> 4557 #include <unicode/regex.h> 4558 #include <unicode/brkiter.h> 4559 #include <unicode/coll.h> 4560 #include <unicode/ucol.h> 4561 #include <unicode/ucsdet.h> 4562 #include <unicode/stsearch.h> 4563 #include <unicode/ulocdata.h> 4564 #include <unicode/usearch.h> 4565 #include <unicode/uniset.h> 4566 #include <stdio.h> 4567 #include <unicode/translit.h> 4568 #include <unicode/uclean.h> 4569 using namespace icu; 4570 4571 int main() { 4572 UErrorCode status = U_ZERO_ERROR; 4573 u_init(&status); 4574 if (U_FAILURE(status)) { 4575 printf("ICU init failed: %s", u_errorName(status)); 4576 return 10; 4577 } 4578 4579 // check if we have some converters installed (icudt) 4580 int c = ucnv_countAvailable(); 4581 if (c <= 0) 4582 return 11; 4583 4584 // check if we have some locales defined (icudt) 4585 c = uloc_countAvailable(); 4586 if (c <= 0) 4587 return 12; 4588 4589 status = U_ZERO_ERROR; 4590 StringEnumeration* trans_enum = Transliterator::getAvailableIDs(status); 4591 if (!U_SUCCESS(status)) return 13; 4592 4593 trans_enum->reset(status); 4594 if (!U_SUCCESS(status)) return 14; 4595 4596 c = trans_enum->count(status); 4597 if (!U_SUCCESS(status)) return 15; 4598 if (c <= 0) return 16; 4599 4600 delete trans_enum; 4601 return 0; 4602 } 4603 4604_ACEOF 4605if ac_fn_cxx_try_link "$LINENO"; then : 4606 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4608$as_echo "yes" >&6; } 4609 4610else 4611 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4613$as_echo "no" >&6; } 4614 echo "*** The available ICU4C cannot be used." 4615 #echo "${MSG_CONFIG_FAIL}" 4616 return 1 4617 4618fi 4619rm -f core conftest.err conftest.$ac_objext \ 4620 conftest$ac_exeext conftest.$ac_ext 4621 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the capabilities of the ICU data library (ucol)" >&5 4623$as_echo_n "checking the capabilities of the ICU data library (ucol)... " >&6; } 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625/* end confdefs.h. */ 4626 4627 #include <unicode/unistr.h> 4628 #include <unicode/uvernum.h> 4629 #include <unicode/ptypes.h> 4630 #include <unicode/uchar.h> 4631 #include <unicode/utypes.h> 4632 #include <unicode/ucnv.h> 4633 #include <unicode/ustring.h> 4634 #include <unicode/stringpiece.h> 4635 #include <unicode/utf8.h> 4636 #include <unicode/utf16.h> 4637 #include <unicode/normalizer2.h> 4638 #include <unicode/locid.h> 4639 #include <unicode/uloc.h> 4640 #include <unicode/regex.h> 4641 #include <unicode/brkiter.h> 4642 #include <unicode/coll.h> 4643 #include <unicode/ucol.h> 4644 #include <unicode/ucsdet.h> 4645 #include <unicode/stsearch.h> 4646 #include <unicode/ulocdata.h> 4647 #include <unicode/usearch.h> 4648 #include <unicode/uniset.h> 4649 #include <stdio.h> 4650 using namespace icu; 4651 4652 int main() { 4653 UnicodeString a = UnicodeString::fromUTF8("hladny"); 4654 UnicodeString b = UnicodeString::fromUTF8("chladny"); 4655 4656 UErrorCode status = U_ZERO_ERROR; 4657 Locale l = Locale::createFromName("sk_SK"); 4658 Collator* c = Collator::createInstance(l, status); 4659 if (!U_SUCCESS(status)) 4660 return 1; 4661 4662 status = U_ZERO_ERROR; 4663 if (UCOL_GREATER != c->compare(a, b, status)) 4664 return 2; 4665 if (!U_SUCCESS(status)) 4666 return 3; 4667 4668 delete c; 4669 return 0; 4670 } 4671 4672_ACEOF 4673if ac_fn_cxx_try_link "$LINENO"; then : 4674 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4676$as_echo "yes" >&6; } 4677 4678else 4679 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4681$as_echo "no" >&6; } 4682 echo "*** The available ICU4C cannot be used." 4683 #echo "${MSG_CONFIG_FAIL}" 4684 return 1 4685 4686fi 4687rm -f core conftest.err conftest.$ac_objext \ 4688 conftest$ac_exeext conftest.$ac_ext 4689 4690 return 0 4691 } # end check_icu_with_pkg_config() 4692 4693 4694 check_flags_icu_bundle() { 4695 CPPFLAGS="${CPPFLAGS} -Isrc/ -Isrc/icu${ICU_BUNDLE_VERSION} -Isrc/icu${ICU_BUNDLE_VERSION}/unicode \ 4696 -Isrc/icu${ICU_BUNDLE_VERSION}/common -Isrc/icu${ICU_BUNDLE_VERSION}/i18n -DU_STATIC_IMPLEMENTATION \ 4697 -DU_COMMON_IMPLEMENTATION -DU_I18N_IMPLEMENTATION -D_REENTRANT" # don't use uconfig_local yet 4698 4699 # one way for dealing with the *Compiler or options invalid for pre-UNIX 03 4700 # X/Open applications and pre-2001 POSIX applications* error on Solaris 4701 # is to file a patch for sys/feature_tests.h. Unfortunately, the original 4702 # file is copyrighted, so we have to cope with this error in another way: 4703 # adding -D_XPG6 flag conditionally. 4704 4705 if test ${ICU_BUNDLE_VERSION} -le 60; then 4706 # ICU >=61 doesn't provide any .c files anymore 4707 ac_ext=c 4708ac_cpp='$CPP $CPPFLAGS' 4709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4711ac_compiler_gnu=$ac_cv_c_compiler_gnu 4712 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/common/umapfile.c" >&5 4714$as_echo_n "checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/common/umapfile.c... " >&6; } 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4716/* end confdefs.h. */ 4717 4718 `${CAT} src/icu${ICU_BUNDLE_VERSION}/common/umapfile.c` 4719 4720_ACEOF 4721if ac_fn_c_try_compile "$LINENO"; then : 4722 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4724$as_echo "yes" >&6; } 4725 4726else 4727 4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4729$as_echo "no" >&6; } 4730 with_extra_cflags="${with_extra_cflags} -D_XPG6" 4731 CFLAGS="${CFLAGS} -D_XPG6" 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/common/umapfile.c with -D_XPG6" >&5 4733$as_echo_n "checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/common/umapfile.c with -D_XPG6... " >&6; } 4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4735/* end confdefs.h. */ 4736 4737 `${CAT} src/icu${ICU_BUNDLE_VERSION}/common/umapfile.c` 4738 4739_ACEOF 4740if ac_fn_c_try_compile "$LINENO"; then : 4741 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4743$as_echo "yes" >&6; } 4744 4745else 4746 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4748$as_echo "no" >&6; } 4749 echo "*** The ICU bundle cannot be built." 4750 return 1 4751 4752fi 4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4754 4755fi 4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4757 fi 4758 4759 ac_ext=cpp 4760ac_cpp='$CXXCPP $CPPFLAGS' 4761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4764 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/common/putil.cpp" >&5 4766$as_echo_n "checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/common/putil.cpp... " >&6; } 4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4768/* end confdefs.h. */ 4769 4770 `${CAT} src/icu${ICU_BUNDLE_VERSION}/common/putil.cpp` 4771 4772_ACEOF 4773if ac_fn_cxx_try_compile "$LINENO"; then : 4774 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4776$as_echo "yes" >&6; } 4777 4778else 4779 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4781$as_echo "no" >&6; } 4782 with_extra_cxxflags="${with_extra_cxxflags} -D_XPG6" 4783 CXXFLAGS="${CXXFLAGS} -D_XPG6" 4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/common/putil.cpp with -D_XPG6" >&5 4785$as_echo_n "checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/common/putil.cpp with -D_XPG6... " >&6; } 4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787/* end confdefs.h. */ 4788 4789 `${CAT} src/icu${ICU_BUNDLE_VERSION}/common/putil.cpp` 4790 4791_ACEOF 4792if ac_fn_cxx_try_compile "$LINENO"; then : 4793 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4795$as_echo "yes" >&6; } 4796 4797else 4798 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4800$as_echo "no" >&6; } 4801 echo "*** The ICU4C bundle cannot be built." 4802 return 1 4803 4804fi 4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4806 4807fi 4808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4809 4810 if test ${ICU_BUNDLE_VERSION} -gt 60; then 4811 ac_ext=cpp 4812ac_cpp='$CXXCPP $CPPFLAGS' 4813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4816 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/i18n/number_affixutils.cpp" >&5 4818$as_echo_n "checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/i18n/number_affixutils.cpp... " >&6; } 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4820/* end confdefs.h. */ 4821 4822 `${CAT} src/icu${ICU_BUNDLE_VERSION}/i18n/number_affixutils.cpp` 4823 4824_ACEOF 4825if ac_fn_cxx_try_compile "$LINENO"; then : 4826 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4828$as_echo "yes" >&6; } 4829 4830else 4831 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4833$as_echo "no" >&6; } 4834 old_with_extra_cxxflags="${with_extra_cxxflags}" 4835 with_extra_cxxflags="${with_extra_cxxflags} -D_XPG6" 4836 CXXFLAGS="${CXXFLAGS} -D_XPG6" 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/i18n/number_affixutils.cpp with -D_XPG6" >&5 4838$as_echo_n "checking whether we may compile src/icu${ICU_BUNDLE_VERSION}/i18n/number_affixutils.cpp with -D_XPG6... " >&6; } 4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4840/* end confdefs.h. */ 4841 4842 `${CAT} src/icu${ICU_BUNDLE_VERSION}/i18n/number_affixutils.cpp` 4843 4844_ACEOF 4845if ac_fn_cxx_try_compile "$LINENO"; then : 4846 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4848$as_echo "yes" >&6; } 4849 4850else 4851 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4853$as_echo "no" >&6; } 4854 with_extra_cxxflags="${old_with_extra_cxxflags}" 4855 echo "*** The ICU4C bundle cannot be built." 4856 return 1 4857 4858fi 4859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4860 4861fi 4862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4863 4864 fi 4865 4866 if test ${ICU_BUNDLE_VERSION} -ge 69; then 4867 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alignof(std::max_align_t) is available" >&5 4869$as_echo_n "checking whether alignof(std::max_align_t) is available... " >&6; } 4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4871/* end confdefs.h. */ 4872 4873 #include <iostream> 4874 #include <cstddef> 4875 int main() { 4876 std::cout << alignof(std::max_align_t) << std::endl; 4877 return 0; 4878 } 4879 4880_ACEOF 4881if ac_fn_cxx_try_link "$LINENO"; then : 4882 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4884$as_echo "yes" >&6; } 4885 4886else 4887 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4889$as_echo "no" >&6; } 4890 old_with_extra_cxxflags="${with_extra_cxxflags}" 4891 with_extra_cxxflags="${with_extra_cxxflags} -DSTRINGI_MAX_ALIGN_T_STD" 4892 CXXFLAGS="${CXXFLAGS} -D_XPG6" 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alignof(::max_align_t) is available" >&5 4894$as_echo_n "checking whether alignof(::max_align_t) is available... " >&6; } 4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4896/* end confdefs.h. */ 4897 4898 #include <iostream> 4899 #include <cstddef> 4900 4901 #ifdef __cplusplus 4902 #include <stddef.h> 4903 extern "C++" 4904 { 4905 namespace std 4906 { 4907 using ::max_align_t; 4908 } 4909 } 4910 #endif 4911 4912 int main() { 4913 std::cout << alignof(std::max_align_t) << std::endl; 4914 return 0; 4915 } 4916 4917_ACEOF 4918if ac_fn_cxx_try_link "$LINENO"; then : 4919 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4921$as_echo "yes" >&6; } 4922 4923else 4924 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4926$as_echo "no" >&6; } 4927 with_extra_cxxflags="${old_with_extra_cxxflags}" 4928 echo "*** The ICU4C bundle cannot be built." 4929 return 1 4930 4931fi 4932rm -f core conftest.err conftest.$ac_objext \ 4933 conftest$ac_exeext conftest.$ac_ext 4934 4935fi 4936rm -f core conftest.err conftest.$ac_objext \ 4937 conftest$ac_exeext conftest.$ac_ext 4938 4939 fi 4940 4941 return 0 4942 } # end check_flags_icu_bundle() 4943 4944 4945 4946 ICU_FOUND=0 4947 if test $enable_pkg_config = "no"; then 4948 # Use of pkg-config disabled, nothing to do 4949 echo "*** System ICU4C has been disabled." 4950 else 4951 OLD_CPPFLAGS=$CPPFLAGS 4952 OLD_LDFLAGS=$LDFLAGS 4953 OLD_LIBS=$LIBS 4954 if ! detect_icu_with_pkg_config; then 4955 echo "*** Trying with 'standard' fallback flags" 4956 # (#238, #220) trying "standard" fallback flags 4957 ICU_CPPFLAGS="" 4958 ICU_LDFLAGS="" 4959 ICU_LIBS="-licui18n -licuuc -licudata" 4960 fi 4961 if check_icu_with_pkg_config; then 4962 ICU_FOUND=1 # success 4963 fi 4964 CPPFLAGS=$OLD_CPPFLAGS 4965 LDFLAGS=$OLD_LDFLAGS 4966 LIBS=$OLD_LIBS 4967 fi 4968 4969 4970 if test $ICU_FOUND = 1; then 4971 break # all set! 4972 fi 4973 4974 if test $enable_icu_bundle = "no"; then 4975 echo "*** Failed to configure package build with forced system ICU usage." 4976 echo "*** Consider installing, e.g., libicu-devel (RedHat, Fedora) or libicu-dev (Debian, Ubuntu)" 4977 echo "*** together with pkg-config." 4978 if test "x$enable_cxx11" = "xyes"; then 4979 disable_cxx11 4980 continue 4981 else 4982 echo "${MSG_CONFIG_FAIL}" 4983 exit 1 4984 fi 4985 fi 4986 4987 echo "*** Using the ICU ${ICU_BUNDLE_VERSION} bundle." 4988 4989 ICU_BUNDLE_OK=0 4990 OLD_CFLAGS=$CFLAGS 4991 OLD_CXXFLAGS=$CXXFLAGS 4992 OLD_CPPFLAGS=$CPPFLAGS 4993 OLD_LIBS=$LIBS 4994 if check_flags_icu_bundle; then 4995 ICU_BUNDLE_OK=1 # success 4996 fi 4997 CFLAGS=$OLD_CFLAGS 4998 CXXFLAGS=$OLD_CXXFLAGS 4999 CPPFLAGS=$OLD_CPPFLAGS 5000 5001 5002 if test $ICU_BUNDLE_OK = 1; then 5003 break # all set! 5004 fi 5005 5006 echo "*** Failed to configure package build with the ICU bundle usage." 5007 if test "x$enable_cxx11" = "xyes"; then 5008 disable_cxx11 5009 continue 5010 else 5011 echo "${MSG_CONFIG_FAIL}" 5012 exit 1 5013 fi 5014 5015done # end while 5016 5017###### DOWNLOAD ICUDT (IF NEEDED) ############################################## 5018 5019if test $ICU_FOUND = 0; then 5020 # There are systems with no internet access 5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the ICU data library can be downloaded" >&5 5022$as_echo_n "checking whether the ICU data library can be downloaded... " >&6; } 5023 "${R_PATH}" --vanilla --slave -e "setwd(\"src/\"); \ 5024 source(\"../R/install.R\"); \ 5025 if (identical(FALSE,stri_download_icudt(\"${ICUDT_DIR}\",${ICU_BUNDLE_VERSION}))) \ 5026 stop(\"Stopping on error\")" 5027 if test $? -ne 0; then 5028 echo "*** *********************************************************************" 5029 echo "*** stringi cannot be built." 5030 echo "*** Failed to download the ICU data library (icudt). Stopping now." 5031 echo "*** For build environments that have no internet access," 5032 echo "*** see the INSTALL file for a workaround." 5033 echo "*** *********************************************************************" 5034 exit 1 5035 fi 5036fi 5037 5038##### PREPARE LIST OF SOURCE FILES ############################################# 5039 5040STRINGI_SOURCES_CPP=`${CAT} src/stri_cpp.txt` 5041 5042 5043STRINGI_ICU_COMMON_SOURCES_CPP=`${CAT} src/icu${ICU_BUNDLE_VERSION}_common_cpp.txt` 5044 5045 5046STRINGI_ICU_COMMON_SOURCES_C=`${CAT} src/icu${ICU_BUNDLE_VERSION}_common_c.txt` 5047 5048 5049STRINGI_ICU_I18N_SOURCES_CPP=`${CAT} src/icu${ICU_BUNDLE_VERSION}_i18n_cpp.txt` 5050 5051 5052STRINGI_ICU_I18N_SOURCES_C=`${CAT} src/icu${ICU_BUNDLE_VERSION}_i18n_c.txt` 5053 5054 5055STRINGI_ICU_STUBDATA_SOURCES_CPP=`${CAT} src/icu${ICU_BUNDLE_VERSION}_stubdata_cpp.txt` 5056 5057 5058STRINGI_ICU_STUBDATA_SOURCES_C=`${CAT} src/icu${ICU_BUNDLE_VERSION}_stubdata_c.txt` 5059 5060 5061 5062##### SETUP COMPILER 2 ########################################################### 5063 5064if test $ICU_FOUND = 0; then 5065 if test $enable_icu_bundle = "no"; then 5066 echo "*** *********************************************************************" 5067 echo "*** Failed to configure package build with forced system ICU usage" 5068 echo "*** Consider installing, e.g., libicu-devel (RHEL, Fedora) or libicu-dev (Debian, Ubuntu)" 5069 echo "*** together with pkg-config" 5070 echo "${MSG_CONFIG_FAIL}" 5071 exit 1 5072 fi 5073 5074 # build ICU4C from sources 5075 STRINGI_OBJECTS="\$(STRI_OBJECTS) \$(ICU_COMMON_OBJECTS) \ 5076 \$(ICU_I18N_OBJECTS) \$(ICU_STUBDATA_OBJECTS)" 5077 STRINGI_CFLAGS="" 5078 STRINGI_CPPFLAGS="-I. -Iicu${ICU_BUNDLE_VERSION} \ 5079 -DU_STRINGI_PATCHES \ 5080 -Iicu${ICU_BUNDLE_VERSION}/unicode -Iicu${ICU_BUNDLE_VERSION}/common \ 5081 -Iicu${ICU_BUNDLE_VERSION}/i18n -DU_STATIC_IMPLEMENTATION \ 5082 -DU_COMMON_IMPLEMENTATION -DU_I18N_IMPLEMENTATION -DUCONFIG_USE_LOCAL" 5083 #-DU_HIDE_DRAFT_API -DU_HIDE_DEPRECATED_API" 5084 STRINGI_CXXFLAGS="" 5085 STRINGI_LDFLAGS="" 5086 STRINGI_LIBS="" 5087else 5088 # use system ICU4C 5089 STRINGI_OBJECTS="\$(STRI_OBJECTS)" 5090 STRINGI_CFLAGS="" 5091 STRINGI_CPPFLAGS="-I. ${ICU_CPPFLAGS}" 5092 STRINGI_CXXFLAGS="" 5093 STRINGI_LDFLAGS="${ICU_LDFLAGS}" 5094 STRINGI_LIBS="${ICU_LIBS}" 5095fi 5096 5097with_extra_cflags="${with_extra_cflags} ${CFLAGS_pic}" 5098with_extra_cxxflags="${with_extra_cxxflags} ${CXXFLAGS_pic}" 5099 5100STRINGI_CFLAGS="${STRINGI_CFLAGS} ${with_extra_cflags}" 5101STRINGI_CPPFLAGS="${STRINGI_CPPFLAGS} ${with_extra_cppflags}" 5102STRINGI_CXXFLAGS="${STRINGI_CXXFLAGS} ${with_extra_cxxflags}" 5103STRINGI_LDFLAGS="${STRINGI_LDFLAGS} ${with_extra_ldflags}" 5104STRINGI_LIBS="${STRINGI_LIBS} ${with_extra_libs}" 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118# Remember to update the configure.win file too 5119ac_config_files="$ac_config_files src/Makevars" 5120 5121ac_config_files="$ac_config_files src/uconfig_local.h" 5122 5123ac_config_files="$ac_config_files src/install.libs.R" 5124 5125 5126cat >confcache <<\_ACEOF 5127# This file is a shell script that caches the results of configure 5128# tests run on this system so they can be shared between configure 5129# scripts and configure runs, see configure's option --config-cache. 5130# It is not useful on other systems. If it contains results you don't 5131# want to keep, you may remove or edit it. 5132# 5133# config.status only pays attention to the cache file if you give it 5134# the --recheck option to rerun configure. 5135# 5136# `ac_cv_env_foo' variables (set or unset) will be overridden when 5137# loading this file, other *unset* `ac_cv_foo' will be assigned the 5138# following values. 5139 5140_ACEOF 5141 5142# The following way of writing the cache mishandles newlines in values, 5143# but we know of no workaround that is simple, portable, and efficient. 5144# So, we kill variables containing newlines. 5145# Ultrix sh set writes to stderr and can't be redirected directly, 5146# and sets the high bit in the cache file unless we assign to the vars. 5147( 5148 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5149 eval ac_val=\$$ac_var 5150 case $ac_val in #( 5151 *${as_nl}*) 5152 case $ac_var in #( 5153 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5154$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5155 esac 5156 case $ac_var in #( 5157 _ | IFS | as_nl) ;; #( 5158 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5159 *) { eval $ac_var=; unset $ac_var;} ;; 5160 esac ;; 5161 esac 5162 done 5163 5164 (set) 2>&1 | 5165 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5166 *${as_nl}ac_space=\ *) 5167 # `set' does not quote correctly, so add quotes: double-quote 5168 # substitution turns \\\\ into \\, and sed turns \\ into \. 5169 sed -n \ 5170 "s/'/'\\\\''/g; 5171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5172 ;; #( 5173 *) 5174 # `set' quotes correctly as required by POSIX, so do not add quotes. 5175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5176 ;; 5177 esac | 5178 sort 5179) | 5180 sed ' 5181 /^ac_cv_env_/b end 5182 t clear 5183 :clear 5184 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5185 t end 5186 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5187 :end' >>confcache 5188if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5189 if test -w "$cache_file"; then 5190 if test "x$cache_file" != "x/dev/null"; then 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5192$as_echo "$as_me: updating cache $cache_file" >&6;} 5193 if test ! -f "$cache_file" || test -h "$cache_file"; then 5194 cat confcache >"$cache_file" 5195 else 5196 case $cache_file in #( 5197 */* | ?:*) 5198 mv -f confcache "$cache_file"$$ && 5199 mv -f "$cache_file"$$ "$cache_file" ;; #( 5200 *) 5201 mv -f confcache "$cache_file" ;; 5202 esac 5203 fi 5204 fi 5205 else 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5207$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5208 fi 5209fi 5210rm -f confcache 5211 5212test "x$prefix" = xNONE && prefix=$ac_default_prefix 5213# Let make expand exec_prefix. 5214test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5215 5216# Transform confdefs.h into DEFS. 5217# Protect against shell expansion while executing Makefile rules. 5218# Protect against Makefile macro expansion. 5219# 5220# If the first sed substitution is executed (which looks for macros that 5221# take arguments), then branch to the quote section. Otherwise, 5222# look for a macro that doesn't take arguments. 5223ac_script=' 5224:mline 5225/\\$/{ 5226 N 5227 s,\\\n,, 5228 b mline 5229} 5230t clear 5231:clear 5232s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 5233t quote 5234s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 5235t quote 5236b any 5237:quote 5238s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 5239s/\[/\\&/g 5240s/\]/\\&/g 5241s/\$/$$/g 5242H 5243:any 5244${ 5245 g 5246 s/^\n// 5247 s/\n/ /g 5248 p 5249} 5250' 5251DEFS=`sed -n "$ac_script" confdefs.h` 5252 5253 5254ac_libobjs= 5255ac_ltlibobjs= 5256U= 5257for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5258 # 1. Remove the extension, and $U if already installed. 5259 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5260 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5261 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5262 # will be set to the directory where LIBOBJS objects are built. 5263 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5264 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5265done 5266LIBOBJS=$ac_libobjs 5267 5268LTLIBOBJS=$ac_ltlibobjs 5269 5270 5271 5272: "${CONFIG_STATUS=./config.status}" 5273ac_write_fail=0 5274ac_clean_files_save=$ac_clean_files 5275ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5277$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5278as_write_fail=0 5279cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5280#! $SHELL 5281# Generated by $as_me. 5282# Run this file to recreate the current configuration. 5283# Compiler output produced by configure, useful for debugging 5284# configure, is in config.log if it exists. 5285 5286debug=false 5287ac_cs_recheck=false 5288ac_cs_silent=false 5289 5290SHELL=\${CONFIG_SHELL-$SHELL} 5291export SHELL 5292_ASEOF 5293cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5294## -------------------- ## 5295## M4sh Initialization. ## 5296## -------------------- ## 5297 5298# Be more Bourne compatible 5299DUALCASE=1; export DUALCASE # for MKS sh 5300if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5301 emulate sh 5302 NULLCMD=: 5303 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5304 # is contrary to our usage. Disable this feature. 5305 alias -g '${1+"$@"}'='"$@"' 5306 setopt NO_GLOB_SUBST 5307else 5308 case `(set -o) 2>/dev/null` in #( 5309 *posix*) : 5310 set -o posix ;; #( 5311 *) : 5312 ;; 5313esac 5314fi 5315 5316 5317as_nl=' 5318' 5319export as_nl 5320# Printing a long string crashes Solaris 7 /usr/bin/printf. 5321as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5322as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5323as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5324# Prefer a ksh shell builtin over an external printf program on Solaris, 5325# but without wasting forks for bash or zsh. 5326if test -z "$BASH_VERSION$ZSH_VERSION" \ 5327 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5328 as_echo='print -r --' 5329 as_echo_n='print -rn --' 5330elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5331 as_echo='printf %s\n' 5332 as_echo_n='printf %s' 5333else 5334 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5335 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5336 as_echo_n='/usr/ucb/echo -n' 5337 else 5338 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5339 as_echo_n_body='eval 5340 arg=$1; 5341 case $arg in #( 5342 *"$as_nl"*) 5343 expr "X$arg" : "X\\(.*\\)$as_nl"; 5344 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5345 esac; 5346 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5347 ' 5348 export as_echo_n_body 5349 as_echo_n='sh -c $as_echo_n_body as_echo' 5350 fi 5351 export as_echo_body 5352 as_echo='sh -c $as_echo_body as_echo' 5353fi 5354 5355# The user is always right. 5356if test "${PATH_SEPARATOR+set}" != set; then 5357 PATH_SEPARATOR=: 5358 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5359 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5360 PATH_SEPARATOR=';' 5361 } 5362fi 5363 5364 5365# IFS 5366# We need space, tab and new line, in precisely that order. Quoting is 5367# there to prevent editors from complaining about space-tab. 5368# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5369# splitting by setting IFS to empty value.) 5370IFS=" "" $as_nl" 5371 5372# Find who we are. Look in the path if we contain no directory separator. 5373as_myself= 5374case $0 in #(( 5375 *[\\/]* ) as_myself=$0 ;; 5376 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5377for as_dir in $PATH 5378do 5379 IFS=$as_save_IFS 5380 test -z "$as_dir" && as_dir=. 5381 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5382 done 5383IFS=$as_save_IFS 5384 5385 ;; 5386esac 5387# We did not find ourselves, most probably we were run as `sh COMMAND' 5388# in which case we are not to be found in the path. 5389if test "x$as_myself" = x; then 5390 as_myself=$0 5391fi 5392if test ! -f "$as_myself"; then 5393 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5394 exit 1 5395fi 5396 5397# Unset variables that we do not need and which cause bugs (e.g. in 5398# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5399# suppresses any "Segmentation fault" message there. '((' could 5400# trigger a bug in pdksh 5.2.14. 5401for as_var in BASH_ENV ENV MAIL MAILPATH 5402do eval test x\${$as_var+set} = xset \ 5403 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5404done 5405PS1='$ ' 5406PS2='> ' 5407PS4='+ ' 5408 5409# NLS nuisances. 5410LC_ALL=C 5411export LC_ALL 5412LANGUAGE=C 5413export LANGUAGE 5414 5415# CDPATH. 5416(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5417 5418 5419# as_fn_error STATUS ERROR [LINENO LOG_FD] 5420# ---------------------------------------- 5421# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5422# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5423# script with STATUS, using 1 if that was 0. 5424as_fn_error () 5425{ 5426 as_status=$1; test $as_status -eq 0 && as_status=1 5427 if test "$4"; then 5428 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5429 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5430 fi 5431 $as_echo "$as_me: error: $2" >&2 5432 as_fn_exit $as_status 5433} # as_fn_error 5434 5435 5436# as_fn_set_status STATUS 5437# ----------------------- 5438# Set $? to STATUS, without forking. 5439as_fn_set_status () 5440{ 5441 return $1 5442} # as_fn_set_status 5443 5444# as_fn_exit STATUS 5445# ----------------- 5446# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5447as_fn_exit () 5448{ 5449 set +e 5450 as_fn_set_status $1 5451 exit $1 5452} # as_fn_exit 5453 5454# as_fn_unset VAR 5455# --------------- 5456# Portably unset VAR. 5457as_fn_unset () 5458{ 5459 { eval $1=; unset $1;} 5460} 5461as_unset=as_fn_unset 5462# as_fn_append VAR VALUE 5463# ---------------------- 5464# Append the text in VALUE to the end of the definition contained in VAR. Take 5465# advantage of any shell optimizations that allow amortized linear growth over 5466# repeated appends, instead of the typical quadratic growth present in naive 5467# implementations. 5468if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5469 eval 'as_fn_append () 5470 { 5471 eval $1+=\$2 5472 }' 5473else 5474 as_fn_append () 5475 { 5476 eval $1=\$$1\$2 5477 } 5478fi # as_fn_append 5479 5480# as_fn_arith ARG... 5481# ------------------ 5482# Perform arithmetic evaluation on the ARGs, and store the result in the 5483# global $as_val. Take advantage of shells that can avoid forks. The arguments 5484# must be portable across $(()) and expr. 5485if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5486 eval 'as_fn_arith () 5487 { 5488 as_val=$(( $* )) 5489 }' 5490else 5491 as_fn_arith () 5492 { 5493 as_val=`expr "$@" || test $? -eq 1` 5494 } 5495fi # as_fn_arith 5496 5497 5498if expr a : '\(a\)' >/dev/null 2>&1 && 5499 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5500 as_expr=expr 5501else 5502 as_expr=false 5503fi 5504 5505if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5506 as_basename=basename 5507else 5508 as_basename=false 5509fi 5510 5511if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5512 as_dirname=dirname 5513else 5514 as_dirname=false 5515fi 5516 5517as_me=`$as_basename -- "$0" || 5518$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5519 X"$0" : 'X\(//\)$' \| \ 5520 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5521$as_echo X/"$0" | 5522 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5523 s//\1/ 5524 q 5525 } 5526 /^X\/\(\/\/\)$/{ 5527 s//\1/ 5528 q 5529 } 5530 /^X\/\(\/\).*/{ 5531 s//\1/ 5532 q 5533 } 5534 s/.*/./; q'` 5535 5536# Avoid depending upon Character Ranges. 5537as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5538as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5539as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5540as_cr_digits='0123456789' 5541as_cr_alnum=$as_cr_Letters$as_cr_digits 5542 5543ECHO_C= ECHO_N= ECHO_T= 5544case `echo -n x` in #((((( 5545-n*) 5546 case `echo 'xy\c'` in 5547 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5548 xy) ECHO_C='\c';; 5549 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5550 ECHO_T=' ';; 5551 esac;; 5552*) 5553 ECHO_N='-n';; 5554esac 5555 5556rm -f conf$$ conf$$.exe conf$$.file 5557if test -d conf$$.dir; then 5558 rm -f conf$$.dir/conf$$.file 5559else 5560 rm -f conf$$.dir 5561 mkdir conf$$.dir 2>/dev/null 5562fi 5563if (echo >conf$$.file) 2>/dev/null; then 5564 if ln -s conf$$.file conf$$ 2>/dev/null; then 5565 as_ln_s='ln -s' 5566 # ... but there are two gotchas: 5567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5569 # In both cases, we have to default to `cp -pR'. 5570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5571 as_ln_s='cp -pR' 5572 elif ln conf$$.file conf$$ 2>/dev/null; then 5573 as_ln_s=ln 5574 else 5575 as_ln_s='cp -pR' 5576 fi 5577else 5578 as_ln_s='cp -pR' 5579fi 5580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5581rmdir conf$$.dir 2>/dev/null 5582 5583 5584# as_fn_mkdir_p 5585# ------------- 5586# Create "$as_dir" as a directory, including parents if necessary. 5587as_fn_mkdir_p () 5588{ 5589 5590 case $as_dir in #( 5591 -*) as_dir=./$as_dir;; 5592 esac 5593 test -d "$as_dir" || eval $as_mkdir_p || { 5594 as_dirs= 5595 while :; do 5596 case $as_dir in #( 5597 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5598 *) as_qdir=$as_dir;; 5599 esac 5600 as_dirs="'$as_qdir' $as_dirs" 5601 as_dir=`$as_dirname -- "$as_dir" || 5602$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5603 X"$as_dir" : 'X\(//\)[^/]' \| \ 5604 X"$as_dir" : 'X\(//\)$' \| \ 5605 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5606$as_echo X"$as_dir" | 5607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5608 s//\1/ 5609 q 5610 } 5611 /^X\(\/\/\)[^/].*/{ 5612 s//\1/ 5613 q 5614 } 5615 /^X\(\/\/\)$/{ 5616 s//\1/ 5617 q 5618 } 5619 /^X\(\/\).*/{ 5620 s//\1/ 5621 q 5622 } 5623 s/.*/./; q'` 5624 test -d "$as_dir" && break 5625 done 5626 test -z "$as_dirs" || eval "mkdir $as_dirs" 5627 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 5628 5629 5630} # as_fn_mkdir_p 5631if mkdir -p . 2>/dev/null; then 5632 as_mkdir_p='mkdir -p "$as_dir"' 5633else 5634 test -d ./-p && rmdir ./-p 5635 as_mkdir_p=false 5636fi 5637 5638 5639# as_fn_executable_p FILE 5640# ----------------------- 5641# Test if FILE is an executable regular file. 5642as_fn_executable_p () 5643{ 5644 test -f "$1" && test -x "$1" 5645} # as_fn_executable_p 5646as_test_x='test -x' 5647as_executable_p=as_fn_executable_p 5648 5649# Sed expression to map a string onto a valid CPP name. 5650as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5651 5652# Sed expression to map a string onto a valid variable name. 5653as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5654 5655 5656exec 6>&1 5657## ----------------------------------- ## 5658## Main body of $CONFIG_STATUS script. ## 5659## ----------------------------------- ## 5660_ASEOF 5661test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5662 5663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5664# Save the log message, to keep $0 and so on meaningful, and to 5665# report actual input values of CONFIG_FILES etc. instead of their 5666# values after options handling. 5667ac_log=" 5668This file was extended by stringi $as_me 1.7, which was 5669generated by GNU Autoconf 2.69. Invocation command line was 5670 5671 CONFIG_FILES = $CONFIG_FILES 5672 CONFIG_HEADERS = $CONFIG_HEADERS 5673 CONFIG_LINKS = $CONFIG_LINKS 5674 CONFIG_COMMANDS = $CONFIG_COMMANDS 5675 $ $0 $@ 5676 5677on `(hostname || uname -n) 2>/dev/null | sed 1q` 5678" 5679 5680_ACEOF 5681 5682case $ac_config_files in *" 5683"*) set x $ac_config_files; shift; ac_config_files=$*;; 5684esac 5685 5686 5687 5688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5689# Files that config.status was made for. 5690config_files="$ac_config_files" 5691 5692_ACEOF 5693 5694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5695ac_cs_usage="\ 5696\`$as_me' instantiates files and other configuration actions 5697from templates according to the current configuration. Unless the files 5698and actions are specified as TAGs, all are instantiated by default. 5699 5700Usage: $0 [OPTION]... [TAG]... 5701 5702 -h, --help print this help, then exit 5703 -V, --version print version number and configuration settings, then exit 5704 --config print configuration, then exit 5705 -q, --quiet, --silent 5706 do not print progress messages 5707 -d, --debug don't remove temporary files 5708 --recheck update $as_me by reconfiguring in the same conditions 5709 --file=FILE[:TEMPLATE] 5710 instantiate the configuration file FILE 5711 5712Configuration files: 5713$config_files 5714 5715Report bugs to <https://stringi.gagolewski.com>." 5716 5717_ACEOF 5718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5719ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5720ac_cs_version="\\ 5721stringi config.status 1.7 5722configured by $0, generated by GNU Autoconf 2.69, 5723 with options \\"\$ac_cs_config\\" 5724 5725Copyright (C) 2012 Free Software Foundation, Inc. 5726This config.status script is free software; the Free Software Foundation 5727gives unlimited permission to copy, distribute and modify it." 5728 5729ac_pwd='$ac_pwd' 5730srcdir='$srcdir' 5731test -n "\$AWK" || AWK=awk 5732_ACEOF 5733 5734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5735# The default lists apply if the user does not specify any file. 5736ac_need_defaults=: 5737while test $# != 0 5738do 5739 case $1 in 5740 --*=?*) 5741 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5742 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5743 ac_shift=: 5744 ;; 5745 --*=) 5746 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5747 ac_optarg= 5748 ac_shift=: 5749 ;; 5750 *) 5751 ac_option=$1 5752 ac_optarg=$2 5753 ac_shift=shift 5754 ;; 5755 esac 5756 5757 case $ac_option in 5758 # Handling of the options. 5759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5760 ac_cs_recheck=: ;; 5761 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5762 $as_echo "$ac_cs_version"; exit ;; 5763 --config | --confi | --conf | --con | --co | --c ) 5764 $as_echo "$ac_cs_config"; exit ;; 5765 --debug | --debu | --deb | --de | --d | -d ) 5766 debug=: ;; 5767 --file | --fil | --fi | --f ) 5768 $ac_shift 5769 case $ac_optarg in 5770 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5771 '') as_fn_error $? "missing file argument" ;; 5772 esac 5773 as_fn_append CONFIG_FILES " '$ac_optarg'" 5774 ac_need_defaults=false;; 5775 --he | --h | --help | --hel | -h ) 5776 $as_echo "$ac_cs_usage"; exit ;; 5777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5778 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5779 ac_cs_silent=: ;; 5780 5781 # This is an error. 5782 -*) as_fn_error $? "unrecognized option: \`$1' 5783Try \`$0 --help' for more information." ;; 5784 5785 *) as_fn_append ac_config_targets " $1" 5786 ac_need_defaults=false ;; 5787 5788 esac 5789 shift 5790done 5791 5792ac_configure_extra_args= 5793 5794if $ac_cs_silent; then 5795 exec 6>/dev/null 5796 ac_configure_extra_args="$ac_configure_extra_args --silent" 5797fi 5798 5799_ACEOF 5800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5801if \$ac_cs_recheck; then 5802 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5803 shift 5804 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5805 CONFIG_SHELL='$SHELL' 5806 export CONFIG_SHELL 5807 exec "\$@" 5808fi 5809 5810_ACEOF 5811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5812exec 5>>config.log 5813{ 5814 echo 5815 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5816## Running $as_me. ## 5817_ASBOX 5818 $as_echo "$ac_log" 5819} >&5 5820 5821_ACEOF 5822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5823_ACEOF 5824 5825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5826 5827# Handling of arguments. 5828for ac_config_target in $ac_config_targets 5829do 5830 case $ac_config_target in 5831 "src/Makevars") CONFIG_FILES="$CONFIG_FILES src/Makevars" ;; 5832 "src/uconfig_local.h") CONFIG_FILES="$CONFIG_FILES src/uconfig_local.h" ;; 5833 "src/install.libs.R") CONFIG_FILES="$CONFIG_FILES src/install.libs.R" ;; 5834 5835 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 5836 esac 5837done 5838 5839 5840# If the user did not use the arguments to specify the items to instantiate, 5841# then the envvar interface is used. Set only those that are not. 5842# We use the long form for the default assignment because of an extremely 5843# bizarre bug on SunOS 4.1.3. 5844if $ac_need_defaults; then 5845 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5846fi 5847 5848# Have a temporary directory for convenience. Make it in the build tree 5849# simply because there is no reason against having it here, and in addition, 5850# creating and moving files from /tmp can sometimes cause problems. 5851# Hook for its removal unless debugging. 5852# Note that there is a small window in which the directory will not be cleaned: 5853# after its creation but before its name has been assigned to `$tmp'. 5854$debug || 5855{ 5856 tmp= ac_tmp= 5857 trap 'exit_status=$? 5858 : "${ac_tmp:=$tmp}" 5859 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 5860' 0 5861 trap 'as_fn_exit 1' 1 2 13 15 5862} 5863# Create a (secure) tmp directory for tmp files. 5864 5865{ 5866 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5867 test -d "$tmp" 5868} || 5869{ 5870 tmp=./conf$$-$RANDOM 5871 (umask 077 && mkdir "$tmp") 5872} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5873ac_tmp=$tmp 5874 5875# Set up the scripts for CONFIG_FILES section. 5876# No need to generate them if there are no CONFIG_FILES. 5877# This happens for instance with `./config.status config.h'. 5878if test -n "$CONFIG_FILES"; then 5879 5880 5881ac_cr=`echo X | tr X '\015'` 5882# On cygwin, bash can eat \r inside `` if the user requested igncr. 5883# But we know of no other shell where ac_cr would be empty at this 5884# point, so we can use a bashism as a fallback. 5885if test "x$ac_cr" = x; then 5886 eval ac_cr=\$\'\\r\' 5887fi 5888ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5889if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5890 ac_cs_awk_cr='\\r' 5891else 5892 ac_cs_awk_cr=$ac_cr 5893fi 5894 5895echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 5896_ACEOF 5897 5898 5899{ 5900 echo "cat >conf$$subs.awk <<_ACEOF" && 5901 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5902 echo "_ACEOF" 5903} >conf$$subs.sh || 5904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5905ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 5906ac_delim='%!_!# ' 5907for ac_last_try in false false false false false :; do 5908 . ./conf$$subs.sh || 5909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5910 5911 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5912 if test $ac_delim_n = $ac_delim_num; then 5913 break 5914 elif $ac_last_try; then 5915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5916 else 5917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5918 fi 5919done 5920rm -f conf$$subs.sh 5921 5922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5923cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 5924_ACEOF 5925sed -n ' 5926h 5927s/^/S["/; s/!.*/"]=/ 5928p 5929g 5930s/^[^!]*!// 5931:repl 5932t repl 5933s/'"$ac_delim"'$// 5934t delim 5935:nl 5936h 5937s/\(.\{148\}\)..*/\1/ 5938t more1 5939s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5940p 5941n 5942b repl 5943:more1 5944s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5945p 5946g 5947s/.\{148\}// 5948t nl 5949:delim 5950h 5951s/\(.\{148\}\)..*/\1/ 5952t more2 5953s/["\\]/\\&/g; s/^/"/; s/$/"/ 5954p 5955b 5956:more2 5957s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5958p 5959g 5960s/.\{148\}// 5961t delim 5962' <conf$$subs.awk | sed ' 5963/^[^""]/{ 5964 N 5965 s/\n// 5966} 5967' >>$CONFIG_STATUS || ac_write_fail=1 5968rm -f conf$$subs.awk 5969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5970_ACAWK 5971cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 5972 for (key in S) S_is_set[key] = 1 5973 FS = "" 5974 5975} 5976{ 5977 line = $ 0 5978 nfields = split(line, field, "@") 5979 substed = 0 5980 len = length(field[1]) 5981 for (i = 2; i < nfields; i++) { 5982 key = field[i] 5983 keylen = length(key) 5984 if (S_is_set[key]) { 5985 value = S[key] 5986 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5987 len += length(value) + length(field[++i]) 5988 substed = 1 5989 } else 5990 len += 1 + keylen 5991 } 5992 5993 print line 5994} 5995 5996_ACAWK 5997_ACEOF 5998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5999if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6000 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6001else 6002 cat 6003fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 6004 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 6005_ACEOF 6006 6007# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 6008# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 6009# trailing colons and then remove the whole line if VPATH becomes empty 6010# (actually we leave an empty line to preserve line numbers). 6011if test "x$srcdir" = x.; then 6012 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 6013h 6014s/// 6015s/^/:/ 6016s/[ ]*$/:/ 6017s/:\$(srcdir):/:/g 6018s/:\${srcdir}:/:/g 6019s/:@srcdir@:/:/g 6020s/^:*// 6021s/:*$// 6022x 6023s/\(=[ ]*\).*/\1/ 6024G 6025s/\n// 6026s/^[^=]*=[ ]*$// 6027}' 6028fi 6029 6030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6031fi # test -n "$CONFIG_FILES" 6032 6033 6034eval set X " :F $CONFIG_FILES " 6035shift 6036for ac_tag 6037do 6038 case $ac_tag in 6039 :[FHLC]) ac_mode=$ac_tag; continue;; 6040 esac 6041 case $ac_mode$ac_tag in 6042 :[FHL]*:*);; 6043 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 6044 :[FH]-) ac_tag=-:-;; 6045 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6046 esac 6047 ac_save_IFS=$IFS 6048 IFS=: 6049 set x $ac_tag 6050 IFS=$ac_save_IFS 6051 shift 6052 ac_file=$1 6053 shift 6054 6055 case $ac_mode in 6056 :L) ac_source=$1;; 6057 :[FH]) 6058 ac_file_inputs= 6059 for ac_f 6060 do 6061 case $ac_f in 6062 -) ac_f="$ac_tmp/stdin";; 6063 *) # Look for the file first in the build tree, then in the source tree 6064 # (if the path is not absolute). The absolute path cannot be DOS-style, 6065 # because $ac_f cannot contain `:'. 6066 test -f "$ac_f" || 6067 case $ac_f in 6068 [\\/$]*) false;; 6069 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6070 esac || 6071 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6072 esac 6073 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6074 as_fn_append ac_file_inputs " '$ac_f'" 6075 done 6076 6077 # Let's still pretend it is `configure' which instantiates (i.e., don't 6078 # use $as_me), people would be surprised to read: 6079 # /* config.h. Generated by config.status. */ 6080 configure_input='Generated from '` 6081 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6082 `' by configure.' 6083 if test x"$ac_file" != x-; then 6084 configure_input="$ac_file. $configure_input" 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6086$as_echo "$as_me: creating $ac_file" >&6;} 6087 fi 6088 # Neutralize special characters interpreted by sed in replacement strings. 6089 case $configure_input in #( 6090 *\&* | *\|* | *\\* ) 6091 ac_sed_conf_input=`$as_echo "$configure_input" | 6092 sed 's/[\\\\&|]/\\\\&/g'`;; #( 6093 *) ac_sed_conf_input=$configure_input;; 6094 esac 6095 6096 case $ac_tag in 6097 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 6098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6099 esac 6100 ;; 6101 esac 6102 6103 ac_dir=`$as_dirname -- "$ac_file" || 6104$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6105 X"$ac_file" : 'X\(//\)[^/]' \| \ 6106 X"$ac_file" : 'X\(//\)$' \| \ 6107 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6108$as_echo X"$ac_file" | 6109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6110 s//\1/ 6111 q 6112 } 6113 /^X\(\/\/\)[^/].*/{ 6114 s//\1/ 6115 q 6116 } 6117 /^X\(\/\/\)$/{ 6118 s//\1/ 6119 q 6120 } 6121 /^X\(\/\).*/{ 6122 s//\1/ 6123 q 6124 } 6125 s/.*/./; q'` 6126 as_dir="$ac_dir"; as_fn_mkdir_p 6127 ac_builddir=. 6128 6129case "$ac_dir" in 6130.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6131*) 6132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6133 # A ".." for each directory in $ac_dir_suffix. 6134 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6135 case $ac_top_builddir_sub in 6136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6138 esac ;; 6139esac 6140ac_abs_top_builddir=$ac_pwd 6141ac_abs_builddir=$ac_pwd$ac_dir_suffix 6142# for backward compatibility: 6143ac_top_builddir=$ac_top_build_prefix 6144 6145case $srcdir in 6146 .) # We are building in place. 6147 ac_srcdir=. 6148 ac_top_srcdir=$ac_top_builddir_sub 6149 ac_abs_top_srcdir=$ac_pwd ;; 6150 [\\/]* | ?:[\\/]* ) # Absolute name. 6151 ac_srcdir=$srcdir$ac_dir_suffix; 6152 ac_top_srcdir=$srcdir 6153 ac_abs_top_srcdir=$srcdir ;; 6154 *) # Relative name. 6155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6156 ac_top_srcdir=$ac_top_build_prefix$srcdir 6157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6158esac 6159ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6160 6161 6162 case $ac_mode in 6163 :F) 6164 # 6165 # CONFIG_FILE 6166 # 6167 6168_ACEOF 6169 6170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6171# If the template does not know about datarootdir, expand it. 6172# FIXME: This hack should be removed a few years after 2.60. 6173ac_datarootdir_hack=; ac_datarootdir_seen= 6174ac_sed_dataroot=' 6175/datarootdir/ { 6176 p 6177 q 6178} 6179/@datadir@/p 6180/@docdir@/p 6181/@infodir@/p 6182/@localedir@/p 6183/@mandir@/p' 6184case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6185*datarootdir*) ac_datarootdir_seen=yes;; 6186*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6188$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6189_ACEOF 6190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6191 ac_datarootdir_hack=' 6192 s&@datadir@&$datadir&g 6193 s&@docdir@&$docdir&g 6194 s&@infodir@&$infodir&g 6195 s&@localedir@&$localedir&g 6196 s&@mandir@&$mandir&g 6197 s&\\\${datarootdir}&$datarootdir&g' ;; 6198esac 6199_ACEOF 6200 6201# Neutralize VPATH when `$srcdir' = `.'. 6202# Shell code in configure.ac might set extrasub. 6203# FIXME: do we really want to maintain this feature? 6204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6205ac_sed_extra="$ac_vpsub 6206$extrasub 6207_ACEOF 6208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6209:t 6210/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6211s|@configure_input@|$ac_sed_conf_input|;t t 6212s&@top_builddir@&$ac_top_builddir_sub&;t t 6213s&@top_build_prefix@&$ac_top_build_prefix&;t t 6214s&@srcdir@&$ac_srcdir&;t t 6215s&@abs_srcdir@&$ac_abs_srcdir&;t t 6216s&@top_srcdir@&$ac_top_srcdir&;t t 6217s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6218s&@builddir@&$ac_builddir&;t t 6219s&@abs_builddir@&$ac_abs_builddir&;t t 6220s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6221$ac_datarootdir_hack 6222" 6223eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 6224 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6225 6226test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6227 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 6228 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 6229 "$ac_tmp/out"`; test -z "$ac_out"; } && 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6231which seems to be undefined. Please make sure it is defined" >&5 6232$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6233which seems to be undefined. Please make sure it is defined" >&2;} 6234 6235 rm -f "$ac_tmp/stdin" 6236 case $ac_file in 6237 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 6238 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 6239 esac \ 6240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6241 ;; 6242 6243 6244 6245 esac 6246 6247done # for ac_tag 6248 6249 6250as_fn_exit 0 6251_ACEOF 6252ac_clean_files=$ac_clean_files_save 6253 6254test $ac_write_fail = 0 || 6255 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6256 6257 6258# configure is writing to config.log, and then calls config.status. 6259# config.status does its own redirection, appending to config.log. 6260# Unfortunately, on DOS this fails, as config.log is still kept open 6261# by configure, so config.status won't be able to write to it; its 6262# output is simply discarded. So we exec the FD to /dev/null, 6263# effectively closing config.log, so it can be properly (re)opened and 6264# appended to by config.status. When coming back to configure, we 6265# need to make the FD available again. 6266if test "$no_create" != yes; then 6267 ac_cs_success=: 6268 ac_config_status_args= 6269 test "$silent" = yes && 6270 ac_config_status_args="$ac_config_status_args --quiet" 6271 exec 5>/dev/null 6272 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6273 exec 5>>config.log 6274 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6275 # would make configure fail if this is the last instruction. 6276 $ac_cs_success || as_fn_exit 1 6277fi 6278if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6280$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6281fi 6282 6283 6284echo "" 6285echo "*** stringi configure summary:" 6286echo " ICU_FOUND=${ICU_FOUND}" 6287if test $ICU_FOUND = 0; then 6288 echo " ICUDT_DIR=${ICUDT_DIR}" 6289 echo " ICU_BUNDLE_VERSION=${ICU_BUNDLE_VERSION}" 6290 echo " ICUDT_ENDIANNESS=${ICUDT_ENDIANNESS}" 6291fi 6292echo " STRINGI_CXXSTD=${STRINGI_CXXSTD}" 6293echo " STRINGI_CFLAGS=${STRINGI_CFLAGS}" 6294echo " STRINGI_CPPFLAGS=${STRINGI_CPPFLAGS}" 6295echo " STRINGI_CXXFLAGS=${STRINGI_CXXFLAGS}" 6296echo " STRINGI_LDFLAGS=${STRINGI_LDFLAGS}" 6297echo " STRINGI_LIBS=${STRINGI_LIBS}" 6298echo "" 6299echo "*** Compiler settings used:" 6300echo " CC=${CC}" 6301#echo " CPP=${CPP}" 6302echo " LD=${LD}" 6303echo " CFLAGS=${CFLAGS}" 6304echo " CPPFLAGS=${CPPFLAGS}" 6305echo " CXX=${CXX}" 6306echo " CXXFLAGS=${CXXFLAGS}" 6307echo " LDFLAGS=${LDFLAGS}" 6308echo " LIBS=${LIBS}" 6309echo "" 6310