[3745] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[25147] | 3 | # Generated by GNU Autoconf 2.65.
|
---|
[3745] | 4 | #
|
---|
[23356] | 5 | #
|
---|
| 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
[25147] | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
---|
| 8 | # Inc.
|
---|
[23356] | 9 | #
|
---|
| 10 | #
|
---|
[3745] | 11 | # This configure script is free software; the Free Software Foundation
|
---|
| 12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[23356] | 13 | ## -------------------- ##
|
---|
| 14 | ## M4sh Initialization. ##
|
---|
| 15 | ## -------------------- ##
|
---|
[3745] | 16 |
|
---|
[23356] | 17 | # Be more Bourne compatible
|
---|
| 18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
[3745] | 20 | emulate sh
|
---|
| 21 | NULLCMD=:
|
---|
[23356] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[10191] | 23 | # is contrary to our usage. Disable this feature.
|
---|
| 24 | alias -g '${1+"$@"}'='"$@"'
|
---|
[23356] | 25 | setopt NO_GLOB_SUBST
|
---|
| 26 | else
|
---|
| 27 | case `(set -o) 2>/dev/null` in #(
|
---|
| 28 | *posix*) :
|
---|
| 29 | set -o posix ;; #(
|
---|
| 30 | *) :
|
---|
| 31 | ;;
|
---|
| 32 | esac
|
---|
[3745] | 33 | fi
|
---|
| 34 |
|
---|
[23356] | 35 |
|
---|
| 36 | as_nl='
|
---|
| 37 | '
|
---|
| 38 | export as_nl
|
---|
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 44 | # but without wasting forks for bash or zsh.
|
---|
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 47 | as_echo='print -r --'
|
---|
| 48 | as_echo_n='print -rn --'
|
---|
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 50 | as_echo='printf %s\n'
|
---|
| 51 | as_echo_n='printf %s'
|
---|
[10191] | 52 | else
|
---|
[23356] | 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 55 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 56 | else
|
---|
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 58 | as_echo_n_body='eval
|
---|
| 59 | arg=$1;
|
---|
| 60 | case $arg in #(
|
---|
| 61 | *"$as_nl"*)
|
---|
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 64 | esac;
|
---|
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 66 | '
|
---|
| 67 | export as_echo_n_body
|
---|
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 69 | fi
|
---|
| 70 | export as_echo_body
|
---|
| 71 | as_echo='sh -c $as_echo_body as_echo'
|
---|
[10191] | 72 | fi
|
---|
| 73 |
|
---|
[23356] | 74 | # The user is always right.
|
---|
| 75 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 76 | PATH_SEPARATOR=:
|
---|
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 79 | PATH_SEPARATOR=';'
|
---|
| 80 | }
|
---|
| 81 | fi
|
---|
[10191] | 82 |
|
---|
[23356] | 83 |
|
---|
| 84 | # IFS
|
---|
| 85 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 86 | # there to prevent editors from complaining about space-tab.
|
---|
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 88 | # splitting by setting IFS to empty value.)
|
---|
| 89 | IFS=" "" $as_nl"
|
---|
| 90 |
|
---|
| 91 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 92 | case $0 in #((
|
---|
| 93 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 95 | for as_dir in $PATH
|
---|
| 96 | do
|
---|
| 97 | IFS=$as_save_IFS
|
---|
| 98 | test -z "$as_dir" && as_dir=.
|
---|
| 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 100 | done
|
---|
| 101 | IFS=$as_save_IFS
|
---|
| 102 |
|
---|
| 103 | ;;
|
---|
| 104 | esac
|
---|
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 106 | # in which case we are not to be found in the path.
|
---|
| 107 | if test "x$as_myself" = x; then
|
---|
| 108 | as_myself=$0
|
---|
| 109 | fi
|
---|
| 110 | if test ! -f "$as_myself"; then
|
---|
| 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
| 112 | exit 1
|
---|
| 113 | fi
|
---|
| 114 |
|
---|
| 115 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 117 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 118 | # trigger a bug in pdksh 5.2.14.
|
---|
| 119 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 120 | do eval test x\${$as_var+set} = xset \
|
---|
| 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
| 122 | done
|
---|
[10191] | 123 | PS1='$ '
|
---|
| 124 | PS2='> '
|
---|
| 125 | PS4='+ '
|
---|
| 126 |
|
---|
| 127 | # NLS nuisances.
|
---|
[23356] | 128 | LC_ALL=C
|
---|
| 129 | export LC_ALL
|
---|
| 130 | LANGUAGE=C
|
---|
| 131 | export LANGUAGE
|
---|
| 132 |
|
---|
| 133 | # CDPATH.
|
---|
| 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
| 135 |
|
---|
| 136 | if test "x$CONFIG_SHELL" = x; then
|
---|
| 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
| 138 | emulate sh
|
---|
| 139 | NULLCMD=:
|
---|
| 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
| 141 | # is contrary to our usage. Disable this feature.
|
---|
| 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
| 143 | setopt NO_GLOB_SUBST
|
---|
| 144 | else
|
---|
| 145 | case \`(set -o) 2>/dev/null\` in #(
|
---|
| 146 | *posix*) :
|
---|
| 147 | set -o posix ;; #(
|
---|
| 148 | *) :
|
---|
| 149 | ;;
|
---|
| 150 | esac
|
---|
| 151 | fi
|
---|
| 152 | "
|
---|
| 153 | as_required="as_fn_return () { (exit \$1); }
|
---|
| 154 | as_fn_success () { as_fn_return 0; }
|
---|
| 155 | as_fn_failure () { as_fn_return 1; }
|
---|
| 156 | as_fn_ret_success () { return 0; }
|
---|
| 157 | as_fn_ret_failure () { return 1; }
|
---|
| 158 |
|
---|
| 159 | exitcode=0
|
---|
| 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
| 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
| 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
| 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
| 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
| 165 |
|
---|
| 166 | else
|
---|
| 167 | exitcode=1; echo positional parameters were not saved.
|
---|
| 168 | fi
|
---|
| 169 | test x\$exitcode = x0 || exit 1"
|
---|
| 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
| 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
| 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
| 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
| 174 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
| 175 | if (eval "$as_required") 2>/dev/null; then :
|
---|
| 176 | as_have_required=yes
|
---|
| 177 | else
|
---|
| 178 | as_have_required=no
|
---|
| 179 | fi
|
---|
| 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
| 181 |
|
---|
| 182 | else
|
---|
| 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 184 | as_found=false
|
---|
| 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
[10191] | 186 | do
|
---|
[23356] | 187 | IFS=$as_save_IFS
|
---|
| 188 | test -z "$as_dir" && as_dir=.
|
---|
| 189 | as_found=:
|
---|
| 190 | case $as_dir in #(
|
---|
| 191 | /*)
|
---|
| 192 | for as_base in sh bash ksh sh5; do
|
---|
| 193 | # Try only shells that exist, to save several forks.
|
---|
| 194 | as_shell=$as_dir/$as_base
|
---|
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
| 199 | break 2
|
---|
| 200 | fi
|
---|
| 201 | fi
|
---|
| 202 | done;;
|
---|
| 203 | esac
|
---|
| 204 | as_found=false
|
---|
| 205 | done
|
---|
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
| 209 | fi; }
|
---|
| 210 | IFS=$as_save_IFS
|
---|
| 211 |
|
---|
| 212 |
|
---|
| 213 | if test "x$CONFIG_SHELL" != x; then :
|
---|
| 214 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
| 215 | # neutralization value for shells without unset; and this also
|
---|
| 216 | # works around shells that cannot unset nonexistent variables.
|
---|
| 217 | BASH_ENV=/dev/null
|
---|
| 218 | ENV=/dev/null
|
---|
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
| 220 | export CONFIG_SHELL
|
---|
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
---|
| 222 | fi
|
---|
| 223 |
|
---|
| 224 | if test x$as_have_required = xno; then :
|
---|
| 225 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
| 226 | $as_echo "$0: the shells that I found on your system."
|
---|
| 227 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
[10191] | 230 | else
|
---|
[23356] | 231 | $as_echo "$0: Please tell [email protected] about your system,
|
---|
| 232 | $0: including any error possibly output before this
|
---|
| 233 | $0: message. Then install a modern shell, or manually run
|
---|
| 234 | $0: the script under such a shell if you do have one."
|
---|
[10191] | 235 | fi
|
---|
[23356] | 236 | exit 1
|
---|
| 237 | fi
|
---|
| 238 | fi
|
---|
| 239 | fi
|
---|
| 240 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 241 | export SHELL
|
---|
| 242 | # Unset more variables known to interfere with behavior of common tools.
|
---|
| 243 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
| 244 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
[10191] | 245 |
|
---|
[23356] | 246 | ## --------------------- ##
|
---|
| 247 | ## M4sh Shell Functions. ##
|
---|
| 248 | ## --------------------- ##
|
---|
| 249 | # as_fn_unset VAR
|
---|
| 250 | # ---------------
|
---|
| 251 | # Portably unset VAR.
|
---|
| 252 | as_fn_unset ()
|
---|
| 253 | {
|
---|
| 254 | { eval $1=; unset $1;}
|
---|
| 255 | }
|
---|
| 256 | as_unset=as_fn_unset
|
---|
| 257 |
|
---|
| 258 | # as_fn_set_status STATUS
|
---|
| 259 | # -----------------------
|
---|
| 260 | # Set $? to STATUS, without forking.
|
---|
| 261 | as_fn_set_status ()
|
---|
| 262 | {
|
---|
| 263 | return $1
|
---|
| 264 | } # as_fn_set_status
|
---|
| 265 |
|
---|
| 266 | # as_fn_exit STATUS
|
---|
| 267 | # -----------------
|
---|
| 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 269 | as_fn_exit ()
|
---|
| 270 | {
|
---|
| 271 | set +e
|
---|
| 272 | as_fn_set_status $1
|
---|
| 273 | exit $1
|
---|
| 274 | } # as_fn_exit
|
---|
| 275 |
|
---|
| 276 | # as_fn_mkdir_p
|
---|
| 277 | # -------------
|
---|
| 278 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 279 | as_fn_mkdir_p ()
|
---|
| 280 | {
|
---|
| 281 |
|
---|
| 282 | case $as_dir in #(
|
---|
| 283 | -*) as_dir=./$as_dir;;
|
---|
| 284 | esac
|
---|
| 285 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 286 | as_dirs=
|
---|
| 287 | while :; do
|
---|
| 288 | case $as_dir in #(
|
---|
| 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 290 | *) as_qdir=$as_dir;;
|
---|
| 291 | esac
|
---|
| 292 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 293 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 295 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 296 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 298 | $as_echo X"$as_dir" |
|
---|
| 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 300 | s//\1/
|
---|
| 301 | q
|
---|
| 302 | }
|
---|
| 303 | /^X\(\/\/\)[^/].*/{
|
---|
| 304 | s//\1/
|
---|
| 305 | q
|
---|
| 306 | }
|
---|
| 307 | /^X\(\/\/\)$/{
|
---|
| 308 | s//\1/
|
---|
| 309 | q
|
---|
| 310 | }
|
---|
| 311 | /^X\(\/\).*/{
|
---|
| 312 | s//\1/
|
---|
| 313 | q
|
---|
| 314 | }
|
---|
| 315 | s/.*/./; q'`
|
---|
| 316 | test -d "$as_dir" && break
|
---|
| 317 | done
|
---|
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
[25147] | 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
---|
[23356] | 320 |
|
---|
| 321 |
|
---|
| 322 | } # as_fn_mkdir_p
|
---|
| 323 | # as_fn_append VAR VALUE
|
---|
| 324 | # ----------------------
|
---|
| 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 326 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 327 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 328 | # implementations.
|
---|
| 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 330 | eval 'as_fn_append ()
|
---|
| 331 | {
|
---|
| 332 | eval $1+=\$2
|
---|
| 333 | }'
|
---|
| 334 | else
|
---|
| 335 | as_fn_append ()
|
---|
| 336 | {
|
---|
| 337 | eval $1=\$$1\$2
|
---|
| 338 | }
|
---|
| 339 | fi # as_fn_append
|
---|
| 340 |
|
---|
| 341 | # as_fn_arith ARG...
|
---|
| 342 | # ------------------
|
---|
| 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 345 | # must be portable across $(()) and expr.
|
---|
| 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 347 | eval 'as_fn_arith ()
|
---|
| 348 | {
|
---|
| 349 | as_val=$(( $* ))
|
---|
| 350 | }'
|
---|
| 351 | else
|
---|
| 352 | as_fn_arith ()
|
---|
| 353 | {
|
---|
| 354 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 355 | }
|
---|
| 356 | fi # as_fn_arith
|
---|
| 357 |
|
---|
| 358 |
|
---|
[25147] | 359 | # as_fn_error ERROR [LINENO LOG_FD]
|
---|
| 360 | # ---------------------------------
|
---|
[23356] | 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
[25147] | 363 | # script with status $?, using 1 if that was 0.
|
---|
[23356] | 364 | as_fn_error ()
|
---|
| 365 | {
|
---|
[25147] | 366 | as_status=$?; test $as_status -eq 0 && as_status=1
|
---|
| 367 | if test "$3"; then
|
---|
| 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
|
---|
[23356] | 370 | fi
|
---|
[25147] | 371 | $as_echo "$as_me: error: $1" >&2
|
---|
[23356] | 372 | as_fn_exit $as_status
|
---|
| 373 | } # as_fn_error
|
---|
| 374 |
|
---|
| 375 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[10191] | 377 | as_expr=expr
|
---|
| 378 | else
|
---|
| 379 | as_expr=false
|
---|
| 380 | fi
|
---|
| 381 |
|
---|
[23356] | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[10191] | 383 | as_basename=basename
|
---|
| 384 | else
|
---|
| 385 | as_basename=false
|
---|
| 386 | fi
|
---|
| 387 |
|
---|
[23356] | 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 389 | as_dirname=dirname
|
---|
| 390 | else
|
---|
| 391 | as_dirname=false
|
---|
| 392 | fi
|
---|
[10191] | 393 |
|
---|
[23356] | 394 | as_me=`$as_basename -- "$0" ||
|
---|
[10191] | 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 396 | X"$0" : 'X\(//\)$' \| \
|
---|
[23356] | 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 398 | $as_echo X/"$0" |
|
---|
| 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 400 | s//\1/
|
---|
| 401 | q
|
---|
| 402 | }
|
---|
| 403 | /^X\/\(\/\/\)$/{
|
---|
| 404 | s//\1/
|
---|
| 405 | q
|
---|
| 406 | }
|
---|
| 407 | /^X\/\(\/\).*/{
|
---|
| 408 | s//\1/
|
---|
| 409 | q
|
---|
| 410 | }
|
---|
| 411 | s/.*/./; q'`
|
---|
[3745] | 412 |
|
---|
[10191] | 413 | # Avoid depending upon Character Ranges.
|
---|
| 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 417 | as_cr_digits='0123456789'
|
---|
| 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 419 |
|
---|
| 420 |
|
---|
[23356] | 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
| 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
| 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
| 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
| 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
| 426 | sed -n '
|
---|
| 427 | p
|
---|
| 428 | /[$]LINENO/=
|
---|
| 429 | ' <$as_myself |
|
---|
[10191] | 430 | sed '
|
---|
[23356] | 431 | s/[$]LINENO.*/&-/
|
---|
| 432 | t lineno
|
---|
| 433 | b
|
---|
| 434 | :lineno
|
---|
[10191] | 435 | N
|
---|
[23356] | 436 | :loop
|
---|
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
[10191] | 438 | t loop
|
---|
[23356] | 439 | s/-\n.*//
|
---|
[10191] | 440 | ' >$as_me.lineno &&
|
---|
[23356] | 441 | chmod +x "$as_me.lineno" ||
|
---|
| 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
[10191] | 443 |
|
---|
| 444 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 445 | # (the dirname of $[0] is not the place where we might find the
|
---|
[23356] | 446 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 447 | . "./$as_me.lineno"
|
---|
[10191] | 448 | # Exit status is that of the last command.
|
---|
| 449 | exit
|
---|
| 450 | }
|
---|
| 451 |
|
---|
[23356] | 452 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 453 | case `echo -n x` in #(((((
|
---|
| 454 | -n*)
|
---|
| 455 | case `echo 'xy\c'` in
|
---|
| 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 457 | xy) ECHO_C='\c';;
|
---|
| 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 459 | ECHO_T=' ';;
|
---|
| 460 | esac;;
|
---|
| 461 | *)
|
---|
| 462 | ECHO_N='-n';;
|
---|
[10191] | 463 | esac
|
---|
| 464 |
|
---|
[23356] | 465 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 466 | if test -d conf$$.dir; then
|
---|
| 467 | rm -f conf$$.dir/conf$$.file
|
---|
[3745] | 468 | else
|
---|
[23356] | 469 | rm -f conf$$.dir
|
---|
| 470 | mkdir conf$$.dir 2>/dev/null
|
---|
[3745] | 471 | fi
|
---|
[23356] | 472 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 474 | as_ln_s='ln -s'
|
---|
| 475 | # ... but there are two gotchas:
|
---|
| 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 478 | # In both cases, we have to default to `cp -p'.
|
---|
| 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
| 480 | as_ln_s='cp -p'
|
---|
| 481 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 482 | as_ln_s=ln
|
---|
| 483 | else
|
---|
[3745] | 484 | as_ln_s='cp -p'
|
---|
| 485 | fi
|
---|
| 486 | else
|
---|
| 487 | as_ln_s='cp -p'
|
---|
| 488 | fi
|
---|
[23356] | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 490 | rmdir conf$$.dir 2>/dev/null
|
---|
[3745] | 491 |
|
---|
[10191] | 492 | if mkdir -p . 2>/dev/null; then
|
---|
[23356] | 493 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[3745] | 494 | else
|
---|
[10191] | 495 | test -d ./-p && rmdir ./-p
|
---|
| 496 | as_mkdir_p=false
|
---|
[3745] | 497 | fi
|
---|
| 498 |
|
---|
[23356] | 499 | if test -x / >/dev/null 2>&1; then
|
---|
| 500 | as_test_x='test -x'
|
---|
| 501 | else
|
---|
| 502 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 503 | as_ls_L_option=L
|
---|
| 504 | else
|
---|
| 505 | as_ls_L_option=
|
---|
| 506 | fi
|
---|
| 507 | as_test_x='
|
---|
| 508 | eval sh -c '\''
|
---|
| 509 | if test -d "$1"; then
|
---|
| 510 | test -d "$1/.";
|
---|
| 511 | else
|
---|
| 512 | case $1 in #(
|
---|
| 513 | -*)set "./$1";;
|
---|
| 514 | esac;
|
---|
| 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
| 516 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 517 | '\'' sh
|
---|
| 518 | '
|
---|
| 519 | fi
|
---|
| 520 | as_executable_p=$as_test_x
|
---|
[3745] | 521 |
|
---|
[10191] | 522 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 524 |
|
---|
| 525 | # Sed expression to map a string onto a valid variable name.
|
---|
| 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 527 |
|
---|
| 528 |
|
---|
[23356] | 529 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
| 530 | exec 6>&1
|
---|
[3745] | 531 |
|
---|
| 532 | # Name of the host.
|
---|
[25147] | 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
[3745] | 534 | # so uname gets run too.
|
---|
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 536 |
|
---|
| 537 | #
|
---|
| 538 | # Initializations.
|
---|
| 539 | #
|
---|
| 540 | ac_default_prefix=/usr/local
|
---|
[23356] | 541 | ac_clean_files=
|
---|
[10191] | 542 | ac_config_libobj_dir=.
|
---|
[23356] | 543 | LIBOBJS=
|
---|
[3745] | 544 | cross_compiling=no
|
---|
| 545 | subdirs=
|
---|
[10191] | 546 | MFLAGS=
|
---|
| 547 | MAKEFLAGS=
|
---|
[3745] | 548 |
|
---|
[10191] | 549 | # Identity of this package.
|
---|
| 550 | PACKAGE_NAME=
|
---|
| 551 | PACKAGE_TARNAME=
|
---|
| 552 | PACKAGE_VERSION=
|
---|
| 553 | PACKAGE_STRING=
|
---|
| 554 | PACKAGE_BUGREPORT=
|
---|
[23356] | 555 | PACKAGE_URL=
|
---|
[3745] | 556 |
|
---|
| 557 | ac_unique_file="src/text/mgquery.c"
|
---|
| 558 | # Factoring default headers for most tests.
|
---|
| 559 | ac_includes_default="\
|
---|
| 560 | #include <stdio.h>
|
---|
[23356] | 561 | #ifdef HAVE_SYS_TYPES_H
|
---|
[10191] | 562 | # include <sys/types.h>
|
---|
| 563 | #endif
|
---|
[23356] | 564 | #ifdef HAVE_SYS_STAT_H
|
---|
[10191] | 565 | # include <sys/stat.h>
|
---|
| 566 | #endif
|
---|
[23356] | 567 | #ifdef STDC_HEADERS
|
---|
[3745] | 568 | # include <stdlib.h>
|
---|
| 569 | # include <stddef.h>
|
---|
| 570 | #else
|
---|
[23356] | 571 | # ifdef HAVE_STDLIB_H
|
---|
[3745] | 572 | # include <stdlib.h>
|
---|
| 573 | # endif
|
---|
| 574 | #endif
|
---|
[23356] | 575 | #ifdef HAVE_STRING_H
|
---|
| 576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
[3745] | 577 | # include <memory.h>
|
---|
| 578 | # endif
|
---|
| 579 | # include <string.h>
|
---|
| 580 | #endif
|
---|
[23356] | 581 | #ifdef HAVE_STRINGS_H
|
---|
[10191] | 582 | # include <strings.h>
|
---|
| 583 | #endif
|
---|
[23356] | 584 | #ifdef HAVE_INTTYPES_H
|
---|
[3745] | 585 | # include <inttypes.h>
|
---|
| 586 | #endif
|
---|
[23356] | 587 | #ifdef HAVE_STDINT_H
|
---|
| 588 | # include <stdint.h>
|
---|
| 589 | #endif
|
---|
| 590 | #ifdef HAVE_UNISTD_H
|
---|
[3745] | 591 | # include <unistd.h>
|
---|
| 592 | #endif"
|
---|
| 593 |
|
---|
[23356] | 594 | ac_subst_vars='LTLIBOBJS
|
---|
| 595 | JNIFLAGS
|
---|
| 596 | JNISUFFIX
|
---|
| 597 | JNIINC
|
---|
| 598 | LIBOBJS
|
---|
| 599 | ALLOCA
|
---|
| 600 | ANSI2KNR
|
---|
| 601 | U
|
---|
| 602 | EGREP
|
---|
| 603 | GREP
|
---|
| 604 | CPP
|
---|
| 605 | JAVACFLAGS
|
---|
| 606 | JAVAC
|
---|
| 607 | uudecode
|
---|
| 608 | JAVA
|
---|
| 609 | RANLIB
|
---|
| 610 | SET_MAKE
|
---|
| 611 | LN_S
|
---|
| 612 | INSTALL_DATA
|
---|
| 613 | INSTALL_SCRIPT
|
---|
| 614 | INSTALL_PROGRAM
|
---|
| 615 | ac_ct_CC
|
---|
| 616 | CFLAGS
|
---|
| 617 | CC
|
---|
| 618 | YFLAGS
|
---|
| 619 | YACC
|
---|
| 620 | AWK
|
---|
| 621 | OBJEXT
|
---|
| 622 | EXEEXT
|
---|
| 623 | ac_ct_CXX
|
---|
| 624 | CPPFLAGS
|
---|
| 625 | LDFLAGS
|
---|
| 626 | CXXFLAGS
|
---|
| 627 | CXX
|
---|
| 628 | ENABLE_JAVA
|
---|
| 629 | VERSION
|
---|
| 630 | PACKAGE
|
---|
| 631 | target_os
|
---|
| 632 | target_vendor
|
---|
| 633 | target_cpu
|
---|
| 634 | target
|
---|
| 635 | host_os
|
---|
| 636 | host_vendor
|
---|
| 637 | host_cpu
|
---|
| 638 | host
|
---|
| 639 | build_os
|
---|
| 640 | build_vendor
|
---|
| 641 | build_cpu
|
---|
| 642 | build
|
---|
| 643 | target_alias
|
---|
| 644 | host_alias
|
---|
| 645 | build_alias
|
---|
| 646 | LIBS
|
---|
| 647 | ECHO_T
|
---|
| 648 | ECHO_N
|
---|
| 649 | ECHO_C
|
---|
| 650 | DEFS
|
---|
| 651 | mandir
|
---|
| 652 | localedir
|
---|
| 653 | libdir
|
---|
| 654 | psdir
|
---|
| 655 | pdfdir
|
---|
| 656 | dvidir
|
---|
| 657 | htmldir
|
---|
| 658 | infodir
|
---|
| 659 | docdir
|
---|
| 660 | oldincludedir
|
---|
| 661 | includedir
|
---|
| 662 | localstatedir
|
---|
| 663 | sharedstatedir
|
---|
| 664 | sysconfdir
|
---|
| 665 | datadir
|
---|
| 666 | datarootdir
|
---|
| 667 | libexecdir
|
---|
| 668 | sbindir
|
---|
| 669 | bindir
|
---|
| 670 | program_transform_name
|
---|
| 671 | prefix
|
---|
| 672 | exec_prefix
|
---|
| 673 | PACKAGE_URL
|
---|
| 674 | PACKAGE_BUGREPORT
|
---|
| 675 | PACKAGE_STRING
|
---|
| 676 | PACKAGE_VERSION
|
---|
| 677 | PACKAGE_TARNAME
|
---|
| 678 | PACKAGE_NAME
|
---|
| 679 | PATH_SEPARATOR
|
---|
| 680 | SHELL'
|
---|
[10191] | 681 | ac_subst_files=''
|
---|
[23356] | 682 | ac_user_opts='
|
---|
| 683 | enable_option_checking
|
---|
| 684 | enable_java
|
---|
| 685 | with_dmalloc
|
---|
| 686 | with_regex
|
---|
| 687 | '
|
---|
| 688 | ac_precious_vars='build_alias
|
---|
| 689 | host_alias
|
---|
| 690 | target_alias
|
---|
| 691 | CXX
|
---|
| 692 | CXXFLAGS
|
---|
| 693 | LDFLAGS
|
---|
| 694 | LIBS
|
---|
| 695 | CPPFLAGS
|
---|
| 696 | CCC
|
---|
| 697 | YACC
|
---|
| 698 | YFLAGS
|
---|
| 699 | CC
|
---|
| 700 | CFLAGS
|
---|
| 701 | CPP'
|
---|
[10191] | 702 |
|
---|
[23356] | 703 |
|
---|
[3745] | 704 | # Initialize some variables set by options.
|
---|
| 705 | ac_init_help=
|
---|
| 706 | ac_init_version=false
|
---|
[23356] | 707 | ac_unrecognized_opts=
|
---|
| 708 | ac_unrecognized_sep=
|
---|
[3745] | 709 | # The variables have the same names as the options, with
|
---|
| 710 | # dashes changed to underlines.
|
---|
| 711 | cache_file=/dev/null
|
---|
| 712 | exec_prefix=NONE
|
---|
| 713 | no_create=
|
---|
| 714 | no_recursion=
|
---|
| 715 | prefix=NONE
|
---|
| 716 | program_prefix=NONE
|
---|
| 717 | program_suffix=NONE
|
---|
| 718 | program_transform_name=s,x,x,
|
---|
| 719 | silent=
|
---|
| 720 | site=
|
---|
| 721 | srcdir=
|
---|
| 722 | verbose=
|
---|
| 723 | x_includes=NONE
|
---|
| 724 | x_libraries=NONE
|
---|
| 725 |
|
---|
| 726 | # Installation directory options.
|
---|
| 727 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 728 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 729 | # by default will actually change.
|
---|
| 730 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[23356] | 731 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
[3745] | 732 | bindir='${exec_prefix}/bin'
|
---|
| 733 | sbindir='${exec_prefix}/sbin'
|
---|
| 734 | libexecdir='${exec_prefix}/libexec'
|
---|
[23356] | 735 | datarootdir='${prefix}/share'
|
---|
| 736 | datadir='${datarootdir}'
|
---|
[3745] | 737 | sysconfdir='${prefix}/etc'
|
---|
| 738 | sharedstatedir='${prefix}/com'
|
---|
| 739 | localstatedir='${prefix}/var'
|
---|
| 740 | includedir='${prefix}/include'
|
---|
| 741 | oldincludedir='/usr/include'
|
---|
[23356] | 742 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
| 743 | infodir='${datarootdir}/info'
|
---|
| 744 | htmldir='${docdir}'
|
---|
| 745 | dvidir='${docdir}'
|
---|
| 746 | pdfdir='${docdir}'
|
---|
| 747 | psdir='${docdir}'
|
---|
| 748 | libdir='${exec_prefix}/lib'
|
---|
| 749 | localedir='${datarootdir}/locale'
|
---|
| 750 | mandir='${datarootdir}/man'
|
---|
[3745] | 751 |
|
---|
| 752 | ac_prev=
|
---|
[23356] | 753 | ac_dashdash=
|
---|
[3745] | 754 | for ac_option
|
---|
| 755 | do
|
---|
| 756 | # If the previous option needs an argument, assign it.
|
---|
| 757 | if test -n "$ac_prev"; then
|
---|
[23356] | 758 | eval $ac_prev=\$ac_option
|
---|
[3745] | 759 | ac_prev=
|
---|
| 760 | continue
|
---|
| 761 | fi
|
---|
| 762 |
|
---|
[23356] | 763 | case $ac_option in
|
---|
[25147] | 764 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
| 765 | *) ac_optarg=yes ;;
|
---|
[23356] | 766 | esac
|
---|
[3745] | 767 |
|
---|
| 768 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 769 |
|
---|
[23356] | 770 | case $ac_dashdash$ac_option in
|
---|
| 771 | --)
|
---|
| 772 | ac_dashdash=yes ;;
|
---|
[3745] | 773 |
|
---|
| 774 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 775 | ac_prev=bindir ;;
|
---|
| 776 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 777 | bindir=$ac_optarg ;;
|
---|
| 778 |
|
---|
| 779 | -build | --build | --buil | --bui | --bu)
|
---|
| 780 | ac_prev=build_alias ;;
|
---|
| 781 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 782 | build_alias=$ac_optarg ;;
|
---|
| 783 |
|
---|
| 784 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 785 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 786 | ac_prev=cache_file ;;
|
---|
| 787 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 788 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 789 | cache_file=$ac_optarg ;;
|
---|
| 790 |
|
---|
| 791 | --config-cache | -C)
|
---|
| 792 | cache_file=config.cache ;;
|
---|
| 793 |
|
---|
[23356] | 794 | -datadir | --datadir | --datadi | --datad)
|
---|
[3745] | 795 | ac_prev=datadir ;;
|
---|
[23356] | 796 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
[3745] | 797 | datadir=$ac_optarg ;;
|
---|
| 798 |
|
---|
[23356] | 799 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
| 800 | | --dataroo | --dataro | --datar)
|
---|
| 801 | ac_prev=datarootdir ;;
|
---|
| 802 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
| 803 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
| 804 | datarootdir=$ac_optarg ;;
|
---|
| 805 |
|
---|
[3745] | 806 | -disable-* | --disable-*)
|
---|
[23356] | 807 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[3745] | 808 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 809 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25147] | 810 | as_fn_error "invalid feature name: $ac_useropt"
|
---|
[23356] | 811 | ac_useropt_orig=$ac_useropt
|
---|
| 812 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 813 | case $ac_user_opts in
|
---|
| 814 | *"
|
---|
| 815 | "enable_$ac_useropt"
|
---|
| 816 | "*) ;;
|
---|
| 817 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
| 818 | ac_unrecognized_sep=', ';;
|
---|
| 819 | esac
|
---|
| 820 | eval enable_$ac_useropt=no ;;
|
---|
[3745] | 821 |
|
---|
[23356] | 822 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
| 823 | ac_prev=docdir ;;
|
---|
| 824 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
| 825 | docdir=$ac_optarg ;;
|
---|
| 826 |
|
---|
| 827 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
| 828 | ac_prev=dvidir ;;
|
---|
| 829 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
| 830 | dvidir=$ac_optarg ;;
|
---|
| 831 |
|
---|
[3745] | 832 | -enable-* | --enable-*)
|
---|
[23356] | 833 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[3745] | 834 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 835 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25147] | 836 | as_fn_error "invalid feature name: $ac_useropt"
|
---|
[23356] | 837 | ac_useropt_orig=$ac_useropt
|
---|
| 838 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 839 | case $ac_user_opts in
|
---|
| 840 | *"
|
---|
| 841 | "enable_$ac_useropt"
|
---|
| 842 | "*) ;;
|
---|
| 843 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
| 844 | ac_unrecognized_sep=', ';;
|
---|
[3745] | 845 | esac
|
---|
[23356] | 846 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
[3745] | 847 |
|
---|
| 848 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 849 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 850 | | --exec | --exe | --ex)
|
---|
| 851 | ac_prev=exec_prefix ;;
|
---|
| 852 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 853 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 854 | | --exec=* | --exe=* | --ex=*)
|
---|
| 855 | exec_prefix=$ac_optarg ;;
|
---|
| 856 |
|
---|
| 857 | -gas | --gas | --ga | --g)
|
---|
| 858 | # Obsolete; use --with-gas.
|
---|
| 859 | with_gas=yes ;;
|
---|
| 860 |
|
---|
| 861 | -help | --help | --hel | --he | -h)
|
---|
| 862 | ac_init_help=long ;;
|
---|
| 863 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 864 | ac_init_help=recursive ;;
|
---|
| 865 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 866 | ac_init_help=short ;;
|
---|
| 867 |
|
---|
| 868 | -host | --host | --hos | --ho)
|
---|
| 869 | ac_prev=host_alias ;;
|
---|
| 870 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 871 | host_alias=$ac_optarg ;;
|
---|
| 872 |
|
---|
[23356] | 873 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
| 874 | ac_prev=htmldir ;;
|
---|
| 875 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
| 876 | | --ht=*)
|
---|
| 877 | htmldir=$ac_optarg ;;
|
---|
| 878 |
|
---|
[3745] | 879 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 880 | | --includ | --inclu | --incl | --inc)
|
---|
| 881 | ac_prev=includedir ;;
|
---|
| 882 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 883 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 884 | includedir=$ac_optarg ;;
|
---|
| 885 |
|
---|
| 886 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 887 | ac_prev=infodir ;;
|
---|
| 888 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 889 | infodir=$ac_optarg ;;
|
---|
| 890 |
|
---|
| 891 | -libdir | --libdir | --libdi | --libd)
|
---|
| 892 | ac_prev=libdir ;;
|
---|
| 893 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 894 | libdir=$ac_optarg ;;
|
---|
| 895 |
|
---|
| 896 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 897 | | --libexe | --libex | --libe)
|
---|
| 898 | ac_prev=libexecdir ;;
|
---|
| 899 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 900 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 901 | libexecdir=$ac_optarg ;;
|
---|
| 902 |
|
---|
[23356] | 903 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
| 904 | ac_prev=localedir ;;
|
---|
| 905 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
| 906 | localedir=$ac_optarg ;;
|
---|
| 907 |
|
---|
[3745] | 908 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[23356] | 909 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
[3745] | 910 | ac_prev=localstatedir ;;
|
---|
| 911 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[23356] | 912 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
[3745] | 913 | localstatedir=$ac_optarg ;;
|
---|
| 914 |
|
---|
| 915 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 916 | ac_prev=mandir ;;
|
---|
| 917 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 918 | mandir=$ac_optarg ;;
|
---|
| 919 |
|
---|
| 920 | -nfp | --nfp | --nf)
|
---|
| 921 | # Obsolete; use --without-fp.
|
---|
| 922 | with_fp=no ;;
|
---|
| 923 |
|
---|
| 924 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[10191] | 925 | | --no-cr | --no-c | -n)
|
---|
[3745] | 926 | no_create=yes ;;
|
---|
| 927 |
|
---|
| 928 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 929 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 930 | no_recursion=yes ;;
|
---|
| 931 |
|
---|
| 932 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 933 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 934 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 935 | ac_prev=oldincludedir ;;
|
---|
| 936 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 937 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 938 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 939 | oldincludedir=$ac_optarg ;;
|
---|
| 940 |
|
---|
| 941 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 942 | ac_prev=prefix ;;
|
---|
| 943 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 944 | prefix=$ac_optarg ;;
|
---|
| 945 |
|
---|
| 946 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 947 | | --program-pre | --program-pr | --program-p)
|
---|
| 948 | ac_prev=program_prefix ;;
|
---|
| 949 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 950 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 951 | program_prefix=$ac_optarg ;;
|
---|
| 952 |
|
---|
| 953 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 954 | | --program-suf | --program-su | --program-s)
|
---|
| 955 | ac_prev=program_suffix ;;
|
---|
| 956 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 957 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 958 | program_suffix=$ac_optarg ;;
|
---|
| 959 |
|
---|
| 960 | -program-transform-name | --program-transform-name \
|
---|
| 961 | | --program-transform-nam | --program-transform-na \
|
---|
| 962 | | --program-transform-n | --program-transform- \
|
---|
| 963 | | --program-transform | --program-transfor \
|
---|
| 964 | | --program-transfo | --program-transf \
|
---|
| 965 | | --program-trans | --program-tran \
|
---|
| 966 | | --progr-tra | --program-tr | --program-t)
|
---|
| 967 | ac_prev=program_transform_name ;;
|
---|
| 968 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 969 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 970 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 971 | | --program-transform=* | --program-transfor=* \
|
---|
| 972 | | --program-transfo=* | --program-transf=* \
|
---|
| 973 | | --program-trans=* | --program-tran=* \
|
---|
| 974 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 975 | program_transform_name=$ac_optarg ;;
|
---|
| 976 |
|
---|
[23356] | 977 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
| 978 | ac_prev=pdfdir ;;
|
---|
| 979 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
| 980 | pdfdir=$ac_optarg ;;
|
---|
| 981 |
|
---|
| 982 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
| 983 | ac_prev=psdir ;;
|
---|
| 984 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
| 985 | psdir=$ac_optarg ;;
|
---|
| 986 |
|
---|
[3745] | 987 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 988 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 989 | silent=yes ;;
|
---|
| 990 |
|
---|
| 991 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 992 | ac_prev=sbindir ;;
|
---|
| 993 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 994 | | --sbi=* | --sb=*)
|
---|
| 995 | sbindir=$ac_optarg ;;
|
---|
| 996 |
|
---|
| 997 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 998 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 999 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 1000 | | --sha | --sh)
|
---|
| 1001 | ac_prev=sharedstatedir ;;
|
---|
| 1002 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 1003 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 1004 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 1005 | | --sha=* | --sh=*)
|
---|
| 1006 | sharedstatedir=$ac_optarg ;;
|
---|
| 1007 |
|
---|
| 1008 | -site | --site | --sit)
|
---|
| 1009 | ac_prev=site ;;
|
---|
| 1010 | -site=* | --site=* | --sit=*)
|
---|
| 1011 | site=$ac_optarg ;;
|
---|
| 1012 |
|
---|
| 1013 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 1014 | ac_prev=srcdir ;;
|
---|
| 1015 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 1016 | srcdir=$ac_optarg ;;
|
---|
| 1017 |
|
---|
| 1018 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 1019 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 1020 | ac_prev=sysconfdir ;;
|
---|
| 1021 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 1022 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 1023 | sysconfdir=$ac_optarg ;;
|
---|
| 1024 |
|
---|
| 1025 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 1026 | ac_prev=target_alias ;;
|
---|
| 1027 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 1028 | target_alias=$ac_optarg ;;
|
---|
| 1029 |
|
---|
| 1030 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 1031 | verbose=yes ;;
|
---|
| 1032 |
|
---|
| 1033 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 1034 | ac_init_version=: ;;
|
---|
| 1035 |
|
---|
| 1036 | -with-* | --with-*)
|
---|
[23356] | 1037 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[3745] | 1038 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 1039 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25147] | 1040 | as_fn_error "invalid package name: $ac_useropt"
|
---|
[23356] | 1041 | ac_useropt_orig=$ac_useropt
|
---|
| 1042 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1043 | case $ac_user_opts in
|
---|
| 1044 | *"
|
---|
| 1045 | "with_$ac_useropt"
|
---|
| 1046 | "*) ;;
|
---|
| 1047 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
| 1048 | ac_unrecognized_sep=', ';;
|
---|
[3745] | 1049 | esac
|
---|
[23356] | 1050 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
[3745] | 1051 |
|
---|
| 1052 | -without-* | --without-*)
|
---|
[23356] | 1053 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[3745] | 1054 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 1055 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
[25147] | 1056 | as_fn_error "invalid package name: $ac_useropt"
|
---|
[23356] | 1057 | ac_useropt_orig=$ac_useropt
|
---|
| 1058 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1059 | case $ac_user_opts in
|
---|
| 1060 | *"
|
---|
| 1061 | "with_$ac_useropt"
|
---|
| 1062 | "*) ;;
|
---|
| 1063 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
| 1064 | ac_unrecognized_sep=', ';;
|
---|
| 1065 | esac
|
---|
| 1066 | eval with_$ac_useropt=no ;;
|
---|
[3745] | 1067 |
|
---|
| 1068 | --x)
|
---|
| 1069 | # Obsolete; use --with-x.
|
---|
| 1070 | with_x=yes ;;
|
---|
| 1071 |
|
---|
| 1072 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 1073 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 1074 | ac_prev=x_includes ;;
|
---|
| 1075 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 1076 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 1077 | x_includes=$ac_optarg ;;
|
---|
| 1078 |
|
---|
| 1079 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 1080 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 1081 | ac_prev=x_libraries ;;
|
---|
| 1082 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 1083 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 1084 | x_libraries=$ac_optarg ;;
|
---|
| 1085 |
|
---|
[25147] | 1086 | -*) as_fn_error "unrecognized option: \`$ac_option'
|
---|
| 1087 | Try \`$0 --help' for more information."
|
---|
[3745] | 1088 | ;;
|
---|
| 1089 |
|
---|
| 1090 | *=*)
|
---|
| 1091 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 1092 | # Reject names that are not valid shell variable names.
|
---|
[23356] | 1093 | case $ac_envvar in #(
|
---|
| 1094 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
[25147] | 1095 | as_fn_error "invalid variable name: \`$ac_envvar'" ;;
|
---|
[23356] | 1096 | esac
|
---|
| 1097 | eval $ac_envvar=\$ac_optarg
|
---|
[3745] | 1098 | export $ac_envvar ;;
|
---|
| 1099 |
|
---|
| 1100 | *)
|
---|
| 1101 | # FIXME: should be removed in autoconf 3.0.
|
---|
[23356] | 1102 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[10191] | 1103 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[23356] | 1104 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
[3745] | 1105 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
| 1106 | ;;
|
---|
| 1107 |
|
---|
| 1108 | esac
|
---|
| 1109 | done
|
---|
| 1110 |
|
---|
| 1111 | if test -n "$ac_prev"; then
|
---|
| 1112 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
[25147] | 1113 | as_fn_error "missing argument to $ac_option"
|
---|
[3745] | 1114 | fi
|
---|
| 1115 |
|
---|
[23356] | 1116 | if test -n "$ac_unrecognized_opts"; then
|
---|
| 1117 | case $enable_option_checking in
|
---|
| 1118 | no) ;;
|
---|
[25147] | 1119 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
[23356] | 1120 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
[10191] | 1121 | esac
|
---|
[23356] | 1122 | fi
|
---|
[10191] | 1123 |
|
---|
[23356] | 1124 | # Check all directory arguments for consistency.
|
---|
| 1125 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
| 1126 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
| 1127 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
| 1128 | libdir localedir mandir
|
---|
[3745] | 1129 | do
|
---|
[23356] | 1130 | eval ac_val=\$$ac_var
|
---|
| 1131 | # Remove trailing slashes.
|
---|
[3745] | 1132 | case $ac_val in
|
---|
[23356] | 1133 | */ )
|
---|
| 1134 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
| 1135 | eval $ac_var=\$ac_val;;
|
---|
[3745] | 1136 | esac
|
---|
[23356] | 1137 | # Be sure to have absolute directory names.
|
---|
| 1138 | case $ac_val in
|
---|
| 1139 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
| 1140 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
| 1141 | esac
|
---|
[25147] | 1142 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
[3745] | 1143 | done
|
---|
| 1144 |
|
---|
| 1145 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 1146 | # used to hold the argument of --host etc.
|
---|
[10191] | 1147 | # FIXME: To remove some day.
|
---|
[3745] | 1148 | build=$build_alias
|
---|
| 1149 | host=$host_alias
|
---|
| 1150 | target=$target_alias
|
---|
| 1151 |
|
---|
[10191] | 1152 | # FIXME: To remove some day.
|
---|
[3745] | 1153 | if test "x$host_alias" != x; then
|
---|
| 1154 | if test "x$build_alias" = x; then
|
---|
| 1155 | cross_compiling=maybe
|
---|
[25147] | 1156 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 1157 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
[3745] | 1158 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 1159 | cross_compiling=yes
|
---|
| 1160 | fi
|
---|
| 1161 | fi
|
---|
| 1162 |
|
---|
| 1163 | ac_tool_prefix=
|
---|
| 1164 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
| 1165 |
|
---|
| 1166 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 1167 |
|
---|
[10191] | 1168 |
|
---|
[23356] | 1169 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
| 1170 | ac_ls_di=`ls -di .` &&
|
---|
| 1171 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
[25147] | 1172 | as_fn_error "working directory cannot be determined"
|
---|
[23356] | 1173 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
[25147] | 1174 | as_fn_error "pwd does not report name of working directory"
|
---|
[23356] | 1175 |
|
---|
| 1176 |
|
---|
[3745] | 1177 | # Find the source files, if location was not specified.
|
---|
| 1178 | if test -z "$srcdir"; then
|
---|
| 1179 | ac_srcdir_defaulted=yes
|
---|
[23356] | 1180 | # Try the directory containing this script, then the parent directory.
|
---|
| 1181 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
| 1182 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 1183 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
| 1184 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
| 1185 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 1186 | $as_echo X"$as_myself" |
|
---|
| 1187 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 1188 | s//\1/
|
---|
| 1189 | q
|
---|
| 1190 | }
|
---|
| 1191 | /^X\(\/\/\)[^/].*/{
|
---|
| 1192 | s//\1/
|
---|
| 1193 | q
|
---|
| 1194 | }
|
---|
| 1195 | /^X\(\/\/\)$/{
|
---|
| 1196 | s//\1/
|
---|
| 1197 | q
|
---|
| 1198 | }
|
---|
| 1199 | /^X\(\/\).*/{
|
---|
| 1200 | s//\1/
|
---|
| 1201 | q
|
---|
| 1202 | }
|
---|
| 1203 | s/.*/./; q'`
|
---|
[3745] | 1204 | srcdir=$ac_confdir
|
---|
[23356] | 1205 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
[3745] | 1206 | srcdir=..
|
---|
| 1207 | fi
|
---|
| 1208 | else
|
---|
| 1209 | ac_srcdir_defaulted=no
|
---|
| 1210 | fi
|
---|
[23356] | 1211 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1212 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
[25147] | 1213 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
[3745] | 1214 | fi
|
---|
[23356] | 1215 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
| 1216 | ac_abs_confdir=`(
|
---|
[25147] | 1217 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
|
---|
[23356] | 1218 | pwd)`
|
---|
| 1219 | # When building in place, set srcdir=.
|
---|
| 1220 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
| 1221 | srcdir=.
|
---|
| 1222 | fi
|
---|
| 1223 | # Remove unnecessary trailing slashes from srcdir.
|
---|
| 1224 | # Double slashes in file names in object file debugging info
|
---|
| 1225 | # mess up M-x gdb in Emacs.
|
---|
| 1226 | case $srcdir in
|
---|
| 1227 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
| 1228 | esac
|
---|
| 1229 | for ac_var in $ac_precious_vars; do
|
---|
| 1230 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1231 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
| 1232 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1233 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
| 1234 | done
|
---|
[3745] | 1235 |
|
---|
| 1236 | #
|
---|
| 1237 | # Report the --help message.
|
---|
| 1238 | #
|
---|
| 1239 | if test "$ac_init_help" = "long"; then
|
---|
| 1240 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 1241 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
[10191] | 1242 | cat <<_ACEOF
|
---|
[3745] | 1243 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 1244 |
|
---|
| 1245 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 1246 |
|
---|
| 1247 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 1248 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 1249 |
|
---|
| 1250 | Defaults for the options are specified in brackets.
|
---|
| 1251 |
|
---|
| 1252 | Configuration:
|
---|
| 1253 | -h, --help display this help and exit
|
---|
| 1254 | --help=short display options specific to this package
|
---|
| 1255 | --help=recursive display the short help of all the included packages
|
---|
| 1256 | -V, --version display version information and exit
|
---|
[25147] | 1257 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
[3745] | 1258 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 1259 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 1260 | -n, --no-create do not create output files
|
---|
| 1261 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 1262 |
|
---|
| 1263 | Installation directories:
|
---|
| 1264 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[23356] | 1265 | [$ac_default_prefix]
|
---|
[3745] | 1266 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[23356] | 1267 | [PREFIX]
|
---|
[3745] | 1268 |
|
---|
| 1269 | By default, \`make install' will install all the files in
|
---|
| 1270 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 1271 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 1272 | for instance \`--prefix=\$HOME'.
|
---|
| 1273 |
|
---|
| 1274 | For better control, use the options below.
|
---|
| 1275 |
|
---|
| 1276 | Fine tuning of the installation directories:
|
---|
[23356] | 1277 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 1278 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 1279 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 1280 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 1281 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 1282 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 1283 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 1284 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 1285 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 1286 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
| 1287 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
| 1288 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
| 1289 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
| 1290 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
| 1291 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
| 1292 | --htmldir=DIR html documentation [DOCDIR]
|
---|
| 1293 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
| 1294 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
| 1295 | --psdir=DIR ps documentation [DOCDIR]
|
---|
[10191] | 1296 | _ACEOF
|
---|
[3745] | 1297 |
|
---|
[10191] | 1298 | cat <<\_ACEOF
|
---|
[3745] | 1299 |
|
---|
| 1300 | Program names:
|
---|
| 1301 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
| 1302 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
| 1303 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
[15560] | 1304 |
|
---|
| 1305 | System types:
|
---|
| 1306 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 1307 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 1308 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
[10191] | 1309 | _ACEOF
|
---|
[3745] | 1310 | fi
|
---|
| 1311 |
|
---|
| 1312 | if test -n "$ac_init_help"; then
|
---|
| 1313 |
|
---|
[10191] | 1314 | cat <<\_ACEOF
|
---|
[3745] | 1315 |
|
---|
[23356] | 1316 | Optional Features:
|
---|
| 1317 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
| 1318 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 1319 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 1320 | --disable-java Disable Java compilation
|
---|
| 1321 |
|
---|
[3745] | 1322 | Optional Packages:
|
---|
| 1323 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 1324 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 1325 | --with-dmalloc use dmalloc, as in
|
---|
| 1326 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 1327 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 1328 |
|
---|
| 1329 | Some influential environment variables:
|
---|
| 1330 | CXX C++ compiler command
|
---|
| 1331 | CXXFLAGS C++ compiler flags
|
---|
| 1332 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 1333 | nonstandard directory <lib dir>
|
---|
[23356] | 1334 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
| 1335 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
| 1336 | you have headers in a nonstandard directory <include dir>
|
---|
| 1337 | YACC The `Yet Another C Compiler' implementation to use. Defaults to
|
---|
| 1338 | the first program found out of: `bison -y', `byacc', `yacc'.
|
---|
| 1339 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
| 1340 | This script will default YFLAGS to the empty string to avoid a
|
---|
| 1341 | default value of `-d' given by some make applications.
|
---|
[3745] | 1342 | CC C compiler command
|
---|
| 1343 | CFLAGS C compiler flags
|
---|
| 1344 | CPP C preprocessor
|
---|
| 1345 |
|
---|
| 1346 | Use these variables to override the choices made by `configure' or to help
|
---|
| 1347 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 1348 |
|
---|
[23356] | 1349 | Report bugs to the package provider.
|
---|
[10191] | 1350 | _ACEOF
|
---|
[23356] | 1351 | ac_status=$?
|
---|
[3745] | 1352 | fi
|
---|
| 1353 |
|
---|
| 1354 | if test "$ac_init_help" = "recursive"; then
|
---|
| 1355 | # If there are subdirs, report their specific --help.
|
---|
[10191] | 1356 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[23356] | 1357 | test -d "$ac_dir" ||
|
---|
| 1358 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
| 1359 | continue
|
---|
[10191] | 1360 | ac_builddir=.
|
---|
[3745] | 1361 |
|
---|
[23356] | 1362 | case "$ac_dir" in
|
---|
| 1363 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1364 | *)
|
---|
| 1365 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 1366 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 1367 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 1368 | case $ac_top_builddir_sub in
|
---|
| 1369 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1370 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 1371 | esac ;;
|
---|
| 1372 | esac
|
---|
| 1373 | ac_abs_top_builddir=$ac_pwd
|
---|
| 1374 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 1375 | # for backward compatibility:
|
---|
| 1376 | ac_top_builddir=$ac_top_build_prefix
|
---|
[3745] | 1377 |
|
---|
[10191] | 1378 | case $srcdir in
|
---|
[23356] | 1379 | .) # We are building in place.
|
---|
[10191] | 1380 | ac_srcdir=.
|
---|
[23356] | 1381 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 1382 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 1383 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[10191] | 1384 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[23356] | 1385 | ac_top_srcdir=$srcdir
|
---|
| 1386 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 1387 | *) # Relative name.
|
---|
| 1388 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 1389 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 1390 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[10191] | 1391 | esac
|
---|
[23356] | 1392 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[10191] | 1393 |
|
---|
[23356] | 1394 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
| 1395 | # Check for guested configure.
|
---|
| 1396 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 1397 | echo &&
|
---|
| 1398 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
| 1399 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 1400 | echo &&
|
---|
| 1401 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
[3745] | 1402 | else
|
---|
[23356] | 1403 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 1404 | fi || ac_status=$?
|
---|
| 1405 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
[3745] | 1406 | done
|
---|
| 1407 | fi
|
---|
| 1408 |
|
---|
[23356] | 1409 | test -n "$ac_init_help" && exit $ac_status
|
---|
[3745] | 1410 | if $ac_init_version; then
|
---|
[10191] | 1411 | cat <<\_ACEOF
|
---|
[23356] | 1412 | configure
|
---|
[25147] | 1413 | generated by GNU Autoconf 2.65
|
---|
[3745] | 1414 |
|
---|
[25147] | 1415 | Copyright (C) 2009 Free Software Foundation, Inc.
|
---|
[3745] | 1416 | This configure script is free software; the Free Software Foundation
|
---|
| 1417 | gives unlimited permission to copy, distribute and modify it.
|
---|
[10191] | 1418 | _ACEOF
|
---|
[23356] | 1419 | exit
|
---|
[3745] | 1420 | fi
|
---|
[23356] | 1421 |
|
---|
| 1422 | ## ------------------------ ##
|
---|
| 1423 | ## Autoconf initialization. ##
|
---|
| 1424 | ## ------------------------ ##
|
---|
| 1425 |
|
---|
| 1426 | # ac_fn_cxx_try_compile LINENO
|
---|
| 1427 | # ----------------------------
|
---|
| 1428 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1429 | ac_fn_cxx_try_compile ()
|
---|
| 1430 | {
|
---|
| 1431 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1432 | rm -f conftest.$ac_objext
|
---|
| 1433 | if { { ac_try="$ac_compile"
|
---|
| 1434 | case "(($ac_try" in
|
---|
| 1435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1436 | *) ac_try_echo=$ac_try;;
|
---|
| 1437 | esac
|
---|
| 1438 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1439 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1440 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1441 | ac_status=$?
|
---|
| 1442 | if test -s conftest.err; then
|
---|
| 1443 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1444 | cat conftest.er1 >&5
|
---|
| 1445 | mv -f conftest.er1 conftest.err
|
---|
| 1446 | fi
|
---|
| 1447 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1448 | test $ac_status = 0; } && {
|
---|
| 1449 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 1450 | test ! -s conftest.err
|
---|
| 1451 | } && test -s conftest.$ac_objext; then :
|
---|
| 1452 | ac_retval=0
|
---|
| 1453 | else
|
---|
| 1454 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1455 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1456 |
|
---|
| 1457 | ac_retval=1
|
---|
| 1458 | fi
|
---|
| 1459 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1460 | as_fn_set_status $ac_retval
|
---|
| 1461 |
|
---|
| 1462 | } # ac_fn_cxx_try_compile
|
---|
| 1463 |
|
---|
| 1464 | # ac_fn_c_try_compile LINENO
|
---|
| 1465 | # --------------------------
|
---|
| 1466 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1467 | ac_fn_c_try_compile ()
|
---|
| 1468 | {
|
---|
| 1469 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1470 | rm -f conftest.$ac_objext
|
---|
| 1471 | if { { ac_try="$ac_compile"
|
---|
| 1472 | case "(($ac_try" in
|
---|
| 1473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1474 | *) ac_try_echo=$ac_try;;
|
---|
| 1475 | esac
|
---|
| 1476 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1477 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1478 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1479 | ac_status=$?
|
---|
| 1480 | if test -s conftest.err; then
|
---|
| 1481 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1482 | cat conftest.er1 >&5
|
---|
| 1483 | mv -f conftest.er1 conftest.err
|
---|
| 1484 | fi
|
---|
| 1485 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1486 | test $ac_status = 0; } && {
|
---|
| 1487 | test -z "$ac_c_werror_flag" ||
|
---|
| 1488 | test ! -s conftest.err
|
---|
| 1489 | } && test -s conftest.$ac_objext; then :
|
---|
| 1490 | ac_retval=0
|
---|
| 1491 | else
|
---|
| 1492 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1493 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1494 |
|
---|
| 1495 | ac_retval=1
|
---|
| 1496 | fi
|
---|
| 1497 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1498 | as_fn_set_status $ac_retval
|
---|
| 1499 |
|
---|
| 1500 | } # ac_fn_c_try_compile
|
---|
| 1501 |
|
---|
| 1502 | # ac_fn_c_try_cpp LINENO
|
---|
| 1503 | # ----------------------
|
---|
| 1504 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1505 | ac_fn_c_try_cpp ()
|
---|
| 1506 | {
|
---|
| 1507 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1508 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 1509 | case "(($ac_try" in
|
---|
| 1510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1511 | *) ac_try_echo=$ac_try;;
|
---|
| 1512 | esac
|
---|
| 1513 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1514 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1515 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
| 1516 | ac_status=$?
|
---|
| 1517 | if test -s conftest.err; then
|
---|
| 1518 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1519 | cat conftest.er1 >&5
|
---|
| 1520 | mv -f conftest.er1 conftest.err
|
---|
| 1521 | fi
|
---|
| 1522 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
[25147] | 1523 | test $ac_status = 0; } >/dev/null && {
|
---|
[23356] | 1524 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 1525 | test ! -s conftest.err
|
---|
| 1526 | }; then :
|
---|
| 1527 | ac_retval=0
|
---|
| 1528 | else
|
---|
| 1529 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1530 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1531 |
|
---|
| 1532 | ac_retval=1
|
---|
| 1533 | fi
|
---|
| 1534 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1535 | as_fn_set_status $ac_retval
|
---|
| 1536 |
|
---|
| 1537 | } # ac_fn_c_try_cpp
|
---|
| 1538 |
|
---|
| 1539 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
| 1540 | # -------------------------------------------------------
|
---|
| 1541 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
| 1542 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
| 1543 | # accordingly.
|
---|
| 1544 | ac_fn_c_check_header_mongrel ()
|
---|
| 1545 | {
|
---|
| 1546 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
[25147] | 1547 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[23356] | 1548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1549 | $as_echo_n "checking for $2... " >&6; }
|
---|
[25147] | 1550 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[23356] | 1551 | $as_echo_n "(cached) " >&6
|
---|
| 1552 | fi
|
---|
| 1553 | eval ac_res=\$$3
|
---|
| 1554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1555 | $as_echo "$ac_res" >&6; }
|
---|
| 1556 | else
|
---|
| 1557 | # Is the header compilable?
|
---|
| 1558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
| 1559 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
| 1560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1561 | /* end confdefs.h. */
|
---|
| 1562 | $4
|
---|
| 1563 | #include <$2>
|
---|
| 1564 | _ACEOF
|
---|
| 1565 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1566 | ac_header_compiler=yes
|
---|
| 1567 | else
|
---|
| 1568 | ac_header_compiler=no
|
---|
| 1569 | fi
|
---|
| 1570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
| 1572 | $as_echo "$ac_header_compiler" >&6; }
|
---|
| 1573 |
|
---|
| 1574 | # Is the header present?
|
---|
| 1575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
| 1576 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
| 1577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1578 | /* end confdefs.h. */
|
---|
| 1579 | #include <$2>
|
---|
| 1580 | _ACEOF
|
---|
| 1581 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 1582 | ac_header_preproc=yes
|
---|
| 1583 | else
|
---|
| 1584 | ac_header_preproc=no
|
---|
| 1585 | fi
|
---|
[25147] | 1586 | rm -f conftest.err conftest.$ac_ext
|
---|
[23356] | 1587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
| 1588 | $as_echo "$ac_header_preproc" >&6; }
|
---|
| 1589 |
|
---|
| 1590 | # So? What about this header?
|
---|
| 1591 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
| 1592 | yes:no: )
|
---|
| 1593 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 1594 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 1595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1596 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1597 | ;;
|
---|
| 1598 | no:yes:* )
|
---|
| 1599 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
| 1600 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
| 1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
| 1602 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
| 1603 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
| 1604 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
| 1605 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 1606 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 1607 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1608 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1609 | ;;
|
---|
| 1610 | esac
|
---|
| 1611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1612 | $as_echo_n "checking for $2... " >&6; }
|
---|
[25147] | 1613 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[23356] | 1614 | $as_echo_n "(cached) " >&6
|
---|
| 1615 | else
|
---|
| 1616 | eval "$3=\$ac_header_compiler"
|
---|
| 1617 | fi
|
---|
| 1618 | eval ac_res=\$$3
|
---|
| 1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1620 | $as_echo "$ac_res" >&6; }
|
---|
| 1621 | fi
|
---|
| 1622 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1623 |
|
---|
| 1624 | } # ac_fn_c_check_header_mongrel
|
---|
| 1625 |
|
---|
| 1626 | # ac_fn_c_try_run LINENO
|
---|
| 1627 | # ----------------------
|
---|
| 1628 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
| 1629 | # that executables *can* be run.
|
---|
| 1630 | ac_fn_c_try_run ()
|
---|
| 1631 | {
|
---|
| 1632 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1633 | if { { ac_try="$ac_link"
|
---|
| 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 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1640 | (eval "$ac_link") 2>&5
|
---|
| 1641 | ac_status=$?
|
---|
| 1642 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1643 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
| 1644 | { { case "(($ac_try" in
|
---|
| 1645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1646 | *) ac_try_echo=$ac_try;;
|
---|
| 1647 | esac
|
---|
| 1648 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1649 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1650 | (eval "$ac_try") 2>&5
|
---|
| 1651 | ac_status=$?
|
---|
| 1652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1653 | test $ac_status = 0; }; }; then :
|
---|
| 1654 | ac_retval=0
|
---|
| 1655 | else
|
---|
| 1656 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 1657 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1658 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1659 |
|
---|
| 1660 | ac_retval=$ac_status
|
---|
| 1661 | fi
|
---|
| 1662 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1663 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1664 | as_fn_set_status $ac_retval
|
---|
| 1665 |
|
---|
| 1666 | } # ac_fn_c_try_run
|
---|
| 1667 |
|
---|
| 1668 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
| 1669 | # -------------------------------------------------------
|
---|
| 1670 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
| 1671 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
| 1672 | ac_fn_c_check_header_compile ()
|
---|
| 1673 | {
|
---|
| 1674 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1676 | $as_echo_n "checking for $2... " >&6; }
|
---|
[25147] | 1677 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[23356] | 1678 | $as_echo_n "(cached) " >&6
|
---|
| 1679 | else
|
---|
| 1680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1681 | /* end confdefs.h. */
|
---|
| 1682 | $4
|
---|
| 1683 | #include <$2>
|
---|
| 1684 | _ACEOF
|
---|
| 1685 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1686 | eval "$3=yes"
|
---|
| 1687 | else
|
---|
| 1688 | eval "$3=no"
|
---|
| 1689 | fi
|
---|
| 1690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1691 | fi
|
---|
| 1692 | eval ac_res=\$$3
|
---|
| 1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1694 | $as_echo "$ac_res" >&6; }
|
---|
| 1695 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1696 |
|
---|
| 1697 | } # ac_fn_c_check_header_compile
|
---|
| 1698 |
|
---|
| 1699 | # ac_fn_c_try_link LINENO
|
---|
| 1700 | # -----------------------
|
---|
| 1701 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1702 | ac_fn_c_try_link ()
|
---|
| 1703 | {
|
---|
| 1704 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1705 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 1706 | if { { ac_try="$ac_link"
|
---|
| 1707 | case "(($ac_try" in
|
---|
| 1708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1709 | *) ac_try_echo=$ac_try;;
|
---|
| 1710 | esac
|
---|
| 1711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1712 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1713 | (eval "$ac_link") 2>conftest.err
|
---|
| 1714 | ac_status=$?
|
---|
| 1715 | if test -s conftest.err; then
|
---|
| 1716 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1717 | cat conftest.er1 >&5
|
---|
| 1718 | mv -f conftest.er1 conftest.err
|
---|
| 1719 | fi
|
---|
| 1720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1721 | test $ac_status = 0; } && {
|
---|
| 1722 | test -z "$ac_c_werror_flag" ||
|
---|
| 1723 | test ! -s conftest.err
|
---|
| 1724 | } && test -s conftest$ac_exeext && {
|
---|
| 1725 | test "$cross_compiling" = yes ||
|
---|
| 1726 | $as_test_x conftest$ac_exeext
|
---|
| 1727 | }; then :
|
---|
| 1728 | ac_retval=0
|
---|
| 1729 | else
|
---|
| 1730 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1731 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1732 |
|
---|
| 1733 | ac_retval=1
|
---|
| 1734 | fi
|
---|
| 1735 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
| 1736 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
| 1737 | # interfere with the next link command; also delete a directory that is
|
---|
| 1738 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
| 1739 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1740 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1741 | as_fn_set_status $ac_retval
|
---|
| 1742 |
|
---|
| 1743 | } # ac_fn_c_try_link
|
---|
| 1744 |
|
---|
| 1745 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
| 1746 | # -------------------------------------------
|
---|
| 1747 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
| 1748 | # variable VAR accordingly.
|
---|
| 1749 | ac_fn_c_check_type ()
|
---|
| 1750 | {
|
---|
| 1751 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1753 | $as_echo_n "checking for $2... " >&6; }
|
---|
[25147] | 1754 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[23356] | 1755 | $as_echo_n "(cached) " >&6
|
---|
| 1756 | else
|
---|
| 1757 | eval "$3=no"
|
---|
| 1758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1759 | /* end confdefs.h. */
|
---|
| 1760 | $4
|
---|
| 1761 | int
|
---|
| 1762 | main ()
|
---|
| 1763 | {
|
---|
| 1764 | if (sizeof ($2))
|
---|
| 1765 | return 0;
|
---|
| 1766 | ;
|
---|
| 1767 | return 0;
|
---|
| 1768 | }
|
---|
| 1769 | _ACEOF
|
---|
| 1770 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1772 | /* end confdefs.h. */
|
---|
| 1773 | $4
|
---|
| 1774 | int
|
---|
| 1775 | main ()
|
---|
| 1776 | {
|
---|
| 1777 | if (sizeof (($2)))
|
---|
| 1778 | return 0;
|
---|
| 1779 | ;
|
---|
| 1780 | return 0;
|
---|
| 1781 | }
|
---|
| 1782 | _ACEOF
|
---|
| 1783 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1784 |
|
---|
| 1785 | else
|
---|
| 1786 | eval "$3=yes"
|
---|
| 1787 | fi
|
---|
| 1788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1789 | fi
|
---|
| 1790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1791 | fi
|
---|
| 1792 | eval ac_res=\$$3
|
---|
| 1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1794 | $as_echo "$ac_res" >&6; }
|
---|
| 1795 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1796 |
|
---|
| 1797 | } # ac_fn_c_check_type
|
---|
| 1798 |
|
---|
| 1799 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
| 1800 | # ----------------------------------
|
---|
| 1801 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
| 1802 | ac_fn_c_check_func ()
|
---|
| 1803 | {
|
---|
| 1804 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1806 | $as_echo_n "checking for $2... " >&6; }
|
---|
[25147] | 1807 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[23356] | 1808 | $as_echo_n "(cached) " >&6
|
---|
| 1809 | else
|
---|
| 1810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1811 | /* end confdefs.h. */
|
---|
| 1812 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
| 1813 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 1814 | #define $2 innocuous_$2
|
---|
| 1815 |
|
---|
| 1816 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 1817 | which can conflict with char $2 (); below.
|
---|
| 1818 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 1819 | <limits.h> exists even on freestanding compilers. */
|
---|
| 1820 |
|
---|
| 1821 | #ifdef __STDC__
|
---|
| 1822 | # include <limits.h>
|
---|
| 1823 | #else
|
---|
| 1824 | # include <assert.h>
|
---|
| 1825 | #endif
|
---|
| 1826 |
|
---|
| 1827 | #undef $2
|
---|
| 1828 |
|
---|
| 1829 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 1830 | Use char because int might match the return type of a GCC
|
---|
| 1831 | builtin and then its argument prototype would still apply. */
|
---|
| 1832 | #ifdef __cplusplus
|
---|
| 1833 | extern "C"
|
---|
| 1834 | #endif
|
---|
| 1835 | char $2 ();
|
---|
| 1836 | /* The GNU C library defines this for functions which it implements
|
---|
| 1837 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 1838 | something starting with __ and the normal name is an alias. */
|
---|
| 1839 | #if defined __stub_$2 || defined __stub___$2
|
---|
| 1840 | choke me
|
---|
| 1841 | #endif
|
---|
| 1842 |
|
---|
| 1843 | int
|
---|
| 1844 | main ()
|
---|
| 1845 | {
|
---|
| 1846 | return $2 ();
|
---|
| 1847 | ;
|
---|
| 1848 | return 0;
|
---|
| 1849 | }
|
---|
| 1850 | _ACEOF
|
---|
| 1851 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 1852 | eval "$3=yes"
|
---|
| 1853 | else
|
---|
| 1854 | eval "$3=no"
|
---|
| 1855 | fi
|
---|
| 1856 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 1857 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 1858 | fi
|
---|
| 1859 | eval ac_res=\$$3
|
---|
| 1860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1861 | $as_echo "$ac_res" >&6; }
|
---|
| 1862 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1863 |
|
---|
| 1864 | } # ac_fn_c_check_func
|
---|
| 1865 | cat >config.log <<_ACEOF
|
---|
[3745] | 1866 | This file contains any messages produced by compilers while
|
---|
| 1867 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 1868 |
|
---|
| 1869 | It was created by $as_me, which was
|
---|
[25147] | 1870 | generated by GNU Autoconf 2.65. Invocation command line was
|
---|
[3745] | 1871 |
|
---|
| 1872 | $ $0 $@
|
---|
| 1873 |
|
---|
[10191] | 1874 | _ACEOF
|
---|
[23356] | 1875 | exec 5>>config.log
|
---|
[3745] | 1876 | {
|
---|
| 1877 | cat <<_ASUNAME
|
---|
[10191] | 1878 | ## --------- ##
|
---|
| 1879 | ## Platform. ##
|
---|
| 1880 | ## --------- ##
|
---|
[3745] | 1881 |
|
---|
| 1882 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1883 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1884 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1885 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1886 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1887 |
|
---|
| 1888 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1889 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1890 |
|
---|
| 1891 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1892 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1893 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[23356] | 1894 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
[3745] | 1895 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1896 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1897 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1898 |
|
---|
[10191] | 1899 | _ASUNAME
|
---|
[3745] | 1900 |
|
---|
[10191] | 1901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1902 | for as_dir in $PATH
|
---|
| 1903 | do
|
---|
| 1904 | IFS=$as_save_IFS
|
---|
| 1905 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 1906 | $as_echo "PATH: $as_dir"
|
---|
| 1907 | done
|
---|
| 1908 | IFS=$as_save_IFS
|
---|
[10191] | 1909 |
|
---|
[3745] | 1910 | } >&5
|
---|
| 1911 |
|
---|
[10191] | 1912 | cat >&5 <<_ACEOF
|
---|
[3745] | 1913 |
|
---|
| 1914 |
|
---|
[10191] | 1915 | ## ----------- ##
|
---|
| 1916 | ## Core tests. ##
|
---|
| 1917 | ## ----------- ##
|
---|
| 1918 |
|
---|
| 1919 | _ACEOF
|
---|
| 1920 |
|
---|
| 1921 |
|
---|
[3745] | 1922 | # Keep a trace of the command line.
|
---|
| 1923 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
[10191] | 1924 | # Strip out --silent because we don't want to record it for future runs.
|
---|
[3745] | 1925 | # Also quote any args containing shell meta-characters.
|
---|
[10191] | 1926 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
[3745] | 1927 | ac_configure_args=
|
---|
[10191] | 1928 | ac_configure_args0=
|
---|
| 1929 | ac_configure_args1=
|
---|
| 1930 | ac_must_keep_next=false
|
---|
| 1931 | for ac_pass in 1 2
|
---|
[3745] | 1932 | do
|
---|
[10191] | 1933 | for ac_arg
|
---|
| 1934 | do
|
---|
| 1935 | case $ac_arg in
|
---|
| 1936 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1937 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1938 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1939 | continue ;;
|
---|
[23356] | 1940 | *\'*)
|
---|
| 1941 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[10191] | 1942 | esac
|
---|
| 1943 | case $ac_pass in
|
---|
[23356] | 1944 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
[10191] | 1945 | 2)
|
---|
[23356] | 1946 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
[10191] | 1947 | if test $ac_must_keep_next = true; then
|
---|
| 1948 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1949 | else
|
---|
| 1950 | case $ac_arg in
|
---|
| 1951 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1952 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1953 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1954 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1955 | case "$ac_configure_args0 " in
|
---|
| 1956 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1957 | esac
|
---|
| 1958 | ;;
|
---|
| 1959 | -* ) ac_must_keep_next=true ;;
|
---|
| 1960 | esac
|
---|
| 1961 | fi
|
---|
[23356] | 1962 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
[10191] | 1963 | ;;
|
---|
| 1964 | esac
|
---|
| 1965 | done
|
---|
[3745] | 1966 | done
|
---|
[23356] | 1967 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
| 1968 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
[3745] | 1969 |
|
---|
| 1970 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1971 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1972 | # would cause problems or look ugly.
|
---|
[23356] | 1973 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
| 1974 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
[3745] | 1975 | trap 'exit_status=$?
|
---|
| 1976 | # Save into config.log some information that might help in debugging.
|
---|
[10191] | 1977 | {
|
---|
| 1978 | echo
|
---|
| 1979 |
|
---|
[25147] | 1980 | cat <<\_ASBOX
|
---|
| 1981 | ## ---------------- ##
|
---|
[10191] | 1982 | ## Cache variables. ##
|
---|
[25147] | 1983 | ## ---------------- ##
|
---|
| 1984 | _ASBOX
|
---|
[10191] | 1985 | echo
|
---|
| 1986 | # The following way of writing the cache mishandles newlines in values,
|
---|
[23356] | 1987 | (
|
---|
| 1988 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
| 1989 | eval ac_val=\$$ac_var
|
---|
| 1990 | case $ac_val in #(
|
---|
| 1991 | *${as_nl}*)
|
---|
| 1992 | case $ac_var in #(
|
---|
| 1993 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
| 1994 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 1995 | esac
|
---|
| 1996 | case $ac_var in #(
|
---|
| 1997 | _ | IFS | as_nl) ;; #(
|
---|
| 1998 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
| 1999 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
| 2000 | esac ;;
|
---|
| 2001 | esac
|
---|
| 2002 | done
|
---|
[3745] | 2003 | (set) 2>&1 |
|
---|
[23356] | 2004 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
| 2005 | *${as_nl}ac_space=\ *)
|
---|
[3745] | 2006 | sed -n \
|
---|
[23356] | 2007 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
| 2008 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
| 2009 | ;; #(
|
---|
[3745] | 2010 | *)
|
---|
[23356] | 2011 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[3745] | 2012 | ;;
|
---|
[23356] | 2013 | esac |
|
---|
| 2014 | sort
|
---|
| 2015 | )
|
---|
[10191] | 2016 | echo
|
---|
| 2017 |
|
---|
[25147] | 2018 | cat <<\_ASBOX
|
---|
| 2019 | ## ----------------- ##
|
---|
[10191] | 2020 | ## Output variables. ##
|
---|
[25147] | 2021 | ## ----------------- ##
|
---|
| 2022 | _ASBOX
|
---|
[10191] | 2023 | echo
|
---|
| 2024 | for ac_var in $ac_subst_vars
|
---|
| 2025 | do
|
---|
[23356] | 2026 | eval ac_val=\$$ac_var
|
---|
| 2027 | case $ac_val in
|
---|
| 2028 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2029 | esac
|
---|
| 2030 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[10191] | 2031 | done | sort
|
---|
| 2032 | echo
|
---|
| 2033 |
|
---|
| 2034 | if test -n "$ac_subst_files"; then
|
---|
[25147] | 2035 | cat <<\_ASBOX
|
---|
| 2036 | ## ------------------- ##
|
---|
[23356] | 2037 | ## File substitutions. ##
|
---|
[25147] | 2038 | ## ------------------- ##
|
---|
| 2039 | _ASBOX
|
---|
[10191] | 2040 | echo
|
---|
| 2041 | for ac_var in $ac_subst_files
|
---|
| 2042 | do
|
---|
[23356] | 2043 | eval ac_val=\$$ac_var
|
---|
| 2044 | case $ac_val in
|
---|
| 2045 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2046 | esac
|
---|
| 2047 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[10191] | 2048 | done | sort
|
---|
| 2049 | echo
|
---|
| 2050 | fi
|
---|
| 2051 |
|
---|
| 2052 | if test -s confdefs.h; then
|
---|
[25147] | 2053 | cat <<\_ASBOX
|
---|
| 2054 | ## ----------- ##
|
---|
[10191] | 2055 | ## confdefs.h. ##
|
---|
[25147] | 2056 | ## ----------- ##
|
---|
| 2057 | _ASBOX
|
---|
[10191] | 2058 | echo
|
---|
[23356] | 2059 | cat confdefs.h
|
---|
[10191] | 2060 | echo
|
---|
| 2061 | fi
|
---|
| 2062 | test "$ac_signal" != 0 &&
|
---|
[23356] | 2063 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
| 2064 | $as_echo "$as_me: exit $exit_status"
|
---|
[10191] | 2065 | } >&5
|
---|
[23356] | 2066 | rm -f core *.core core.conftest.* &&
|
---|
| 2067 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[3745] | 2068 | exit $exit_status
|
---|
[23356] | 2069 | ' 0
|
---|
[3745] | 2070 | for ac_signal in 1 2 13 15; do
|
---|
[23356] | 2071 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
[3745] | 2072 | done
|
---|
| 2073 | ac_signal=0
|
---|
| 2074 |
|
---|
| 2075 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[23356] | 2076 | rm -f -r conftest* confdefs.h
|
---|
[3745] | 2077 |
|
---|
[23356] | 2078 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
| 2079 |
|
---|
[10191] | 2080 | # Predefined preprocessor variables.
|
---|
| 2081 |
|
---|
| 2082 | cat >>confdefs.h <<_ACEOF
|
---|
| 2083 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 2084 | _ACEOF
|
---|
| 2085 |
|
---|
| 2086 | cat >>confdefs.h <<_ACEOF
|
---|
| 2087 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 2088 | _ACEOF
|
---|
| 2089 |
|
---|
| 2090 | cat >>confdefs.h <<_ACEOF
|
---|
| 2091 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 2092 | _ACEOF
|
---|
| 2093 |
|
---|
| 2094 | cat >>confdefs.h <<_ACEOF
|
---|
| 2095 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 2096 | _ACEOF
|
---|
| 2097 |
|
---|
| 2098 | cat >>confdefs.h <<_ACEOF
|
---|
| 2099 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 2100 | _ACEOF
|
---|
| 2101 |
|
---|
[23356] | 2102 | cat >>confdefs.h <<_ACEOF
|
---|
| 2103 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
| 2104 | _ACEOF
|
---|
[10191] | 2105 |
|
---|
[23356] | 2106 |
|
---|
[3745] | 2107 | # Let the site file select an alternate cache file if it wants to.
|
---|
[23356] | 2108 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
| 2109 | ac_site_file1=NONE
|
---|
| 2110 | ac_site_file2=NONE
|
---|
| 2111 | if test -n "$CONFIG_SITE"; then
|
---|
[25147] | 2112 | ac_site_file1=$CONFIG_SITE
|
---|
[23356] | 2113 | elif test "x$prefix" != xNONE; then
|
---|
| 2114 | ac_site_file1=$prefix/share/config.site
|
---|
| 2115 | ac_site_file2=$prefix/etc/config.site
|
---|
| 2116 | else
|
---|
| 2117 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
| 2118 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
[3745] | 2119 | fi
|
---|
[23356] | 2120 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
| 2121 | do
|
---|
| 2122 | test "x$ac_site_file" = xNONE && continue
|
---|
| 2123 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
| 2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
| 2125 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[10191] | 2126 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[25147] | 2127 | . "$ac_site_file"
|
---|
[3745] | 2128 | fi
|
---|
| 2129 | done
|
---|
| 2130 |
|
---|
| 2131 | if test -r "$cache_file"; then
|
---|
[23356] | 2132 | # Some versions of bash will fail to source /dev/null (special files
|
---|
| 2133 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
| 2134 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
| 2135 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
| 2136 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
[3745] | 2137 | case $cache_file in
|
---|
[23356] | 2138 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
| 2139 | *) . "./$cache_file";;
|
---|
[3745] | 2140 | esac
|
---|
| 2141 | fi
|
---|
| 2142 | else
|
---|
[23356] | 2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
| 2144 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
[3745] | 2145 | >$cache_file
|
---|
| 2146 | fi
|
---|
| 2147 |
|
---|
| 2148 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 2149 | # value.
|
---|
[10191] | 2150 | ac_cache_corrupted=false
|
---|
[23356] | 2151 | for ac_var in $ac_precious_vars; do
|
---|
[3745] | 2152 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 2153 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[23356] | 2154 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
| 2155 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
[3745] | 2156 | case $ac_old_set,$ac_new_set in
|
---|
| 2157 | set,)
|
---|
[23356] | 2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 2159 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
[10191] | 2160 | ac_cache_corrupted=: ;;
|
---|
[3745] | 2161 | ,set)
|
---|
[23356] | 2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 2163 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
[10191] | 2164 | ac_cache_corrupted=: ;;
|
---|
[3745] | 2165 | ,);;
|
---|
| 2166 | *)
|
---|
| 2167 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[23356] | 2168 | # differences in whitespace do not lead to failure.
|
---|
| 2169 | ac_old_val_w=`echo x $ac_old_val`
|
---|
| 2170 | ac_new_val_w=`echo x $ac_new_val`
|
---|
| 2171 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
| 2172 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 2173 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 2174 | ac_cache_corrupted=:
|
---|
| 2175 | else
|
---|
| 2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
| 2177 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
| 2178 | eval $ac_var=\$ac_old_val
|
---|
| 2179 | fi
|
---|
| 2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
| 2181 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
| 2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
| 2183 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
[3745] | 2184 | fi;;
|
---|
| 2185 | esac
|
---|
[10191] | 2186 | # Pass precious variables to config.status.
|
---|
| 2187 | if test "$ac_new_set" = set; then
|
---|
| 2188 | case $ac_new_val in
|
---|
[23356] | 2189 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[10191] | 2190 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 2191 | esac
|
---|
| 2192 | case " $ac_configure_args " in
|
---|
| 2193 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
[23356] | 2194 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
[10191] | 2195 | esac
|
---|
| 2196 | fi
|
---|
[3745] | 2197 | done
|
---|
[10191] | 2198 | if $ac_cache_corrupted; then
|
---|
[23356] | 2199 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2200 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
| 2202 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
[25147] | 2203 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
[3745] | 2204 | fi
|
---|
[23356] | 2205 | ## -------------------- ##
|
---|
| 2206 | ## Main body of script. ##
|
---|
| 2207 | ## -------------------- ##
|
---|
[3745] | 2208 |
|
---|
| 2209 | ac_ext=c
|
---|
| 2210 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2214 |
|
---|
| 2215 |
|
---|
[23356] | 2216 | ac_config_headers="$ac_config_headers config.h"
|
---|
[3745] | 2217 |
|
---|
[10191] | 2218 |
|
---|
[15560] | 2219 | ac_aux_dir=
|
---|
[23356] | 2220 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
[25147] | 2221 | for ac_t in install-sh install.sh shtool; do
|
---|
| 2222 | if test -f "$ac_dir/$ac_t"; then
|
---|
| 2223 | ac_aux_dir=$ac_dir
|
---|
| 2224 | ac_install_sh="$ac_aux_dir/$ac_t -c"
|
---|
| 2225 | break 2
|
---|
| 2226 | fi
|
---|
| 2227 | done
|
---|
[15560] | 2228 | done
|
---|
| 2229 | if test -z "$ac_aux_dir"; then
|
---|
[25147] | 2230 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
[15560] | 2231 | fi
|
---|
| 2232 |
|
---|
[23356] | 2233 | # These three variables are undocumented and unsupported,
|
---|
| 2234 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
| 2235 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
| 2236 | # whose full name contains unusual characters.
|
---|
| 2237 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
| 2238 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
| 2239 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
| 2240 |
|
---|
| 2241 |
|
---|
[15560] | 2242 | # Make sure we can run config.sub.
|
---|
[23356] | 2243 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
[25147] | 2244 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
[15560] | 2245 |
|
---|
[23356] | 2246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
| 2247 | $as_echo_n "checking build system type... " >&6; }
|
---|
| 2248 | if test "${ac_cv_build+set}" = set; then :
|
---|
| 2249 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2250 | else
|
---|
[23356] | 2251 | ac_build_alias=$build_alias
|
---|
| 2252 | test "x$ac_build_alias" = x &&
|
---|
| 2253 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
| 2254 | test "x$ac_build_alias" = x &&
|
---|
[25147] | 2255 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
[23356] | 2256 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
[25147] | 2257 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
[15560] | 2258 |
|
---|
| 2259 | fi
|
---|
[23356] | 2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
| 2261 | $as_echo "$ac_cv_build" >&6; }
|
---|
| 2262 | case $ac_cv_build in
|
---|
| 2263 | *-*-*) ;;
|
---|
[25147] | 2264 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
|
---|
[23356] | 2265 | esac
|
---|
[15560] | 2266 | build=$ac_cv_build
|
---|
[23356] | 2267 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2268 | set x $ac_cv_build
|
---|
| 2269 | shift
|
---|
| 2270 | build_cpu=$1
|
---|
| 2271 | build_vendor=$2
|
---|
| 2272 | shift; shift
|
---|
| 2273 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2274 | # except with old shells:
|
---|
| 2275 | build_os=$*
|
---|
| 2276 | IFS=$ac_save_IFS
|
---|
| 2277 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2278 |
|
---|
| 2279 |
|
---|
[23356] | 2280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
| 2281 | $as_echo_n "checking host system type... " >&6; }
|
---|
| 2282 | if test "${ac_cv_host+set}" = set; then :
|
---|
| 2283 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2284 | else
|
---|
[23356] | 2285 | if test "x$host_alias" = x; then
|
---|
| 2286 | ac_cv_host=$ac_cv_build
|
---|
| 2287 | else
|
---|
| 2288 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
[25147] | 2289 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
[23356] | 2290 | fi
|
---|
[15560] | 2291 |
|
---|
| 2292 | fi
|
---|
[23356] | 2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
| 2294 | $as_echo "$ac_cv_host" >&6; }
|
---|
| 2295 | case $ac_cv_host in
|
---|
| 2296 | *-*-*) ;;
|
---|
[25147] | 2297 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
|
---|
[23356] | 2298 | esac
|
---|
[15560] | 2299 | host=$ac_cv_host
|
---|
[23356] | 2300 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2301 | set x $ac_cv_host
|
---|
| 2302 | shift
|
---|
| 2303 | host_cpu=$1
|
---|
| 2304 | host_vendor=$2
|
---|
| 2305 | shift; shift
|
---|
| 2306 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2307 | # except with old shells:
|
---|
| 2308 | host_os=$*
|
---|
| 2309 | IFS=$ac_save_IFS
|
---|
| 2310 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2311 |
|
---|
| 2312 |
|
---|
[23356] | 2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
| 2314 | $as_echo_n "checking target system type... " >&6; }
|
---|
| 2315 | if test "${ac_cv_target+set}" = set; then :
|
---|
| 2316 | $as_echo_n "(cached) " >&6
|
---|
[15560] | 2317 | else
|
---|
[23356] | 2318 | if test "x$target_alias" = x; then
|
---|
| 2319 | ac_cv_target=$ac_cv_host
|
---|
| 2320 | else
|
---|
| 2321 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
[25147] | 2322 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
[23356] | 2323 | fi
|
---|
[15560] | 2324 |
|
---|
| 2325 | fi
|
---|
[23356] | 2326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
| 2327 | $as_echo "$ac_cv_target" >&6; }
|
---|
| 2328 | case $ac_cv_target in
|
---|
| 2329 | *-*-*) ;;
|
---|
[25147] | 2330 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
|
---|
[23356] | 2331 | esac
|
---|
[15560] | 2332 | target=$ac_cv_target
|
---|
[23356] | 2333 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 2334 | set x $ac_cv_target
|
---|
| 2335 | shift
|
---|
| 2336 | target_cpu=$1
|
---|
| 2337 | target_vendor=$2
|
---|
| 2338 | shift; shift
|
---|
| 2339 | # Remember, the first character of IFS is used to create $*,
|
---|
| 2340 | # except with old shells:
|
---|
| 2341 | target_os=$*
|
---|
| 2342 | IFS=$ac_save_IFS
|
---|
| 2343 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
[15560] | 2344 |
|
---|
| 2345 |
|
---|
| 2346 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2347 | # will get canonicalized.
|
---|
| 2348 | test -n "$target_alias" &&
|
---|
| 2349 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2350 | NONENONEs,x,x, &&
|
---|
| 2351 | program_prefix=${target_alias}-
|
---|
[23356] | 2352 |
|
---|
[3745] | 2353 | test "$program_prefix" != NONE &&
|
---|
[23356] | 2354 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
[3745] | 2355 | # Use a double $ so make ignores it.
|
---|
| 2356 | test "$program_suffix" != NONE &&
|
---|
[23356] | 2357 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
| 2358 | # Double any \ or $.
|
---|
[10191] | 2359 | # By default was `s,x,x', remove it if useless.
|
---|
[23356] | 2360 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
| 2361 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
[3745] | 2362 |
|
---|
| 2363 |
|
---|
| 2364 | PACKAGE=mg
|
---|
| 2365 | VERSION=1.2
|
---|
| 2366 |
|
---|
[10191] | 2367 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 2368 | #define PACKAGE "$PACKAGE"
|
---|
[10191] | 2369 | _ACEOF
|
---|
[3745] | 2370 |
|
---|
[10191] | 2371 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 2372 | #define VERSION "$VERSION"
|
---|
[10191] | 2373 | _ACEOF
|
---|
[3745] | 2374 |
|
---|
[10191] | 2375 |
|
---|
| 2376 |
|
---|
| 2377 |
|
---|
[23356] | 2378 | # Check whether --enable-java was given.
|
---|
| 2379 | if test "${enable_java+set}" = set; then :
|
---|
| 2380 | enableval=$enable_java; ENABLE_JAVA=$enableval
|
---|
| 2381 | else
|
---|
| 2382 | ENABLE_JAVA=yes
|
---|
| 2383 | fi
|
---|
[15560] | 2384 |
|
---|
[23356] | 2385 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
| 2386 | ENABLE_JAVA=1
|
---|
| 2387 | if test "x$JAVA_HOME" != "x" ; then
|
---|
| 2388 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
| 2389 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
| 2390 | echo "and JAVA respectively"
|
---|
| 2391 | export JAVA_HOME=
|
---|
| 2392 | fi
|
---|
| 2393 | else
|
---|
| 2394 | ENABLE_JAVA=0
|
---|
| 2395 | fi
|
---|
| 2396 |
|
---|
| 2397 |
|
---|
[15560] | 2398 |
|
---|
[23356] | 2399 | ac_ext=cpp
|
---|
[3745] | 2400 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 2401 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2402 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2403 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[23356] | 2404 | if test -z "$CXX"; then
|
---|
| 2405 | if test -n "$CCC"; then
|
---|
| 2406 | CXX=$CCC
|
---|
| 2407 | else
|
---|
| 2408 | if test -n "$ac_tool_prefix"; then
|
---|
| 2409 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[3745] | 2410 | do
|
---|
| 2411 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2412 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[23356] | 2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2414 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2415 | if test "${ac_cv_prog_CXX+set}" = set; then :
|
---|
| 2416 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2417 | else
|
---|
| 2418 | if test -n "$CXX"; then
|
---|
| 2419 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2420 | else
|
---|
[10191] | 2421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2422 | for as_dir in $PATH
|
---|
| 2423 | do
|
---|
| 2424 | IFS=$as_save_IFS
|
---|
| 2425 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 2426 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 2428 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
[23356] | 2429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 2430 | break 2
|
---|
| 2431 | fi
|
---|
[3745] | 2432 | done
|
---|
[23356] | 2433 | done
|
---|
| 2434 | IFS=$as_save_IFS
|
---|
[3745] | 2435 |
|
---|
| 2436 | fi
|
---|
| 2437 | fi
|
---|
| 2438 | CXX=$ac_cv_prog_CXX
|
---|
| 2439 | if test -n "$CXX"; then
|
---|
[23356] | 2440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
| 2441 | $as_echo "$CXX" >&6; }
|
---|
[3745] | 2442 | else
|
---|
[23356] | 2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2444 | $as_echo "no" >&6; }
|
---|
[3745] | 2445 | fi
|
---|
| 2446 |
|
---|
[23356] | 2447 |
|
---|
[3745] | 2448 | test -n "$CXX" && break
|
---|
| 2449 | done
|
---|
| 2450 | fi
|
---|
| 2451 | if test -z "$CXX"; then
|
---|
| 2452 | ac_ct_CXX=$CXX
|
---|
[23356] | 2453 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[3745] | 2454 | do
|
---|
| 2455 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2456 | set dummy $ac_prog; ac_word=$2
|
---|
[23356] | 2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2458 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2459 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
|
---|
| 2460 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2461 | else
|
---|
| 2462 | if test -n "$ac_ct_CXX"; then
|
---|
| 2463 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2464 | else
|
---|
[10191] | 2465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2466 | for as_dir in $PATH
|
---|
| 2467 | do
|
---|
| 2468 | IFS=$as_save_IFS
|
---|
| 2469 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 2470 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 2472 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
[23356] | 2473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 2474 | break 2
|
---|
| 2475 | fi
|
---|
[3745] | 2476 | done
|
---|
[23356] | 2477 | done
|
---|
| 2478 | IFS=$as_save_IFS
|
---|
[3745] | 2479 |
|
---|
| 2480 | fi
|
---|
| 2481 | fi
|
---|
| 2482 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2483 | if test -n "$ac_ct_CXX"; then
|
---|
[23356] | 2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
| 2485 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
[3745] | 2486 | else
|
---|
[23356] | 2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2488 | $as_echo "no" >&6; }
|
---|
[3745] | 2489 | fi
|
---|
| 2490 |
|
---|
[23356] | 2491 |
|
---|
[3745] | 2492 | test -n "$ac_ct_CXX" && break
|
---|
| 2493 | done
|
---|
| 2494 |
|
---|
[23356] | 2495 | if test "x$ac_ct_CXX" = x; then
|
---|
| 2496 | CXX="g++"
|
---|
| 2497 | else
|
---|
| 2498 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2499 | yes:)
|
---|
| 2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 2501 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 2502 | ac_tool_warned=yes ;;
|
---|
| 2503 | esac
|
---|
| 2504 | CXX=$ac_ct_CXX
|
---|
| 2505 | fi
|
---|
[3745] | 2506 | fi
|
---|
| 2507 |
|
---|
[23356] | 2508 | fi
|
---|
| 2509 | fi
|
---|
[10191] | 2510 | # Provide some information about the compiler.
|
---|
[23356] | 2511 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
| 2512 | set X $ac_compile
|
---|
| 2513 | ac_compiler=$2
|
---|
| 2514 | for ac_option in --version -v -V -qversion; do
|
---|
| 2515 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
| 2516 | case "(($ac_try" in
|
---|
| 2517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2518 | *) ac_try_echo=$ac_try;;
|
---|
| 2519 | esac
|
---|
| 2520 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2521 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2522 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[10191] | 2523 | ac_status=$?
|
---|
[23356] | 2524 | if test -s conftest.err; then
|
---|
| 2525 | sed '10a\
|
---|
| 2526 | ... rest of stderr output deleted ...
|
---|
| 2527 | 10q' conftest.err >conftest.er1
|
---|
| 2528 | cat conftest.er1 >&5
|
---|
| 2529 | fi
|
---|
| 2530 | rm -f conftest.er1 conftest.err
|
---|
| 2531 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2532 | test $ac_status = 0; }
|
---|
| 2533 | done
|
---|
[10191] | 2534 |
|
---|
[23356] | 2535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 2536 | /* end confdefs.h. */
|
---|
[3745] | 2537 |
|
---|
| 2538 | int
|
---|
| 2539 | main ()
|
---|
| 2540 | {
|
---|
| 2541 |
|
---|
| 2542 | ;
|
---|
| 2543 | return 0;
|
---|
| 2544 | }
|
---|
| 2545 | _ACEOF
|
---|
| 2546 | ac_clean_files_save=$ac_clean_files
|
---|
[23356] | 2547 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
[3745] | 2548 | # Try to create an executable without -o first, disregard a.out.
|
---|
[10191] | 2549 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
[3745] | 2550 | # of exeext.
|
---|
[23356] | 2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
|
---|
| 2552 | $as_echo_n "checking whether the C++ compiler works... " >&6; }
|
---|
| 2553 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[10191] | 2554 |
|
---|
[23356] | 2555 | # The possible output files:
|
---|
| 2556 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
| 2557 |
|
---|
| 2558 | ac_rmfiles=
|
---|
| 2559 | for ac_file in $ac_files
|
---|
[10191] | 2560 | do
|
---|
[23356] | 2561 | case $ac_file in
|
---|
| 2562 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
| 2563 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
| 2564 | esac
|
---|
| 2565 | done
|
---|
| 2566 | rm -f $ac_rmfiles
|
---|
| 2567 |
|
---|
| 2568 | if { { ac_try="$ac_link_default"
|
---|
| 2569 | case "(($ac_try" in
|
---|
| 2570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2571 | *) ac_try_echo=$ac_try;;
|
---|
| 2572 | esac
|
---|
| 2573 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2574 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2575 | (eval "$ac_link_default") 2>&5
|
---|
| 2576 | ac_status=$?
|
---|
| 2577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2578 | test $ac_status = 0; }; then :
|
---|
| 2579 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
| 2580 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
| 2581 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
| 2582 | # so that the user can short-circuit this test for compilers unknown to
|
---|
| 2583 | # Autoconf.
|
---|
| 2584 | for ac_file in $ac_files ''
|
---|
| 2585 | do
|
---|
[10191] | 2586 | test -f "$ac_file" || continue
|
---|
[3745] | 2587 | case $ac_file in
|
---|
[23356] | 2588 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
[10191] | 2589 | ;;
|
---|
| 2590 | [ab].out )
|
---|
| 2591 | # We found the default executable, but exeext='' is most
|
---|
| 2592 | # certainly right.
|
---|
| 2593 | break;;
|
---|
| 2594 | *.* )
|
---|
[23356] | 2595 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
| 2596 | then :; else
|
---|
| 2597 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2598 | fi
|
---|
| 2599 | # We set ac_cv_exeext here because the later test for it is not
|
---|
| 2600 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
| 2601 | # argument, so we may need to know it at that point already.
|
---|
| 2602 | # Even if this section looks crufty: it has the advantage of
|
---|
| 2603 | # actually working.
|
---|
[10191] | 2604 | break;;
|
---|
| 2605 | * )
|
---|
| 2606 | break;;
|
---|
[3745] | 2607 | esac
|
---|
| 2608 | done
|
---|
[23356] | 2609 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
| 2610 |
|
---|
[3745] | 2611 | else
|
---|
[23356] | 2612 | ac_file=''
|
---|
| 2613 | fi
|
---|
| 2614 | if test -z "$ac_file"; then :
|
---|
| 2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2616 | $as_echo "no" >&6; }
|
---|
| 2617 | $as_echo "$as_me: failed program was:" >&5
|
---|
[10191] | 2618 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2619 |
|
---|
[23356] | 2620 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2621 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25147] | 2622 | { as_fn_set_status 77
|
---|
| 2623 | as_fn_error "C++ compiler cannot create executables
|
---|
| 2624 | See \`config.log' for more details." "$LINENO" 5; }; }
|
---|
[23356] | 2625 | else
|
---|
| 2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 2627 | $as_echo "yes" >&6; }
|
---|
[3745] | 2628 | fi
|
---|
[23356] | 2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
|
---|
| 2630 | $as_echo_n "checking for C++ compiler default output file name... " >&6; }
|
---|
| 2631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
| 2632 | $as_echo "$ac_file" >&6; }
|
---|
[3745] | 2633 | ac_exeext=$ac_cv_exeext
|
---|
| 2634 |
|
---|
[23356] | 2635 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
[3745] | 2636 | ac_clean_files=$ac_clean_files_save
|
---|
[23356] | 2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
| 2638 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
| 2639 | if { { ac_try="$ac_link"
|
---|
| 2640 | case "(($ac_try" in
|
---|
| 2641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2642 | *) ac_try_echo=$ac_try;;
|
---|
| 2643 | esac
|
---|
| 2644 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2645 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2646 | (eval "$ac_link") 2>&5
|
---|
[3745] | 2647 | ac_status=$?
|
---|
[23356] | 2648 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2649 | test $ac_status = 0; }; then :
|
---|
[3745] | 2650 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2651 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2652 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2653 | # `rm'.
|
---|
[10191] | 2654 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2655 | test -f "$ac_file" || continue
|
---|
[3745] | 2656 | case $ac_file in
|
---|
[23356] | 2657 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
[3745] | 2658 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[10191] | 2659 | break;;
|
---|
[3745] | 2660 | * ) break;;
|
---|
| 2661 | esac
|
---|
| 2662 | done
|
---|
| 2663 | else
|
---|
[23356] | 2664 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25147] | 2666 | as_fn_error "cannot compute suffix of executables: cannot compile and link
|
---|
| 2667 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[3745] | 2668 | fi
|
---|
[23356] | 2669 | rm -f conftest conftest$ac_cv_exeext
|
---|
| 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
| 2671 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
[3745] | 2672 |
|
---|
| 2673 | rm -f conftest.$ac_ext
|
---|
| 2674 | EXEEXT=$ac_cv_exeext
|
---|
| 2675 | ac_exeext=$EXEEXT
|
---|
[23356] | 2676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 2677 | /* end confdefs.h. */
|
---|
| 2678 | #include <stdio.h>
|
---|
| 2679 | int
|
---|
| 2680 | main ()
|
---|
| 2681 | {
|
---|
| 2682 | FILE *f = fopen ("conftest.out", "w");
|
---|
| 2683 | return ferror (f) || fclose (f) != 0;
|
---|
| 2684 |
|
---|
| 2685 | ;
|
---|
| 2686 | return 0;
|
---|
| 2687 | }
|
---|
| 2688 | _ACEOF
|
---|
| 2689 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
| 2690 | # Check that the compiler produces executables we can run. If not, either
|
---|
| 2691 | # the compiler is broken, or we cross compile.
|
---|
| 2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
| 2693 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
| 2694 | if test "$cross_compiling" != yes; then
|
---|
| 2695 | { { ac_try="$ac_link"
|
---|
| 2696 | case "(($ac_try" in
|
---|
| 2697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2698 | *) ac_try_echo=$ac_try;;
|
---|
| 2699 | esac
|
---|
| 2700 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2701 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2702 | (eval "$ac_link") 2>&5
|
---|
| 2703 | ac_status=$?
|
---|
| 2704 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2705 | test $ac_status = 0; }
|
---|
| 2706 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
| 2707 | { { case "(($ac_try" in
|
---|
| 2708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2709 | *) ac_try_echo=$ac_try;;
|
---|
| 2710 | esac
|
---|
| 2711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2712 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2713 | (eval "$ac_try") 2>&5
|
---|
| 2714 | ac_status=$?
|
---|
| 2715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2716 | test $ac_status = 0; }; }; then
|
---|
| 2717 | cross_compiling=no
|
---|
| 2718 | else
|
---|
| 2719 | if test "$cross_compiling" = maybe; then
|
---|
| 2720 | cross_compiling=yes
|
---|
| 2721 | else
|
---|
| 2722 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2723 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25147] | 2724 | as_fn_error "cannot run C++ compiled programs.
|
---|
[23356] | 2725 | If you meant to cross compile, use \`--host'.
|
---|
[25147] | 2726 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[23356] | 2727 | fi
|
---|
| 2728 | fi
|
---|
| 2729 | fi
|
---|
| 2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
| 2731 | $as_echo "$cross_compiling" >&6; }
|
---|
| 2732 |
|
---|
| 2733 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
| 2734 | ac_clean_files=$ac_clean_files_save
|
---|
| 2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
| 2736 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
| 2737 | if test "${ac_cv_objext+set}" = set; then :
|
---|
| 2738 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2739 | else
|
---|
[23356] | 2740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 2741 | /* end confdefs.h. */
|
---|
[3745] | 2742 |
|
---|
| 2743 | int
|
---|
| 2744 | main ()
|
---|
| 2745 | {
|
---|
| 2746 |
|
---|
| 2747 | ;
|
---|
| 2748 | return 0;
|
---|
| 2749 | }
|
---|
| 2750 | _ACEOF
|
---|
| 2751 | rm -f conftest.o conftest.obj
|
---|
[23356] | 2752 | if { { ac_try="$ac_compile"
|
---|
| 2753 | case "(($ac_try" in
|
---|
| 2754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2755 | *) ac_try_echo=$ac_try;;
|
---|
| 2756 | esac
|
---|
| 2757 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2758 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2759 | (eval "$ac_compile") 2>&5
|
---|
[3745] | 2760 | ac_status=$?
|
---|
[23356] | 2761 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2762 | test $ac_status = 0; }; then :
|
---|
| 2763 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
| 2764 | test -f "$ac_file" || continue;
|
---|
[3745] | 2765 | case $ac_file in
|
---|
[23356] | 2766 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
[3745] | 2767 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2768 | break;;
|
---|
| 2769 | esac
|
---|
| 2770 | done
|
---|
| 2771 | else
|
---|
[23356] | 2772 | $as_echo "$as_me: failed program was:" >&5
|
---|
[10191] | 2773 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2774 |
|
---|
[23356] | 2775 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2776 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25147] | 2777 | as_fn_error "cannot compute suffix of object files: cannot compile
|
---|
| 2778 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[3745] | 2779 | fi
|
---|
| 2780 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 2781 | fi
|
---|
[23356] | 2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
| 2783 | $as_echo "$ac_cv_objext" >&6; }
|
---|
[3745] | 2784 | OBJEXT=$ac_cv_objext
|
---|
| 2785 | ac_objext=$OBJEXT
|
---|
[23356] | 2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2787 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
| 2788 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
|
---|
| 2789 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2790 | else
|
---|
[23356] | 2791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 2792 | /* end confdefs.h. */
|
---|
[3745] | 2793 |
|
---|
| 2794 | int
|
---|
| 2795 | main ()
|
---|
| 2796 | {
|
---|
| 2797 | #ifndef __GNUC__
|
---|
| 2798 | choke me
|
---|
| 2799 | #endif
|
---|
| 2800 |
|
---|
| 2801 | ;
|
---|
| 2802 | return 0;
|
---|
| 2803 | }
|
---|
| 2804 | _ACEOF
|
---|
[23356] | 2805 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[3745] | 2806 | ac_compiler_gnu=yes
|
---|
| 2807 | else
|
---|
[23356] | 2808 | ac_compiler_gnu=no
|
---|
[3745] | 2809 | fi
|
---|
[23356] | 2810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 2811 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2812 |
|
---|
| 2813 | fi
|
---|
[23356] | 2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2815 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
| 2816 | if test $ac_compiler_gnu = yes; then
|
---|
| 2817 | GXX=yes
|
---|
| 2818 | else
|
---|
| 2819 | GXX=
|
---|
| 2820 | fi
|
---|
[3745] | 2821 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2822 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[23356] | 2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
| 2824 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
| 2825 | if test "${ac_cv_prog_cxx_g+set}" = set; then :
|
---|
| 2826 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2827 | else
|
---|
[23356] | 2828 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
| 2829 | ac_cxx_werror_flag=yes
|
---|
| 2830 | ac_cv_prog_cxx_g=no
|
---|
| 2831 | CXXFLAGS="-g"
|
---|
| 2832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 2833 | /* end confdefs.h. */
|
---|
[3745] | 2834 |
|
---|
| 2835 | int
|
---|
| 2836 | main ()
|
---|
| 2837 | {
|
---|
| 2838 |
|
---|
| 2839 | ;
|
---|
| 2840 | return 0;
|
---|
| 2841 | }
|
---|
| 2842 | _ACEOF
|
---|
[23356] | 2843 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[3745] | 2844 | ac_cv_prog_cxx_g=yes
|
---|
| 2845 | else
|
---|
[23356] | 2846 | CXXFLAGS=""
|
---|
| 2847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 2848 | /* end confdefs.h. */
|
---|
[10191] | 2849 |
|
---|
[3745] | 2850 | int
|
---|
| 2851 | main ()
|
---|
| 2852 | {
|
---|
[23356] | 2853 |
|
---|
[3745] | 2854 | ;
|
---|
| 2855 | return 0;
|
---|
| 2856 | }
|
---|
| 2857 | _ACEOF
|
---|
[23356] | 2858 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 2859 |
|
---|
[3745] | 2860 | else
|
---|
[23356] | 2861 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 2862 | CXXFLAGS="-g"
|
---|
| 2863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 2864 | /* end confdefs.h. */
|
---|
[10191] | 2865 |
|
---|
[3745] | 2866 | int
|
---|
| 2867 | main ()
|
---|
| 2868 | {
|
---|
[23356] | 2869 |
|
---|
[3745] | 2870 | ;
|
---|
| 2871 | return 0;
|
---|
| 2872 | }
|
---|
| 2873 | _ACEOF
|
---|
[23356] | 2874 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 2875 | ac_cv_prog_cxx_g=yes
|
---|
| 2876 | fi
|
---|
| 2877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2878 | fi
|
---|
| 2879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2880 | fi
|
---|
| 2881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2882 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 2883 | fi
|
---|
| 2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2885 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
| 2886 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 2887 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 2888 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2889 | if test "$GXX" = yes; then
|
---|
| 2890 | CXXFLAGS="-g -O2"
|
---|
| 2891 | else
|
---|
| 2892 | CXXFLAGS="-g"
|
---|
| 2893 | fi
|
---|
[3745] | 2894 | else
|
---|
[23356] | 2895 | if test "$GXX" = yes; then
|
---|
| 2896 | CXXFLAGS="-O2"
|
---|
| 2897 | else
|
---|
| 2898 | CXXFLAGS=
|
---|
| 2899 | fi
|
---|
[3745] | 2900 | fi
|
---|
| 2901 | ac_ext=c
|
---|
| 2902 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2906 |
|
---|
[10191] | 2907 | for ac_prog in gawk mawk nawk awk
|
---|
[3745] | 2908 | do
|
---|
| 2909 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2910 | set dummy $ac_prog; ac_word=$2
|
---|
[23356] | 2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2912 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2913 | if test "${ac_cv_prog_AWK+set}" = set; then :
|
---|
| 2914 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2915 | else
|
---|
| 2916 | if test -n "$AWK"; then
|
---|
| 2917 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2918 | else
|
---|
[10191] | 2919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2920 | for as_dir in $PATH
|
---|
| 2921 | do
|
---|
| 2922 | IFS=$as_save_IFS
|
---|
| 2923 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 2924 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 2926 | ac_cv_prog_AWK="$ac_prog"
|
---|
[23356] | 2927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 2928 | break 2
|
---|
| 2929 | fi
|
---|
[3745] | 2930 | done
|
---|
[23356] | 2931 | done
|
---|
| 2932 | IFS=$as_save_IFS
|
---|
[3745] | 2933 |
|
---|
| 2934 | fi
|
---|
| 2935 | fi
|
---|
| 2936 | AWK=$ac_cv_prog_AWK
|
---|
| 2937 | if test -n "$AWK"; then
|
---|
[23356] | 2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
| 2939 | $as_echo "$AWK" >&6; }
|
---|
[3745] | 2940 | else
|
---|
[23356] | 2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2942 | $as_echo "no" >&6; }
|
---|
[3745] | 2943 | fi
|
---|
| 2944 |
|
---|
[23356] | 2945 |
|
---|
[3745] | 2946 | test -n "$AWK" && break
|
---|
| 2947 | done
|
---|
| 2948 |
|
---|
| 2949 | for ac_prog in 'bison -y' byacc
|
---|
| 2950 | do
|
---|
| 2951 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2952 | set dummy $ac_prog; ac_word=$2
|
---|
[23356] | 2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2954 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2955 | if test "${ac_cv_prog_YACC+set}" = set; then :
|
---|
| 2956 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 2957 | else
|
---|
| 2958 | if test -n "$YACC"; then
|
---|
| 2959 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2960 | else
|
---|
[10191] | 2961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2962 | for as_dir in $PATH
|
---|
| 2963 | do
|
---|
| 2964 | IFS=$as_save_IFS
|
---|
| 2965 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 2966 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 2968 | ac_cv_prog_YACC="$ac_prog"
|
---|
[23356] | 2969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 2970 | break 2
|
---|
| 2971 | fi
|
---|
[3745] | 2972 | done
|
---|
[23356] | 2973 | done
|
---|
| 2974 | IFS=$as_save_IFS
|
---|
[3745] | 2975 |
|
---|
| 2976 | fi
|
---|
| 2977 | fi
|
---|
| 2978 | YACC=$ac_cv_prog_YACC
|
---|
| 2979 | if test -n "$YACC"; then
|
---|
[23356] | 2980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
| 2981 | $as_echo "$YACC" >&6; }
|
---|
[3745] | 2982 | else
|
---|
[23356] | 2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2984 | $as_echo "no" >&6; }
|
---|
[3745] | 2985 | fi
|
---|
| 2986 |
|
---|
[23356] | 2987 |
|
---|
[3745] | 2988 | test -n "$YACC" && break
|
---|
| 2989 | done
|
---|
| 2990 | test -n "$YACC" || YACC="yacc"
|
---|
| 2991 |
|
---|
| 2992 | ac_ext=c
|
---|
| 2993 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2997 | if test -n "$ac_tool_prefix"; then
|
---|
| 2998 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 2999 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[23356] | 3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3001 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3002 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 3003 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3004 | else
|
---|
| 3005 | if test -n "$CC"; then
|
---|
| 3006 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3007 | else
|
---|
[10191] | 3008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3009 | for as_dir in $PATH
|
---|
| 3010 | do
|
---|
| 3011 | IFS=$as_save_IFS
|
---|
| 3012 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 3013 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3014 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3015 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
[23356] | 3016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3017 | break 2
|
---|
| 3018 | fi
|
---|
[3745] | 3019 | done
|
---|
[23356] | 3020 | done
|
---|
| 3021 | IFS=$as_save_IFS
|
---|
[3745] | 3022 |
|
---|
| 3023 | fi
|
---|
| 3024 | fi
|
---|
| 3025 | CC=$ac_cv_prog_CC
|
---|
| 3026 | if test -n "$CC"; then
|
---|
[23356] | 3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 3028 | $as_echo "$CC" >&6; }
|
---|
[3745] | 3029 | else
|
---|
[23356] | 3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3031 | $as_echo "no" >&6; }
|
---|
[3745] | 3032 | fi
|
---|
| 3033 |
|
---|
[23356] | 3034 |
|
---|
[3745] | 3035 | fi
|
---|
| 3036 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 3037 | ac_ct_CC=$CC
|
---|
| 3038 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 3039 | set dummy gcc; ac_word=$2
|
---|
[23356] | 3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3041 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3042 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
| 3043 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3044 | else
|
---|
| 3045 | if test -n "$ac_ct_CC"; then
|
---|
| 3046 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 3047 | else
|
---|
[10191] | 3048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3049 | for as_dir in $PATH
|
---|
| 3050 | do
|
---|
| 3051 | IFS=$as_save_IFS
|
---|
| 3052 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 3053 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3054 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3055 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
[23356] | 3056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3057 | break 2
|
---|
| 3058 | fi
|
---|
[3745] | 3059 | done
|
---|
[23356] | 3060 | done
|
---|
| 3061 | IFS=$as_save_IFS
|
---|
[3745] | 3062 |
|
---|
| 3063 | fi
|
---|
| 3064 | fi
|
---|
| 3065 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 3066 | if test -n "$ac_ct_CC"; then
|
---|
[23356] | 3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
| 3068 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[3745] | 3069 | else
|
---|
[23356] | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3071 | $as_echo "no" >&6; }
|
---|
[3745] | 3072 | fi
|
---|
| 3073 |
|
---|
[23356] | 3074 | if test "x$ac_ct_CC" = x; then
|
---|
| 3075 | CC=""
|
---|
| 3076 | else
|
---|
| 3077 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3078 | yes:)
|
---|
| 3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 3080 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3081 | ac_tool_warned=yes ;;
|
---|
| 3082 | esac
|
---|
| 3083 | CC=$ac_ct_CC
|
---|
| 3084 | fi
|
---|
[3745] | 3085 | else
|
---|
| 3086 | CC="$ac_cv_prog_CC"
|
---|
| 3087 | fi
|
---|
| 3088 |
|
---|
| 3089 | if test -z "$CC"; then
|
---|
[23356] | 3090 | if test -n "$ac_tool_prefix"; then
|
---|
| 3091 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[3745] | 3092 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[23356] | 3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3094 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3095 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 3096 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3097 | else
|
---|
| 3098 | if test -n "$CC"; then
|
---|
| 3099 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3100 | else
|
---|
[10191] | 3101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3102 | for as_dir in $PATH
|
---|
| 3103 | do
|
---|
| 3104 | IFS=$as_save_IFS
|
---|
| 3105 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 3106 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3108 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
[23356] | 3109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3110 | break 2
|
---|
| 3111 | fi
|
---|
[3745] | 3112 | done
|
---|
[23356] | 3113 | done
|
---|
| 3114 | IFS=$as_save_IFS
|
---|
[3745] | 3115 |
|
---|
| 3116 | fi
|
---|
| 3117 | fi
|
---|
| 3118 | CC=$ac_cv_prog_CC
|
---|
| 3119 | if test -n "$CC"; then
|
---|
[23356] | 3120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 3121 | $as_echo "$CC" >&6; }
|
---|
[3745] | 3122 | else
|
---|
[23356] | 3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3124 | $as_echo "no" >&6; }
|
---|
[3745] | 3125 | fi
|
---|
| 3126 |
|
---|
[23356] | 3127 |
|
---|
[10191] | 3128 | fi
|
---|
[3745] | 3129 | fi
|
---|
| 3130 | if test -z "$CC"; then
|
---|
| 3131 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 3132 | set dummy cc; ac_word=$2
|
---|
[23356] | 3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3134 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3135 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 3136 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3137 | else
|
---|
| 3138 | if test -n "$CC"; then
|
---|
| 3139 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3140 | else
|
---|
| 3141 | ac_prog_rejected=no
|
---|
[10191] | 3142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3143 | for as_dir in $PATH
|
---|
| 3144 | do
|
---|
| 3145 | IFS=$as_save_IFS
|
---|
| 3146 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 3147 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3149 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 3150 | ac_prog_rejected=yes
|
---|
| 3151 | continue
|
---|
| 3152 | fi
|
---|
| 3153 | ac_cv_prog_CC="cc"
|
---|
[23356] | 3154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3155 | break 2
|
---|
| 3156 | fi
|
---|
[3745] | 3157 | done
|
---|
[23356] | 3158 | done
|
---|
| 3159 | IFS=$as_save_IFS
|
---|
[3745] | 3160 |
|
---|
| 3161 | if test $ac_prog_rejected = yes; then
|
---|
| 3162 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 3163 | set dummy $ac_cv_prog_CC
|
---|
| 3164 | shift
|
---|
| 3165 | if test $# != 0; then
|
---|
| 3166 | # We chose a different compiler from the bogus one.
|
---|
| 3167 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 3168 | # first if we set CC to just the basename; use the full file name.
|
---|
| 3169 | shift
|
---|
[10191] | 3170 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[3745] | 3171 | fi
|
---|
| 3172 | fi
|
---|
| 3173 | fi
|
---|
| 3174 | fi
|
---|
| 3175 | CC=$ac_cv_prog_CC
|
---|
| 3176 | if test -n "$CC"; then
|
---|
[23356] | 3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 3178 | $as_echo "$CC" >&6; }
|
---|
[3745] | 3179 | else
|
---|
[23356] | 3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3181 | $as_echo "no" >&6; }
|
---|
[3745] | 3182 | fi
|
---|
| 3183 |
|
---|
[23356] | 3184 |
|
---|
[3745] | 3185 | fi
|
---|
| 3186 | if test -z "$CC"; then
|
---|
| 3187 | if test -n "$ac_tool_prefix"; then
|
---|
[23356] | 3188 | for ac_prog in cl.exe
|
---|
[3745] | 3189 | do
|
---|
| 3190 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 3191 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[23356] | 3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3193 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3194 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 3195 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3196 | else
|
---|
| 3197 | if test -n "$CC"; then
|
---|
| 3198 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 3199 | else
|
---|
[10191] | 3200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3201 | for as_dir in $PATH
|
---|
| 3202 | do
|
---|
| 3203 | IFS=$as_save_IFS
|
---|
| 3204 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 3205 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3207 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
[23356] | 3208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3209 | break 2
|
---|
| 3210 | fi
|
---|
[3745] | 3211 | done
|
---|
[23356] | 3212 | done
|
---|
| 3213 | IFS=$as_save_IFS
|
---|
[3745] | 3214 |
|
---|
| 3215 | fi
|
---|
| 3216 | fi
|
---|
| 3217 | CC=$ac_cv_prog_CC
|
---|
| 3218 | if test -n "$CC"; then
|
---|
[23356] | 3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 3220 | $as_echo "$CC" >&6; }
|
---|
[3745] | 3221 | else
|
---|
[23356] | 3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3223 | $as_echo "no" >&6; }
|
---|
[3745] | 3224 | fi
|
---|
| 3225 |
|
---|
[23356] | 3226 |
|
---|
[3745] | 3227 | test -n "$CC" && break
|
---|
| 3228 | done
|
---|
| 3229 | fi
|
---|
| 3230 | if test -z "$CC"; then
|
---|
| 3231 | ac_ct_CC=$CC
|
---|
[23356] | 3232 | for ac_prog in cl.exe
|
---|
[3745] | 3233 | do
|
---|
| 3234 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3235 | set dummy $ac_prog; ac_word=$2
|
---|
[23356] | 3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3237 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3238 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
| 3239 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3240 | else
|
---|
| 3241 | if test -n "$ac_ct_CC"; then
|
---|
| 3242 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 3243 | else
|
---|
[10191] | 3244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3245 | for as_dir in $PATH
|
---|
| 3246 | do
|
---|
| 3247 | IFS=$as_save_IFS
|
---|
| 3248 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 3249 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3251 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
[23356] | 3252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3253 | break 2
|
---|
| 3254 | fi
|
---|
[3745] | 3255 | done
|
---|
[23356] | 3256 | done
|
---|
| 3257 | IFS=$as_save_IFS
|
---|
[3745] | 3258 |
|
---|
| 3259 | fi
|
---|
| 3260 | fi
|
---|
| 3261 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 3262 | if test -n "$ac_ct_CC"; then
|
---|
[23356] | 3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
| 3264 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[3745] | 3265 | else
|
---|
[23356] | 3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3267 | $as_echo "no" >&6; }
|
---|
[3745] | 3268 | fi
|
---|
| 3269 |
|
---|
[23356] | 3270 |
|
---|
[3745] | 3271 | test -n "$ac_ct_CC" && break
|
---|
| 3272 | done
|
---|
| 3273 |
|
---|
[23356] | 3274 | if test "x$ac_ct_CC" = x; then
|
---|
| 3275 | CC=""
|
---|
| 3276 | else
|
---|
| 3277 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3278 | yes:)
|
---|
| 3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 3280 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3281 | ac_tool_warned=yes ;;
|
---|
| 3282 | esac
|
---|
| 3283 | CC=$ac_ct_CC
|
---|
| 3284 | fi
|
---|
[3745] | 3285 | fi
|
---|
| 3286 |
|
---|
| 3287 | fi
|
---|
| 3288 |
|
---|
[10191] | 3289 |
|
---|
[23356] | 3290 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 3291 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25147] | 3292 | as_fn_error "no acceptable C compiler found in \$PATH
|
---|
| 3293 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[3745] | 3294 |
|
---|
[10191] | 3295 | # Provide some information about the compiler.
|
---|
[23356] | 3296 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
| 3297 | set X $ac_compile
|
---|
| 3298 | ac_compiler=$2
|
---|
| 3299 | for ac_option in --version -v -V -qversion; do
|
---|
| 3300 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
| 3301 | case "(($ac_try" in
|
---|
| 3302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3303 | *) ac_try_echo=$ac_try;;
|
---|
| 3304 | esac
|
---|
| 3305 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3306 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3307 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[10191] | 3308 | ac_status=$?
|
---|
[23356] | 3309 | if test -s conftest.err; then
|
---|
| 3310 | sed '10a\
|
---|
| 3311 | ... rest of stderr output deleted ...
|
---|
| 3312 | 10q' conftest.err >conftest.er1
|
---|
| 3313 | cat conftest.er1 >&5
|
---|
| 3314 | fi
|
---|
| 3315 | rm -f conftest.er1 conftest.err
|
---|
| 3316 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3317 | test $ac_status = 0; }
|
---|
| 3318 | done
|
---|
[10191] | 3319 |
|
---|
[23356] | 3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
| 3321 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
| 3322 | if test "${ac_cv_c_compiler_gnu+set}" = set; then :
|
---|
| 3323 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3324 | else
|
---|
[23356] | 3325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 3326 | /* end confdefs.h. */
|
---|
[3745] | 3327 |
|
---|
| 3328 | int
|
---|
| 3329 | main ()
|
---|
| 3330 | {
|
---|
| 3331 | #ifndef __GNUC__
|
---|
| 3332 | choke me
|
---|
| 3333 | #endif
|
---|
| 3334 |
|
---|
| 3335 | ;
|
---|
| 3336 | return 0;
|
---|
| 3337 | }
|
---|
| 3338 | _ACEOF
|
---|
[23356] | 3339 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 3340 | ac_compiler_gnu=yes
|
---|
| 3341 | else
|
---|
[23356] | 3342 | ac_compiler_gnu=no
|
---|
[3745] | 3343 | fi
|
---|
[23356] | 3344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 3345 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 3346 |
|
---|
| 3347 | fi
|
---|
[23356] | 3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 3349 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
| 3350 | if test $ac_compiler_gnu = yes; then
|
---|
| 3351 | GCC=yes
|
---|
| 3352 | else
|
---|
| 3353 | GCC=
|
---|
| 3354 | fi
|
---|
[3745] | 3355 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 3356 | ac_save_CFLAGS=$CFLAGS
|
---|
[23356] | 3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
| 3358 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
| 3359 | if test "${ac_cv_prog_cc_g+set}" = set; then :
|
---|
| 3360 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3361 | else
|
---|
[23356] | 3362 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
| 3363 | ac_c_werror_flag=yes
|
---|
| 3364 | ac_cv_prog_cc_g=no
|
---|
| 3365 | CFLAGS="-g"
|
---|
| 3366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 3367 | /* end confdefs.h. */
|
---|
[3745] | 3368 |
|
---|
| 3369 | int
|
---|
| 3370 | main ()
|
---|
| 3371 | {
|
---|
| 3372 |
|
---|
| 3373 | ;
|
---|
| 3374 | return 0;
|
---|
| 3375 | }
|
---|
| 3376 | _ACEOF
|
---|
[23356] | 3377 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 3378 | ac_cv_prog_cc_g=yes
|
---|
| 3379 | else
|
---|
[23356] | 3380 | CFLAGS=""
|
---|
| 3381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3382 | /* end confdefs.h. */
|
---|
[10191] | 3383 |
|
---|
[23356] | 3384 | int
|
---|
| 3385 | main ()
|
---|
| 3386 | {
|
---|
| 3387 |
|
---|
| 3388 | ;
|
---|
| 3389 | return 0;
|
---|
| 3390 | }
|
---|
| 3391 | _ACEOF
|
---|
| 3392 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3393 |
|
---|
| 3394 | else
|
---|
| 3395 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 3396 | CFLAGS="-g"
|
---|
| 3397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3398 | /* end confdefs.h. */
|
---|
| 3399 |
|
---|
| 3400 | int
|
---|
| 3401 | main ()
|
---|
| 3402 | {
|
---|
| 3403 |
|
---|
| 3404 | ;
|
---|
| 3405 | return 0;
|
---|
| 3406 | }
|
---|
| 3407 | _ACEOF
|
---|
| 3408 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3409 | ac_cv_prog_cc_g=yes
|
---|
[3745] | 3410 | fi
|
---|
[23356] | 3411 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 3412 | fi
|
---|
[23356] | 3413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3414 | fi
|
---|
| 3415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3416 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 3417 | fi
|
---|
| 3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
| 3419 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
[3745] | 3420 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 3421 | CFLAGS=$ac_save_CFLAGS
|
---|
| 3422 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 3423 | if test "$GCC" = yes; then
|
---|
| 3424 | CFLAGS="-g -O2"
|
---|
| 3425 | else
|
---|
| 3426 | CFLAGS="-g"
|
---|
| 3427 | fi
|
---|
| 3428 | else
|
---|
| 3429 | if test "$GCC" = yes; then
|
---|
| 3430 | CFLAGS="-O2"
|
---|
| 3431 | else
|
---|
| 3432 | CFLAGS=
|
---|
| 3433 | fi
|
---|
| 3434 | fi
|
---|
[23356] | 3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
| 3436 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
| 3437 | if test "${ac_cv_prog_cc_c89+set}" = set; then :
|
---|
| 3438 | $as_echo_n "(cached) " >&6
|
---|
[10191] | 3439 | else
|
---|
[23356] | 3440 | ac_cv_prog_cc_c89=no
|
---|
[10191] | 3441 | ac_save_CC=$CC
|
---|
[23356] | 3442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 3443 | /* end confdefs.h. */
|
---|
| 3444 | #include <stdarg.h>
|
---|
| 3445 | #include <stdio.h>
|
---|
| 3446 | #include <sys/types.h>
|
---|
| 3447 | #include <sys/stat.h>
|
---|
| 3448 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 3449 | struct buf { int x; };
|
---|
| 3450 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 3451 | static char *e (p, i)
|
---|
| 3452 | char **p;
|
---|
| 3453 | int i;
|
---|
| 3454 | {
|
---|
| 3455 | return p[i];
|
---|
| 3456 | }
|
---|
| 3457 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 3458 | {
|
---|
| 3459 | char *s;
|
---|
| 3460 | va_list v;
|
---|
| 3461 | va_start (v,p);
|
---|
| 3462 | s = g (p, va_arg (v,int));
|
---|
| 3463 | va_end (v);
|
---|
| 3464 | return s;
|
---|
| 3465 | }
|
---|
| 3466 |
|
---|
| 3467 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 3468 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 3469 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[23356] | 3470 | as 'x'. The following induces an error, until -std is added to get
|
---|
[10191] | 3471 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 3472 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[23356] | 3473 | that's true only with -std. */
|
---|
[10191] | 3474 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 3475 |
|
---|
[23356] | 3476 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
| 3477 | inside strings and character constants. */
|
---|
| 3478 | #define FOO(x) 'x'
|
---|
| 3479 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
| 3480 |
|
---|
[10191] | 3481 | int test (int i, double x);
|
---|
| 3482 | struct s1 {int (*f) (int a);};
|
---|
| 3483 | struct s2 {int (*f) (double a);};
|
---|
| 3484 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 3485 | int argc;
|
---|
| 3486 | char **argv;
|
---|
| 3487 | int
|
---|
| 3488 | main ()
|
---|
| 3489 | {
|
---|
| 3490 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 3491 | ;
|
---|
| 3492 | return 0;
|
---|
| 3493 | }
|
---|
| 3494 | _ACEOF
|
---|
[23356] | 3495 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
| 3496 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[10191] | 3497 | do
|
---|
| 3498 | CC="$ac_save_CC $ac_arg"
|
---|
[23356] | 3499 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3500 | ac_cv_prog_cc_c89=$ac_arg
|
---|
[10191] | 3501 | fi
|
---|
[23356] | 3502 | rm -f core conftest.err conftest.$ac_objext
|
---|
| 3503 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
[10191] | 3504 | done
|
---|
[23356] | 3505 | rm -f conftest.$ac_ext
|
---|
[10191] | 3506 | CC=$ac_save_CC
|
---|
| 3507 |
|
---|
| 3508 | fi
|
---|
[23356] | 3509 | # AC_CACHE_VAL
|
---|
| 3510 | case "x$ac_cv_prog_cc_c89" in
|
---|
| 3511 | x)
|
---|
| 3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
| 3513 | $as_echo "none needed" >&6; } ;;
|
---|
| 3514 | xno)
|
---|
| 3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
| 3516 | $as_echo "unsupported" >&6; } ;;
|
---|
[10191] | 3517 | *)
|
---|
[23356] | 3518 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
| 3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
| 3520 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
[10191] | 3521 | esac
|
---|
[23356] | 3522 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
[10191] | 3523 |
|
---|
[3745] | 3524 | fi
|
---|
[10191] | 3525 |
|
---|
[3745] | 3526 | ac_ext=c
|
---|
| 3527 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3531 |
|
---|
| 3532 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3533 | # so one script is as good as another. But avoid the broken or
|
---|
| 3534 | # incompatible versions:
|
---|
| 3535 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3536 | # SunOS /usr/etc/install
|
---|
| 3537 | # IRIX /sbin/install
|
---|
| 3538 | # AIX /bin/install
|
---|
| 3539 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 3540 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3541 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3542 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[10191] | 3543 | # OS/2's system install, which has a completely different semantic
|
---|
[3745] | 3544 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[23356] | 3545 | # Reject install programs that cannot install multiple files.
|
---|
| 3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
| 3547 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
[3745] | 3548 | if test -z "$INSTALL"; then
|
---|
[23356] | 3549 | if test "${ac_cv_path_install+set}" = set; then :
|
---|
| 3550 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3551 | else
|
---|
[10191] | 3552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3553 | for as_dir in $PATH
|
---|
| 3554 | do
|
---|
| 3555 | IFS=$as_save_IFS
|
---|
| 3556 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 3557 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3558 | case $as_dir/ in #((
|
---|
| 3559 | ./ | .// | /[cC]/* | \
|
---|
[10191] | 3560 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
[23356] | 3561 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
[10191] | 3562 | /usr/ucb/* ) ;;
|
---|
| 3563 | *)
|
---|
| 3564 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3565 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3566 | # by default.
|
---|
| 3567 | for ac_prog in ginstall scoinst install; do
|
---|
| 3568 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23356] | 3569 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
[3745] | 3570 | if test $ac_prog = install &&
|
---|
[10191] | 3571 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3745] | 3572 | # AIX install. It has an incompatible calling convention.
|
---|
| 3573 | :
|
---|
| 3574 | elif test $ac_prog = install &&
|
---|
[10191] | 3575 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3745] | 3576 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3577 | :
|
---|
| 3578 | else
|
---|
[23356] | 3579 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3580 | echo one > conftest.one
|
---|
| 3581 | echo two > conftest.two
|
---|
| 3582 | mkdir conftest.dir
|
---|
| 3583 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
| 3584 | test -s conftest.one && test -s conftest.two &&
|
---|
| 3585 | test -s conftest.dir/conftest.one &&
|
---|
| 3586 | test -s conftest.dir/conftest.two
|
---|
| 3587 | then
|
---|
| 3588 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3589 | break 3
|
---|
| 3590 | fi
|
---|
[3745] | 3591 | fi
|
---|
| 3592 | fi
|
---|
| 3593 | done
|
---|
[10191] | 3594 | done
|
---|
| 3595 | ;;
|
---|
| 3596 | esac
|
---|
[3745] | 3597 |
|
---|
[23356] | 3598 | done
|
---|
| 3599 | IFS=$as_save_IFS
|
---|
[10191] | 3600 |
|
---|
[23356] | 3601 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3602 |
|
---|
[3745] | 3603 | fi
|
---|
| 3604 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3605 | INSTALL=$ac_cv_path_install
|
---|
| 3606 | else
|
---|
[23356] | 3607 | # As a last resort, use the slow shell script. Don't cache a
|
---|
| 3608 | # value for INSTALL within a source directory, because that will
|
---|
[3745] | 3609 | # break other packages using the cache if that directory is
|
---|
[23356] | 3610 | # removed, or if the value is a relative name.
|
---|
[3745] | 3611 | INSTALL=$ac_install_sh
|
---|
| 3612 | fi
|
---|
| 3613 | fi
|
---|
[23356] | 3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
| 3615 | $as_echo "$INSTALL" >&6; }
|
---|
[3745] | 3616 |
|
---|
| 3617 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3618 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3619 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3620 |
|
---|
| 3621 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 3622 |
|
---|
| 3623 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3624 |
|
---|
[23356] | 3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
| 3626 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
[3745] | 3627 | LN_S=$as_ln_s
|
---|
| 3628 | if test "$LN_S" = "ln -s"; then
|
---|
[23356] | 3629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 3630 | $as_echo "yes" >&6; }
|
---|
[3745] | 3631 | else
|
---|
[23356] | 3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
| 3633 | $as_echo "no, using $LN_S" >&6; }
|
---|
[3745] | 3634 | fi
|
---|
| 3635 |
|
---|
[23356] | 3636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3637 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
| 3638 | set x ${MAKE-make}
|
---|
| 3639 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
[25147] | 3640 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[23356] | 3641 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3642 | else
|
---|
[10191] | 3643 | cat >conftest.make <<\_ACEOF
|
---|
[23356] | 3644 | SHELL = /bin/sh
|
---|
[3745] | 3645 | all:
|
---|
[23356] | 3646 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
[10191] | 3647 | _ACEOF
|
---|
[25147] | 3648 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[23356] | 3649 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
| 3650 | *@@@%%%=?*=@@@%%%*)
|
---|
| 3651 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
| 3652 | *)
|
---|
| 3653 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
| 3654 | esac
|
---|
[3745] | 3655 | rm -f conftest.make
|
---|
| 3656 | fi
|
---|
[23356] | 3657 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
| 3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 3659 | $as_echo "yes" >&6; }
|
---|
[3745] | 3660 | SET_MAKE=
|
---|
| 3661 | else
|
---|
[23356] | 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3663 | $as_echo "no" >&6; }
|
---|
[3745] | 3664 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3665 | fi
|
---|
| 3666 |
|
---|
| 3667 | if test -n "$ac_tool_prefix"; then
|
---|
| 3668 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3669 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[23356] | 3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3671 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3672 | if test "${ac_cv_prog_RANLIB+set}" = set; then :
|
---|
| 3673 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3674 | else
|
---|
| 3675 | if test -n "$RANLIB"; then
|
---|
| 3676 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3677 | else
|
---|
[10191] | 3678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3679 | for as_dir in $PATH
|
---|
| 3680 | do
|
---|
| 3681 | IFS=$as_save_IFS
|
---|
| 3682 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 3683 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3685 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
[23356] | 3686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3687 | break 2
|
---|
| 3688 | fi
|
---|
[3745] | 3689 | done
|
---|
[23356] | 3690 | done
|
---|
| 3691 | IFS=$as_save_IFS
|
---|
[3745] | 3692 |
|
---|
| 3693 | fi
|
---|
| 3694 | fi
|
---|
| 3695 | RANLIB=$ac_cv_prog_RANLIB
|
---|
| 3696 | if test -n "$RANLIB"; then
|
---|
[23356] | 3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
| 3698 | $as_echo "$RANLIB" >&6; }
|
---|
[3745] | 3699 | else
|
---|
[23356] | 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3701 | $as_echo "no" >&6; }
|
---|
[3745] | 3702 | fi
|
---|
| 3703 |
|
---|
[23356] | 3704 |
|
---|
[3745] | 3705 | fi
|
---|
| 3706 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3707 | ac_ct_RANLIB=$RANLIB
|
---|
| 3708 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3709 | set dummy ranlib; ac_word=$2
|
---|
[23356] | 3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3711 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3712 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
|
---|
| 3713 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 3714 | else
|
---|
| 3715 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3716 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3717 | else
|
---|
[10191] | 3718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3719 | for as_dir in $PATH
|
---|
| 3720 | do
|
---|
| 3721 | IFS=$as_save_IFS
|
---|
| 3722 | test -z "$as_dir" && as_dir=.
|
---|
[23356] | 3723 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[10191] | 3725 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
[23356] | 3726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[10191] | 3727 | break 2
|
---|
| 3728 | fi
|
---|
[3745] | 3729 | done
|
---|
[23356] | 3730 | done
|
---|
| 3731 | IFS=$as_save_IFS
|
---|
[3745] | 3732 |
|
---|
| 3733 | fi
|
---|
| 3734 | fi
|
---|
| 3735 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3736 | if test -n "$ac_ct_RANLIB"; then
|
---|
[23356] | 3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
| 3738 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
[3745] | 3739 | else
|
---|
[23356] | 3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3741 | $as_echo "no" >&6; }
|
---|
[3745] | 3742 | fi
|
---|
| 3743 |
|
---|
[23356] | 3744 | if test "x$ac_ct_RANLIB" = x; then
|
---|
| 3745 | RANLIB=":"
|
---|
| 3746 | else
|
---|
| 3747 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3748 | yes:)
|
---|
| 3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 3750 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3751 | ac_tool_warned=yes ;;
|
---|
| 3752 | esac
|
---|
| 3753 | RANLIB=$ac_ct_RANLIB
|
---|
| 3754 | fi
|
---|
[3745] | 3755 | else
|
---|
| 3756 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3757 | fi
|
---|
| 3758 |
|
---|
[23356] | 3759 | if test $ENABLE_JAVA = "1" ; then
|
---|
[10191] | 3760 |
|
---|
| 3761 |
|
---|
[23356] | 3762 | if test "x$JAVA" = x ; then
|
---|
| 3763 | if test x$JAVAPREFIX = x; then
|
---|
| 3764 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 3765 | do
|
---|
| 3766 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3767 | set dummy $ac_prog; ac_word=$2
|
---|
| 3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3769 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3770 | if test "${ac_cv_prog_JAVA+set}" = set; then :
|
---|
| 3771 | $as_echo_n "(cached) " >&6
|
---|
| 3772 | else
|
---|
| 3773 | if test -n "$JAVA"; then
|
---|
| 3774 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 3775 | else
|
---|
| 3776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3777 | for as_dir in $PATH
|
---|
| 3778 | do
|
---|
| 3779 | IFS=$as_save_IFS
|
---|
| 3780 | test -z "$as_dir" && as_dir=.
|
---|
| 3781 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 3783 | ac_cv_prog_JAVA="$ac_prog"
|
---|
| 3784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3785 | break 2
|
---|
| 3786 | fi
|
---|
| 3787 | done
|
---|
| 3788 | done
|
---|
| 3789 | IFS=$as_save_IFS
|
---|
| 3790 |
|
---|
| 3791 | fi
|
---|
| 3792 | fi
|
---|
| 3793 | JAVA=$ac_cv_prog_JAVA
|
---|
| 3794 | if test -n "$JAVA"; then
|
---|
| 3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
| 3796 | $as_echo "$JAVA" >&6; }
|
---|
| 3797 | else
|
---|
| 3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3799 | $as_echo "no" >&6; }
|
---|
| 3800 | fi
|
---|
| 3801 |
|
---|
| 3802 |
|
---|
| 3803 | test -n "$JAVA" && break
|
---|
| 3804 | done
|
---|
| 3805 |
|
---|
| 3806 | else
|
---|
| 3807 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 3808 | do
|
---|
| 3809 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3810 | set dummy $ac_prog; ac_word=$2
|
---|
| 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3812 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3813 | if test "${ac_cv_prog_JAVA+set}" = set; then :
|
---|
| 3814 | $as_echo_n "(cached) " >&6
|
---|
| 3815 | else
|
---|
| 3816 | if test -n "$JAVA"; then
|
---|
| 3817 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 3818 | else
|
---|
| 3819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3820 | for as_dir in $PATH
|
---|
| 3821 | do
|
---|
| 3822 | IFS=$as_save_IFS
|
---|
| 3823 | test -z "$as_dir" && as_dir=.
|
---|
| 3824 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 3826 | ac_cv_prog_JAVA="$ac_prog"
|
---|
| 3827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3828 | break 2
|
---|
| 3829 | fi
|
---|
| 3830 | done
|
---|
| 3831 | done
|
---|
| 3832 | IFS=$as_save_IFS
|
---|
| 3833 |
|
---|
| 3834 | fi
|
---|
| 3835 | fi
|
---|
| 3836 | JAVA=$ac_cv_prog_JAVA
|
---|
| 3837 | if test -n "$JAVA"; then
|
---|
| 3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
|
---|
| 3839 | $as_echo "$JAVA" >&6; }
|
---|
| 3840 | else
|
---|
| 3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3842 | $as_echo "no" >&6; }
|
---|
| 3843 | fi
|
---|
| 3844 |
|
---|
| 3845 |
|
---|
| 3846 | test -n "$JAVA" && break
|
---|
| 3847 | done
|
---|
| 3848 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
| 3849 |
|
---|
| 3850 | fi
|
---|
[25147] | 3851 | test x$JAVA = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
|
---|
[23356] | 3852 | fi
|
---|
| 3853 |
|
---|
| 3854 |
|
---|
| 3855 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
| 3856 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
| 3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3858 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3859 | if test "${ac_cv_prog_uudecode+set}" = set; then :
|
---|
| 3860 | $as_echo_n "(cached) " >&6
|
---|
| 3861 | else
|
---|
| 3862 | if test -n "$uudecode"; then
|
---|
| 3863 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
| 3864 | else
|
---|
| 3865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3866 | for as_dir in $PATH
|
---|
| 3867 | do
|
---|
| 3868 | IFS=$as_save_IFS
|
---|
| 3869 | test -z "$as_dir" && as_dir=.
|
---|
| 3870 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 3872 | ac_cv_prog_uudecode="yes"
|
---|
| 3873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3874 | break 2
|
---|
| 3875 | fi
|
---|
| 3876 | done
|
---|
| 3877 | done
|
---|
| 3878 | IFS=$as_save_IFS
|
---|
| 3879 |
|
---|
| 3880 | fi
|
---|
| 3881 | fi
|
---|
| 3882 | uudecode=$ac_cv_prog_uudecode
|
---|
| 3883 | if test -n "$uudecode"; then
|
---|
| 3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
|
---|
| 3885 | $as_echo "$uudecode" >&6; }
|
---|
| 3886 | else
|
---|
| 3887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3888 | $as_echo "no" >&6; }
|
---|
| 3889 | fi
|
---|
| 3890 |
|
---|
| 3891 |
|
---|
| 3892 | if test x$uudecode = xyes; then
|
---|
| 3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
|
---|
| 3894 | $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
|
---|
| 3895 | if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
|
---|
| 3896 | $as_echo_n "(cached) " >&6
|
---|
| 3897 | else
|
---|
| 3898 |
|
---|
| 3899 | cat << \EOF > Test.uue
|
---|
| 3900 | begin-base64 644 Test.class
|
---|
| 3901 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
| 3902 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
| 3903 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
| 3904 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
| 3905 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
| 3906 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
| 3907 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
| 3908 | ====
|
---|
| 3909 | EOF
|
---|
| 3910 | if uudecode$EXEEXT Test.uue; then
|
---|
| 3911 | ac_cv_prog_uudecode_base64=yes
|
---|
| 3912 | else
|
---|
[25147] | 3913 | echo "configure: 3913: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
[23356] | 3914 | echo "configure: failed file was:" >&5
|
---|
| 3915 | cat Test.uue >&5
|
---|
| 3916 | ac_cv_prog_uudecode_base64=no
|
---|
| 3917 | fi
|
---|
| 3918 | rm -f Test.uue
|
---|
| 3919 | fi
|
---|
| 3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
| 3921 | $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
|
---|
| 3922 | fi
|
---|
| 3923 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 3924 | rm -f Test.class
|
---|
| 3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
|
---|
| 3926 | $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
| 3927 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
[25147] | 3928 | as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
|
---|
[23356] | 3929 | fi
|
---|
| 3930 | if test x$ac_cv_prog_javac_works = x; then
|
---|
| 3931 |
|
---|
| 3932 | if test "x$JAVAC" = x ; then
|
---|
| 3933 | if test "x$JAVAPREFIX" = x; then
|
---|
| 3934 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 3935 | do
|
---|
| 3936 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3937 | set dummy $ac_prog; ac_word=$2
|
---|
| 3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3939 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3940 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
| 3941 | $as_echo_n "(cached) " >&6
|
---|
| 3942 | else
|
---|
| 3943 | if test -n "$JAVAC"; then
|
---|
| 3944 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 3945 | else
|
---|
| 3946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3947 | for as_dir in $PATH
|
---|
| 3948 | do
|
---|
| 3949 | IFS=$as_save_IFS
|
---|
| 3950 | test -z "$as_dir" && as_dir=.
|
---|
| 3951 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 3953 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
| 3954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3955 | break 2
|
---|
| 3956 | fi
|
---|
| 3957 | done
|
---|
| 3958 | done
|
---|
| 3959 | IFS=$as_save_IFS
|
---|
| 3960 |
|
---|
| 3961 | fi
|
---|
| 3962 | fi
|
---|
| 3963 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 3964 | if test -n "$JAVAC"; then
|
---|
| 3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
| 3966 | $as_echo "$JAVAC" >&6; }
|
---|
| 3967 | else
|
---|
| 3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3969 | $as_echo "no" >&6; }
|
---|
| 3970 | fi
|
---|
| 3971 |
|
---|
| 3972 |
|
---|
| 3973 | test -n "$JAVAC" && break
|
---|
| 3974 | done
|
---|
| 3975 |
|
---|
| 3976 | else
|
---|
| 3977 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 3978 | do
|
---|
| 3979 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3980 | set dummy $ac_prog; ac_word=$2
|
---|
| 3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3982 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3983 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
| 3984 | $as_echo_n "(cached) " >&6
|
---|
| 3985 | else
|
---|
| 3986 | if test -n "$JAVAC"; then
|
---|
| 3987 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 3988 | else
|
---|
| 3989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3990 | for as_dir in $PATH
|
---|
| 3991 | do
|
---|
| 3992 | IFS=$as_save_IFS
|
---|
| 3993 | test -z "$as_dir" && as_dir=.
|
---|
| 3994 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3995 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 3996 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
| 3997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3998 | break 2
|
---|
| 3999 | fi
|
---|
| 4000 | done
|
---|
| 4001 | done
|
---|
| 4002 | IFS=$as_save_IFS
|
---|
| 4003 |
|
---|
| 4004 | fi
|
---|
| 4005 | fi
|
---|
| 4006 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4007 | if test -n "$JAVAC"; then
|
---|
| 4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
| 4009 | $as_echo "$JAVAC" >&6; }
|
---|
| 4010 | else
|
---|
| 4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4012 | $as_echo "no" >&6; }
|
---|
| 4013 | fi
|
---|
| 4014 |
|
---|
| 4015 |
|
---|
| 4016 | test -n "$JAVAC" && break
|
---|
| 4017 | done
|
---|
| 4018 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 4019 |
|
---|
| 4020 | fi
|
---|
[25147] | 4021 | test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
[23356] | 4022 | else
|
---|
| 4023 | echo "Checking for javac... $JAVAC"
|
---|
| 4024 | fi
|
---|
| 4025 |
|
---|
| 4026 |
|
---|
| 4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
| 4028 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
| 4029 | if test "${ac_cv_prog_javac_works+set}" = set; then :
|
---|
| 4030 | $as_echo_n "(cached) " >&6
|
---|
| 4031 | else
|
---|
| 4032 |
|
---|
| 4033 | JAVA_TEST=Test.java
|
---|
| 4034 | CLASS_TEST=Test.class
|
---|
| 4035 | cat << \EOF > $JAVA_TEST
|
---|
[25147] | 4036 | /* #line 4036 "configure" */
|
---|
[23356] | 4037 | public class Test {
|
---|
| 4038 | }
|
---|
| 4039 | EOF
|
---|
| 4040 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
| 4041 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
| 4042 | (eval $ac_try) 2>&5
|
---|
| 4043 | ac_status=$?
|
---|
| 4044 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4045 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
| 4046 | ac_cv_prog_javac_works=yes
|
---|
| 4047 | else
|
---|
[25147] | 4048 | as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4049 | echo "configure: failed program was:" >&5
|
---|
| 4050 | cat $JAVA_TEST >&5
|
---|
| 4051 | fi
|
---|
| 4052 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
| 4053 |
|
---|
| 4054 | fi
|
---|
| 4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
| 4056 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
| 4057 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 4058 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 4059 | fi
|
---|
| 4060 |
|
---|
| 4061 |
|
---|
| 4062 |
|
---|
| 4063 | fi
|
---|
| 4064 | fi
|
---|
| 4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
|
---|
| 4066 | $as_echo_n "checking if $JAVA works... " >&6; }
|
---|
| 4067 | if test "${ac_cv_prog_java_works+set}" = set; then :
|
---|
| 4068 | $as_echo_n "(cached) " >&6
|
---|
| 4069 | else
|
---|
| 4070 |
|
---|
| 4071 | JAVA_TEST=Test.java
|
---|
| 4072 | CLASS_TEST=Test.class
|
---|
| 4073 | TEST=Test
|
---|
| 4074 | cat << \EOF > $JAVA_TEST
|
---|
[25147] | 4075 | /* [#]line 4075 "configure" */
|
---|
[23356] | 4076 | public class Test {
|
---|
| 4077 | public static void main (String args[]) {
|
---|
| 4078 | System.exit (0);
|
---|
| 4079 | } }
|
---|
| 4080 | EOF
|
---|
| 4081 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 4082 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
| 4083 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
| 4084 | (eval $ac_try) 2>&5
|
---|
| 4085 | ac_status=$?
|
---|
| 4086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4087 | test $ac_status = 0; }; } && test -s $CLASS_TEST; then
|
---|
| 4088 | :
|
---|
| 4089 | else
|
---|
| 4090 | echo "configure: failed program was:" >&5
|
---|
| 4091 | cat $JAVA_TEST >&5
|
---|
[25147] | 4092 | as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4093 | fi
|
---|
| 4094 | fi
|
---|
| 4095 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
| 4096 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
| 4097 | (eval $ac_try) 2>&5
|
---|
| 4098 | ac_status=$?
|
---|
| 4099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4100 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
| 4101 | ac_cv_prog_java_works=yes
|
---|
| 4102 | else
|
---|
| 4103 | echo "configure: failed program was:" >&5
|
---|
| 4104 | cat $JAVA_TEST >&5
|
---|
[25147] | 4105 | as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4106 | fi
|
---|
| 4107 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
| 4108 |
|
---|
| 4109 | fi
|
---|
| 4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
|
---|
| 4111 | $as_echo "$ac_cv_prog_java_works" >&6; }
|
---|
| 4112 |
|
---|
| 4113 |
|
---|
| 4114 |
|
---|
| 4115 |
|
---|
| 4116 | if test "x$JAVAC" = x ; then
|
---|
| 4117 | if test "x$JAVAPREFIX" = x; then
|
---|
| 4118 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4119 | do
|
---|
| 4120 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4121 | set dummy $ac_prog; ac_word=$2
|
---|
| 4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 4123 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 4124 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
| 4125 | $as_echo_n "(cached) " >&6
|
---|
| 4126 | else
|
---|
| 4127 | if test -n "$JAVAC"; then
|
---|
| 4128 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4129 | else
|
---|
| 4130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4131 | for as_dir in $PATH
|
---|
| 4132 | do
|
---|
| 4133 | IFS=$as_save_IFS
|
---|
| 4134 | test -z "$as_dir" && as_dir=.
|
---|
| 4135 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4137 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
| 4138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 4139 | break 2
|
---|
| 4140 | fi
|
---|
| 4141 | done
|
---|
| 4142 | done
|
---|
| 4143 | IFS=$as_save_IFS
|
---|
| 4144 |
|
---|
| 4145 | fi
|
---|
| 4146 | fi
|
---|
| 4147 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4148 | if test -n "$JAVAC"; then
|
---|
| 4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
| 4150 | $as_echo "$JAVAC" >&6; }
|
---|
| 4151 | else
|
---|
| 4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4153 | $as_echo "no" >&6; }
|
---|
| 4154 | fi
|
---|
| 4155 |
|
---|
| 4156 |
|
---|
| 4157 | test -n "$JAVAC" && break
|
---|
| 4158 | done
|
---|
| 4159 |
|
---|
| 4160 | else
|
---|
| 4161 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 4162 | do
|
---|
| 4163 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 4164 | set dummy $ac_prog; ac_word=$2
|
---|
| 4165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 4166 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 4167 | if test "${ac_cv_prog_JAVAC+set}" = set; then :
|
---|
| 4168 | $as_echo_n "(cached) " >&6
|
---|
| 4169 | else
|
---|
| 4170 | if test -n "$JAVAC"; then
|
---|
| 4171 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 4172 | else
|
---|
| 4173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4174 | for as_dir in $PATH
|
---|
| 4175 | do
|
---|
| 4176 | IFS=$as_save_IFS
|
---|
| 4177 | test -z "$as_dir" && as_dir=.
|
---|
| 4178 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
| 4180 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
| 4181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 4182 | break 2
|
---|
| 4183 | fi
|
---|
| 4184 | done
|
---|
| 4185 | done
|
---|
| 4186 | IFS=$as_save_IFS
|
---|
| 4187 |
|
---|
| 4188 | fi
|
---|
| 4189 | fi
|
---|
| 4190 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 4191 | if test -n "$JAVAC"; then
|
---|
| 4192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
|
---|
| 4193 | $as_echo "$JAVAC" >&6; }
|
---|
| 4194 | else
|
---|
| 4195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4196 | $as_echo "no" >&6; }
|
---|
| 4197 | fi
|
---|
| 4198 |
|
---|
| 4199 |
|
---|
| 4200 | test -n "$JAVAC" && break
|
---|
| 4201 | done
|
---|
| 4202 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 4203 |
|
---|
| 4204 | fi
|
---|
[25147] | 4205 | test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
|
---|
[23356] | 4206 | else
|
---|
| 4207 | echo "Checking for javac... $JAVAC"
|
---|
| 4208 | fi
|
---|
| 4209 |
|
---|
| 4210 |
|
---|
| 4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
|
---|
| 4212 | $as_echo_n "checking if $JAVAC works... " >&6; }
|
---|
| 4213 | if test "${ac_cv_prog_javac_works+set}" = set; then :
|
---|
| 4214 | $as_echo_n "(cached) " >&6
|
---|
| 4215 | else
|
---|
| 4216 |
|
---|
| 4217 | JAVA_TEST=Test.java
|
---|
| 4218 | CLASS_TEST=Test.class
|
---|
| 4219 | cat << \EOF > $JAVA_TEST
|
---|
[25147] | 4220 | /* #line 4220 "configure" */
|
---|
[23356] | 4221 | public class Test {
|
---|
| 4222 | }
|
---|
| 4223 | EOF
|
---|
| 4224 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
| 4225 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
|
---|
| 4226 | (eval $ac_try) 2>&5
|
---|
| 4227 | ac_status=$?
|
---|
| 4228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 4229 | test $ac_status = 0; }; } >/dev/null 2>&1; then
|
---|
| 4230 | ac_cv_prog_javac_works=yes
|
---|
| 4231 | else
|
---|
[25147] | 4232 | as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
|
---|
[23356] | 4233 | echo "configure: failed program was:" >&5
|
---|
| 4234 | cat $JAVA_TEST >&5
|
---|
| 4235 | fi
|
---|
| 4236 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
| 4237 |
|
---|
| 4238 | fi
|
---|
| 4239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
|
---|
| 4240 | $as_echo "$ac_cv_prog_javac_works" >&6; }
|
---|
| 4241 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 4242 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 4243 | fi
|
---|
| 4244 |
|
---|
| 4245 |
|
---|
| 4246 |
|
---|
| 4247 | fi
|
---|
| 4248 |
|
---|
| 4249 |
|
---|
[3745] | 4250 | ac_ext=c
|
---|
| 4251 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[23356] | 4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
| 4256 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
[3745] | 4257 | # On Suns, sometimes $CPP names a directory.
|
---|
| 4258 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 4259 | CPP=
|
---|
| 4260 | fi
|
---|
| 4261 | if test -z "$CPP"; then
|
---|
[23356] | 4262 | if test "${ac_cv_prog_CPP+set}" = set; then :
|
---|
| 4263 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4264 | else
|
---|
| 4265 | # Double quotes because CPP needs to be expanded
|
---|
| 4266 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 4267 | do
|
---|
| 4268 | ac_preproc_ok=false
|
---|
| 4269 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4270 | do
|
---|
| 4271 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4272 | # with a fresh cross-compiler works.
|
---|
[10191] | 4273 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4274 | # <limits.h> exists even on freestanding compilers.
|
---|
[3745] | 4275 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 4276 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[23356] | 4277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4278 | /* end confdefs.h. */
|
---|
| 4279 | #ifdef __STDC__
|
---|
| 4280 | # include <limits.h>
|
---|
| 4281 | #else
|
---|
| 4282 | # include <assert.h>
|
---|
| 4283 | #endif
|
---|
| 4284 | Syntax error
|
---|
| 4285 | _ACEOF
|
---|
[23356] | 4286 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4287 |
|
---|
[3745] | 4288 | else
|
---|
| 4289 | # Broken: fails on valid input.
|
---|
| 4290 | continue
|
---|
| 4291 | fi
|
---|
[25147] | 4292 | rm -f conftest.err conftest.$ac_ext
|
---|
[3745] | 4293 |
|
---|
[23356] | 4294 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[3745] | 4295 | # can be detected and how.
|
---|
[23356] | 4296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4297 | /* end confdefs.h. */
|
---|
[3745] | 4298 | #include <ac_nonexistent.h>
|
---|
| 4299 | _ACEOF
|
---|
[23356] | 4300 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[3745] | 4301 | # Broken: success on invalid input.
|
---|
| 4302 | continue
|
---|
| 4303 | else
|
---|
| 4304 | # Passes both tests.
|
---|
| 4305 | ac_preproc_ok=:
|
---|
| 4306 | break
|
---|
| 4307 | fi
|
---|
[25147] | 4308 | rm -f conftest.err conftest.$ac_ext
|
---|
[3745] | 4309 |
|
---|
| 4310 | done
|
---|
| 4311 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[25147] | 4312 | rm -f conftest.err conftest.$ac_ext
|
---|
[23356] | 4313 | if $ac_preproc_ok; then :
|
---|
[10191] | 4314 | break
|
---|
[3745] | 4315 | fi
|
---|
| 4316 |
|
---|
| 4317 | done
|
---|
| 4318 | ac_cv_prog_CPP=$CPP
|
---|
| 4319 |
|
---|
| 4320 | fi
|
---|
| 4321 | CPP=$ac_cv_prog_CPP
|
---|
| 4322 | else
|
---|
| 4323 | ac_cv_prog_CPP=$CPP
|
---|
| 4324 | fi
|
---|
[23356] | 4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
| 4326 | $as_echo "$CPP" >&6; }
|
---|
[3745] | 4327 | ac_preproc_ok=false
|
---|
| 4328 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4329 | do
|
---|
| 4330 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4331 | # with a fresh cross-compiler works.
|
---|
[10191] | 4332 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4333 | # <limits.h> exists even on freestanding compilers.
|
---|
[3745] | 4334 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 4335 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[23356] | 4336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4337 | /* end confdefs.h. */
|
---|
| 4338 | #ifdef __STDC__
|
---|
| 4339 | # include <limits.h>
|
---|
| 4340 | #else
|
---|
| 4341 | # include <assert.h>
|
---|
| 4342 | #endif
|
---|
| 4343 | Syntax error
|
---|
| 4344 | _ACEOF
|
---|
[23356] | 4345 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4346 |
|
---|
[3745] | 4347 | else
|
---|
| 4348 | # Broken: fails on valid input.
|
---|
| 4349 | continue
|
---|
| 4350 | fi
|
---|
[25147] | 4351 | rm -f conftest.err conftest.$ac_ext
|
---|
[3745] | 4352 |
|
---|
[23356] | 4353 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[3745] | 4354 | # can be detected and how.
|
---|
[23356] | 4355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4356 | /* end confdefs.h. */
|
---|
[3745] | 4357 | #include <ac_nonexistent.h>
|
---|
| 4358 | _ACEOF
|
---|
[23356] | 4359 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[3745] | 4360 | # Broken: success on invalid input.
|
---|
| 4361 | continue
|
---|
| 4362 | else
|
---|
| 4363 | # Passes both tests.
|
---|
| 4364 | ac_preproc_ok=:
|
---|
| 4365 | break
|
---|
| 4366 | fi
|
---|
[25147] | 4367 | rm -f conftest.err conftest.$ac_ext
|
---|
[3745] | 4368 |
|
---|
| 4369 | done
|
---|
| 4370 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[25147] | 4371 | rm -f conftest.err conftest.$ac_ext
|
---|
[23356] | 4372 | if $ac_preproc_ok; then :
|
---|
| 4373 |
|
---|
[3745] | 4374 | else
|
---|
[23356] | 4375 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 4376 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
[25147] | 4377 | as_fn_error "C preprocessor \"$CPP\" fails sanity check
|
---|
| 4378 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[3745] | 4379 | fi
|
---|
| 4380 |
|
---|
| 4381 | ac_ext=c
|
---|
| 4382 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4386 |
|
---|
[10191] | 4387 |
|
---|
[23356] | 4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
| 4389 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
| 4390 | if test "${ac_cv_path_GREP+set}" = set; then :
|
---|
| 4391 | $as_echo_n "(cached) " >&6
|
---|
[10191] | 4392 | else
|
---|
[23356] | 4393 | if test -z "$GREP"; then
|
---|
| 4394 | ac_path_GREP_found=false
|
---|
| 4395 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4397 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4398 | do
|
---|
| 4399 | IFS=$as_save_IFS
|
---|
| 4400 | test -z "$as_dir" && as_dir=.
|
---|
| 4401 | for ac_prog in grep ggrep; do
|
---|
| 4402 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4403 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4404 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
| 4405 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
| 4406 | # Check for GNU $ac_path_GREP
|
---|
| 4407 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
| 4408 | *GNU*)
|
---|
| 4409 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
| 4410 | *)
|
---|
| 4411 | ac_count=0
|
---|
| 4412 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4413 | while :
|
---|
| 4414 | do
|
---|
| 4415 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4416 | mv "conftest.tmp" "conftest.in"
|
---|
| 4417 | cp "conftest.in" "conftest.nl"
|
---|
| 4418 | $as_echo 'GREP' >> "conftest.nl"
|
---|
| 4419 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4420 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 4421 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
| 4422 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
| 4423 | # Best one so far, save it but keep looking for a better one
|
---|
| 4424 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
| 4425 | ac_path_GREP_max=$ac_count
|
---|
[10191] | 4426 | fi
|
---|
[23356] | 4427 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4428 | test $ac_count -gt 10 && break
|
---|
| 4429 | done
|
---|
| 4430 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4431 | esac
|
---|
[10191] | 4432 |
|
---|
[23356] | 4433 | $ac_path_GREP_found && break 3
|
---|
| 4434 | done
|
---|
| 4435 | done
|
---|
| 4436 | done
|
---|
| 4437 | IFS=$as_save_IFS
|
---|
| 4438 | if test -z "$ac_cv_path_GREP"; then
|
---|
[25147] | 4439 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
[23356] | 4440 | fi
|
---|
[3745] | 4441 | else
|
---|
[23356] | 4442 | ac_cv_path_GREP=$GREP
|
---|
[3745] | 4443 | fi
|
---|
| 4444 |
|
---|
[23356] | 4445 | fi
|
---|
| 4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
| 4447 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
| 4448 | GREP="$ac_cv_path_GREP"
|
---|
[3745] | 4449 |
|
---|
| 4450 |
|
---|
[23356] | 4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
| 4452 | $as_echo_n "checking for egrep... " >&6; }
|
---|
| 4453 | if test "${ac_cv_path_EGREP+set}" = set; then :
|
---|
| 4454 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4455 | else
|
---|
[23356] | 4456 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
| 4457 | then ac_cv_path_EGREP="$GREP -E"
|
---|
| 4458 | else
|
---|
| 4459 | if test -z "$EGREP"; then
|
---|
| 4460 | ac_path_EGREP_found=false
|
---|
| 4461 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4463 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4464 | do
|
---|
| 4465 | IFS=$as_save_IFS
|
---|
| 4466 | test -z "$as_dir" && as_dir=.
|
---|
| 4467 | for ac_prog in egrep; do
|
---|
| 4468 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4469 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4470 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
| 4471 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
| 4472 | # Check for GNU $ac_path_EGREP
|
---|
| 4473 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
| 4474 | *GNU*)
|
---|
| 4475 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
| 4476 | *)
|
---|
| 4477 | ac_count=0
|
---|
| 4478 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4479 | while :
|
---|
| 4480 | do
|
---|
| 4481 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4482 | mv "conftest.tmp" "conftest.in"
|
---|
| 4483 | cp "conftest.in" "conftest.nl"
|
---|
| 4484 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
| 4485 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4486 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 4487 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
| 4488 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
| 4489 | # Best one so far, save it but keep looking for a better one
|
---|
| 4490 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
| 4491 | ac_path_EGREP_max=$ac_count
|
---|
| 4492 | fi
|
---|
| 4493 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4494 | test $ac_count -gt 10 && break
|
---|
| 4495 | done
|
---|
| 4496 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4497 | esac
|
---|
[10191] | 4498 |
|
---|
[23356] | 4499 | $ac_path_EGREP_found && break 3
|
---|
| 4500 | done
|
---|
| 4501 | done
|
---|
| 4502 | done
|
---|
| 4503 | IFS=$as_save_IFS
|
---|
| 4504 | if test -z "$ac_cv_path_EGREP"; then
|
---|
[25147] | 4505 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
[23356] | 4506 | fi
|
---|
[10191] | 4507 | else
|
---|
[23356] | 4508 | ac_cv_path_EGREP=$EGREP
|
---|
[10191] | 4509 | fi
|
---|
| 4510 |
|
---|
[23356] | 4511 | fi
|
---|
[10191] | 4512 | fi
|
---|
[23356] | 4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
| 4514 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
| 4515 | EGREP="$ac_cv_path_EGREP"
|
---|
[10191] | 4516 |
|
---|
[23356] | 4517 |
|
---|
| 4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
| 4519 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
| 4520 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
| 4521 | $as_echo_n "(cached) " >&6
|
---|
[10191] | 4522 | else
|
---|
[23356] | 4523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4524 | /* end confdefs.h. */
|
---|
| 4525 | #include <stdlib.h>
|
---|
| 4526 | #include <stdarg.h>
|
---|
| 4527 | #include <string.h>
|
---|
| 4528 | #include <float.h>
|
---|
| 4529 |
|
---|
| 4530 | int
|
---|
| 4531 | main ()
|
---|
| 4532 | {
|
---|
| 4533 |
|
---|
| 4534 | ;
|
---|
| 4535 | return 0;
|
---|
| 4536 | }
|
---|
| 4537 | _ACEOF
|
---|
[23356] | 4538 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10191] | 4539 | ac_cv_header_stdc=yes
|
---|
| 4540 | else
|
---|
[23356] | 4541 | ac_cv_header_stdc=no
|
---|
[10191] | 4542 | fi
|
---|
[23356] | 4543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10191] | 4544 |
|
---|
| 4545 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4546 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[23356] | 4547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4548 | /* end confdefs.h. */
|
---|
| 4549 | #include <string.h>
|
---|
| 4550 |
|
---|
| 4551 | _ACEOF
|
---|
| 4552 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23356] | 4553 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 4554 |
|
---|
[10191] | 4555 | else
|
---|
| 4556 | ac_cv_header_stdc=no
|
---|
| 4557 | fi
|
---|
| 4558 | rm -f conftest*
|
---|
| 4559 |
|
---|
| 4560 | fi
|
---|
| 4561 |
|
---|
| 4562 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4563 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[23356] | 4564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4565 | /* end confdefs.h. */
|
---|
| 4566 | #include <stdlib.h>
|
---|
| 4567 |
|
---|
| 4568 | _ACEOF
|
---|
| 4569 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23356] | 4570 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 4571 |
|
---|
[10191] | 4572 | else
|
---|
| 4573 | ac_cv_header_stdc=no
|
---|
| 4574 | fi
|
---|
| 4575 | rm -f conftest*
|
---|
| 4576 |
|
---|
| 4577 | fi
|
---|
| 4578 |
|
---|
| 4579 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4580 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[23356] | 4581 | if test "$cross_compiling" = yes; then :
|
---|
[10191] | 4582 | :
|
---|
| 4583 | else
|
---|
[23356] | 4584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4585 | /* end confdefs.h. */
|
---|
| 4586 | #include <ctype.h>
|
---|
[23356] | 4587 | #include <stdlib.h>
|
---|
[10191] | 4588 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4589 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4590 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4591 | #else
|
---|
| 4592 | # define ISLOWER(c) \
|
---|
| 4593 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4594 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4595 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 4596 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4597 | #endif
|
---|
| 4598 |
|
---|
| 4599 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 4600 | int
|
---|
| 4601 | main ()
|
---|
| 4602 | {
|
---|
| 4603 | int i;
|
---|
| 4604 | for (i = 0; i < 256; i++)
|
---|
| 4605 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 4606 | || toupper (i) != TOUPPER (i))
|
---|
[23356] | 4607 | return 2;
|
---|
| 4608 | return 0;
|
---|
[10191] | 4609 | }
|
---|
| 4610 | _ACEOF
|
---|
[23356] | 4611 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 4612 |
|
---|
[10191] | 4613 | else
|
---|
[23356] | 4614 | ac_cv_header_stdc=no
|
---|
[10191] | 4615 | fi
|
---|
[23356] | 4616 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 4617 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[10191] | 4618 | fi
|
---|
[23356] | 4619 |
|
---|
[10191] | 4620 | fi
|
---|
| 4621 | fi
|
---|
[23356] | 4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
| 4623 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[10191] | 4624 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4625 |
|
---|
[23356] | 4626 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[10191] | 4627 |
|
---|
| 4628 | fi
|
---|
| 4629 |
|
---|
| 4630 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
[23356] | 4631 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 4632 | inttypes.h stdint.h unistd.h
|
---|
| 4633 | do :
|
---|
| 4634 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 4635 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
| 4636 | "
|
---|
[25147] | 4637 | eval as_val=\$$as_ac_Header
|
---|
| 4638 | if test "x$as_val" = x""yes; then :
|
---|
[23356] | 4639 | cat >>confdefs.h <<_ACEOF
|
---|
| 4640 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4641 | _ACEOF
|
---|
[10191] | 4642 |
|
---|
[23356] | 4643 | fi
|
---|
[10191] | 4644 |
|
---|
[23356] | 4645 | done
|
---|
[10191] | 4646 |
|
---|
| 4647 |
|
---|
| 4648 |
|
---|
[23356] | 4649 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
| 4650 | if test "x$ac_cv_header_minix_config_h" = x""yes; then :
|
---|
| 4651 | MINIX=yes
|
---|
| 4652 | else
|
---|
| 4653 | MINIX=
|
---|
| 4654 | fi
|
---|
[10191] | 4655 |
|
---|
| 4656 |
|
---|
[23356] | 4657 | if test "$MINIX" = yes; then
|
---|
[10191] | 4658 |
|
---|
[23356] | 4659 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
[10191] | 4660 |
|
---|
[23356] | 4661 |
|
---|
| 4662 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
| 4663 |
|
---|
| 4664 |
|
---|
| 4665 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
| 4666 |
|
---|
| 4667 | fi
|
---|
| 4668 |
|
---|
| 4669 |
|
---|
| 4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
| 4671 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
| 4672 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
|
---|
| 4673 | $as_echo_n "(cached) " >&6
|
---|
[10191] | 4674 | else
|
---|
[23356] | 4675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4676 | /* end confdefs.h. */
|
---|
| 4677 |
|
---|
[23356] | 4678 | # define __EXTENSIONS__ 1
|
---|
| 4679 | $ac_includes_default
|
---|
| 4680 | int
|
---|
| 4681 | main ()
|
---|
| 4682 | {
|
---|
| 4683 |
|
---|
| 4684 | ;
|
---|
| 4685 | return 0;
|
---|
| 4686 | }
|
---|
[10191] | 4687 | _ACEOF
|
---|
[23356] | 4688 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 4689 | ac_cv_safe_to_define___extensions__=yes
|
---|
[10191] | 4690 | else
|
---|
[23356] | 4691 | ac_cv_safe_to_define___extensions__=no
|
---|
[10191] | 4692 | fi
|
---|
[23356] | 4693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10191] | 4694 | fi
|
---|
[23356] | 4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
| 4696 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
| 4697 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
| 4698 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
[10191] | 4699 |
|
---|
[23356] | 4700 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
[10191] | 4701 |
|
---|
[23356] | 4702 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
[10191] | 4703 |
|
---|
[23356] | 4704 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
[10191] | 4705 |
|
---|
[23356] | 4706 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
| 4707 |
|
---|
| 4708 |
|
---|
| 4709 |
|
---|
| 4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
| 4711 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
| 4712 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
| 4713 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4714 | else
|
---|
[23356] | 4715 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4717 | /* end confdefs.h. */
|
---|
| 4718 |
|
---|
[23356] | 4719 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 4720 | Use char because int might match the return type of a GCC
|
---|
| 4721 | builtin and then its argument prototype would still apply. */
|
---|
| 4722 | #ifdef __cplusplus
|
---|
| 4723 | extern "C"
|
---|
| 4724 | #endif
|
---|
| 4725 | char strerror ();
|
---|
| 4726 | int
|
---|
| 4727 | main ()
|
---|
| 4728 | {
|
---|
| 4729 | return strerror ();
|
---|
| 4730 | ;
|
---|
| 4731 | return 0;
|
---|
| 4732 | }
|
---|
[10191] | 4733 | _ACEOF
|
---|
[23356] | 4734 | for ac_lib in '' cposix; do
|
---|
| 4735 | if test -z "$ac_lib"; then
|
---|
| 4736 | ac_res="none required"
|
---|
[3745] | 4737 | else
|
---|
[23356] | 4738 | ac_res=-l$ac_lib
|
---|
| 4739 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[3745] | 4740 | fi
|
---|
[23356] | 4741 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 4742 | ac_cv_search_strerror=$ac_res
|
---|
[3745] | 4743 | fi
|
---|
[23356] | 4744 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 4745 | conftest$ac_exeext
|
---|
| 4746 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
| 4747 | break
|
---|
[3745] | 4748 | fi
|
---|
[23356] | 4749 | done
|
---|
| 4750 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
[10191] | 4751 |
|
---|
| 4752 | else
|
---|
[23356] | 4753 | ac_cv_search_strerror=no
|
---|
[3745] | 4754 | fi
|
---|
[23356] | 4755 | rm conftest.$ac_ext
|
---|
| 4756 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4757 | fi
|
---|
| 4758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
| 4759 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
| 4760 | ac_res=$ac_cv_search_strerror
|
---|
| 4761 | if test "$ac_res" != no; then :
|
---|
| 4762 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[10191] | 4763 |
|
---|
| 4764 | fi
|
---|
[3745] | 4765 |
|
---|
[10191] | 4766 |
|
---|
[23356] | 4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 4768 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
| 4769 | if test "${ac_cv_prog_cc_stdc+set}" = set; then :
|
---|
| 4770 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4771 | else
|
---|
| 4772 | ac_cv_prog_cc_stdc=no
|
---|
| 4773 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4774 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4775 | # breaks some systems' header files.
|
---|
| 4776 | # AIX -qlanglvl=ansi
|
---|
| 4777 | # Ultrix and OSF/1 -std1
|
---|
| 4778 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4779 | # SVR4 -Xc
|
---|
| 4780 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4781 | do
|
---|
| 4782 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[23356] | 4783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4784 | /* end confdefs.h. */
|
---|
[3745] | 4785 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4786 | choke me
|
---|
| 4787 | #endif
|
---|
| 4788 |
|
---|
| 4789 | int
|
---|
| 4790 | main ()
|
---|
| 4791 | {
|
---|
| 4792 | int test (int i, double x);
|
---|
| 4793 | struct s1 {int (*f) (int a);};
|
---|
| 4794 | struct s2 {int (*f) (double a);};
|
---|
| 4795 | ;
|
---|
| 4796 | return 0;
|
---|
| 4797 | }
|
---|
| 4798 | _ACEOF
|
---|
[23356] | 4799 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 4800 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4801 | fi
|
---|
[23356] | 4802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4803 | done
|
---|
| 4804 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4805 |
|
---|
| 4806 | fi
|
---|
| 4807 |
|
---|
[23356] | 4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4809 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
[3745] | 4810 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4811 | x|xno) ;;
|
---|
| 4812 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4813 | esac
|
---|
| 4814 |
|
---|
[10191] | 4815 |
|
---|
[23356] | 4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
| 4817 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
[3745] | 4818 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[23356] | 4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 4820 | $as_echo "yes" >&6; }
|
---|
| 4821 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
[3745] | 4822 |
|
---|
| 4823 | U= ANSI2KNR=
|
---|
| 4824 | else
|
---|
[23356] | 4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4826 | $as_echo "no" >&6; }
|
---|
[3745] | 4827 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4828 | fi
|
---|
| 4829 |
|
---|
[23356] | 4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
| 4831 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
| 4832 | if test "${ac_cv_c_const+set}" = set; then :
|
---|
| 4833 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4834 | else
|
---|
[23356] | 4835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4836 | /* end confdefs.h. */
|
---|
[3745] | 4837 |
|
---|
| 4838 | int
|
---|
| 4839 | main ()
|
---|
| 4840 | {
|
---|
| 4841 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4842 | #ifndef __cplusplus
|
---|
| 4843 | /* Ultrix mips cc rejects this. */
|
---|
| 4844 | typedef int charset[2];
|
---|
[23356] | 4845 | const charset cs;
|
---|
[3745] | 4846 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[23356] | 4847 | char const *const *pcpcc;
|
---|
| 4848 | char **ppc;
|
---|
[3745] | 4849 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4850 | struct point {int x, y;};
|
---|
| 4851 | static struct point const zero = {0,0};
|
---|
| 4852 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4853 | It does not let you subtract one const X* pointer from another in
|
---|
| 4854 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4855 | expression */
|
---|
| 4856 | const char *g = "string";
|
---|
[23356] | 4857 | pcpcc = &g + (g ? g-g : 0);
|
---|
[3745] | 4858 | /* HPUX 7.0 cc rejects these. */
|
---|
[23356] | 4859 | ++pcpcc;
|
---|
| 4860 | ppc = (char**) pcpcc;
|
---|
| 4861 | pcpcc = (char const *const *) ppc;
|
---|
[3745] | 4862 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4863 | char *t;
|
---|
| 4864 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 4865 |
|
---|
| 4866 | *t++ = 0;
|
---|
[23356] | 4867 | if (s) return 0;
|
---|
[3745] | 4868 | }
|
---|
| 4869 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4870 | int x[] = {25, 17};
|
---|
| 4871 | const int *foo = &x[0];
|
---|
| 4872 | ++foo;
|
---|
| 4873 | }
|
---|
| 4874 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4875 | typedef const int *iptr;
|
---|
| 4876 | iptr p = 0;
|
---|
| 4877 | ++p;
|
---|
| 4878 | }
|
---|
| 4879 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4880 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4881 | struct s { int j; const int *ap[3]; };
|
---|
| 4882 | struct s *b; b->j = 5;
|
---|
| 4883 | }
|
---|
| 4884 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4885 | const int foo = 10;
|
---|
[23356] | 4886 | if (!foo) return 0;
|
---|
[3745] | 4887 | }
|
---|
[23356] | 4888 | return !cs[0] && !zero.x;
|
---|
[3745] | 4889 | #endif
|
---|
| 4890 |
|
---|
| 4891 | ;
|
---|
| 4892 | return 0;
|
---|
| 4893 | }
|
---|
| 4894 | _ACEOF
|
---|
[23356] | 4895 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 4896 | ac_cv_c_const=yes
|
---|
| 4897 | else
|
---|
[23356] | 4898 | ac_cv_c_const=no
|
---|
[3745] | 4899 | fi
|
---|
[23356] | 4900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4901 | fi
|
---|
[23356] | 4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
| 4903 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
[3745] | 4904 | if test $ac_cv_c_const = no; then
|
---|
| 4905 |
|
---|
[23356] | 4906 | $as_echo "#define const /**/" >>confdefs.h
|
---|
[3745] | 4907 |
|
---|
| 4908 | fi
|
---|
| 4909 |
|
---|
[23356] | 4910 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
| 4911 | if test "x$ac_cv_type_off_t" = x""yes; then :
|
---|
[10191] | 4912 |
|
---|
[3745] | 4913 | else
|
---|
| 4914 |
|
---|
[10191] | 4915 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 4916 | #define off_t long int
|
---|
[10191] | 4917 | _ACEOF
|
---|
[3745] | 4918 |
|
---|
| 4919 | fi
|
---|
| 4920 |
|
---|
[23356] | 4921 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
| 4922 | if test "x$ac_cv_type_size_t" = x""yes; then :
|
---|
[10191] | 4923 |
|
---|
[3745] | 4924 | else
|
---|
| 4925 |
|
---|
[10191] | 4926 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 4927 | #define size_t unsigned int
|
---|
[10191] | 4928 | _ACEOF
|
---|
[3745] | 4929 |
|
---|
| 4930 | fi
|
---|
| 4931 |
|
---|
[23356] | 4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4933 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
| 4934 | if test "${ac_cv_header_time+set}" = set; then :
|
---|
| 4935 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4936 | else
|
---|
[23356] | 4937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4938 | /* end confdefs.h. */
|
---|
[3745] | 4939 | #include <sys/types.h>
|
---|
| 4940 | #include <sys/time.h>
|
---|
| 4941 | #include <time.h>
|
---|
| 4942 |
|
---|
| 4943 | int
|
---|
| 4944 | main ()
|
---|
| 4945 | {
|
---|
[10191] | 4946 | if ((struct tm *) 0)
|
---|
| 4947 | return 0;
|
---|
[3745] | 4948 | ;
|
---|
| 4949 | return 0;
|
---|
| 4950 | }
|
---|
| 4951 | _ACEOF
|
---|
[23356] | 4952 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 4953 | ac_cv_header_time=yes
|
---|
| 4954 | else
|
---|
[23356] | 4955 | ac_cv_header_time=no
|
---|
[3745] | 4956 | fi
|
---|
[23356] | 4957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4958 | fi
|
---|
[23356] | 4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
| 4960 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
[3745] | 4961 | if test $ac_cv_header_time = yes; then
|
---|
| 4962 |
|
---|
[23356] | 4963 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
[3745] | 4964 |
|
---|
| 4965 | fi
|
---|
| 4966 |
|
---|
[23356] | 4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4968 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
| 4969 | if test "${ac_cv_struct_tm+set}" = set; then :
|
---|
| 4970 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 4971 | else
|
---|
[23356] | 4972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 4973 | /* end confdefs.h. */
|
---|
[3745] | 4974 | #include <sys/types.h>
|
---|
| 4975 | #include <time.h>
|
---|
| 4976 |
|
---|
| 4977 | int
|
---|
| 4978 | main ()
|
---|
| 4979 | {
|
---|
[23356] | 4980 | struct tm tm;
|
---|
| 4981 | int *p = &tm.tm_sec;
|
---|
| 4982 | return !p;
|
---|
[3745] | 4983 | ;
|
---|
| 4984 | return 0;
|
---|
| 4985 | }
|
---|
| 4986 | _ACEOF
|
---|
[23356] | 4987 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 4988 | ac_cv_struct_tm=time.h
|
---|
| 4989 | else
|
---|
[23356] | 4990 | ac_cv_struct_tm=sys/time.h
|
---|
[3745] | 4991 | fi
|
---|
[23356] | 4992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4993 | fi
|
---|
[23356] | 4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
| 4995 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
[3745] | 4996 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
| 4997 |
|
---|
[23356] | 4998 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
[3745] | 4999 |
|
---|
| 5000 | fi
|
---|
| 5001 |
|
---|
[10191] | 5002 |
|
---|
[3745] | 5003 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[23356] | 5004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5005 | /* end confdefs.h. */
|
---|
[3745] | 5006 | #include <stdio.h>
|
---|
| 5007 |
|
---|
| 5008 | int
|
---|
| 5009 | main ()
|
---|
| 5010 | {
|
---|
| 5011 | FILE *rubbish = popen("yes", "r");
|
---|
| 5012 | ;
|
---|
| 5013 | return 0;
|
---|
| 5014 | }
|
---|
| 5015 | _ACEOF
|
---|
[23356] | 5016 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 5017 |
|
---|
[3745] | 5018 | else
|
---|
[23356] | 5019 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[3745] | 5020 | fi
|
---|
[23356] | 5021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 5022 | fi
|
---|
| 5023 |
|
---|
[10191] | 5024 |
|
---|
[23356] | 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
| 5026 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
| 5027 | if test "${ac_cv_lib_m_main+set}" = set; then :
|
---|
| 5028 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5029 | else
|
---|
| 5030 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5031 | LIBS="-lm $LIBS"
|
---|
[23356] | 5032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5033 | /* end confdefs.h. */
|
---|
[3745] | 5034 |
|
---|
[10191] | 5035 |
|
---|
[3745] | 5036 | int
|
---|
| 5037 | main ()
|
---|
| 5038 | {
|
---|
[23356] | 5039 | return main ();
|
---|
[3745] | 5040 | ;
|
---|
| 5041 | return 0;
|
---|
| 5042 | }
|
---|
| 5043 | _ACEOF
|
---|
[23356] | 5044 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[3745] | 5045 | ac_cv_lib_m_main=yes
|
---|
| 5046 | else
|
---|
[23356] | 5047 | ac_cv_lib_m_main=no
|
---|
[3745] | 5048 | fi
|
---|
[23356] | 5049 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5050 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5051 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5052 | fi
|
---|
[23356] | 5053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
| 5054 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
| 5055 | if test "x$ac_cv_lib_m_main" = x""yes; then :
|
---|
[10191] | 5056 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 5057 | #define HAVE_LIBM 1
|
---|
[10191] | 5058 | _ACEOF
|
---|
[3745] | 5059 |
|
---|
| 5060 | LIBS="-lm $LIBS"
|
---|
| 5061 |
|
---|
| 5062 | fi
|
---|
| 5063 |
|
---|
[10191] | 5064 |
|
---|
[3745] | 5065 | ac_header_dirent=no
|
---|
| 5066 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[23356] | 5067 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 5068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
| 5069 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
[25147] | 5070 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
[23356] | 5071 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5072 | else
|
---|
[23356] | 5073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5074 | /* end confdefs.h. */
|
---|
[3745] | 5075 | #include <sys/types.h>
|
---|
| 5076 | #include <$ac_hdr>
|
---|
| 5077 |
|
---|
| 5078 | int
|
---|
| 5079 | main ()
|
---|
| 5080 | {
|
---|
[10191] | 5081 | if ((DIR *) 0)
|
---|
| 5082 | return 0;
|
---|
[3745] | 5083 | ;
|
---|
| 5084 | return 0;
|
---|
| 5085 | }
|
---|
| 5086 | _ACEOF
|
---|
[23356] | 5087 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10191] | 5088 | eval "$as_ac_Header=yes"
|
---|
[3745] | 5089 | else
|
---|
[23356] | 5090 | eval "$as_ac_Header=no"
|
---|
[3745] | 5091 | fi
|
---|
[23356] | 5092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 5093 | fi
|
---|
[23356] | 5094 | eval ac_res=\$$as_ac_Header
|
---|
| 5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 5096 | $as_echo "$ac_res" >&6; }
|
---|
[25147] | 5097 | eval as_val=\$$as_ac_Header
|
---|
| 5098 | if test "x$as_val" = x""yes; then :
|
---|
[10191] | 5099 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5100 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
[10191] | 5101 | _ACEOF
|
---|
[3745] | 5102 |
|
---|
| 5103 | ac_header_dirent=$ac_hdr; break
|
---|
| 5104 | fi
|
---|
| 5105 |
|
---|
| 5106 | done
|
---|
| 5107 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 5108 | if test $ac_header_dirent = dirent.h; then
|
---|
[23356] | 5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
| 5110 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
| 5111 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5112 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5113 | else
|
---|
[10191] | 5114 | ac_func_search_save_LIBS=$LIBS
|
---|
[23356] | 5115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5116 | /* end confdefs.h. */
|
---|
[3745] | 5117 |
|
---|
[23356] | 5118 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5119 | Use char because int might match the return type of a GCC
|
---|
| 5120 | builtin and then its argument prototype would still apply. */
|
---|
[3745] | 5121 | #ifdef __cplusplus
|
---|
| 5122 | extern "C"
|
---|
| 5123 | #endif
|
---|
| 5124 | char opendir ();
|
---|
| 5125 | int
|
---|
| 5126 | main ()
|
---|
| 5127 | {
|
---|
[23356] | 5128 | return opendir ();
|
---|
[3745] | 5129 | ;
|
---|
| 5130 | return 0;
|
---|
| 5131 | }
|
---|
| 5132 | _ACEOF
|
---|
[23356] | 5133 | for ac_lib in '' dir; do
|
---|
| 5134 | if test -z "$ac_lib"; then
|
---|
| 5135 | ac_res="none required"
|
---|
| 5136 | else
|
---|
| 5137 | ac_res=-l$ac_lib
|
---|
| 5138 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5139 | fi
|
---|
| 5140 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 5141 | ac_cv_search_opendir=$ac_res
|
---|
[3745] | 5142 | fi
|
---|
[23356] | 5143 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5144 | conftest$ac_exeext
|
---|
| 5145 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5146 | break
|
---|
| 5147 | fi
|
---|
| 5148 | done
|
---|
| 5149 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
[10191] | 5150 |
|
---|
| 5151 | else
|
---|
[23356] | 5152 | ac_cv_search_opendir=no
|
---|
[3745] | 5153 | fi
|
---|
[23356] | 5154 | rm conftest.$ac_ext
|
---|
[10191] | 5155 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5156 | fi
|
---|
[23356] | 5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
| 5158 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5159 | ac_res=$ac_cv_search_opendir
|
---|
| 5160 | if test "$ac_res" != no; then :
|
---|
| 5161 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[3745] | 5162 |
|
---|
[10191] | 5163 | fi
|
---|
| 5164 |
|
---|
[3745] | 5165 | else
|
---|
[23356] | 5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
| 5167 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
| 5168 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5169 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5170 | else
|
---|
[10191] | 5171 | ac_func_search_save_LIBS=$LIBS
|
---|
[23356] | 5172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5173 | /* end confdefs.h. */
|
---|
[3745] | 5174 |
|
---|
[23356] | 5175 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5176 | Use char because int might match the return type of a GCC
|
---|
| 5177 | builtin and then its argument prototype would still apply. */
|
---|
[3745] | 5178 | #ifdef __cplusplus
|
---|
| 5179 | extern "C"
|
---|
| 5180 | #endif
|
---|
| 5181 | char opendir ();
|
---|
| 5182 | int
|
---|
| 5183 | main ()
|
---|
| 5184 | {
|
---|
[23356] | 5185 | return opendir ();
|
---|
[3745] | 5186 | ;
|
---|
| 5187 | return 0;
|
---|
| 5188 | }
|
---|
| 5189 | _ACEOF
|
---|
[23356] | 5190 | for ac_lib in '' x; do
|
---|
| 5191 | if test -z "$ac_lib"; then
|
---|
| 5192 | ac_res="none required"
|
---|
| 5193 | else
|
---|
| 5194 | ac_res=-l$ac_lib
|
---|
| 5195 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5196 | fi
|
---|
| 5197 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 5198 | ac_cv_search_opendir=$ac_res
|
---|
[3745] | 5199 | fi
|
---|
[23356] | 5200 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5201 | conftest$ac_exeext
|
---|
| 5202 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5203 | break
|
---|
| 5204 | fi
|
---|
| 5205 | done
|
---|
| 5206 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
[10191] | 5207 |
|
---|
| 5208 | else
|
---|
[23356] | 5209 | ac_cv_search_opendir=no
|
---|
[3745] | 5210 | fi
|
---|
[23356] | 5211 | rm conftest.$ac_ext
|
---|
[10191] | 5212 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5213 | fi
|
---|
[23356] | 5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
| 5215 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5216 | ac_res=$ac_cv_search_opendir
|
---|
| 5217 | if test "$ac_res" != no; then :
|
---|
| 5218 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[3745] | 5219 |
|
---|
| 5220 | fi
|
---|
| 5221 |
|
---|
[10191] | 5222 | fi
|
---|
| 5223 |
|
---|
[23356] | 5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
| 5225 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
| 5226 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
| 5227 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5228 | else
|
---|
[23356] | 5229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5230 | /* end confdefs.h. */
|
---|
[3745] | 5231 | #include <stdlib.h>
|
---|
| 5232 | #include <stdarg.h>
|
---|
| 5233 | #include <string.h>
|
---|
| 5234 | #include <float.h>
|
---|
| 5235 |
|
---|
[10191] | 5236 | int
|
---|
| 5237 | main ()
|
---|
| 5238 | {
|
---|
| 5239 |
|
---|
| 5240 | ;
|
---|
| 5241 | return 0;
|
---|
| 5242 | }
|
---|
[3745] | 5243 | _ACEOF
|
---|
[23356] | 5244 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[3745] | 5245 | ac_cv_header_stdc=yes
|
---|
| 5246 | else
|
---|
[23356] | 5247 | ac_cv_header_stdc=no
|
---|
[3745] | 5248 | fi
|
---|
[23356] | 5249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 5250 |
|
---|
| 5251 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5252 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[23356] | 5253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5254 | /* end confdefs.h. */
|
---|
[3745] | 5255 | #include <string.h>
|
---|
| 5256 |
|
---|
| 5257 | _ACEOF
|
---|
| 5258 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23356] | 5259 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 5260 |
|
---|
[3745] | 5261 | else
|
---|
| 5262 | ac_cv_header_stdc=no
|
---|
| 5263 | fi
|
---|
| 5264 | rm -f conftest*
|
---|
| 5265 |
|
---|
| 5266 | fi
|
---|
| 5267 |
|
---|
| 5268 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5269 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[23356] | 5270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5271 | /* end confdefs.h. */
|
---|
[3745] | 5272 | #include <stdlib.h>
|
---|
| 5273 |
|
---|
| 5274 | _ACEOF
|
---|
| 5275 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23356] | 5276 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 5277 |
|
---|
[3745] | 5278 | else
|
---|
| 5279 | ac_cv_header_stdc=no
|
---|
| 5280 | fi
|
---|
| 5281 | rm -f conftest*
|
---|
| 5282 |
|
---|
| 5283 | fi
|
---|
| 5284 |
|
---|
| 5285 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5286 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[23356] | 5287 | if test "$cross_compiling" = yes; then :
|
---|
[3745] | 5288 | :
|
---|
| 5289 | else
|
---|
[23356] | 5290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5291 | /* end confdefs.h. */
|
---|
[3745] | 5292 | #include <ctype.h>
|
---|
[23356] | 5293 | #include <stdlib.h>
|
---|
[3745] | 5294 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5295 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5296 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5297 | #else
|
---|
[10191] | 5298 | # define ISLOWER(c) \
|
---|
| 5299 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5300 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5301 | || ('s' <= (c) && (c) <= 'z'))
|
---|
[3745] | 5302 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5303 | #endif
|
---|
| 5304 |
|
---|
| 5305 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 5306 | int
|
---|
| 5307 | main ()
|
---|
| 5308 | {
|
---|
| 5309 | int i;
|
---|
| 5310 | for (i = 0; i < 256; i++)
|
---|
| 5311 | if (XOR (islower (i), ISLOWER (i))
|
---|
[10191] | 5312 | || toupper (i) != TOUPPER (i))
|
---|
[23356] | 5313 | return 2;
|
---|
| 5314 | return 0;
|
---|
[3745] | 5315 | }
|
---|
| 5316 | _ACEOF
|
---|
[23356] | 5317 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 5318 |
|
---|
[3745] | 5319 | else
|
---|
[23356] | 5320 | ac_cv_header_stdc=no
|
---|
[3745] | 5321 | fi
|
---|
[23356] | 5322 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5323 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[3745] | 5324 | fi
|
---|
[23356] | 5325 |
|
---|
[3745] | 5326 | fi
|
---|
| 5327 | fi
|
---|
[23356] | 5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
| 5329 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[3745] | 5330 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5331 |
|
---|
[23356] | 5332 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[3745] | 5333 |
|
---|
| 5334 | fi
|
---|
| 5335 |
|
---|
| 5336 | for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
|
---|
[23356] | 5337 | do :
|
---|
| 5338 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5339 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
[25147] | 5340 | eval as_val=\$$as_ac_Header
|
---|
| 5341 | if test "x$as_val" = x""yes; then :
|
---|
[10191] | 5342 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5343 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
[10191] | 5344 | _ACEOF
|
---|
| 5345 |
|
---|
| 5346 | fi
|
---|
| 5347 |
|
---|
[3745] | 5348 | done
|
---|
| 5349 |
|
---|
[23356] | 5350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5351 | /* end confdefs.h. */
|
---|
[3745] | 5352 | #include <stdio.h>
|
---|
| 5353 |
|
---|
| 5354 | _ACEOF
|
---|
| 5355 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23356] | 5356 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
| 5357 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
[3745] | 5358 |
|
---|
| 5359 | fi
|
---|
| 5360 | rm -f conftest*
|
---|
| 5361 |
|
---|
[23356] | 5362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5363 | /* end confdefs.h. */
|
---|
[3745] | 5364 | #include <stdio.h>
|
---|
| 5365 |
|
---|
| 5366 | _ACEOF
|
---|
| 5367 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23356] | 5368 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
| 5369 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
[3745] | 5370 |
|
---|
| 5371 | fi
|
---|
| 5372 | rm -f conftest*
|
---|
| 5373 |
|
---|
[23356] | 5374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5375 | /* end confdefs.h. */
|
---|
[3745] | 5376 | #include <sys/procfs.h>
|
---|
| 5377 |
|
---|
| 5378 | _ACEOF
|
---|
| 5379 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23356] | 5380 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
| 5381 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
[3745] | 5382 |
|
---|
| 5383 | fi
|
---|
| 5384 | rm -f conftest*
|
---|
| 5385 |
|
---|
[10191] | 5386 |
|
---|
[3745] | 5387 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5388 | # for constant arguments. Useless!
|
---|
[23356] | 5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
| 5390 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
| 5391 | if test "${ac_cv_working_alloca_h+set}" = set; then :
|
---|
| 5392 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5393 | else
|
---|
[23356] | 5394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5395 | /* end confdefs.h. */
|
---|
[3745] | 5396 | #include <alloca.h>
|
---|
| 5397 | int
|
---|
| 5398 | main ()
|
---|
| 5399 | {
|
---|
| 5400 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
[23356] | 5401 | if (p) return 0;
|
---|
[3745] | 5402 | ;
|
---|
| 5403 | return 0;
|
---|
| 5404 | }
|
---|
| 5405 | _ACEOF
|
---|
[23356] | 5406 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[3745] | 5407 | ac_cv_working_alloca_h=yes
|
---|
| 5408 | else
|
---|
[23356] | 5409 | ac_cv_working_alloca_h=no
|
---|
[3745] | 5410 | fi
|
---|
[23356] | 5411 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5412 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5413 | fi
|
---|
[23356] | 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5415 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
[3745] | 5416 | if test $ac_cv_working_alloca_h = yes; then
|
---|
| 5417 |
|
---|
[23356] | 5418 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
[3745] | 5419 |
|
---|
| 5420 | fi
|
---|
| 5421 |
|
---|
[23356] | 5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
| 5423 | $as_echo_n "checking for alloca... " >&6; }
|
---|
| 5424 | if test "${ac_cv_func_alloca_works+set}" = set; then :
|
---|
| 5425 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5426 | else
|
---|
[23356] | 5427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5428 | /* end confdefs.h. */
|
---|
[3745] | 5429 | #ifdef __GNUC__
|
---|
| 5430 | # define alloca __builtin_alloca
|
---|
| 5431 | #else
|
---|
| 5432 | # ifdef _MSC_VER
|
---|
| 5433 | # include <malloc.h>
|
---|
| 5434 | # define alloca _alloca
|
---|
| 5435 | # else
|
---|
[23356] | 5436 | # ifdef HAVE_ALLOCA_H
|
---|
[3745] | 5437 | # include <alloca.h>
|
---|
| 5438 | # else
|
---|
| 5439 | # ifdef _AIX
|
---|
| 5440 | #pragma alloca
|
---|
| 5441 | # else
|
---|
| 5442 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5443 | char *alloca ();
|
---|
| 5444 | # endif
|
---|
| 5445 | # endif
|
---|
| 5446 | # endif
|
---|
| 5447 | # endif
|
---|
| 5448 | #endif
|
---|
| 5449 |
|
---|
| 5450 | int
|
---|
| 5451 | main ()
|
---|
| 5452 | {
|
---|
| 5453 | char *p = (char *) alloca (1);
|
---|
[23356] | 5454 | if (p) return 0;
|
---|
[3745] | 5455 | ;
|
---|
| 5456 | return 0;
|
---|
| 5457 | }
|
---|
| 5458 | _ACEOF
|
---|
[23356] | 5459 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[3745] | 5460 | ac_cv_func_alloca_works=yes
|
---|
| 5461 | else
|
---|
[23356] | 5462 | ac_cv_func_alloca_works=no
|
---|
[3745] | 5463 | fi
|
---|
[23356] | 5464 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5465 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5466 | fi
|
---|
[23356] | 5467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5468 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
[3745] | 5469 |
|
---|
| 5470 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 5471 |
|
---|
[23356] | 5472 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
[3745] | 5473 |
|
---|
| 5474 | else
|
---|
| 5475 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5476 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5477 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5478 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 5479 |
|
---|
[23356] | 5480 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
[3745] | 5481 |
|
---|
[23356] | 5482 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
[3745] | 5483 |
|
---|
[10191] | 5484 |
|
---|
[23356] | 5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5486 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
| 5487 | if test "${ac_cv_os_cray+set}" = set; then :
|
---|
| 5488 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5489 | else
|
---|
[23356] | 5490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5491 | /* end confdefs.h. */
|
---|
[23356] | 5492 | #if defined CRAY && ! defined CRAY2
|
---|
[3745] | 5493 | webecray
|
---|
| 5494 | #else
|
---|
| 5495 | wenotbecray
|
---|
| 5496 | #endif
|
---|
| 5497 |
|
---|
| 5498 | _ACEOF
|
---|
| 5499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23356] | 5500 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
[3745] | 5501 | ac_cv_os_cray=yes
|
---|
| 5502 | else
|
---|
| 5503 | ac_cv_os_cray=no
|
---|
| 5504 | fi
|
---|
| 5505 | rm -f conftest*
|
---|
| 5506 |
|
---|
| 5507 | fi
|
---|
[23356] | 5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
| 5509 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
[3745] | 5510 | if test $ac_cv_os_cray = yes; then
|
---|
| 5511 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[23356] | 5512 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5513 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
[25147] | 5514 | eval as_val=\$$as_ac_var
|
---|
| 5515 | if test "x$as_val" = x""yes; then :
|
---|
[10191] | 5516 |
|
---|
| 5517 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 5518 | #define CRAY_STACKSEG_END $ac_func
|
---|
[10191] | 5519 | _ACEOF
|
---|
[3745] | 5520 |
|
---|
| 5521 | break
|
---|
| 5522 | fi
|
---|
| 5523 |
|
---|
| 5524 | done
|
---|
| 5525 | fi
|
---|
| 5526 |
|
---|
[23356] | 5527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
| 5528 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
| 5529 | if test "${ac_cv_c_stack_direction+set}" = set; then :
|
---|
| 5530 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5531 | else
|
---|
[23356] | 5532 | if test "$cross_compiling" = yes; then :
|
---|
[3745] | 5533 | ac_cv_c_stack_direction=0
|
---|
| 5534 | else
|
---|
[23356] | 5535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5536 | /* end confdefs.h. */
|
---|
[23356] | 5537 | $ac_includes_default
|
---|
[3745] | 5538 | int
|
---|
| 5539 | find_stack_direction ()
|
---|
| 5540 | {
|
---|
| 5541 | static char *addr = 0;
|
---|
| 5542 | auto char dummy;
|
---|
| 5543 | if (addr == 0)
|
---|
| 5544 | {
|
---|
| 5545 | addr = &dummy;
|
---|
| 5546 | return find_stack_direction ();
|
---|
| 5547 | }
|
---|
| 5548 | else
|
---|
| 5549 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5550 | }
|
---|
| 5551 |
|
---|
| 5552 | int
|
---|
| 5553 | main ()
|
---|
| 5554 | {
|
---|
[23356] | 5555 | return find_stack_direction () < 0;
|
---|
[3745] | 5556 | }
|
---|
| 5557 | _ACEOF
|
---|
[23356] | 5558 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
[3745] | 5559 | ac_cv_c_stack_direction=1
|
---|
| 5560 | else
|
---|
[23356] | 5561 | ac_cv_c_stack_direction=-1
|
---|
[3745] | 5562 | fi
|
---|
[23356] | 5563 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5564 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[3745] | 5565 | fi
|
---|
[23356] | 5566 |
|
---|
[3745] | 5567 | fi
|
---|
[23356] | 5568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5569 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
[10191] | 5570 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 5571 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[10191] | 5572 | _ACEOF
|
---|
[3745] | 5573 |
|
---|
[10191] | 5574 |
|
---|
[3745] | 5575 | fi
|
---|
| 5576 |
|
---|
| 5577 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[23356] | 5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
| 5579 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
| 5580 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
|
---|
| 5581 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5582 | else
|
---|
| 5583 | ac_pattern="Autoconf.*'x'"
|
---|
[23356] | 5584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5585 | /* end confdefs.h. */
|
---|
[3745] | 5586 | #include <sgtty.h>
|
---|
| 5587 | Autoconf TIOCGETP
|
---|
| 5588 | _ACEOF
|
---|
| 5589 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23356] | 5590 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[3745] | 5591 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5592 | else
|
---|
| 5593 | ac_cv_prog_gcc_traditional=no
|
---|
| 5594 | fi
|
---|
| 5595 | rm -f conftest*
|
---|
| 5596 |
|
---|
[10191] | 5597 |
|
---|
[3745] | 5598 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[23356] | 5599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5600 | /* end confdefs.h. */
|
---|
[3745] | 5601 | #include <termio.h>
|
---|
| 5602 | Autoconf TCGETA
|
---|
| 5603 | _ACEOF
|
---|
| 5604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23356] | 5605 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[3745] | 5606 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5607 | fi
|
---|
| 5608 | rm -f conftest*
|
---|
| 5609 |
|
---|
| 5610 | fi
|
---|
| 5611 | fi
|
---|
[23356] | 5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5613 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
[3745] | 5614 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5615 | CC="$CC -traditional"
|
---|
| 5616 | fi
|
---|
| 5617 | fi
|
---|
| 5618 |
|
---|
[23356] | 5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
| 5620 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
| 5621 | if test "${ac_cv_type_signal+set}" = set; then :
|
---|
| 5622 | $as_echo_n "(cached) " >&6
|
---|
[3745] | 5623 | else
|
---|
[23356] | 5624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10191] | 5625 | /* end confdefs.h. */
|
---|
[3745] | 5626 | #include <sys/types.h>
|
---|
| 5627 | #include <signal.h>
|
---|
| 5628 |
|
---|
| 5629 | int
|
---|
| 5630 | main ()
|
---|
| 5631 | {
|
---|
[23356] | 5632 | return *(signal (0, 0)) (0) == 1;
|
---|
[3745] | 5633 | ;
|
---|
| 5634 | return 0;
|
---|
| 5635 | }
|
---|
| 5636 | _ACEOF
|
---|
[23356] | 5637 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 5638 | ac_cv_type_signal=int
|
---|
| 5639 | else
|
---|
[3745] | 5640 | ac_cv_type_signal=void
|
---|
| 5641 | fi
|
---|
[23356] | 5642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 5643 | fi
|
---|
[23356] | 5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
| 5645 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
[3745] | 5646 |
|
---|
[10191] | 5647 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 5648 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[10191] | 5649 | _ACEOF
|
---|
[3745] | 5650 |
|
---|
[10191] | 5651 |
|
---|
[3745] | 5652 | for ac_func in vprintf
|
---|
[23356] | 5653 | do :
|
---|
| 5654 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
| 5655 | if test "x$ac_cv_func_vprintf" = x""yes; then :
|
---|
[10191] | 5656 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5657 | #define HAVE_VPRINTF 1
|
---|
[10191] | 5658 | _ACEOF
|
---|
[3745] | 5659 |
|
---|
[23356] | 5660 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
| 5661 | if test "x$ac_cv_func__doprnt" = x""yes; then :
|
---|
[10191] | 5662 |
|
---|
[23356] | 5663 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
[10191] | 5664 |
|
---|
[3745] | 5665 | fi
|
---|
| 5666 |
|
---|
| 5667 | fi
|
---|
| 5668 | done
|
---|
| 5669 |
|
---|
[10191] | 5670 |
|
---|
[3745] | 5671 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
|
---|
[23356] | 5672 | do :
|
---|
| 5673 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5674 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
[25147] | 5675 | eval as_val=\$$as_ac_var
|
---|
| 5676 | if test "x$as_val" = x""yes; then :
|
---|
[10191] | 5677 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5678 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[10191] | 5679 | _ACEOF
|
---|
[3745] | 5680 |
|
---|
| 5681 | fi
|
---|
| 5682 | done
|
---|
| 5683 |
|
---|
[25147] | 5684 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 5685 | do :
|
---|
| 5686 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5687 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 5688 | eval as_val=\$$as_ac_var
|
---|
| 5689 | if test "x$as_val" = x""yes; then :
|
---|
| 5690 | cat >>confdefs.h <<_ACEOF
|
---|
| 5691 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5692 | _ACEOF
|
---|
[10191] | 5693 |
|
---|
[3745] | 5694 | else
|
---|
[23356] | 5695 | case " $LIBOBJS " in
|
---|
[25147] | 5696 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 5697 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
---|
[23356] | 5698 | ;;
|
---|
| 5699 | esac
|
---|
[10191] | 5700 |
|
---|
[23356] | 5701 | fi
|
---|
[25147] | 5702 | done
|
---|
[10191] | 5703 |
|
---|
| 5704 |
|
---|
| 5705 |
|
---|
[3745] | 5706 |
|
---|
| 5707 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 5708 | # ---------------------------------------------------------------------------
|
---|
[23356] | 5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
| 5710 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
[3745] | 5711 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[23356] | 5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 5713 | $as_echo "yes" >&6; }
|
---|
| 5714 | case " $LIBOBJS " in
|
---|
[10191] | 5715 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[23356] | 5716 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
| 5717 | ;;
|
---|
[10191] | 5718 | esac
|
---|
| 5719 |
|
---|
[23356] | 5720 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
[3745] | 5721 |
|
---|
| 5722 | else
|
---|
[23356] | 5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5724 | $as_echo "no" >&6; }
|
---|
| 5725 | for ac_func in valloc
|
---|
| 5726 | do :
|
---|
| 5727 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
| 5728 | if test "x$ac_cv_func_valloc" = x""yes; then :
|
---|
[10191] | 5729 | cat >>confdefs.h <<_ACEOF
|
---|
[23356] | 5730 | #define HAVE_VALLOC 1
|
---|
[10191] | 5731 | _ACEOF
|
---|
[3745] | 5732 |
|
---|
| 5733 | fi
|
---|
| 5734 | done
|
---|
| 5735 |
|
---|
| 5736 | fi
|
---|
| 5737 |
|
---|
[10191] | 5738 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
| 5739 | # a non-standard Path
|
---|
[10917] | 5740 | # is there a better way to do this??
|
---|
[23356] | 5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS to set JNI options" >&5
|
---|
| 5742 | $as_echo_n "checking for OS to set JNI options... " >&6; }
|
---|
[10917] | 5743 | # set defaults
|
---|
| 5744 | JNIINC=""
|
---|
| 5745 | JNISUFFIX="so"
|
---|
| 5746 | JNIFLAGS="-shared"
|
---|
| 5747 |
|
---|
[10191] | 5748 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[23356] | 5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
|
---|
| 5750 | $as_echo "Darwin" >&6; }
|
---|
[10191] | 5751 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
| 5752 | JNISUFFIX="jnilib"
|
---|
[10887] | 5753 | JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
[10191] | 5754 | fi
|
---|
[10917] | 5755 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
[23356] | 5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
|
---|
| 5757 | $as_echo "Solaris" >&6; }
|
---|
[10917] | 5758 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
| 5759 | fi
|
---|
| 5760 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
[23356] | 5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
|
---|
| 5762 | $as_echo "Linux" >&6; }
|
---|
[18597] | 5763 | JNIINC="-I\$(JAVA_HOME)/include/linux -I\$(JAVA_HOME)/include "
|
---|
[10917] | 5764 | fi
|
---|
[10191] | 5765 |
|
---|
| 5766 |
|
---|
| 5767 |
|
---|
| 5768 |
|
---|
[10917] | 5769 |
|
---|
[23356] | 5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
| 5771 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
[3745] | 5772 |
|
---|
[23356] | 5773 | # Check whether --with-dmalloc was given.
|
---|
| 5774 | if test "${with_dmalloc+set}" = set; then :
|
---|
| 5775 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
| 5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 5777 | $as_echo "yes" >&6; }
|
---|
| 5778 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
[3745] | 5779 |
|
---|
| 5780 | LIBS="$LIBS -ldmalloc"
|
---|
| 5781 | LDFLAGS="$LDFLAGS -g"
|
---|
| 5782 | else
|
---|
[23356] | 5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5784 | $as_echo "no" >&6; }
|
---|
[3745] | 5785 | fi
|
---|
| 5786 | else
|
---|
[23356] | 5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5788 | $as_echo "no" >&6; }
|
---|
| 5789 | fi
|
---|
[3745] | 5790 |
|
---|
| 5791 |
|
---|
[23356] | 5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
| 5793 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
| 5794 |
|
---|
| 5795 | # Check whether --with-regex was given.
|
---|
| 5796 | if test "${with_regex+set}" = set; then :
|
---|
| 5797 | withval=$with_regex; if test "$withval" = yes; then
|
---|
[3745] | 5798 | ac_with_regex=1
|
---|
[23356] | 5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
| 5800 | $as_echo "regex" >&6; }
|
---|
| 5801 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
[3745] | 5802 |
|
---|
[23356] | 5803 | case " $LIBOBJS " in
|
---|
[10840] | 5804 | *" regex.$ac_objext "* ) ;;
|
---|
[23356] | 5805 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
| 5806 | ;;
|
---|
[10840] | 5807 | esac
|
---|
| 5808 |
|
---|
[3745] | 5809 | fi
|
---|
[23356] | 5810 | fi
|
---|
| 5811 |
|
---|
[3745] | 5812 | if test -z "$ac_with_regex"; then
|
---|
[23356] | 5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
| 5814 | $as_echo "rx" >&6; }
|
---|
| 5815 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
| 5816 | if test "x$ac_cv_func_re_rx_search" = x""yes; then :
|
---|
[10191] | 5817 |
|
---|
[3745] | 5818 | else
|
---|
[23356] | 5819 | case " $LIBOBJS " in
|
---|
[10840] | 5820 | *" rx.$ac_objext "* ) ;;
|
---|
[23356] | 5821 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
| 5822 | ;;
|
---|
[10840] | 5823 | esac
|
---|
| 5824 |
|
---|
[3745] | 5825 | fi
|
---|
| 5826 |
|
---|
| 5827 | fi
|
---|
| 5828 |
|
---|
[10191] | 5829 |
|
---|
[10840] | 5830 | # text for endianness
|
---|
[23356] | 5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
| 5832 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
| 5833 | if test "${ac_cv_c_bigendian+set}" = set; then :
|
---|
| 5834 | $as_echo_n "(cached) " >&6
|
---|
[10840] | 5835 | else
|
---|
[23356] | 5836 | ac_cv_c_bigendian=unknown
|
---|
| 5837 | # See if we're dealing with a universal compiler.
|
---|
| 5838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5839 | /* end confdefs.h. */
|
---|
| 5840 | #ifndef __APPLE_CC__
|
---|
| 5841 | not a universal capable compiler
|
---|
| 5842 | #endif
|
---|
| 5843 | typedef int dummy;
|
---|
| 5844 |
|
---|
[10840] | 5845 | _ACEOF
|
---|
[23356] | 5846 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 5847 |
|
---|
| 5848 | # Check for potential -arch flags. It is not universal unless
|
---|
| 5849 | # there are at least two -arch flags with different values.
|
---|
| 5850 | ac_arch=
|
---|
| 5851 | ac_prev=
|
---|
| 5852 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
| 5853 | if test -n "$ac_prev"; then
|
---|
| 5854 | case $ac_word in
|
---|
| 5855 | i?86 | x86_64 | ppc | ppc64)
|
---|
| 5856 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
| 5857 | ac_arch=$ac_word
|
---|
| 5858 | else
|
---|
| 5859 | ac_cv_c_bigendian=universal
|
---|
| 5860 | break
|
---|
| 5861 | fi
|
---|
| 5862 | ;;
|
---|
| 5863 | esac
|
---|
| 5864 | ac_prev=
|
---|
| 5865 | elif test "x$ac_word" = "x-arch"; then
|
---|
| 5866 | ac_prev=arch
|
---|
| 5867 | fi
|
---|
| 5868 | done
|
---|
| 5869 | fi
|
---|
| 5870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5871 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 5872 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 5873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10840] | 5874 | /* end confdefs.h. */
|
---|
| 5875 | #include <sys/types.h>
|
---|
[23356] | 5876 | #include <sys/param.h>
|
---|
[10840] | 5877 |
|
---|
| 5878 | int
|
---|
| 5879 | main ()
|
---|
| 5880 | {
|
---|
[23356] | 5881 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
| 5882 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
| 5883 | && LITTLE_ENDIAN)
|
---|
| 5884 | bogus endian macros
|
---|
| 5885 | #endif
|
---|
[10840] | 5886 |
|
---|
| 5887 | ;
|
---|
| 5888 | return 0;
|
---|
| 5889 | }
|
---|
| 5890 | _ACEOF
|
---|
[23356] | 5891 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10840] | 5892 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
[23356] | 5893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10840] | 5894 | /* end confdefs.h. */
|
---|
| 5895 | #include <sys/types.h>
|
---|
[23356] | 5896 | #include <sys/param.h>
|
---|
[10840] | 5897 |
|
---|
| 5898 | int
|
---|
| 5899 | main ()
|
---|
| 5900 | {
|
---|
| 5901 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
[23356] | 5902 | not big endian
|
---|
| 5903 | #endif
|
---|
[10840] | 5904 |
|
---|
| 5905 | ;
|
---|
| 5906 | return 0;
|
---|
| 5907 | }
|
---|
| 5908 | _ACEOF
|
---|
[23356] | 5909 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10840] | 5910 | ac_cv_c_bigendian=yes
|
---|
| 5911 | else
|
---|
[23356] | 5912 | ac_cv_c_bigendian=no
|
---|
[10840] | 5913 | fi
|
---|
[23356] | 5914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5915 | fi
|
---|
| 5916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5917 | fi
|
---|
| 5918 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 5919 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
| 5920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5921 | /* end confdefs.h. */
|
---|
| 5922 | #include <limits.h>
|
---|
[10840] | 5923 |
|
---|
[23356] | 5924 | int
|
---|
| 5925 | main ()
|
---|
| 5926 | {
|
---|
| 5927 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
| 5928 | bogus endian macros
|
---|
| 5929 | #endif
|
---|
| 5930 |
|
---|
| 5931 | ;
|
---|
| 5932 | return 0;
|
---|
| 5933 | }
|
---|
[10840] | 5934 | _ACEOF
|
---|
[23356] | 5935 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 5936 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
| 5937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10840] | 5938 | /* end confdefs.h. */
|
---|
[23356] | 5939 | #include <limits.h>
|
---|
| 5940 |
|
---|
[10840] | 5941 | int
|
---|
| 5942 | main ()
|
---|
| 5943 | {
|
---|
[23356] | 5944 | #ifndef _BIG_ENDIAN
|
---|
| 5945 | not big endian
|
---|
| 5946 | #endif
|
---|
| 5947 |
|
---|
[10840] | 5948 | ;
|
---|
| 5949 | return 0;
|
---|
| 5950 | }
|
---|
| 5951 | _ACEOF
|
---|
[23356] | 5952 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[10840] | 5953 | ac_cv_c_bigendian=yes
|
---|
[23356] | 5954 | else
|
---|
| 5955 | ac_cv_c_bigendian=no
|
---|
[10840] | 5956 | fi
|
---|
[23356] | 5957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10840] | 5958 | fi
|
---|
[23356] | 5959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5960 | fi
|
---|
| 5961 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 5962 | # Compile a test program.
|
---|
| 5963 | if test "$cross_compiling" = yes; then :
|
---|
| 5964 | # Try to guess by grepping values from an object file.
|
---|
| 5965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5966 | /* end confdefs.h. */
|
---|
| 5967 | short int ascii_mm[] =
|
---|
| 5968 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 5969 | short int ascii_ii[] =
|
---|
| 5970 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 5971 | int use_ascii (int i) {
|
---|
| 5972 | return ascii_mm[i] + ascii_ii[i];
|
---|
| 5973 | }
|
---|
| 5974 | short int ebcdic_ii[] =
|
---|
| 5975 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 5976 | short int ebcdic_mm[] =
|
---|
| 5977 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 5978 | int use_ebcdic (int i) {
|
---|
| 5979 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
| 5980 | }
|
---|
| 5981 | extern int foo;
|
---|
[10840] | 5982 |
|
---|
[23356] | 5983 | int
|
---|
| 5984 | main ()
|
---|
| 5985 | {
|
---|
| 5986 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
| 5987 | ;
|
---|
| 5988 | return 0;
|
---|
| 5989 | }
|
---|
| 5990 | _ACEOF
|
---|
| 5991 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 5992 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
| 5993 | ac_cv_c_bigendian=yes
|
---|
| 5994 | fi
|
---|
| 5995 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 5996 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 5997 | ac_cv_c_bigendian=no
|
---|
| 5998 | else
|
---|
| 5999 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 6000 | ac_cv_c_bigendian=unknown
|
---|
| 6001 | fi
|
---|
| 6002 | fi
|
---|
[10840] | 6003 | fi
|
---|
[23356] | 6004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10840] | 6005 | else
|
---|
[23356] | 6006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10840] | 6007 | /* end confdefs.h. */
|
---|
[23356] | 6008 | $ac_includes_default
|
---|
[10840] | 6009 | int
|
---|
| 6010 | main ()
|
---|
| 6011 | {
|
---|
[23356] | 6012 |
|
---|
| 6013 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 6014 | union
|
---|
| 6015 | {
|
---|
| 6016 | long int l;
|
---|
| 6017 | char c[sizeof (long int)];
|
---|
| 6018 | } u;
|
---|
| 6019 | u.l = 1;
|
---|
| 6020 | return u.c[sizeof (long int) - 1] == 1;
|
---|
| 6021 |
|
---|
| 6022 | ;
|
---|
| 6023 | return 0;
|
---|
[10840] | 6024 | }
|
---|
| 6025 | _ACEOF
|
---|
[23356] | 6026 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
[10840] | 6027 | ac_cv_c_bigendian=no
|
---|
| 6028 | else
|
---|
[23356] | 6029 | ac_cv_c_bigendian=yes
|
---|
[10840] | 6030 | fi
|
---|
[23356] | 6031 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 6032 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[10840] | 6033 | fi
|
---|
[23356] | 6034 |
|
---|
| 6035 | fi
|
---|
[10840] | 6036 | fi
|
---|
[23356] | 6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
| 6038 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
| 6039 | case $ac_cv_c_bigendian in #(
|
---|
| 6040 | yes)
|
---|
| 6041 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
| 6042 | ;; #(
|
---|
| 6043 | no)
|
---|
| 6044 | ;; #(
|
---|
| 6045 | universal)
|
---|
[10840] | 6046 |
|
---|
[23356] | 6047 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
[10840] | 6048 |
|
---|
[23356] | 6049 | ;; #(
|
---|
| 6050 | *)
|
---|
[25147] | 6051 | as_fn_error "unknown endianness
|
---|
| 6052 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
[23356] | 6053 | esac
|
---|
[10840] | 6054 |
|
---|
[23356] | 6055 |
|
---|
[3745] | 6056 | # ---------------------------------------------------------------------------
|
---|
| 6057 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[23356] | 6058 | case " $LIBOBJS " in
|
---|
[10191] | 6059 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[23356] | 6060 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
| 6061 | ;;
|
---|
[10191] | 6062 | esac
|
---|
| 6063 |
|
---|
[23356] | 6064 | case " $LIBOBJS " in
|
---|
[10191] | 6065 | *" error.$ac_objext "* ) ;;
|
---|
[23356] | 6066 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 6067 | ;;
|
---|
[10191] | 6068 | esac
|
---|
| 6069 |
|
---|
[3745] | 6070 | fi
|
---|
| 6071 |
|
---|
[10191] | 6072 |
|
---|
[3745] | 6073 | # ---------------------------------------------------------------------------
|
---|
| 6074 |
|
---|
[23356] | 6075 | ac_config_files="$ac_config_files Makefile src/text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
|
---|
| 6076 |
|
---|
| 6077 | ac_config_commands="$ac_config_commands default"
|
---|
| 6078 |
|
---|
[3745] | 6079 | cat >confcache <<\_ACEOF
|
---|
| 6080 | # This file is a shell script that caches the results of configure
|
---|
| 6081 | # tests run on this system so they can be shared between configure
|
---|
| 6082 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 6083 | # It is not useful on other systems. If it contains results you don't
|
---|
| 6084 | # want to keep, you may remove or edit it.
|
---|
| 6085 | #
|
---|
| 6086 | # config.status only pays attention to the cache file if you give it
|
---|
| 6087 | # the --recheck option to rerun configure.
|
---|
| 6088 | #
|
---|
[10191] | 6089 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
[3745] | 6090 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 6091 | # following values.
|
---|
| 6092 |
|
---|
| 6093 | _ACEOF
|
---|
| 6094 |
|
---|
| 6095 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 6096 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[23356] | 6097 | # So, we kill variables containing newlines.
|
---|
[3745] | 6098 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 6099 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[23356] | 6100 | (
|
---|
| 6101 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
| 6102 | eval ac_val=\$$ac_var
|
---|
| 6103 | case $ac_val in #(
|
---|
| 6104 | *${as_nl}*)
|
---|
| 6105 | case $ac_var in #(
|
---|
| 6106 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
| 6107 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 6108 | esac
|
---|
| 6109 | case $ac_var in #(
|
---|
| 6110 | _ | IFS | as_nl) ;; #(
|
---|
| 6111 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
| 6112 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
| 6113 | esac ;;
|
---|
| 6114 | esac
|
---|
| 6115 | done
|
---|
| 6116 |
|
---|
[3745] | 6117 | (set) 2>&1 |
|
---|
[23356] | 6118 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
| 6119 | *${as_nl}ac_space=\ *)
|
---|
| 6120 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
| 6121 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
[3745] | 6122 | sed -n \
|
---|
[10191] | 6123 | "s/'/'\\\\''/g;
|
---|
| 6124 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[23356] | 6125 | ;; #(
|
---|
[3745] | 6126 | *)
|
---|
| 6127 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[23356] | 6128 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[3745] | 6129 | ;;
|
---|
[23356] | 6130 | esac |
|
---|
| 6131 | sort
|
---|
| 6132 | ) |
|
---|
[3745] | 6133 | sed '
|
---|
[23356] | 6134 | /^ac_cv_env_/b end
|
---|
[3745] | 6135 | t clear
|
---|
[23356] | 6136 | :clear
|
---|
[3745] | 6137 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 6138 | t end
|
---|
[23356] | 6139 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 6140 | :end' >>confcache
|
---|
| 6141 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
| 6142 | if test -w "$cache_file"; then
|
---|
| 6143 | test "x$cache_file" != "x/dev/null" &&
|
---|
| 6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
| 6145 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
[3745] | 6146 | cat confcache >$cache_file
|
---|
| 6147 | else
|
---|
[23356] | 6148 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
| 6149 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
[3745] | 6150 | fi
|
---|
| 6151 | fi
|
---|
| 6152 | rm -f confcache
|
---|
| 6153 |
|
---|
| 6154 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 6155 | # Let make expand exec_prefix.
|
---|
| 6156 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 6157 |
|
---|
| 6158 | DEFS=-DHAVE_CONFIG_H
|
---|
| 6159 |
|
---|
[10191] | 6160 | ac_libobjs=
|
---|
| 6161 | ac_ltlibobjs=
|
---|
| 6162 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 6163 | # 1. Remove the extension, and $U if already installed.
|
---|
[23356] | 6164 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
| 6165 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
| 6166 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
| 6167 | # will be set to the directory where LIBOBJS objects are built.
|
---|
| 6168 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
| 6169 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
[10191] | 6170 | done
|
---|
| 6171 | LIBOBJS=$ac_libobjs
|
---|
| 6172 |
|
---|
| 6173 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 6174 |
|
---|
| 6175 |
|
---|
| 6176 |
|
---|
[23356] | 6177 |
|
---|
[3745] | 6178 | : ${CONFIG_STATUS=./config.status}
|
---|
[23356] | 6179 | ac_write_fail=0
|
---|
[3745] | 6180 | ac_clean_files_save=$ac_clean_files
|
---|
| 6181 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[23356] | 6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
| 6183 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 6184 | as_write_fail=0
|
---|
| 6185 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
[3745] | 6186 | #! $SHELL
|
---|
[10191] | 6187 | # Generated by $as_me.
|
---|
[3745] | 6188 | # Run this file to recreate the current configuration.
|
---|
| 6189 | # Compiler output produced by configure, useful for debugging
|
---|
| 6190 | # configure, is in config.log if it exists.
|
---|
| 6191 |
|
---|
| 6192 | debug=false
|
---|
[10191] | 6193 | ac_cs_recheck=false
|
---|
| 6194 | ac_cs_silent=false
|
---|
[23356] | 6195 |
|
---|
[3745] | 6196 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
[23356] | 6197 | export SHELL
|
---|
| 6198 | _ASEOF
|
---|
| 6199 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
| 6200 | ## -------------------- ##
|
---|
| 6201 | ## M4sh Initialization. ##
|
---|
| 6202 | ## -------------------- ##
|
---|
[3745] | 6203 |
|
---|
[23356] | 6204 | # Be more Bourne compatible
|
---|
| 6205 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 6206 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
[3745] | 6207 | emulate sh
|
---|
| 6208 | NULLCMD=:
|
---|
[23356] | 6209 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[10191] | 6210 | # is contrary to our usage. Disable this feature.
|
---|
| 6211 | alias -g '${1+"$@"}'='"$@"'
|
---|
[23356] | 6212 | setopt NO_GLOB_SUBST
|
---|
| 6213 | else
|
---|
| 6214 | case `(set -o) 2>/dev/null` in #(
|
---|
| 6215 | *posix*) :
|
---|
| 6216 | set -o posix ;; #(
|
---|
| 6217 | *) :
|
---|
| 6218 | ;;
|
---|
| 6219 | esac
|
---|
[3745] | 6220 | fi
|
---|
| 6221 |
|
---|
[23356] | 6222 |
|
---|
| 6223 | as_nl='
|
---|
| 6224 | '
|
---|
| 6225 | export as_nl
|
---|
| 6226 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 6227 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 6228 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 6229 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 6230 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 6231 | # but without wasting forks for bash or zsh.
|
---|
| 6232 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 6233 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 6234 | as_echo='print -r --'
|
---|
| 6235 | as_echo_n='print -rn --'
|
---|
| 6236 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 6237 | as_echo='printf %s\n'
|
---|
| 6238 | as_echo_n='printf %s'
|
---|
[10191] | 6239 | else
|
---|
[23356] | 6240 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 6241 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 6242 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 6243 | else
|
---|
| 6244 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 6245 | as_echo_n_body='eval
|
---|
| 6246 | arg=$1;
|
---|
| 6247 | case $arg in #(
|
---|
| 6248 | *"$as_nl"*)
|
---|
| 6249 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 6250 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 6251 | esac;
|
---|
| 6252 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 6253 | '
|
---|
| 6254 | export as_echo_n_body
|
---|
| 6255 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 6256 | fi
|
---|
| 6257 | export as_echo_body
|
---|
| 6258 | as_echo='sh -c $as_echo_body as_echo'
|
---|
[10191] | 6259 | fi
|
---|
| 6260 |
|
---|
[23356] | 6261 | # The user is always right.
|
---|
| 6262 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 6263 | PATH_SEPARATOR=:
|
---|
| 6264 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 6265 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 6266 | PATH_SEPARATOR=';'
|
---|
| 6267 | }
|
---|
| 6268 | fi
|
---|
[10191] | 6269 |
|
---|
[23356] | 6270 |
|
---|
| 6271 | # IFS
|
---|
| 6272 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 6273 | # there to prevent editors from complaining about space-tab.
|
---|
| 6274 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 6275 | # splitting by setting IFS to empty value.)
|
---|
| 6276 | IFS=" "" $as_nl"
|
---|
| 6277 |
|
---|
| 6278 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 6279 | case $0 in #((
|
---|
| 6280 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 6281 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 6282 | for as_dir in $PATH
|
---|
| 6283 | do
|
---|
| 6284 | IFS=$as_save_IFS
|
---|
| 6285 | test -z "$as_dir" && as_dir=.
|
---|
| 6286 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 6287 | done
|
---|
| 6288 | IFS=$as_save_IFS
|
---|
| 6289 |
|
---|
| 6290 | ;;
|
---|
| 6291 | esac
|
---|
| 6292 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 6293 | # in which case we are not to be found in the path.
|
---|
| 6294 | if test "x$as_myself" = x; then
|
---|
| 6295 | as_myself=$0
|
---|
| 6296 | fi
|
---|
| 6297 | if test ! -f "$as_myself"; then
|
---|
| 6298 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
| 6299 | exit 1
|
---|
| 6300 | fi
|
---|
| 6301 |
|
---|
| 6302 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 6303 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 6304 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 6305 | # trigger a bug in pdksh 5.2.14.
|
---|
| 6306 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 6307 | do eval test x\${$as_var+set} = xset \
|
---|
| 6308 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
| 6309 | done
|
---|
[10191] | 6310 | PS1='$ '
|
---|
| 6311 | PS2='> '
|
---|
| 6312 | PS4='+ '
|
---|
| 6313 |
|
---|
| 6314 | # NLS nuisances.
|
---|
[23356] | 6315 | LC_ALL=C
|
---|
| 6316 | export LC_ALL
|
---|
| 6317 | LANGUAGE=C
|
---|
| 6318 | export LANGUAGE
|
---|
| 6319 |
|
---|
| 6320 | # CDPATH.
|
---|
| 6321 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
| 6322 |
|
---|
| 6323 |
|
---|
[25147] | 6324 | # as_fn_error ERROR [LINENO LOG_FD]
|
---|
| 6325 | # ---------------------------------
|
---|
[23356] | 6326 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 6327 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
[25147] | 6328 | # script with status $?, using 1 if that was 0.
|
---|
[23356] | 6329 | as_fn_error ()
|
---|
| 6330 | {
|
---|
[25147] | 6331 | as_status=$?; test $as_status -eq 0 && as_status=1
|
---|
| 6332 | if test "$3"; then
|
---|
| 6333 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 6334 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
|
---|
[10191] | 6335 | fi
|
---|
[25147] | 6336 | $as_echo "$as_me: error: $1" >&2
|
---|
[23356] | 6337 | as_fn_exit $as_status
|
---|
| 6338 | } # as_fn_error
|
---|
[10191] | 6339 |
|
---|
[23356] | 6340 |
|
---|
| 6341 | # as_fn_set_status STATUS
|
---|
| 6342 | # -----------------------
|
---|
| 6343 | # Set $? to STATUS, without forking.
|
---|
| 6344 | as_fn_set_status ()
|
---|
| 6345 | {
|
---|
| 6346 | return $1
|
---|
| 6347 | } # as_fn_set_status
|
---|
| 6348 |
|
---|
| 6349 | # as_fn_exit STATUS
|
---|
| 6350 | # -----------------
|
---|
| 6351 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 6352 | as_fn_exit ()
|
---|
| 6353 | {
|
---|
| 6354 | set +e
|
---|
| 6355 | as_fn_set_status $1
|
---|
| 6356 | exit $1
|
---|
| 6357 | } # as_fn_exit
|
---|
| 6358 |
|
---|
| 6359 | # as_fn_unset VAR
|
---|
| 6360 | # ---------------
|
---|
| 6361 | # Portably unset VAR.
|
---|
| 6362 | as_fn_unset ()
|
---|
| 6363 | {
|
---|
| 6364 | { eval $1=; unset $1;}
|
---|
| 6365 | }
|
---|
| 6366 | as_unset=as_fn_unset
|
---|
| 6367 | # as_fn_append VAR VALUE
|
---|
| 6368 | # ----------------------
|
---|
| 6369 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 6370 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 6371 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 6372 | # implementations.
|
---|
| 6373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 6374 | eval 'as_fn_append ()
|
---|
| 6375 | {
|
---|
| 6376 | eval $1+=\$2
|
---|
| 6377 | }'
|
---|
| 6378 | else
|
---|
| 6379 | as_fn_append ()
|
---|
| 6380 | {
|
---|
| 6381 | eval $1=\$$1\$2
|
---|
| 6382 | }
|
---|
| 6383 | fi # as_fn_append
|
---|
| 6384 |
|
---|
| 6385 | # as_fn_arith ARG...
|
---|
| 6386 | # ------------------
|
---|
| 6387 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 6388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 6389 | # must be portable across $(()) and expr.
|
---|
| 6390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 6391 | eval 'as_fn_arith ()
|
---|
| 6392 | {
|
---|
| 6393 | as_val=$(( $* ))
|
---|
| 6394 | }'
|
---|
| 6395 | else
|
---|
| 6396 | as_fn_arith ()
|
---|
| 6397 | {
|
---|
| 6398 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 6399 | }
|
---|
| 6400 | fi # as_fn_arith
|
---|
| 6401 |
|
---|
| 6402 |
|
---|
| 6403 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 6404 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[10191] | 6405 | as_expr=expr
|
---|
| 6406 | else
|
---|
| 6407 | as_expr=false
|
---|
| 6408 | fi
|
---|
| 6409 |
|
---|
[23356] | 6410 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[10191] | 6411 | as_basename=basename
|
---|
| 6412 | else
|
---|
| 6413 | as_basename=false
|
---|
| 6414 | fi
|
---|
| 6415 |
|
---|
[23356] | 6416 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 6417 | as_dirname=dirname
|
---|
| 6418 | else
|
---|
| 6419 | as_dirname=false
|
---|
| 6420 | fi
|
---|
[10191] | 6421 |
|
---|
[23356] | 6422 | as_me=`$as_basename -- "$0" ||
|
---|
[10191] | 6423 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 6424 | X"$0" : 'X\(//\)$' \| \
|
---|
[23356] | 6425 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 6426 | $as_echo X/"$0" |
|
---|
| 6427 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 6428 | s//\1/
|
---|
| 6429 | q
|
---|
| 6430 | }
|
---|
| 6431 | /^X\/\(\/\/\)$/{
|
---|
| 6432 | s//\1/
|
---|
| 6433 | q
|
---|
| 6434 | }
|
---|
| 6435 | /^X\/\(\/\).*/{
|
---|
| 6436 | s//\1/
|
---|
| 6437 | q
|
---|
| 6438 | }
|
---|
| 6439 | s/.*/./; q'`
|
---|
[3745] | 6440 |
|
---|
[10191] | 6441 | # Avoid depending upon Character Ranges.
|
---|
| 6442 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 6443 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 6444 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 6445 | as_cr_digits='0123456789'
|
---|
| 6446 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 6447 |
|
---|
[23356] | 6448 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 6449 | case `echo -n x` in #(((((
|
---|
| 6450 | -n*)
|
---|
| 6451 | case `echo 'xy\c'` in
|
---|
| 6452 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 6453 | xy) ECHO_C='\c';;
|
---|
| 6454 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 6455 | ECHO_T=' ';;
|
---|
| 6456 | esac;;
|
---|
| 6457 | *)
|
---|
| 6458 | ECHO_N='-n';;
|
---|
[10191] | 6459 | esac
|
---|
| 6460 |
|
---|
[23356] | 6461 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 6462 | if test -d conf$$.dir; then
|
---|
| 6463 | rm -f conf$$.dir/conf$$.file
|
---|
[3745] | 6464 | else
|
---|
[23356] | 6465 | rm -f conf$$.dir
|
---|
| 6466 | mkdir conf$$.dir 2>/dev/null
|
---|
[3745] | 6467 | fi
|
---|
[23356] | 6468 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 6469 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6470 | as_ln_s='ln -s'
|
---|
| 6471 | # ... but there are two gotchas:
|
---|
| 6472 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 6473 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 6474 | # In both cases, we have to default to `cp -p'.
|
---|
| 6475 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
| 6476 | as_ln_s='cp -p'
|
---|
| 6477 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6478 | as_ln_s=ln
|
---|
| 6479 | else
|
---|
[3745] | 6480 | as_ln_s='cp -p'
|
---|
| 6481 | fi
|
---|
| 6482 | else
|
---|
| 6483 | as_ln_s='cp -p'
|
---|
| 6484 | fi
|
---|
[23356] | 6485 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 6486 | rmdir conf$$.dir 2>/dev/null
|
---|
[3745] | 6487 |
|
---|
[23356] | 6488 |
|
---|
| 6489 | # as_fn_mkdir_p
|
---|
| 6490 | # -------------
|
---|
| 6491 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 6492 | as_fn_mkdir_p ()
|
---|
| 6493 | {
|
---|
| 6494 |
|
---|
| 6495 | case $as_dir in #(
|
---|
| 6496 | -*) as_dir=./$as_dir;;
|
---|
| 6497 | esac
|
---|
| 6498 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 6499 | as_dirs=
|
---|
| 6500 | while :; do
|
---|
| 6501 | case $as_dir in #(
|
---|
| 6502 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 6503 | *) as_qdir=$as_dir;;
|
---|
| 6504 | esac
|
---|
| 6505 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 6506 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 6507 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 6508 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 6509 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 6510 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 6511 | $as_echo X"$as_dir" |
|
---|
| 6512 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 6513 | s//\1/
|
---|
| 6514 | q
|
---|
| 6515 | }
|
---|
| 6516 | /^X\(\/\/\)[^/].*/{
|
---|
| 6517 | s//\1/
|
---|
| 6518 | q
|
---|
| 6519 | }
|
---|
| 6520 | /^X\(\/\/\)$/{
|
---|
| 6521 | s//\1/
|
---|
| 6522 | q
|
---|
| 6523 | }
|
---|
| 6524 | /^X\(\/\).*/{
|
---|
| 6525 | s//\1/
|
---|
| 6526 | q
|
---|
| 6527 | }
|
---|
| 6528 | s/.*/./; q'`
|
---|
| 6529 | test -d "$as_dir" && break
|
---|
| 6530 | done
|
---|
| 6531 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
[25147] | 6532 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
---|
[23356] | 6533 |
|
---|
| 6534 |
|
---|
| 6535 | } # as_fn_mkdir_p
|
---|
[10191] | 6536 | if mkdir -p . 2>/dev/null; then
|
---|
[23356] | 6537 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[3745] | 6538 | else
|
---|
[10191] | 6539 | test -d ./-p && rmdir ./-p
|
---|
| 6540 | as_mkdir_p=false
|
---|
[3745] | 6541 | fi
|
---|
| 6542 |
|
---|
[23356] | 6543 | if test -x / >/dev/null 2>&1; then
|
---|
| 6544 | as_test_x='test -x'
|
---|
| 6545 | else
|
---|
| 6546 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 6547 | as_ls_L_option=L
|
---|
| 6548 | else
|
---|
| 6549 | as_ls_L_option=
|
---|
| 6550 | fi
|
---|
| 6551 | as_test_x='
|
---|
| 6552 | eval sh -c '\''
|
---|
| 6553 | if test -d "$1"; then
|
---|
| 6554 | test -d "$1/.";
|
---|
| 6555 | else
|
---|
| 6556 | case $1 in #(
|
---|
| 6557 | -*)set "./$1";;
|
---|
| 6558 | esac;
|
---|
| 6559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
| 6560 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 6561 | '\'' sh
|
---|
| 6562 | '
|
---|
| 6563 | fi
|
---|
| 6564 | as_executable_p=$as_test_x
|
---|
[3745] | 6565 |
|
---|
[10191] | 6566 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 6567 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6568 |
|
---|
| 6569 | # Sed expression to map a string onto a valid variable name.
|
---|
| 6570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6571 |
|
---|
| 6572 |
|
---|
[3745] | 6573 | exec 6>&1
|
---|
[23356] | 6574 | ## ----------------------------------- ##
|
---|
| 6575 | ## Main body of $CONFIG_STATUS script. ##
|
---|
| 6576 | ## ----------------------------------- ##
|
---|
| 6577 | _ASEOF
|
---|
| 6578 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
[3745] | 6579 |
|
---|
[23356] | 6580 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6581 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
[10191] | 6582 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[23356] | 6583 | # values after options handling.
|
---|
| 6584 | ac_log="
|
---|
[10191] | 6585 | This file was extended by $as_me, which was
|
---|
[25147] | 6586 | generated by GNU Autoconf 2.65. Invocation command line was
|
---|
[10191] | 6587 |
|
---|
| 6588 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 6589 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 6590 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 6591 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 6592 | $ $0 $@
|
---|
| 6593 |
|
---|
[23356] | 6594 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 6595 | "
|
---|
| 6596 |
|
---|
[3745] | 6597 | _ACEOF
|
---|
| 6598 |
|
---|
[23356] | 6599 | case $ac_config_files in *"
|
---|
| 6600 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
| 6601 | esac
|
---|
[3745] | 6602 |
|
---|
[23356] | 6603 | case $ac_config_headers in *"
|
---|
| 6604 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
| 6605 | esac
|
---|
[3745] | 6606 |
|
---|
| 6607 |
|
---|
[23356] | 6608 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6609 | # Files that config.status was made for.
|
---|
| 6610 | config_files="$ac_config_files"
|
---|
| 6611 | config_headers="$ac_config_headers"
|
---|
| 6612 | config_commands="$ac_config_commands"
|
---|
[3745] | 6613 |
|
---|
[23356] | 6614 | _ACEOF
|
---|
[3745] | 6615 |
|
---|
[23356] | 6616 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[3745] | 6617 | ac_cs_usage="\
|
---|
[23356] | 6618 | \`$as_me' instantiates files and other configuration actions
|
---|
| 6619 | from templates according to the current configuration. Unless the files
|
---|
| 6620 | and actions are specified as TAGs, all are instantiated by default.
|
---|
[3745] | 6621 |
|
---|
[23356] | 6622 | Usage: $0 [OPTION]... [TAG]...
|
---|
[3745] | 6623 |
|
---|
| 6624 | -h, --help print this help, then exit
|
---|
[23356] | 6625 | -V, --version print version number and configuration settings, then exit
|
---|
| 6626 | --config print configuration, then exit
|
---|
| 6627 | -q, --quiet, --silent
|
---|
| 6628 | do not print progress messages
|
---|
[3745] | 6629 | -d, --debug don't remove temporary files
|
---|
| 6630 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
[23356] | 6631 | --file=FILE[:TEMPLATE]
|
---|
| 6632 | instantiate the configuration file FILE
|
---|
| 6633 | --header=FILE[:TEMPLATE]
|
---|
| 6634 | instantiate the configuration header FILE
|
---|
[3745] | 6635 |
|
---|
| 6636 | Configuration files:
|
---|
| 6637 | $config_files
|
---|
| 6638 |
|
---|
| 6639 | Configuration headers:
|
---|
| 6640 | $config_headers
|
---|
| 6641 |
|
---|
| 6642 | Configuration commands:
|
---|
| 6643 | $config_commands
|
---|
| 6644 |
|
---|
[23356] | 6645 | Report bugs to the package provider."
|
---|
| 6646 |
|
---|
[10191] | 6647 | _ACEOF
|
---|
[23356] | 6648 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6649 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
[3745] | 6650 | ac_cs_version="\\
|
---|
| 6651 | config.status
|
---|
[25147] | 6652 | configured by $0, generated by GNU Autoconf 2.65,
|
---|
[23356] | 6653 | with options \\"\$ac_cs_config\\"
|
---|
[3745] | 6654 |
|
---|
[25147] | 6655 | Copyright (C) 2009 Free Software Foundation, Inc.
|
---|
[3745] | 6656 | This config.status script is free software; the Free Software Foundation
|
---|
| 6657 | gives unlimited permission to copy, distribute and modify it."
|
---|
[23356] | 6658 |
|
---|
| 6659 | ac_pwd='$ac_pwd'
|
---|
| 6660 | srcdir='$srcdir'
|
---|
| 6661 | INSTALL='$INSTALL'
|
---|
| 6662 | AWK='$AWK'
|
---|
| 6663 | test -n "\$AWK" || AWK=awk
|
---|
[10191] | 6664 | _ACEOF
|
---|
[3745] | 6665 |
|
---|
[23356] | 6666 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6667 | # The default lists apply if the user does not specify any file.
|
---|
[3745] | 6668 | ac_need_defaults=:
|
---|
| 6669 | while test $# != 0
|
---|
| 6670 | do
|
---|
| 6671 | case $1 in
|
---|
[25147] | 6672 | --*=*)
|
---|
[23356] | 6673 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 6674 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
[10191] | 6675 | ac_shift=:
|
---|
[3745] | 6676 | ;;
|
---|
[23356] | 6677 | *)
|
---|
[10191] | 6678 | ac_option=$1
|
---|
| 6679 | ac_optarg=$2
|
---|
| 6680 | ac_shift=shift
|
---|
| 6681 | ;;
|
---|
[3745] | 6682 | esac
|
---|
| 6683 |
|
---|
[10191] | 6684 | case $ac_option in
|
---|
[3745] | 6685 | # Handling of the options.
|
---|
| 6686 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
[10191] | 6687 | ac_cs_recheck=: ;;
|
---|
[23356] | 6688 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
| 6689 | $as_echo "$ac_cs_version"; exit ;;
|
---|
| 6690 | --config | --confi | --conf | --con | --co | --c )
|
---|
| 6691 | $as_echo "$ac_cs_config"; exit ;;
|
---|
| 6692 | --debug | --debu | --deb | --de | --d | -d )
|
---|
[3745] | 6693 | debug=: ;;
|
---|
| 6694 | --file | --fil | --fi | --f )
|
---|
[10191] | 6695 | $ac_shift
|
---|
[23356] | 6696 | case $ac_optarg in
|
---|
| 6697 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 6698 | esac
|
---|
| 6699 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
[3745] | 6700 | ac_need_defaults=false;;
|
---|
| 6701 | --header | --heade | --head | --hea )
|
---|
[10191] | 6702 | $ac_shift
|
---|
[23356] | 6703 | case $ac_optarg in
|
---|
| 6704 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 6705 | esac
|
---|
| 6706 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
[3745] | 6707 | ac_need_defaults=false;;
|
---|
[23356] | 6708 | --he | --h)
|
---|
| 6709 | # Conflict between --help and --header
|
---|
[25147] | 6710 | as_fn_error "ambiguous option: \`$1'
|
---|
[23356] | 6711 | Try \`$0 --help' for more information.";;
|
---|
| 6712 | --help | --hel | -h )
|
---|
| 6713 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
[10191] | 6714 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 6715 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 6716 | ac_cs_silent=: ;;
|
---|
[3745] | 6717 |
|
---|
| 6718 | # This is an error.
|
---|
[25147] | 6719 | -*) as_fn_error "unrecognized option: \`$1'
|
---|
[23356] | 6720 | Try \`$0 --help' for more information." ;;
|
---|
[10191] | 6721 |
|
---|
[23356] | 6722 | *) as_fn_append ac_config_targets " $1"
|
---|
| 6723 | ac_need_defaults=false ;;
|
---|
[10191] | 6724 |
|
---|
[3745] | 6725 | esac
|
---|
| 6726 | shift
|
---|
| 6727 | done
|
---|
| 6728 |
|
---|
[10191] | 6729 | ac_configure_extra_args=
|
---|
[3745] | 6730 |
|
---|
[10191] | 6731 | if $ac_cs_silent; then
|
---|
| 6732 | exec 6>/dev/null
|
---|
| 6733 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 6734 | fi
|
---|
[3745] | 6735 |
|
---|
[10191] | 6736 | _ACEOF
|
---|
[23356] | 6737 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[10191] | 6738 | if \$ac_cs_recheck; then
|
---|
[23356] | 6739 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 6740 | shift
|
---|
| 6741 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
| 6742 | CONFIG_SHELL='$SHELL'
|
---|
| 6743 | export CONFIG_SHELL
|
---|
| 6744 | exec "\$@"
|
---|
[10191] | 6745 | fi
|
---|
[3745] | 6746 |
|
---|
| 6747 | _ACEOF
|
---|
[23356] | 6748 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6749 | exec 5>>config.log
|
---|
| 6750 | {
|
---|
| 6751 | echo
|
---|
| 6752 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 6753 | ## Running $as_me. ##
|
---|
| 6754 | _ASBOX
|
---|
| 6755 | $as_echo "$ac_log"
|
---|
| 6756 | } >&5
|
---|
[3745] | 6757 |
|
---|
[23356] | 6758 | _ACEOF
|
---|
| 6759 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6760 | _ACEOF
|
---|
[10191] | 6761 |
|
---|
[23356] | 6762 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[10191] | 6763 |
|
---|
[23356] | 6764 | # Handling of arguments.
|
---|
[10191] | 6765 | for ac_config_target in $ac_config_targets
|
---|
| 6766 | do
|
---|
[23356] | 6767 | case $ac_config_target in
|
---|
| 6768 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 6769 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 6770 | "src/text/Makefile") CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
|
---|
| 6771 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 6772 | "jni/Makefile") CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
| 6773 | "java/org/greenstone/mg/Makefile") CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
|
---|
| 6774 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
| 6775 |
|
---|
[25147] | 6776 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
[10191] | 6777 | esac
|
---|
| 6778 | done
|
---|
| 6779 |
|
---|
[23356] | 6780 |
|
---|
[3745] | 6781 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 6782 | # then the envvar interface is used. Set only those that are not.
|
---|
| 6783 | # We use the long form for the default assignment because of an extremely
|
---|
| 6784 | # bizarre bug on SunOS 4.1.3.
|
---|
| 6785 | if $ac_need_defaults; then
|
---|
| 6786 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 6787 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 6788 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
| 6789 | fi
|
---|
| 6790 |
|
---|
[10191] | 6791 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[23356] | 6792 | # simply because there is no reason against having it here, and in addition,
|
---|
[10191] | 6793 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[23356] | 6794 | # Hook for its removal unless debugging.
|
---|
| 6795 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
| 6796 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
[3745] | 6797 | $debug ||
|
---|
| 6798 | {
|
---|
[23356] | 6799 | tmp=
|
---|
| 6800 | trap 'exit_status=$?
|
---|
| 6801 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
| 6802 | ' 0
|
---|
| 6803 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
[3745] | 6804 | }
|
---|
| 6805 | # Create a (secure) tmp directory for tmp files.
|
---|
[10191] | 6806 |
|
---|
[3745] | 6807 | {
|
---|
[23356] | 6808 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
[3745] | 6809 | test -n "$tmp" && test -d "$tmp"
|
---|
| 6810 | } ||
|
---|
| 6811 | {
|
---|
[23356] | 6812 | tmp=./conf$$-$RANDOM
|
---|
| 6813 | (umask 077 && mkdir "$tmp")
|
---|
[25147] | 6814 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
|
---|
[23356] | 6815 |
|
---|
| 6816 | # Set up the scripts for CONFIG_FILES section.
|
---|
| 6817 | # No need to generate them if there are no CONFIG_FILES.
|
---|
| 6818 | # This happens for instance with `./config.status config.h'.
|
---|
| 6819 | if test -n "$CONFIG_FILES"; then
|
---|
| 6820 |
|
---|
| 6821 |
|
---|
| 6822 | ac_cr=`echo X | tr X '\015'`
|
---|
| 6823 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
| 6824 | # But we know of no other shell where ac_cr would be empty at this
|
---|
| 6825 | # point, so we can use a bashism as a fallback.
|
---|
| 6826 | if test "x$ac_cr" = x; then
|
---|
| 6827 | eval ac_cr=\$\'\\r\'
|
---|
| 6828 | fi
|
---|
| 6829 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
| 6830 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
[25147] | 6831 | ac_cs_awk_cr='\r'
|
---|
[23356] | 6832 | else
|
---|
| 6833 | ac_cs_awk_cr=$ac_cr
|
---|
| 6834 | fi
|
---|
| 6835 |
|
---|
| 6836 | echo 'BEGIN {' >"$tmp/subs1.awk" &&
|
---|
| 6837 | _ACEOF
|
---|
| 6838 |
|
---|
| 6839 |
|
---|
[3745] | 6840 | {
|
---|
[23356] | 6841 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
| 6842 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
| 6843 | echo "_ACEOF"
|
---|
| 6844 | } >conf$$subs.sh ||
|
---|
[25147] | 6845 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
| 6846 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
|
---|
[23356] | 6847 | ac_delim='%!_!# '
|
---|
| 6848 | for ac_last_try in false false false false false :; do
|
---|
| 6849 | . ./conf$$subs.sh ||
|
---|
[25147] | 6850 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
[23356] | 6851 |
|
---|
| 6852 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
| 6853 | if test $ac_delim_n = $ac_delim_num; then
|
---|
| 6854 | break
|
---|
| 6855 | elif $ac_last_try; then
|
---|
[25147] | 6856 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
[23356] | 6857 | else
|
---|
| 6858 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
| 6859 | fi
|
---|
| 6860 | done
|
---|
| 6861 | rm -f conf$$subs.sh
|
---|
| 6862 |
|
---|
| 6863 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6864 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
|
---|
| 6865 | _ACEOF
|
---|
| 6866 | sed -n '
|
---|
| 6867 | h
|
---|
| 6868 | s/^/S["/; s/!.*/"]=/
|
---|
| 6869 | p
|
---|
| 6870 | g
|
---|
| 6871 | s/^[^!]*!//
|
---|
| 6872 | :repl
|
---|
| 6873 | t repl
|
---|
| 6874 | s/'"$ac_delim"'$//
|
---|
| 6875 | t delim
|
---|
| 6876 | :nl
|
---|
| 6877 | h
|
---|
| 6878 | s/\(.\{148\}\)..*/\1/
|
---|
| 6879 | t more1
|
---|
| 6880 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
| 6881 | p
|
---|
| 6882 | n
|
---|
| 6883 | b repl
|
---|
| 6884 | :more1
|
---|
| 6885 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 6886 | p
|
---|
| 6887 | g
|
---|
| 6888 | s/.\{148\}//
|
---|
| 6889 | t nl
|
---|
| 6890 | :delim
|
---|
| 6891 | h
|
---|
| 6892 | s/\(.\{148\}\)..*/\1/
|
---|
| 6893 | t more2
|
---|
| 6894 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
| 6895 | p
|
---|
| 6896 | b
|
---|
| 6897 | :more2
|
---|
| 6898 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 6899 | p
|
---|
| 6900 | g
|
---|
| 6901 | s/.\{148\}//
|
---|
| 6902 | t delim
|
---|
| 6903 | ' <conf$$subs.awk | sed '
|
---|
| 6904 | /^[^""]/{
|
---|
| 6905 | N
|
---|
| 6906 | s/\n//
|
---|
[3745] | 6907 | }
|
---|
[23356] | 6908 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 6909 | rm -f conf$$subs.awk
|
---|
| 6910 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6911 | _ACAWK
|
---|
| 6912 | cat >>"\$tmp/subs1.awk" <<_ACAWK &&
|
---|
| 6913 | for (key in S) S_is_set[key] = 1
|
---|
| 6914 | FS = ""
|
---|
[3745] | 6915 |
|
---|
[23356] | 6916 | }
|
---|
| 6917 | {
|
---|
| 6918 | line = $ 0
|
---|
| 6919 | nfields = split(line, field, "@")
|
---|
| 6920 | substed = 0
|
---|
| 6921 | len = length(field[1])
|
---|
| 6922 | for (i = 2; i < nfields; i++) {
|
---|
| 6923 | key = field[i]
|
---|
| 6924 | keylen = length(key)
|
---|
| 6925 | if (S_is_set[key]) {
|
---|
| 6926 | value = S[key]
|
---|
| 6927 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
| 6928 | len += length(value) + length(field[++i])
|
---|
| 6929 | substed = 1
|
---|
| 6930 | } else
|
---|
| 6931 | len += 1 + keylen
|
---|
| 6932 | }
|
---|
| 6933 |
|
---|
| 6934 | print line
|
---|
| 6935 | }
|
---|
| 6936 |
|
---|
| 6937 | _ACAWK
|
---|
[10191] | 6938 | _ACEOF
|
---|
[23356] | 6939 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6940 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
| 6941 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
| 6942 | else
|
---|
| 6943 | cat
|
---|
| 6944 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
|
---|
[25147] | 6945 | || as_fn_error "could not setup config files machinery" "$LINENO" 5
|
---|
[23356] | 6946 | _ACEOF
|
---|
[3745] | 6947 |
|
---|
[25147] | 6948 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 6949 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
[23356] | 6950 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 6951 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 6952 | if test "x$srcdir" = x.; then
|
---|
[25147] | 6953 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 6954 | s/:*\$(srcdir):*/:/
|
---|
| 6955 | s/:*\${srcdir}:*/:/
|
---|
| 6956 | s/:*@srcdir@:*/:/
|
---|
| 6957 | s/^\([^=]*=[ ]*\):*/\1/
|
---|
[23356] | 6958 | s/:*$//
|
---|
| 6959 | s/^[^=]*=[ ]*$//
|
---|
| 6960 | }'
|
---|
| 6961 | fi
|
---|
[3745] | 6962 |
|
---|
[23356] | 6963 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6964 | fi # test -n "$CONFIG_FILES"
|
---|
[3745] | 6965 |
|
---|
[23356] | 6966 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
| 6967 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
| 6968 | # This happens for instance with `./config.status Makefile'.
|
---|
| 6969 | if test -n "$CONFIG_HEADERS"; then
|
---|
| 6970 | cat >"$tmp/defines.awk" <<\_ACAWK ||
|
---|
| 6971 | BEGIN {
|
---|
[10191] | 6972 | _ACEOF
|
---|
[3745] | 6973 |
|
---|
[23356] | 6974 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
| 6975 | # here-document in config.status, that substitutes the proper values into
|
---|
| 6976 | # config.h.in to produce config.h.
|
---|
| 6977 |
|
---|
| 6978 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
| 6979 | # handling of long lines.
|
---|
| 6980 | ac_delim='%!_!# '
|
---|
| 6981 | for ac_last_try in false false :; do
|
---|
| 6982 | ac_t=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
| 6983 | if test -z "$ac_t"; then
|
---|
| 6984 | break
|
---|
| 6985 | elif $ac_last_try; then
|
---|
[25147] | 6986 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
[23356] | 6987 | else
|
---|
| 6988 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
[3745] | 6989 | fi
|
---|
[23356] | 6990 | done
|
---|
[3745] | 6991 |
|
---|
[23356] | 6992 | # For the awk script, D is an array of macro values keyed by name,
|
---|
| 6993 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
| 6994 | # newline sequences.
|
---|
| 6995 |
|
---|
| 6996 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
| 6997 | sed -n '
|
---|
| 6998 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 6999 | t rset
|
---|
| 7000 | :rset
|
---|
| 7001 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
| 7002 | t def
|
---|
| 7003 | d
|
---|
| 7004 | :def
|
---|
| 7005 | s/\\$//
|
---|
| 7006 | t bsnl
|
---|
| 7007 | s/["\\]/\\&/g
|
---|
| 7008 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7009 | D["\1"]=" \3"/p
|
---|
| 7010 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
| 7011 | d
|
---|
| 7012 | :bsnl
|
---|
| 7013 | s/["\\]/\\&/g
|
---|
| 7014 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7015 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
| 7016 | t cont
|
---|
| 7017 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
| 7018 | t cont
|
---|
| 7019 | d
|
---|
| 7020 | :cont
|
---|
| 7021 | n
|
---|
| 7022 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7023 | t clear
|
---|
| 7024 | :clear
|
---|
| 7025 | s/\\$//
|
---|
| 7026 | t bsnlc
|
---|
| 7027 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
| 7028 | d
|
---|
| 7029 | :bsnlc
|
---|
| 7030 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
| 7031 | b cont
|
---|
| 7032 | ' <confdefs.h | sed '
|
---|
| 7033 | s/'"$ac_delim"'/"\\\
|
---|
| 7034 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 7035 |
|
---|
| 7036 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7037 | for (key in D) D_is_set[key] = 1
|
---|
| 7038 | FS = ""
|
---|
| 7039 | }
|
---|
| 7040 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
| 7041 | line = \$ 0
|
---|
| 7042 | split(line, arg, " ")
|
---|
| 7043 | if (arg[1] == "#") {
|
---|
| 7044 | defundef = arg[2]
|
---|
| 7045 | mac1 = arg[3]
|
---|
| 7046 | } else {
|
---|
| 7047 | defundef = substr(arg[1], 2)
|
---|
| 7048 | mac1 = arg[2]
|
---|
| 7049 | }
|
---|
| 7050 | split(mac1, mac2, "(") #)
|
---|
| 7051 | macro = mac2[1]
|
---|
| 7052 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
| 7053 | if (D_is_set[macro]) {
|
---|
| 7054 | # Preserve the white space surrounding the "#".
|
---|
| 7055 | print prefix "define", macro P[macro] D[macro]
|
---|
| 7056 | next
|
---|
| 7057 | } else {
|
---|
| 7058 | # Replace #undef with comments. This is necessary, for example,
|
---|
| 7059 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 7060 | # on some systems where configure will not decide to define it.
|
---|
| 7061 | if (defundef == "undef") {
|
---|
| 7062 | print "/*", prefix defundef, macro, "*/"
|
---|
| 7063 | next
|
---|
| 7064 | }
|
---|
| 7065 | }
|
---|
| 7066 | }
|
---|
| 7067 | { print }
|
---|
| 7068 | _ACAWK
|
---|
[10191] | 7069 | _ACEOF
|
---|
[23356] | 7070 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[25147] | 7071 | as_fn_error "could not setup config headers machinery" "$LINENO" 5
|
---|
[23356] | 7072 | fi # test -n "$CONFIG_HEADERS"
|
---|
| 7073 |
|
---|
| 7074 |
|
---|
| 7075 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
| 7076 | shift
|
---|
| 7077 | for ac_tag
|
---|
| 7078 | do
|
---|
| 7079 | case $ac_tag in
|
---|
| 7080 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
[3745] | 7081 | esac
|
---|
[23356] | 7082 | case $ac_mode$ac_tag in
|
---|
| 7083 | :[FHL]*:*);;
|
---|
[25147] | 7084 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
[23356] | 7085 | :[FH]-) ac_tag=-:-;;
|
---|
| 7086 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
| 7087 | esac
|
---|
| 7088 | ac_save_IFS=$IFS
|
---|
| 7089 | IFS=:
|
---|
| 7090 | set x $ac_tag
|
---|
| 7091 | IFS=$ac_save_IFS
|
---|
| 7092 | shift
|
---|
| 7093 | ac_file=$1
|
---|
| 7094 | shift
|
---|
[3745] | 7095 |
|
---|
[23356] | 7096 | case $ac_mode in
|
---|
| 7097 | :L) ac_source=$1;;
|
---|
| 7098 | :[FH])
|
---|
| 7099 | ac_file_inputs=
|
---|
| 7100 | for ac_f
|
---|
| 7101 | do
|
---|
| 7102 | case $ac_f in
|
---|
| 7103 | -) ac_f="$tmp/stdin";;
|
---|
| 7104 | *) # Look for the file first in the build tree, then in the source tree
|
---|
| 7105 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
| 7106 | # because $ac_f cannot contain `:'.
|
---|
| 7107 | test -f "$ac_f" ||
|
---|
| 7108 | case $ac_f in
|
---|
| 7109 | [\\/$]*) false;;
|
---|
| 7110 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
| 7111 | esac ||
|
---|
[25147] | 7112 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
[23356] | 7113 | esac
|
---|
| 7114 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
| 7115 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
| 7116 | done
|
---|
| 7117 |
|
---|
| 7118 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7119 | # use $as_me), people would be surprised to read:
|
---|
| 7120 | # /* config.h. Generated by config.status. */
|
---|
| 7121 | configure_input='Generated from '`
|
---|
| 7122 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
| 7123 | `' by configure.'
|
---|
| 7124 | if test x"$ac_file" != x-; then
|
---|
| 7125 | configure_input="$ac_file. $configure_input"
|
---|
| 7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
| 7127 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7128 | fi
|
---|
| 7129 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
| 7130 | case $configure_input in #(
|
---|
| 7131 | *\&* | *\|* | *\\* )
|
---|
| 7132 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
| 7133 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
| 7134 | *) ac_sed_conf_input=$configure_input;;
|
---|
| 7135 | esac
|
---|
| 7136 |
|
---|
| 7137 | case $ac_tag in
|
---|
| 7138 | *:-:* | *:-) cat >"$tmp/stdin" \
|
---|
[25147] | 7139 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
|
---|
[23356] | 7140 | esac
|
---|
| 7141 | ;;
|
---|
| 7142 | esac
|
---|
| 7143 |
|
---|
| 7144 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
[10191] | 7145 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7146 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7147 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[23356] | 7148 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7149 | $as_echo X"$ac_file" |
|
---|
| 7150 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7151 | s//\1/
|
---|
| 7152 | q
|
---|
| 7153 | }
|
---|
| 7154 | /^X\(\/\/\)[^/].*/{
|
---|
| 7155 | s//\1/
|
---|
| 7156 | q
|
---|
| 7157 | }
|
---|
| 7158 | /^X\(\/\/\)$/{
|
---|
| 7159 | s//\1/
|
---|
| 7160 | q
|
---|
| 7161 | }
|
---|
| 7162 | /^X\(\/\).*/{
|
---|
| 7163 | s//\1/
|
---|
| 7164 | q
|
---|
| 7165 | }
|
---|
| 7166 | s/.*/./; q'`
|
---|
| 7167 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
[10191] | 7168 | ac_builddir=.
|
---|
| 7169 |
|
---|
[23356] | 7170 | case "$ac_dir" in
|
---|
| 7171 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7172 | *)
|
---|
| 7173 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 7174 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 7175 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 7176 | case $ac_top_builddir_sub in
|
---|
| 7177 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7178 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 7179 | esac ;;
|
---|
| 7180 | esac
|
---|
| 7181 | ac_abs_top_builddir=$ac_pwd
|
---|
| 7182 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 7183 | # for backward compatibility:
|
---|
| 7184 | ac_top_builddir=$ac_top_build_prefix
|
---|
[10191] | 7185 |
|
---|
| 7186 | case $srcdir in
|
---|
[23356] | 7187 | .) # We are building in place.
|
---|
[10191] | 7188 | ac_srcdir=.
|
---|
[23356] | 7189 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 7190 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 7191 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[10191] | 7192 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[23356] | 7193 | ac_top_srcdir=$srcdir
|
---|
| 7194 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 7195 | *) # Relative name.
|
---|
| 7196 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 7197 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 7198 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[10191] | 7199 | esac
|
---|
[23356] | 7200 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[3745] | 7201 |
|
---|
[10191] | 7202 |
|
---|
[23356] | 7203 | case $ac_mode in
|
---|
| 7204 | :F)
|
---|
| 7205 | #
|
---|
| 7206 | # CONFIG_FILE
|
---|
| 7207 | #
|
---|
[10191] | 7208 |
|
---|
[3745] | 7209 | case $INSTALL in
|
---|
| 7210 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[23356] | 7211 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
[3745] | 7212 | esac
|
---|
[23356] | 7213 | _ACEOF
|
---|
[3745] | 7214 |
|
---|
[23356] | 7215 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7216 | # If the template does not know about datarootdir, expand it.
|
---|
| 7217 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
| 7218 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
| 7219 | ac_sed_dataroot='
|
---|
| 7220 | /datarootdir/ {
|
---|
| 7221 | p
|
---|
| 7222 | q
|
---|
| 7223 | }
|
---|
| 7224 | /@datadir@/p
|
---|
| 7225 | /@docdir@/p
|
---|
| 7226 | /@infodir@/p
|
---|
| 7227 | /@localedir@/p
|
---|
| 7228 | /@mandir@/p'
|
---|
| 7229 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
| 7230 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
| 7231 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
| 7232 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
| 7233 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
| 7234 | _ACEOF
|
---|
| 7235 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7236 | ac_datarootdir_hack='
|
---|
| 7237 | s&@datadir@&$datadir&g
|
---|
| 7238 | s&@docdir@&$docdir&g
|
---|
| 7239 | s&@infodir@&$infodir&g
|
---|
| 7240 | s&@localedir@&$localedir&g
|
---|
| 7241 | s&@mandir@&$mandir&g
|
---|
| 7242 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
| 7243 | esac
|
---|
| 7244 | _ACEOF
|
---|
[3745] | 7245 |
|
---|
[23356] | 7246 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
| 7247 | # Shell code in configure.ac might set extrasub.
|
---|
| 7248 | # FIXME: do we really want to maintain this feature?
|
---|
| 7249 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7250 | ac_sed_extra="$ac_vpsub
|
---|
[3745] | 7251 | $extrasub
|
---|
[10191] | 7252 | _ACEOF
|
---|
[23356] | 7253 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[3745] | 7254 | :t
|
---|
| 7255 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[23356] | 7256 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
| 7257 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
| 7258 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
| 7259 | s&@srcdir@&$ac_srcdir&;t t
|
---|
| 7260 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
| 7261 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
| 7262 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
| 7263 | s&@builddir@&$ac_builddir&;t t
|
---|
| 7264 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
| 7265 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
| 7266 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
| 7267 | $ac_datarootdir_hack
|
---|
| 7268 | "
|
---|
| 7269 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|
---|
[25147] | 7270 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
[3745] | 7271 |
|
---|
[23356] | 7272 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
| 7273 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
| 7274 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
| 7275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
[25147] | 7276 | which seems to be undefined. Please make sure it is defined." >&5
|
---|
[23356] | 7277 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
[25147] | 7278 | which seems to be undefined. Please make sure it is defined." >&2;}
|
---|
[3745] | 7279 |
|
---|
[23356] | 7280 | rm -f "$tmp/stdin"
|
---|
[3745] | 7281 | case $ac_file in
|
---|
[23356] | 7282 | -) cat "$tmp/out" && rm -f "$tmp/out";;
|
---|
| 7283 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
|
---|
| 7284 | esac \
|
---|
[25147] | 7285 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
[23356] | 7286 | ;;
|
---|
| 7287 | :H)
|
---|
| 7288 | #
|
---|
| 7289 | # CONFIG_HEADER
|
---|
| 7290 | #
|
---|
[3745] | 7291 | if test x"$ac_file" != x-; then
|
---|
[23356] | 7292 | {
|
---|
| 7293 | $as_echo "/* $configure_input */" \
|
---|
| 7294 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
|
---|
| 7295 | } >"$tmp/config.h" \
|
---|
[25147] | 7296 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
[23356] | 7297 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
|
---|
| 7298 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
| 7299 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
[3745] | 7300 | else
|
---|
[23356] | 7301 | rm -f "$ac_file"
|
---|
| 7302 | mv "$tmp/config.h" "$ac_file" \
|
---|
[25147] | 7303 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
[3745] | 7304 | fi
|
---|
| 7305 | else
|
---|
[23356] | 7306 | $as_echo "/* $configure_input */" \
|
---|
| 7307 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
|
---|
[25147] | 7308 | || as_fn_error "could not create -" "$LINENO" 5
|
---|
[3745] | 7309 | fi
|
---|
[23356] | 7310 | ;;
|
---|
[3745] | 7311 |
|
---|
[23356] | 7312 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
| 7313 | $as_echo "$as_me: executing $ac_file commands" >&6;}
|
---|
| 7314 | ;;
|
---|
| 7315 | esac
|
---|
[3745] | 7316 |
|
---|
[10191] | 7317 |
|
---|
[23356] | 7318 | case $ac_file$ac_mode in
|
---|
| 7319 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
[10191] | 7320 |
|
---|
[3745] | 7321 | esac
|
---|
[23356] | 7322 | done # for ac_tag
|
---|
[3745] | 7323 |
|
---|
| 7324 |
|
---|
[23356] | 7325 | as_fn_exit 0
|
---|
[10191] | 7326 | _ACEOF
|
---|
[3745] | 7327 | ac_clean_files=$ac_clean_files_save
|
---|
| 7328 |
|
---|
[23356] | 7329 | test $ac_write_fail = 0 ||
|
---|
[25147] | 7330 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
[10191] | 7331 |
|
---|
[23356] | 7332 |
|
---|
[3745] | 7333 | # configure is writing to config.log, and then calls config.status.
|
---|
| 7334 | # config.status does its own redirection, appending to config.log.
|
---|
| 7335 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 7336 | # by configure, so config.status won't be able to write to it; its
|
---|
| 7337 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 7338 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 7339 | # appended to by config.status. When coming back to configure, we
|
---|
| 7340 | # need to make the FD available again.
|
---|
| 7341 | if test "$no_create" != yes; then
|
---|
| 7342 | ac_cs_success=:
|
---|
[10191] | 7343 | ac_config_status_args=
|
---|
| 7344 | test "$silent" = yes &&
|
---|
| 7345 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
[3745] | 7346 | exec 5>/dev/null
|
---|
[10191] | 7347 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
[3745] | 7348 | exec 5>>config.log
|
---|
| 7349 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 7350 | # would make configure fail if this is the last instruction.
|
---|
[25147] | 7351 | $ac_cs_success || as_fn_exit $?
|
---|
[3745] | 7352 | fi
|
---|
[23356] | 7353 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
| 7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
| 7355 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
| 7356 | fi
|
---|
[3745] | 7357 |
|
---|
[19835] | 7358 |
|
---|
| 7359 | # To prevent timestamp problems causing bool_parser.c to be generated from bool_parser.y
|
---|
| 7360 | touch src/text/bool_parser.c
|
---|