| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.71 for ganyremote 8.1.1. |
| 4 |
# |
| 5 |
# |
| 6 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
| 7 |
# Inc. |
| 8 |
# |
| 9 |
# |
| 10 |
# This configure script is free software; the Free Software Foundation |
| 11 |
# gives unlimited permission to copy, distribute and modify it. |
| 12 |
## -------------------- ## |
| 13 |
## M4sh Initialization. ## |
| 14 |
## -------------------- ## |
| 15 |
|
| 16 |
# Be more Bourne compatible |
| 17 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 18 |
as_nop=: |
| 19 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 20 |
then : |
| 21 |
emulate sh |
| 22 |
NULLCMD=: |
| 23 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 24 |
# is contrary to our usage. Disable this feature. |
| 25 |
alias -g '${1+"$@"}'='"$@"' |
| 26 |
setopt NO_GLOB_SUBST |
| 27 |
else $as_nop |
| 28 |
case `(set -o) 2>/dev/null` in #( |
| 29 |
*posix*) : |
| 30 |
set -o posix ;; #( |
| 31 |
*) : |
| 32 |
;; |
| 33 |
esac |
| 34 |
fi |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
# Reset variables that may have inherited troublesome values from |
| 39 |
# the environment. |
| 40 |
|
| 41 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 42 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 43 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 44 |
# Quoting is to prevent editors from complaining about space-tab. |
| 45 |
as_nl=' |
| 46 |
' |
| 47 |
export as_nl |
| 48 |
IFS=" "" $as_nl" |
| 49 |
|
| 50 |
PS1='$ ' |
| 51 |
PS2='> ' |
| 52 |
PS4='+ ' |
| 53 |
|
| 54 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 55 |
LC_ALL=C |
| 56 |
export LC_ALL |
| 57 |
LANGUAGE=C |
| 58 |
export LANGUAGE |
| 59 |
|
| 60 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 61 |
# to be unset--not just set to an empty or harmless value--now, to |
| 62 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 63 |
# also avoids known problems related to "unset" and subshell syntax |
| 64 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 65 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 66 |
do eval test \${$as_var+y} \ |
| 67 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 68 |
done |
| 69 |
|
| 70 |
# Ensure that fds 0, 1, and 2 are open. |
| 71 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 72 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 73 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 74 |
|
| 75 |
# The user is always right. |
| 76 |
if ${PATH_SEPARATOR+false} :; then |
| 77 |
PATH_SEPARATOR=: |
| 78 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 |
PATH_SEPARATOR=';' |
| 81 |
} |
| 82 |
fi |
| 83 |
|
| 84 |
|
| 85 |
# Find who we are. Look in the path if we contain no directory separator. |
| 86 |
as_myself= |
| 87 |
case $0 in #(( |
| 88 |
*[\\/]* ) as_myself=$0 ;; |
| 89 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 90 |
for as_dir in $PATH |
| 91 |
do |
| 92 |
IFS=$as_save_IFS |
| 93 |
case $as_dir in #((( |
| 94 |
'') as_dir=./ ;; |
| 95 |
*/) ;; |
| 96 |
*) as_dir=$as_dir/ ;; |
| 97 |
esac |
| 98 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 99 |
done |
| 100 |
IFS=$as_save_IFS |
| 101 |
|
| 102 |
;; |
| 103 |
esac |
| 104 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 |
# in which case we are not to be found in the path. |
| 106 |
if test "x$as_myself" = x; then |
| 107 |
as_myself=$0 |
| 108 |
fi |
| 109 |
if test ! -f "$as_myself"; then |
| 110 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 111 |
exit 1 |
| 112 |
fi |
| 113 |
|
| 114 |
|
| 115 |
# Use a proper internal environment variable to ensure we don't fall |
| 116 |
# into an infinite loop, continuously re-executing ourselves. |
| 117 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 118 |
_as_can_reexec=no; export _as_can_reexec; |
| 119 |
# We cannot yet assume a decent shell, so we have to provide a |
| 120 |
# neutralization value for shells without unset; and this also |
| 121 |
# works around shells that cannot unset nonexistent variables. |
| 122 |
# Preserve -v and -x to the replacement shell. |
| 123 |
BASH_ENV=/dev/null |
| 124 |
ENV=/dev/null |
| 125 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 126 |
case $- in # (((( |
| 127 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 128 |
*v* ) as_opts=-v ;; |
| 129 |
*x* ) as_opts=-x ;; |
| 130 |
* ) as_opts= ;; |
| 131 |
esac |
| 132 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 133 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 134 |
# out after a failed `exec'. |
| 135 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 136 |
exit 255 |
| 137 |
fi |
| 138 |
# We don't want this to propagate to other subprocesses. |
| 139 |
{ _as_can_reexec=; unset _as_can_reexec;} |
| 140 |
if test "x$CONFIG_SHELL" = x; then |
| 141 |
as_bourne_compatible="as_nop=: |
| 142 |
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 143 |
then : |
| 144 |
emulate sh |
| 145 |
NULLCMD=: |
| 146 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 147 |
# is contrary to our usage. Disable this feature. |
| 148 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 149 |
setopt NO_GLOB_SUBST |
| 150 |
else \$as_nop |
| 151 |
case \`(set -o) 2>/dev/null\` in #( |
| 152 |
*posix*) : |
| 153 |
set -o posix ;; #( |
| 154 |
*) : |
| 155 |
;; |
| 156 |
esac |
| 157 |
fi |
| 158 |
" |
| 159 |
as_required="as_fn_return () { (exit \$1); } |
| 160 |
as_fn_success () { as_fn_return 0; } |
| 161 |
as_fn_failure () { as_fn_return 1; } |
| 162 |
as_fn_ret_success () { return 0; } |
| 163 |
as_fn_ret_failure () { return 1; } |
| 164 |
|
| 165 |
exitcode=0 |
| 166 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 167 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 168 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 169 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 170 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 171 |
then : |
| 172 |
|
| 173 |
else \$as_nop |
| 174 |
exitcode=1; echo positional parameters were not saved. |
| 175 |
fi |
| 176 |
test x\$exitcode = x0 || exit 1 |
| 177 |
blah=\$(echo \$(echo blah)) |
| 178 |
test x\"\$blah\" = xblah || exit 1 |
| 179 |
test -x / || exit 1" |
| 180 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 181 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 182 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 183 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 184 |
test \$(( 1 + 1 )) = 2 || exit 1" |
| 185 |
if (eval "$as_required") 2>/dev/null |
| 186 |
then : |
| 187 |
as_have_required=yes |
| 188 |
else $as_nop |
| 189 |
as_have_required=no |
| 190 |
fi |
| 191 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 192 |
then : |
| 193 |
|
| 194 |
else $as_nop |
| 195 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 196 |
as_found=false |
| 197 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 198 |
do |
| 199 |
IFS=$as_save_IFS |
| 200 |
case $as_dir in #((( |
| 201 |
'') as_dir=./ ;; |
| 202 |
*/) ;; |
| 203 |
*) as_dir=$as_dir/ ;; |
| 204 |
esac |
| 205 |
as_found=: |
| 206 |
case $as_dir in #( |
| 207 |
/*) |
| 208 |
for as_base in sh bash ksh sh5; do |
| 209 |
# Try only shells that exist, to save several forks. |
| 210 |
as_shell=$as_dir$as_base |
| 211 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 212 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 213 |
then : |
| 214 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 215 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 216 |
then : |
| 217 |
break 2 |
| 218 |
fi |
| 219 |
fi |
| 220 |
done;; |
| 221 |
esac |
| 222 |
as_found=false |
| 223 |
done |
| 224 |
IFS=$as_save_IFS |
| 225 |
if $as_found |
| 226 |
then : |
| 227 |
|
| 228 |
else $as_nop |
| 229 |
if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 230 |
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 231 |
then : |
| 232 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 233 |
fi |
| 234 |
fi |
| 235 |
|
| 236 |
|
| 237 |
if test "x$CONFIG_SHELL" != x |
| 238 |
then : |
| 239 |
export CONFIG_SHELL |
| 240 |
# We cannot yet assume a decent shell, so we have to provide a |
| 241 |
# neutralization value for shells without unset; and this also |
| 242 |
# works around shells that cannot unset nonexistent variables. |
| 243 |
# Preserve -v and -x to the replacement shell. |
| 244 |
BASH_ENV=/dev/null |
| 245 |
ENV=/dev/null |
| 246 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 |
case $- in # (((( |
| 248 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 249 |
*v* ) as_opts=-v ;; |
| 250 |
*x* ) as_opts=-x ;; |
| 251 |
* ) as_opts= ;; |
| 252 |
esac |
| 253 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 255 |
# out after a failed `exec'. |
| 256 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 |
exit 255 |
| 258 |
fi |
| 259 |
|
| 260 |
if test x$as_have_required = xno |
| 261 |
then : |
| 262 |
printf "%s\n" "$0: This script requires a shell more modern than all" |
| 263 |
printf "%s\n" "$0: the shells that I found on your system." |
| 264 |
if test ${ZSH_VERSION+y} ; then |
| 265 |
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 266 |
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 267 |
else |
| 268 |
printf "%s\n" "$0: Please tell [email protected] about your system, |
| 269 |
$0: including any error possibly output before this |
| 270 |
$0: message. Then install a modern shell, or manually run |
| 271 |
$0: the script under such a shell if you do have one." |
| 272 |
fi |
| 273 |
exit 1 |
| 274 |
fi |
| 275 |
fi |
| 276 |
fi |
| 277 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 278 |
export SHELL |
| 279 |
# Unset more variables known to interfere with behavior of common tools. |
| 280 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 281 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 282 |
|
| 283 |
## --------------------- ## |
| 284 |
## M4sh Shell Functions. ## |
| 285 |
## --------------------- ## |
| 286 |
# as_fn_unset VAR |
| 287 |
# --------------- |
| 288 |
# Portably unset VAR. |
| 289 |
as_fn_unset () |
| 290 |
{ |
| 291 |
{ eval $1=; unset $1;} |
| 292 |
} |
| 293 |
as_unset=as_fn_unset |
| 294 |
|
| 295 |
|
| 296 |
# as_fn_set_status STATUS |
| 297 |
# ----------------------- |
| 298 |
# Set $? to STATUS, without forking. |
| 299 |
as_fn_set_status () |
| 300 |
{ |
| 301 |
return $1 |
| 302 |
} # as_fn_set_status |
| 303 |
|
| 304 |
# as_fn_exit STATUS |
| 305 |
# ----------------- |
| 306 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 307 |
as_fn_exit () |
| 308 |
{ |
| 309 |
set +e |
| 310 |
as_fn_set_status $1 |
| 311 |
exit $1 |
| 312 |
} # as_fn_exit |
| 313 |
# as_fn_nop |
| 314 |
# --------- |
| 315 |
# Do nothing but, unlike ":", preserve the value of $?. |
| 316 |
as_fn_nop () |
| 317 |
{ |
| 318 |
return $? |
| 319 |
} |
| 320 |
as_nop=as_fn_nop |
| 321 |
|
| 322 |
# as_fn_mkdir_p |
| 323 |
# ------------- |
| 324 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 325 |
as_fn_mkdir_p () |
| 326 |
{ |
| 327 |
|
| 328 |
case $as_dir in #( |
| 329 |
-*) as_dir=./$as_dir;; |
| 330 |
esac |
| 331 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 332 |
as_dirs= |
| 333 |
while :; do |
| 334 |
case $as_dir in #( |
| 335 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 336 |
*) as_qdir=$as_dir;; |
| 337 |
esac |
| 338 |
as_dirs="'$as_qdir' $as_dirs" |
| 339 |
as_dir=`$as_dirname -- "$as_dir" || |
| 340 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 341 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 342 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 343 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 344 |
printf "%s\n" X"$as_dir" | |
| 345 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 346 |
s//\1/ |
| 347 |
q |
| 348 |
} |
| 349 |
/^X\(\/\/\)[^/].*/{ |
| 350 |
s//\1/ |
| 351 |
q |
| 352 |
} |
| 353 |
/^X\(\/\/\)$/{ |
| 354 |
s//\1/ |
| 355 |
q |
| 356 |
} |
| 357 |
/^X\(\/\).*/{ |
| 358 |
s//\1/ |
| 359 |
q |
| 360 |
} |
| 361 |
s/.*/./; q'` |
| 362 |
test -d "$as_dir" && break |
| 363 |
done |
| 364 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 365 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 366 |
|
| 367 |
|
| 368 |
} # as_fn_mkdir_p |
| 369 |
|
| 370 |
# as_fn_executable_p FILE |
| 371 |
# ----------------------- |
| 372 |
# Test if FILE is an executable regular file. |
| 373 |
as_fn_executable_p () |
| 374 |
{ |
| 375 |
test -f "$1" && test -x "$1" |
| 376 |
} # as_fn_executable_p |
| 377 |
# as_fn_append VAR VALUE |
| 378 |
# ---------------------- |
| 379 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 380 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 381 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 382 |
# implementations. |
| 383 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 384 |
then : |
| 385 |
eval 'as_fn_append () |
| 386 |
{ |
| 387 |
eval $1+=\$2 |
| 388 |
}' |
| 389 |
else $as_nop |
| 390 |
as_fn_append () |
| 391 |
{ |
| 392 |
eval $1=\$$1\$2 |
| 393 |
} |
| 394 |
fi # as_fn_append |
| 395 |
|
| 396 |
# as_fn_arith ARG... |
| 397 |
# ------------------ |
| 398 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 399 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 400 |
# must be portable across $(()) and expr. |
| 401 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 402 |
then : |
| 403 |
eval 'as_fn_arith () |
| 404 |
{ |
| 405 |
as_val=$(( $* )) |
| 406 |
}' |
| 407 |
else $as_nop |
| 408 |
as_fn_arith () |
| 409 |
{ |
| 410 |
as_val=`expr "$@" || test $? -eq 1` |
| 411 |
} |
| 412 |
fi # as_fn_arith |
| 413 |
|
| 414 |
# as_fn_nop |
| 415 |
# --------- |
| 416 |
# Do nothing but, unlike ":", preserve the value of $?. |
| 417 |
as_fn_nop () |
| 418 |
{ |
| 419 |
return $? |
| 420 |
} |
| 421 |
as_nop=as_fn_nop |
| 422 |
|
| 423 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 424 |
# ---------------------------------------- |
| 425 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 426 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 427 |
# script with STATUS, using 1 if that was 0. |
| 428 |
as_fn_error () |
| 429 |
{ |
| 430 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 431 |
if test "$4"; then |
| 432 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 433 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 434 |
fi |
| 435 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 436 |
as_fn_exit $as_status |
| 437 |
} # as_fn_error |
| 438 |
|
| 439 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 440 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 441 |
as_expr=expr |
| 442 |
else |
| 443 |
as_expr=false |
| 444 |
fi |
| 445 |
|
| 446 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 447 |
as_basename=basename |
| 448 |
else |
| 449 |
as_basename=false |
| 450 |
fi |
| 451 |
|
| 452 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 453 |
as_dirname=dirname |
| 454 |
else |
| 455 |
as_dirname=false |
| 456 |
fi |
| 457 |
|
| 458 |
as_me=`$as_basename -- "$0" || |
| 459 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 460 |
X"$0" : 'X\(//\)$' \| \ |
| 461 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 462 |
printf "%s\n" X/"$0" | |
| 463 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 464 |
s//\1/ |
| 465 |
q |
| 466 |
} |
| 467 |
/^X\/\(\/\/\)$/{ |
| 468 |
s//\1/ |
| 469 |
q |
| 470 |
} |
| 471 |
/^X\/\(\/\).*/{ |
| 472 |
s//\1/ |
| 473 |
q |
| 474 |
} |
| 475 |
s/.*/./; q'` |
| 476 |
|
| 477 |
# Avoid depending upon Character Ranges. |
| 478 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 479 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 480 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 481 |
as_cr_digits='0123456789' |
| 482 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 483 |
|
| 484 |
|
| 485 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 486 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 487 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 488 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 489 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 490 |
sed -n ' |
| 491 |
p |
| 492 |
/[$]LINENO/= |
| 493 |
' <$as_myself | |
| 494 |
sed ' |
| 495 |
s/[$]LINENO.*/&-/ |
| 496 |
t lineno |
| 497 |
b |
| 498 |
:lineno |
| 499 |
N |
| 500 |
:loop |
| 501 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 502 |
t loop |
| 503 |
s/-\n.*// |
| 504 |
' >$as_me.lineno && |
| 505 |
chmod +x "$as_me.lineno" || |
| 506 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 507 |
|
| 508 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 509 |
# already done that, so ensure we don't try to do so again and fall |
| 510 |
# in an infinite loop. This has already happened in practice. |
| 511 |
_as_can_reexec=no; export _as_can_reexec |
| 512 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 513 |
# (the dirname of $[0] is not the place where we might find the |
| 514 |
# original and so on. Autoconf is especially sensitive to this). |
| 515 |
. "./$as_me.lineno" |
| 516 |
# Exit status is that of the last command. |
| 517 |
exit |
| 518 |
} |
| 519 |
|
| 520 |
|
| 521 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 522 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 523 |
# for compatibility with existing Makefiles. |
| 524 |
ECHO_C= ECHO_N= ECHO_T= |
| 525 |
case `echo -n x` in #((((( |
| 526 |
-n*) |
| 527 |
case `echo 'xy\c'` in |
| 528 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 529 |
xy) ECHO_C='\c';; |
| 530 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 531 |
ECHO_T=' ';; |
| 532 |
esac;; |
| 533 |
*) |
| 534 |
ECHO_N='-n';; |
| 535 |
esac |
| 536 |
|
| 537 |
# For backward compatibility with old third-party macros, we provide |
| 538 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 539 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 540 |
as_echo='printf %s\n' |
| 541 |
as_echo_n='printf %s' |
| 542 |
|
| 543 |
|
| 544 |
rm -f conf$$ conf$$.exe conf$$.file |
| 545 |
if test -d conf$$.dir; then |
| 546 |
rm -f conf$$.dir/conf$$.file |
| 547 |
else |
| 548 |
rm -f conf$$.dir |
| 549 |
mkdir conf$$.dir 2>/dev/null |
| 550 |
fi |
| 551 |
if (echo >conf$$.file) 2>/dev/null; then |
| 552 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 553 |
as_ln_s='ln -s' |
| 554 |
# ... but there are two gotchas: |
| 555 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 556 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 557 |
# In both cases, we have to default to `cp -pR'. |
| 558 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 559 |
as_ln_s='cp -pR' |
| 560 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 561 |
as_ln_s=ln |
| 562 |
else |
| 563 |
as_ln_s='cp -pR' |
| 564 |
fi |
| 565 |
else |
| 566 |
as_ln_s='cp -pR' |
| 567 |
fi |
| 568 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 569 |
rmdir conf$$.dir 2>/dev/null |
| 570 |
|
| 571 |
if mkdir -p . 2>/dev/null; then |
| 572 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 573 |
else |
| 574 |
test -d ./-p && rmdir ./-p |
| 575 |
as_mkdir_p=false |
| 576 |
fi |
| 577 |
|
| 578 |
as_test_x='test -x' |
| 579 |
as_executable_p=as_fn_executable_p |
| 580 |
|
| 581 |
# Sed expression to map a string onto a valid CPP name. |
| 582 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 583 |
|
| 584 |
# Sed expression to map a string onto a valid variable name. |
| 585 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 586 |
|
| 587 |
|
| 588 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 589 |
exec 6>&1 |
| 590 |
|
| 591 |
# Name of the host. |
| 592 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 593 |
# so uname gets run too. |
| 594 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 595 |
|
| 596 |
# |
| 597 |
# Initializations. |
| 598 |
# |
| 599 |
ac_default_prefix=/usr/local |
| 600 |
ac_clean_files= |
| 601 |
ac_config_libobj_dir=. |
| 602 |
LIBOBJS= |
| 603 |
cross_compiling=no |
| 604 |
subdirs= |
| 605 |
MFLAGS= |
| 606 |
MAKEFLAGS= |
| 607 |
|
| 608 |
# Identity of this package. |
| 609 |
PACKAGE_NAME='ganyremote' |
| 610 |
PACKAGE_TARNAME='ganyremote' |
| 611 |
PACKAGE_VERSION='8.1.1' |
| 612 |
PACKAGE_STRING='ganyremote 8.1.1' |
| 613 |
PACKAGE_BUGREPORT='' |
| 614 |
PACKAGE_URL='' |
| 615 |
|
| 616 |
gt_needs= |
| 617 |
ac_subst_vars='am__EXEEXT_FALSE |
| 618 |
am__EXEEXT_TRUE |
| 619 |
LTLIBOBJS |
| 620 |
LIBOBJS |
| 621 |
POSUB |
| 622 |
LTLIBINTL |
| 623 |
LIBINTL |
| 624 |
INTLLIBS |
| 625 |
LTLIBICONV |
| 626 |
LIBICONV |
| 627 |
INTL_MACOSX_LIBS |
| 628 |
EGREP |
| 629 |
GREP |
| 630 |
CPP |
| 631 |
host_os |
| 632 |
host_vendor |
| 633 |
host_cpu |
| 634 |
host |
| 635 |
build_os |
| 636 |
build_vendor |
| 637 |
build_cpu |
| 638 |
build |
| 639 |
am__fastdepCC_FALSE |
| 640 |
am__fastdepCC_TRUE |
| 641 |
CCDEPMODE |
| 642 |
am__nodep |
| 643 |
AMDEPBACKSLASH |
| 644 |
AMDEP_FALSE |
| 645 |
AMDEP_TRUE |
| 646 |
am__include |
| 647 |
DEPDIR |
| 648 |
OBJEXT |
| 649 |
EXEEXT |
| 650 |
ac_ct_CC |
| 651 |
CPPFLAGS |
| 652 |
LDFLAGS |
| 653 |
CFLAGS |
| 654 |
CC |
| 655 |
XGETTEXT_EXTRA_OPTIONS |
| 656 |
MSGMERGE_FOR_MSGFMT_OPTION |
| 657 |
MSGMERGE |
| 658 |
XGETTEXT_015 |
| 659 |
XGETTEXT |
| 660 |
GMSGFMT_015 |
| 661 |
GMSGFMT |
| 662 |
MSGFMT |
| 663 |
GETTEXT_MACRO_VERSION |
| 664 |
USE_NLS |
| 665 |
SED |
| 666 |
AM_BACKSLASH |
| 667 |
AM_DEFAULT_VERBOSITY |
| 668 |
AM_DEFAULT_V |
| 669 |
AM_V |
| 670 |
CSCOPE |
| 671 |
ETAGS |
| 672 |
CTAGS |
| 673 |
am__untar |
| 674 |
am__tar |
| 675 |
AMTAR |
| 676 |
am__leading_dot |
| 677 |
SET_MAKE |
| 678 |
AWK |
| 679 |
mkdir_p |
| 680 |
MKDIR_P |
| 681 |
INSTALL_STRIP_PROGRAM |
| 682 |
STRIP |
| 683 |
install_sh |
| 684 |
MAKEINFO |
| 685 |
AUTOHEADER |
| 686 |
AUTOMAKE |
| 687 |
AUTOCONF |
| 688 |
ACLOCAL |
| 689 |
VERSION |
| 690 |
PACKAGE |
| 691 |
CYGPATH_W |
| 692 |
am__isrc |
| 693 |
INSTALL_DATA |
| 694 |
INSTALL_SCRIPT |
| 695 |
INSTALL_PROGRAM |
| 696 |
target_alias |
| 697 |
host_alias |
| 698 |
build_alias |
| 699 |
LIBS |
| 700 |
ECHO_T |
| 701 |
ECHO_N |
| 702 |
ECHO_C |
| 703 |
DEFS |
| 704 |
mandir |
| 705 |
localedir |
| 706 |
libdir |
| 707 |
psdir |
| 708 |
pdfdir |
| 709 |
dvidir |
| 710 |
htmldir |
| 711 |
infodir |
| 712 |
docdir |
| 713 |
oldincludedir |
| 714 |
includedir |
| 715 |
runstatedir |
| 716 |
localstatedir |
| 717 |
sharedstatedir |
| 718 |
sysconfdir |
| 719 |
datadir |
| 720 |
datarootdir |
| 721 |
libexecdir |
| 722 |
sbindir |
| 723 |
bindir |
| 724 |
program_transform_name |
| 725 |
prefix |
| 726 |
exec_prefix |
| 727 |
PACKAGE_URL |
| 728 |
PACKAGE_BUGREPORT |
| 729 |
PACKAGE_STRING |
| 730 |
PACKAGE_VERSION |
| 731 |
PACKAGE_TARNAME |
| 732 |
PACKAGE_NAME |
| 733 |
PATH_SEPARATOR |
| 734 |
SHELL |
| 735 |
am__quote' |
| 736 |
ac_subst_files='' |
| 737 |
ac_user_opts=' |
| 738 |
enable_option_checking |
| 739 |
enable_silent_rules |
| 740 |
enable_nls |
| 741 |
enable_dependency_tracking |
| 742 |
with_gnu_ld |
| 743 |
enable_rpath |
| 744 |
with_libiconv_prefix |
| 745 |
with_libintl_prefix |
| 746 |
' |
| 747 |
ac_precious_vars='build_alias |
| 748 |
host_alias |
| 749 |
target_alias |
| 750 |
CC |
| 751 |
CFLAGS |
| 752 |
LDFLAGS |
| 753 |
LIBS |
| 754 |
CPPFLAGS |
| 755 |
CPP' |
| 756 |
|
| 757 |
|
| 758 |
# Initialize some variables set by options. |
| 759 |
ac_init_help= |
| 760 |
ac_init_version=false |
| 761 |
ac_unrecognized_opts= |
| 762 |
ac_unrecognized_sep= |
| 763 |
# The variables have the same names as the options, with |
| 764 |
# dashes changed to underlines. |
| 765 |
cache_file=/dev/null |
| 766 |
exec_prefix=NONE |
| 767 |
no_create= |
| 768 |
no_recursion= |
| 769 |
prefix=NONE |
| 770 |
program_prefix=NONE |
| 771 |
program_suffix=NONE |
| 772 |
program_transform_name=s,x,x, |
| 773 |
silent= |
| 774 |
site= |
| 775 |
srcdir= |
| 776 |
verbose= |
| 777 |
x_includes=NONE |
| 778 |
x_libraries=NONE |
| 779 |
|
| 780 |
# Installation directory options. |
| 781 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 782 |
# and all the variables that are supposed to be based on exec_prefix |
| 783 |
# by default will actually change. |
| 784 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 785 |
# (The list follows the same order as the GNU Coding Standards.) |
| 786 |
bindir='${exec_prefix}/bin' |
| 787 |
sbindir='${exec_prefix}/sbin' |
| 788 |
libexecdir='${exec_prefix}/libexec' |
| 789 |
datarootdir='${prefix}/share' |
| 790 |
datadir='${datarootdir}' |
| 791 |
sysconfdir='${prefix}/etc' |
| 792 |
sharedstatedir='${prefix}/com' |
| 793 |
localstatedir='${prefix}/var' |
| 794 |
runstatedir='${localstatedir}/run' |
| 795 |
includedir='${prefix}/include' |
| 796 |
oldincludedir='/usr/include' |
| 797 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 798 |
infodir='${datarootdir}/info' |
| 799 |
htmldir='${docdir}' |
| 800 |
dvidir='${docdir}' |
| 801 |
pdfdir='${docdir}' |
| 802 |
psdir='${docdir}' |
| 803 |
libdir='${exec_prefix}/lib' |
| 804 |
localedir='${datarootdir}/locale' |
| 805 |
mandir='${datarootdir}/man' |
| 806 |
|
| 807 |
ac_prev= |
| 808 |
ac_dashdash= |
| 809 |
for ac_option |
| 810 |
do |
| 811 |
# If the previous option needs an argument, assign it. |
| 812 |
if test -n "$ac_prev"; then |
| 813 |
eval $ac_prev=\$ac_option |
| 814 |
ac_prev= |
| 815 |
continue |
| 816 |
fi |
| 817 |
|
| 818 |
case $ac_option in |
| 819 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 820 |
*=) ac_optarg= ;; |
| 821 |
*) ac_optarg=yes ;; |
| 822 |
esac |
| 823 |
|
| 824 |
case $ac_dashdash$ac_option in |
| 825 |
--) |
| 826 |
ac_dashdash=yes ;; |
| 827 |
|
| 828 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 829 |
ac_prev=bindir ;; |
| 830 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 831 |
bindir=$ac_optarg ;; |
| 832 |
|
| 833 |
-build | --build | --buil | --bui | --bu) |
| 834 |
ac_prev=build_alias ;; |
| 835 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 836 |
build_alias=$ac_optarg ;; |
| 837 |
|
| 838 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 839 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 840 |
ac_prev=cache_file ;; |
| 841 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 842 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 843 |
cache_file=$ac_optarg ;; |
| 844 |
|
| 845 |
--config-cache | -C) |
| 846 |
cache_file=config.cache ;; |
| 847 |
|
| 848 |
-datadir | --datadir | --datadi | --datad) |
| 849 |
ac_prev=datadir ;; |
| 850 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 851 |
datadir=$ac_optarg ;; |
| 852 |
|
| 853 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 854 |
| --dataroo | --dataro | --datar) |
| 855 |
ac_prev=datarootdir ;; |
| 856 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 857 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 858 |
datarootdir=$ac_optarg ;; |
| 859 |
|
| 860 |
-disable-* | --disable-*) |
| 861 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 862 |
# Reject names that are not valid shell variable names. |
| 863 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 864 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 865 |
ac_useropt_orig=$ac_useropt |
| 866 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 867 |
case $ac_user_opts in |
| 868 |
*" |
| 869 |
"enable_$ac_useropt" |
| 870 |
"*) ;; |
| 871 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 872 |
ac_unrecognized_sep=', ';; |
| 873 |
esac |
| 874 |
eval enable_$ac_useropt=no ;; |
| 875 |
|
| 876 |
-docdir | --docdir | --docdi | --doc | --do) |
| 877 |
ac_prev=docdir ;; |
| 878 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 879 |
docdir=$ac_optarg ;; |
| 880 |
|
| 881 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 882 |
ac_prev=dvidir ;; |
| 883 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 884 |
dvidir=$ac_optarg ;; |
| 885 |
|
| 886 |
-enable-* | --enable-*) |
| 887 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 888 |
# Reject names that are not valid shell variable names. |
| 889 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 890 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 891 |
ac_useropt_orig=$ac_useropt |
| 892 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 893 |
case $ac_user_opts in |
| 894 |
*" |
| 895 |
"enable_$ac_useropt" |
| 896 |
"*) ;; |
| 897 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 898 |
ac_unrecognized_sep=', ';; |
| 899 |
esac |
| 900 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 901 |
|
| 902 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 903 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 904 |
| --exec | --exe | --ex) |
| 905 |
ac_prev=exec_prefix ;; |
| 906 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 907 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 908 |
| --exec=* | --exe=* | --ex=*) |
| 909 |
exec_prefix=$ac_optarg ;; |
| 910 |
|
| 911 |
-gas | --gas | --ga | --g) |
| 912 |
# Obsolete; use --with-gas. |
| 913 |
with_gas=yes ;; |
| 914 |
|
| 915 |
-help | --help | --hel | --he | -h) |
| 916 |
ac_init_help=long ;; |
| 917 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 918 |
ac_init_help=recursive ;; |
| 919 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 920 |
ac_init_help=short ;; |
| 921 |
|
| 922 |
-host | --host | --hos | --ho) |
| 923 |
ac_prev=host_alias ;; |
| 924 |
-host=* | --host=* | --hos=* | --ho=*) |
| 925 |
host_alias=$ac_optarg ;; |
| 926 |
|
| 927 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 928 |
ac_prev=htmldir ;; |
| 929 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 930 |
| --ht=*) |
| 931 |
htmldir=$ac_optarg ;; |
| 932 |
|
| 933 |
-includedir | --includedir | --includedi | --included | --include \ |
| 934 |
| --includ | --inclu | --incl | --inc) |
| 935 |
ac_prev=includedir ;; |
| 936 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 937 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 938 |
includedir=$ac_optarg ;; |
| 939 |
|
| 940 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 941 |
ac_prev=infodir ;; |
| 942 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 943 |
infodir=$ac_optarg ;; |
| 944 |
|
| 945 |
-libdir | --libdir | --libdi | --libd) |
| 946 |
ac_prev=libdir ;; |
| 947 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 948 |
libdir=$ac_optarg ;; |
| 949 |
|
| 950 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 951 |
| --libexe | --libex | --libe) |
| 952 |
ac_prev=libexecdir ;; |
| 953 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 954 |
| --libexe=* | --libex=* | --libe=*) |
| 955 |
libexecdir=$ac_optarg ;; |
| 956 |
|
| 957 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 958 |
ac_prev=localedir ;; |
| 959 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 960 |
localedir=$ac_optarg ;; |
| 961 |
|
| 962 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 963 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 964 |
ac_prev=localstatedir ;; |
| 965 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 966 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 967 |
localstatedir=$ac_optarg ;; |
| 968 |
|
| 969 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 970 |
ac_prev=mandir ;; |
| 971 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 972 |
mandir=$ac_optarg ;; |
| 973 |
|
| 974 |
-nfp | --nfp | --nf) |
| 975 |
# Obsolete; use --without-fp. |
| 976 |
with_fp=no ;; |
| 977 |
|
| 978 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 979 |
| --no-cr | --no-c | -n) |
| 980 |
no_create=yes ;; |
| 981 |
|
| 982 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 983 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 984 |
no_recursion=yes ;; |
| 985 |
|
| 986 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 987 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 988 |
| --oldin | --oldi | --old | --ol | --o) |
| 989 |
ac_prev=oldincludedir ;; |
| 990 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 991 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 992 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 993 |
oldincludedir=$ac_optarg ;; |
| 994 |
|
| 995 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 996 |
ac_prev=prefix ;; |
| 997 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 998 |
prefix=$ac_optarg ;; |
| 999 |
|
| 1000 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1001 |
| --program-pre | --program-pr | --program-p) |
| 1002 |
ac_prev=program_prefix ;; |
| 1003 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1004 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1005 |
program_prefix=$ac_optarg ;; |
| 1006 |
|
| 1007 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1008 |
| --program-suf | --program-su | --program-s) |
| 1009 |
ac_prev=program_suffix ;; |
| 1010 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1011 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1012 |
program_suffix=$ac_optarg ;; |
| 1013 |
|
| 1014 |
-program-transform-name | --program-transform-name \ |
| 1015 |
| --program-transform-nam | --program-transform-na \ |
| 1016 |
| --program-transform-n | --program-transform- \ |
| 1017 |
| --program-transform | --program-transfor \ |
| 1018 |
| --program-transfo | --program-transf \ |
| 1019 |
| --program-trans | --program-tran \ |
| 1020 |
| --progr-tra | --program-tr | --program-t) |
| 1021 |
ac_prev=program_transform_name ;; |
| 1022 |
-program-transform-name=* | --program-transform-name=* \ |
| 1023 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1024 |
| --program-transform-n=* | --program-transform-=* \ |
| 1025 |
| --program-transform=* | --program-transfor=* \ |
| 1026 |
| --program-transfo=* | --program-transf=* \ |
| 1027 |
| --program-trans=* | --program-tran=* \ |
| 1028 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1029 |
program_transform_name=$ac_optarg ;; |
| 1030 |
|
| 1031 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1032 |
ac_prev=pdfdir ;; |
| 1033 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1034 |
pdfdir=$ac_optarg ;; |
| 1035 |
|
| 1036 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1037 |
ac_prev=psdir ;; |
| 1038 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1039 |
psdir=$ac_optarg ;; |
| 1040 |
|
| 1041 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1042 |
| -silent | --silent | --silen | --sile | --sil) |
| 1043 |
silent=yes ;; |
| 1044 |
|
| 1045 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1046 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
| 1047 |
| --run | --ru | --r) |
| 1048 |
ac_prev=runstatedir ;; |
| 1049 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1050 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1051 |
| --run=* | --ru=* | --r=*) |
| 1052 |
runstatedir=$ac_optarg ;; |
| 1053 |
|
| 1054 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1055 |
ac_prev=sbindir ;; |
| 1056 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1057 |
| --sbi=* | --sb=*) |
| 1058 |
sbindir=$ac_optarg ;; |
| 1059 |
|
| 1060 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1061 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1062 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 1063 |
| --sha | --sh) |
| 1064 |
ac_prev=sharedstatedir ;; |
| 1065 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1066 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1067 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1068 |
| --sha=* | --sh=*) |
| 1069 |
sharedstatedir=$ac_optarg ;; |
| 1070 |
|
| 1071 |
-site | --site | --sit) |
| 1072 |
ac_prev=site ;; |
| 1073 |
-site=* | --site=* | --sit=*) |
| 1074 |
site=$ac_optarg ;; |
| 1075 |
|
| 1076 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1077 |
ac_prev=srcdir ;; |
| 1078 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1079 |
srcdir=$ac_optarg ;; |
| 1080 |
|
| 1081 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1082 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1083 |
ac_prev=sysconfdir ;; |
| 1084 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1085 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1086 |
sysconfdir=$ac_optarg ;; |
| 1087 |
|
| 1088 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1089 |
ac_prev=target_alias ;; |
| 1090 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1091 |
target_alias=$ac_optarg ;; |
| 1092 |
|
| 1093 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1094 |
verbose=yes ;; |
| 1095 |
|
| 1096 |
-version | --version | --versio | --versi | --vers | -V) |
| 1097 |
ac_init_version=: ;; |
| 1098 |
|
| 1099 |
-with-* | --with-*) |
| 1100 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1101 |
# Reject names that are not valid shell variable names. |
| 1102 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1103 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1104 |
ac_useropt_orig=$ac_useropt |
| 1105 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1106 |
case $ac_user_opts in |
| 1107 |
*" |
| 1108 |
"with_$ac_useropt" |
| 1109 |
"*) ;; |
| 1110 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1111 |
ac_unrecognized_sep=', ';; |
| 1112 |
esac |
| 1113 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1114 |
|
| 1115 |
-without-* | --without-*) |
| 1116 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1117 |
# Reject names that are not valid shell variable names. |
| 1118 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1119 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1120 |
ac_useropt_orig=$ac_useropt |
| 1121 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1122 |
case $ac_user_opts in |
| 1123 |
*" |
| 1124 |
"with_$ac_useropt" |
| 1125 |
"*) ;; |
| 1126 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1127 |
ac_unrecognized_sep=', ';; |
| 1128 |
esac |
| 1129 |
eval with_$ac_useropt=no ;; |
| 1130 |
|
| 1131 |
--x) |
| 1132 |
# Obsolete; use --with-x. |
| 1133 |
with_x=yes ;; |
| 1134 |
|
| 1135 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1136 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1137 |
ac_prev=x_includes ;; |
| 1138 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1139 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1140 |
x_includes=$ac_optarg ;; |
| 1141 |
|
| 1142 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1143 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1144 |
ac_prev=x_libraries ;; |
| 1145 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1146 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1147 |
x_libraries=$ac_optarg ;; |
| 1148 |
|
| 1149 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1150 |
Try \`$0 --help' for more information" |
| 1151 |
;; |
| 1152 |
|
| 1153 |
*=*) |
| 1154 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1155 |
# Reject names that are not valid shell variable names. |
| 1156 |
case $ac_envvar in #( |
| 1157 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1158 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1159 |
esac |
| 1160 |
eval $ac_envvar=\$ac_optarg |
| 1161 |
export $ac_envvar ;; |
| 1162 |
|
| 1163 |
*) |
| 1164 |
# FIXME: should be removed in autoconf 3.0. |
| 1165 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1166 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1167 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1168 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1169 |
;; |
| 1170 |
|
| 1171 |
esac |
| 1172 |
done |
| 1173 |
|
| 1174 |
if test -n "$ac_prev"; then |
| 1175 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1176 |
as_fn_error $? "missing argument to $ac_option" |
| 1177 |
fi |
| 1178 |
|
| 1179 |
if test -n "$ac_unrecognized_opts"; then |
| 1180 |
case $enable_option_checking in |
| 1181 |
no) ;; |
| 1182 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1183 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1184 |
esac |
| 1185 |
fi |
| 1186 |
|
| 1187 |
# Check all directory arguments for consistency. |
| 1188 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1189 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1190 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1191 |
libdir localedir mandir runstatedir |
| 1192 |
do |
| 1193 |
eval ac_val=\$$ac_var |
| 1194 |
# Remove trailing slashes. |
| 1195 |
case $ac_val in |
| 1196 |
*/ ) |
| 1197 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1198 |
eval $ac_var=\$ac_val;; |
| 1199 |
esac |
| 1200 |
# Be sure to have absolute directory names. |
| 1201 |
case $ac_val in |
| 1202 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1203 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1204 |
esac |
| 1205 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1206 |
done |
| 1207 |
|
| 1208 |
# There might be people who depend on the old broken behavior: `$host' |
| 1209 |
# used to hold the argument of --host etc. |
| 1210 |
# FIXME: To remove some day. |
| 1211 |
build=$build_alias |
| 1212 |
host=$host_alias |
| 1213 |
target=$target_alias |
| 1214 |
|
| 1215 |
# FIXME: To remove some day. |
| 1216 |
if test "x$host_alias" != x; then |
| 1217 |
if test "x$build_alias" = x; then |
| 1218 |
cross_compiling=maybe |
| 1219 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1220 |
cross_compiling=yes |
| 1221 |
fi |
| 1222 |
fi |
| 1223 |
|
| 1224 |
ac_tool_prefix= |
| 1225 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1226 |
|
| 1227 |
test "$silent" = yes && exec 6>/dev/null |
| 1228 |
|
| 1229 |
|
| 1230 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1231 |
ac_ls_di=`ls -di .` && |
| 1232 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1233 |
as_fn_error $? "working directory cannot be determined" |
| 1234 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1235 |
as_fn_error $? "pwd does not report name of working directory" |
| 1236 |
|
| 1237 |
|
| 1238 |
# Find the source files, if location was not specified. |
| 1239 |
if test -z "$srcdir"; then |
| 1240 |
ac_srcdir_defaulted=yes |
| 1241 |
# Try the directory containing this script, then the parent directory. |
| 1242 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1243 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1244 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1245 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1246 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1247 |
printf "%s\n" X"$as_myself" | |
| 1248 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1249 |
s//\1/ |
| 1250 |
q |
| 1251 |
} |
| 1252 |
/^X\(\/\/\)[^/].*/{ |
| 1253 |
s//\1/ |
| 1254 |
q |
| 1255 |
} |
| 1256 |
/^X\(\/\/\)$/{ |
| 1257 |
s//\1/ |
| 1258 |
q |
| 1259 |
} |
| 1260 |
/^X\(\/\).*/{ |
| 1261 |
s//\1/ |
| 1262 |
q |
| 1263 |
} |
| 1264 |
s/.*/./; q'` |
| 1265 |
srcdir=$ac_confdir |
| 1266 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1267 |
srcdir=.. |
| 1268 |
fi |
| 1269 |
else |
| 1270 |
ac_srcdir_defaulted=no |
| 1271 |
fi |
| 1272 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1273 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1274 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1275 |
fi |
| 1276 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1277 |
ac_abs_confdir=`( |
| 1278 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1279 |
pwd)` |
| 1280 |
# When building in place, set srcdir=. |
| 1281 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1282 |
srcdir=. |
| 1283 |
fi |
| 1284 |
# Remove unnecessary trailing slashes from srcdir. |
| 1285 |
# Double slashes in file names in object file debugging info |
| 1286 |
# mess up M-x gdb in Emacs. |
| 1287 |
case $srcdir in |
| 1288 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1289 |
esac |
| 1290 |
for ac_var in $ac_precious_vars; do |
| 1291 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1292 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1293 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1294 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1295 |
done |
| 1296 |
|
| 1297 |
# |
| 1298 |
# Report the --help message. |
| 1299 |
# |
| 1300 |
if test "$ac_init_help" = "long"; then |
| 1301 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1302 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1303 |
cat <<_ACEOF |
| 1304 |
\`configure' configures ganyremote 8.1.1 to adapt to many kinds of systems. |
| 1305 |
|
| 1306 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1307 |
|
| 1308 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1309 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1310 |
|
| 1311 |
Defaults for the options are specified in brackets. |
| 1312 |
|
| 1313 |
Configuration: |
| 1314 |
-h, --help display this help and exit |
| 1315 |
--help=short display options specific to this package |
| 1316 |
--help=recursive display the short help of all the included packages |
| 1317 |
-V, --version display version information and exit |
| 1318 |
-q, --quiet, --silent do not print \`checking ...' messages |
| 1319 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1320 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 1321 |
-n, --no-create do not create output files |
| 1322 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1323 |
|
| 1324 |
Installation directories: |
| 1325 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1326 |
[$ac_default_prefix] |
| 1327 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1328 |
[PREFIX] |
| 1329 |
|
| 1330 |
By default, \`make install' will install all the files in |
| 1331 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1332 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1333 |
for instance \`--prefix=\$HOME'. |
| 1334 |
|
| 1335 |
For better control, use the options below. |
| 1336 |
|
| 1337 |
Fine tuning of the installation directories: |
| 1338 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1339 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1340 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1341 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1342 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1343 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1344 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1345 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1346 |
--includedir=DIR C header files [PREFIX/include] |
| 1347 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1348 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1349 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1350 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1351 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1352 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1353 |
--docdir=DIR documentation root [DATAROOTDIR/doc/ganyremote] |
| 1354 |
--htmldir=DIR html documentation [DOCDIR] |
| 1355 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1356 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1357 |
--psdir=DIR ps documentation [DOCDIR] |
| 1358 |
_ACEOF |
| 1359 |
|
| 1360 |
cat <<\_ACEOF |
| 1361 |
|
| 1362 |
Program names: |
| 1363 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 1364 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 1365 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1366 |
|
| 1367 |
System types: |
| 1368 |
--build=BUILD configure for building on BUILD [guessed] |
| 1369 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1370 |
_ACEOF |
| 1371 |
fi |
| 1372 |
|
| 1373 |
if test -n "$ac_init_help"; then |
| 1374 |
case $ac_init_help in |
| 1375 |
short | recursive ) echo "Configuration of ganyremote 8.1.1:";; |
| 1376 |
esac |
| 1377 |
cat <<\_ACEOF |
| 1378 |
|
| 1379 |
Optional Features: |
| 1380 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1381 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1382 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1383 |
--enable-silent-rules less verbose build output (undo: "make V=1") |
| 1384 |
--disable-silent-rules verbose build output (undo: "make V=0") |
| 1385 |
--disable-nls do not use Native Language Support |
| 1386 |
--enable-dependency-tracking |
| 1387 |
do not reject slow dependency extractors |
| 1388 |
--disable-dependency-tracking |
| 1389 |
speeds up one-time build |
| 1390 |
--disable-rpath do not hardcode runtime library paths |
| 1391 |
|
| 1392 |
Optional Packages: |
| 1393 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1394 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1395 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1396 |
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1397 |
--without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1398 |
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1399 |
--without-libintl-prefix don't search for libintl in includedir and libdir |
| 1400 |
|
| 1401 |
Some influential environment variables: |
| 1402 |
CC C compiler command |
| 1403 |
CFLAGS C compiler flags |
| 1404 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1405 |
nonstandard directory <lib dir> |
| 1406 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1407 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1408 |
you have headers in a nonstandard directory <include dir> |
| 1409 |
CPP C preprocessor |
| 1410 |
|
| 1411 |
Use these variables to override the choices made by `configure' or to help |
| 1412 |
it to find libraries and programs with nonstandard names/locations. |
| 1413 |
|
| 1414 |
Report bugs to the package provider. |
| 1415 |
_ACEOF |
| 1416 |
ac_status=$? |
| 1417 |
fi |
| 1418 |
|
| 1419 |
if test "$ac_init_help" = "recursive"; then |
| 1420 |
# If there are subdirs, report their specific --help. |
| 1421 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1422 |
test -d "$ac_dir" || |
| 1423 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1424 |
continue |
| 1425 |
ac_builddir=. |
| 1426 |
|
| 1427 |
case "$ac_dir" in |
| 1428 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1429 |
*) |
| 1430 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1431 |
# A ".." for each directory in $ac_dir_suffix. |
| 1432 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1433 |
case $ac_top_builddir_sub in |
| 1434 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1435 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1436 |
esac ;; |
| 1437 |
esac |
| 1438 |
ac_abs_top_builddir=$ac_pwd |
| 1439 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1440 |
# for backward compatibility: |
| 1441 |
ac_top_builddir=$ac_top_build_prefix |
| 1442 |
|
| 1443 |
case $srcdir in |
| 1444 |
.) # We are building in place. |
| 1445 |
ac_srcdir=. |
| 1446 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1447 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1448 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1449 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1450 |
ac_top_srcdir=$srcdir |
| 1451 |
ac_abs_top_srcdir=$srcdir ;; |
| 1452 |
*) # Relative name. |
| 1453 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1454 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1455 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1456 |
esac |
| 1457 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1458 |
|
| 1459 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1460 |
# Check for configure.gnu first; this name is used for a wrapper for |
| 1461 |
# Metaconfig's "Configure" on case-insensitive file systems. |
| 1462 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1463 |
echo && |
| 1464 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1465 |
elif test -f "$ac_srcdir/configure"; then |
| 1466 |
echo && |
| 1467 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1468 |
else |
| 1469 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1470 |
fi || ac_status=$? |
| 1471 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1472 |
done |
| 1473 |
fi |
| 1474 |
|
| 1475 |
test -n "$ac_init_help" && exit $ac_status |
| 1476 |
if $ac_init_version; then |
| 1477 |
cat <<\_ACEOF |
| 1478 |
ganyremote configure 8.1.1 |
| 1479 |
generated by GNU Autoconf 2.71 |
| 1480 |
|
| 1481 |
Copyright (C) 2021 Free Software Foundation, Inc. |
| 1482 |
This configure script is free software; the Free Software Foundation |
| 1483 |
gives unlimited permission to copy, distribute and modify it. |
| 1484 |
_ACEOF |
| 1485 |
exit |
| 1486 |
fi |
| 1487 |
|
| 1488 |
## ------------------------ ## |
| 1489 |
## Autoconf initialization. ## |
| 1490 |
## ------------------------ ## |
| 1491 |
|
| 1492 |
# ac_fn_c_try_compile LINENO |
| 1493 |
# -------------------------- |
| 1494 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1495 |
ac_fn_c_try_compile () |
| 1496 |
{ |
| 1497 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1498 |
rm -f conftest.$ac_objext conftest.beam |
| 1499 |
if { { ac_try="$ac_compile" |
| 1500 |
case "(($ac_try" in |
| 1501 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1502 |
*) ac_try_echo=$ac_try;; |
| 1503 |
esac |
| 1504 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1505 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1506 |
(eval "$ac_compile") 2>conftest.err |
| 1507 |
ac_status=$? |
| 1508 |
if test -s conftest.err; then |
| 1509 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1510 |
cat conftest.er1 >&5 |
| 1511 |
mv -f conftest.er1 conftest.err |
| 1512 |
fi |
| 1513 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1514 |
test $ac_status = 0; } && { |
| 1515 |
test -z "$ac_c_werror_flag" || |
| 1516 |
test ! -s conftest.err |
| 1517 |
} && test -s conftest.$ac_objext |
| 1518 |
then : |
| 1519 |
ac_retval=0 |
| 1520 |
else $as_nop |
| 1521 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 1522 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1523 |
|
| 1524 |
ac_retval=1 |
| 1525 |
fi |
| 1526 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1527 |
as_fn_set_status $ac_retval |
| 1528 |
|
| 1529 |
} # ac_fn_c_try_compile |
| 1530 |
|
| 1531 |
# ac_fn_c_try_cpp LINENO |
| 1532 |
# ---------------------- |
| 1533 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1534 |
ac_fn_c_try_cpp () |
| 1535 |
{ |
| 1536 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1537 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1538 |
case "(($ac_try" in |
| 1539 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1540 |
*) ac_try_echo=$ac_try;; |
| 1541 |
esac |
| 1542 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1543 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1544 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1545 |
ac_status=$? |
| 1546 |
if test -s conftest.err; then |
| 1547 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1548 |
cat conftest.er1 >&5 |
| 1549 |
mv -f conftest.er1 conftest.err |
| 1550 |
fi |
| 1551 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1552 |
test $ac_status = 0; } > conftest.i && { |
| 1553 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1554 |
test ! -s conftest.err |
| 1555 |
} |
| 1556 |
then : |
| 1557 |
ac_retval=0 |
| 1558 |
else $as_nop |
| 1559 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 1560 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1561 |
|
| 1562 |
ac_retval=1 |
| 1563 |
fi |
| 1564 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1565 |
as_fn_set_status $ac_retval |
| 1566 |
|
| 1567 |
} # ac_fn_c_try_cpp |
| 1568 |
|
| 1569 |
# ac_fn_c_try_link LINENO |
| 1570 |
# ----------------------- |
| 1571 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1572 |
ac_fn_c_try_link () |
| 1573 |
{ |
| 1574 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1575 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1576 |
if { { ac_try="$ac_link" |
| 1577 |
case "(($ac_try" in |
| 1578 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1579 |
*) ac_try_echo=$ac_try;; |
| 1580 |
esac |
| 1581 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1582 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1583 |
(eval "$ac_link") 2>conftest.err |
| 1584 |
ac_status=$? |
| 1585 |
if test -s conftest.err; then |
| 1586 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1587 |
cat conftest.er1 >&5 |
| 1588 |
mv -f conftest.er1 conftest.err |
| 1589 |
fi |
| 1590 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1591 |
test $ac_status = 0; } && { |
| 1592 |
test -z "$ac_c_werror_flag" || |
| 1593 |
test ! -s conftest.err |
| 1594 |
} && test -s conftest$ac_exeext && { |
| 1595 |
test "$cross_compiling" = yes || |
| 1596 |
test -x conftest$ac_exeext |
| 1597 |
} |
| 1598 |
then : |
| 1599 |
ac_retval=0 |
| 1600 |
else $as_nop |
| 1601 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 1602 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1603 |
|
| 1604 |
ac_retval=1 |
| 1605 |
fi |
| 1606 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1607 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1608 |
# interfere with the next link command; also delete a directory that is |
| 1609 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 1610 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1611 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1612 |
as_fn_set_status $ac_retval |
| 1613 |
|
| 1614 |
} # ac_fn_c_try_link |
| 1615 |
|
| 1616 |
# ac_fn_c_try_run LINENO |
| 1617 |
# ---------------------- |
| 1618 |
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 1619 |
# executables *can* be run. |
| 1620 |
ac_fn_c_try_run () |
| 1621 |
{ |
| 1622 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1623 |
if { { ac_try="$ac_link" |
| 1624 |
case "(($ac_try" in |
| 1625 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1626 |
*) ac_try_echo=$ac_try;; |
| 1627 |
esac |
| 1628 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1629 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1630 |
(eval "$ac_link") 2>&5 |
| 1631 |
ac_status=$? |
| 1632 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1633 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1634 |
{ { case "(($ac_try" in |
| 1635 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1636 |
*) ac_try_echo=$ac_try;; |
| 1637 |
esac |
| 1638 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1639 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1640 |
(eval "$ac_try") 2>&5 |
| 1641 |
ac_status=$? |
| 1642 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1643 |
test $ac_status = 0; }; } |
| 1644 |
then : |
| 1645 |
ac_retval=0 |
| 1646 |
else $as_nop |
| 1647 |
printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 1648 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 1649 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1650 |
|
| 1651 |
ac_retval=$ac_status |
| 1652 |
fi |
| 1653 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1654 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1655 |
as_fn_set_status $ac_retval |
| 1656 |
|
| 1657 |
} # ac_fn_c_try_run |
| 1658 |
ac_configure_args_raw= |
| 1659 |
for ac_arg |
| 1660 |
do |
| 1661 |
case $ac_arg in |
| 1662 |
*\'*) |
| 1663 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1664 |
esac |
| 1665 |
as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 1666 |
done |
| 1667 |
|
| 1668 |
case $ac_configure_args_raw in |
| 1669 |
*$as_nl*) |
| 1670 |
ac_safe_unquote= ;; |
| 1671 |
*) |
| 1672 |
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 1673 |
ac_unsafe_a="$ac_unsafe_z#~" |
| 1674 |
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 1675 |
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 1676 |
esac |
| 1677 |
|
| 1678 |
cat >config.log <<_ACEOF |
| 1679 |
This file contains any messages produced by compilers while |
| 1680 |
running configure, to aid debugging if configure makes a mistake. |
| 1681 |
|
| 1682 |
It was created by ganyremote $as_me 8.1.1, which was |
| 1683 |
generated by GNU Autoconf 2.71. Invocation command line was |
| 1684 |
|
| 1685 |
$ $0$ac_configure_args_raw |
| 1686 |
|
| 1687 |
_ACEOF |
| 1688 |
exec 5>>config.log |
| 1689 |
{ |
| 1690 |
cat <<_ASUNAME |
| 1691 |
## --------- ## |
| 1692 |
## Platform. ## |
| 1693 |
## --------- ## |
| 1694 |
|
| 1695 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1696 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1697 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1698 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1699 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1700 |
|
| 1701 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1702 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1703 |
|
| 1704 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1705 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1706 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1707 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1708 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1709 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1710 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1711 |
|
| 1712 |
_ASUNAME |
| 1713 |
|
| 1714 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1715 |
for as_dir in $PATH |
| 1716 |
do |
| 1717 |
IFS=$as_save_IFS |
| 1718 |
case $as_dir in #((( |
| 1719 |
'') as_dir=./ ;; |
| 1720 |
*/) ;; |
| 1721 |
*) as_dir=$as_dir/ ;; |
| 1722 |
esac |
| 1723 |
printf "%s\n" "PATH: $as_dir" |
| 1724 |
done |
| 1725 |
IFS=$as_save_IFS |
| 1726 |
|
| 1727 |
} >&5 |
| 1728 |
|
| 1729 |
cat >&5 <<_ACEOF |
| 1730 |
|
| 1731 |
|
| 1732 |
## ----------- ## |
| 1733 |
## Core tests. ## |
| 1734 |
## ----------- ## |
| 1735 |
|
| 1736 |
_ACEOF |
| 1737 |
|
| 1738 |
|
| 1739 |
# Keep a trace of the command line. |
| 1740 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 1741 |
# Strip out --silent because we don't want to record it for future runs. |
| 1742 |
# Also quote any args containing shell meta-characters. |
| 1743 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 1744 |
ac_configure_args= |
| 1745 |
ac_configure_args0= |
| 1746 |
ac_configure_args1= |
| 1747 |
ac_must_keep_next=false |
| 1748 |
for ac_pass in 1 2 |
| 1749 |
do |
| 1750 |
for ac_arg |
| 1751 |
do |
| 1752 |
case $ac_arg in |
| 1753 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1754 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1755 |
| -silent | --silent | --silen | --sile | --sil) |
| 1756 |
continue ;; |
| 1757 |
*\'*) |
| 1758 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1759 |
esac |
| 1760 |
case $ac_pass in |
| 1761 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1762 |
2) |
| 1763 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1764 |
if test $ac_must_keep_next = true; then |
| 1765 |
ac_must_keep_next=false # Got value, back to normal. |
| 1766 |
else |
| 1767 |
case $ac_arg in |
| 1768 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1769 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1770 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1771 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 1772 |
case "$ac_configure_args0 " in |
| 1773 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1774 |
esac |
| 1775 |
;; |
| 1776 |
-* ) ac_must_keep_next=true ;; |
| 1777 |
esac |
| 1778 |
fi |
| 1779 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 1780 |
;; |
| 1781 |
esac |
| 1782 |
done |
| 1783 |
done |
| 1784 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 1785 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 1786 |
|
| 1787 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 1788 |
# config.log. We remove comments because anyway the quotes in there |
| 1789 |
# would cause problems or look ugly. |
| 1790 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1791 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1792 |
trap 'exit_status=$? |
| 1793 |
# Sanitize IFS. |
| 1794 |
IFS=" "" $as_nl" |
| 1795 |
# Save into config.log some information that might help in debugging. |
| 1796 |
{ |
| 1797 |
echo |
| 1798 |
|
| 1799 |
printf "%s\n" "## ---------------- ## |
| 1800 |
## Cache variables. ## |
| 1801 |
## ---------------- ##" |
| 1802 |
echo |
| 1803 |
# The following way of writing the cache mishandles newlines in values, |
| 1804 |
( |
| 1805 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1806 |
eval ac_val=\$$ac_var |
| 1807 |
case $ac_val in #( |
| 1808 |
*${as_nl}*) |
| 1809 |
case $ac_var in #( |
| 1810 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1811 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1812 |
esac |
| 1813 |
case $ac_var in #( |
| 1814 |
_ | IFS | as_nl) ;; #( |
| 1815 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1816 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 1817 |
esac ;; |
| 1818 |
esac |
| 1819 |
done |
| 1820 |
(set) 2>&1 | |
| 1821 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1822 |
*${as_nl}ac_space=\ *) |
| 1823 |
sed -n \ |
| 1824 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 1825 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1826 |
;; #( |
| 1827 |
*) |
| 1828 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1829 |
;; |
| 1830 |
esac | |
| 1831 |
sort |
| 1832 |
) |
| 1833 |
echo |
| 1834 |
|
| 1835 |
printf "%s\n" "## ----------------- ## |
| 1836 |
## Output variables. ## |
| 1837 |
## ----------------- ##" |
| 1838 |
echo |
| 1839 |
for ac_var in $ac_subst_vars |
| 1840 |
do |
| 1841 |
eval ac_val=\$$ac_var |
| 1842 |
case $ac_val in |
| 1843 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1844 |
esac |
| 1845 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 1846 |
done | sort |
| 1847 |
echo |
| 1848 |
|
| 1849 |
if test -n "$ac_subst_files"; then |
| 1850 |
printf "%s\n" "## ------------------- ## |
| 1851 |
## File substitutions. ## |
| 1852 |
## ------------------- ##" |
| 1853 |
echo |
| 1854 |
for ac_var in $ac_subst_files |
| 1855 |
do |
| 1856 |
eval ac_val=\$$ac_var |
| 1857 |
case $ac_val in |
| 1858 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1859 |
esac |
| 1860 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 1861 |
done | sort |
| 1862 |
echo |
| 1863 |
fi |
| 1864 |
|
| 1865 |
if test -s confdefs.h; then |
| 1866 |
printf "%s\n" "## ----------- ## |
| 1867 |
## confdefs.h. ## |
| 1868 |
## ----------- ##" |
| 1869 |
echo |
| 1870 |
cat confdefs.h |
| 1871 |
echo |
| 1872 |
fi |
| 1873 |
test "$ac_signal" != 0 && |
| 1874 |
printf "%s\n" "$as_me: caught signal $ac_signal" |
| 1875 |
printf "%s\n" "$as_me: exit $exit_status" |
| 1876 |
} >&5 |
| 1877 |
rm -f core *.core core.conftest.* && |
| 1878 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1879 |
exit $exit_status |
| 1880 |
' 0 |
| 1881 |
for ac_signal in 1 2 13 15; do |
| 1882 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1883 |
done |
| 1884 |
ac_signal=0 |
| 1885 |
|
| 1886 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1887 |
rm -f -r conftest* confdefs.h |
| 1888 |
|
| 1889 |
printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 1890 |
|
| 1891 |
# Predefined preprocessor variables. |
| 1892 |
|
| 1893 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 1894 |
|
| 1895 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 1896 |
|
| 1897 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 1898 |
|
| 1899 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 1900 |
|
| 1901 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 1902 |
|
| 1903 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 1904 |
|
| 1905 |
|
| 1906 |
# Let the site file select an alternate cache file if it wants to. |
| 1907 |
# Prefer an explicitly selected file to automatically selected ones. |
| 1908 |
if test -n "$CONFIG_SITE"; then |
| 1909 |
ac_site_files="$CONFIG_SITE" |
| 1910 |
elif test "x$prefix" != xNONE; then |
| 1911 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 1912 |
else |
| 1913 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1914 |
fi |
| 1915 |
|
| 1916 |
for ac_site_file in $ac_site_files |
| 1917 |
do |
| 1918 |
case $ac_site_file in #( |
| 1919 |
*/*) : |
| 1920 |
;; #( |
| 1921 |
*) : |
| 1922 |
ac_site_file=./$ac_site_file ;; |
| 1923 |
esac |
| 1924 |
if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 1925 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 1926 |
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 1927 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 1928 |
. "$ac_site_file" \ |
| 1929 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1930 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1931 |
as_fn_error $? "failed to load site script $ac_site_file |
| 1932 |
See \`config.log' for more details" "$LINENO" 5; } |
| 1933 |
fi |
| 1934 |
done |
| 1935 |
|
| 1936 |
if test -r "$cache_file"; then |
| 1937 |
# Some versions of bash will fail to source /dev/null (special files |
| 1938 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 1939 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 1940 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 1941 |
printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 1942 |
case $cache_file in |
| 1943 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1944 |
*) . "./$cache_file";; |
| 1945 |
esac |
| 1946 |
fi |
| 1947 |
else |
| 1948 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 1949 |
printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 1950 |
>$cache_file |
| 1951 |
fi |
| 1952 |
|
| 1953 |
gt_needs="$gt_needs " |
| 1954 |
# Test code for whether the C compiler supports C89 (global declarations) |
| 1955 |
ac_c_conftest_c89_globals=' |
| 1956 |
/* Does the compiler advertise C89 conformance? |
| 1957 |
Do not test the value of __STDC__, because some compilers set it to 0 |
| 1958 |
while being otherwise adequately conformant. */ |
| 1959 |
#if !defined __STDC__ |
| 1960 |
# error "Compiler does not advertise C89 conformance" |
| 1961 |
#endif |
| 1962 |
|
| 1963 |
#include <stddef.h> |
| 1964 |
#include <stdarg.h> |
| 1965 |
struct stat; |
| 1966 |
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 1967 |
struct buf { int x; }; |
| 1968 |
struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 1969 |
static char *e (p, i) |
| 1970 |
char **p; |
| 1971 |
int i; |
| 1972 |
{ |
| 1973 |
return p[i]; |
| 1974 |
} |
| 1975 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 1976 |
{ |
| 1977 |
char *s; |
| 1978 |
va_list v; |
| 1979 |
va_start (v,p); |
| 1980 |
s = g (p, va_arg (v,int)); |
| 1981 |
va_end (v); |
| 1982 |
return s; |
| 1983 |
} |
| 1984 |
|
| 1985 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 1986 |
function prototypes and stuff, but not \xHH hex character constants. |
| 1987 |
These do not provoke an error unfortunately, instead are silently treated |
| 1988 |
as an "x". The following induces an error, until -std is added to get |
| 1989 |
proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 1990 |
array size at least. It is necessary to write \x00 == 0 to get something |
| 1991 |
that is true only with -std. */ |
| 1992 |
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 1993 |
|
| 1994 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 1995 |
inside strings and character constants. */ |
| 1996 |
#define FOO(x) '\''x'\'' |
| 1997 |
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 1998 |
|
| 1999 |
int test (int i, double x); |
| 2000 |
struct s1 {int (*f) (int a);}; |
| 2001 |
struct s2 {int (*f) (double a);}; |
| 2002 |
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2003 |
int, int);' |
| 2004 |
|
| 2005 |
# Test code for whether the C compiler supports C89 (body of main). |
| 2006 |
ac_c_conftest_c89_main=' |
| 2007 |
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2008 |
' |
| 2009 |
|
| 2010 |
# Test code for whether the C compiler supports C99 (global declarations) |
| 2011 |
ac_c_conftest_c99_globals=' |
| 2012 |
// Does the compiler advertise C99 conformance? |
| 2013 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2014 |
# error "Compiler does not advertise C99 conformance" |
| 2015 |
#endif |
| 2016 |
|
| 2017 |
#include <stdbool.h> |
| 2018 |
extern int puts (const char *); |
| 2019 |
extern int printf (const char *, ...); |
| 2020 |
extern int dprintf (int, const char *, ...); |
| 2021 |
extern void *malloc (size_t); |
| 2022 |
|
| 2023 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2024 |
// dprintf is used instead of fprintf to avoid needing to declare |
| 2025 |
// FILE and stderr. |
| 2026 |
#define debug(...) dprintf (2, __VA_ARGS__) |
| 2027 |
#define showlist(...) puts (#__VA_ARGS__) |
| 2028 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2029 |
static void |
| 2030 |
test_varargs_macros (void) |
| 2031 |
{ |
| 2032 |
int x = 1234; |
| 2033 |
int y = 5678; |
| 2034 |
debug ("Flag"); |
| 2035 |
debug ("X = %d\n", x); |
| 2036 |
showlist (The first, second, and third items.); |
| 2037 |
report (x>y, "x is %d but y is %d", x, y); |
| 2038 |
} |
| 2039 |
|
| 2040 |
// Check long long types. |
| 2041 |
#define BIG64 18446744073709551615ull |
| 2042 |
#define BIG32 4294967295ul |
| 2043 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2044 |
#if !BIG_OK |
| 2045 |
#error "your preprocessor is broken" |
| 2046 |
#endif |
| 2047 |
#if BIG_OK |
| 2048 |
#else |
| 2049 |
#error "your preprocessor is broken" |
| 2050 |
#endif |
| 2051 |
static long long int bignum = -9223372036854775807LL; |
| 2052 |
static unsigned long long int ubignum = BIG64; |
| 2053 |
|
| 2054 |
struct incomplete_array |
| 2055 |
{ |
| 2056 |
int datasize; |
| 2057 |
double data[]; |
| 2058 |
}; |
| 2059 |
|
| 2060 |
struct named_init { |
| 2061 |
int number; |
| 2062 |
const wchar_t *name; |
| 2063 |
double average; |
| 2064 |
}; |
| 2065 |
|
| 2066 |
typedef const char *ccp; |
| 2067 |
|
| 2068 |
static inline int |
| 2069 |
test_restrict (ccp restrict text) |
| 2070 |
{ |
| 2071 |
// See if C++-style comments work. |
| 2072 |
// Iterate through items via the restricted pointer. |
| 2073 |
// Also check for declarations in for loops. |
| 2074 |
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2075 |
continue; |
| 2076 |
return 0; |
| 2077 |
} |
| 2078 |
|
| 2079 |
// Check varargs and va_copy. |
| 2080 |
static bool |
| 2081 |
test_varargs (const char *format, ...) |
| 2082 |
{ |
| 2083 |
va_list args; |
| 2084 |
va_start (args, format); |
| 2085 |
va_list args_copy; |
| 2086 |
va_copy (args_copy, args); |
| 2087 |
|
| 2088 |
const char *str = ""; |
| 2089 |
int number = 0; |
| 2090 |
float fnumber = 0; |
| 2091 |
|
| 2092 |
while (*format) |
| 2093 |
{ |
| 2094 |
switch (*format++) |
| 2095 |
{ |
| 2096 |
case '\''s'\'': // string |
| 2097 |
str = va_arg (args_copy, const char *); |
| 2098 |
break; |
| 2099 |
case '\''d'\'': // int |
| 2100 |
number = va_arg (args_copy, int); |
| 2101 |
break; |
| 2102 |
case '\''f'\'': // float |
| 2103 |
fnumber = va_arg (args_copy, double); |
| 2104 |
break; |
| 2105 |
default: |
| 2106 |
break; |
| 2107 |
} |
| 2108 |
} |
| 2109 |
va_end (args_copy); |
| 2110 |
va_end (args); |
| 2111 |
|
| 2112 |
return *str && number && fnumber; |
| 2113 |
} |
| 2114 |
' |
| 2115 |
|
| 2116 |
# Test code for whether the C compiler supports C99 (body of main). |
| 2117 |
ac_c_conftest_c99_main=' |
| 2118 |
// Check bool. |
| 2119 |
_Bool success = false; |
| 2120 |
success |= (argc != 0); |
| 2121 |
|
| 2122 |
// Check restrict. |
| 2123 |
if (test_restrict ("String literal") == 0) |
| 2124 |
success = true; |
| 2125 |
char *restrict newvar = "Another string"; |
| 2126 |
|
| 2127 |
// Check varargs. |
| 2128 |
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2129 |
test_varargs_macros (); |
| 2130 |
|
| 2131 |
// Check flexible array members. |
| 2132 |
struct incomplete_array *ia = |
| 2133 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2134 |
ia->datasize = 10; |
| 2135 |
for (int i = 0; i < ia->datasize; ++i) |
| 2136 |
ia->data[i] = i * 1.234; |
| 2137 |
|
| 2138 |
// Check named initializers. |
| 2139 |
struct named_init ni = { |
| 2140 |
.number = 34, |
| 2141 |
.name = L"Test wide string", |
| 2142 |
.average = 543.34343, |
| 2143 |
}; |
| 2144 |
|
| 2145 |
ni.number = 58; |
| 2146 |
|
| 2147 |
int dynamic_array[ni.number]; |
| 2148 |
dynamic_array[0] = argv[0][0]; |
| 2149 |
dynamic_array[ni.number - 1] = 543; |
| 2150 |
|
| 2151 |
// work around unused variable warnings |
| 2152 |
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2153 |
|| dynamic_array[ni.number - 1] != 543); |
| 2154 |
' |
| 2155 |
|
| 2156 |
# Test code for whether the C compiler supports C11 (global declarations) |
| 2157 |
ac_c_conftest_c11_globals=' |
| 2158 |
// Does the compiler advertise C11 conformance? |
| 2159 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2160 |
# error "Compiler does not advertise C11 conformance" |
| 2161 |
#endif |
| 2162 |
|
| 2163 |
// Check _Alignas. |
| 2164 |
char _Alignas (double) aligned_as_double; |
| 2165 |
char _Alignas (0) no_special_alignment; |
| 2166 |
extern char aligned_as_int; |
| 2167 |
char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2168 |
|
| 2169 |
// Check _Alignof. |
| 2170 |
enum |
| 2171 |
{ |
| 2172 |
int_alignment = _Alignof (int), |
| 2173 |
int_array_alignment = _Alignof (int[100]), |
| 2174 |
char_alignment = _Alignof (char) |
| 2175 |
}; |
| 2176 |
_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2177 |
|
| 2178 |
// Check _Noreturn. |
| 2179 |
int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2180 |
|
| 2181 |
// Check _Static_assert. |
| 2182 |
struct test_static_assert |
| 2183 |
{ |
| 2184 |
int x; |
| 2185 |
_Static_assert (sizeof (int) <= sizeof (long int), |
| 2186 |
"_Static_assert does not work in struct"); |
| 2187 |
long int y; |
| 2188 |
}; |
| 2189 |
|
| 2190 |
// Check UTF-8 literals. |
| 2191 |
#define u8 syntax error! |
| 2192 |
char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2193 |
|
| 2194 |
// Check duplicate typedefs. |
| 2195 |
typedef long *long_ptr; |
| 2196 |
typedef long int *long_ptr; |
| 2197 |
typedef long_ptr long_ptr; |
| 2198 |
|
| 2199 |
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2200 |
struct anonymous |
| 2201 |
{ |
| 2202 |
union { |
| 2203 |
struct { int i; int j; }; |
| 2204 |
struct { int k; long int l; } w; |
| 2205 |
}; |
| 2206 |
int m; |
| 2207 |
} v1; |
| 2208 |
' |
| 2209 |
|
| 2210 |
# Test code for whether the C compiler supports C11 (body of main). |
| 2211 |
ac_c_conftest_c11_main=' |
| 2212 |
_Static_assert ((offsetof (struct anonymous, i) |
| 2213 |
== offsetof (struct anonymous, w.k)), |
| 2214 |
"Anonymous union alignment botch"); |
| 2215 |
v1.i = 2; |
| 2216 |
v1.w.k = 5; |
| 2217 |
ok |= v1.i != 5; |
| 2218 |
' |
| 2219 |
|
| 2220 |
# Test code for whether the C compiler supports C11 (complete). |
| 2221 |
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2222 |
${ac_c_conftest_c99_globals} |
| 2223 |
${ac_c_conftest_c11_globals} |
| 2224 |
|
| 2225 |
int |
| 2226 |
main (int argc, char **argv) |
| 2227 |
{ |
| 2228 |
int ok = 0; |
| 2229 |
${ac_c_conftest_c89_main} |
| 2230 |
${ac_c_conftest_c99_main} |
| 2231 |
${ac_c_conftest_c11_main} |
| 2232 |
return ok; |
| 2233 |
} |
| 2234 |
" |
| 2235 |
|
| 2236 |
# Test code for whether the C compiler supports C99 (complete). |
| 2237 |
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2238 |
${ac_c_conftest_c99_globals} |
| 2239 |
|
| 2240 |
int |
| 2241 |
main (int argc, char **argv) |
| 2242 |
{ |
| 2243 |
int ok = 0; |
| 2244 |
${ac_c_conftest_c89_main} |
| 2245 |
${ac_c_conftest_c99_main} |
| 2246 |
return ok; |
| 2247 |
} |
| 2248 |
" |
| 2249 |
|
| 2250 |
# Test code for whether the C compiler supports C89 (complete). |
| 2251 |
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2252 |
|
| 2253 |
int |
| 2254 |
main (int argc, char **argv) |
| 2255 |
{ |
| 2256 |
int ok = 0; |
| 2257 |
${ac_c_conftest_c89_main} |
| 2258 |
return ok; |
| 2259 |
} |
| 2260 |
" |
| 2261 |
|
| 2262 |
|
| 2263 |
# Auxiliary files required by this configure script. |
| 2264 |
ac_aux_files="config.guess config.sub compile config.rpath missing install-sh" |
| 2265 |
|
| 2266 |
# Locations in which to look for auxiliary files. |
| 2267 |
ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
| 2268 |
|
| 2269 |
# Search for a directory containing all of the required auxiliary files, |
| 2270 |
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 2271 |
# If we don't find one directory that contains all the files we need, |
| 2272 |
# we report the set of missing files from the *first* directory in |
| 2273 |
# $ac_aux_dir_candidates and give up. |
| 2274 |
ac_missing_aux_files="" |
| 2275 |
ac_first_candidate=: |
| 2276 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 2277 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2278 |
as_found=false |
| 2279 |
for as_dir in $ac_aux_dir_candidates |
| 2280 |
do |
| 2281 |
IFS=$as_save_IFS |
| 2282 |
case $as_dir in #((( |
| 2283 |
'') as_dir=./ ;; |
| 2284 |
*/) ;; |
| 2285 |
*) as_dir=$as_dir/ ;; |
| 2286 |
esac |
| 2287 |
as_found=: |
| 2288 |
|
| 2289 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 2290 |
ac_aux_dir_found=yes |
| 2291 |
ac_install_sh= |
| 2292 |
for ac_aux in $ac_aux_files |
| 2293 |
do |
| 2294 |
# As a special case, if "install-sh" is required, that requirement |
| 2295 |
# can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 2296 |
# and $ac_install_sh is set appropriately for whichever one is found. |
| 2297 |
if test x"$ac_aux" = x"install-sh" |
| 2298 |
then |
| 2299 |
if test -f "${as_dir}install-sh"; then |
| 2300 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 2301 |
ac_install_sh="${as_dir}install-sh -c" |
| 2302 |
elif test -f "${as_dir}install.sh"; then |
| 2303 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 2304 |
ac_install_sh="${as_dir}install.sh -c" |
| 2305 |
elif test -f "${as_dir}shtool"; then |
| 2306 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 2307 |
ac_install_sh="${as_dir}shtool install -c" |
| 2308 |
else |
| 2309 |
ac_aux_dir_found=no |
| 2310 |
if $ac_first_candidate; then |
| 2311 |
ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 2312 |
else |
| 2313 |
break |
| 2314 |
fi |
| 2315 |
fi |
| 2316 |
else |
| 2317 |
if test -f "${as_dir}${ac_aux}"; then |
| 2318 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 2319 |
else |
| 2320 |
ac_aux_dir_found=no |
| 2321 |
if $ac_first_candidate; then |
| 2322 |
ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 2323 |
else |
| 2324 |
break |
| 2325 |
fi |
| 2326 |
fi |
| 2327 |
fi |
| 2328 |
done |
| 2329 |
if test "$ac_aux_dir_found" = yes; then |
| 2330 |
ac_aux_dir="$as_dir" |
| 2331 |
break |
| 2332 |
fi |
| 2333 |
ac_first_candidate=false |
| 2334 |
|
| 2335 |
as_found=false |
| 2336 |
done |
| 2337 |
IFS=$as_save_IFS |
| 2338 |
if $as_found |
| 2339 |
then : |
| 2340 |
|
| 2341 |
else $as_nop |
| 2342 |
as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
| 2343 |
fi |
| 2344 |
|
| 2345 |
|
| 2346 |
# These three variables are undocumented and unsupported, |
| 2347 |
# and are intended to be withdrawn in a future Autoconf release. |
| 2348 |
# They can cause serious problems if a builder's source tree is in a directory |
| 2349 |
# whose full name contains unusual characters. |
| 2350 |
if test -f "${ac_aux_dir}config.guess"; then |
| 2351 |
ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 2352 |
fi |
| 2353 |
if test -f "${ac_aux_dir}config.sub"; then |
| 2354 |
ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 2355 |
fi |
| 2356 |
if test -f "$ac_aux_dir/configure"; then |
| 2357 |
ac_configure="$SHELL ${ac_aux_dir}configure" |
| 2358 |
fi |
| 2359 |
|
| 2360 |
# Check that the precious variables saved in the cache have kept the same |
| 2361 |
# value. |
| 2362 |
ac_cache_corrupted=false |
| 2363 |
for ac_var in $ac_precious_vars; do |
| 2364 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2365 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 2366 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2367 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 2368 |
case $ac_old_set,$ac_new_set in |
| 2369 |
set,) |
| 2370 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2371 |
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2372 |
ac_cache_corrupted=: ;; |
| 2373 |
,set) |
| 2374 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2375 |
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2376 |
ac_cache_corrupted=: ;; |
| 2377 |
,);; |
| 2378 |
*) |
| 2379 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2380 |
# differences in whitespace do not lead to failure. |
| 2381 |
ac_old_val_w=`echo x $ac_old_val` |
| 2382 |
ac_new_val_w=`echo x $ac_new_val` |
| 2383 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2384 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2385 |
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2386 |
ac_cache_corrupted=: |
| 2387 |
else |
| 2388 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2389 |
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2390 |
eval $ac_var=\$ac_old_val |
| 2391 |
fi |
| 2392 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2393 |
printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2394 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2395 |
printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2396 |
fi;; |
| 2397 |
esac |
| 2398 |
# Pass precious variables to config.status. |
| 2399 |
if test "$ac_new_set" = set; then |
| 2400 |
case $ac_new_val in |
| 2401 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2402 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 2403 |
esac |
| 2404 |
case " $ac_configure_args " in |
| 2405 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2406 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2407 |
esac |
| 2408 |
fi |
| 2409 |
done |
| 2410 |
if $ac_cache_corrupted; then |
| 2411 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2412 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2413 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2414 |
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2415 |
as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| 2416 |
and start over" "$LINENO" 5 |
| 2417 |
fi |
| 2418 |
## -------------------- ## |
| 2419 |
## Main body of script. ## |
| 2420 |
## -------------------- ## |
| 2421 |
|
| 2422 |
ac_ext=c |
| 2423 |
ac_cpp='$CPP $CPPFLAGS' |
| 2424 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2425 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2426 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2427 |
|
| 2428 |
|
| 2429 |
am__api_version='1.16' |
| 2430 |
|
| 2431 |
|
| 2432 |
|
| 2433 |
# Find a good install program. We prefer a C program (faster), |
| 2434 |
# so one script is as good as another. But avoid the broken or |
| 2435 |
# incompatible versions: |
| 2436 |
# SysV /etc/install, /usr/sbin/install |
| 2437 |
# SunOS /usr/etc/install |
| 2438 |
# IRIX /sbin/install |
| 2439 |
# AIX /bin/install |
| 2440 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2441 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2442 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2443 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2444 |
# OS/2's system install, which has a completely different semantic |
| 2445 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 2446 |
# Reject install programs that cannot install multiple files. |
| 2447 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2448 |
printf %s "checking for a BSD-compatible install... " >&6; } |
| 2449 |
if test -z "$INSTALL"; then |
| 2450 |
if test ${ac_cv_path_install+y} |
| 2451 |
then : |
| 2452 |
printf %s "(cached) " >&6 |
| 2453 |
else $as_nop |
| 2454 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2455 |
for as_dir in $PATH |
| 2456 |
do |
| 2457 |
IFS=$as_save_IFS |
| 2458 |
case $as_dir in #((( |
| 2459 |
'') as_dir=./ ;; |
| 2460 |
*/) ;; |
| 2461 |
*) as_dir=$as_dir/ ;; |
| 2462 |
esac |
| 2463 |
# Account for fact that we put trailing slashes in our PATH walk. |
| 2464 |
case $as_dir in #(( |
| 2465 |
./ | /[cC]/* | \ |
| 2466 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2467 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2468 |
/usr/ucb/* ) ;; |
| 2469 |
*) |
| 2470 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 2471 |
# Don't use installbsd from OSF since it installs stuff as root |
| 2472 |
# by default. |
| 2473 |
for ac_prog in ginstall scoinst install; do |
| 2474 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2475 |
if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
| 2476 |
if test $ac_prog = install && |
| 2477 |
grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2478 |
# AIX install. It has an incompatible calling convention. |
| 2479 |
: |
| 2480 |
elif test $ac_prog = install && |
| 2481 |
grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2482 |
# program-specific install script used by HP pwplus--don't use. |
| 2483 |
: |
| 2484 |
else |
| 2485 |
rm -rf conftest.one conftest.two conftest.dir |
| 2486 |
echo one > conftest.one |
| 2487 |
echo two > conftest.two |
| 2488 |
mkdir conftest.dir |
| 2489 |
if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
| 2490 |
test -s conftest.one && test -s conftest.two && |
| 2491 |
test -s conftest.dir/conftest.one && |
| 2492 |
test -s conftest.dir/conftest.two |
| 2493 |
then |
| 2494 |
ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 2495 |
break 3 |
| 2496 |
fi |
| 2497 |
fi |
| 2498 |
fi |
| 2499 |
done |
| 2500 |
done |
| 2501 |
;; |
| 2502 |
esac |
| 2503 |
|
| 2504 |
done |
| 2505 |
IFS=$as_save_IFS |
| 2506 |
|
| 2507 |
rm -rf conftest.one conftest.two conftest.dir |
| 2508 |
|
| 2509 |
fi |
| 2510 |
if test ${ac_cv_path_install+y}; then |
| 2511 |
INSTALL=$ac_cv_path_install |
| 2512 |
else |
| 2513 |
# As a last resort, use the slow shell script. Don't cache a |
| 2514 |
# value for INSTALL within a source directory, because that will |
| 2515 |
# break other packages using the cache if that directory is |
| 2516 |
# removed, or if the value is a relative name. |
| 2517 |
INSTALL=$ac_install_sh |
| 2518 |
fi |
| 2519 |
fi |
| 2520 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2521 |
printf "%s\n" "$INSTALL" >&6; } |
| 2522 |
|
| 2523 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2524 |
# It thinks the first close brace ends the variable substitution. |
| 2525 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2526 |
|
| 2527 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2528 |
|
| 2529 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2530 |
|
| 2531 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2532 |
printf %s "checking whether build environment is sane... " >&6; } |
| 2533 |
# Reject unsafe characters in $srcdir or the absolute working directory |
| 2534 |
# name. Accept space and tab only in the latter. |
| 2535 |
am_lf=' |
| 2536 |
' |
| 2537 |
case `pwd` in |
| 2538 |
*[\\\"\#\$\&\'\`$am_lf]*) |
| 2539 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 2540 |
esac |
| 2541 |
case $srcdir in |
| 2542 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2543 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 2544 |
esac |
| 2545 |
|
| 2546 |
# Do 'set' in a subshell so we don't clobber the current shell's |
| 2547 |
# arguments. Must try -L first in case configure is actually a |
| 2548 |
# symlink; some systems play weird games with the mod time of symlinks |
| 2549 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 2550 |
# directory). |
| 2551 |
if ( |
| 2552 |
am_has_slept=no |
| 2553 |
for am_try in 1 2; do |
| 2554 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2555 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2556 |
if test "$*" = "X"; then |
| 2557 |
# -L didn't work. |
| 2558 |
set X `ls -t "$srcdir/configure" conftest.file` |
| 2559 |
fi |
| 2560 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2561 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
| 2562 |
|
| 2563 |
# If neither matched, then we have a broken ls. This can happen |
| 2564 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2565 |
# broken ls alias from the environment. This has actually |
| 2566 |
# happened. Such a system could not be considered "sane". |
| 2567 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2568 |
alias in your environment" "$LINENO" 5 |
| 2569 |
fi |
| 2570 |
if test "$2" = conftest.file || test $am_try -eq 2; then |
| 2571 |
break |
| 2572 |
fi |
| 2573 |
# Just in case. |
| 2574 |
sleep 1 |
| 2575 |
am_has_slept=yes |
| 2576 |
done |
| 2577 |
test "$2" = conftest.file |
| 2578 |
) |
| 2579 |
then |
| 2580 |
# Ok. |
| 2581 |
: |
| 2582 |
else |
| 2583 |
as_fn_error $? "newly created file is older than distributed files! |
| 2584 |
Check your system clock" "$LINENO" 5 |
| 2585 |
fi |
| 2586 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2587 |
printf "%s\n" "yes" >&6; } |
| 2588 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2589 |
# generated files are strictly newer. |
| 2590 |
am_sleep_pid= |
| 2591 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2592 |
( sleep 1 ) & |
| 2593 |
am_sleep_pid=$! |
| 2594 |
fi |
| 2595 |
|
| 2596 |
rm -f conftest.file |
| 2597 |
|
| 2598 |
test "$program_prefix" != NONE && |
| 2599 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2600 |
# Use a double $ so make ignores it. |
| 2601 |
test "$program_suffix" != NONE && |
| 2602 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2603 |
# Double any \ or $. |
| 2604 |
# By default was `s,x,x', remove it if useless. |
| 2605 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2606 |
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
| 2607 |
|
| 2608 |
|
| 2609 |
# Expand $ac_aux_dir to an absolute path. |
| 2610 |
am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 2611 |
|
| 2612 |
|
| 2613 |
if test x"${MISSING+set}" != xset; then |
| 2614 |
MISSING="\${SHELL} '$am_aux_dir/missing'" |
| 2615 |
fi |
| 2616 |
# Use eval to expand $SHELL |
| 2617 |
if eval "$MISSING --is-lightweight"; then |
| 2618 |
am_missing_run="$MISSING " |
| 2619 |
else |
| 2620 |
am_missing_run= |
| 2621 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2622 |
printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2623 |
fi |
| 2624 |
|
| 2625 |
if test x"${install_sh+set}" != xset; then |
| 2626 |
case $am_aux_dir in |
| 2627 |
*\ * | *\ *) |
| 2628 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2629 |
*) |
| 2630 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2631 |
esac |
| 2632 |
fi |
| 2633 |
|
| 2634 |
# Installed binaries are usually stripped using 'strip' when the user |
| 2635 |
# run "make install-strip". However 'strip' might not be the right |
| 2636 |
# tool to use in cross-compilation environments, therefore Automake |
| 2637 |
# will honor the 'STRIP' environment variable to overrule this program. |
| 2638 |
if test "$cross_compiling" != no; then |
| 2639 |
if test -n "$ac_tool_prefix"; then |
| 2640 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2641 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2642 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2643 |
printf %s "checking for $ac_word... " >&6; } |
| 2644 |
if test ${ac_cv_prog_STRIP+y} |
| 2645 |
then : |
| 2646 |
printf %s "(cached) " >&6 |
| 2647 |
else $as_nop |
| 2648 |
if test -n "$STRIP"; then |
| 2649 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2650 |
else |
| 2651 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2652 |
for as_dir in $PATH |
| 2653 |
do |
| 2654 |
IFS=$as_save_IFS |
| 2655 |
case $as_dir in #((( |
| 2656 |
'') as_dir=./ ;; |
| 2657 |
*/) ;; |
| 2658 |
*) as_dir=$as_dir/ ;; |
| 2659 |
esac |
| 2660 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2661 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2662 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2663 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2664 |
break 2 |
| 2665 |
fi |
| 2666 |
done |
| 2667 |
done |
| 2668 |
IFS=$as_save_IFS |
| 2669 |
|
| 2670 |
fi |
| 2671 |
fi |
| 2672 |
STRIP=$ac_cv_prog_STRIP |
| 2673 |
if test -n "$STRIP"; then |
| 2674 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2675 |
printf "%s\n" "$STRIP" >&6; } |
| 2676 |
else |
| 2677 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2678 |
printf "%s\n" "no" >&6; } |
| 2679 |
fi |
| 2680 |
|
| 2681 |
|
| 2682 |
fi |
| 2683 |
if test -z "$ac_cv_prog_STRIP"; then |
| 2684 |
ac_ct_STRIP=$STRIP |
| 2685 |
# Extract the first word of "strip", so it can be a program name with args. |
| 2686 |
set dummy strip; ac_word=$2 |
| 2687 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2688 |
printf %s "checking for $ac_word... " >&6; } |
| 2689 |
if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 2690 |
then : |
| 2691 |
printf %s "(cached) " >&6 |
| 2692 |
else $as_nop |
| 2693 |
if test -n "$ac_ct_STRIP"; then |
| 2694 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2695 |
else |
| 2696 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2697 |
for as_dir in $PATH |
| 2698 |
do |
| 2699 |
IFS=$as_save_IFS |
| 2700 |
case $as_dir in #((( |
| 2701 |
'') as_dir=./ ;; |
| 2702 |
*/) ;; |
| 2703 |
*) as_dir=$as_dir/ ;; |
| 2704 |
esac |
| 2705 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2706 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2707 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 2708 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2709 |
break 2 |
| 2710 |
fi |
| 2711 |
done |
| 2712 |
done |
| 2713 |
IFS=$as_save_IFS |
| 2714 |
|
| 2715 |
fi |
| 2716 |
fi |
| 2717 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2718 |
if test -n "$ac_ct_STRIP"; then |
| 2719 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2720 |
printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 2721 |
else |
| 2722 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2723 |
printf "%s\n" "no" >&6; } |
| 2724 |
fi |
| 2725 |
|
| 2726 |
if test "x$ac_ct_STRIP" = x; then |
| 2727 |
STRIP=":" |
| 2728 |
else |
| 2729 |
case $cross_compiling:$ac_tool_warned in |
| 2730 |
yes:) |
| 2731 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2732 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2733 |
ac_tool_warned=yes ;; |
| 2734 |
esac |
| 2735 |
STRIP=$ac_ct_STRIP |
| 2736 |
fi |
| 2737 |
else |
| 2738 |
STRIP="$ac_cv_prog_STRIP" |
| 2739 |
fi |
| 2740 |
|
| 2741 |
fi |
| 2742 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2743 |
|
| 2744 |
|
| 2745 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 2746 |
printf %s "checking for a race-free mkdir -p... " >&6; } |
| 2747 |
if test -z "$MKDIR_P"; then |
| 2748 |
if test ${ac_cv_path_mkdir+y} |
| 2749 |
then : |
| 2750 |
printf %s "(cached) " >&6 |
| 2751 |
else $as_nop |
| 2752 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2753 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2754 |
do |
| 2755 |
IFS=$as_save_IFS |
| 2756 |
case $as_dir in #((( |
| 2757 |
'') as_dir=./ ;; |
| 2758 |
*/) ;; |
| 2759 |
*) as_dir=$as_dir/ ;; |
| 2760 |
esac |
| 2761 |
for ac_prog in mkdir gmkdir; do |
| 2762 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2763 |
as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
| 2764 |
case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2765 |
'mkdir ('*'coreutils) '* | \ |
| 2766 |
'BusyBox '* | \ |
| 2767 |
'mkdir (fileutils) '4.1*) |
| 2768 |
ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
| 2769 |
break 3;; |
| 2770 |
esac |
| 2771 |
done |
| 2772 |
done |
| 2773 |
done |
| 2774 |
IFS=$as_save_IFS |
| 2775 |
|
| 2776 |
fi |
| 2777 |
|
| 2778 |
test -d ./--version && rmdir ./--version |
| 2779 |
if test ${ac_cv_path_mkdir+y}; then |
| 2780 |
MKDIR_P="$ac_cv_path_mkdir -p" |
| 2781 |
else |
| 2782 |
# As a last resort, use the slow shell script. Don't cache a |
| 2783 |
# value for MKDIR_P within a source directory, because that will |
| 2784 |
# break other packages using the cache if that directory is |
| 2785 |
# removed, or if the value is a relative name. |
| 2786 |
MKDIR_P="$ac_install_sh -d" |
| 2787 |
fi |
| 2788 |
fi |
| 2789 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2790 |
printf "%s\n" "$MKDIR_P" >&6; } |
| 2791 |
|
| 2792 |
for ac_prog in gawk mawk nawk awk |
| 2793 |
do |
| 2794 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2795 |
set dummy $ac_prog; ac_word=$2 |
| 2796 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2797 |
printf %s "checking for $ac_word... " >&6; } |
| 2798 |
if test ${ac_cv_prog_AWK+y} |
| 2799 |
then : |
| 2800 |
printf %s "(cached) " >&6 |
| 2801 |
else $as_nop |
| 2802 |
if test -n "$AWK"; then |
| 2803 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2804 |
else |
| 2805 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2806 |
for as_dir in $PATH |
| 2807 |
do |
| 2808 |
IFS=$as_save_IFS |
| 2809 |
case $as_dir in #((( |
| 2810 |
'') as_dir=./ ;; |
| 2811 |
*/) ;; |
| 2812 |
*) as_dir=$as_dir/ ;; |
| 2813 |
esac |
| 2814 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2815 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2816 |
ac_cv_prog_AWK="$ac_prog" |
| 2817 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2818 |
break 2 |
| 2819 |
fi |
| 2820 |
done |
| 2821 |
done |
| 2822 |
IFS=$as_save_IFS |
| 2823 |
|
| 2824 |
fi |
| 2825 |
fi |
| 2826 |
AWK=$ac_cv_prog_AWK |
| 2827 |
if test -n "$AWK"; then |
| 2828 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2829 |
printf "%s\n" "$AWK" >&6; } |
| 2830 |
else |
| 2831 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2832 |
printf "%s\n" "no" >&6; } |
| 2833 |
fi |
| 2834 |
|
| 2835 |
|
| 2836 |
test -n "$AWK" && break |
| 2837 |
done |
| 2838 |
|
| 2839 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2840 |
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2841 |
set x ${MAKE-make} |
| 2842 |
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2843 |
if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 2844 |
then : |
| 2845 |
printf %s "(cached) " >&6 |
| 2846 |
else $as_nop |
| 2847 |
cat >conftest.make <<\_ACEOF |
| 2848 |
SHELL = /bin/sh |
| 2849 |
all: |
| 2850 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2851 |
_ACEOF |
| 2852 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 2853 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2854 |
*@@@%%%=?*=@@@%%%*) |
| 2855 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2856 |
*) |
| 2857 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2858 |
esac |
| 2859 |
rm -f conftest.make |
| 2860 |
fi |
| 2861 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2862 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2863 |
printf "%s\n" "yes" >&6; } |
| 2864 |
SET_MAKE= |
| 2865 |
else |
| 2866 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2867 |
printf "%s\n" "no" >&6; } |
| 2868 |
SET_MAKE="MAKE=${MAKE-make}" |
| 2869 |
fi |
| 2870 |
|
| 2871 |
rm -rf .tst 2>/dev/null |
| 2872 |
mkdir .tst 2>/dev/null |
| 2873 |
if test -d .tst; then |
| 2874 |
am__leading_dot=. |
| 2875 |
else |
| 2876 |
am__leading_dot=_ |
| 2877 |
fi |
| 2878 |
rmdir .tst 2>/dev/null |
| 2879 |
|
| 2880 |
# Check whether --enable-silent-rules was given. |
| 2881 |
if test ${enable_silent_rules+y} |
| 2882 |
then : |
| 2883 |
enableval=$enable_silent_rules; |
| 2884 |
fi |
| 2885 |
|
| 2886 |
case $enable_silent_rules in # ((( |
| 2887 |
yes) AM_DEFAULT_VERBOSITY=0;; |
| 2888 |
no) AM_DEFAULT_VERBOSITY=1;; |
| 2889 |
*) AM_DEFAULT_VERBOSITY=1;; |
| 2890 |
esac |
| 2891 |
am_make=${MAKE-make} |
| 2892 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2893 |
printf %s "checking whether $am_make supports nested variables... " >&6; } |
| 2894 |
if test ${am_cv_make_support_nested_variables+y} |
| 2895 |
then : |
| 2896 |
printf %s "(cached) " >&6 |
| 2897 |
else $as_nop |
| 2898 |
if printf "%s\n" 'TRUE=$(BAR$(V)) |
| 2899 |
BAR0=false |
| 2900 |
BAR1=true |
| 2901 |
V=1 |
| 2902 |
am__doit: |
| 2903 |
@$(TRUE) |
| 2904 |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2905 |
am_cv_make_support_nested_variables=yes |
| 2906 |
else |
| 2907 |
am_cv_make_support_nested_variables=no |
| 2908 |
fi |
| 2909 |
fi |
| 2910 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2911 |
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 2912 |
if test $am_cv_make_support_nested_variables = yes; then |
| 2913 |
AM_V='$(V)' |
| 2914 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2915 |
else |
| 2916 |
AM_V=$AM_DEFAULT_VERBOSITY |
| 2917 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2918 |
fi |
| 2919 |
AM_BACKSLASH='\' |
| 2920 |
|
| 2921 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2922 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2923 |
# is not polluted with repeated "-I." |
| 2924 |
am__isrc=' -I$(srcdir)' |
| 2925 |
# test to see if srcdir already configured |
| 2926 |
if test -f $srcdir/config.status; then |
| 2927 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 2928 |
fi |
| 2929 |
fi |
| 2930 |
|
| 2931 |
# test whether we have cygpath |
| 2932 |
if test -z "$CYGPATH_W"; then |
| 2933 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2934 |
CYGPATH_W='cygpath -w' |
| 2935 |
else |
| 2936 |
CYGPATH_W=echo |
| 2937 |
fi |
| 2938 |
fi |
| 2939 |
|
| 2940 |
|
| 2941 |
# Define the identity of the package. |
| 2942 |
PACKAGE='ganyremote' |
| 2943 |
VERSION='8.1.1' |
| 2944 |
|
| 2945 |
|
| 2946 |
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h |
| 2947 |
|
| 2948 |
|
| 2949 |
printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h |
| 2950 |
|
| 2951 |
# Some tools Automake needs. |
| 2952 |
|
| 2953 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2954 |
|
| 2955 |
|
| 2956 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2957 |
|
| 2958 |
|
| 2959 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2960 |
|
| 2961 |
|
| 2962 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2963 |
|
| 2964 |
|
| 2965 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2966 |
|
| 2967 |
# For better backward compatibility. To be removed once Automake 1.9.x |
| 2968 |
# dies out for good. For more background, see: |
| 2969 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 2970 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 2971 |
mkdir_p='$(MKDIR_P)' |
| 2972 |
|
| 2973 |
# We need awk for the "check" target (and possibly the TAP driver). The |
| 2974 |
# system "awk" is bad on some platforms. |
| 2975 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
| 2976 |
# in the wild :-( We should find a proper way to deprecate it ... |
| 2977 |
AMTAR='$${TAR-tar}' |
| 2978 |
|
| 2979 |
|
| 2980 |
# We'll loop over all known methods to create a tar archive until one works. |
| 2981 |
_am_tools='gnutar pax cpio none' |
| 2982 |
|
| 2983 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 2984 |
|
| 2985 |
|
| 2986 |
|
| 2987 |
|
| 2988 |
|
| 2989 |
# Variables for tags utilities; see am/tags.am |
| 2990 |
if test -z "$CTAGS"; then |
| 2991 |
CTAGS=ctags |
| 2992 |
fi |
| 2993 |
|
| 2994 |
if test -z "$ETAGS"; then |
| 2995 |
ETAGS=etags |
| 2996 |
fi |
| 2997 |
|
| 2998 |
if test -z "$CSCOPE"; then |
| 2999 |
CSCOPE=cscope |
| 3000 |
fi |
| 3001 |
|
| 3002 |
|
| 3003 |
|
| 3004 |
# POSIX will say in a future version that running "rm -f" with no argument |
| 3005 |
# is OK; and we want to be able to make that assumption in our Makefile |
| 3006 |
# recipes. So use an aggressive probe to check that the usage we want is |
| 3007 |
# actually supported "in the wild" to an acceptable degree. |
| 3008 |
# See automake bug#10828. |
| 3009 |
# To make any issue more visible, cause the running configure to be aborted |
| 3010 |
# by default if the 'rm' program in use doesn't match our expectations; the |
| 3011 |
# user can still override this though. |
| 3012 |
if rm -f && rm -fr && rm -rf; then : OK; else |
| 3013 |
cat >&2 <<'END' |
| 3014 |
Oops! |
| 3015 |
|
| 3016 |
Your 'rm' program seems unable to run without file operands specified |
| 3017 |
on the command line, even when the '-f' option is present. This is contrary |
| 3018 |
to the behaviour of most rm programs out there, and not conforming with |
| 3019 |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 3020 |
|
| 3021 |
Please tell [email protected] about your system, including the value |
| 3022 |
of your $PATH and any error possibly output before this message. This |
| 3023 |
can help us improve future automake versions. |
| 3024 |
|
| 3025 |
END |
| 3026 |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 3027 |
echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 3028 |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 3029 |
echo >&2 |
| 3030 |
else |
| 3031 |
cat >&2 <<'END' |
| 3032 |
Aborting the configuration process, to ensure you take notice of the issue. |
| 3033 |
|
| 3034 |
You can download and install GNU coreutils to get an 'rm' implementation |
| 3035 |
that behaves properly: <https://www.gnu.org/software/coreutils/>. |
| 3036 |
|
| 3037 |
If you want to complete the configuration process using your problematic |
| 3038 |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3039 |
to "yes", and re-run configure. |
| 3040 |
|
| 3041 |
END |
| 3042 |
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3043 |
fi |
| 3044 |
fi |
| 3045 |
|
| 3046 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 3047 |
printf %s "checking for a sed that does not truncate output... " >&6; } |
| 3048 |
if test ${ac_cv_path_SED+y} |
| 3049 |
then : |
| 3050 |
printf %s "(cached) " >&6 |
| 3051 |
else $as_nop |
| 3052 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 3053 |
for ac_i in 1 2 3 4 5 6 7; do |
| 3054 |
ac_script="$ac_script$as_nl$ac_script" |
| 3055 |
done |
| 3056 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 3057 |
{ ac_script=; unset ac_script;} |
| 3058 |
if test -z "$SED"; then |
| 3059 |
ac_path_SED_found=false |
| 3060 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 3061 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3062 |
for as_dir in $PATH |
| 3063 |
do |
| 3064 |
IFS=$as_save_IFS |
| 3065 |
case $as_dir in #((( |
| 3066 |
'') as_dir=./ ;; |
| 3067 |
*/) ;; |
| 3068 |
*) as_dir=$as_dir/ ;; |
| 3069 |
esac |
| 3070 |
for ac_prog in sed gsed |
| 3071 |
do |
| 3072 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3073 |
ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
| 3074 |
as_fn_executable_p "$ac_path_SED" || continue |
| 3075 |
# Check for GNU ac_path_SED and select it if it is found. |
| 3076 |
# Check for GNU $ac_path_SED |
| 3077 |
case `"$ac_path_SED" --version 2>&1` in |
| 3078 |
*GNU*) |
| 3079 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 3080 |
*) |
| 3081 |
ac_count=0 |
| 3082 |
printf %s 0123456789 >"conftest.in" |
| 3083 |
while : |
| 3084 |
do |
| 3085 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3086 |
mv "conftest.tmp" "conftest.in" |
| 3087 |
cp "conftest.in" "conftest.nl" |
| 3088 |
printf "%s\n" '' >> "conftest.nl" |
| 3089 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3090 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3091 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3092 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 3093 |
# Best one so far, save it but keep looking for a better one |
| 3094 |
ac_cv_path_SED="$ac_path_SED" |
| 3095 |
ac_path_SED_max=$ac_count |
| 3096 |
fi |
| 3097 |
# 10*(2^10) chars as input seems more than enough |
| 3098 |
test $ac_count -gt 10 && break |
| 3099 |
done |
| 3100 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3101 |
esac |
| 3102 |
|
| 3103 |
$ac_path_SED_found && break 3 |
| 3104 |
done |
| 3105 |
done |
| 3106 |
done |
| 3107 |
IFS=$as_save_IFS |
| 3108 |
if test -z "$ac_cv_path_SED"; then |
| 3109 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 3110 |
fi |
| 3111 |
else |
| 3112 |
ac_cv_path_SED=$SED |
| 3113 |
fi |
| 3114 |
|
| 3115 |
fi |
| 3116 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 3117 |
printf "%s\n" "$ac_cv_path_SED" >&6; } |
| 3118 |
SED="$ac_cv_path_SED" |
| 3119 |
rm -f conftest.sed |
| 3120 |
|
| 3121 |
|
| 3122 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
| 3123 |
printf %s "checking whether NLS is requested... " >&6; } |
| 3124 |
# Check whether --enable-nls was given. |
| 3125 |
if test ${enable_nls+y} |
| 3126 |
then : |
| 3127 |
enableval=$enable_nls; USE_NLS=$enableval |
| 3128 |
else $as_nop |
| 3129 |
USE_NLS=yes |
| 3130 |
fi |
| 3131 |
|
| 3132 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
| 3133 |
printf "%s\n" "$USE_NLS" >&6; } |
| 3134 |
|
| 3135 |
|
| 3136 |
|
| 3137 |
|
| 3138 |
GETTEXT_MACRO_VERSION=0.20 |
| 3139 |
|
| 3140 |
|
| 3141 |
|
| 3142 |
|
| 3143 |
# Prepare PATH_SEPARATOR. |
| 3144 |
# The user is always right. |
| 3145 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 3146 |
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 3147 |
# contains only /bin. Note that ksh looks also at the FPATH variable, |
| 3148 |
# so we have to set that as well for the test. |
| 3149 |
PATH_SEPARATOR=: |
| 3150 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 3151 |
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 3152 |
|| PATH_SEPARATOR=';' |
| 3153 |
} |
| 3154 |
fi |
| 3155 |
|
| 3156 |
# Find out how to test for executable files. Don't use a zero-byte file, |
| 3157 |
# as systems may use methods other than mode bits to determine executability. |
| 3158 |
cat >conf$$.file <<_ASEOF |
| 3159 |
#! /bin/sh |
| 3160 |
exit 0 |
| 3161 |
_ASEOF |
| 3162 |
chmod +x conf$$.file |
| 3163 |
if test -x conf$$.file >/dev/null 2>&1; then |
| 3164 |
ac_executable_p="test -x" |
| 3165 |
else |
| 3166 |
ac_executable_p="test -f" |
| 3167 |
fi |
| 3168 |
rm -f conf$$.file |
| 3169 |
|
| 3170 |
# Extract the first word of "msgfmt", so it can be a program name with args. |
| 3171 |
set dummy msgfmt; ac_word=$2 |
| 3172 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3173 |
printf %s "checking for $ac_word... " >&6; } |
| 3174 |
if test ${ac_cv_path_MSGFMT+y} |
| 3175 |
then : |
| 3176 |
printf %s "(cached) " >&6 |
| 3177 |
else $as_nop |
| 3178 |
case "$MSGFMT" in |
| 3179 |
[\\/]* | ?:[\\/]*) |
| 3180 |
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 3181 |
;; |
| 3182 |
*) |
| 3183 |
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 3184 |
for ac_dir in $PATH; do |
| 3185 |
IFS="$ac_save_IFS" |
| 3186 |
test -z "$ac_dir" && ac_dir=. |
| 3187 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3188 |
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 3189 |
echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 3190 |
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
| 3191 |
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3192 |
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 3193 |
break 2 |
| 3194 |
fi |
| 3195 |
fi |
| 3196 |
done |
| 3197 |
done |
| 3198 |
IFS="$ac_save_IFS" |
| 3199 |
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 3200 |
;; |
| 3201 |
esac |
| 3202 |
fi |
| 3203 |
MSGFMT="$ac_cv_path_MSGFMT" |
| 3204 |
if test "$MSGFMT" != ":"; then |
| 3205 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
| 3206 |
printf "%s\n" "$MSGFMT" >&6; } |
| 3207 |
else |
| 3208 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3209 |
printf "%s\n" "no" >&6; } |
| 3210 |
fi |
| 3211 |
|
| 3212 |
# Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 3213 |
set dummy gmsgfmt; ac_word=$2 |
| 3214 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3215 |
printf %s "checking for $ac_word... " >&6; } |
| 3216 |
if test ${ac_cv_path_GMSGFMT+y} |
| 3217 |
then : |
| 3218 |
printf %s "(cached) " >&6 |
| 3219 |
else $as_nop |
| 3220 |
case $GMSGFMT in |
| 3221 |
[\\/]* | ?:[\\/]*) |
| 3222 |
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 3223 |
;; |
| 3224 |
*) |
| 3225 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3226 |
for as_dir in $PATH |
| 3227 |
do |
| 3228 |
IFS=$as_save_IFS |
| 3229 |
case $as_dir in #((( |
| 3230 |
'') as_dir=./ ;; |
| 3231 |
*/) ;; |
| 3232 |
*) as_dir=$as_dir/ ;; |
| 3233 |
esac |
| 3234 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3235 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3236 |
ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" |
| 3237 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3238 |
break 2 |
| 3239 |
fi |
| 3240 |
done |
| 3241 |
done |
| 3242 |
IFS=$as_save_IFS |
| 3243 |
|
| 3244 |
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 3245 |
;; |
| 3246 |
esac |
| 3247 |
fi |
| 3248 |
GMSGFMT=$ac_cv_path_GMSGFMT |
| 3249 |
if test -n "$GMSGFMT"; then |
| 3250 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
| 3251 |
printf "%s\n" "$GMSGFMT" >&6; } |
| 3252 |
else |
| 3253 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3254 |
printf "%s\n" "no" >&6; } |
| 3255 |
fi |
| 3256 |
|
| 3257 |
|
| 3258 |
|
| 3259 |
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 3260 |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 3261 |
*) GMSGFMT_015=$GMSGFMT ;; |
| 3262 |
esac |
| 3263 |
|
| 3264 |
|
| 3265 |
|
| 3266 |
# Prepare PATH_SEPARATOR. |
| 3267 |
# The user is always right. |
| 3268 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 3269 |
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 3270 |
# contains only /bin. Note that ksh looks also at the FPATH variable, |
| 3271 |
# so we have to set that as well for the test. |
| 3272 |
PATH_SEPARATOR=: |
| 3273 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 3274 |
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 3275 |
|| PATH_SEPARATOR=';' |
| 3276 |
} |
| 3277 |
fi |
| 3278 |
|
| 3279 |
# Find out how to test for executable files. Don't use a zero-byte file, |
| 3280 |
# as systems may use methods other than mode bits to determine executability. |
| 3281 |
cat >conf$$.file <<_ASEOF |
| 3282 |
#! /bin/sh |
| 3283 |
exit 0 |
| 3284 |
_ASEOF |
| 3285 |
chmod +x conf$$.file |
| 3286 |
if test -x conf$$.file >/dev/null 2>&1; then |
| 3287 |
ac_executable_p="test -x" |
| 3288 |
else |
| 3289 |
ac_executable_p="test -f" |
| 3290 |
fi |
| 3291 |
rm -f conf$$.file |
| 3292 |
|
| 3293 |
# Extract the first word of "xgettext", so it can be a program name with args. |
| 3294 |
set dummy xgettext; ac_word=$2 |
| 3295 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3296 |
printf %s "checking for $ac_word... " >&6; } |
| 3297 |
if test ${ac_cv_path_XGETTEXT+y} |
| 3298 |
then : |
| 3299 |
printf %s "(cached) " >&6 |
| 3300 |
else $as_nop |
| 3301 |
case "$XGETTEXT" in |
| 3302 |
[\\/]* | ?:[\\/]*) |
| 3303 |
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 3304 |
;; |
| 3305 |
*) |
| 3306 |
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 3307 |
for ac_dir in $PATH; do |
| 3308 |
IFS="$ac_save_IFS" |
| 3309 |
test -z "$ac_dir" && ac_dir=. |
| 3310 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3311 |
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 3312 |
echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 3313 |
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
| 3314 |
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3315 |
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 3316 |
break 2 |
| 3317 |
fi |
| 3318 |
fi |
| 3319 |
done |
| 3320 |
done |
| 3321 |
IFS="$ac_save_IFS" |
| 3322 |
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 3323 |
;; |
| 3324 |
esac |
| 3325 |
fi |
| 3326 |
XGETTEXT="$ac_cv_path_XGETTEXT" |
| 3327 |
if test "$XGETTEXT" != ":"; then |
| 3328 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
| 3329 |
printf "%s\n" "$XGETTEXT" >&6; } |
| 3330 |
else |
| 3331 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3332 |
printf "%s\n" "no" >&6; } |
| 3333 |
fi |
| 3334 |
|
| 3335 |
rm -f messages.po |
| 3336 |
|
| 3337 |
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 3338 |
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 3339 |
*) XGETTEXT_015=$XGETTEXT ;; |
| 3340 |
esac |
| 3341 |
|
| 3342 |
|
| 3343 |
|
| 3344 |
# Prepare PATH_SEPARATOR. |
| 3345 |
# The user is always right. |
| 3346 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 3347 |
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 3348 |
# contains only /bin. Note that ksh looks also at the FPATH variable, |
| 3349 |
# so we have to set that as well for the test. |
| 3350 |
PATH_SEPARATOR=: |
| 3351 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 3352 |
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 3353 |
|| PATH_SEPARATOR=';' |
| 3354 |
} |
| 3355 |
fi |
| 3356 |
|
| 3357 |
# Find out how to test for executable files. Don't use a zero-byte file, |
| 3358 |
# as systems may use methods other than mode bits to determine executability. |
| 3359 |
cat >conf$$.file <<_ASEOF |
| 3360 |
#! /bin/sh |
| 3361 |
exit 0 |
| 3362 |
_ASEOF |
| 3363 |
chmod +x conf$$.file |
| 3364 |
if test -x conf$$.file >/dev/null 2>&1; then |
| 3365 |
ac_executable_p="test -x" |
| 3366 |
else |
| 3367 |
ac_executable_p="test -f" |
| 3368 |
fi |
| 3369 |
rm -f conf$$.file |
| 3370 |
|
| 3371 |
# Extract the first word of "msgmerge", so it can be a program name with args. |
| 3372 |
set dummy msgmerge; ac_word=$2 |
| 3373 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3374 |
printf %s "checking for $ac_word... " >&6; } |
| 3375 |
if test ${ac_cv_path_MSGMERGE+y} |
| 3376 |
then : |
| 3377 |
printf %s "(cached) " >&6 |
| 3378 |
else $as_nop |
| 3379 |
case "$MSGMERGE" in |
| 3380 |
[\\/]* | ?:[\\/]*) |
| 3381 |
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 3382 |
;; |
| 3383 |
*) |
| 3384 |
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 3385 |
for ac_dir in $PATH; do |
| 3386 |
IFS="$ac_save_IFS" |
| 3387 |
test -z "$ac_dir" && ac_dir=. |
| 3388 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3389 |
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 3390 |
echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 3391 |
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
| 3392 |
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 3393 |
break 2 |
| 3394 |
fi |
| 3395 |
fi |
| 3396 |
done |
| 3397 |
done |
| 3398 |
IFS="$ac_save_IFS" |
| 3399 |
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 3400 |
;; |
| 3401 |
esac |
| 3402 |
fi |
| 3403 |
MSGMERGE="$ac_cv_path_MSGMERGE" |
| 3404 |
if test "$MSGMERGE" != ":"; then |
| 3405 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
| 3406 |
printf "%s\n" "$MSGMERGE" >&6; } |
| 3407 |
else |
| 3408 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3409 |
printf "%s\n" "no" >&6; } |
| 3410 |
fi |
| 3411 |
|
| 3412 |
|
| 3413 |
if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then |
| 3414 |
MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' |
| 3415 |
else |
| 3416 |
if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then |
| 3417 |
MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' |
| 3418 |
else |
| 3419 |
MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' |
| 3420 |
fi |
| 3421 |
fi |
| 3422 |
|
| 3423 |
|
| 3424 |
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 3425 |
|
| 3426 |
|
| 3427 |
ac_config_commands="$ac_config_commands po-directories" |
| 3428 |
|
| 3429 |
|
| 3430 |
|
| 3431 |
if test "X$prefix" = "XNONE"; then |
| 3432 |
acl_final_prefix="$ac_default_prefix" |
| 3433 |
else |
| 3434 |
acl_final_prefix="$prefix" |
| 3435 |
fi |
| 3436 |
if test "X$exec_prefix" = "XNONE"; then |
| 3437 |
acl_final_exec_prefix='${prefix}' |
| 3438 |
else |
| 3439 |
acl_final_exec_prefix="$exec_prefix" |
| 3440 |
fi |
| 3441 |
acl_save_prefix="$prefix" |
| 3442 |
prefix="$acl_final_prefix" |
| 3443 |
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 3444 |
prefix="$acl_save_prefix" |
| 3445 |
|
| 3446 |
|
| 3447 |
|
| 3448 |
|
| 3449 |
|
| 3450 |
|
| 3451 |
|
| 3452 |
|
| 3453 |
|
| 3454 |
|
| 3455 |
DEPDIR="${am__leading_dot}deps" |
| 3456 |
|
| 3457 |
ac_config_commands="$ac_config_commands depfiles" |
| 3458 |
|
| 3459 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 3460 |
printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 3461 |
cat > confinc.mk << 'END' |
| 3462 |
am__doit: |
| 3463 |
@echo this is the am__doit target >confinc.out |
| 3464 |
.PHONY: am__doit |
| 3465 |
END |
| 3466 |
am__include="#" |
| 3467 |
am__quote= |
| 3468 |
# BSD make does it like this. |
| 3469 |
echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 3470 |
# Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 3471 |
echo 'include confinc.mk # ignored' > confmf.GNU |
| 3472 |
_am_result=no |
| 3473 |
for s in GNU BSD; do |
| 3474 |
{ echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 3475 |
(${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 3476 |
ac_status=$? |
| 3477 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3478 |
(exit $ac_status); } |
| 3479 |
case $?:`cat confinc.out 2>/dev/null` in #( |
| 3480 |
'0:this is the am__doit target') : |
| 3481 |
case $s in #( |
| 3482 |
BSD) : |
| 3483 |
am__include='.include' am__quote='"' ;; #( |
| 3484 |
*) : |
| 3485 |
am__include='include' am__quote='' ;; |
| 3486 |
esac ;; #( |
| 3487 |
*) : |
| 3488 |
;; |
| 3489 |
esac |
| 3490 |
if test "$am__include" != "#"; then |
| 3491 |
_am_result="yes ($s style)" |
| 3492 |
break |
| 3493 |
fi |
| 3494 |
done |
| 3495 |
rm -f confinc.* confmf.* |
| 3496 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 3497 |
printf "%s\n" "${_am_result}" >&6; } |
| 3498 |
|
| 3499 |
# Check whether --enable-dependency-tracking was given. |
| 3500 |
if test ${enable_dependency_tracking+y} |
| 3501 |
then : |
| 3502 |
enableval=$enable_dependency_tracking; |
| 3503 |
fi |
| 3504 |
|
| 3505 |
if test "x$enable_dependency_tracking" != xno; then |
| 3506 |
am_depcomp="$ac_aux_dir/depcomp" |
| 3507 |
AMDEPBACKSLASH='\' |
| 3508 |
am__nodep='_no' |
| 3509 |
fi |
| 3510 |
if test "x$enable_dependency_tracking" != xno; then |
| 3511 |
AMDEP_TRUE= |
| 3512 |
AMDEP_FALSE='#' |
| 3513 |
else |
| 3514 |
AMDEP_TRUE='#' |
| 3515 |
AMDEP_FALSE= |
| 3516 |
fi |
| 3517 |
|
| 3518 |
|
| 3519 |
ac_ext=c |
| 3520 |
ac_cpp='$CPP $CPPFLAGS' |
| 3521 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3522 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3523 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3524 |
if test -n "$ac_tool_prefix"; then |
| 3525 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3526 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3527 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3528 |
printf %s "checking for $ac_word... " >&6; } |
| 3529 |
if test ${ac_cv_prog_CC+y} |
| 3530 |
then : |
| 3531 |
printf %s "(cached) " >&6 |
| 3532 |
else $as_nop |
| 3533 |
if test -n "$CC"; then |
| 3534 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3535 |
else |
| 3536 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3537 |
for as_dir in $PATH |
| 3538 |
do |
| 3539 |
IFS=$as_save_IFS |
| 3540 |
case $as_dir in #((( |
| 3541 |
'') as_dir=./ ;; |
| 3542 |
*/) ;; |
| 3543 |
*) as_dir=$as_dir/ ;; |
| 3544 |
esac |
| 3545 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3546 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3547 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3548 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3549 |
break 2 |
| 3550 |
fi |
| 3551 |
done |
| 3552 |
done |
| 3553 |
IFS=$as_save_IFS |
| 3554 |
|
| 3555 |
fi |
| 3556 |
fi |
| 3557 |
CC=$ac_cv_prog_CC |
| 3558 |
if test -n "$CC"; then |
| 3559 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3560 |
printf "%s\n" "$CC" >&6; } |
| 3561 |
else |
| 3562 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3563 |
printf "%s\n" "no" >&6; } |
| 3564 |
fi |
| 3565 |
|
| 3566 |
|
| 3567 |
fi |
| 3568 |
if test -z "$ac_cv_prog_CC"; then |
| 3569 |
ac_ct_CC=$CC |
| 3570 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 3571 |
set dummy gcc; ac_word=$2 |
| 3572 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3573 |
printf %s "checking for $ac_word... " >&6; } |
| 3574 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 3575 |
then : |
| 3576 |
printf %s "(cached) " >&6 |
| 3577 |
else $as_nop |
| 3578 |
if test -n "$ac_ct_CC"; then |
| 3579 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3580 |
else |
| 3581 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3582 |
for as_dir in $PATH |
| 3583 |
do |
| 3584 |
IFS=$as_save_IFS |
| 3585 |
case $as_dir in #((( |
| 3586 |
'') as_dir=./ ;; |
| 3587 |
*/) ;; |
| 3588 |
*) as_dir=$as_dir/ ;; |
| 3589 |
esac |
| 3590 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3591 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3592 |
ac_cv_prog_ac_ct_CC="gcc" |
| 3593 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3594 |
break 2 |
| 3595 |
fi |
| 3596 |
done |
| 3597 |
done |
| 3598 |
IFS=$as_save_IFS |
| 3599 |
|
| 3600 |
fi |
| 3601 |
fi |
| 3602 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3603 |
if test -n "$ac_ct_CC"; then |
| 3604 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3605 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 3606 |
else |
| 3607 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3608 |
printf "%s\n" "no" >&6; } |
| 3609 |
fi |
| 3610 |
|
| 3611 |
if test "x$ac_ct_CC" = x; then |
| 3612 |
CC="" |
| 3613 |
else |
| 3614 |
case $cross_compiling:$ac_tool_warned in |
| 3615 |
yes:) |
| 3616 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3617 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3618 |
ac_tool_warned=yes ;; |
| 3619 |
esac |
| 3620 |
CC=$ac_ct_CC |
| 3621 |
fi |
| 3622 |
else |
| 3623 |
CC="$ac_cv_prog_CC" |
| 3624 |
fi |
| 3625 |
|
| 3626 |
if test -z "$CC"; then |
| 3627 |
if test -n "$ac_tool_prefix"; then |
| 3628 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3629 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3630 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3631 |
printf %s "checking for $ac_word... " >&6; } |
| 3632 |
if test ${ac_cv_prog_CC+y} |
| 3633 |
then : |
| 3634 |
printf %s "(cached) " >&6 |
| 3635 |
else $as_nop |
| 3636 |
if test -n "$CC"; then |
| 3637 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3638 |
else |
| 3639 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3640 |
for as_dir in $PATH |
| 3641 |
do |
| 3642 |
IFS=$as_save_IFS |
| 3643 |
case $as_dir in #((( |
| 3644 |
'') as_dir=./ ;; |
| 3645 |
*/) ;; |
| 3646 |
*) as_dir=$as_dir/ ;; |
| 3647 |
esac |
| 3648 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3649 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3650 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3651 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3652 |
break 2 |
| 3653 |
fi |
| 3654 |
done |
| 3655 |
done |
| 3656 |
IFS=$as_save_IFS |
| 3657 |
|
| 3658 |
fi |
| 3659 |
fi |
| 3660 |
CC=$ac_cv_prog_CC |
| 3661 |
if test -n "$CC"; then |
| 3662 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3663 |
printf "%s\n" "$CC" >&6; } |
| 3664 |
else |
| 3665 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3666 |
printf "%s\n" "no" >&6; } |
| 3667 |
fi |
| 3668 |
|
| 3669 |
|
| 3670 |
fi |
| 3671 |
fi |
| 3672 |
if test -z "$CC"; then |
| 3673 |
# Extract the first word of "cc", so it can be a program name with args. |
| 3674 |
set dummy cc; ac_word=$2 |
| 3675 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3676 |
printf %s "checking for $ac_word... " >&6; } |
| 3677 |
if test ${ac_cv_prog_CC+y} |
| 3678 |
then : |
| 3679 |
printf %s "(cached) " >&6 |
| 3680 |
else $as_nop |
| 3681 |
if test -n "$CC"; then |
| 3682 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3683 |
else |
| 3684 |
ac_prog_rejected=no |
| 3685 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3686 |
for as_dir in $PATH |
| 3687 |
do |
| 3688 |
IFS=$as_save_IFS |
| 3689 |
case $as_dir in #((( |
| 3690 |
'') as_dir=./ ;; |
| 3691 |
*/) ;; |
| 3692 |
*) as_dir=$as_dir/ ;; |
| 3693 |
esac |
| 3694 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3695 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3696 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3697 |
ac_prog_rejected=yes |
| 3698 |
continue |
| 3699 |
fi |
| 3700 |
ac_cv_prog_CC="cc" |
| 3701 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3702 |
break 2 |
| 3703 |
fi |
| 3704 |
done |
| 3705 |
done |
| 3706 |
IFS=$as_save_IFS |
| 3707 |
|
| 3708 |
if test $ac_prog_rejected = yes; then |
| 3709 |
# We found a bogon in the path, so make sure we never use it. |
| 3710 |
set dummy $ac_cv_prog_CC |
| 3711 |
shift |
| 3712 |
if test $# != 0; then |
| 3713 |
# We chose a different compiler from the bogus one. |
| 3714 |
# However, it has the same basename, so the bogon will be chosen |
| 3715 |
# first if we set CC to just the basename; use the full file name. |
| 3716 |
shift |
| 3717 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 3718 |
fi |
| 3719 |
fi |
| 3720 |
fi |
| 3721 |
fi |
| 3722 |
CC=$ac_cv_prog_CC |
| 3723 |
if test -n "$CC"; then |
| 3724 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3725 |
printf "%s\n" "$CC" >&6; } |
| 3726 |
else |
| 3727 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3728 |
printf "%s\n" "no" >&6; } |
| 3729 |
fi |
| 3730 |
|
| 3731 |
|
| 3732 |
fi |
| 3733 |
if test -z "$CC"; then |
| 3734 |
if test -n "$ac_tool_prefix"; then |
| 3735 |
for ac_prog in cl.exe |
| 3736 |
do |
| 3737 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3738 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3739 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3740 |
printf %s "checking for $ac_word... " >&6; } |
| 3741 |
if test ${ac_cv_prog_CC+y} |
| 3742 |
then : |
| 3743 |
printf %s "(cached) " >&6 |
| 3744 |
else $as_nop |
| 3745 |
if test -n "$CC"; then |
| 3746 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3747 |
else |
| 3748 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3749 |
for as_dir in $PATH |
| 3750 |
do |
| 3751 |
IFS=$as_save_IFS |
| 3752 |
case $as_dir in #((( |
| 3753 |
'') as_dir=./ ;; |
| 3754 |
*/) ;; |
| 3755 |
*) as_dir=$as_dir/ ;; |
| 3756 |
esac |
| 3757 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3758 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3759 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3760 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3761 |
break 2 |
| 3762 |
fi |
| 3763 |
done |
| 3764 |
done |
| 3765 |
IFS=$as_save_IFS |
| 3766 |
|
| 3767 |
fi |
| 3768 |
fi |
| 3769 |
CC=$ac_cv_prog_CC |
| 3770 |
if test -n "$CC"; then |
| 3771 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3772 |
printf "%s\n" "$CC" >&6; } |
| 3773 |
else |
| 3774 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3775 |
printf "%s\n" "no" >&6; } |
| 3776 |
fi |
| 3777 |
|
| 3778 |
|
| 3779 |
test -n "$CC" && break |
| 3780 |
done |
| 3781 |
fi |
| 3782 |
if test -z "$CC"; then |
| 3783 |
ac_ct_CC=$CC |
| 3784 |
for ac_prog in cl.exe |
| 3785 |
do |
| 3786 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3787 |
set dummy $ac_prog; ac_word=$2 |
| 3788 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3789 |
printf %s "checking for $ac_word... " >&6; } |
| 3790 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 3791 |
then : |
| 3792 |
printf %s "(cached) " >&6 |
| 3793 |
else $as_nop |
| 3794 |
if test -n "$ac_ct_CC"; then |
| 3795 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3796 |
else |
| 3797 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3798 |
for as_dir in $PATH |
| 3799 |
do |
| 3800 |
IFS=$as_save_IFS |
| 3801 |
case $as_dir in #((( |
| 3802 |
'') as_dir=./ ;; |
| 3803 |
*/) ;; |
| 3804 |
*) as_dir=$as_dir/ ;; |
| 3805 |
esac |
| 3806 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3807 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3808 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3809 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3810 |
break 2 |
| 3811 |
fi |
| 3812 |
done |
| 3813 |
done |
| 3814 |
IFS=$as_save_IFS |
| 3815 |
|
| 3816 |
fi |
| 3817 |
fi |
| 3818 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3819 |
if test -n "$ac_ct_CC"; then |
| 3820 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3821 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 3822 |
else |
| 3823 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3824 |
printf "%s\n" "no" >&6; } |
| 3825 |
fi |
| 3826 |
|
| 3827 |
|
| 3828 |
test -n "$ac_ct_CC" && break |
| 3829 |
done |
| 3830 |
|
| 3831 |
if test "x$ac_ct_CC" = x; then |
| 3832 |
CC="" |
| 3833 |
else |
| 3834 |
case $cross_compiling:$ac_tool_warned in |
| 3835 |
yes:) |
| 3836 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3837 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3838 |
ac_tool_warned=yes ;; |
| 3839 |
esac |
| 3840 |
CC=$ac_ct_CC |
| 3841 |
fi |
| 3842 |
fi |
| 3843 |
|
| 3844 |
fi |
| 3845 |
if test -z "$CC"; then |
| 3846 |
if test -n "$ac_tool_prefix"; then |
| 3847 |
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 3848 |
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 3849 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3850 |
printf %s "checking for $ac_word... " >&6; } |
| 3851 |
if test ${ac_cv_prog_CC+y} |
| 3852 |
then : |
| 3853 |
printf %s "(cached) " >&6 |
| 3854 |
else $as_nop |
| 3855 |
if test -n "$CC"; then |
| 3856 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3857 |
else |
| 3858 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3859 |
for as_dir in $PATH |
| 3860 |
do |
| 3861 |
IFS=$as_save_IFS |
| 3862 |
case $as_dir in #((( |
| 3863 |
'') as_dir=./ ;; |
| 3864 |
*/) ;; |
| 3865 |
*) as_dir=$as_dir/ ;; |
| 3866 |
esac |
| 3867 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3868 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3869 |
ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 3870 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3871 |
break 2 |
| 3872 |
fi |
| 3873 |
done |
| 3874 |
done |
| 3875 |
IFS=$as_save_IFS |
| 3876 |
|
| 3877 |
fi |
| 3878 |
fi |
| 3879 |
CC=$ac_cv_prog_CC |
| 3880 |
if test -n "$CC"; then |
| 3881 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3882 |
printf "%s\n" "$CC" >&6; } |
| 3883 |
else |
| 3884 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3885 |
printf "%s\n" "no" >&6; } |
| 3886 |
fi |
| 3887 |
|
| 3888 |
|
| 3889 |
fi |
| 3890 |
if test -z "$ac_cv_prog_CC"; then |
| 3891 |
ac_ct_CC=$CC |
| 3892 |
# Extract the first word of "clang", so it can be a program name with args. |
| 3893 |
set dummy clang; ac_word=$2 |
| 3894 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3895 |
printf %s "checking for $ac_word... " >&6; } |
| 3896 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 3897 |
then : |
| 3898 |
printf %s "(cached) " >&6 |
| 3899 |
else $as_nop |
| 3900 |
if test -n "$ac_ct_CC"; then |
| 3901 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3902 |
else |
| 3903 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3904 |
for as_dir in $PATH |
| 3905 |
do |
| 3906 |
IFS=$as_save_IFS |
| 3907 |
case $as_dir in #((( |
| 3908 |
'') as_dir=./ ;; |
| 3909 |
*/) ;; |
| 3910 |
*) as_dir=$as_dir/ ;; |
| 3911 |
esac |
| 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_CC="clang" |
| 3915 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3916 |
break 2 |
| 3917 |
fi |
| 3918 |
done |
| 3919 |
done |
| 3920 |
IFS=$as_save_IFS |
| 3921 |
|
| 3922 |
fi |
| 3923 |
fi |
| 3924 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3925 |
if test -n "$ac_ct_CC"; then |
| 3926 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3927 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 3928 |
else |
| 3929 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3930 |
printf "%s\n" "no" >&6; } |
| 3931 |
fi |
| 3932 |
|
| 3933 |
if test "x$ac_ct_CC" = x; then |
| 3934 |
CC="" |
| 3935 |
else |
| 3936 |
case $cross_compiling:$ac_tool_warned in |
| 3937 |
yes:) |
| 3938 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3939 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3940 |
ac_tool_warned=yes ;; |
| 3941 |
esac |
| 3942 |
CC=$ac_ct_CC |
| 3943 |
fi |
| 3944 |
else |
| 3945 |
CC="$ac_cv_prog_CC" |
| 3946 |
fi |
| 3947 |
|
| 3948 |
fi |
| 3949 |
|
| 3950 |
|
| 3951 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3952 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3953 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3954 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3955 |
|
| 3956 |
# Provide some information about the compiler. |
| 3957 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3958 |
set X $ac_compile |
| 3959 |
ac_compiler=$2 |
| 3960 |
for ac_option in --version -v -V -qversion -version; do |
| 3961 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 3962 |
case "(($ac_try" in |
| 3963 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3964 |
*) ac_try_echo=$ac_try;; |
| 3965 |
esac |
| 3966 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3967 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 3968 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3969 |
ac_status=$? |
| 3970 |
if test -s conftest.err; then |
| 3971 |
sed '10a\ |
| 3972 |
... rest of stderr output deleted ... |
| 3973 |
10q' conftest.err >conftest.er1 |
| 3974 |
cat conftest.er1 >&5 |
| 3975 |
fi |
| 3976 |
rm -f conftest.er1 conftest.err |
| 3977 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3978 |
test $ac_status = 0; } |
| 3979 |
done |
| 3980 |
|
| 3981 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3982 |
/* end confdefs.h. */ |
| 3983 |
|
| 3984 |
int |
| 3985 |
main (void) |
| 3986 |
{ |
| 3987 |
|
| 3988 |
; |
| 3989 |
return 0; |
| 3990 |
} |
| 3991 |
_ACEOF |
| 3992 |
ac_clean_files_save=$ac_clean_files |
| 3993 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3994 |
# Try to create an executable without -o first, disregard a.out. |
| 3995 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 3996 |
# of exeext. |
| 3997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3998 |
printf %s "checking whether the C compiler works... " >&6; } |
| 3999 |
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4000 |
|
| 4001 |
# The possible output files: |
| 4002 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4003 |
|
| 4004 |
ac_rmfiles= |
| 4005 |
for ac_file in $ac_files |
| 4006 |
do |
| 4007 |
case $ac_file in |
| 4008 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4009 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4010 |
esac |
| 4011 |
done |
| 4012 |
rm -f $ac_rmfiles |
| 4013 |
|
| 4014 |
if { { ac_try="$ac_link_default" |
| 4015 |
case "(($ac_try" in |
| 4016 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4017 |
*) ac_try_echo=$ac_try;; |
| 4018 |
esac |
| 4019 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4020 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4021 |
(eval "$ac_link_default") 2>&5 |
| 4022 |
ac_status=$? |
| 4023 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4024 |
test $ac_status = 0; } |
| 4025 |
then : |
| 4026 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4027 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4028 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4029 |
# so that the user can short-circuit this test for compilers unknown to |
| 4030 |
# Autoconf. |
| 4031 |
for ac_file in $ac_files '' |
| 4032 |
do |
| 4033 |
test -f "$ac_file" || continue |
| 4034 |
case $ac_file in |
| 4035 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4036 |
;; |
| 4037 |
[ab].out ) |
| 4038 |
# We found the default executable, but exeext='' is most |
| 4039 |
# certainly right. |
| 4040 |
break;; |
| 4041 |
*.* ) |
| 4042 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 4043 |
then :; else |
| 4044 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4045 |
fi |
| 4046 |
# We set ac_cv_exeext here because the later test for it is not |
| 4047 |
# safe: cross compilers may not add the suffix if given an `-o' |
| 4048 |
# argument, so we may need to know it at that point already. |
| 4049 |
# Even if this section looks crufty: it has the advantage of |
| 4050 |
# actually working. |
| 4051 |
break;; |
| 4052 |
* ) |
| 4053 |
break;; |
| 4054 |
esac |
| 4055 |
done |
| 4056 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4057 |
|
| 4058 |
else $as_nop |
| 4059 |
ac_file='' |
| 4060 |
fi |
| 4061 |
if test -z "$ac_file" |
| 4062 |
then : |
| 4063 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4064 |
printf "%s\n" "no" >&6; } |
| 4065 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 4066 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4067 |
|
| 4068 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4069 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4070 |
as_fn_error 77 "C compiler cannot create executables |
| 4071 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4072 |
else $as_nop |
| 4073 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4074 |
printf "%s\n" "yes" >&6; } |
| 4075 |
fi |
| 4076 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4077 |
printf %s "checking for C compiler default output file name... " >&6; } |
| 4078 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4079 |
printf "%s\n" "$ac_file" >&6; } |
| 4080 |
ac_exeext=$ac_cv_exeext |
| 4081 |
|
| 4082 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4083 |
ac_clean_files=$ac_clean_files_save |
| 4084 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4085 |
printf %s "checking for suffix of executables... " >&6; } |
| 4086 |
if { { ac_try="$ac_link" |
| 4087 |
case "(($ac_try" in |
| 4088 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4089 |
*) ac_try_echo=$ac_try;; |
| 4090 |
esac |
| 4091 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4092 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4093 |
(eval "$ac_link") 2>&5 |
| 4094 |
ac_status=$? |
| 4095 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4096 |
test $ac_status = 0; } |
| 4097 |
then : |
| 4098 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4099 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4100 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4101 |
# `rm'. |
| 4102 |
for ac_file in conftest.exe conftest conftest.*; do |
| 4103 |
test -f "$ac_file" || continue |
| 4104 |
case $ac_file in |
| 4105 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4106 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4107 |
break;; |
| 4108 |
* ) break;; |
| 4109 |
esac |
| 4110 |
done |
| 4111 |
else $as_nop |
| 4112 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4113 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4114 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4115 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4116 |
fi |
| 4117 |
rm -f conftest conftest$ac_cv_exeext |
| 4118 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4119 |
printf "%s\n" "$ac_cv_exeext" >&6; } |
| 4120 |
|
| 4121 |
rm -f conftest.$ac_ext |
| 4122 |
EXEEXT=$ac_cv_exeext |
| 4123 |
ac_exeext=$EXEEXT |
| 4124 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4125 |
/* end confdefs.h. */ |
| 4126 |
#include <stdio.h> |
| 4127 |
int |
| 4128 |
main (void) |
| 4129 |
{ |
| 4130 |
FILE *f = fopen ("conftest.out", "w"); |
| 4131 |
return ferror (f) || fclose (f) != 0; |
| 4132 |
|
| 4133 |
; |
| 4134 |
return 0; |
| 4135 |
} |
| 4136 |
_ACEOF |
| 4137 |
ac_clean_files="$ac_clean_files conftest.out" |
| 4138 |
# Check that the compiler produces executables we can run. If not, either |
| 4139 |
# the compiler is broken, or we cross compile. |
| 4140 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4141 |
printf %s "checking whether we are cross compiling... " >&6; } |
| 4142 |
if test "$cross_compiling" != yes; then |
| 4143 |
{ { ac_try="$ac_link" |
| 4144 |
case "(($ac_try" in |
| 4145 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4146 |
*) ac_try_echo=$ac_try;; |
| 4147 |
esac |
| 4148 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4149 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4150 |
(eval "$ac_link") 2>&5 |
| 4151 |
ac_status=$? |
| 4152 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4153 |
test $ac_status = 0; } |
| 4154 |
if { ac_try='./conftest$ac_cv_exeext' |
| 4155 |
{ { case "(($ac_try" in |
| 4156 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4157 |
*) ac_try_echo=$ac_try;; |
| 4158 |
esac |
| 4159 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4160 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4161 |
(eval "$ac_try") 2>&5 |
| 4162 |
ac_status=$? |
| 4163 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4164 |
test $ac_status = 0; }; }; then |
| 4165 |
cross_compiling=no |
| 4166 |
else |
| 4167 |
if test "$cross_compiling" = maybe; then |
| 4168 |
cross_compiling=yes |
| 4169 |
else |
| 4170 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4171 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4172 |
as_fn_error 77 "cannot run C compiled programs. |
| 4173 |
If you meant to cross compile, use \`--host'. |
| 4174 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4175 |
fi |
| 4176 |
fi |
| 4177 |
fi |
| 4178 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4179 |
printf "%s\n" "$cross_compiling" >&6; } |
| 4180 |
|
| 4181 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4182 |
ac_clean_files=$ac_clean_files_save |
| 4183 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4184 |
printf %s "checking for suffix of object files... " >&6; } |
| 4185 |
if test ${ac_cv_objext+y} |
| 4186 |
then : |
| 4187 |
printf %s "(cached) " >&6 |
| 4188 |
else $as_nop |
| 4189 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4190 |
/* end confdefs.h. */ |
| 4191 |
|
| 4192 |
int |
| 4193 |
main (void) |
| 4194 |
{ |
| 4195 |
|
| 4196 |
; |
| 4197 |
return 0; |
| 4198 |
} |
| 4199 |
_ACEOF |
| 4200 |
rm -f conftest.o conftest.obj |
| 4201 |
if { { ac_try="$ac_compile" |
| 4202 |
case "(($ac_try" in |
| 4203 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4204 |
*) ac_try_echo=$ac_try;; |
| 4205 |
esac |
| 4206 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4207 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 4208 |
(eval "$ac_compile") 2>&5 |
| 4209 |
ac_status=$? |
| 4210 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4211 |
test $ac_status = 0; } |
| 4212 |
then : |
| 4213 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 4214 |
test -f "$ac_file" || continue; |
| 4215 |
case $ac_file in |
| 4216 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4217 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4218 |
break;; |
| 4219 |
esac |
| 4220 |
done |
| 4221 |
else $as_nop |
| 4222 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 4223 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 4224 |
|
| 4225 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4226 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4227 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4228 |
See \`config.log' for more details" "$LINENO" 5; } |
| 4229 |
fi |
| 4230 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4231 |
fi |
| 4232 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4233 |
printf "%s\n" "$ac_cv_objext" >&6; } |
| 4234 |
OBJEXT=$ac_cv_objext |
| 4235 |
ac_objext=$OBJEXT |
| 4236 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 4237 |
printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 4238 |
if test ${ac_cv_c_compiler_gnu+y} |
| 4239 |
then : |
| 4240 |
printf %s "(cached) " >&6 |
| 4241 |
else $as_nop |
| 4242 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4243 |
/* end confdefs.h. */ |
| 4244 |
|
| 4245 |
int |
| 4246 |
main (void) |
| 4247 |
{ |
| 4248 |
#ifndef __GNUC__ |
| 4249 |
choke me |
| 4250 |
#endif |
| 4251 |
|
| 4252 |
; |
| 4253 |
return 0; |
| 4254 |
} |
| 4255 |
_ACEOF |
| 4256 |
if ac_fn_c_try_compile "$LINENO" |
| 4257 |
then : |
| 4258 |
ac_compiler_gnu=yes |
| 4259 |
else $as_nop |
| 4260 |
ac_compiler_gnu=no |
| 4261 |
fi |
| 4262 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4263 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4264 |
|
| 4265 |
fi |
| 4266 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4267 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 4268 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4269 |
|
| 4270 |
if test $ac_compiler_gnu = yes; then |
| 4271 |
GCC=yes |
| 4272 |
else |
| 4273 |
GCC= |
| 4274 |
fi |
| 4275 |
ac_test_CFLAGS=${CFLAGS+y} |
| 4276 |
ac_save_CFLAGS=$CFLAGS |
| 4277 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4278 |
printf %s "checking whether $CC accepts -g... " >&6; } |
| 4279 |
if test ${ac_cv_prog_cc_g+y} |
| 4280 |
then : |
| 4281 |
printf %s "(cached) " >&6 |
| 4282 |
else $as_nop |
| 4283 |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 4284 |
ac_c_werror_flag=yes |
| 4285 |
ac_cv_prog_cc_g=no |
| 4286 |
CFLAGS="-g" |
| 4287 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4288 |
/* end confdefs.h. */ |
| 4289 |
|
| 4290 |
int |
| 4291 |
main (void) |
| 4292 |
{ |
| 4293 |
|
| 4294 |
; |
| 4295 |
return 0; |
| 4296 |
} |
| 4297 |
_ACEOF |
| 4298 |
if ac_fn_c_try_compile "$LINENO" |
| 4299 |
then : |
| 4300 |
ac_cv_prog_cc_g=yes |
| 4301 |
else $as_nop |
| 4302 |
CFLAGS="" |
| 4303 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4304 |
/* end confdefs.h. */ |
| 4305 |
|
| 4306 |
int |
| 4307 |
main (void) |
| 4308 |
{ |
| 4309 |
|
| 4310 |
; |
| 4311 |
return 0; |
| 4312 |
} |
| 4313 |
_ACEOF |
| 4314 |
if ac_fn_c_try_compile "$LINENO" |
| 4315 |
then : |
| 4316 |
|
| 4317 |
else $as_nop |
| 4318 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 4319 |
CFLAGS="-g" |
| 4320 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4321 |
/* end confdefs.h. */ |
| 4322 |
|
| 4323 |
int |
| 4324 |
main (void) |
| 4325 |
{ |
| 4326 |
|
| 4327 |
; |
| 4328 |
return 0; |
| 4329 |
} |
| 4330 |
_ACEOF |
| 4331 |
if ac_fn_c_try_compile "$LINENO" |
| 4332 |
then : |
| 4333 |
ac_cv_prog_cc_g=yes |
| 4334 |
fi |
| 4335 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4336 |
fi |
| 4337 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4338 |
fi |
| 4339 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4340 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 4341 |
fi |
| 4342 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4343 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 4344 |
if test $ac_test_CFLAGS; then |
| 4345 |
CFLAGS=$ac_save_CFLAGS |
| 4346 |
elif test $ac_cv_prog_cc_g = yes; then |
| 4347 |
if test "$GCC" = yes; then |
| 4348 |
CFLAGS="-g -O2" |
| 4349 |
else |
| 4350 |
CFLAGS="-g" |
| 4351 |
fi |
| 4352 |
else |
| 4353 |
if test "$GCC" = yes; then |
| 4354 |
CFLAGS="-O2" |
| 4355 |
else |
| 4356 |
CFLAGS= |
| 4357 |
fi |
| 4358 |
fi |
| 4359 |
ac_prog_cc_stdc=no |
| 4360 |
if test x$ac_prog_cc_stdc = xno |
| 4361 |
then : |
| 4362 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 4363 |
printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 4364 |
if test ${ac_cv_prog_cc_c11+y} |
| 4365 |
then : |
| 4366 |
printf %s "(cached) " >&6 |
| 4367 |
else $as_nop |
| 4368 |
ac_cv_prog_cc_c11=no |
| 4369 |
ac_save_CC=$CC |
| 4370 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4371 |
/* end confdefs.h. */ |
| 4372 |
$ac_c_conftest_c11_program |
| 4373 |
_ACEOF |
| 4374 |
for ac_arg in '' -std=gnu11 |
| 4375 |
do |
| 4376 |
CC="$ac_save_CC $ac_arg" |
| 4377 |
if ac_fn_c_try_compile "$LINENO" |
| 4378 |
then : |
| 4379 |
ac_cv_prog_cc_c11=$ac_arg |
| 4380 |
fi |
| 4381 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4382 |
test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 4383 |
done |
| 4384 |
rm -f conftest.$ac_ext |
| 4385 |
CC=$ac_save_CC |
| 4386 |
fi |
| 4387 |
|
| 4388 |
if test "x$ac_cv_prog_cc_c11" = xno |
| 4389 |
then : |
| 4390 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4391 |
printf "%s\n" "unsupported" >&6; } |
| 4392 |
else $as_nop |
| 4393 |
if test "x$ac_cv_prog_cc_c11" = x |
| 4394 |
then : |
| 4395 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4396 |
printf "%s\n" "none needed" >&6; } |
| 4397 |
else $as_nop |
| 4398 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 4399 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 4400 |
CC="$CC $ac_cv_prog_cc_c11" |
| 4401 |
fi |
| 4402 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 4403 |
ac_prog_cc_stdc=c11 |
| 4404 |
fi |
| 4405 |
fi |
| 4406 |
if test x$ac_prog_cc_stdc = xno |
| 4407 |
then : |
| 4408 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 4409 |
printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 4410 |
if test ${ac_cv_prog_cc_c99+y} |
| 4411 |
then : |
| 4412 |
printf %s "(cached) " >&6 |
| 4413 |
else $as_nop |
| 4414 |
ac_cv_prog_cc_c99=no |
| 4415 |
ac_save_CC=$CC |
| 4416 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4417 |
/* end confdefs.h. */ |
| 4418 |
$ac_c_conftest_c99_program |
| 4419 |
_ACEOF |
| 4420 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 4421 |
do |
| 4422 |
CC="$ac_save_CC $ac_arg" |
| 4423 |
if ac_fn_c_try_compile "$LINENO" |
| 4424 |
then : |
| 4425 |
ac_cv_prog_cc_c99=$ac_arg |
| 4426 |
fi |
| 4427 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4428 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4429 |
done |
| 4430 |
rm -f conftest.$ac_ext |
| 4431 |
CC=$ac_save_CC |
| 4432 |
fi |
| 4433 |
|
| 4434 |
if test "x$ac_cv_prog_cc_c99" = xno |
| 4435 |
then : |
| 4436 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4437 |
printf "%s\n" "unsupported" >&6; } |
| 4438 |
else $as_nop |
| 4439 |
if test "x$ac_cv_prog_cc_c99" = x |
| 4440 |
then : |
| 4441 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4442 |
printf "%s\n" "none needed" >&6; } |
| 4443 |
else $as_nop |
| 4444 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 4445 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 4446 |
CC="$CC $ac_cv_prog_cc_c99" |
| 4447 |
fi |
| 4448 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 4449 |
ac_prog_cc_stdc=c99 |
| 4450 |
fi |
| 4451 |
fi |
| 4452 |
if test x$ac_prog_cc_stdc = xno |
| 4453 |
then : |
| 4454 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 4455 |
printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 4456 |
if test ${ac_cv_prog_cc_c89+y} |
| 4457 |
then : |
| 4458 |
printf %s "(cached) " >&6 |
| 4459 |
else $as_nop |
| 4460 |
ac_cv_prog_cc_c89=no |
| 4461 |
ac_save_CC=$CC |
| 4462 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4463 |
/* end confdefs.h. */ |
| 4464 |
$ac_c_conftest_c89_program |
| 4465 |
_ACEOF |
| 4466 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4467 |
do |
| 4468 |
CC="$ac_save_CC $ac_arg" |
| 4469 |
if ac_fn_c_try_compile "$LINENO" |
| 4470 |
then : |
| 4471 |
ac_cv_prog_cc_c89=$ac_arg |
| 4472 |
fi |
| 4473 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 4474 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4475 |
done |
| 4476 |
rm -f conftest.$ac_ext |
| 4477 |
CC=$ac_save_CC |
| 4478 |
fi |
| 4479 |
|
| 4480 |
if test "x$ac_cv_prog_cc_c89" = xno |
| 4481 |
then : |
| 4482 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4483 |
printf "%s\n" "unsupported" >&6; } |
| 4484 |
else $as_nop |
| 4485 |
if test "x$ac_cv_prog_cc_c89" = x |
| 4486 |
then : |
| 4487 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4488 |
printf "%s\n" "none needed" >&6; } |
| 4489 |
else $as_nop |
| 4490 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4491 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 4492 |
CC="$CC $ac_cv_prog_cc_c89" |
| 4493 |
fi |
| 4494 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 4495 |
ac_prog_cc_stdc=c89 |
| 4496 |
fi |
| 4497 |
fi |
| 4498 |
|
| 4499 |
ac_ext=c |
| 4500 |
ac_cpp='$CPP $CPPFLAGS' |
| 4501 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4502 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4503 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4504 |
|
| 4505 |
|
| 4506 |
ac_ext=c |
| 4507 |
ac_cpp='$CPP $CPPFLAGS' |
| 4508 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4509 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4510 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4511 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4512 |
printf %s "checking whether $CC understands -c and -o together... " >&6; } |
| 4513 |
if test ${am_cv_prog_cc_c_o+y} |
| 4514 |
then : |
| 4515 |
printf %s "(cached) " >&6 |
| 4516 |
else $as_nop |
| 4517 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4518 |
/* end confdefs.h. */ |
| 4519 |
|
| 4520 |
int |
| 4521 |
main (void) |
| 4522 |
{ |
| 4523 |
|
| 4524 |
; |
| 4525 |
return 0; |
| 4526 |
} |
| 4527 |
_ACEOF |
| 4528 |
# Make sure it works both with $CC and with simple cc. |
| 4529 |
# Following AC_PROG_CC_C_O, we do the test twice because some |
| 4530 |
# compilers refuse to overwrite an existing .o file with -o, |
| 4531 |
# though they will create one. |
| 4532 |
am_cv_prog_cc_c_o=yes |
| 4533 |
for am_i in 1 2; do |
| 4534 |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4535 |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4536 |
ac_status=$? |
| 4537 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4538 |
(exit $ac_status); } \ |
| 4539 |
&& test -f conftest2.$ac_objext; then |
| 4540 |
: OK |
| 4541 |
else |
| 4542 |
am_cv_prog_cc_c_o=no |
| 4543 |
break |
| 4544 |
fi |
| 4545 |
done |
| 4546 |
rm -f core conftest* |
| 4547 |
unset am_i |
| 4548 |
fi |
| 4549 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4550 |
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
| 4551 |
if test "$am_cv_prog_cc_c_o" != yes; then |
| 4552 |
# Losing compiler, so override with the script. |
| 4553 |
# FIXME: It is wrong to rewrite CC. |
| 4554 |
# But if we don't then we get into trouble of one sort or another. |
| 4555 |
# A longer-term fix would be to have automake use am__CC in this case, |
| 4556 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4557 |
CC="$am_aux_dir/compile $CC" |
| 4558 |
fi |
| 4559 |
ac_ext=c |
| 4560 |
ac_cpp='$CPP $CPPFLAGS' |
| 4561 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4562 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4563 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4564 |
|
| 4565 |
|
| 4566 |
depcc="$CC" am_compiler_list= |
| 4567 |
|
| 4568 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4569 |
printf %s "checking dependency style of $depcc... " >&6; } |
| 4570 |
if test ${am_cv_CC_dependencies_compiler_type+y} |
| 4571 |
then : |
| 4572 |
printf %s "(cached) " >&6 |
| 4573 |
else $as_nop |
| 4574 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4575 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 4576 |
# making bogus files that we don't know about and never remove. For |
| 4577 |
# instance it was reported that on HP-UX the gcc test will end up |
| 4578 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
| 4579 |
# in D". |
| 4580 |
rm -rf conftest.dir |
| 4581 |
mkdir conftest.dir |
| 4582 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 4583 |
# using a relative directory. |
| 4584 |
cp "$am_depcomp" conftest.dir |
| 4585 |
cd conftest.dir |
| 4586 |
# We will build objects and dependencies in a subdirectory because |
| 4587 |
# it helps to detect inapplicable dependency modes. For instance |
| 4588 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 4589 |
# side effect of compilation, but ICC will put the dependencies in |
| 4590 |
# the current directory while Tru64 will put them in the object |
| 4591 |
# directory. |
| 4592 |
mkdir sub |
| 4593 |
|
| 4594 |
am_cv_CC_dependencies_compiler_type=none |
| 4595 |
if test "$am_compiler_list" = ""; then |
| 4596 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4597 |
fi |
| 4598 |
am__universal=false |
| 4599 |
case " $depcc " in #( |
| 4600 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4601 |
esac |
| 4602 |
|
| 4603 |
for depmode in $am_compiler_list; do |
| 4604 |
# Setup a source with many dependencies, because some compilers |
| 4605 |
# like to wrap large dependency lists on column 80 (with \), and |
| 4606 |
# we should not choose a depcomp mode which is confused by this. |
| 4607 |
# |
| 4608 |
# We need to recreate these files for each test, as the compiler may |
| 4609 |
# overwrite some of them when testing with obscure command lines. |
| 4610 |
# This happens at least with the AIX C compiler. |
| 4611 |
: > sub/conftest.c |
| 4612 |
for i in 1 2 3 4 5 6; do |
| 4613 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4614 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4615 |
# Solaris 10 /bin/sh. |
| 4616 |
echo '/* dummy */' > sub/conftst$i.h |
| 4617 |
done |
| 4618 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4619 |
|
| 4620 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4621 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 4622 |
# handle '-M -o', and we need to detect this. Also, some Intel |
| 4623 |
# versions had trouble with output in subdirs. |
| 4624 |
am__obj=sub/conftest.${OBJEXT-o} |
| 4625 |
am__minus_obj="-o $am__obj" |
| 4626 |
case $depmode in |
| 4627 |
gcc) |
| 4628 |
# This depmode causes a compiler race in universal mode. |
| 4629 |
test "$am__universal" = false || continue |
| 4630 |
;; |
| 4631 |
nosideeffect) |
| 4632 |
# After this tag, mechanisms are not by side-effect, so they'll |
| 4633 |
# only be used when explicitly requested. |
| 4634 |
if test "x$enable_dependency_tracking" = xyes; then |
| 4635 |
continue |
| 4636 |
else |
| 4637 |
break |
| 4638 |
fi |
| 4639 |
;; |
| 4640 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4641 |
# This compiler won't grok '-c -o', but also, the minuso test has |
| 4642 |
# not run yet. These depmodes are late enough in the game, and |
| 4643 |
# so weak that their functioning should not be impacted. |
| 4644 |
am__obj=conftest.${OBJEXT-o} |
| 4645 |
am__minus_obj= |
| 4646 |
;; |
| 4647 |
none) break ;; |
| 4648 |
esac |
| 4649 |
if depmode=$depmode \ |
| 4650 |
source=sub/conftest.c object=$am__obj \ |
| 4651 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4652 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4653 |
>/dev/null 2>conftest.err && |
| 4654 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4655 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4656 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4657 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4658 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 4659 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 4660 |
# that says an option was ignored or not supported. |
| 4661 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4662 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 4663 |
# The diagnosis changed in icc 8.0: |
| 4664 |
# icc: Command line remark: option '-MP' not supported |
| 4665 |
if (grep 'ignoring option' conftest.err || |
| 4666 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4667 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 4668 |
break |
| 4669 |
fi |
| 4670 |
fi |
| 4671 |
done |
| 4672 |
|
| 4673 |
cd .. |
| 4674 |
rm -rf conftest.dir |
| 4675 |
else |
| 4676 |
am_cv_CC_dependencies_compiler_type=none |
| 4677 |
fi |
| 4678 |
|
| 4679 |
fi |
| 4680 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4681 |
printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4682 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4683 |
|
| 4684 |
if |
| 4685 |
test "x$enable_dependency_tracking" != xno \ |
| 4686 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4687 |
am__fastdepCC_TRUE= |
| 4688 |
am__fastdepCC_FALSE='#' |
| 4689 |
else |
| 4690 |
am__fastdepCC_TRUE='#' |
| 4691 |
am__fastdepCC_FALSE= |
| 4692 |
fi |
| 4693 |
|
| 4694 |
|
| 4695 |
|
| 4696 |
|
| 4697 |
# Make sure we can run config.sub. |
| 4698 |
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 4699 |
as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 4700 |
|
| 4701 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4702 |
printf %s "checking build system type... " >&6; } |
| 4703 |
if test ${ac_cv_build+y} |
| 4704 |
then : |
| 4705 |
printf %s "(cached) " >&6 |
| 4706 |
else $as_nop |
| 4707 |
ac_build_alias=$build_alias |
| 4708 |
test "x$ac_build_alias" = x && |
| 4709 |
ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 4710 |
test "x$ac_build_alias" = x && |
| 4711 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4712 |
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 4713 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4714 |
|
| 4715 |
fi |
| 4716 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4717 |
printf "%s\n" "$ac_cv_build" >&6; } |
| 4718 |
case $ac_cv_build in |
| 4719 |
*-*-*) ;; |
| 4720 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4721 |
esac |
| 4722 |
build=$ac_cv_build |
| 4723 |
ac_save_IFS=$IFS; IFS='-' |
| 4724 |
set x $ac_cv_build |
| 4725 |
shift |
| 4726 |
build_cpu=$1 |
| 4727 |
build_vendor=$2 |
| 4728 |
shift; shift |
| 4729 |
# Remember, the first character of IFS is used to create $*, |
| 4730 |
# except with old shells: |
| 4731 |
build_os=$* |
| 4732 |
IFS=$ac_save_IFS |
| 4733 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4734 |
|
| 4735 |
|
| 4736 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4737 |
printf %s "checking host system type... " >&6; } |
| 4738 |
if test ${ac_cv_host+y} |
| 4739 |
then : |
| 4740 |
printf %s "(cached) " >&6 |
| 4741 |
else $as_nop |
| 4742 |
if test "x$host_alias" = x; then |
| 4743 |
ac_cv_host=$ac_cv_build |
| 4744 |
else |
| 4745 |
ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 4746 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 4747 |
fi |
| 4748 |
|
| 4749 |
fi |
| 4750 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4751 |
printf "%s\n" "$ac_cv_host" >&6; } |
| 4752 |
case $ac_cv_host in |
| 4753 |
*-*-*) ;; |
| 4754 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4755 |
esac |
| 4756 |
host=$ac_cv_host |
| 4757 |
ac_save_IFS=$IFS; IFS='-' |
| 4758 |
set x $ac_cv_host |
| 4759 |
shift |
| 4760 |
host_cpu=$1 |
| 4761 |
host_vendor=$2 |
| 4762 |
shift; shift |
| 4763 |
# Remember, the first character of IFS is used to create $*, |
| 4764 |
# except with old shells: |
| 4765 |
host_os=$* |
| 4766 |
IFS=$ac_save_IFS |
| 4767 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4768 |
|
| 4769 |
|
| 4770 |
|
| 4771 |
|
| 4772 |
|
| 4773 |
# Check whether --with-gnu-ld was given. |
| 4774 |
if test ${with_gnu_ld+y} |
| 4775 |
then : |
| 4776 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 4777 |
else $as_nop |
| 4778 |
with_gnu_ld=no |
| 4779 |
fi |
| 4780 |
|
| 4781 |
# Prepare PATH_SEPARATOR. |
| 4782 |
# The user is always right. |
| 4783 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 4784 |
# Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 4785 |
# contains only /bin. Note that ksh looks also at the FPATH variable, |
| 4786 |
# so we have to set that as well for the test. |
| 4787 |
PATH_SEPARATOR=: |
| 4788 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 4789 |
&& { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 4790 |
|| PATH_SEPARATOR=';' |
| 4791 |
} |
| 4792 |
fi |
| 4793 |
|
| 4794 |
if test -n "$LD"; then |
| 4795 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 |
| 4796 |
printf %s "checking for ld... " >&6; } |
| 4797 |
elif test "$GCC" = yes; then |
| 4798 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4799 |
printf %s "checking for ld used by $CC... " >&6; } |
| 4800 |
elif test "$with_gnu_ld" = yes; then |
| 4801 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4802 |
printf %s "checking for GNU ld... " >&6; } |
| 4803 |
else |
| 4804 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4805 |
printf %s "checking for non-GNU ld... " >&6; } |
| 4806 |
fi |
| 4807 |
if test -n "$LD"; then |
| 4808 |
# Let the user override the test with a path. |
| 4809 |
: |
| 4810 |
else |
| 4811 |
if test ${acl_cv_path_LD+y} |
| 4812 |
then : |
| 4813 |
printf %s "(cached) " >&6 |
| 4814 |
else $as_nop |
| 4815 |
|
| 4816 |
acl_cv_path_LD= # Final result of this test |
| 4817 |
ac_prog=ld # Program to search in $PATH |
| 4818 |
if test "$GCC" = yes; then |
| 4819 |
# Check if gcc -print-prog-name=ld gives a path. |
| 4820 |
case $host in |
| 4821 |
*-*-mingw*) |
| 4822 |
# gcc leaves a trailing carriage return which upsets mingw |
| 4823 |
acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4824 |
*) |
| 4825 |
acl_output=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4826 |
esac |
| 4827 |
case $acl_output in |
| 4828 |
# Accept absolute paths. |
| 4829 |
[\\/]* | ?:[\\/]*) |
| 4830 |
re_direlt='/[^/][^/]*/\.\./' |
| 4831 |
# Canonicalize the pathname of ld |
| 4832 |
acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` |
| 4833 |
while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do |
| 4834 |
acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` |
| 4835 |
done |
| 4836 |
# Got the pathname. No search in PATH is needed. |
| 4837 |
acl_cv_path_LD="$acl_output" |
| 4838 |
ac_prog= |
| 4839 |
;; |
| 4840 |
"") |
| 4841 |
# If it fails, then pretend we aren't using GCC. |
| 4842 |
;; |
| 4843 |
*) |
| 4844 |
# If it is relative, then search for the first ld in PATH. |
| 4845 |
with_gnu_ld=unknown |
| 4846 |
;; |
| 4847 |
esac |
| 4848 |
fi |
| 4849 |
if test -n "$ac_prog"; then |
| 4850 |
# Search for $ac_prog in $PATH. |
| 4851 |
acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4852 |
for ac_dir in $PATH; do |
| 4853 |
IFS="$acl_save_ifs" |
| 4854 |
test -z "$ac_dir" && ac_dir=. |
| 4855 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4856 |
acl_cv_path_LD="$ac_dir/$ac_prog" |
| 4857 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 4858 |
# but apparently some variants of GNU ld only accept -v. |
| 4859 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 4860 |
case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
| 4861 |
*GNU* | *'with BFD'*) |
| 4862 |
test "$with_gnu_ld" != no && break |
| 4863 |
;; |
| 4864 |
*) |
| 4865 |
test "$with_gnu_ld" != yes && break |
| 4866 |
;; |
| 4867 |
esac |
| 4868 |
fi |
| 4869 |
done |
| 4870 |
IFS="$acl_save_ifs" |
| 4871 |
fi |
| 4872 |
case $host in |
| 4873 |
*-*-aix*) |
| 4874 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4875 |
/* end confdefs.h. */ |
| 4876 |
#if defined __powerpc64__ || defined _ARCH_PPC64 |
| 4877 |
int ok; |
| 4878 |
#else |
| 4879 |
error fail |
| 4880 |
#endif |
| 4881 |
|
| 4882 |
_ACEOF |
| 4883 |
if ac_fn_c_try_compile "$LINENO" |
| 4884 |
then : |
| 4885 |
# The compiler produces 64-bit code. Add option '-b64' so that the |
| 4886 |
# linker groks 64-bit object files. |
| 4887 |
case "$acl_cv_path_LD " in |
| 4888 |
*" -b64 "*) ;; |
| 4889 |
*) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; |
| 4890 |
esac |
| 4891 |
|
| 4892 |
fi |
| 4893 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4894 |
;; |
| 4895 |
sparc64-*-netbsd*) |
| 4896 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4897 |
/* end confdefs.h. */ |
| 4898 |
#if defined __sparcv9 || defined __arch64__ |
| 4899 |
int ok; |
| 4900 |
#else |
| 4901 |
error fail |
| 4902 |
#endif |
| 4903 |
|
| 4904 |
_ACEOF |
| 4905 |
if ac_fn_c_try_compile "$LINENO" |
| 4906 |
then : |
| 4907 |
|
| 4908 |
else $as_nop |
| 4909 |
# The compiler produces 32-bit code. Add option '-m elf32_sparc' |
| 4910 |
# so that the linker groks 32-bit object files. |
| 4911 |
case "$acl_cv_path_LD " in |
| 4912 |
*" -m elf32_sparc "*) ;; |
| 4913 |
*) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; |
| 4914 |
esac |
| 4915 |
|
| 4916 |
fi |
| 4917 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4918 |
;; |
| 4919 |
esac |
| 4920 |
|
| 4921 |
fi |
| 4922 |
|
| 4923 |
LD="$acl_cv_path_LD" |
| 4924 |
fi |
| 4925 |
if test -n "$LD"; then |
| 4926 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4927 |
printf "%s\n" "$LD" >&6; } |
| 4928 |
else |
| 4929 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4930 |
printf "%s\n" "no" >&6; } |
| 4931 |
as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4932 |
fi |
| 4933 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 4934 |
printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 4935 |
if test ${acl_cv_prog_gnu_ld+y} |
| 4936 |
then : |
| 4937 |
printf %s "(cached) " >&6 |
| 4938 |
else $as_nop |
| 4939 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4940 |
case `$LD -v 2>&1 </dev/null` in |
| 4941 |
*GNU* | *'with BFD'*) |
| 4942 |
acl_cv_prog_gnu_ld=yes |
| 4943 |
;; |
| 4944 |
*) |
| 4945 |
acl_cv_prog_gnu_ld=no |
| 4946 |
;; |
| 4947 |
esac |
| 4948 |
fi |
| 4949 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
| 4950 |
printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } |
| 4951 |
with_gnu_ld=$acl_cv_prog_gnu_ld |
| 4952 |
|
| 4953 |
|
| 4954 |
|
| 4955 |
|
| 4956 |
|
| 4957 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
| 4958 |
printf %s "checking for shared library run path origin... " >&6; } |
| 4959 |
if test ${acl_cv_rpath+y} |
| 4960 |
then : |
| 4961 |
printf %s "(cached) " >&6 |
| 4962 |
else $as_nop |
| 4963 |
|
| 4964 |
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 4965 |
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 4966 |
. ./conftest.sh |
| 4967 |
rm -f ./conftest.sh |
| 4968 |
acl_cv_rpath=done |
| 4969 |
|
| 4970 |
fi |
| 4971 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
| 4972 |
printf "%s\n" "$acl_cv_rpath" >&6; } |
| 4973 |
wl="$acl_cv_wl" |
| 4974 |
acl_libext="$acl_cv_libext" |
| 4975 |
acl_shlibext="$acl_cv_shlibext" |
| 4976 |
acl_libname_spec="$acl_cv_libname_spec" |
| 4977 |
acl_library_names_spec="$acl_cv_library_names_spec" |
| 4978 |
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 4979 |
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 4980 |
acl_hardcode_direct="$acl_cv_hardcode_direct" |
| 4981 |
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 4982 |
# Check whether --enable-rpath was given. |
| 4983 |
if test ${enable_rpath+y} |
| 4984 |
then : |
| 4985 |
enableval=$enable_rpath; : |
| 4986 |
else $as_nop |
| 4987 |
enable_rpath=yes |
| 4988 |
fi |
| 4989 |
|
| 4990 |
|
| 4991 |
|
| 4992 |
|
| 4993 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 |
| 4994 |
printf %s "checking 32-bit host C ABI... " >&6; } |
| 4995 |
if test ${gl_cv_host_cpu_c_abi_32bit+y} |
| 4996 |
then : |
| 4997 |
printf %s "(cached) " >&6 |
| 4998 |
else $as_nop |
| 4999 |
if test -n "$gl_cv_host_cpu_c_abi"; then |
| 5000 |
case "$gl_cv_host_cpu_c_abi" in |
| 5001 |
i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) |
| 5002 |
gl_cv_host_cpu_c_abi_32bit=yes ;; |
| 5003 |
x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) |
| 5004 |
gl_cv_host_cpu_c_abi_32bit=no ;; |
| 5005 |
*) |
| 5006 |
gl_cv_host_cpu_c_abi_32bit=unknown ;; |
| 5007 |
esac |
| 5008 |
else |
| 5009 |
case "$host_cpu" in |
| 5010 |
|
| 5011 |
# CPUs that only support a 32-bit ABI. |
| 5012 |
arc \ |
| 5013 |
| bfin \ |
| 5014 |
| cris* \ |
| 5015 |
| csky \ |
| 5016 |
| epiphany \ |
| 5017 |
| ft32 \ |
| 5018 |
| h8300 \ |
| 5019 |
| m68k \ |
| 5020 |
| microblaze | microblazeel \ |
| 5021 |
| nds32 | nds32le | nds32be \ |
| 5022 |
| nios2 | nios2eb | nios2el \ |
| 5023 |
| or1k* \ |
| 5024 |
| or32 \ |
| 5025 |
| sh | sh1234 | sh1234elb \ |
| 5026 |
| tic6x \ |
| 5027 |
| xtensa* ) |
| 5028 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5029 |
;; |
| 5030 |
|
| 5031 |
# CPUs that only support a 64-bit ABI. |
| 5032 |
alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ |
| 5033 |
| mmix ) |
| 5034 |
gl_cv_host_cpu_c_abi_32bit=no |
| 5035 |
;; |
| 5036 |
|
| 5037 |
i[34567]86 ) |
| 5038 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5039 |
;; |
| 5040 |
|
| 5041 |
x86_64 ) |
| 5042 |
# On x86_64 systems, the C compiler may be generating code in one of |
| 5043 |
# these ABIs: |
| 5044 |
# - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. |
| 5045 |
# - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 |
| 5046 |
# with native Windows (mingw, MSVC). |
| 5047 |
# - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. |
| 5048 |
# - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. |
| 5049 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5050 |
/* end confdefs.h. */ |
| 5051 |
#if (defined __x86_64__ || defined __amd64__ \ |
| 5052 |
|| defined _M_X64 || defined _M_AMD64) \ |
| 5053 |
&& !(defined __ILP32__ || defined _ILP32) |
| 5054 |
int ok; |
| 5055 |
#else |
| 5056 |
error fail |
| 5057 |
#endif |
| 5058 |
|
| 5059 |
_ACEOF |
| 5060 |
if ac_fn_c_try_compile "$LINENO" |
| 5061 |
then : |
| 5062 |
gl_cv_host_cpu_c_abi_32bit=no |
| 5063 |
else $as_nop |
| 5064 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5065 |
fi |
| 5066 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5067 |
;; |
| 5068 |
|
| 5069 |
arm* | aarch64 ) |
| 5070 |
# Assume arm with EABI. |
| 5071 |
# On arm64 systems, the C compiler may be generating code in one of |
| 5072 |
# these ABIs: |
| 5073 |
# - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. |
| 5074 |
# - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. |
| 5075 |
# - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. |
| 5076 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5077 |
/* end confdefs.h. */ |
| 5078 |
#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) |
| 5079 |
int ok; |
| 5080 |
#else |
| 5081 |
error fail |
| 5082 |
#endif |
| 5083 |
|
| 5084 |
_ACEOF |
| 5085 |
if ac_fn_c_try_compile "$LINENO" |
| 5086 |
then : |
| 5087 |
gl_cv_host_cpu_c_abi_32bit=no |
| 5088 |
else $as_nop |
| 5089 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5090 |
fi |
| 5091 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5092 |
;; |
| 5093 |
|
| 5094 |
hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) |
| 5095 |
# On hppa, the C compiler may be generating 32-bit code or 64-bit |
| 5096 |
# code. In the latter case, it defines _LP64 and __LP64__. |
| 5097 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5098 |
/* end confdefs.h. */ |
| 5099 |
#ifdef __LP64__ |
| 5100 |
int ok; |
| 5101 |
#else |
| 5102 |
error fail |
| 5103 |
#endif |
| 5104 |
|
| 5105 |
_ACEOF |
| 5106 |
if ac_fn_c_try_compile "$LINENO" |
| 5107 |
then : |
| 5108 |
gl_cv_host_cpu_c_abi_32bit=no |
| 5109 |
else $as_nop |
| 5110 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5111 |
fi |
| 5112 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5113 |
;; |
| 5114 |
|
| 5115 |
ia64* ) |
| 5116 |
# On ia64 on HP-UX, the C compiler may be generating 64-bit code or |
| 5117 |
# 32-bit code. In the latter case, it defines _ILP32. |
| 5118 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5119 |
/* end confdefs.h. */ |
| 5120 |
#ifdef _ILP32 |
| 5121 |
int ok; |
| 5122 |
#else |
| 5123 |
error fail |
| 5124 |
#endif |
| 5125 |
|
| 5126 |
_ACEOF |
| 5127 |
if ac_fn_c_try_compile "$LINENO" |
| 5128 |
then : |
| 5129 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5130 |
else $as_nop |
| 5131 |
gl_cv_host_cpu_c_abi_32bit=no |
| 5132 |
fi |
| 5133 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5134 |
;; |
| 5135 |
|
| 5136 |
mips* ) |
| 5137 |
# We should also check for (_MIPS_SZPTR == 64), but gcc keeps this |
| 5138 |
# at 32. |
| 5139 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5140 |
/* end confdefs.h. */ |
| 5141 |
#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) |
| 5142 |
int ok; |
| 5143 |
#else |
| 5144 |
error fail |
| 5145 |
#endif |
| 5146 |
|
| 5147 |
_ACEOF |
| 5148 |
if ac_fn_c_try_compile "$LINENO" |
| 5149 |
then : |
| 5150 |
gl_cv_host_cpu_c_abi_32bit=no |
| 5151 |
else $as_nop |
| 5152 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5153 |
fi |
| 5154 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5155 |
;; |
| 5156 |
|
| 5157 |
powerpc* ) |
| 5158 |
# Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. |
| 5159 |
# No need to distinguish them here; the caller may distinguish |
| 5160 |
# them based on the OS. |
| 5161 |
# On powerpc64 systems, the C compiler may still be generating |
| 5162 |
# 32-bit code. And on powerpc-ibm-aix systems, the C compiler may |
| 5163 |
# be generating 64-bit code. |
| 5164 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5165 |
/* end confdefs.h. */ |
| 5166 |
#if defined __powerpc64__ || defined _ARCH_PPC64 |
| 5167 |
int ok; |
| 5168 |
#else |
| 5169 |
error fail |
| 5170 |
#endif |
| 5171 |
|
| 5172 |
_ACEOF |
| 5173 |
if ac_fn_c_try_compile "$LINENO" |
| 5174 |
then : |
| 5175 |
gl_cv_host_cpu_c_abi_32bit=no |
| 5176 |
else $as_nop |
| 5177 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5178 |
fi |
| 5179 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5180 |
;; |
| 5181 |
|
| 5182 |
rs6000 ) |
| 5183 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5184 |
;; |
| 5185 |
|
| 5186 |
riscv32 | riscv64 ) |
| 5187 |
# There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. |
| 5188 |
# Size of 'long' and 'void *': |
| 5189 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5190 |
/* end confdefs.h. */ |
| 5191 |
#if defined __LP64__ |
| 5192 |
int ok; |
| 5193 |
#else |
| 5194 |
error fail |
| 5195 |
#endif |
| 5196 |
|
| 5197 |
_ACEOF |
| 5198 |
if ac_fn_c_try_compile "$LINENO" |
| 5199 |
then : |
| 5200 |
gl_cv_host_cpu_c_abi_32bit=no |
| 5201 |
else $as_nop |
| 5202 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5203 |
fi |
| 5204 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5205 |
;; |
| 5206 |
|
| 5207 |
s390* ) |
| 5208 |
# On s390x, the C compiler may be generating 64-bit (= s390x) code |
| 5209 |
# or 31-bit (= s390) code. |
| 5210 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5211 |
/* end confdefs.h. */ |
| 5212 |
#if defined __LP64__ || defined __s390x__ |
| 5213 |
int ok; |
| 5214 |
#else |
| 5215 |
error fail |
| 5216 |
#endif |
| 5217 |
|
| 5218 |
_ACEOF |
| 5219 |
if ac_fn_c_try_compile "$LINENO" |
| 5220 |
then : |
| 5221 |
gl_cv_host_cpu_c_abi_32bit=no |
| 5222 |
else $as_nop |
| 5223 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5224 |
fi |
| 5225 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5226 |
;; |
| 5227 |
|
| 5228 |
sparc | sparc64 ) |
| 5229 |
# UltraSPARCs running Linux have `uname -m` = "sparc64", but the |
| 5230 |
# C compiler still generates 32-bit code. |
| 5231 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5232 |
/* end confdefs.h. */ |
| 5233 |
#if defined __sparcv9 || defined __arch64__ |
| 5234 |
int ok; |
| 5235 |
#else |
| 5236 |
error fail |
| 5237 |
#endif |
| 5238 |
|
| 5239 |
_ACEOF |
| 5240 |
if ac_fn_c_try_compile "$LINENO" |
| 5241 |
then : |
| 5242 |
gl_cv_host_cpu_c_abi_32bit=no |
| 5243 |
else $as_nop |
| 5244 |
gl_cv_host_cpu_c_abi_32bit=yes |
| 5245 |
fi |
| 5246 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5247 |
;; |
| 5248 |
|
| 5249 |
*) |
| 5250 |
gl_cv_host_cpu_c_abi_32bit=unknown |
| 5251 |
;; |
| 5252 |
esac |
| 5253 |
fi |
| 5254 |
|
| 5255 |
fi |
| 5256 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 |
| 5257 |
printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } |
| 5258 |
|
| 5259 |
HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" |
| 5260 |
|
| 5261 |
ac_ext=c |
| 5262 |
ac_cpp='$CPP $CPPFLAGS' |
| 5263 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5264 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5265 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5266 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5267 |
printf %s "checking how to run the C preprocessor... " >&6; } |
| 5268 |
# On Suns, sometimes $CPP names a directory. |
| 5269 |
if test -n "$CPP" && test -d "$CPP"; then |
| 5270 |
CPP= |
| 5271 |
fi |
| 5272 |
if test -z "$CPP"; then |
| 5273 |
if test ${ac_cv_prog_CPP+y} |
| 5274 |
then : |
| 5275 |
printf %s "(cached) " >&6 |
| 5276 |
else $as_nop |
| 5277 |
# Double quotes because $CC needs to be expanded |
| 5278 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 5279 |
do |
| 5280 |
ac_preproc_ok=false |
| 5281 |
for ac_c_preproc_warn_flag in '' yes |
| 5282 |
do |
| 5283 |
# Use a header file that comes with gcc, so configuring glibc |
| 5284 |
# with a fresh cross-compiler works. |
| 5285 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 5286 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 5287 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5288 |
/* end confdefs.h. */ |
| 5289 |
#include <limits.h> |
| 5290 |
Syntax error |
| 5291 |
_ACEOF |
| 5292 |
if ac_fn_c_try_cpp "$LINENO" |
| 5293 |
then : |
| 5294 |
|
| 5295 |
else $as_nop |
| 5296 |
# Broken: fails on valid input. |
| 5297 |
continue |
| 5298 |
fi |
| 5299 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5300 |
|
| 5301 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 5302 |
# can be detected and how. |
| 5303 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5304 |
/* end confdefs.h. */ |
| 5305 |
#include <ac_nonexistent.h> |
| 5306 |
_ACEOF |
| 5307 |
if ac_fn_c_try_cpp "$LINENO" |
| 5308 |
then : |
| 5309 |
# Broken: success on invalid input. |
| 5310 |
continue |
| 5311 |
else $as_nop |
| 5312 |
# Passes both tests. |
| 5313 |
ac_preproc_ok=: |
| 5314 |
break |
| 5315 |
fi |
| 5316 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5317 |
|
| 5318 |
done |
| 5319 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5320 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 5321 |
if $ac_preproc_ok |
| 5322 |
then : |
| 5323 |
break |
| 5324 |
fi |
| 5325 |
|
| 5326 |
done |
| 5327 |
ac_cv_prog_CPP=$CPP |
| 5328 |
|
| 5329 |
fi |
| 5330 |
CPP=$ac_cv_prog_CPP |
| 5331 |
else |
| 5332 |
ac_cv_prog_CPP=$CPP |
| 5333 |
fi |
| 5334 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5335 |
printf "%s\n" "$CPP" >&6; } |
| 5336 |
ac_preproc_ok=false |
| 5337 |
for ac_c_preproc_warn_flag in '' yes |
| 5338 |
do |
| 5339 |
# Use a header file that comes with gcc, so configuring glibc |
| 5340 |
# with a fresh cross-compiler works. |
| 5341 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 5342 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 5343 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5344 |
/* end confdefs.h. */ |
| 5345 |
#include <limits.h> |
| 5346 |
Syntax error |
| 5347 |
_ACEOF |
| 5348 |
if ac_fn_c_try_cpp "$LINENO" |
| 5349 |
then : |
| 5350 |
|
| 5351 |
else $as_nop |
| 5352 |
# Broken: fails on valid input. |
| 5353 |
continue |
| 5354 |
fi |
| 5355 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5356 |
|
| 5357 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 5358 |
# can be detected and how. |
| 5359 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5360 |
/* end confdefs.h. */ |
| 5361 |
#include <ac_nonexistent.h> |
| 5362 |
_ACEOF |
| 5363 |
if ac_fn_c_try_cpp "$LINENO" |
| 5364 |
then : |
| 5365 |
# Broken: success on invalid input. |
| 5366 |
continue |
| 5367 |
else $as_nop |
| 5368 |
# Passes both tests. |
| 5369 |
ac_preproc_ok=: |
| 5370 |
break |
| 5371 |
fi |
| 5372 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5373 |
|
| 5374 |
done |
| 5375 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5376 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 5377 |
if $ac_preproc_ok |
| 5378 |
then : |
| 5379 |
|
| 5380 |
else $as_nop |
| 5381 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5382 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5383 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5384 |
See \`config.log' for more details" "$LINENO" 5; } |
| 5385 |
fi |
| 5386 |
|
| 5387 |
ac_ext=c |
| 5388 |
ac_cpp='$CPP $CPPFLAGS' |
| 5389 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5390 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5391 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5392 |
|
| 5393 |
|
| 5394 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5395 |
printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 5396 |
if test ${ac_cv_path_GREP+y} |
| 5397 |
then : |
| 5398 |
printf %s "(cached) " >&6 |
| 5399 |
else $as_nop |
| 5400 |
if test -z "$GREP"; then |
| 5401 |
ac_path_GREP_found=false |
| 5402 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 5403 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5404 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5405 |
do |
| 5406 |
IFS=$as_save_IFS |
| 5407 |
case $as_dir in #((( |
| 5408 |
'') as_dir=./ ;; |
| 5409 |
*/) ;; |
| 5410 |
*) as_dir=$as_dir/ ;; |
| 5411 |
esac |
| 5412 |
for ac_prog in grep ggrep |
| 5413 |
do |
| 5414 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5415 |
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 5416 |
as_fn_executable_p "$ac_path_GREP" || continue |
| 5417 |
# Check for GNU ac_path_GREP and select it if it is found. |
| 5418 |
# Check for GNU $ac_path_GREP |
| 5419 |
case `"$ac_path_GREP" --version 2>&1` in |
| 5420 |
*GNU*) |
| 5421 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5422 |
*) |
| 5423 |
ac_count=0 |
| 5424 |
printf %s 0123456789 >"conftest.in" |
| 5425 |
while : |
| 5426 |
do |
| 5427 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5428 |
mv "conftest.tmp" "conftest.in" |
| 5429 |
cp "conftest.in" "conftest.nl" |
| 5430 |
printf "%s\n" 'GREP' >> "conftest.nl" |
| 5431 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5432 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5433 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5434 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5435 |
# Best one so far, save it but keep looking for a better one |
| 5436 |
ac_cv_path_GREP="$ac_path_GREP" |
| 5437 |
ac_path_GREP_max=$ac_count |
| 5438 |
fi |
| 5439 |
# 10*(2^10) chars as input seems more than enough |
| 5440 |
test $ac_count -gt 10 && break |
| 5441 |
done |
| 5442 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5443 |
esac |
| 5444 |
|
| 5445 |
$ac_path_GREP_found && break 3 |
| 5446 |
done |
| 5447 |
done |
| 5448 |
done |
| 5449 |
IFS=$as_save_IFS |
| 5450 |
if test -z "$ac_cv_path_GREP"; then |
| 5451 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5452 |
fi |
| 5453 |
else |
| 5454 |
ac_cv_path_GREP=$GREP |
| 5455 |
fi |
| 5456 |
|
| 5457 |
fi |
| 5458 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5459 |
printf "%s\n" "$ac_cv_path_GREP" >&6; } |
| 5460 |
GREP="$ac_cv_path_GREP" |
| 5461 |
|
| 5462 |
|
| 5463 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5464 |
printf %s "checking for egrep... " >&6; } |
| 5465 |
if test ${ac_cv_path_EGREP+y} |
| 5466 |
then : |
| 5467 |
printf %s "(cached) " >&6 |
| 5468 |
else $as_nop |
| 5469 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5470 |
then ac_cv_path_EGREP="$GREP -E" |
| 5471 |
else |
| 5472 |
if test -z "$EGREP"; then |
| 5473 |
ac_path_EGREP_found=false |
| 5474 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 5475 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5476 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5477 |
do |
| 5478 |
IFS=$as_save_IFS |
| 5479 |
case $as_dir in #((( |
| 5480 |
'') as_dir=./ ;; |
| 5481 |
*/) ;; |
| 5482 |
*) as_dir=$as_dir/ ;; |
| 5483 |
esac |
| 5484 |
for ac_prog in egrep |
| 5485 |
do |
| 5486 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5487 |
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 5488 |
as_fn_executable_p "$ac_path_EGREP" || continue |
| 5489 |
# Check for GNU ac_path_EGREP and select it if it is found. |
| 5490 |
# Check for GNU $ac_path_EGREP |
| 5491 |
case `"$ac_path_EGREP" --version 2>&1` in |
| 5492 |
*GNU*) |
| 5493 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5494 |
*) |
| 5495 |
ac_count=0 |
| 5496 |
printf %s 0123456789 >"conftest.in" |
| 5497 |
while : |
| 5498 |
do |
| 5499 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5500 |
mv "conftest.tmp" "conftest.in" |
| 5501 |
cp "conftest.in" "conftest.nl" |
| 5502 |
printf "%s\n" 'EGREP' >> "conftest.nl" |
| 5503 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5504 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5505 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5506 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5507 |
# Best one so far, save it but keep looking for a better one |
| 5508 |
ac_cv_path_EGREP="$ac_path_EGREP" |
| 5509 |
ac_path_EGREP_max=$ac_count |
| 5510 |
fi |
| 5511 |
# 10*(2^10) chars as input seems more than enough |
| 5512 |
test $ac_count -gt 10 && break |
| 5513 |
done |
| 5514 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5515 |
esac |
| 5516 |
|
| 5517 |
$ac_path_EGREP_found && break 3 |
| 5518 |
done |
| 5519 |
done |
| 5520 |
done |
| 5521 |
IFS=$as_save_IFS |
| 5522 |
if test -z "$ac_cv_path_EGREP"; then |
| 5523 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5524 |
fi |
| 5525 |
else |
| 5526 |
ac_cv_path_EGREP=$EGREP |
| 5527 |
fi |
| 5528 |
|
| 5529 |
fi |
| 5530 |
fi |
| 5531 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5532 |
printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 5533 |
EGREP="$ac_cv_path_EGREP" |
| 5534 |
|
| 5535 |
|
| 5536 |
|
| 5537 |
|
| 5538 |
|
| 5539 |
|
| 5540 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 |
| 5541 |
printf %s "checking for ELF binary format... " >&6; } |
| 5542 |
if test ${gl_cv_elf+y} |
| 5543 |
then : |
| 5544 |
printf %s "(cached) " >&6 |
| 5545 |
else $as_nop |
| 5546 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5547 |
/* end confdefs.h. */ |
| 5548 |
#ifdef __ELF__ |
| 5549 |
Extensible Linking Format |
| 5550 |
#endif |
| 5551 |
|
| 5552 |
_ACEOF |
| 5553 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5554 |
$EGREP "Extensible Linking Format" >/dev/null 2>&1 |
| 5555 |
then : |
| 5556 |
gl_cv_elf=yes |
| 5557 |
else $as_nop |
| 5558 |
gl_cv_elf=no |
| 5559 |
fi |
| 5560 |
rm -rf conftest* |
| 5561 |
|
| 5562 |
|
| 5563 |
fi |
| 5564 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 |
| 5565 |
printf "%s\n" "$gl_cv_elf" >&6; } |
| 5566 |
if test $gl_cv_elf; then |
| 5567 |
# Extract the ELF class of a file (5th byte) in decimal. |
| 5568 |
# Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header |
| 5569 |
if od -A x < /dev/null >/dev/null 2>/dev/null; then |
| 5570 |
# Use POSIX od. |
| 5571 |
func_elfclass () |
| 5572 |
{ |
| 5573 |
od -A n -t d1 -j 4 -N 1 |
| 5574 |
} |
| 5575 |
else |
| 5576 |
# Use BSD hexdump. |
| 5577 |
func_elfclass () |
| 5578 |
{ |
| 5579 |
dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' |
| 5580 |
echo |
| 5581 |
} |
| 5582 |
fi |
| 5583 |
case $HOST_CPU_C_ABI_32BIT in |
| 5584 |
yes) |
| 5585 |
# 32-bit ABI. |
| 5586 |
acl_is_expected_elfclass () |
| 5587 |
{ |
| 5588 |
test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 |
| 5589 |
} |
| 5590 |
;; |
| 5591 |
no) |
| 5592 |
# 64-bit ABI. |
| 5593 |
acl_is_expected_elfclass () |
| 5594 |
{ |
| 5595 |
test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 |
| 5596 |
} |
| 5597 |
;; |
| 5598 |
*) |
| 5599 |
# Unknown. |
| 5600 |
acl_is_expected_elfclass () |
| 5601 |
{ |
| 5602 |
: |
| 5603 |
} |
| 5604 |
;; |
| 5605 |
esac |
| 5606 |
else |
| 5607 |
acl_is_expected_elfclass () |
| 5608 |
{ |
| 5609 |
: |
| 5610 |
} |
| 5611 |
fi |
| 5612 |
|
| 5613 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 |
| 5614 |
printf %s "checking for the common suffixes of directories in the library search path... " >&6; } |
| 5615 |
if test ${acl_cv_libdirstems+y} |
| 5616 |
then : |
| 5617 |
printf %s "(cached) " >&6 |
| 5618 |
else $as_nop |
| 5619 |
acl_libdirstem=lib |
| 5620 |
acl_libdirstem2= |
| 5621 |
acl_libdirstem3= |
| 5622 |
case "$host_os" in |
| 5623 |
solaris*) |
| 5624 |
if test $HOST_CPU_C_ABI_32BIT = no; then |
| 5625 |
acl_libdirstem2=lib/64 |
| 5626 |
case "$host_cpu" in |
| 5627 |
sparc*) acl_libdirstem3=lib/sparcv9 ;; |
| 5628 |
i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; |
| 5629 |
esac |
| 5630 |
fi |
| 5631 |
;; |
| 5632 |
*) |
| 5633 |
searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ |
| 5634 |
| sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 5635 |
if test $HOST_CPU_C_ABI_32BIT != no; then |
| 5636 |
# 32-bit or unknown ABI. |
| 5637 |
if test -d /usr/lib32; then |
| 5638 |
acl_libdirstem2=lib32 |
| 5639 |
fi |
| 5640 |
fi |
| 5641 |
if test $HOST_CPU_C_ABI_32BIT != yes; then |
| 5642 |
# 64-bit or unknown ABI. |
| 5643 |
if test -d /usr/lib64; then |
| 5644 |
acl_libdirstem3=lib64 |
| 5645 |
fi |
| 5646 |
fi |
| 5647 |
if test -n "$searchpath"; then |
| 5648 |
acl_save_IFS="${IFS= }"; IFS=":" |
| 5649 |
for searchdir in $searchpath; do |
| 5650 |
if test -d "$searchdir"; then |
| 5651 |
case "$searchdir" in |
| 5652 |
*/lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; |
| 5653 |
*/lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; |
| 5654 |
*/../ | */.. ) |
| 5655 |
# Better ignore directories of this form. They are misleading. |
| 5656 |
;; |
| 5657 |
*) searchdir=`cd "$searchdir" && pwd` |
| 5658 |
case "$searchdir" in |
| 5659 |
*/lib32 ) acl_libdirstem2=lib32 ;; |
| 5660 |
*/lib64 ) acl_libdirstem3=lib64 ;; |
| 5661 |
esac ;; |
| 5662 |
esac |
| 5663 |
fi |
| 5664 |
done |
| 5665 |
IFS="$acl_save_IFS" |
| 5666 |
if test $HOST_CPU_C_ABI_32BIT = yes; then |
| 5667 |
# 32-bit ABI. |
| 5668 |
acl_libdirstem3= |
| 5669 |
fi |
| 5670 |
if test $HOST_CPU_C_ABI_32BIT = no; then |
| 5671 |
# 64-bit ABI. |
| 5672 |
acl_libdirstem2= |
| 5673 |
fi |
| 5674 |
fi |
| 5675 |
;; |
| 5676 |
esac |
| 5677 |
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" |
| 5678 |
test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" |
| 5679 |
acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" |
| 5680 |
|
| 5681 |
fi |
| 5682 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 |
| 5683 |
printf "%s\n" "$acl_cv_libdirstems" >&6; } |
| 5684 |
acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` |
| 5685 |
acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` |
| 5686 |
acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` |
| 5687 |
|
| 5688 |
|
| 5689 |
|
| 5690 |
|
| 5691 |
|
| 5692 |
|
| 5693 |
|
| 5694 |
|
| 5695 |
|
| 5696 |
|
| 5697 |
|
| 5698 |
use_additional=yes |
| 5699 |
|
| 5700 |
acl_save_prefix="$prefix" |
| 5701 |
prefix="$acl_final_prefix" |
| 5702 |
acl_save_exec_prefix="$exec_prefix" |
| 5703 |
exec_prefix="$acl_final_exec_prefix" |
| 5704 |
|
| 5705 |
eval additional_includedir=\"$includedir\" |
| 5706 |
eval additional_libdir=\"$libdir\" |
| 5707 |
eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
| 5708 |
eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" |
| 5709 |
|
| 5710 |
exec_prefix="$acl_save_exec_prefix" |
| 5711 |
prefix="$acl_save_prefix" |
| 5712 |
|
| 5713 |
|
| 5714 |
# Check whether --with-libiconv-prefix was given. |
| 5715 |
if test ${with_libiconv_prefix+y} |
| 5716 |
then : |
| 5717 |
withval=$with_libiconv_prefix; |
| 5718 |
if test "X$withval" = "Xno"; then |
| 5719 |
use_additional=no |
| 5720 |
else |
| 5721 |
if test "X$withval" = "X"; then |
| 5722 |
|
| 5723 |
acl_save_prefix="$prefix" |
| 5724 |
prefix="$acl_final_prefix" |
| 5725 |
acl_save_exec_prefix="$exec_prefix" |
| 5726 |
exec_prefix="$acl_final_exec_prefix" |
| 5727 |
|
| 5728 |
eval additional_includedir=\"$includedir\" |
| 5729 |
eval additional_libdir=\"$libdir\" |
| 5730 |
eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
| 5731 |
eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" |
| 5732 |
|
| 5733 |
exec_prefix="$acl_save_exec_prefix" |
| 5734 |
prefix="$acl_save_prefix" |
| 5735 |
|
| 5736 |
else |
| 5737 |
additional_includedir="$withval/include" |
| 5738 |
additional_libdir="$withval/$acl_libdirstem" |
| 5739 |
additional_libdir2="$withval/$acl_libdirstem2" |
| 5740 |
additional_libdir3="$withval/$acl_libdirstem3" |
| 5741 |
fi |
| 5742 |
fi |
| 5743 |
|
| 5744 |
fi |
| 5745 |
|
| 5746 |
if test "X$additional_libdir2" = "X$additional_libdir"; then |
| 5747 |
additional_libdir2= |
| 5748 |
fi |
| 5749 |
if test "X$additional_libdir3" = "X$additional_libdir"; then |
| 5750 |
additional_libdir3= |
| 5751 |
fi |
| 5752 |
LIBICONV= |
| 5753 |
LTLIBICONV= |
| 5754 |
INCICONV= |
| 5755 |
LIBICONV_PREFIX= |
| 5756 |
HAVE_LIBICONV= |
| 5757 |
rpathdirs= |
| 5758 |
ltrpathdirs= |
| 5759 |
names_already_handled= |
| 5760 |
names_next_round='iconv ' |
| 5761 |
while test -n "$names_next_round"; do |
| 5762 |
names_this_round="$names_next_round" |
| 5763 |
names_next_round= |
| 5764 |
for name in $names_this_round; do |
| 5765 |
already_handled= |
| 5766 |
for n in $names_already_handled; do |
| 5767 |
if test "$n" = "$name"; then |
| 5768 |
already_handled=yes |
| 5769 |
break |
| 5770 |
fi |
| 5771 |
done |
| 5772 |
if test -z "$already_handled"; then |
| 5773 |
names_already_handled="$names_already_handled $name" |
| 5774 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 5775 |
eval value=\"\$HAVE_LIB$uppername\" |
| 5776 |
if test -n "$value"; then |
| 5777 |
if test "$value" = yes; then |
| 5778 |
eval value=\"\$LIB$uppername\" |
| 5779 |
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 5780 |
eval value=\"\$LTLIB$uppername\" |
| 5781 |
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 5782 |
else |
| 5783 |
: |
| 5784 |
fi |
| 5785 |
else |
| 5786 |
found_dir= |
| 5787 |
found_la= |
| 5788 |
found_so= |
| 5789 |
found_a= |
| 5790 |
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 5791 |
if test -n "$acl_shlibext"; then |
| 5792 |
shrext=".$acl_shlibext" # typically: shrext=.so |
| 5793 |
else |
| 5794 |
shrext= |
| 5795 |
fi |
| 5796 |
if test $use_additional = yes; then |
| 5797 |
for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do |
| 5798 |
if test "X$found_dir" = "X"; then |
| 5799 |
eval dir=\$$additional_libdir_variable |
| 5800 |
if test -n "$dir"; then |
| 5801 |
if test -n "$acl_shlibext"; then |
| 5802 |
if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
| 5803 |
found_dir="$dir" |
| 5804 |
found_so="$dir/$libname$shrext" |
| 5805 |
else |
| 5806 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 5807 |
ver=`(cd "$dir" && \ |
| 5808 |
for f in "$libname$shrext".*; do echo "$f"; done \ |
| 5809 |
| sed -e "s,^$libname$shrext\\\\.,," \ |
| 5810 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 5811 |
| sed 1q ) 2>/dev/null` |
| 5812 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
| 5813 |
found_dir="$dir" |
| 5814 |
found_so="$dir/$libname$shrext.$ver" |
| 5815 |
fi |
| 5816 |
else |
| 5817 |
eval library_names=\"$acl_library_names_spec\" |
| 5818 |
for f in $library_names; do |
| 5819 |
if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
| 5820 |
found_dir="$dir" |
| 5821 |
found_so="$dir/$f" |
| 5822 |
break |
| 5823 |
fi |
| 5824 |
done |
| 5825 |
fi |
| 5826 |
fi |
| 5827 |
fi |
| 5828 |
if test "X$found_dir" = "X"; then |
| 5829 |
if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
| 5830 |
found_dir="$dir" |
| 5831 |
found_a="$dir/$libname.$acl_libext" |
| 5832 |
fi |
| 5833 |
fi |
| 5834 |
if test "X$found_dir" != "X"; then |
| 5835 |
if test -f "$dir/$libname.la"; then |
| 5836 |
found_la="$dir/$libname.la" |
| 5837 |
fi |
| 5838 |
fi |
| 5839 |
fi |
| 5840 |
fi |
| 5841 |
done |
| 5842 |
fi |
| 5843 |
if test "X$found_dir" = "X"; then |
| 5844 |
for x in $LDFLAGS $LTLIBICONV; do |
| 5845 |
|
| 5846 |
acl_save_prefix="$prefix" |
| 5847 |
prefix="$acl_final_prefix" |
| 5848 |
acl_save_exec_prefix="$exec_prefix" |
| 5849 |
exec_prefix="$acl_final_exec_prefix" |
| 5850 |
eval x=\"$x\" |
| 5851 |
exec_prefix="$acl_save_exec_prefix" |
| 5852 |
prefix="$acl_save_prefix" |
| 5853 |
|
| 5854 |
case "$x" in |
| 5855 |
-L*) |
| 5856 |
dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 5857 |
if test -n "$acl_shlibext"; then |
| 5858 |
if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
| 5859 |
found_dir="$dir" |
| 5860 |
found_so="$dir/$libname$shrext" |
| 5861 |
else |
| 5862 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 5863 |
ver=`(cd "$dir" && \ |
| 5864 |
for f in "$libname$shrext".*; do echo "$f"; done \ |
| 5865 |
| sed -e "s,^$libname$shrext\\\\.,," \ |
| 5866 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 5867 |
| sed 1q ) 2>/dev/null` |
| 5868 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
| 5869 |
found_dir="$dir" |
| 5870 |
found_so="$dir/$libname$shrext.$ver" |
| 5871 |
fi |
| 5872 |
else |
| 5873 |
eval library_names=\"$acl_library_names_spec\" |
| 5874 |
for f in $library_names; do |
| 5875 |
if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
| 5876 |
found_dir="$dir" |
| 5877 |
found_so="$dir/$f" |
| 5878 |
break |
| 5879 |
fi |
| 5880 |
done |
| 5881 |
fi |
| 5882 |
fi |
| 5883 |
fi |
| 5884 |
if test "X$found_dir" = "X"; then |
| 5885 |
if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
| 5886 |
found_dir="$dir" |
| 5887 |
found_a="$dir/$libname.$acl_libext" |
| 5888 |
fi |
| 5889 |
fi |
| 5890 |
if test "X$found_dir" != "X"; then |
| 5891 |
if test -f "$dir/$libname.la"; then |
| 5892 |
found_la="$dir/$libname.la" |
| 5893 |
fi |
| 5894 |
fi |
| 5895 |
;; |
| 5896 |
esac |
| 5897 |
if test "X$found_dir" != "X"; then |
| 5898 |
break |
| 5899 |
fi |
| 5900 |
done |
| 5901 |
fi |
| 5902 |
if test "X$found_dir" != "X"; then |
| 5903 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 5904 |
if test "X$found_so" != "X"; then |
| 5905 |
if test "$enable_rpath" = no \ |
| 5906 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 5907 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem2" \ |
| 5908 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem3"; then |
| 5909 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 5910 |
else |
| 5911 |
haveit= |
| 5912 |
for x in $ltrpathdirs; do |
| 5913 |
if test "X$x" = "X$found_dir"; then |
| 5914 |
haveit=yes |
| 5915 |
break |
| 5916 |
fi |
| 5917 |
done |
| 5918 |
if test -z "$haveit"; then |
| 5919 |
ltrpathdirs="$ltrpathdirs $found_dir" |
| 5920 |
fi |
| 5921 |
if test "$acl_hardcode_direct" = yes; then |
| 5922 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 5923 |
else |
| 5924 |
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 5925 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 5926 |
haveit= |
| 5927 |
for x in $rpathdirs; do |
| 5928 |
if test "X$x" = "X$found_dir"; then |
| 5929 |
haveit=yes |
| 5930 |
break |
| 5931 |
fi |
| 5932 |
done |
| 5933 |
if test -z "$haveit"; then |
| 5934 |
rpathdirs="$rpathdirs $found_dir" |
| 5935 |
fi |
| 5936 |
else |
| 5937 |
haveit= |
| 5938 |
for x in $LDFLAGS $LIBICONV; do |
| 5939 |
|
| 5940 |
acl_save_prefix="$prefix" |
| 5941 |
prefix="$acl_final_prefix" |
| 5942 |
acl_save_exec_prefix="$exec_prefix" |
| 5943 |
exec_prefix="$acl_final_exec_prefix" |
| 5944 |
eval x=\"$x\" |
| 5945 |
exec_prefix="$acl_save_exec_prefix" |
| 5946 |
prefix="$acl_save_prefix" |
| 5947 |
|
| 5948 |
if test "X$x" = "X-L$found_dir"; then |
| 5949 |
haveit=yes |
| 5950 |
break |
| 5951 |
fi |
| 5952 |
done |
| 5953 |
if test -z "$haveit"; then |
| 5954 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 5955 |
fi |
| 5956 |
if test "$acl_hardcode_minus_L" != no; then |
| 5957 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 5958 |
else |
| 5959 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 5960 |
fi |
| 5961 |
fi |
| 5962 |
fi |
| 5963 |
fi |
| 5964 |
else |
| 5965 |
if test "X$found_a" != "X"; then |
| 5966 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 5967 |
else |
| 5968 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 5969 |
fi |
| 5970 |
fi |
| 5971 |
additional_includedir= |
| 5972 |
case "$found_dir" in |
| 5973 |
*/$acl_libdirstem | */$acl_libdirstem/) |
| 5974 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 5975 |
if test "$name" = 'iconv'; then |
| 5976 |
LIBICONV_PREFIX="$basedir" |
| 5977 |
fi |
| 5978 |
additional_includedir="$basedir/include" |
| 5979 |
;; |
| 5980 |
*/$acl_libdirstem2 | */$acl_libdirstem2/) |
| 5981 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 5982 |
if test "$name" = 'iconv'; then |
| 5983 |
LIBICONV_PREFIX="$basedir" |
| 5984 |
fi |
| 5985 |
additional_includedir="$basedir/include" |
| 5986 |
;; |
| 5987 |
*/$acl_libdirstem3 | */$acl_libdirstem3/) |
| 5988 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` |
| 5989 |
if test "$name" = 'iconv'; then |
| 5990 |
LIBICONV_PREFIX="$basedir" |
| 5991 |
fi |
| 5992 |
additional_includedir="$basedir/include" |
| 5993 |
;; |
| 5994 |
esac |
| 5995 |
if test "X$additional_includedir" != "X"; then |
| 5996 |
if test "X$additional_includedir" != "X/usr/include"; then |
| 5997 |
haveit= |
| 5998 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
| 5999 |
if test -n "$GCC"; then |
| 6000 |
case $host_os in |
| 6001 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 6002 |
esac |
| 6003 |
fi |
| 6004 |
fi |
| 6005 |
if test -z "$haveit"; then |
| 6006 |
for x in $CPPFLAGS $INCICONV; do |
| 6007 |
|
| 6008 |
acl_save_prefix="$prefix" |
| 6009 |
prefix="$acl_final_prefix" |
| 6010 |
acl_save_exec_prefix="$exec_prefix" |
| 6011 |
exec_prefix="$acl_final_exec_prefix" |
| 6012 |
eval x=\"$x\" |
| 6013 |
exec_prefix="$acl_save_exec_prefix" |
| 6014 |
prefix="$acl_save_prefix" |
| 6015 |
|
| 6016 |
if test "X$x" = "X-I$additional_includedir"; then |
| 6017 |
haveit=yes |
| 6018 |
break |
| 6019 |
fi |
| 6020 |
done |
| 6021 |
if test -z "$haveit"; then |
| 6022 |
if test -d "$additional_includedir"; then |
| 6023 |
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 6024 |
fi |
| 6025 |
fi |
| 6026 |
fi |
| 6027 |
fi |
| 6028 |
fi |
| 6029 |
if test -n "$found_la"; then |
| 6030 |
save_libdir="$libdir" |
| 6031 |
case "$found_la" in |
| 6032 |
*/* | *\\*) . "$found_la" ;; |
| 6033 |
*) . "./$found_la" ;; |
| 6034 |
esac |
| 6035 |
libdir="$save_libdir" |
| 6036 |
for dep in $dependency_libs; do |
| 6037 |
case "$dep" in |
| 6038 |
-L*) |
| 6039 |
dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 6040 |
if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ |
| 6041 |
&& test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ |
| 6042 |
&& test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then |
| 6043 |
haveit= |
| 6044 |
if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 6045 |
|| test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ |
| 6046 |
|| test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then |
| 6047 |
if test -n "$GCC"; then |
| 6048 |
case $host_os in |
| 6049 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 6050 |
esac |
| 6051 |
fi |
| 6052 |
fi |
| 6053 |
if test -z "$haveit"; then |
| 6054 |
haveit= |
| 6055 |
for x in $LDFLAGS $LIBICONV; do |
| 6056 |
|
| 6057 |
acl_save_prefix="$prefix" |
| 6058 |
prefix="$acl_final_prefix" |
| 6059 |
acl_save_exec_prefix="$exec_prefix" |
| 6060 |
exec_prefix="$acl_final_exec_prefix" |
| 6061 |
eval x=\"$x\" |
| 6062 |
exec_prefix="$acl_save_exec_prefix" |
| 6063 |
prefix="$acl_save_prefix" |
| 6064 |
|
| 6065 |
if test "X$x" = "X-L$dependency_libdir"; then |
| 6066 |
haveit=yes |
| 6067 |
break |
| 6068 |
fi |
| 6069 |
done |
| 6070 |
if test -z "$haveit"; then |
| 6071 |
if test -d "$dependency_libdir"; then |
| 6072 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" |
| 6073 |
fi |
| 6074 |
fi |
| 6075 |
haveit= |
| 6076 |
for x in $LDFLAGS $LTLIBICONV; do |
| 6077 |
|
| 6078 |
acl_save_prefix="$prefix" |
| 6079 |
prefix="$acl_final_prefix" |
| 6080 |
acl_save_exec_prefix="$exec_prefix" |
| 6081 |
exec_prefix="$acl_final_exec_prefix" |
| 6082 |
eval x=\"$x\" |
| 6083 |
exec_prefix="$acl_save_exec_prefix" |
| 6084 |
prefix="$acl_save_prefix" |
| 6085 |
|
| 6086 |
if test "X$x" = "X-L$dependency_libdir"; then |
| 6087 |
haveit=yes |
| 6088 |
break |
| 6089 |
fi |
| 6090 |
done |
| 6091 |
if test -z "$haveit"; then |
| 6092 |
if test -d "$dependency_libdir"; then |
| 6093 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" |
| 6094 |
fi |
| 6095 |
fi |
| 6096 |
fi |
| 6097 |
fi |
| 6098 |
;; |
| 6099 |
-R*) |
| 6100 |
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 6101 |
if test "$enable_rpath" != no; then |
| 6102 |
haveit= |
| 6103 |
for x in $rpathdirs; do |
| 6104 |
if test "X$x" = "X$dir"; then |
| 6105 |
haveit=yes |
| 6106 |
break |
| 6107 |
fi |
| 6108 |
done |
| 6109 |
if test -z "$haveit"; then |
| 6110 |
rpathdirs="$rpathdirs $dir" |
| 6111 |
fi |
| 6112 |
haveit= |
| 6113 |
for x in $ltrpathdirs; do |
| 6114 |
if test "X$x" = "X$dir"; then |
| 6115 |
haveit=yes |
| 6116 |
break |
| 6117 |
fi |
| 6118 |
done |
| 6119 |
if test -z "$haveit"; then |
| 6120 |
ltrpathdirs="$ltrpathdirs $dir" |
| 6121 |
fi |
| 6122 |
fi |
| 6123 |
;; |
| 6124 |
-l*) |
| 6125 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 6126 |
;; |
| 6127 |
*.la) |
| 6128 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 6129 |
;; |
| 6130 |
*) |
| 6131 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 6132 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 6133 |
;; |
| 6134 |
esac |
| 6135 |
done |
| 6136 |
fi |
| 6137 |
else |
| 6138 |
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 6139 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 6140 |
fi |
| 6141 |
fi |
| 6142 |
fi |
| 6143 |
done |
| 6144 |
done |
| 6145 |
if test "X$rpathdirs" != "X"; then |
| 6146 |
if test -n "$acl_hardcode_libdir_separator"; then |
| 6147 |
alldirs= |
| 6148 |
for found_dir in $rpathdirs; do |
| 6149 |
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 6150 |
done |
| 6151 |
acl_save_libdir="$libdir" |
| 6152 |
libdir="$alldirs" |
| 6153 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 6154 |
libdir="$acl_save_libdir" |
| 6155 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 6156 |
else |
| 6157 |
for found_dir in $rpathdirs; do |
| 6158 |
acl_save_libdir="$libdir" |
| 6159 |
libdir="$found_dir" |
| 6160 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 6161 |
libdir="$acl_save_libdir" |
| 6162 |
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 6163 |
done |
| 6164 |
fi |
| 6165 |
fi |
| 6166 |
if test "X$ltrpathdirs" != "X"; then |
| 6167 |
for found_dir in $ltrpathdirs; do |
| 6168 |
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 6169 |
done |
| 6170 |
fi |
| 6171 |
|
| 6172 |
|
| 6173 |
|
| 6174 |
|
| 6175 |
|
| 6176 |
|
| 6177 |
|
| 6178 |
|
| 6179 |
|
| 6180 |
|
| 6181 |
|
| 6182 |
|
| 6183 |
|
| 6184 |
|
| 6185 |
|
| 6186 |
|
| 6187 |
|
| 6188 |
|
| 6189 |
|
| 6190 |
|
| 6191 |
|
| 6192 |
|
| 6193 |
|
| 6194 |
|
| 6195 |
|
| 6196 |
|
| 6197 |
|
| 6198 |
|
| 6199 |
|
| 6200 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 6201 |
printf %s "checking for CFPreferencesCopyAppValue... " >&6; } |
| 6202 |
if test ${gt_cv_func_CFPreferencesCopyAppValue+y} |
| 6203 |
then : |
| 6204 |
printf %s "(cached) " >&6 |
| 6205 |
else $as_nop |
| 6206 |
gt_save_LIBS="$LIBS" |
| 6207 |
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 6208 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6209 |
/* end confdefs.h. */ |
| 6210 |
#include <CoreFoundation/CFPreferences.h> |
| 6211 |
int |
| 6212 |
main (void) |
| 6213 |
{ |
| 6214 |
CFPreferencesCopyAppValue(NULL, NULL) |
| 6215 |
; |
| 6216 |
return 0; |
| 6217 |
} |
| 6218 |
_ACEOF |
| 6219 |
if ac_fn_c_try_link "$LINENO" |
| 6220 |
then : |
| 6221 |
gt_cv_func_CFPreferencesCopyAppValue=yes |
| 6222 |
else $as_nop |
| 6223 |
gt_cv_func_CFPreferencesCopyAppValue=no |
| 6224 |
fi |
| 6225 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6226 |
conftest$ac_exeext conftest.$ac_ext |
| 6227 |
LIBS="$gt_save_LIBS" |
| 6228 |
fi |
| 6229 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 6230 |
printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 6231 |
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 6232 |
|
| 6233 |
printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 6234 |
|
| 6235 |
fi |
| 6236 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 |
| 6237 |
printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } |
| 6238 |
if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} |
| 6239 |
then : |
| 6240 |
printf %s "(cached) " >&6 |
| 6241 |
else $as_nop |
| 6242 |
gt_save_LIBS="$LIBS" |
| 6243 |
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 6244 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6245 |
/* end confdefs.h. */ |
| 6246 |
#include <CoreFoundation/CFLocale.h> |
| 6247 |
int |
| 6248 |
main (void) |
| 6249 |
{ |
| 6250 |
CFLocaleCopyPreferredLanguages(); |
| 6251 |
; |
| 6252 |
return 0; |
| 6253 |
} |
| 6254 |
_ACEOF |
| 6255 |
if ac_fn_c_try_link "$LINENO" |
| 6256 |
then : |
| 6257 |
gt_cv_func_CFLocaleCopyPreferredLanguages=yes |
| 6258 |
else $as_nop |
| 6259 |
gt_cv_func_CFLocaleCopyPreferredLanguages=no |
| 6260 |
fi |
| 6261 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6262 |
conftest$ac_exeext conftest.$ac_ext |
| 6263 |
LIBS="$gt_save_LIBS" |
| 6264 |
fi |
| 6265 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 |
| 6266 |
printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } |
| 6267 |
if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then |
| 6268 |
|
| 6269 |
printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h |
| 6270 |
|
| 6271 |
fi |
| 6272 |
INTL_MACOSX_LIBS= |
| 6273 |
if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ |
| 6274 |
|| test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then |
| 6275 |
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 6276 |
fi |
| 6277 |
|
| 6278 |
|
| 6279 |
|
| 6280 |
|
| 6281 |
|
| 6282 |
|
| 6283 |
LIBINTL= |
| 6284 |
LTLIBINTL= |
| 6285 |
POSUB= |
| 6286 |
|
| 6287 |
case " $gt_needs " in |
| 6288 |
*" need-formatstring-macros "*) gt_api_version=3 ;; |
| 6289 |
*" need-ngettext "*) gt_api_version=2 ;; |
| 6290 |
*) gt_api_version=1 ;; |
| 6291 |
esac |
| 6292 |
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| 6293 |
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| 6294 |
|
| 6295 |
if test "$USE_NLS" = "yes"; then |
| 6296 |
gt_use_preinstalled_gnugettext=no |
| 6297 |
|
| 6298 |
|
| 6299 |
if test $gt_api_version -ge 3; then |
| 6300 |
gt_revision_test_code=' |
| 6301 |
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 6302 |
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
| 6303 |
#endif |
| 6304 |
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
| 6305 |
' |
| 6306 |
else |
| 6307 |
gt_revision_test_code= |
| 6308 |
fi |
| 6309 |
if test $gt_api_version -ge 2; then |
| 6310 |
gt_expression_test_code=' + * ngettext ("", "", 0)' |
| 6311 |
else |
| 6312 |
gt_expression_test_code= |
| 6313 |
fi |
| 6314 |
|
| 6315 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
| 6316 |
printf %s "checking for GNU gettext in libc... " >&6; } |
| 6317 |
if eval test \${$gt_func_gnugettext_libc+y} |
| 6318 |
then : |
| 6319 |
printf %s "(cached) " >&6 |
| 6320 |
else $as_nop |
| 6321 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6322 |
/* end confdefs.h. */ |
| 6323 |
|
| 6324 |
#include <libintl.h> |
| 6325 |
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 6326 |
extern int _nl_msg_cat_cntr; |
| 6327 |
extern int *_nl_domain_bindings; |
| 6328 |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) |
| 6329 |
#else |
| 6330 |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 |
| 6331 |
#endif |
| 6332 |
$gt_revision_test_code |
| 6333 |
|
| 6334 |
int |
| 6335 |
main (void) |
| 6336 |
{ |
| 6337 |
|
| 6338 |
bindtextdomain ("", ""); |
| 6339 |
return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
| 6340 |
|
| 6341 |
; |
| 6342 |
return 0; |
| 6343 |
} |
| 6344 |
_ACEOF |
| 6345 |
if ac_fn_c_try_link "$LINENO" |
| 6346 |
then : |
| 6347 |
eval "$gt_func_gnugettext_libc=yes" |
| 6348 |
else $as_nop |
| 6349 |
eval "$gt_func_gnugettext_libc=no" |
| 6350 |
fi |
| 6351 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6352 |
conftest$ac_exeext conftest.$ac_ext |
| 6353 |
fi |
| 6354 |
eval ac_res=\$$gt_func_gnugettext_libc |
| 6355 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 6356 |
printf "%s\n" "$ac_res" >&6; } |
| 6357 |
|
| 6358 |
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
| 6359 |
|
| 6360 |
|
| 6361 |
|
| 6362 |
|
| 6363 |
|
| 6364 |
am_save_CPPFLAGS="$CPPFLAGS" |
| 6365 |
|
| 6366 |
for element in $INCICONV; do |
| 6367 |
haveit= |
| 6368 |
for x in $CPPFLAGS; do |
| 6369 |
|
| 6370 |
acl_save_prefix="$prefix" |
| 6371 |
prefix="$acl_final_prefix" |
| 6372 |
acl_save_exec_prefix="$exec_prefix" |
| 6373 |
exec_prefix="$acl_final_exec_prefix" |
| 6374 |
eval x=\"$x\" |
| 6375 |
exec_prefix="$acl_save_exec_prefix" |
| 6376 |
prefix="$acl_save_prefix" |
| 6377 |
|
| 6378 |
if test "X$x" = "X$element"; then |
| 6379 |
haveit=yes |
| 6380 |
break |
| 6381 |
fi |
| 6382 |
done |
| 6383 |
if test -z "$haveit"; then |
| 6384 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 6385 |
fi |
| 6386 |
done |
| 6387 |
|
| 6388 |
|
| 6389 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
| 6390 |
printf %s "checking for iconv... " >&6; } |
| 6391 |
if test ${am_cv_func_iconv+y} |
| 6392 |
then : |
| 6393 |
printf %s "(cached) " >&6 |
| 6394 |
else $as_nop |
| 6395 |
|
| 6396 |
am_cv_func_iconv="no, consider installing GNU libiconv" |
| 6397 |
am_cv_lib_iconv=no |
| 6398 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6399 |
/* end confdefs.h. */ |
| 6400 |
|
| 6401 |
#include <stdlib.h> |
| 6402 |
#include <iconv.h> |
| 6403 |
|
| 6404 |
int |
| 6405 |
main (void) |
| 6406 |
{ |
| 6407 |
iconv_t cd = iconv_open("",""); |
| 6408 |
iconv(cd,NULL,NULL,NULL,NULL); |
| 6409 |
iconv_close(cd); |
| 6410 |
; |
| 6411 |
return 0; |
| 6412 |
} |
| 6413 |
_ACEOF |
| 6414 |
if ac_fn_c_try_link "$LINENO" |
| 6415 |
then : |
| 6416 |
am_cv_func_iconv=yes |
| 6417 |
fi |
| 6418 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6419 |
conftest$ac_exeext conftest.$ac_ext |
| 6420 |
if test "$am_cv_func_iconv" != yes; then |
| 6421 |
am_save_LIBS="$LIBS" |
| 6422 |
LIBS="$LIBS $LIBICONV" |
| 6423 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6424 |
/* end confdefs.h. */ |
| 6425 |
|
| 6426 |
#include <stdlib.h> |
| 6427 |
#include <iconv.h> |
| 6428 |
|
| 6429 |
int |
| 6430 |
main (void) |
| 6431 |
{ |
| 6432 |
iconv_t cd = iconv_open("",""); |
| 6433 |
iconv(cd,NULL,NULL,NULL,NULL); |
| 6434 |
iconv_close(cd); |
| 6435 |
; |
| 6436 |
return 0; |
| 6437 |
} |
| 6438 |
_ACEOF |
| 6439 |
if ac_fn_c_try_link "$LINENO" |
| 6440 |
then : |
| 6441 |
am_cv_lib_iconv=yes |
| 6442 |
am_cv_func_iconv=yes |
| 6443 |
fi |
| 6444 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6445 |
conftest$ac_exeext conftest.$ac_ext |
| 6446 |
LIBS="$am_save_LIBS" |
| 6447 |
fi |
| 6448 |
|
| 6449 |
fi |
| 6450 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
| 6451 |
printf "%s\n" "$am_cv_func_iconv" >&6; } |
| 6452 |
if test "$am_cv_func_iconv" = yes; then |
| 6453 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 6454 |
printf %s "checking for working iconv... " >&6; } |
| 6455 |
if test ${am_cv_func_iconv_works+y} |
| 6456 |
then : |
| 6457 |
printf %s "(cached) " >&6 |
| 6458 |
else $as_nop |
| 6459 |
|
| 6460 |
am_save_LIBS="$LIBS" |
| 6461 |
if test $am_cv_lib_iconv = yes; then |
| 6462 |
LIBS="$LIBS $LIBICONV" |
| 6463 |
fi |
| 6464 |
am_cv_func_iconv_works=no |
| 6465 |
for ac_iconv_const in '' 'const'; do |
| 6466 |
if test "$cross_compiling" = yes |
| 6467 |
then : |
| 6468 |
case "$host_os" in |
| 6469 |
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 6470 |
*) am_cv_func_iconv_works="guessing yes" ;; |
| 6471 |
esac |
| 6472 |
else $as_nop |
| 6473 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6474 |
/* end confdefs.h. */ |
| 6475 |
|
| 6476 |
#include <iconv.h> |
| 6477 |
#include <string.h> |
| 6478 |
|
| 6479 |
#ifndef ICONV_CONST |
| 6480 |
# define ICONV_CONST $ac_iconv_const |
| 6481 |
#endif |
| 6482 |
|
| 6483 |
int |
| 6484 |
main (void) |
| 6485 |
{ |
| 6486 |
int result = 0; |
| 6487 |
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
| 6488 |
returns. */ |
| 6489 |
{ |
| 6490 |
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 6491 |
if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 6492 |
{ |
| 6493 |
static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ |
| 6494 |
char buf[10]; |
| 6495 |
ICONV_CONST char *inptr = input; |
| 6496 |
size_t inbytesleft = strlen (input); |
| 6497 |
char *outptr = buf; |
| 6498 |
size_t outbytesleft = sizeof (buf); |
| 6499 |
size_t res = iconv (cd_utf8_to_88591, |
| 6500 |
&inptr, &inbytesleft, |
| 6501 |
&outptr, &outbytesleft); |
| 6502 |
if (res == 0) |
| 6503 |
result |= 1; |
| 6504 |
iconv_close (cd_utf8_to_88591); |
| 6505 |
} |
| 6506 |
} |
| 6507 |
/* Test against Solaris 10 bug: Failures are not distinguishable from |
| 6508 |
successful returns. */ |
| 6509 |
{ |
| 6510 |
iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 6511 |
if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 6512 |
{ |
| 6513 |
static ICONV_CONST char input[] = "\263"; |
| 6514 |
char buf[10]; |
| 6515 |
ICONV_CONST char *inptr = input; |
| 6516 |
size_t inbytesleft = strlen (input); |
| 6517 |
char *outptr = buf; |
| 6518 |
size_t outbytesleft = sizeof (buf); |
| 6519 |
size_t res = iconv (cd_ascii_to_88591, |
| 6520 |
&inptr, &inbytesleft, |
| 6521 |
&outptr, &outbytesleft); |
| 6522 |
if (res == 0) |
| 6523 |
result |= 2; |
| 6524 |
iconv_close (cd_ascii_to_88591); |
| 6525 |
} |
| 6526 |
} |
| 6527 |
/* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 6528 |
{ |
| 6529 |
iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 6530 |
if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 6531 |
{ |
| 6532 |
static ICONV_CONST char input[] = "\304"; |
| 6533 |
static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 6534 |
ICONV_CONST char *inptr = input; |
| 6535 |
size_t inbytesleft = 1; |
| 6536 |
char *outptr = buf; |
| 6537 |
size_t outbytesleft = 1; |
| 6538 |
size_t res = iconv (cd_88591_to_utf8, |
| 6539 |
&inptr, &inbytesleft, |
| 6540 |
&outptr, &outbytesleft); |
| 6541 |
if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 6542 |
result |= 4; |
| 6543 |
iconv_close (cd_88591_to_utf8); |
| 6544 |
} |
| 6545 |
} |
| 6546 |
#if 0 /* This bug could be worked around by the caller. */ |
| 6547 |
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 6548 |
{ |
| 6549 |
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 6550 |
if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 6551 |
{ |
| 6552 |
static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 6553 |
char buf[50]; |
| 6554 |
ICONV_CONST char *inptr = input; |
| 6555 |
size_t inbytesleft = strlen (input); |
| 6556 |
char *outptr = buf; |
| 6557 |
size_t outbytesleft = sizeof (buf); |
| 6558 |
size_t res = iconv (cd_88591_to_utf8, |
| 6559 |
&inptr, &inbytesleft, |
| 6560 |
&outptr, &outbytesleft); |
| 6561 |
if ((int)res > 0) |
| 6562 |
result |= 8; |
| 6563 |
iconv_close (cd_88591_to_utf8); |
| 6564 |
} |
| 6565 |
} |
| 6566 |
#endif |
| 6567 |
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 6568 |
provided. */ |
| 6569 |
{ |
| 6570 |
/* Try standardized names. */ |
| 6571 |
iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); |
| 6572 |
/* Try IRIX, OSF/1 names. */ |
| 6573 |
iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); |
| 6574 |
/* Try AIX names. */ |
| 6575 |
iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); |
| 6576 |
/* Try HP-UX names. */ |
| 6577 |
iconv_t cd4 = iconv_open ("utf8", "eucJP"); |
| 6578 |
if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) |
| 6579 |
&& cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) |
| 6580 |
result |= 16; |
| 6581 |
if (cd1 != (iconv_t)(-1)) |
| 6582 |
iconv_close (cd1); |
| 6583 |
if (cd2 != (iconv_t)(-1)) |
| 6584 |
iconv_close (cd2); |
| 6585 |
if (cd3 != (iconv_t)(-1)) |
| 6586 |
iconv_close (cd3); |
| 6587 |
if (cd4 != (iconv_t)(-1)) |
| 6588 |
iconv_close (cd4); |
| 6589 |
} |
| 6590 |
return result; |
| 6591 |
|
| 6592 |
; |
| 6593 |
return 0; |
| 6594 |
} |
| 6595 |
_ACEOF |
| 6596 |
if ac_fn_c_try_run "$LINENO" |
| 6597 |
then : |
| 6598 |
am_cv_func_iconv_works=yes |
| 6599 |
fi |
| 6600 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6601 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6602 |
fi |
| 6603 |
|
| 6604 |
test "$am_cv_func_iconv_works" = no || break |
| 6605 |
done |
| 6606 |
LIBS="$am_save_LIBS" |
| 6607 |
|
| 6608 |
fi |
| 6609 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 6610 |
printf "%s\n" "$am_cv_func_iconv_works" >&6; } |
| 6611 |
case "$am_cv_func_iconv_works" in |
| 6612 |
*no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 6613 |
*) am_func_iconv=yes ;; |
| 6614 |
esac |
| 6615 |
else |
| 6616 |
am_func_iconv=no am_cv_lib_iconv=no |
| 6617 |
fi |
| 6618 |
if test "$am_func_iconv" = yes; then |
| 6619 |
|
| 6620 |
printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h |
| 6621 |
|
| 6622 |
fi |
| 6623 |
if test "$am_cv_lib_iconv" = yes; then |
| 6624 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
| 6625 |
printf %s "checking how to link with libiconv... " >&6; } |
| 6626 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
| 6627 |
printf "%s\n" "$LIBICONV" >&6; } |
| 6628 |
else |
| 6629 |
CPPFLAGS="$am_save_CPPFLAGS" |
| 6630 |
LIBICONV= |
| 6631 |
LTLIBICONV= |
| 6632 |
fi |
| 6633 |
|
| 6634 |
|
| 6635 |
|
| 6636 |
|
| 6637 |
|
| 6638 |
|
| 6639 |
|
| 6640 |
|
| 6641 |
|
| 6642 |
|
| 6643 |
use_additional=yes |
| 6644 |
|
| 6645 |
acl_save_prefix="$prefix" |
| 6646 |
prefix="$acl_final_prefix" |
| 6647 |
acl_save_exec_prefix="$exec_prefix" |
| 6648 |
exec_prefix="$acl_final_exec_prefix" |
| 6649 |
|
| 6650 |
eval additional_includedir=\"$includedir\" |
| 6651 |
eval additional_libdir=\"$libdir\" |
| 6652 |
eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
| 6653 |
eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" |
| 6654 |
|
| 6655 |
exec_prefix="$acl_save_exec_prefix" |
| 6656 |
prefix="$acl_save_prefix" |
| 6657 |
|
| 6658 |
|
| 6659 |
# Check whether --with-libintl-prefix was given. |
| 6660 |
if test ${with_libintl_prefix+y} |
| 6661 |
then : |
| 6662 |
withval=$with_libintl_prefix; |
| 6663 |
if test "X$withval" = "Xno"; then |
| 6664 |
use_additional=no |
| 6665 |
else |
| 6666 |
if test "X$withval" = "X"; then |
| 6667 |
|
| 6668 |
acl_save_prefix="$prefix" |
| 6669 |
prefix="$acl_final_prefix" |
| 6670 |
acl_save_exec_prefix="$exec_prefix" |
| 6671 |
exec_prefix="$acl_final_exec_prefix" |
| 6672 |
|
| 6673 |
eval additional_includedir=\"$includedir\" |
| 6674 |
eval additional_libdir=\"$libdir\" |
| 6675 |
eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" |
| 6676 |
eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" |
| 6677 |
|
| 6678 |
exec_prefix="$acl_save_exec_prefix" |
| 6679 |
prefix="$acl_save_prefix" |
| 6680 |
|
| 6681 |
else |
| 6682 |
additional_includedir="$withval/include" |
| 6683 |
additional_libdir="$withval/$acl_libdirstem" |
| 6684 |
additional_libdir2="$withval/$acl_libdirstem2" |
| 6685 |
additional_libdir3="$withval/$acl_libdirstem3" |
| 6686 |
fi |
| 6687 |
fi |
| 6688 |
|
| 6689 |
fi |
| 6690 |
|
| 6691 |
if test "X$additional_libdir2" = "X$additional_libdir"; then |
| 6692 |
additional_libdir2= |
| 6693 |
fi |
| 6694 |
if test "X$additional_libdir3" = "X$additional_libdir"; then |
| 6695 |
additional_libdir3= |
| 6696 |
fi |
| 6697 |
LIBINTL= |
| 6698 |
LTLIBINTL= |
| 6699 |
INCINTL= |
| 6700 |
LIBINTL_PREFIX= |
| 6701 |
HAVE_LIBINTL= |
| 6702 |
rpathdirs= |
| 6703 |
ltrpathdirs= |
| 6704 |
names_already_handled= |
| 6705 |
names_next_round='intl ' |
| 6706 |
while test -n "$names_next_round"; do |
| 6707 |
names_this_round="$names_next_round" |
| 6708 |
names_next_round= |
| 6709 |
for name in $names_this_round; do |
| 6710 |
already_handled= |
| 6711 |
for n in $names_already_handled; do |
| 6712 |
if test "$n" = "$name"; then |
| 6713 |
already_handled=yes |
| 6714 |
break |
| 6715 |
fi |
| 6716 |
done |
| 6717 |
if test -z "$already_handled"; then |
| 6718 |
names_already_handled="$names_already_handled $name" |
| 6719 |
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 6720 |
eval value=\"\$HAVE_LIB$uppername\" |
| 6721 |
if test -n "$value"; then |
| 6722 |
if test "$value" = yes; then |
| 6723 |
eval value=\"\$LIB$uppername\" |
| 6724 |
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 6725 |
eval value=\"\$LTLIB$uppername\" |
| 6726 |
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 6727 |
else |
| 6728 |
: |
| 6729 |
fi |
| 6730 |
else |
| 6731 |
found_dir= |
| 6732 |
found_la= |
| 6733 |
found_so= |
| 6734 |
found_a= |
| 6735 |
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 6736 |
if test -n "$acl_shlibext"; then |
| 6737 |
shrext=".$acl_shlibext" # typically: shrext=.so |
| 6738 |
else |
| 6739 |
shrext= |
| 6740 |
fi |
| 6741 |
if test $use_additional = yes; then |
| 6742 |
for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do |
| 6743 |
if test "X$found_dir" = "X"; then |
| 6744 |
eval dir=\$$additional_libdir_variable |
| 6745 |
if test -n "$dir"; then |
| 6746 |
if test -n "$acl_shlibext"; then |
| 6747 |
if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
| 6748 |
found_dir="$dir" |
| 6749 |
found_so="$dir/$libname$shrext" |
| 6750 |
else |
| 6751 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 6752 |
ver=`(cd "$dir" && \ |
| 6753 |
for f in "$libname$shrext".*; do echo "$f"; done \ |
| 6754 |
| sed -e "s,^$libname$shrext\\\\.,," \ |
| 6755 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 6756 |
| sed 1q ) 2>/dev/null` |
| 6757 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
| 6758 |
found_dir="$dir" |
| 6759 |
found_so="$dir/$libname$shrext.$ver" |
| 6760 |
fi |
| 6761 |
else |
| 6762 |
eval library_names=\"$acl_library_names_spec\" |
| 6763 |
for f in $library_names; do |
| 6764 |
if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
| 6765 |
found_dir="$dir" |
| 6766 |
found_so="$dir/$f" |
| 6767 |
break |
| 6768 |
fi |
| 6769 |
done |
| 6770 |
fi |
| 6771 |
fi |
| 6772 |
fi |
| 6773 |
if test "X$found_dir" = "X"; then |
| 6774 |
if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
| 6775 |
found_dir="$dir" |
| 6776 |
found_a="$dir/$libname.$acl_libext" |
| 6777 |
fi |
| 6778 |
fi |
| 6779 |
if test "X$found_dir" != "X"; then |
| 6780 |
if test -f "$dir/$libname.la"; then |
| 6781 |
found_la="$dir/$libname.la" |
| 6782 |
fi |
| 6783 |
fi |
| 6784 |
fi |
| 6785 |
fi |
| 6786 |
done |
| 6787 |
fi |
| 6788 |
if test "X$found_dir" = "X"; then |
| 6789 |
for x in $LDFLAGS $LTLIBINTL; do |
| 6790 |
|
| 6791 |
acl_save_prefix="$prefix" |
| 6792 |
prefix="$acl_final_prefix" |
| 6793 |
acl_save_exec_prefix="$exec_prefix" |
| 6794 |
exec_prefix="$acl_final_exec_prefix" |
| 6795 |
eval x=\"$x\" |
| 6796 |
exec_prefix="$acl_save_exec_prefix" |
| 6797 |
prefix="$acl_save_prefix" |
| 6798 |
|
| 6799 |
case "$x" in |
| 6800 |
-L*) |
| 6801 |
dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 6802 |
if test -n "$acl_shlibext"; then |
| 6803 |
if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then |
| 6804 |
found_dir="$dir" |
| 6805 |
found_so="$dir/$libname$shrext" |
| 6806 |
else |
| 6807 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 6808 |
ver=`(cd "$dir" && \ |
| 6809 |
for f in "$libname$shrext".*; do echo "$f"; done \ |
| 6810 |
| sed -e "s,^$libname$shrext\\\\.,," \ |
| 6811 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 6812 |
| sed 1q ) 2>/dev/null` |
| 6813 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then |
| 6814 |
found_dir="$dir" |
| 6815 |
found_so="$dir/$libname$shrext.$ver" |
| 6816 |
fi |
| 6817 |
else |
| 6818 |
eval library_names=\"$acl_library_names_spec\" |
| 6819 |
for f in $library_names; do |
| 6820 |
if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then |
| 6821 |
found_dir="$dir" |
| 6822 |
found_so="$dir/$f" |
| 6823 |
break |
| 6824 |
fi |
| 6825 |
done |
| 6826 |
fi |
| 6827 |
fi |
| 6828 |
fi |
| 6829 |
if test "X$found_dir" = "X"; then |
| 6830 |
if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then |
| 6831 |
found_dir="$dir" |
| 6832 |
found_a="$dir/$libname.$acl_libext" |
| 6833 |
fi |
| 6834 |
fi |
| 6835 |
if test "X$found_dir" != "X"; then |
| 6836 |
if test -f "$dir/$libname.la"; then |
| 6837 |
found_la="$dir/$libname.la" |
| 6838 |
fi |
| 6839 |
fi |
| 6840 |
;; |
| 6841 |
esac |
| 6842 |
if test "X$found_dir" != "X"; then |
| 6843 |
break |
| 6844 |
fi |
| 6845 |
done |
| 6846 |
fi |
| 6847 |
if test "X$found_dir" != "X"; then |
| 6848 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 6849 |
if test "X$found_so" != "X"; then |
| 6850 |
if test "$enable_rpath" = no \ |
| 6851 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 6852 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem2" \ |
| 6853 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem3"; then |
| 6854 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 6855 |
else |
| 6856 |
haveit= |
| 6857 |
for x in $ltrpathdirs; do |
| 6858 |
if test "X$x" = "X$found_dir"; then |
| 6859 |
haveit=yes |
| 6860 |
break |
| 6861 |
fi |
| 6862 |
done |
| 6863 |
if test -z "$haveit"; then |
| 6864 |
ltrpathdirs="$ltrpathdirs $found_dir" |
| 6865 |
fi |
| 6866 |
if test "$acl_hardcode_direct" = yes; then |
| 6867 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 6868 |
else |
| 6869 |
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 6870 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 6871 |
haveit= |
| 6872 |
for x in $rpathdirs; do |
| 6873 |
if test "X$x" = "X$found_dir"; then |
| 6874 |
haveit=yes |
| 6875 |
break |
| 6876 |
fi |
| 6877 |
done |
| 6878 |
if test -z "$haveit"; then |
| 6879 |
rpathdirs="$rpathdirs $found_dir" |
| 6880 |
fi |
| 6881 |
else |
| 6882 |
haveit= |
| 6883 |
for x in $LDFLAGS $LIBINTL; do |
| 6884 |
|
| 6885 |
acl_save_prefix="$prefix" |
| 6886 |
prefix="$acl_final_prefix" |
| 6887 |
acl_save_exec_prefix="$exec_prefix" |
| 6888 |
exec_prefix="$acl_final_exec_prefix" |
| 6889 |
eval x=\"$x\" |
| 6890 |
exec_prefix="$acl_save_exec_prefix" |
| 6891 |
prefix="$acl_save_prefix" |
| 6892 |
|
| 6893 |
if test "X$x" = "X-L$found_dir"; then |
| 6894 |
haveit=yes |
| 6895 |
break |
| 6896 |
fi |
| 6897 |
done |
| 6898 |
if test -z "$haveit"; then |
| 6899 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 6900 |
fi |
| 6901 |
if test "$acl_hardcode_minus_L" != no; then |
| 6902 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 6903 |
else |
| 6904 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 6905 |
fi |
| 6906 |
fi |
| 6907 |
fi |
| 6908 |
fi |
| 6909 |
else |
| 6910 |
if test "X$found_a" != "X"; then |
| 6911 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 6912 |
else |
| 6913 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 6914 |
fi |
| 6915 |
fi |
| 6916 |
additional_includedir= |
| 6917 |
case "$found_dir" in |
| 6918 |
*/$acl_libdirstem | */$acl_libdirstem/) |
| 6919 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 6920 |
if test "$name" = 'intl'; then |
| 6921 |
LIBINTL_PREFIX="$basedir" |
| 6922 |
fi |
| 6923 |
additional_includedir="$basedir/include" |
| 6924 |
;; |
| 6925 |
*/$acl_libdirstem2 | */$acl_libdirstem2/) |
| 6926 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 6927 |
if test "$name" = 'intl'; then |
| 6928 |
LIBINTL_PREFIX="$basedir" |
| 6929 |
fi |
| 6930 |
additional_includedir="$basedir/include" |
| 6931 |
;; |
| 6932 |
*/$acl_libdirstem3 | */$acl_libdirstem3/) |
| 6933 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` |
| 6934 |
if test "$name" = 'intl'; then |
| 6935 |
LIBINTL_PREFIX="$basedir" |
| 6936 |
fi |
| 6937 |
additional_includedir="$basedir/include" |
| 6938 |
;; |
| 6939 |
esac |
| 6940 |
if test "X$additional_includedir" != "X"; then |
| 6941 |
if test "X$additional_includedir" != "X/usr/include"; then |
| 6942 |
haveit= |
| 6943 |
if test "X$additional_includedir" = "X/usr/local/include"; then |
| 6944 |
if test -n "$GCC"; then |
| 6945 |
case $host_os in |
| 6946 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 6947 |
esac |
| 6948 |
fi |
| 6949 |
fi |
| 6950 |
if test -z "$haveit"; then |
| 6951 |
for x in $CPPFLAGS $INCINTL; do |
| 6952 |
|
| 6953 |
acl_save_prefix="$prefix" |
| 6954 |
prefix="$acl_final_prefix" |
| 6955 |
acl_save_exec_prefix="$exec_prefix" |
| 6956 |
exec_prefix="$acl_final_exec_prefix" |
| 6957 |
eval x=\"$x\" |
| 6958 |
exec_prefix="$acl_save_exec_prefix" |
| 6959 |
prefix="$acl_save_prefix" |
| 6960 |
|
| 6961 |
if test "X$x" = "X-I$additional_includedir"; then |
| 6962 |
haveit=yes |
| 6963 |
break |
| 6964 |
fi |
| 6965 |
done |
| 6966 |
if test -z "$haveit"; then |
| 6967 |
if test -d "$additional_includedir"; then |
| 6968 |
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 6969 |
fi |
| 6970 |
fi |
| 6971 |
fi |
| 6972 |
fi |
| 6973 |
fi |
| 6974 |
if test -n "$found_la"; then |
| 6975 |
save_libdir="$libdir" |
| 6976 |
case "$found_la" in |
| 6977 |
*/* | *\\*) . "$found_la" ;; |
| 6978 |
*) . "./$found_la" ;; |
| 6979 |
esac |
| 6980 |
libdir="$save_libdir" |
| 6981 |
for dep in $dependency_libs; do |
| 6982 |
case "$dep" in |
| 6983 |
-L*) |
| 6984 |
dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 6985 |
if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ |
| 6986 |
&& test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ |
| 6987 |
&& test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then |
| 6988 |
haveit= |
| 6989 |
if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 6990 |
|| test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ |
| 6991 |
|| test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then |
| 6992 |
if test -n "$GCC"; then |
| 6993 |
case $host_os in |
| 6994 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 6995 |
esac |
| 6996 |
fi |
| 6997 |
fi |
| 6998 |
if test -z "$haveit"; then |
| 6999 |
haveit= |
| 7000 |
for x in $LDFLAGS $LIBINTL; do |
| 7001 |
|
| 7002 |
acl_save_prefix="$prefix" |
| 7003 |
prefix="$acl_final_prefix" |
| 7004 |
acl_save_exec_prefix="$exec_prefix" |
| 7005 |
exec_prefix="$acl_final_exec_prefix" |
| 7006 |
eval x=\"$x\" |
| 7007 |
exec_prefix="$acl_save_exec_prefix" |
| 7008 |
prefix="$acl_save_prefix" |
| 7009 |
|
| 7010 |
if test "X$x" = "X-L$dependency_libdir"; then |
| 7011 |
haveit=yes |
| 7012 |
break |
| 7013 |
fi |
| 7014 |
done |
| 7015 |
if test -z "$haveit"; then |
| 7016 |
if test -d "$dependency_libdir"; then |
| 7017 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" |
| 7018 |
fi |
| 7019 |
fi |
| 7020 |
haveit= |
| 7021 |
for x in $LDFLAGS $LTLIBINTL; do |
| 7022 |
|
| 7023 |
acl_save_prefix="$prefix" |
| 7024 |
prefix="$acl_final_prefix" |
| 7025 |
acl_save_exec_prefix="$exec_prefix" |
| 7026 |
exec_prefix="$acl_final_exec_prefix" |
| 7027 |
eval x=\"$x\" |
| 7028 |
exec_prefix="$acl_save_exec_prefix" |
| 7029 |
prefix="$acl_save_prefix" |
| 7030 |
|
| 7031 |
if test "X$x" = "X-L$dependency_libdir"; then |
| 7032 |
haveit=yes |
| 7033 |
break |
| 7034 |
fi |
| 7035 |
done |
| 7036 |
if test -z "$haveit"; then |
| 7037 |
if test -d "$dependency_libdir"; then |
| 7038 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" |
| 7039 |
fi |
| 7040 |
fi |
| 7041 |
fi |
| 7042 |
fi |
| 7043 |
;; |
| 7044 |
-R*) |
| 7045 |
dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 7046 |
if test "$enable_rpath" != no; then |
| 7047 |
haveit= |
| 7048 |
for x in $rpathdirs; do |
| 7049 |
if test "X$x" = "X$dir"; then |
| 7050 |
haveit=yes |
| 7051 |
break |
| 7052 |
fi |
| 7053 |
done |
| 7054 |
if test -z "$haveit"; then |
| 7055 |
rpathdirs="$rpathdirs $dir" |
| 7056 |
fi |
| 7057 |
haveit= |
| 7058 |
for x in $ltrpathdirs; do |
| 7059 |
if test "X$x" = "X$dir"; then |
| 7060 |
haveit=yes |
| 7061 |
break |
| 7062 |
fi |
| 7063 |
done |
| 7064 |
if test -z "$haveit"; then |
| 7065 |
ltrpathdirs="$ltrpathdirs $dir" |
| 7066 |
fi |
| 7067 |
fi |
| 7068 |
;; |
| 7069 |
-l*) |
| 7070 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 7071 |
;; |
| 7072 |
*.la) |
| 7073 |
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 7074 |
;; |
| 7075 |
*) |
| 7076 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 7077 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 7078 |
;; |
| 7079 |
esac |
| 7080 |
done |
| 7081 |
fi |
| 7082 |
else |
| 7083 |
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 7084 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 7085 |
fi |
| 7086 |
fi |
| 7087 |
fi |
| 7088 |
done |
| 7089 |
done |
| 7090 |
if test "X$rpathdirs" != "X"; then |
| 7091 |
if test -n "$acl_hardcode_libdir_separator"; then |
| 7092 |
alldirs= |
| 7093 |
for found_dir in $rpathdirs; do |
| 7094 |
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 7095 |
done |
| 7096 |
acl_save_libdir="$libdir" |
| 7097 |
libdir="$alldirs" |
| 7098 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 7099 |
libdir="$acl_save_libdir" |
| 7100 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 7101 |
else |
| 7102 |
for found_dir in $rpathdirs; do |
| 7103 |
acl_save_libdir="$libdir" |
| 7104 |
libdir="$found_dir" |
| 7105 |
eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 7106 |
libdir="$acl_save_libdir" |
| 7107 |
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 7108 |
done |
| 7109 |
fi |
| 7110 |
fi |
| 7111 |
if test "X$ltrpathdirs" != "X"; then |
| 7112 |
for found_dir in $ltrpathdirs; do |
| 7113 |
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 7114 |
done |
| 7115 |
fi |
| 7116 |
|
| 7117 |
|
| 7118 |
|
| 7119 |
|
| 7120 |
|
| 7121 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
| 7122 |
printf %s "checking for GNU gettext in libintl... " >&6; } |
| 7123 |
if eval test \${$gt_func_gnugettext_libintl+y} |
| 7124 |
then : |
| 7125 |
printf %s "(cached) " >&6 |
| 7126 |
else $as_nop |
| 7127 |
gt_save_CPPFLAGS="$CPPFLAGS" |
| 7128 |
CPPFLAGS="$CPPFLAGS $INCINTL" |
| 7129 |
gt_save_LIBS="$LIBS" |
| 7130 |
LIBS="$LIBS $LIBINTL" |
| 7131 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7132 |
/* end confdefs.h. */ |
| 7133 |
|
| 7134 |
#include <libintl.h> |
| 7135 |
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 7136 |
extern int _nl_msg_cat_cntr; |
| 7137 |
extern |
| 7138 |
#ifdef __cplusplus |
| 7139 |
"C" |
| 7140 |
#endif |
| 7141 |
const char *_nl_expand_alias (const char *); |
| 7142 |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) |
| 7143 |
#else |
| 7144 |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 |
| 7145 |
#endif |
| 7146 |
$gt_revision_test_code |
| 7147 |
|
| 7148 |
int |
| 7149 |
main (void) |
| 7150 |
{ |
| 7151 |
|
| 7152 |
bindtextdomain ("", ""); |
| 7153 |
return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
| 7154 |
|
| 7155 |
; |
| 7156 |
return 0; |
| 7157 |
} |
| 7158 |
_ACEOF |
| 7159 |
if ac_fn_c_try_link "$LINENO" |
| 7160 |
then : |
| 7161 |
eval "$gt_func_gnugettext_libintl=yes" |
| 7162 |
else $as_nop |
| 7163 |
eval "$gt_func_gnugettext_libintl=no" |
| 7164 |
fi |
| 7165 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7166 |
conftest$ac_exeext conftest.$ac_ext |
| 7167 |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
| 7168 |
LIBS="$LIBS $LIBICONV" |
| 7169 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7170 |
/* end confdefs.h. */ |
| 7171 |
|
| 7172 |
#include <libintl.h> |
| 7173 |
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 7174 |
extern int _nl_msg_cat_cntr; |
| 7175 |
extern |
| 7176 |
#ifdef __cplusplus |
| 7177 |
"C" |
| 7178 |
#endif |
| 7179 |
const char *_nl_expand_alias (const char *); |
| 7180 |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) |
| 7181 |
#else |
| 7182 |
#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 |
| 7183 |
#endif |
| 7184 |
$gt_revision_test_code |
| 7185 |
|
| 7186 |
int |
| 7187 |
main (void) |
| 7188 |
{ |
| 7189 |
|
| 7190 |
bindtextdomain ("", ""); |
| 7191 |
return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION |
| 7192 |
|
| 7193 |
; |
| 7194 |
return 0; |
| 7195 |
} |
| 7196 |
_ACEOF |
| 7197 |
if ac_fn_c_try_link "$LINENO" |
| 7198 |
then : |
| 7199 |
LIBINTL="$LIBINTL $LIBICONV" |
| 7200 |
LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 7201 |
eval "$gt_func_gnugettext_libintl=yes" |
| 7202 |
|
| 7203 |
fi |
| 7204 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7205 |
conftest$ac_exeext conftest.$ac_ext |
| 7206 |
fi |
| 7207 |
CPPFLAGS="$gt_save_CPPFLAGS" |
| 7208 |
LIBS="$gt_save_LIBS" |
| 7209 |
fi |
| 7210 |
eval ac_res=\$$gt_func_gnugettext_libintl |
| 7211 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7212 |
printf "%s\n" "$ac_res" >&6; } |
| 7213 |
fi |
| 7214 |
|
| 7215 |
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
| 7216 |
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
| 7217 |
&& test "$PACKAGE" != gettext-runtime \ |
| 7218 |
&& test "$PACKAGE" != gettext-tools; }; then |
| 7219 |
gt_use_preinstalled_gnugettext=yes |
| 7220 |
else |
| 7221 |
LIBINTL= |
| 7222 |
LTLIBINTL= |
| 7223 |
INCINTL= |
| 7224 |
fi |
| 7225 |
|
| 7226 |
|
| 7227 |
|
| 7228 |
if test -n "$INTL_MACOSX_LIBS"; then |
| 7229 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 7230 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 7231 |
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 7232 |
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 7233 |
fi |
| 7234 |
fi |
| 7235 |
|
| 7236 |
if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 7237 |
|| test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 7238 |
|
| 7239 |
printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h |
| 7240 |
|
| 7241 |
else |
| 7242 |
USE_NLS=no |
| 7243 |
fi |
| 7244 |
fi |
| 7245 |
|
| 7246 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
| 7247 |
printf %s "checking whether to use NLS... " >&6; } |
| 7248 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
| 7249 |
printf "%s\n" "$USE_NLS" >&6; } |
| 7250 |
if test "$USE_NLS" = "yes"; then |
| 7251 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
| 7252 |
printf %s "checking where the gettext function comes from... " >&6; } |
| 7253 |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 7254 |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
| 7255 |
gt_source="external libintl" |
| 7256 |
else |
| 7257 |
gt_source="libc" |
| 7258 |
fi |
| 7259 |
else |
| 7260 |
gt_source="included intl directory" |
| 7261 |
fi |
| 7262 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
| 7263 |
printf "%s\n" "$gt_source" >&6; } |
| 7264 |
fi |
| 7265 |
|
| 7266 |
if test "$USE_NLS" = "yes"; then |
| 7267 |
|
| 7268 |
if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 7269 |
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
| 7270 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
| 7271 |
printf %s "checking how to link with libintl... " >&6; } |
| 7272 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
| 7273 |
printf "%s\n" "$LIBINTL" >&6; } |
| 7274 |
|
| 7275 |
for element in $INCINTL; do |
| 7276 |
haveit= |
| 7277 |
for x in $CPPFLAGS; do |
| 7278 |
|
| 7279 |
acl_save_prefix="$prefix" |
| 7280 |
prefix="$acl_final_prefix" |
| 7281 |
acl_save_exec_prefix="$exec_prefix" |
| 7282 |
exec_prefix="$acl_final_exec_prefix" |
| 7283 |
eval x=\"$x\" |
| 7284 |
exec_prefix="$acl_save_exec_prefix" |
| 7285 |
prefix="$acl_save_prefix" |
| 7286 |
|
| 7287 |
if test "X$x" = "X$element"; then |
| 7288 |
haveit=yes |
| 7289 |
break |
| 7290 |
fi |
| 7291 |
done |
| 7292 |
if test -z "$haveit"; then |
| 7293 |
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 7294 |
fi |
| 7295 |
done |
| 7296 |
|
| 7297 |
fi |
| 7298 |
|
| 7299 |
|
| 7300 |
printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h |
| 7301 |
|
| 7302 |
|
| 7303 |
printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h |
| 7304 |
|
| 7305 |
fi |
| 7306 |
|
| 7307 |
POSUB=po |
| 7308 |
fi |
| 7309 |
|
| 7310 |
|
| 7311 |
|
| 7312 |
INTLLIBS="$LIBINTL" |
| 7313 |
|
| 7314 |
|
| 7315 |
|
| 7316 |
|
| 7317 |
|
| 7318 |
|
| 7319 |
|
| 7320 |
# Checks for programs. |
| 7321 |
|
| 7322 |
# Checks for libraries. |
| 7323 |
|
| 7324 |
# Checks for header files. |
| 7325 |
|
| 7326 |
|
| 7327 |
ac_config_files="$ac_config_files Makefile po/Makefile.in" |
| 7328 |
|
| 7329 |
cat >confcache <<\_ACEOF |
| 7330 |
# This file is a shell script that caches the results of configure |
| 7331 |
# tests run on this system so they can be shared between configure |
| 7332 |
# scripts and configure runs, see configure's option --config-cache. |
| 7333 |
# It is not useful on other systems. If it contains results you don't |
| 7334 |
# want to keep, you may remove or edit it. |
| 7335 |
# |
| 7336 |
# config.status only pays attention to the cache file if you give it |
| 7337 |
# the --recheck option to rerun configure. |
| 7338 |
# |
| 7339 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 7340 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 7341 |
# following values. |
| 7342 |
|
| 7343 |
_ACEOF |
| 7344 |
|
| 7345 |
# The following way of writing the cache mishandles newlines in values, |
| 7346 |
# but we know of no workaround that is simple, portable, and efficient. |
| 7347 |
# So, we kill variables containing newlines. |
| 7348 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 7349 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 7350 |
( |
| 7351 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 7352 |
eval ac_val=\$$ac_var |
| 7353 |
case $ac_val in #( |
| 7354 |
*${as_nl}*) |
| 7355 |
case $ac_var in #( |
| 7356 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 7357 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 7358 |
esac |
| 7359 |
case $ac_var in #( |
| 7360 |
_ | IFS | as_nl) ;; #( |
| 7361 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 7362 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 7363 |
esac ;; |
| 7364 |
esac |
| 7365 |
done |
| 7366 |
|
| 7367 |
(set) 2>&1 | |
| 7368 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 7369 |
*${as_nl}ac_space=\ *) |
| 7370 |
# `set' does not quote correctly, so add quotes: double-quote |
| 7371 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 7372 |
sed -n \ |
| 7373 |
"s/'/'\\\\''/g; |
| 7374 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 7375 |
;; #( |
| 7376 |
*) |
| 7377 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7378 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 7379 |
;; |
| 7380 |
esac | |
| 7381 |
sort |
| 7382 |
) | |
| 7383 |
sed ' |
| 7384 |
/^ac_cv_env_/b end |
| 7385 |
t clear |
| 7386 |
:clear |
| 7387 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 7388 |
t end |
| 7389 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 7390 |
:end' >>confcache |
| 7391 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 7392 |
if test -w "$cache_file"; then |
| 7393 |
if test "x$cache_file" != "x/dev/null"; then |
| 7394 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 7395 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 7396 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 7397 |
cat confcache >"$cache_file" |
| 7398 |
else |
| 7399 |
case $cache_file in #( |
| 7400 |
*/* | ?:*) |
| 7401 |
mv -f confcache "$cache_file"$$ && |
| 7402 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 7403 |
*) |
| 7404 |
mv -f confcache "$cache_file" ;; |
| 7405 |
esac |
| 7406 |
fi |
| 7407 |
fi |
| 7408 |
else |
| 7409 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 7410 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 7411 |
fi |
| 7412 |
fi |
| 7413 |
rm -f confcache |
| 7414 |
|
| 7415 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7416 |
# Let make expand exec_prefix. |
| 7417 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 7418 |
|
| 7419 |
# Transform confdefs.h into DEFS. |
| 7420 |
# Protect against shell expansion while executing Makefile rules. |
| 7421 |
# Protect against Makefile macro expansion. |
| 7422 |
# |
| 7423 |
# If the first sed substitution is executed (which looks for macros that |
| 7424 |
# take arguments), then branch to the quote section. Otherwise, |
| 7425 |
# look for a macro that doesn't take arguments. |
| 7426 |
ac_script=' |
| 7427 |
:mline |
| 7428 |
/\\$/{ |
| 7429 |
N |
| 7430 |
s,\\\n,, |
| 7431 |
b mline |
| 7432 |
} |
| 7433 |
t clear |
| 7434 |
:clear |
| 7435 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 7436 |
t quote |
| 7437 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 7438 |
t quote |
| 7439 |
b any |
| 7440 |
:quote |
| 7441 |
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 7442 |
s/\[/\\&/g |
| 7443 |
s/\]/\\&/g |
| 7444 |
s/\$/$$/g |
| 7445 |
H |
| 7446 |
:any |
| 7447 |
${ |
| 7448 |
g |
| 7449 |
s/^\n// |
| 7450 |
s/\n/ /g |
| 7451 |
p |
| 7452 |
} |
| 7453 |
' |
| 7454 |
DEFS=`sed -n "$ac_script" confdefs.h` |
| 7455 |
|
| 7456 |
|
| 7457 |
ac_libobjs= |
| 7458 |
ac_ltlibobjs= |
| 7459 |
U= |
| 7460 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 7461 |
# 1. Remove the extension, and $U if already installed. |
| 7462 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 7463 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 7464 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 7465 |
# will be set to the directory where LIBOBJS objects are built. |
| 7466 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 7467 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 7468 |
done |
| 7469 |
LIBOBJS=$ac_libobjs |
| 7470 |
|
| 7471 |
LTLIBOBJS=$ac_ltlibobjs |
| 7472 |
|
| 7473 |
|
| 7474 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 7475 |
printf %s "checking that generated files are newer than configure... " >&6; } |
| 7476 |
if test -n "$am_sleep_pid"; then |
| 7477 |
# Hide warnings about reused PIDs. |
| 7478 |
wait $am_sleep_pid 2>/dev/null |
| 7479 |
fi |
| 7480 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 7481 |
printf "%s\n" "done" >&6; } |
| 7482 |
if test -n "$EXEEXT"; then |
| 7483 |
am__EXEEXT_TRUE= |
| 7484 |
am__EXEEXT_FALSE='#' |
| 7485 |
else |
| 7486 |
am__EXEEXT_TRUE='#' |
| 7487 |
am__EXEEXT_FALSE= |
| 7488 |
fi |
| 7489 |
|
| 7490 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 7491 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 7492 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7493 |
fi |
| 7494 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 7495 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 7496 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 7497 |
fi |
| 7498 |
|
| 7499 |
: "${CONFIG_STATUS=./config.status}" |
| 7500 |
ac_write_fail=0 |
| 7501 |
ac_clean_files_save=$ac_clean_files |
| 7502 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 7503 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 7504 |
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 7505 |
as_write_fail=0 |
| 7506 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 7507 |
#! $SHELL |
| 7508 |
# Generated by $as_me. |
| 7509 |
# Run this file to recreate the current configuration. |
| 7510 |
# Compiler output produced by configure, useful for debugging |
| 7511 |
# configure, is in config.log if it exists. |
| 7512 |
|
| 7513 |
debug=false |
| 7514 |
ac_cs_recheck=false |
| 7515 |
ac_cs_silent=false |
| 7516 |
|
| 7517 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 7518 |
export SHELL |
| 7519 |
_ASEOF |
| 7520 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 7521 |
## -------------------- ## |
| 7522 |
## M4sh Initialization. ## |
| 7523 |
## -------------------- ## |
| 7524 |
|
| 7525 |
# Be more Bourne compatible |
| 7526 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 7527 |
as_nop=: |
| 7528 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 7529 |
then : |
| 7530 |
emulate sh |
| 7531 |
NULLCMD=: |
| 7532 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 7533 |
# is contrary to our usage. Disable this feature. |
| 7534 |
alias -g '${1+"$@"}'='"$@"' |
| 7535 |
setopt NO_GLOB_SUBST |
| 7536 |
else $as_nop |
| 7537 |
case `(set -o) 2>/dev/null` in #( |
| 7538 |
*posix*) : |
| 7539 |
set -o posix ;; #( |
| 7540 |
*) : |
| 7541 |
;; |
| 7542 |
esac |
| 7543 |
fi |
| 7544 |
|
| 7545 |
|
| 7546 |
|
| 7547 |
# Reset variables that may have inherited troublesome values from |
| 7548 |
# the environment. |
| 7549 |
|
| 7550 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 7551 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 7552 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 7553 |
# Quoting is to prevent editors from complaining about space-tab. |
| 7554 |
as_nl=' |
| 7555 |
' |
| 7556 |
export as_nl |
| 7557 |
IFS=" "" $as_nl" |
| 7558 |
|
| 7559 |
PS1='$ ' |
| 7560 |
PS2='> ' |
| 7561 |
PS4='+ ' |
| 7562 |
|
| 7563 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 7564 |
LC_ALL=C |
| 7565 |
export LC_ALL |
| 7566 |
LANGUAGE=C |
| 7567 |
export LANGUAGE |
| 7568 |
|
| 7569 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 7570 |
# to be unset--not just set to an empty or harmless value--now, to |
| 7571 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 7572 |
# also avoids known problems related to "unset" and subshell syntax |
| 7573 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 7574 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 7575 |
do eval test \${$as_var+y} \ |
| 7576 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 7577 |
done |
| 7578 |
|
| 7579 |
# Ensure that fds 0, 1, and 2 are open. |
| 7580 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 7581 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 7582 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 7583 |
|
| 7584 |
# The user is always right. |
| 7585 |
if ${PATH_SEPARATOR+false} :; then |
| 7586 |
PATH_SEPARATOR=: |
| 7587 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 7588 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 7589 |
PATH_SEPARATOR=';' |
| 7590 |
} |
| 7591 |
fi |
| 7592 |
|
| 7593 |
|
| 7594 |
# Find who we are. Look in the path if we contain no directory separator. |
| 7595 |
as_myself= |
| 7596 |
case $0 in #(( |
| 7597 |
*[\\/]* ) as_myself=$0 ;; |
| 7598 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7599 |
for as_dir in $PATH |
| 7600 |
do |
| 7601 |
IFS=$as_save_IFS |
| 7602 |
case $as_dir in #((( |
| 7603 |
'') as_dir=./ ;; |
| 7604 |
*/) ;; |
| 7605 |
*) as_dir=$as_dir/ ;; |
| 7606 |
esac |
| 7607 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 7608 |
done |
| 7609 |
IFS=$as_save_IFS |
| 7610 |
|
| 7611 |
;; |
| 7612 |
esac |
| 7613 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 7614 |
# in which case we are not to be found in the path. |
| 7615 |
if test "x$as_myself" = x; then |
| 7616 |
as_myself=$0 |
| 7617 |
fi |
| 7618 |
if test ! -f "$as_myself"; then |
| 7619 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 7620 |
exit 1 |
| 7621 |
fi |
| 7622 |
|
| 7623 |
|
| 7624 |
|
| 7625 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 7626 |
# ---------------------------------------- |
| 7627 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 7628 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 7629 |
# script with STATUS, using 1 if that was 0. |
| 7630 |
as_fn_error () |
| 7631 |
{ |
| 7632 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 7633 |
if test "$4"; then |
| 7634 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 7635 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 7636 |
fi |
| 7637 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 7638 |
as_fn_exit $as_status |
| 7639 |
} # as_fn_error |
| 7640 |
|
| 7641 |
|
| 7642 |
|
| 7643 |
# as_fn_set_status STATUS |
| 7644 |
# ----------------------- |
| 7645 |
# Set $? to STATUS, without forking. |
| 7646 |
as_fn_set_status () |
| 7647 |
{ |
| 7648 |
return $1 |
| 7649 |
} # as_fn_set_status |
| 7650 |
|
| 7651 |
# as_fn_exit STATUS |
| 7652 |
# ----------------- |
| 7653 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 7654 |
as_fn_exit () |
| 7655 |
{ |
| 7656 |
set +e |
| 7657 |
as_fn_set_status $1 |
| 7658 |
exit $1 |
| 7659 |
} # as_fn_exit |
| 7660 |
|
| 7661 |
# as_fn_unset VAR |
| 7662 |
# --------------- |
| 7663 |
# Portably unset VAR. |
| 7664 |
as_fn_unset () |
| 7665 |
{ |
| 7666 |
{ eval $1=; unset $1;} |
| 7667 |
} |
| 7668 |
as_unset=as_fn_unset |
| 7669 |
|
| 7670 |
# as_fn_append VAR VALUE |
| 7671 |
# ---------------------- |
| 7672 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 7673 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 7674 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 7675 |
# implementations. |
| 7676 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 7677 |
then : |
| 7678 |
eval 'as_fn_append () |
| 7679 |
{ |
| 7680 |
eval $1+=\$2 |
| 7681 |
}' |
| 7682 |
else $as_nop |
| 7683 |
as_fn_append () |
| 7684 |
{ |
| 7685 |
eval $1=\$$1\$2 |
| 7686 |
} |
| 7687 |
fi # as_fn_append |
| 7688 |
|
| 7689 |
# as_fn_arith ARG... |
| 7690 |
# ------------------ |
| 7691 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 7692 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 7693 |
# must be portable across $(()) and expr. |
| 7694 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 7695 |
then : |
| 7696 |
eval 'as_fn_arith () |
| 7697 |
{ |
| 7698 |
as_val=$(( $* )) |
| 7699 |
}' |
| 7700 |
else $as_nop |
| 7701 |
as_fn_arith () |
| 7702 |
{ |
| 7703 |
as_val=`expr "$@" || test $? -eq 1` |
| 7704 |
} |
| 7705 |
fi # as_fn_arith |
| 7706 |
|
| 7707 |
|
| 7708 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 7709 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 7710 |
as_expr=expr |
| 7711 |
else |
| 7712 |
as_expr=false |
| 7713 |
fi |
| 7714 |
|
| 7715 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 7716 |
as_basename=basename |
| 7717 |
else |
| 7718 |
as_basename=false |
| 7719 |
fi |
| 7720 |
|
| 7721 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 7722 |
as_dirname=dirname |
| 7723 |
else |
| 7724 |
as_dirname=false |
| 7725 |
fi |
| 7726 |
|
| 7727 |
as_me=`$as_basename -- "$0" || |
| 7728 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 7729 |
X"$0" : 'X\(//\)$' \| \ |
| 7730 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 7731 |
printf "%s\n" X/"$0" | |
| 7732 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 7733 |
s//\1/ |
| 7734 |
q |
| 7735 |
} |
| 7736 |
/^X\/\(\/\/\)$/{ |
| 7737 |
s//\1/ |
| 7738 |
q |
| 7739 |
} |
| 7740 |
/^X\/\(\/\).*/{ |
| 7741 |
s//\1/ |
| 7742 |
q |
| 7743 |
} |
| 7744 |
s/.*/./; q'` |
| 7745 |
|
| 7746 |
# Avoid depending upon Character Ranges. |
| 7747 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 7748 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 7749 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 7750 |
as_cr_digits='0123456789' |
| 7751 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 7752 |
|
| 7753 |
|
| 7754 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 7755 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 7756 |
# for compatibility with existing Makefiles. |
| 7757 |
ECHO_C= ECHO_N= ECHO_T= |
| 7758 |
case `echo -n x` in #((((( |
| 7759 |
-n*) |
| 7760 |
case `echo 'xy\c'` in |
| 7761 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 7762 |
xy) ECHO_C='\c';; |
| 7763 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 7764 |
ECHO_T=' ';; |
| 7765 |
esac;; |
| 7766 |
*) |
| 7767 |
ECHO_N='-n';; |
| 7768 |
esac |
| 7769 |
|
| 7770 |
# For backward compatibility with old third-party macros, we provide |
| 7771 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 7772 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 7773 |
as_echo='printf %s\n' |
| 7774 |
as_echo_n='printf %s' |
| 7775 |
|
| 7776 |
rm -f conf$$ conf$$.exe conf$$.file |
| 7777 |
if test -d conf$$.dir; then |
| 7778 |
rm -f conf$$.dir/conf$$.file |
| 7779 |
else |
| 7780 |
rm -f conf$$.dir |
| 7781 |
mkdir conf$$.dir 2>/dev/null |
| 7782 |
fi |
| 7783 |
if (echo >conf$$.file) 2>/dev/null; then |
| 7784 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 7785 |
as_ln_s='ln -s' |
| 7786 |
# ... but there are two gotchas: |
| 7787 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 7788 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 7789 |
# In both cases, we have to default to `cp -pR'. |
| 7790 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 7791 |
as_ln_s='cp -pR' |
| 7792 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 7793 |
as_ln_s=ln |
| 7794 |
else |
| 7795 |
as_ln_s='cp -pR' |
| 7796 |
fi |
| 7797 |
else |
| 7798 |
as_ln_s='cp -pR' |
| 7799 |
fi |
| 7800 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 7801 |
rmdir conf$$.dir 2>/dev/null |
| 7802 |
|
| 7803 |
|
| 7804 |
# as_fn_mkdir_p |
| 7805 |
# ------------- |
| 7806 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 7807 |
as_fn_mkdir_p () |
| 7808 |
{ |
| 7809 |
|
| 7810 |
case $as_dir in #( |
| 7811 |
-*) as_dir=./$as_dir;; |
| 7812 |
esac |
| 7813 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 7814 |
as_dirs= |
| 7815 |
while :; do |
| 7816 |
case $as_dir in #( |
| 7817 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 7818 |
*) as_qdir=$as_dir;; |
| 7819 |
esac |
| 7820 |
as_dirs="'$as_qdir' $as_dirs" |
| 7821 |
as_dir=`$as_dirname -- "$as_dir" || |
| 7822 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7823 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 7824 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 7825 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 7826 |
printf "%s\n" X"$as_dir" | |
| 7827 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 7828 |
s//\1/ |
| 7829 |
q |
| 7830 |
} |
| 7831 |
/^X\(\/\/\)[^/].*/{ |
| 7832 |
s//\1/ |
| 7833 |
q |
| 7834 |
} |
| 7835 |
/^X\(\/\/\)$/{ |
| 7836 |
s//\1/ |
| 7837 |
q |
| 7838 |
} |
| 7839 |
/^X\(\/\).*/{ |
| 7840 |
s//\1/ |
| 7841 |
q |
| 7842 |
} |
| 7843 |
s/.*/./; q'` |
| 7844 |
test -d "$as_dir" && break |
| 7845 |
done |
| 7846 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 7847 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 7848 |
|
| 7849 |
|
| 7850 |
} # as_fn_mkdir_p |
| 7851 |
if mkdir -p . 2>/dev/null; then |
| 7852 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 7853 |
else |
| 7854 |
test -d ./-p && rmdir ./-p |
| 7855 |
as_mkdir_p=false |
| 7856 |
fi |
| 7857 |
|
| 7858 |
|
| 7859 |
# as_fn_executable_p FILE |
| 7860 |
# ----------------------- |
| 7861 |
# Test if FILE is an executable regular file. |
| 7862 |
as_fn_executable_p () |
| 7863 |
{ |
| 7864 |
test -f "$1" && test -x "$1" |
| 7865 |
} # as_fn_executable_p |
| 7866 |
as_test_x='test -x' |
| 7867 |
as_executable_p=as_fn_executable_p |
| 7868 |
|
| 7869 |
# Sed expression to map a string onto a valid CPP name. |
| 7870 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 7871 |
|
| 7872 |
# Sed expression to map a string onto a valid variable name. |
| 7873 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 7874 |
|
| 7875 |
|
| 7876 |
exec 6>&1 |
| 7877 |
## ----------------------------------- ## |
| 7878 |
## Main body of $CONFIG_STATUS script. ## |
| 7879 |
## ----------------------------------- ## |
| 7880 |
_ASEOF |
| 7881 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 7882 |
|
| 7883 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7884 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 7885 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 7886 |
# values after options handling. |
| 7887 |
ac_log=" |
| 7888 |
This file was extended by ganyremote $as_me 8.1.1, which was |
| 7889 |
generated by GNU Autoconf 2.71. Invocation command line was |
| 7890 |
|
| 7891 |
CONFIG_FILES = $CONFIG_FILES |
| 7892 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 7893 |
CONFIG_LINKS = $CONFIG_LINKS |
| 7894 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 7895 |
$ $0 $@ |
| 7896 |
|
| 7897 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 7898 |
" |
| 7899 |
|
| 7900 |
_ACEOF |
| 7901 |
|
| 7902 |
case $ac_config_files in *" |
| 7903 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 7904 |
esac |
| 7905 |
|
| 7906 |
|
| 7907 |
|
| 7908 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7909 |
# Files that config.status was made for. |
| 7910 |
config_files="$ac_config_files" |
| 7911 |
config_commands="$ac_config_commands" |
| 7912 |
|
| 7913 |
_ACEOF |
| 7914 |
|
| 7915 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7916 |
ac_cs_usage="\ |
| 7917 |
\`$as_me' instantiates files and other configuration actions |
| 7918 |
from templates according to the current configuration. Unless the files |
| 7919 |
and actions are specified as TAGs, all are instantiated by default. |
| 7920 |
|
| 7921 |
Usage: $0 [OPTION]... [TAG]... |
| 7922 |
|
| 7923 |
-h, --help print this help, then exit |
| 7924 |
-V, --version print version number and configuration settings, then exit |
| 7925 |
--config print configuration, then exit |
| 7926 |
-q, --quiet, --silent |
| 7927 |
do not print progress messages |
| 7928 |
-d, --debug don't remove temporary files |
| 7929 |
--recheck update $as_me by reconfiguring in the same conditions |
| 7930 |
--file=FILE[:TEMPLATE] |
| 7931 |
instantiate the configuration file FILE |
| 7932 |
|
| 7933 |
Configuration files: |
| 7934 |
$config_files |
| 7935 |
|
| 7936 |
Configuration commands: |
| 7937 |
$config_commands |
| 7938 |
|
| 7939 |
Report bugs to the package provider." |
| 7940 |
|
| 7941 |
_ACEOF |
| 7942 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 7943 |
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 7944 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 7945 |
ac_cs_config='$ac_cs_config_escaped' |
| 7946 |
ac_cs_version="\\ |
| 7947 |
ganyremote config.status 8.1.1 |
| 7948 |
configured by $0, generated by GNU Autoconf 2.71, |
| 7949 |
with options \\"\$ac_cs_config\\" |
| 7950 |
|
| 7951 |
Copyright (C) 2021 Free Software Foundation, Inc. |
| 7952 |
This config.status script is free software; the Free Software Foundation |
| 7953 |
gives unlimited permission to copy, distribute and modify it." |
| 7954 |
|
| 7955 |
ac_pwd='$ac_pwd' |
| 7956 |
srcdir='$srcdir' |
| 7957 |
INSTALL='$INSTALL' |
| 7958 |
MKDIR_P='$MKDIR_P' |
| 7959 |
AWK='$AWK' |
| 7960 |
test -n "\$AWK" || AWK=awk |
| 7961 |
_ACEOF |
| 7962 |
|
| 7963 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 7964 |
# The default lists apply if the user does not specify any file. |
| 7965 |
ac_need_defaults=: |
| 7966 |
while test $# != 0 |
| 7967 |
do |
| 7968 |
case $1 in |
| 7969 |
--*=?*) |
| 7970 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 7971 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 7972 |
ac_shift=: |
| 7973 |
;; |
| 7974 |
--*=) |
| 7975 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 7976 |
ac_optarg= |
| 7977 |
ac_shift=: |
| 7978 |
;; |
| 7979 |
*) |
| 7980 |
ac_option=$1 |
| 7981 |
ac_optarg=$2 |
| 7982 |
ac_shift=shift |
| 7983 |
;; |
| 7984 |
esac |
| 7985 |
|
| 7986 |
case $ac_option in |
| 7987 |
# Handling of the options. |
| 7988 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 7989 |
ac_cs_recheck=: ;; |
| 7990 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 7991 |
printf "%s\n" "$ac_cs_version"; exit ;; |
| 7992 |
--config | --confi | --conf | --con | --co | --c ) |
| 7993 |
printf "%s\n" "$ac_cs_config"; exit ;; |
| 7994 |
--debug | --debu | --deb | --de | --d | -d ) |
| 7995 |
debug=: ;; |
| 7996 |
--file | --fil | --fi | --f ) |
| 7997 |
$ac_shift |
| 7998 |
case $ac_optarg in |
| 7999 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 8000 |
'') as_fn_error $? "missing file argument" ;; |
| 8001 |
esac |
| 8002 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 8003 |
ac_need_defaults=false;; |
| 8004 |
--he | --h | --help | --hel | -h ) |
| 8005 |
printf "%s\n" "$ac_cs_usage"; exit ;; |
| 8006 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 8007 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 8008 |
ac_cs_silent=: ;; |
| 8009 |
|
| 8010 |
# This is an error. |
| 8011 |
-*) as_fn_error $? "unrecognized option: \`$1' |
| 8012 |
Try \`$0 --help' for more information." ;; |
| 8013 |
|
| 8014 |
*) as_fn_append ac_config_targets " $1" |
| 8015 |
ac_need_defaults=false ;; |
| 8016 |
|
| 8017 |
esac |
| 8018 |
shift |
| 8019 |
done |
| 8020 |
|
| 8021 |
ac_configure_extra_args= |
| 8022 |
|
| 8023 |
if $ac_cs_silent; then |
| 8024 |
exec 6>/dev/null |
| 8025 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 8026 |
fi |
| 8027 |
|
| 8028 |
_ACEOF |
| 8029 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8030 |
if \$ac_cs_recheck; then |
| 8031 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 8032 |
shift |
| 8033 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 8034 |
CONFIG_SHELL='$SHELL' |
| 8035 |
export CONFIG_SHELL |
| 8036 |
exec "\$@" |
| 8037 |
fi |
| 8038 |
|
| 8039 |
_ACEOF |
| 8040 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8041 |
exec 5>>config.log |
| 8042 |
{ |
| 8043 |
echo |
| 8044 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 8045 |
## Running $as_me. ## |
| 8046 |
_ASBOX |
| 8047 |
printf "%s\n" "$ac_log" |
| 8048 |
} >&5 |
| 8049 |
|
| 8050 |
_ACEOF |
| 8051 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8052 |
# |
| 8053 |
# INIT-COMMANDS |
| 8054 |
# |
| 8055 |
# Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 8056 |
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. |
| 8057 |
OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" |
| 8058 |
# Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 8059 |
LINGUAS="${LINGUAS-%UNSET%}" |
| 8060 |
|
| 8061 |
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 8062 |
|
| 8063 |
_ACEOF |
| 8064 |
|
| 8065 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8066 |
|
| 8067 |
# Handling of arguments. |
| 8068 |
for ac_config_target in $ac_config_targets |
| 8069 |
do |
| 8070 |
case $ac_config_target in |
| 8071 |
"po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
| 8072 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 8073 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 8074 |
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
| 8075 |
|
| 8076 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 8077 |
esac |
| 8078 |
done |
| 8079 |
|
| 8080 |
|
| 8081 |
# If the user did not use the arguments to specify the items to instantiate, |
| 8082 |
# then the envvar interface is used. Set only those that are not. |
| 8083 |
# We use the long form for the default assignment because of an extremely |
| 8084 |
# bizarre bug on SunOS 4.1.3. |
| 8085 |
if $ac_need_defaults; then |
| 8086 |
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 8087 |
test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 8088 |
fi |
| 8089 |
|
| 8090 |
# Have a temporary directory for convenience. Make it in the build tree |
| 8091 |
# simply because there is no reason against having it here, and in addition, |
| 8092 |
# creating and moving files from /tmp can sometimes cause problems. |
| 8093 |
# Hook for its removal unless debugging. |
| 8094 |
# Note that there is a small window in which the directory will not be cleaned: |
| 8095 |
# after its creation but before its name has been assigned to `$tmp'. |
| 8096 |
$debug || |
| 8097 |
{ |
| 8098 |
tmp= ac_tmp= |
| 8099 |
trap 'exit_status=$? |
| 8100 |
: "${ac_tmp:=$tmp}" |
| 8101 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 8102 |
' 0 |
| 8103 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 8104 |
} |
| 8105 |
# Create a (secure) tmp directory for tmp files. |
| 8106 |
|
| 8107 |
{ |
| 8108 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 8109 |
test -d "$tmp" |
| 8110 |
} || |
| 8111 |
{ |
| 8112 |
tmp=./conf$$-$RANDOM |
| 8113 |
(umask 077 && mkdir "$tmp") |
| 8114 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 8115 |
ac_tmp=$tmp |
| 8116 |
|
| 8117 |
# Set up the scripts for CONFIG_FILES section. |
| 8118 |
# No need to generate them if there are no CONFIG_FILES. |
| 8119 |
# This happens for instance with `./config.status config.h'. |
| 8120 |
if test -n "$CONFIG_FILES"; then |
| 8121 |
|
| 8122 |
|
| 8123 |
ac_cr=`echo X | tr X '\015'` |
| 8124 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 8125 |
# But we know of no other shell where ac_cr would be empty at this |
| 8126 |
# point, so we can use a bashism as a fallback. |
| 8127 |
if test "x$ac_cr" = x; then |
| 8128 |
eval ac_cr=\$\'\\r\' |
| 8129 |
fi |
| 8130 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 8131 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 8132 |
ac_cs_awk_cr='\\r' |
| 8133 |
else |
| 8134 |
ac_cs_awk_cr=$ac_cr |
| 8135 |
fi |
| 8136 |
|
| 8137 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 8138 |
_ACEOF |
| 8139 |
|
| 8140 |
|
| 8141 |
{ |
| 8142 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 8143 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 8144 |
echo "_ACEOF" |
| 8145 |
} >conf$$subs.sh || |
| 8146 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 8147 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 8148 |
ac_delim='%!_!# ' |
| 8149 |
for ac_last_try in false false false false false :; do |
| 8150 |
. ./conf$$subs.sh || |
| 8151 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 8152 |
|
| 8153 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 8154 |
if test $ac_delim_n = $ac_delim_num; then |
| 8155 |
break |
| 8156 |
elif $ac_last_try; then |
| 8157 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 8158 |
else |
| 8159 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 8160 |
fi |
| 8161 |
done |
| 8162 |
rm -f conf$$subs.sh |
| 8163 |
|
| 8164 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8165 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 8166 |
_ACEOF |
| 8167 |
sed -n ' |
| 8168 |
h |
| 8169 |
s/^/S["/; s/!.*/"]=/ |
| 8170 |
p |
| 8171 |
g |
| 8172 |
s/^[^!]*!// |
| 8173 |
:repl |
| 8174 |
t repl |
| 8175 |
s/'"$ac_delim"'$// |
| 8176 |
t delim |
| 8177 |
:nl |
| 8178 |
h |
| 8179 |
s/\(.\{148\}\)..*/\1/ |
| 8180 |
t more1 |
| 8181 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 8182 |
p |
| 8183 |
n |
| 8184 |
b repl |
| 8185 |
:more1 |
| 8186 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8187 |
p |
| 8188 |
g |
| 8189 |
s/.\{148\}// |
| 8190 |
t nl |
| 8191 |
:delim |
| 8192 |
h |
| 8193 |
s/\(.\{148\}\)..*/\1/ |
| 8194 |
t more2 |
| 8195 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 8196 |
p |
| 8197 |
b |
| 8198 |
:more2 |
| 8199 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 8200 |
p |
| 8201 |
g |
| 8202 |
s/.\{148\}// |
| 8203 |
t delim |
| 8204 |
' <conf$$subs.awk | sed ' |
| 8205 |
/^[^""]/{ |
| 8206 |
N |
| 8207 |
s/\n// |
| 8208 |
} |
| 8209 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 8210 |
rm -f conf$$subs.awk |
| 8211 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8212 |
_ACAWK |
| 8213 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 8214 |
for (key in S) S_is_set[key] = 1 |
| 8215 |
FS = "" |
| 8216 |
|
| 8217 |
} |
| 8218 |
{ |
| 8219 |
line = $ 0 |
| 8220 |
nfields = split(line, field, "@") |
| 8221 |
substed = 0 |
| 8222 |
len = length(field[1]) |
| 8223 |
for (i = 2; i < nfields; i++) { |
| 8224 |
key = field[i] |
| 8225 |
keylen = length(key) |
| 8226 |
if (S_is_set[key]) { |
| 8227 |
value = S[key] |
| 8228 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 8229 |
len += length(value) + length(field[++i]) |
| 8230 |
substed = 1 |
| 8231 |
} else |
| 8232 |
len += 1 + keylen |
| 8233 |
} |
| 8234 |
|
| 8235 |
print line |
| 8236 |
} |
| 8237 |
|
| 8238 |
_ACAWK |
| 8239 |
_ACEOF |
| 8240 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8241 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 8242 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 8243 |
else |
| 8244 |
cat |
| 8245 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 8246 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 8247 |
_ACEOF |
| 8248 |
|
| 8249 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 8250 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 8251 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 8252 |
# (actually we leave an empty line to preserve line numbers). |
| 8253 |
if test "x$srcdir" = x.; then |
| 8254 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 8255 |
h |
| 8256 |
s/// |
| 8257 |
s/^/:/ |
| 8258 |
s/[ ]*$/:/ |
| 8259 |
s/:\$(srcdir):/:/g |
| 8260 |
s/:\${srcdir}:/:/g |
| 8261 |
s/:@srcdir@:/:/g |
| 8262 |
s/^:*// |
| 8263 |
s/:*$// |
| 8264 |
x |
| 8265 |
s/\(=[ ]*\).*/\1/ |
| 8266 |
G |
| 8267 |
s/\n// |
| 8268 |
s/^[^=]*=[ ]*$// |
| 8269 |
}' |
| 8270 |
fi |
| 8271 |
|
| 8272 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8273 |
fi # test -n "$CONFIG_FILES" |
| 8274 |
|
| 8275 |
|
| 8276 |
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
| 8277 |
shift |
| 8278 |
for ac_tag |
| 8279 |
do |
| 8280 |
case $ac_tag in |
| 8281 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 8282 |
esac |
| 8283 |
case $ac_mode$ac_tag in |
| 8284 |
:[FHL]*:*);; |
| 8285 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 8286 |
:[FH]-) ac_tag=-:-;; |
| 8287 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 8288 |
esac |
| 8289 |
ac_save_IFS=$IFS |
| 8290 |
IFS=: |
| 8291 |
set x $ac_tag |
| 8292 |
IFS=$ac_save_IFS |
| 8293 |
shift |
| 8294 |
ac_file=$1 |
| 8295 |
shift |
| 8296 |
|
| 8297 |
case $ac_mode in |
| 8298 |
:L) ac_source=$1;; |
| 8299 |
:[FH]) |
| 8300 |
ac_file_inputs= |
| 8301 |
for ac_f |
| 8302 |
do |
| 8303 |
case $ac_f in |
| 8304 |
-) ac_f="$ac_tmp/stdin";; |
| 8305 |
*) # Look for the file first in the build tree, then in the source tree |
| 8306 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 8307 |
# because $ac_f cannot contain `:'. |
| 8308 |
test -f "$ac_f" || |
| 8309 |
case $ac_f in |
| 8310 |
[\\/$]*) false;; |
| 8311 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 8312 |
esac || |
| 8313 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 8314 |
esac |
| 8315 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 8316 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 8317 |
done |
| 8318 |
|
| 8319 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 8320 |
# use $as_me), people would be surprised to read: |
| 8321 |
# /* config.h. Generated by config.status. */ |
| 8322 |
configure_input='Generated from '` |
| 8323 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 8324 |
`' by configure.' |
| 8325 |
if test x"$ac_file" != x-; then |
| 8326 |
configure_input="$ac_file. $configure_input" |
| 8327 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 8328 |
printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 8329 |
fi |
| 8330 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 8331 |
case $configure_input in #( |
| 8332 |
*\&* | *\|* | *\\* ) |
| 8333 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 8334 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 8335 |
*) ac_sed_conf_input=$configure_input;; |
| 8336 |
esac |
| 8337 |
|
| 8338 |
case $ac_tag in |
| 8339 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 8340 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 8341 |
esac |
| 8342 |
;; |
| 8343 |
esac |
| 8344 |
|
| 8345 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 8346 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8347 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 8348 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 8349 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 8350 |
printf "%s\n" X"$ac_file" | |
| 8351 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8352 |
s//\1/ |
| 8353 |
q |
| 8354 |
} |
| 8355 |
/^X\(\/\/\)[^/].*/{ |
| 8356 |
s//\1/ |
| 8357 |
q |
| 8358 |
} |
| 8359 |
/^X\(\/\/\)$/{ |
| 8360 |
s//\1/ |
| 8361 |
q |
| 8362 |
} |
| 8363 |
/^X\(\/\).*/{ |
| 8364 |
s//\1/ |
| 8365 |
q |
| 8366 |
} |
| 8367 |
s/.*/./; q'` |
| 8368 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 8369 |
ac_builddir=. |
| 8370 |
|
| 8371 |
case "$ac_dir" in |
| 8372 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8373 |
*) |
| 8374 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 8375 |
# A ".." for each directory in $ac_dir_suffix. |
| 8376 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 8377 |
case $ac_top_builddir_sub in |
| 8378 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 8379 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 8380 |
esac ;; |
| 8381 |
esac |
| 8382 |
ac_abs_top_builddir=$ac_pwd |
| 8383 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 8384 |
# for backward compatibility: |
| 8385 |
ac_top_builddir=$ac_top_build_prefix |
| 8386 |
|
| 8387 |
case $srcdir in |
| 8388 |
.) # We are building in place. |
| 8389 |
ac_srcdir=. |
| 8390 |
ac_top_srcdir=$ac_top_builddir_sub |
| 8391 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 8392 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 8393 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 8394 |
ac_top_srcdir=$srcdir |
| 8395 |
ac_abs_top_srcdir=$srcdir ;; |
| 8396 |
*) # Relative name. |
| 8397 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 8398 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 8399 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 8400 |
esac |
| 8401 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 8402 |
|
| 8403 |
|
| 8404 |
case $ac_mode in |
| 8405 |
:F) |
| 8406 |
# |
| 8407 |
# CONFIG_FILE |
| 8408 |
# |
| 8409 |
|
| 8410 |
case $INSTALL in |
| 8411 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 8412 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 8413 |
esac |
| 8414 |
ac_MKDIR_P=$MKDIR_P |
| 8415 |
case $MKDIR_P in |
| 8416 |
[\\/$]* | ?:[\\/]* ) ;; |
| 8417 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 8418 |
esac |
| 8419 |
_ACEOF |
| 8420 |
|
| 8421 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8422 |
# If the template does not know about datarootdir, expand it. |
| 8423 |
# FIXME: This hack should be removed a few years after 2.60. |
| 8424 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 8425 |
ac_sed_dataroot=' |
| 8426 |
/datarootdir/ { |
| 8427 |
p |
| 8428 |
q |
| 8429 |
} |
| 8430 |
/@datadir@/p |
| 8431 |
/@docdir@/p |
| 8432 |
/@infodir@/p |
| 8433 |
/@localedir@/p |
| 8434 |
/@mandir@/p' |
| 8435 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 8436 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 8437 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 8438 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 8439 |
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 8440 |
_ACEOF |
| 8441 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8442 |
ac_datarootdir_hack=' |
| 8443 |
s&@datadir@&$datadir&g |
| 8444 |
s&@docdir@&$docdir&g |
| 8445 |
s&@infodir@&$infodir&g |
| 8446 |
s&@localedir@&$localedir&g |
| 8447 |
s&@mandir@&$mandir&g |
| 8448 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 8449 |
esac |
| 8450 |
_ACEOF |
| 8451 |
|
| 8452 |
# Neutralize VPATH when `$srcdir' = `.'. |
| 8453 |
# Shell code in configure.ac might set extrasub. |
| 8454 |
# FIXME: do we really want to maintain this feature? |
| 8455 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 8456 |
ac_sed_extra="$ac_vpsub |
| 8457 |
$extrasub |
| 8458 |
_ACEOF |
| 8459 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 8460 |
:t |
| 8461 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 8462 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 8463 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 8464 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 8465 |
s&@srcdir@&$ac_srcdir&;t t |
| 8466 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 8467 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 8468 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 8469 |
s&@builddir@&$ac_builddir&;t t |
| 8470 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 8471 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 8472 |
s&@INSTALL@&$ac_INSTALL&;t t |
| 8473 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 8474 |
$ac_datarootdir_hack |
| 8475 |
" |
| 8476 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 8477 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 8478 |
|
| 8479 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 8480 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 8481 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 8482 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 8483 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 8484 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 8485 |
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 8486 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 8487 |
|
| 8488 |
rm -f "$ac_tmp/stdin" |
| 8489 |
case $ac_file in |
| 8490 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 8491 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 8492 |
esac \ |
| 8493 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 8494 |
;; |
| 8495 |
|
| 8496 |
|
| 8497 |
:C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 8498 |
printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 8499 |
;; |
| 8500 |
esac |
| 8501 |
|
| 8502 |
|
| 8503 |
case $ac_file$ac_mode in |
| 8504 |
"po-directories":C) |
| 8505 |
for ac_file in $CONFIG_FILES; do |
| 8506 |
# Support "outfile[:infile[:infile...]]" |
| 8507 |
case "$ac_file" in |
| 8508 |
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 8509 |
esac |
| 8510 |
# PO directories have a Makefile.in generated from Makefile.in.in. |
| 8511 |
case "$ac_file" in */Makefile.in) |
| 8512 |
# Adjust a relative srcdir. |
| 8513 |
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 8514 |
ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
| 8515 |
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 8516 |
# In autoconf-2.13 it is called $ac_given_srcdir. |
| 8517 |
# In autoconf-2.50 it is called $srcdir. |
| 8518 |
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 8519 |
case "$ac_given_srcdir" in |
| 8520 |
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 8521 |
/*) top_srcdir="$ac_given_srcdir" ;; |
| 8522 |
*) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 8523 |
esac |
| 8524 |
# Treat a directory as a PO directory if and only if it has a |
| 8525 |
# POTFILES.in file. This allows packages to have multiple PO |
| 8526 |
# directories under different names or in different locations. |
| 8527 |
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 8528 |
rm -f "$ac_dir/POTFILES" |
| 8529 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 8530 |
gt_tab=`printf '\t'` |
| 8531 |
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 8532 |
POMAKEFILEDEPS="POTFILES.in" |
| 8533 |
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
| 8534 |
# on $ac_dir but don't depend on user-specified configuration |
| 8535 |
# parameters. |
| 8536 |
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 8537 |
# The LINGUAS file contains the set of available languages. |
| 8538 |
if test -n "$OBSOLETE_ALL_LINGUAS"; then |
| 8539 |
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 8540 |
fi |
| 8541 |
ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 8542 |
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 8543 |
else |
| 8544 |
# The set of available languages was given in configure.in. |
| 8545 |
ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS |
| 8546 |
fi |
| 8547 |
# Compute POFILES |
| 8548 |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 8549 |
# Compute UPDATEPOFILES |
| 8550 |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 8551 |
# Compute DUMMYPOFILES |
| 8552 |
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 8553 |
# Compute GMOFILES |
| 8554 |
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
| 8555 |
case "$ac_given_srcdir" in |
| 8556 |
.) srcdirpre= ;; |
| 8557 |
*) srcdirpre='$(srcdir)/' ;; |
| 8558 |
esac |
| 8559 |
POFILES= |
| 8560 |
UPDATEPOFILES= |
| 8561 |
DUMMYPOFILES= |
| 8562 |
GMOFILES= |
| 8563 |
for lang in $ALL_LINGUAS; do |
| 8564 |
POFILES="$POFILES $srcdirpre$lang.po" |
| 8565 |
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 8566 |
DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 8567 |
GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 8568 |
done |
| 8569 |
# CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 8570 |
# environment variable. |
| 8571 |
INST_LINGUAS= |
| 8572 |
if test -n "$ALL_LINGUAS"; then |
| 8573 |
for presentlang in $ALL_LINGUAS; do |
| 8574 |
useit=no |
| 8575 |
if test "%UNSET%" != "$LINGUAS"; then |
| 8576 |
desiredlanguages="$LINGUAS" |
| 8577 |
else |
| 8578 |
desiredlanguages="$ALL_LINGUAS" |
| 8579 |
fi |
| 8580 |
for desiredlang in $desiredlanguages; do |
| 8581 |
# Use the presentlang catalog if desiredlang is |
| 8582 |
# a. equal to presentlang, or |
| 8583 |
# b. a variant of presentlang (because in this case, |
| 8584 |
# presentlang can be used as a fallback for messages |
| 8585 |
# which are not translated in the desiredlang catalog). |
| 8586 |
case "$desiredlang" in |
| 8587 |
"$presentlang"*) useit=yes;; |
| 8588 |
esac |
| 8589 |
done |
| 8590 |
if test $useit = yes; then |
| 8591 |
INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 8592 |
fi |
| 8593 |
done |
| 8594 |
fi |
| 8595 |
CATALOGS= |
| 8596 |
if test -n "$INST_LINGUAS"; then |
| 8597 |
for lang in $INST_LINGUAS; do |
| 8598 |
CATALOGS="$CATALOGS $lang.gmo" |
| 8599 |
done |
| 8600 |
fi |
| 8601 |
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 8602 |
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 8603 |
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 8604 |
if test -f "$f"; then |
| 8605 |
case "$f" in |
| 8606 |
*.orig | *.bak | *~) ;; |
| 8607 |
*) cat "$f" >> "$ac_dir/Makefile" ;; |
| 8608 |
esac |
| 8609 |
fi |
| 8610 |
done |
| 8611 |
fi |
| 8612 |
;; |
| 8613 |
esac |
| 8614 |
done ;; |
| 8615 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 8616 |
# Older Autoconf quotes --file arguments for eval, but not when files |
| 8617 |
# are listed without --file. Let's play safe and only enable the eval |
| 8618 |
# if we detect the quoting. |
| 8619 |
# TODO: see whether this extra hack can be removed once we start |
| 8620 |
# requiring Autoconf 2.70 or later. |
| 8621 |
case $CONFIG_FILES in #( |
| 8622 |
*\'*) : |
| 8623 |
eval set x "$CONFIG_FILES" ;; #( |
| 8624 |
*) : |
| 8625 |
set x $CONFIG_FILES ;; #( |
| 8626 |
*) : |
| 8627 |
;; |
| 8628 |
esac |
| 8629 |
shift |
| 8630 |
# Used to flag and report bootstrapping failures. |
| 8631 |
am_rc=0 |
| 8632 |
for am_mf |
| 8633 |
do |
| 8634 |
# Strip MF so we end up with the name of the file. |
| 8635 |
am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
| 8636 |
# Check whether this is an Automake generated Makefile which includes |
| 8637 |
# dependency-tracking related rules and includes. |
| 8638 |
# Grep'ing the whole file directly is not great: AIX grep has a line |
| 8639 |
# limit of 2048, but all sed's we know have understand at least 4000. |
| 8640 |
sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 8641 |
|| continue |
| 8642 |
am_dirpart=`$as_dirname -- "$am_mf" || |
| 8643 |
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8644 |
X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 8645 |
X"$am_mf" : 'X\(//\)$' \| \ |
| 8646 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 8647 |
printf "%s\n" X"$am_mf" | |
| 8648 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8649 |
s//\1/ |
| 8650 |
q |
| 8651 |
} |
| 8652 |
/^X\(\/\/\)[^/].*/{ |
| 8653 |
s//\1/ |
| 8654 |
q |
| 8655 |
} |
| 8656 |
/^X\(\/\/\)$/{ |
| 8657 |
s//\1/ |
| 8658 |
q |
| 8659 |
} |
| 8660 |
/^X\(\/\).*/{ |
| 8661 |
s//\1/ |
| 8662 |
q |
| 8663 |
} |
| 8664 |
s/.*/./; q'` |
| 8665 |
am_filepart=`$as_basename -- "$am_mf" || |
| 8666 |
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 8667 |
X"$am_mf" : 'X\(//\)$' \| \ |
| 8668 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 8669 |
printf "%s\n" X/"$am_mf" | |
| 8670 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 8671 |
s//\1/ |
| 8672 |
q |
| 8673 |
} |
| 8674 |
/^X\/\(\/\/\)$/{ |
| 8675 |
s//\1/ |
| 8676 |
q |
| 8677 |
} |
| 8678 |
/^X\/\(\/\).*/{ |
| 8679 |
s//\1/ |
| 8680 |
q |
| 8681 |
} |
| 8682 |
s/.*/./; q'` |
| 8683 |
{ echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 8684 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 8685 |
| $MAKE -f - am--depfiles" >&5 |
| 8686 |
(cd "$am_dirpart" \ |
| 8687 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 8688 |
| $MAKE -f - am--depfiles) >&5 2>&5 |
| 8689 |
ac_status=$? |
| 8690 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8691 |
(exit $ac_status); } || am_rc=$? |
| 8692 |
done |
| 8693 |
if test $am_rc -ne 0; then |
| 8694 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8695 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8696 |
as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 8697 |
for automatic dependency tracking. If GNU make was not used, consider |
| 8698 |
re-running the configure script with MAKE=\"gmake\" (or whatever is |
| 8699 |
necessary). You can also try re-running configure with the |
| 8700 |
'--disable-dependency-tracking' option to at least be able to build |
| 8701 |
the package (albeit without support for automatic dependency tracking). |
| 8702 |
See \`config.log' for more details" "$LINENO" 5; } |
| 8703 |
fi |
| 8704 |
{ am_dirpart=; unset am_dirpart;} |
| 8705 |
{ am_filepart=; unset am_filepart;} |
| 8706 |
{ am_mf=; unset am_mf;} |
| 8707 |
{ am_rc=; unset am_rc;} |
| 8708 |
rm -f conftest-deps.mk |
| 8709 |
} |
| 8710 |
;; |
| 8711 |
|
| 8712 |
esac |
| 8713 |
done # for ac_tag |
| 8714 |
|
| 8715 |
|
| 8716 |
as_fn_exit 0 |
| 8717 |
_ACEOF |
| 8718 |
ac_clean_files=$ac_clean_files_save |
| 8719 |
|
| 8720 |
test $ac_write_fail = 0 || |
| 8721 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 8722 |
|
| 8723 |
|
| 8724 |
# configure is writing to config.log, and then calls config.status. |
| 8725 |
# config.status does its own redirection, appending to config.log. |
| 8726 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 8727 |
# by configure, so config.status won't be able to write to it; its |
| 8728 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 8729 |
# effectively closing config.log, so it can be properly (re)opened and |
| 8730 |
# appended to by config.status. When coming back to configure, we |
| 8731 |
# need to make the FD available again. |
| 8732 |
if test "$no_create" != yes; then |
| 8733 |
ac_cs_success=: |
| 8734 |
ac_config_status_args= |
| 8735 |
test "$silent" = yes && |
| 8736 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 8737 |
exec 5>/dev/null |
| 8738 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 8739 |
exec 5>>config.log |
| 8740 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 8741 |
# would make configure fail if this is the last instruction. |
| 8742 |
$ac_cs_success || as_fn_exit 1 |
| 8743 |
fi |
| 8744 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 8745 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 8746 |
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 8747 |
fi |
| 8748 |
|
| 8749 |
|