[562] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[22378] | 3 | # Generated by GNU Autoconf 2.65.
|
---|
[562] | 4 | #
|
---|
[22378] | 5 | #
|
---|
| 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
| 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
---|
| 8 | # Inc.
|
---|
| 9 | #
|
---|
| 10 | #
|
---|
[562] | 11 | # This configure script is free software; the Free Software Foundation
|
---|
| 12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[22378] | 13 | ## -------------------- ##
|
---|
| 14 | ## M4sh Initialization. ##
|
---|
| 15 | ## -------------------- ##
|
---|
[562] | 16 |
|
---|
[22378] | 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 :
|
---|
[8756] | 20 | emulate sh
|
---|
| 21 | NULLCMD=:
|
---|
[22378] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[8756] | 23 | # is contrary to our usage. Disable this feature.
|
---|
| 24 | alias -g '${1+"$@"}'='"$@"'
|
---|
[22378] | 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
|
---|
[8756] | 33 | fi
|
---|
| 34 |
|
---|
[22378] | 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'
|
---|
[8756] | 52 | else
|
---|
[22378] | 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'
|
---|
[8756] | 72 | fi
|
---|
| 73 |
|
---|
[22378] | 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
|
---|
[8756] | 82 |
|
---|
[22378] | 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
|
---|
[8756] | 123 | PS1='$ '
|
---|
| 124 | PS2='> '
|
---|
| 125 | PS4='+ '
|
---|
| 126 |
|
---|
| 127 | # NLS nuisances.
|
---|
[22378] | 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
|
---|
[8756] | 186 | do
|
---|
[22378] | 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."
|
---|
[8756] | 230 | else
|
---|
[22378] | 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."
|
---|
[8756] | 235 | fi
|
---|
[22378] | 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
|
---|
[8756] | 245 |
|
---|
[22378] | 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"
|
---|
| 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
---|
| 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 |
|
---|
| 359 | # as_fn_error ERROR [LINENO LOG_FD]
|
---|
| 360 | # ---------------------------------
|
---|
| 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
|
---|
| 363 | # script with status $?, using 1 if that was 0.
|
---|
| 364 | as_fn_error ()
|
---|
| 365 | {
|
---|
| 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
|
---|
| 370 | fi
|
---|
| 371 | $as_echo "$as_me: error: $1" >&2
|
---|
| 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
|
---|
[8756] | 377 | as_expr=expr
|
---|
| 378 | else
|
---|
| 379 | as_expr=false
|
---|
| 380 | fi
|
---|
| 381 |
|
---|
[22378] | 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[8756] | 383 | as_basename=basename
|
---|
| 384 | else
|
---|
| 385 | as_basename=false
|
---|
| 386 | fi
|
---|
| 387 |
|
---|
[22378] | 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
|
---|
[8756] | 393 |
|
---|
[22378] | 394 | as_me=`$as_basename -- "$0" ||
|
---|
[8756] | 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 396 | X"$0" : 'X\(//\)$' \| \
|
---|
[22378] | 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'`
|
---|
[8756] | 412 |
|
---|
[20853] | 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
|
---|
[8756] | 419 |
|
---|
| 420 |
|
---|
[22378] | 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 |
|
---|
[8756] | 430 | sed '
|
---|
[22378] | 431 | s/[$]LINENO.*/&-/
|
---|
| 432 | t lineno
|
---|
| 433 | b
|
---|
| 434 | :lineno
|
---|
[8756] | 435 | N
|
---|
[22378] | 436 | :loop
|
---|
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
[8756] | 438 | t loop
|
---|
[22378] | 439 | s/-\n.*//
|
---|
[8756] | 440 | ' >$as_me.lineno &&
|
---|
[22378] | 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; }
|
---|
[8756] | 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
|
---|
[22378] | 446 | # original and so on. Autoconf is especially sensitive to this).
|
---|
| 447 | . "./$as_me.lineno"
|
---|
[8756] | 448 | # Exit status is that of the last command.
|
---|
| 449 | exit
|
---|
| 450 | }
|
---|
| 451 |
|
---|
[22378] | 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';;
|
---|
[8756] | 463 | esac
|
---|
| 464 |
|
---|
[22378] | 465 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 466 | if test -d conf$$.dir; then
|
---|
| 467 | rm -f conf$$.dir/conf$$.file
|
---|
[8756] | 468 | else
|
---|
[22378] | 469 | rm -f conf$$.dir
|
---|
| 470 | mkdir conf$$.dir 2>/dev/null
|
---|
[8756] | 471 | fi
|
---|
[22378] | 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
|
---|
[8756] | 484 | as_ln_s='cp -p'
|
---|
[20853] | 485 | fi
|
---|
[8756] | 486 | else
|
---|
| 487 | as_ln_s='cp -p'
|
---|
| 488 | fi
|
---|
[22378] | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 490 | rmdir conf$$.dir 2>/dev/null
|
---|
[8756] | 491 |
|
---|
| 492 | if mkdir -p . 2>/dev/null; then
|
---|
[22378] | 493 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[8756] | 494 | else
|
---|
| 495 | test -d ./-p && rmdir ./-p
|
---|
| 496 | as_mkdir_p=false
|
---|
| 497 | fi
|
---|
| 498 |
|
---|
[22378] | 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
|
---|
[8756] | 521 |
|
---|
| 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 |
|
---|
[22378] | 529 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
| 530 | exec 6>&1
|
---|
[8756] | 531 |
|
---|
| 532 | # Name of the host.
|
---|
| 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
| 534 | # so uname gets run too.
|
---|
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 536 |
|
---|
| 537 | #
|
---|
| 538 | # Initializations.
|
---|
| 539 | #
|
---|
[562] | 540 | ac_default_prefix=/usr/local
|
---|
[22378] | 541 | ac_clean_files=
|
---|
[8756] | 542 | ac_config_libobj_dir=.
|
---|
[22378] | 543 | LIBOBJS=
|
---|
[8756] | 544 | cross_compiling=no
|
---|
| 545 | subdirs=
|
---|
| 546 | MFLAGS=
|
---|
| 547 | MAKEFLAGS=
|
---|
[562] | 548 |
|
---|
[8756] | 549 | # Identity of this package.
|
---|
| 550 | PACKAGE_NAME=
|
---|
| 551 | PACKAGE_TARNAME=
|
---|
| 552 | PACKAGE_VERSION=
|
---|
| 553 | PACKAGE_STRING=
|
---|
| 554 | PACKAGE_BUGREPORT=
|
---|
[22378] | 555 | PACKAGE_URL=
|
---|
[8756] | 556 |
|
---|
| 557 | # Factoring default headers for most tests.
|
---|
| 558 | ac_includes_default="\
|
---|
| 559 | #include <stdio.h>
|
---|
[22378] | 560 | #ifdef HAVE_SYS_TYPES_H
|
---|
[8756] | 561 | # include <sys/types.h>
|
---|
| 562 | #endif
|
---|
[22378] | 563 | #ifdef HAVE_SYS_STAT_H
|
---|
[8756] | 564 | # include <sys/stat.h>
|
---|
| 565 | #endif
|
---|
[22378] | 566 | #ifdef STDC_HEADERS
|
---|
[8756] | 567 | # include <stdlib.h>
|
---|
| 568 | # include <stddef.h>
|
---|
| 569 | #else
|
---|
[22378] | 570 | # ifdef HAVE_STDLIB_H
|
---|
[8756] | 571 | # include <stdlib.h>
|
---|
| 572 | # endif
|
---|
| 573 | #endif
|
---|
[22378] | 574 | #ifdef HAVE_STRING_H
|
---|
| 575 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
[8756] | 576 | # include <memory.h>
|
---|
| 577 | # endif
|
---|
| 578 | # include <string.h>
|
---|
| 579 | #endif
|
---|
[22378] | 580 | #ifdef HAVE_STRINGS_H
|
---|
[8756] | 581 | # include <strings.h>
|
---|
| 582 | #endif
|
---|
[22378] | 583 | #ifdef HAVE_INTTYPES_H
|
---|
[8756] | 584 | # include <inttypes.h>
|
---|
| 585 | #endif
|
---|
[22378] | 586 | #ifdef HAVE_STDINT_H
|
---|
| 587 | # include <stdint.h>
|
---|
| 588 | #endif
|
---|
| 589 | #ifdef HAVE_UNISTD_H
|
---|
[8756] | 590 | # include <unistd.h>
|
---|
| 591 | #endif"
|
---|
| 592 |
|
---|
[22378] | 593 | enable_option_checking=no
|
---|
| 594 | ac_subst_vars='LTLIBOBJS
|
---|
| 595 | subdirs
|
---|
| 596 | MODULEDIRS
|
---|
| 597 | gsdlos
|
---|
| 598 | STATIC
|
---|
| 599 | LIBOBJS
|
---|
| 600 | ALLOCA
|
---|
| 601 | ANSI2KNR
|
---|
| 602 | U
|
---|
| 603 | EGREP
|
---|
| 604 | GREP
|
---|
| 605 | CPP
|
---|
| 606 | MICO_VER
|
---|
| 607 | COMPAT32BITFLAGS
|
---|
| 608 | RANLIB
|
---|
| 609 | SET_MAKE
|
---|
| 610 | LN_S
|
---|
| 611 | INSTALL_DATA
|
---|
| 612 | INSTALL_SCRIPT
|
---|
| 613 | INSTALL_PROGRAM
|
---|
| 614 | target_os
|
---|
| 615 | target_vendor
|
---|
| 616 | target_cpu
|
---|
| 617 | target
|
---|
| 618 | host_os
|
---|
| 619 | host_vendor
|
---|
| 620 | host_cpu
|
---|
| 621 | host
|
---|
| 622 | build_os
|
---|
| 623 | build_vendor
|
---|
| 624 | build_cpu
|
---|
| 625 | build
|
---|
| 626 | YFLAGS
|
---|
| 627 | YACC
|
---|
| 628 | AWK
|
---|
| 629 | ac_ct_CXX
|
---|
| 630 | CXXFLAGS
|
---|
| 631 | CXX
|
---|
| 632 | OBJEXT
|
---|
| 633 | EXEEXT
|
---|
| 634 | ac_ct_CC
|
---|
| 635 | CPPFLAGS
|
---|
| 636 | CC
|
---|
| 637 | CFLAGS
|
---|
| 638 | LDFLAGS
|
---|
| 639 | ENABLE_LUCENE
|
---|
| 640 | ENABLE_MGPP
|
---|
| 641 | ENABLE_MG
|
---|
| 642 | ENABLE_JNI
|
---|
| 643 | USE_APACHE_HTTPD
|
---|
| 644 | USE_SQLITE
|
---|
| 645 | ENABLE_ACCENTFOLD
|
---|
| 646 | USE_GDBM
|
---|
| 647 | USE_JDBM
|
---|
| 648 | USE_YAZ
|
---|
| 649 | USE_Z3950
|
---|
| 650 | MICO_DIR
|
---|
| 651 | USE_CORBA
|
---|
| 652 | USE_LANGACTION
|
---|
| 653 | USE_FASTCGI
|
---|
| 654 | VERSION
|
---|
| 655 | PACKAGE
|
---|
| 656 | target_alias
|
---|
| 657 | host_alias
|
---|
| 658 | build_alias
|
---|
| 659 | LIBS
|
---|
| 660 | ECHO_T
|
---|
| 661 | ECHO_N
|
---|
| 662 | ECHO_C
|
---|
| 663 | DEFS
|
---|
| 664 | mandir
|
---|
| 665 | localedir
|
---|
| 666 | libdir
|
---|
| 667 | psdir
|
---|
| 668 | pdfdir
|
---|
| 669 | dvidir
|
---|
| 670 | htmldir
|
---|
| 671 | infodir
|
---|
| 672 | docdir
|
---|
| 673 | oldincludedir
|
---|
| 674 | includedir
|
---|
| 675 | localstatedir
|
---|
| 676 | sharedstatedir
|
---|
| 677 | sysconfdir
|
---|
| 678 | datadir
|
---|
| 679 | datarootdir
|
---|
| 680 | libexecdir
|
---|
| 681 | sbindir
|
---|
| 682 | bindir
|
---|
| 683 | program_transform_name
|
---|
| 684 | prefix
|
---|
| 685 | exec_prefix
|
---|
| 686 | PACKAGE_URL
|
---|
| 687 | PACKAGE_BUGREPORT
|
---|
| 688 | PACKAGE_STRING
|
---|
| 689 | PACKAGE_VERSION
|
---|
| 690 | PACKAGE_TARNAME
|
---|
| 691 | PACKAGE_NAME
|
---|
| 692 | PATH_SEPARATOR
|
---|
| 693 | SHELL'
|
---|
[8756] | 694 | ac_subst_files=''
|
---|
[22378] | 695 | ac_user_opts='
|
---|
| 696 | enable_option_checking
|
---|
| 697 | enable_corba
|
---|
| 698 | with_micodir
|
---|
| 699 | enable_z3950
|
---|
| 700 | enable_yaz
|
---|
| 701 | enable_jdbm
|
---|
| 702 | enable_gdbm
|
---|
| 703 | enable_accentfold
|
---|
| 704 | enable_sqlite
|
---|
| 705 | enable_apache_httpd
|
---|
| 706 | enable_jni
|
---|
| 707 | enable_mg
|
---|
| 708 | enable_mgpp
|
---|
| 709 | enable_lucene
|
---|
| 710 | with_dmalloc
|
---|
| 711 | with_regex
|
---|
| 712 | '
|
---|
| 713 | ac_precious_vars='build_alias
|
---|
| 714 | host_alias
|
---|
| 715 | target_alias
|
---|
| 716 | CC
|
---|
| 717 | CFLAGS
|
---|
| 718 | LDFLAGS
|
---|
| 719 | LIBS
|
---|
| 720 | CPPFLAGS
|
---|
| 721 | CXX
|
---|
| 722 | CXXFLAGS
|
---|
| 723 | CCC
|
---|
| 724 | YACC
|
---|
| 725 | YFLAGS
|
---|
| 726 | CPP'
|
---|
| 727 | ac_subdirs_all='common-src
|
---|
| 728 | build-src
|
---|
| 729 | runtime-src'
|
---|
[8756] | 730 |
|
---|
[562] | 731 | # Initialize some variables set by options.
|
---|
[8756] | 732 | ac_init_help=
|
---|
| 733 | ac_init_version=false
|
---|
[22378] | 734 | ac_unrecognized_opts=
|
---|
| 735 | ac_unrecognized_sep=
|
---|
[562] | 736 | # The variables have the same names as the options, with
|
---|
| 737 | # dashes changed to underlines.
|
---|
[8756] | 738 | cache_file=/dev/null
|
---|
[562] | 739 | exec_prefix=NONE
|
---|
| 740 | no_create=
|
---|
| 741 | no_recursion=
|
---|
| 742 | prefix=NONE
|
---|
| 743 | program_prefix=NONE
|
---|
| 744 | program_suffix=NONE
|
---|
| 745 | program_transform_name=s,x,x,
|
---|
| 746 | silent=
|
---|
| 747 | site=
|
---|
| 748 | srcdir=
|
---|
| 749 | verbose=
|
---|
| 750 | x_includes=NONE
|
---|
| 751 | x_libraries=NONE
|
---|
[8756] | 752 |
|
---|
| 753 | # Installation directory options.
|
---|
| 754 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 755 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 756 | # by default will actually change.
|
---|
| 757 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[22378] | 758 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
[562] | 759 | bindir='${exec_prefix}/bin'
|
---|
| 760 | sbindir='${exec_prefix}/sbin'
|
---|
| 761 | libexecdir='${exec_prefix}/libexec'
|
---|
[22378] | 762 | datarootdir='${prefix}/share'
|
---|
| 763 | datadir='${datarootdir}'
|
---|
[562] | 764 | sysconfdir='${prefix}/etc'
|
---|
| 765 | sharedstatedir='${prefix}/com'
|
---|
| 766 | localstatedir='${prefix}/var'
|
---|
| 767 | includedir='${prefix}/include'
|
---|
| 768 | oldincludedir='/usr/include'
|
---|
[22378] | 769 | docdir='${datarootdir}/doc/${PACKAGE}'
|
---|
| 770 | infodir='${datarootdir}/info'
|
---|
| 771 | htmldir='${docdir}'
|
---|
| 772 | dvidir='${docdir}'
|
---|
| 773 | pdfdir='${docdir}'
|
---|
| 774 | psdir='${docdir}'
|
---|
| 775 | libdir='${exec_prefix}/lib'
|
---|
| 776 | localedir='${datarootdir}/locale'
|
---|
| 777 | mandir='${datarootdir}/man'
|
---|
[562] | 778 |
|
---|
| 779 | ac_prev=
|
---|
[22378] | 780 | ac_dashdash=
|
---|
[562] | 781 | for ac_option
|
---|
| 782 | do
|
---|
| 783 | # If the previous option needs an argument, assign it.
|
---|
| 784 | if test -n "$ac_prev"; then
|
---|
[22378] | 785 | eval $ac_prev=\$ac_option
|
---|
[562] | 786 | ac_prev=
|
---|
| 787 | continue
|
---|
| 788 | fi
|
---|
| 789 |
|
---|
[22378] | 790 | case $ac_option in
|
---|
| 791 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
| 792 | *) ac_optarg=yes ;;
|
---|
| 793 | esac
|
---|
[562] | 794 |
|
---|
| 795 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 796 |
|
---|
[22378] | 797 | case $ac_dashdash$ac_option in
|
---|
| 798 | --)
|
---|
| 799 | ac_dashdash=yes ;;
|
---|
[562] | 800 |
|
---|
| 801 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 802 | ac_prev=bindir ;;
|
---|
| 803 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8756] | 804 | bindir=$ac_optarg ;;
|
---|
[562] | 805 |
|
---|
| 806 | -build | --build | --buil | --bui | --bu)
|
---|
[8756] | 807 | ac_prev=build_alias ;;
|
---|
[562] | 808 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8756] | 809 | build_alias=$ac_optarg ;;
|
---|
[562] | 810 |
|
---|
| 811 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 812 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 813 | ac_prev=cache_file ;;
|
---|
| 814 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 815 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
[8756] | 816 | cache_file=$ac_optarg ;;
|
---|
[562] | 817 |
|
---|
[8756] | 818 | --config-cache | -C)
|
---|
| 819 | cache_file=config.cache ;;
|
---|
| 820 |
|
---|
[22378] | 821 | -datadir | --datadir | --datadi | --datad)
|
---|
[562] | 822 | ac_prev=datadir ;;
|
---|
[22378] | 823 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
[8756] | 824 | datadir=$ac_optarg ;;
|
---|
[562] | 825 |
|
---|
[22378] | 826 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
| 827 | | --dataroo | --dataro | --datar)
|
---|
| 828 | ac_prev=datarootdir ;;
|
---|
| 829 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
| 830 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
| 831 | datarootdir=$ac_optarg ;;
|
---|
| 832 |
|
---|
[562] | 833 | -disable-* | --disable-*)
|
---|
[22378] | 834 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[562] | 835 | # Reject names that are not valid shell variable names.
|
---|
[22378] | 836 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
| 837 | as_fn_error "invalid feature name: $ac_useropt"
|
---|
| 838 | ac_useropt_orig=$ac_useropt
|
---|
| 839 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 840 | case $ac_user_opts in
|
---|
| 841 | *"
|
---|
| 842 | "enable_$ac_useropt"
|
---|
| 843 | "*) ;;
|
---|
| 844 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
| 845 | ac_unrecognized_sep=', ';;
|
---|
| 846 | esac
|
---|
| 847 | eval enable_$ac_useropt=no ;;
|
---|
[562] | 848 |
|
---|
[22378] | 849 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
| 850 | ac_prev=docdir ;;
|
---|
| 851 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
| 852 | docdir=$ac_optarg ;;
|
---|
| 853 |
|
---|
| 854 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
| 855 | ac_prev=dvidir ;;
|
---|
| 856 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
| 857 | dvidir=$ac_optarg ;;
|
---|
| 858 |
|
---|
[562] | 859 | -enable-* | --enable-*)
|
---|
[22378] | 860 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[562] | 861 | # Reject names that are not valid shell variable names.
|
---|
[22378] | 862 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
| 863 | as_fn_error "invalid feature name: $ac_useropt"
|
---|
| 864 | ac_useropt_orig=$ac_useropt
|
---|
| 865 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 866 | case $ac_user_opts in
|
---|
| 867 | *"
|
---|
| 868 | "enable_$ac_useropt"
|
---|
| 869 | "*) ;;
|
---|
| 870 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
| 871 | ac_unrecognized_sep=', ';;
|
---|
[20853] | 872 | esac
|
---|
[22378] | 873 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
[562] | 874 |
|
---|
| 875 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 876 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 877 | | --exec | --exe | --ex)
|
---|
| 878 | ac_prev=exec_prefix ;;
|
---|
| 879 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 880 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 881 | | --exec=* | --exe=* | --ex=*)
|
---|
[8756] | 882 | exec_prefix=$ac_optarg ;;
|
---|
[562] | 883 |
|
---|
| 884 | -gas | --gas | --ga | --g)
|
---|
| 885 | # Obsolete; use --with-gas.
|
---|
| 886 | with_gas=yes ;;
|
---|
| 887 |
|
---|
[8756] | 888 | -help | --help | --hel | --he | -h)
|
---|
| 889 | ac_init_help=long ;;
|
---|
| 890 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 891 | ac_init_help=recursive ;;
|
---|
| 892 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 893 | ac_init_help=short ;;
|
---|
[562] | 894 |
|
---|
| 895 | -host | --host | --hos | --ho)
|
---|
[8756] | 896 | ac_prev=host_alias ;;
|
---|
[562] | 897 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8756] | 898 | host_alias=$ac_optarg ;;
|
---|
[562] | 899 |
|
---|
[22378] | 900 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
| 901 | ac_prev=htmldir ;;
|
---|
| 902 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
| 903 | | --ht=*)
|
---|
| 904 | htmldir=$ac_optarg ;;
|
---|
| 905 |
|
---|
[562] | 906 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 907 | | --includ | --inclu | --incl | --inc)
|
---|
| 908 | ac_prev=includedir ;;
|
---|
| 909 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 910 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
[8756] | 911 | includedir=$ac_optarg ;;
|
---|
[562] | 912 |
|
---|
| 913 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 914 | ac_prev=infodir ;;
|
---|
| 915 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8756] | 916 | infodir=$ac_optarg ;;
|
---|
[562] | 917 |
|
---|
| 918 | -libdir | --libdir | --libdi | --libd)
|
---|
| 919 | ac_prev=libdir ;;
|
---|
| 920 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8756] | 921 | libdir=$ac_optarg ;;
|
---|
[562] | 922 |
|
---|
| 923 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 924 | | --libexe | --libex | --libe)
|
---|
| 925 | ac_prev=libexecdir ;;
|
---|
| 926 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 927 | | --libexe=* | --libex=* | --libe=*)
|
---|
[8756] | 928 | libexecdir=$ac_optarg ;;
|
---|
[562] | 929 |
|
---|
[22378] | 930 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
| 931 | ac_prev=localedir ;;
|
---|
| 932 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
| 933 | localedir=$ac_optarg ;;
|
---|
| 934 |
|
---|
[562] | 935 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[22378] | 936 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
[562] | 937 | ac_prev=localstatedir ;;
|
---|
| 938 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[22378] | 939 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
[8756] | 940 | localstatedir=$ac_optarg ;;
|
---|
[562] | 941 |
|
---|
| 942 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 943 | ac_prev=mandir ;;
|
---|
| 944 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8756] | 945 | mandir=$ac_optarg ;;
|
---|
[562] | 946 |
|
---|
| 947 | -nfp | --nfp | --nf)
|
---|
| 948 | # Obsolete; use --without-fp.
|
---|
| 949 | with_fp=no ;;
|
---|
| 950 |
|
---|
| 951 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[8756] | 952 | | --no-cr | --no-c | -n)
|
---|
[562] | 953 | no_create=yes ;;
|
---|
| 954 |
|
---|
| 955 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 956 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 957 | no_recursion=yes ;;
|
---|
| 958 |
|
---|
| 959 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 960 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 961 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 962 | ac_prev=oldincludedir ;;
|
---|
| 963 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 964 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 965 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
[8756] | 966 | oldincludedir=$ac_optarg ;;
|
---|
[562] | 967 |
|
---|
| 968 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 969 | ac_prev=prefix ;;
|
---|
| 970 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8756] | 971 | prefix=$ac_optarg ;;
|
---|
[562] | 972 |
|
---|
| 973 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 974 | | --program-pre | --program-pr | --program-p)
|
---|
| 975 | ac_prev=program_prefix ;;
|
---|
| 976 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 977 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
[8756] | 978 | program_prefix=$ac_optarg ;;
|
---|
[562] | 979 |
|
---|
| 980 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 981 | | --program-suf | --program-su | --program-s)
|
---|
| 982 | ac_prev=program_suffix ;;
|
---|
| 983 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 984 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
[8756] | 985 | program_suffix=$ac_optarg ;;
|
---|
[562] | 986 |
|
---|
| 987 | -program-transform-name | --program-transform-name \
|
---|
| 988 | | --program-transform-nam | --program-transform-na \
|
---|
| 989 | | --program-transform-n | --program-transform- \
|
---|
| 990 | | --program-transform | --program-transfor \
|
---|
| 991 | | --program-transfo | --program-transf \
|
---|
| 992 | | --program-trans | --program-tran \
|
---|
| 993 | | --progr-tra | --program-tr | --program-t)
|
---|
| 994 | ac_prev=program_transform_name ;;
|
---|
| 995 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 996 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 997 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 998 | | --program-transform=* | --program-transfor=* \
|
---|
| 999 | | --program-transfo=* | --program-transf=* \
|
---|
| 1000 | | --program-trans=* | --program-tran=* \
|
---|
| 1001 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
[8756] | 1002 | program_transform_name=$ac_optarg ;;
|
---|
[562] | 1003 |
|
---|
[22378] | 1004 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
| 1005 | ac_prev=pdfdir ;;
|
---|
| 1006 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
| 1007 | pdfdir=$ac_optarg ;;
|
---|
| 1008 |
|
---|
| 1009 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
| 1010 | ac_prev=psdir ;;
|
---|
| 1011 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
| 1012 | psdir=$ac_optarg ;;
|
---|
| 1013 |
|
---|
[562] | 1014 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1015 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1016 | silent=yes ;;
|
---|
| 1017 |
|
---|
| 1018 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 1019 | ac_prev=sbindir ;;
|
---|
| 1020 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 1021 | | --sbi=* | --sb=*)
|
---|
[8756] | 1022 | sbindir=$ac_optarg ;;
|
---|
[562] | 1023 |
|
---|
| 1024 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 1025 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 1026 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 1027 | | --sha | --sh)
|
---|
| 1028 | ac_prev=sharedstatedir ;;
|
---|
| 1029 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 1030 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 1031 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 1032 | | --sha=* | --sh=*)
|
---|
[8756] | 1033 | sharedstatedir=$ac_optarg ;;
|
---|
[562] | 1034 |
|
---|
| 1035 | -site | --site | --sit)
|
---|
| 1036 | ac_prev=site ;;
|
---|
| 1037 | -site=* | --site=* | --sit=*)
|
---|
[8756] | 1038 | site=$ac_optarg ;;
|
---|
[562] | 1039 |
|
---|
| 1040 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 1041 | ac_prev=srcdir ;;
|
---|
| 1042 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8756] | 1043 | srcdir=$ac_optarg ;;
|
---|
[562] | 1044 |
|
---|
| 1045 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 1046 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 1047 | ac_prev=sysconfdir ;;
|
---|
| 1048 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 1049 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
[8756] | 1050 | sysconfdir=$ac_optarg ;;
|
---|
[562] | 1051 |
|
---|
| 1052 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8756] | 1053 | ac_prev=target_alias ;;
|
---|
[562] | 1054 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8756] | 1055 | target_alias=$ac_optarg ;;
|
---|
[562] | 1056 |
|
---|
| 1057 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 1058 | verbose=yes ;;
|
---|
| 1059 |
|
---|
[8756] | 1060 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 1061 | ac_init_version=: ;;
|
---|
[562] | 1062 |
|
---|
| 1063 | -with-* | --with-*)
|
---|
[22378] | 1064 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[562] | 1065 | # Reject names that are not valid shell variable names.
|
---|
[22378] | 1066 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
| 1067 | as_fn_error "invalid package name: $ac_useropt"
|
---|
| 1068 | ac_useropt_orig=$ac_useropt
|
---|
| 1069 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1070 | case $ac_user_opts in
|
---|
| 1071 | *"
|
---|
| 1072 | "with_$ac_useropt"
|
---|
| 1073 | "*) ;;
|
---|
| 1074 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
| 1075 | ac_unrecognized_sep=', ';;
|
---|
[20853] | 1076 | esac
|
---|
[22378] | 1077 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
[562] | 1078 |
|
---|
| 1079 | -without-* | --without-*)
|
---|
[22378] | 1080 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[562] | 1081 | # Reject names that are not valid shell variable names.
|
---|
[22378] | 1082 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
| 1083 | as_fn_error "invalid package name: $ac_useropt"
|
---|
| 1084 | ac_useropt_orig=$ac_useropt
|
---|
| 1085 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
| 1086 | case $ac_user_opts in
|
---|
| 1087 | *"
|
---|
| 1088 | "with_$ac_useropt"
|
---|
| 1089 | "*) ;;
|
---|
| 1090 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
| 1091 | ac_unrecognized_sep=', ';;
|
---|
| 1092 | esac
|
---|
| 1093 | eval with_$ac_useropt=no ;;
|
---|
[562] | 1094 |
|
---|
| 1095 | --x)
|
---|
| 1096 | # Obsolete; use --with-x.
|
---|
| 1097 | with_x=yes ;;
|
---|
| 1098 |
|
---|
| 1099 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 1100 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 1101 | ac_prev=x_includes ;;
|
---|
| 1102 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 1103 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
[8756] | 1104 | x_includes=$ac_optarg ;;
|
---|
[562] | 1105 |
|
---|
| 1106 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 1107 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 1108 | ac_prev=x_libraries ;;
|
---|
| 1109 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 1110 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
[8756] | 1111 | x_libraries=$ac_optarg ;;
|
---|
[562] | 1112 |
|
---|
[22378] | 1113 | -*) as_fn_error "unrecognized option: \`$ac_option'
|
---|
| 1114 | Try \`$0 --help' for more information."
|
---|
[562] | 1115 | ;;
|
---|
| 1116 |
|
---|
[8756] | 1117 | *=*)
|
---|
| 1118 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 1119 | # Reject names that are not valid shell variable names.
|
---|
[22378] | 1120 | case $ac_envvar in #(
|
---|
| 1121 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
| 1122 | as_fn_error "invalid variable name: \`$ac_envvar'" ;;
|
---|
| 1123 | esac
|
---|
| 1124 | eval $ac_envvar=\$ac_optarg
|
---|
[8756] | 1125 | export $ac_envvar ;;
|
---|
| 1126 |
|
---|
[562] | 1127 | *)
|
---|
[8756] | 1128 | # FIXME: should be removed in autoconf 3.0.
|
---|
[22378] | 1129 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[8756] | 1130 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[22378] | 1131 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
[8756] | 1132 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
[562] | 1133 | ;;
|
---|
| 1134 |
|
---|
| 1135 | esac
|
---|
| 1136 | done
|
---|
| 1137 |
|
---|
| 1138 | if test -n "$ac_prev"; then
|
---|
[8756] | 1139 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
[22378] | 1140 | as_fn_error "missing argument to $ac_option"
|
---|
[562] | 1141 | fi
|
---|
| 1142 |
|
---|
[22378] | 1143 | if test -n "$ac_unrecognized_opts"; then
|
---|
| 1144 | case $enable_option_checking in
|
---|
| 1145 | no) ;;
|
---|
| 1146 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
| 1147 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
[8756] | 1148 | esac
|
---|
[22378] | 1149 | fi
|
---|
[8200] | 1150 |
|
---|
[22378] | 1151 | # Check all directory arguments for consistency.
|
---|
| 1152 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
| 1153 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
| 1154 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
| 1155 | libdir localedir mandir
|
---|
[20853] | 1156 | do
|
---|
[22378] | 1157 | eval ac_val=\$$ac_var
|
---|
| 1158 | # Remove trailing slashes.
|
---|
[20853] | 1159 | case $ac_val in
|
---|
[22378] | 1160 | */ )
|
---|
| 1161 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
| 1162 | eval $ac_var=\$ac_val;;
|
---|
[20853] | 1163 | esac
|
---|
[22378] | 1164 | # Be sure to have absolute directory names.
|
---|
| 1165 | case $ac_val in
|
---|
| 1166 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
| 1167 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
| 1168 | esac
|
---|
| 1169 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
[20853] | 1170 | done
|
---|
| 1171 |
|
---|
[8756] | 1172 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 1173 | # used to hold the argument of --host etc.
|
---|
| 1174 | # FIXME: To remove some day.
|
---|
| 1175 | build=$build_alias
|
---|
| 1176 | host=$host_alias
|
---|
| 1177 | target=$target_alias
|
---|
[562] | 1178 |
|
---|
[8756] | 1179 | # FIXME: To remove some day.
|
---|
| 1180 | if test "x$host_alias" != x; then
|
---|
| 1181 | if test "x$build_alias" = x; then
|
---|
| 1182 | cross_compiling=maybe
|
---|
[22378] | 1183 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
[8756] | 1184 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
| 1185 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 1186 | cross_compiling=yes
|
---|
| 1187 | fi
|
---|
| 1188 | fi
|
---|
[562] | 1189 |
|
---|
[8756] | 1190 | ac_tool_prefix=
|
---|
| 1191 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[562] | 1192 |
|
---|
[8756] | 1193 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 1194 |
|
---|
| 1195 |
|
---|
[22378] | 1196 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
| 1197 | ac_ls_di=`ls -di .` &&
|
---|
| 1198 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
| 1199 | as_fn_error "working directory cannot be determined"
|
---|
| 1200 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
| 1201 | as_fn_error "pwd does not report name of working directory"
|
---|
| 1202 |
|
---|
| 1203 |
|
---|
[562] | 1204 | # Find the source files, if location was not specified.
|
---|
| 1205 | if test -z "$srcdir"; then
|
---|
| 1206 | ac_srcdir_defaulted=yes
|
---|
[22378] | 1207 | # Try the directory containing this script, then the parent directory.
|
---|
| 1208 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
| 1209 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 1210 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
| 1211 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
| 1212 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 1213 | $as_echo X"$as_myself" |
|
---|
| 1214 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 1215 | s//\1/
|
---|
| 1216 | q
|
---|
| 1217 | }
|
---|
| 1218 | /^X\(\/\/\)[^/].*/{
|
---|
| 1219 | s//\1/
|
---|
| 1220 | q
|
---|
| 1221 | }
|
---|
| 1222 | /^X\(\/\/\)$/{
|
---|
| 1223 | s//\1/
|
---|
| 1224 | q
|
---|
| 1225 | }
|
---|
| 1226 | /^X\(\/\).*/{
|
---|
| 1227 | s//\1/
|
---|
| 1228 | q
|
---|
| 1229 | }
|
---|
| 1230 | s/.*/./; q'`
|
---|
[562] | 1231 | srcdir=$ac_confdir
|
---|
[22378] | 1232 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
[562] | 1233 | srcdir=..
|
---|
| 1234 | fi
|
---|
| 1235 | else
|
---|
| 1236 | ac_srcdir_defaulted=no
|
---|
| 1237 | fi
|
---|
[22378] | 1238 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
| 1239 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
| 1240 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
[20842] | 1241 | fi
|
---|
[22378] | 1242 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
| 1243 | ac_abs_confdir=`(
|
---|
| 1244 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
|
---|
| 1245 | pwd)`
|
---|
| 1246 | # When building in place, set srcdir=.
|
---|
| 1247 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
| 1248 | srcdir=.
|
---|
| 1249 | fi
|
---|
| 1250 | # Remove unnecessary trailing slashes from srcdir.
|
---|
| 1251 | # Double slashes in file names in object file debugging info
|
---|
| 1252 | # mess up M-x gdb in Emacs.
|
---|
| 1253 | case $srcdir in
|
---|
| 1254 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
| 1255 | esac
|
---|
| 1256 | for ac_var in $ac_precious_vars; do
|
---|
| 1257 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1258 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
| 1259 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
| 1260 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
| 1261 | done
|
---|
[562] | 1262 |
|
---|
[8756] | 1263 | #
|
---|
| 1264 | # Report the --help message.
|
---|
| 1265 | #
|
---|
| 1266 | if test "$ac_init_help" = "long"; then
|
---|
| 1267 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 1268 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 1269 | cat <<_ACEOF
|
---|
| 1270 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 1271 |
|
---|
| 1272 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 1273 |
|
---|
| 1274 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 1275 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 1276 |
|
---|
| 1277 | Defaults for the options are specified in brackets.
|
---|
| 1278 |
|
---|
| 1279 | Configuration:
|
---|
| 1280 | -h, --help display this help and exit
|
---|
| 1281 | --help=short display options specific to this package
|
---|
| 1282 | --help=recursive display the short help of all the included packages
|
---|
| 1283 | -V, --version display version information and exit
|
---|
| 1284 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
| 1285 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 1286 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 1287 | -n, --no-create do not create output files
|
---|
| 1288 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 1289 |
|
---|
| 1290 | Installation directories:
|
---|
| 1291 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[22378] | 1292 | [$ac_default_prefix]
|
---|
[8756] | 1293 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[22378] | 1294 | [PREFIX]
|
---|
[8756] | 1295 |
|
---|
| 1296 | By default, \`make install' will install all the files in
|
---|
| 1297 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 1298 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 1299 | for instance \`--prefix=\$HOME'.
|
---|
| 1300 |
|
---|
| 1301 | For better control, use the options below.
|
---|
| 1302 |
|
---|
| 1303 | Fine tuning of the installation directories:
|
---|
[22378] | 1304 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 1305 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 1306 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 1307 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 1308 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 1309 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 1310 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 1311 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 1312 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 1313 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
| 1314 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
| 1315 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
| 1316 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
| 1317 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
| 1318 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
|
---|
| 1319 | --htmldir=DIR html documentation [DOCDIR]
|
---|
| 1320 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
| 1321 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
| 1322 | --psdir=DIR ps documentation [DOCDIR]
|
---|
[8756] | 1323 | _ACEOF
|
---|
| 1324 |
|
---|
| 1325 | cat <<\_ACEOF
|
---|
| 1326 |
|
---|
| 1327 | System types:
|
---|
| 1328 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 1329 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 1330 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 1331 | _ACEOF
|
---|
| 1332 | fi
|
---|
| 1333 |
|
---|
| 1334 | if test -n "$ac_init_help"; then
|
---|
| 1335 |
|
---|
| 1336 | cat <<\_ACEOF
|
---|
| 1337 |
|
---|
| 1338 | Optional Features:
|
---|
[22378] | 1339 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
[8756] | 1340 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 1341 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 1342 | --enable-corba Enable CORBA support
|
---|
| 1343 | --enable-z3950 Enable Z39.50 client support
|
---|
[15816] | 1344 | --disable-yaz Disable YAZ compilation
|
---|
[22058] | 1345 | --disable-jdbm Disable JDBM compilation
|
---|
| 1346 | --disable-gdbm Disable GDBM compilation
|
---|
[15816] | 1347 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[16288] | 1348 | --disable-sqlite Disable SQLite support
|
---|
[20853] | 1349 | --enable-apache-httpd Enable Apache httpd support
|
---|
[21366] | 1350 | --enable-jni Enable JNI compilation
|
---|
[21330] | 1351 | --disable-mg Disable MG compilation
|
---|
| 1352 | --disable-mgpp Disable MGPP compilation
|
---|
| 1353 | --disable-lucene Disable Lucene compilation
|
---|
[8756] | 1354 |
|
---|
| 1355 | Optional Packages:
|
---|
| 1356 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 1357 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 1358 | --with-micodir Use installed MICO directory
|
---|
| 1359 | --with-dmalloc use dmalloc, as in
|
---|
| 1360 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 1361 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 1362 |
|
---|
| 1363 | Some influential environment variables:
|
---|
| 1364 | CC C compiler command
|
---|
| 1365 | CFLAGS C compiler flags
|
---|
| 1366 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 1367 | nonstandard directory <lib dir>
|
---|
[22378] | 1368 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
| 1369 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
| 1370 | you have headers in a nonstandard directory <include dir>
|
---|
[8756] | 1371 | CXX C++ compiler command
|
---|
| 1372 | CXXFLAGS C++ compiler flags
|
---|
[22378] | 1373 | YACC The `Yet Another C Compiler' implementation to use. Defaults to
|
---|
| 1374 | the first program found out of: `bison -y', `byacc', `yacc'.
|
---|
| 1375 | YFLAGS The list of arguments that will be passed by default to $YACC.
|
---|
| 1376 | This script will default YFLAGS to the empty string to avoid a
|
---|
| 1377 | default value of `-d' given by some make applications.
|
---|
[8756] | 1378 | CPP C preprocessor
|
---|
| 1379 |
|
---|
| 1380 | Use these variables to override the choices made by `configure' or to help
|
---|
| 1381 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 1382 |
|
---|
[22378] | 1383 | Report bugs to the package provider.
|
---|
[8756] | 1384 | _ACEOF
|
---|
[22378] | 1385 | ac_status=$?
|
---|
[8756] | 1386 | fi
|
---|
| 1387 |
|
---|
| 1388 | if test "$ac_init_help" = "recursive"; then
|
---|
| 1389 | # If there are subdirs, report their specific --help.
|
---|
| 1390 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[22378] | 1391 | test -d "$ac_dir" ||
|
---|
| 1392 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
| 1393 | continue
|
---|
[8756] | 1394 | ac_builddir=.
|
---|
| 1395 |
|
---|
[22378] | 1396 | case "$ac_dir" in
|
---|
| 1397 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1398 | *)
|
---|
| 1399 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 1400 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 1401 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 1402 | case $ac_top_builddir_sub in
|
---|
| 1403 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 1404 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 1405 | esac ;;
|
---|
| 1406 | esac
|
---|
| 1407 | ac_abs_top_builddir=$ac_pwd
|
---|
| 1408 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 1409 | # for backward compatibility:
|
---|
| 1410 | ac_top_builddir=$ac_top_build_prefix
|
---|
[8756] | 1411 |
|
---|
| 1412 | case $srcdir in
|
---|
[22378] | 1413 | .) # We are building in place.
|
---|
[8756] | 1414 | ac_srcdir=.
|
---|
[22378] | 1415 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 1416 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 1417 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[8756] | 1418 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[22378] | 1419 | ac_top_srcdir=$srcdir
|
---|
| 1420 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 1421 | *) # Relative name.
|
---|
| 1422 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 1423 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 1424 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[8756] | 1425 | esac
|
---|
[22378] | 1426 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[8756] | 1427 |
|
---|
[22378] | 1428 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
| 1429 | # Check for guested configure.
|
---|
| 1430 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 1431 | echo &&
|
---|
| 1432 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
| 1433 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 1434 | echo &&
|
---|
| 1435 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
[8756] | 1436 | else
|
---|
[22378] | 1437 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 1438 | fi || ac_status=$?
|
---|
| 1439 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
[8756] | 1440 | done
|
---|
| 1441 | fi
|
---|
| 1442 |
|
---|
[22378] | 1443 | test -n "$ac_init_help" && exit $ac_status
|
---|
[8756] | 1444 | if $ac_init_version; then
|
---|
| 1445 | cat <<\_ACEOF
|
---|
[22378] | 1446 | configure
|
---|
| 1447 | generated by GNU Autoconf 2.65
|
---|
[8756] | 1448 |
|
---|
[22378] | 1449 | Copyright (C) 2009 Free Software Foundation, Inc.
|
---|
[8756] | 1450 | This configure script is free software; the Free Software Foundation
|
---|
| 1451 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 1452 | _ACEOF
|
---|
[22378] | 1453 | exit
|
---|
[8756] | 1454 | fi
|
---|
[22378] | 1455 |
|
---|
| 1456 | ## ------------------------ ##
|
---|
| 1457 | ## Autoconf initialization. ##
|
---|
| 1458 | ## ------------------------ ##
|
---|
| 1459 |
|
---|
| 1460 | # ac_fn_c_try_compile LINENO
|
---|
| 1461 | # --------------------------
|
---|
| 1462 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1463 | ac_fn_c_try_compile ()
|
---|
| 1464 | {
|
---|
| 1465 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1466 | rm -f conftest.$ac_objext
|
---|
| 1467 | if { { ac_try="$ac_compile"
|
---|
| 1468 | case "(($ac_try" in
|
---|
| 1469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1470 | *) ac_try_echo=$ac_try;;
|
---|
| 1471 | esac
|
---|
| 1472 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1473 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1474 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1475 | ac_status=$?
|
---|
| 1476 | if test -s conftest.err; then
|
---|
| 1477 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1478 | cat conftest.er1 >&5
|
---|
| 1479 | mv -f conftest.er1 conftest.err
|
---|
| 1480 | fi
|
---|
| 1481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1482 | test $ac_status = 0; } && {
|
---|
| 1483 | test -z "$ac_c_werror_flag" ||
|
---|
| 1484 | test ! -s conftest.err
|
---|
| 1485 | } && test -s conftest.$ac_objext; then :
|
---|
| 1486 | ac_retval=0
|
---|
| 1487 | else
|
---|
| 1488 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1489 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1490 |
|
---|
| 1491 | ac_retval=1
|
---|
| 1492 | fi
|
---|
| 1493 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1494 | as_fn_set_status $ac_retval
|
---|
| 1495 |
|
---|
| 1496 | } # ac_fn_c_try_compile
|
---|
| 1497 |
|
---|
| 1498 | # ac_fn_cxx_try_compile LINENO
|
---|
| 1499 | # ----------------------------
|
---|
| 1500 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1501 | ac_fn_cxx_try_compile ()
|
---|
| 1502 | {
|
---|
| 1503 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1504 | rm -f conftest.$ac_objext
|
---|
| 1505 | if { { ac_try="$ac_compile"
|
---|
| 1506 | case "(($ac_try" in
|
---|
| 1507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1508 | *) ac_try_echo=$ac_try;;
|
---|
| 1509 | esac
|
---|
| 1510 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1511 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1512 | (eval "$ac_compile") 2>conftest.err
|
---|
| 1513 | ac_status=$?
|
---|
| 1514 | if test -s conftest.err; then
|
---|
| 1515 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1516 | cat conftest.er1 >&5
|
---|
| 1517 | mv -f conftest.er1 conftest.err
|
---|
| 1518 | fi
|
---|
| 1519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1520 | test $ac_status = 0; } && {
|
---|
| 1521 | test -z "$ac_cxx_werror_flag" ||
|
---|
| 1522 | test ! -s conftest.err
|
---|
| 1523 | } && test -s conftest.$ac_objext; then :
|
---|
| 1524 | ac_retval=0
|
---|
| 1525 | else
|
---|
| 1526 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1527 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1528 |
|
---|
| 1529 | ac_retval=1
|
---|
| 1530 | fi
|
---|
| 1531 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1532 | as_fn_set_status $ac_retval
|
---|
| 1533 |
|
---|
| 1534 | } # ac_fn_cxx_try_compile
|
---|
| 1535 |
|
---|
| 1536 | # ac_fn_c_try_cpp LINENO
|
---|
| 1537 | # ----------------------
|
---|
| 1538 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1539 | ac_fn_c_try_cpp ()
|
---|
| 1540 | {
|
---|
| 1541 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1542 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
| 1543 | case "(($ac_try" in
|
---|
| 1544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1545 | *) ac_try_echo=$ac_try;;
|
---|
| 1546 | esac
|
---|
| 1547 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1548 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1549 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
| 1550 | ac_status=$?
|
---|
| 1551 | if test -s conftest.err; then
|
---|
| 1552 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1553 | cat conftest.er1 >&5
|
---|
| 1554 | mv -f conftest.er1 conftest.err
|
---|
| 1555 | fi
|
---|
| 1556 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1557 | test $ac_status = 0; } >/dev/null && {
|
---|
| 1558 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
| 1559 | test ! -s conftest.err
|
---|
| 1560 | }; then :
|
---|
| 1561 | ac_retval=0
|
---|
| 1562 | else
|
---|
| 1563 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1564 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1565 |
|
---|
| 1566 | ac_retval=1
|
---|
| 1567 | fi
|
---|
| 1568 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1569 | as_fn_set_status $ac_retval
|
---|
| 1570 |
|
---|
| 1571 | } # ac_fn_c_try_cpp
|
---|
| 1572 |
|
---|
| 1573 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
| 1574 | # -------------------------------------------------------
|
---|
| 1575 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
| 1576 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
| 1577 | # accordingly.
|
---|
| 1578 | ac_fn_c_check_header_mongrel ()
|
---|
| 1579 | {
|
---|
| 1580 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1581 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
| 1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1583 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1584 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
| 1585 | $as_echo_n "(cached) " >&6
|
---|
| 1586 | fi
|
---|
| 1587 | eval ac_res=\$$3
|
---|
| 1588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1589 | $as_echo "$ac_res" >&6; }
|
---|
| 1590 | else
|
---|
| 1591 | # Is the header compilable?
|
---|
| 1592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
| 1593 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
| 1594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1595 | /* end confdefs.h. */
|
---|
| 1596 | $4
|
---|
| 1597 | #include <$2>
|
---|
| 1598 | _ACEOF
|
---|
| 1599 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1600 | ac_header_compiler=yes
|
---|
| 1601 | else
|
---|
| 1602 | ac_header_compiler=no
|
---|
| 1603 | fi
|
---|
| 1604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
| 1606 | $as_echo "$ac_header_compiler" >&6; }
|
---|
| 1607 |
|
---|
| 1608 | # Is the header present?
|
---|
| 1609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
| 1610 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
| 1611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1612 | /* end confdefs.h. */
|
---|
| 1613 | #include <$2>
|
---|
| 1614 | _ACEOF
|
---|
| 1615 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 1616 | ac_header_preproc=yes
|
---|
| 1617 | else
|
---|
| 1618 | ac_header_preproc=no
|
---|
| 1619 | fi
|
---|
| 1620 | rm -f conftest.err conftest.$ac_ext
|
---|
| 1621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
| 1622 | $as_echo "$ac_header_preproc" >&6; }
|
---|
| 1623 |
|
---|
| 1624 | # So? What about this header?
|
---|
| 1625 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
| 1626 | yes:no: )
|
---|
| 1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 1628 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1630 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1631 | ;;
|
---|
| 1632 | no:yes:* )
|
---|
| 1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
| 1634 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
| 1635 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
| 1636 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
| 1637 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
| 1638 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
| 1639 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 1640 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 1641 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
| 1642 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
| 1643 | ;;
|
---|
| 1644 | esac
|
---|
| 1645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1646 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1647 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
| 1648 | $as_echo_n "(cached) " >&6
|
---|
| 1649 | else
|
---|
| 1650 | eval "$3=\$ac_header_compiler"
|
---|
| 1651 | fi
|
---|
| 1652 | eval ac_res=\$$3
|
---|
| 1653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1654 | $as_echo "$ac_res" >&6; }
|
---|
| 1655 | fi
|
---|
| 1656 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1657 |
|
---|
| 1658 | } # ac_fn_c_check_header_mongrel
|
---|
| 1659 |
|
---|
| 1660 | # ac_fn_c_try_run LINENO
|
---|
| 1661 | # ----------------------
|
---|
| 1662 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
| 1663 | # that executables *can* be run.
|
---|
| 1664 | ac_fn_c_try_run ()
|
---|
| 1665 | {
|
---|
| 1666 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1667 | if { { ac_try="$ac_link"
|
---|
| 1668 | case "(($ac_try" in
|
---|
| 1669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1670 | *) ac_try_echo=$ac_try;;
|
---|
| 1671 | esac
|
---|
| 1672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1673 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1674 | (eval "$ac_link") 2>&5
|
---|
| 1675 | ac_status=$?
|
---|
| 1676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1677 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
| 1678 | { { case "(($ac_try" in
|
---|
| 1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1680 | *) ac_try_echo=$ac_try;;
|
---|
| 1681 | esac
|
---|
| 1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1683 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1684 | (eval "$ac_try") 2>&5
|
---|
| 1685 | ac_status=$?
|
---|
| 1686 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1687 | test $ac_status = 0; }; }; then :
|
---|
| 1688 | ac_retval=0
|
---|
| 1689 | else
|
---|
| 1690 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 1691 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1692 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1693 |
|
---|
| 1694 | ac_retval=$ac_status
|
---|
| 1695 | fi
|
---|
| 1696 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1697 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1698 | as_fn_set_status $ac_retval
|
---|
| 1699 |
|
---|
| 1700 | } # ac_fn_c_try_run
|
---|
| 1701 |
|
---|
| 1702 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
| 1703 | # -------------------------------------------------------
|
---|
| 1704 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
| 1705 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
| 1706 | ac_fn_c_check_header_compile ()
|
---|
| 1707 | {
|
---|
| 1708 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1710 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1711 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
| 1712 | $as_echo_n "(cached) " >&6
|
---|
| 1713 | else
|
---|
| 1714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1715 | /* end confdefs.h. */
|
---|
| 1716 | $4
|
---|
| 1717 | #include <$2>
|
---|
| 1718 | _ACEOF
|
---|
| 1719 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1720 | eval "$3=yes"
|
---|
| 1721 | else
|
---|
| 1722 | eval "$3=no"
|
---|
| 1723 | fi
|
---|
| 1724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1725 | fi
|
---|
| 1726 | eval ac_res=\$$3
|
---|
| 1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1728 | $as_echo "$ac_res" >&6; }
|
---|
| 1729 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1730 |
|
---|
| 1731 | } # ac_fn_c_check_header_compile
|
---|
| 1732 |
|
---|
| 1733 | # ac_fn_c_try_link LINENO
|
---|
| 1734 | # -----------------------
|
---|
| 1735 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
| 1736 | ac_fn_c_try_link ()
|
---|
| 1737 | {
|
---|
| 1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1739 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 1740 | if { { ac_try="$ac_link"
|
---|
| 1741 | case "(($ac_try" in
|
---|
| 1742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1743 | *) ac_try_echo=$ac_try;;
|
---|
| 1744 | esac
|
---|
| 1745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1746 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1747 | (eval "$ac_link") 2>conftest.err
|
---|
| 1748 | ac_status=$?
|
---|
| 1749 | if test -s conftest.err; then
|
---|
| 1750 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
| 1751 | cat conftest.er1 >&5
|
---|
| 1752 | mv -f conftest.er1 conftest.err
|
---|
| 1753 | fi
|
---|
| 1754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1755 | test $ac_status = 0; } && {
|
---|
| 1756 | test -z "$ac_c_werror_flag" ||
|
---|
| 1757 | test ! -s conftest.err
|
---|
| 1758 | } && test -s conftest$ac_exeext && {
|
---|
| 1759 | test "$cross_compiling" = yes ||
|
---|
| 1760 | $as_test_x conftest$ac_exeext
|
---|
| 1761 | }; then :
|
---|
| 1762 | ac_retval=0
|
---|
| 1763 | else
|
---|
| 1764 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1765 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1766 |
|
---|
| 1767 | ac_retval=1
|
---|
| 1768 | fi
|
---|
| 1769 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
| 1770 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
| 1771 | # interfere with the next link command; also delete a directory that is
|
---|
| 1772 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
| 1773 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1774 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1775 | as_fn_set_status $ac_retval
|
---|
| 1776 |
|
---|
| 1777 | } # ac_fn_c_try_link
|
---|
| 1778 |
|
---|
| 1779 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
| 1780 | # -------------------------------------------
|
---|
| 1781 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
| 1782 | # variable VAR accordingly.
|
---|
| 1783 | ac_fn_c_check_type ()
|
---|
| 1784 | {
|
---|
| 1785 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1787 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1788 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
| 1789 | $as_echo_n "(cached) " >&6
|
---|
| 1790 | else
|
---|
| 1791 | eval "$3=no"
|
---|
| 1792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1793 | /* end confdefs.h. */
|
---|
| 1794 | $4
|
---|
| 1795 | int
|
---|
| 1796 | main ()
|
---|
| 1797 | {
|
---|
| 1798 | if (sizeof ($2))
|
---|
| 1799 | return 0;
|
---|
| 1800 | ;
|
---|
| 1801 | return 0;
|
---|
| 1802 | }
|
---|
| 1803 | _ACEOF
|
---|
| 1804 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1806 | /* end confdefs.h. */
|
---|
| 1807 | $4
|
---|
| 1808 | int
|
---|
| 1809 | main ()
|
---|
| 1810 | {
|
---|
| 1811 | if (sizeof (($2)))
|
---|
| 1812 | return 0;
|
---|
| 1813 | ;
|
---|
| 1814 | return 0;
|
---|
| 1815 | }
|
---|
| 1816 | _ACEOF
|
---|
| 1817 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 1818 |
|
---|
| 1819 | else
|
---|
| 1820 | eval "$3=yes"
|
---|
| 1821 | fi
|
---|
| 1822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1823 | fi
|
---|
| 1824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1825 | fi
|
---|
| 1826 | eval ac_res=\$$3
|
---|
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1828 | $as_echo "$ac_res" >&6; }
|
---|
| 1829 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1830 |
|
---|
| 1831 | } # ac_fn_c_check_type
|
---|
| 1832 |
|
---|
| 1833 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
| 1834 | # ----------------------------------
|
---|
| 1835 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
| 1836 | ac_fn_c_check_func ()
|
---|
| 1837 | {
|
---|
| 1838 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
| 1840 | $as_echo_n "checking for $2... " >&6; }
|
---|
| 1841 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
| 1842 | $as_echo_n "(cached) " >&6
|
---|
| 1843 | else
|
---|
| 1844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 1845 | /* end confdefs.h. */
|
---|
| 1846 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
| 1847 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 1848 | #define $2 innocuous_$2
|
---|
| 1849 |
|
---|
| 1850 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 1851 | which can conflict with char $2 (); below.
|
---|
| 1852 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 1853 | <limits.h> exists even on freestanding compilers. */
|
---|
| 1854 |
|
---|
| 1855 | #ifdef __STDC__
|
---|
| 1856 | # include <limits.h>
|
---|
| 1857 | #else
|
---|
| 1858 | # include <assert.h>
|
---|
| 1859 | #endif
|
---|
| 1860 |
|
---|
| 1861 | #undef $2
|
---|
| 1862 |
|
---|
| 1863 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 1864 | Use char because int might match the return type of a GCC
|
---|
| 1865 | builtin and then its argument prototype would still apply. */
|
---|
| 1866 | #ifdef __cplusplus
|
---|
| 1867 | extern "C"
|
---|
| 1868 | #endif
|
---|
| 1869 | char $2 ();
|
---|
| 1870 | /* The GNU C library defines this for functions which it implements
|
---|
| 1871 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 1872 | something starting with __ and the normal name is an alias. */
|
---|
| 1873 | #if defined __stub_$2 || defined __stub___$2
|
---|
| 1874 | choke me
|
---|
| 1875 | #endif
|
---|
| 1876 |
|
---|
| 1877 | int
|
---|
| 1878 | main ()
|
---|
| 1879 | {
|
---|
| 1880 | return $2 ();
|
---|
| 1881 | ;
|
---|
| 1882 | return 0;
|
---|
| 1883 | }
|
---|
| 1884 | _ACEOF
|
---|
| 1885 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 1886 | eval "$3=yes"
|
---|
| 1887 | else
|
---|
| 1888 | eval "$3=no"
|
---|
| 1889 | fi
|
---|
| 1890 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 1891 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 1892 | fi
|
---|
| 1893 | eval ac_res=\$$3
|
---|
| 1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 1895 | $as_echo "$ac_res" >&6; }
|
---|
| 1896 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1897 |
|
---|
| 1898 | } # ac_fn_c_check_func
|
---|
| 1899 |
|
---|
| 1900 | # ac_fn_cxx_try_run LINENO
|
---|
| 1901 | # ------------------------
|
---|
| 1902 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
| 1903 | # that executables *can* be run.
|
---|
| 1904 | ac_fn_cxx_try_run ()
|
---|
| 1905 | {
|
---|
| 1906 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 1907 | if { { ac_try="$ac_link"
|
---|
| 1908 | case "(($ac_try" in
|
---|
| 1909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1910 | *) ac_try_echo=$ac_try;;
|
---|
| 1911 | esac
|
---|
| 1912 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1913 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1914 | (eval "$ac_link") 2>&5
|
---|
| 1915 | ac_status=$?
|
---|
| 1916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1917 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
| 1918 | { { case "(($ac_try" in
|
---|
| 1919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 1920 | *) ac_try_echo=$ac_try;;
|
---|
| 1921 | esac
|
---|
| 1922 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 1923 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 1924 | (eval "$ac_try") 2>&5
|
---|
| 1925 | ac_status=$?
|
---|
| 1926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 1927 | test $ac_status = 0; }; }; then :
|
---|
| 1928 | ac_retval=0
|
---|
| 1929 | else
|
---|
| 1930 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 1931 | $as_echo "$as_me: failed program was:" >&5
|
---|
| 1932 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1933 |
|
---|
| 1934 | ac_retval=$ac_status
|
---|
| 1935 | fi
|
---|
| 1936 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
| 1937 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
|
---|
| 1938 | as_fn_set_status $ac_retval
|
---|
| 1939 |
|
---|
| 1940 | } # ac_fn_cxx_try_run
|
---|
| 1941 | cat >config.log <<_ACEOF
|
---|
[8756] | 1942 | This file contains any messages produced by compilers while
|
---|
| 1943 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 1944 |
|
---|
| 1945 | It was created by $as_me, which was
|
---|
[22378] | 1946 | generated by GNU Autoconf 2.65. Invocation command line was
|
---|
[8756] | 1947 |
|
---|
| 1948 | $ $0 $@
|
---|
| 1949 |
|
---|
| 1950 | _ACEOF
|
---|
[22378] | 1951 | exec 5>>config.log
|
---|
[8756] | 1952 | {
|
---|
| 1953 | cat <<_ASUNAME
|
---|
| 1954 | ## --------- ##
|
---|
| 1955 | ## Platform. ##
|
---|
| 1956 | ## --------- ##
|
---|
| 1957 |
|
---|
| 1958 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1959 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1960 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1961 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1962 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1963 |
|
---|
| 1964 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1965 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1966 |
|
---|
| 1967 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1968 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1969 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[22378] | 1970 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
[8756] | 1971 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1972 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1973 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1974 |
|
---|
| 1975 | _ASUNAME
|
---|
| 1976 |
|
---|
| 1977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1978 | for as_dir in $PATH
|
---|
| 1979 | do
|
---|
| 1980 | IFS=$as_save_IFS
|
---|
| 1981 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 1982 | $as_echo "PATH: $as_dir"
|
---|
| 1983 | done
|
---|
| 1984 | IFS=$as_save_IFS
|
---|
[8756] | 1985 |
|
---|
| 1986 | } >&5
|
---|
| 1987 |
|
---|
| 1988 | cat >&5 <<_ACEOF
|
---|
| 1989 |
|
---|
| 1990 |
|
---|
| 1991 | ## ----------- ##
|
---|
| 1992 | ## Core tests. ##
|
---|
| 1993 | ## ----------- ##
|
---|
| 1994 |
|
---|
| 1995 | _ACEOF
|
---|
| 1996 |
|
---|
| 1997 |
|
---|
| 1998 | # Keep a trace of the command line.
|
---|
| 1999 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 2000 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 2001 | # Also quote any args containing shell meta-characters.
|
---|
| 2002 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 2003 | ac_configure_args=
|
---|
| 2004 | ac_configure_args0=
|
---|
| 2005 | ac_configure_args1=
|
---|
| 2006 | ac_must_keep_next=false
|
---|
| 2007 | for ac_pass in 1 2
|
---|
| 2008 | do
|
---|
| 2009 | for ac_arg
|
---|
| 2010 | do
|
---|
| 2011 | case $ac_arg in
|
---|
| 2012 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 2013 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 2014 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 2015 | continue ;;
|
---|
[22378] | 2016 | *\'*)
|
---|
| 2017 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[8756] | 2018 | esac
|
---|
| 2019 | case $ac_pass in
|
---|
[22378] | 2020 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
[8756] | 2021 | 2)
|
---|
[22378] | 2022 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
[8756] | 2023 | if test $ac_must_keep_next = true; then
|
---|
| 2024 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 2025 | else
|
---|
| 2026 | case $ac_arg in
|
---|
| 2027 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 2028 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 2029 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 2030 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 2031 | case "$ac_configure_args0 " in
|
---|
| 2032 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 2033 | esac
|
---|
| 2034 | ;;
|
---|
| 2035 | -* ) ac_must_keep_next=true ;;
|
---|
| 2036 | esac
|
---|
| 2037 | fi
|
---|
[22378] | 2038 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
[8756] | 2039 | ;;
|
---|
| 2040 | esac
|
---|
| 2041 | done
|
---|
| 2042 | done
|
---|
[22378] | 2043 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
| 2044 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
[8756] | 2045 |
|
---|
| 2046 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 2047 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 2048 | # would cause problems or look ugly.
|
---|
[22378] | 2049 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
| 2050 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
[8756] | 2051 | trap 'exit_status=$?
|
---|
| 2052 | # Save into config.log some information that might help in debugging.
|
---|
| 2053 | {
|
---|
| 2054 | echo
|
---|
| 2055 |
|
---|
| 2056 | cat <<\_ASBOX
|
---|
| 2057 | ## ---------------- ##
|
---|
| 2058 | ## Cache variables. ##
|
---|
| 2059 | ## ---------------- ##
|
---|
| 2060 | _ASBOX
|
---|
| 2061 | echo
|
---|
| 2062 | # The following way of writing the cache mishandles newlines in values,
|
---|
[22378] | 2063 | (
|
---|
| 2064 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
| 2065 | eval ac_val=\$$ac_var
|
---|
| 2066 | case $ac_val in #(
|
---|
| 2067 | *${as_nl}*)
|
---|
| 2068 | case $ac_var in #(
|
---|
| 2069 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
| 2070 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 2071 | esac
|
---|
| 2072 | case $ac_var in #(
|
---|
| 2073 | _ | IFS | as_nl) ;; #(
|
---|
| 2074 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
| 2075 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
| 2076 | esac ;;
|
---|
| 2077 | esac
|
---|
| 2078 | done
|
---|
[8756] | 2079 | (set) 2>&1 |
|
---|
[22378] | 2080 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
| 2081 | *${as_nl}ac_space=\ *)
|
---|
[8756] | 2082 | sed -n \
|
---|
[22378] | 2083 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
| 2084 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
| 2085 | ;; #(
|
---|
[8756] | 2086 | *)
|
---|
[22378] | 2087 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[8756] | 2088 | ;;
|
---|
[22378] | 2089 | esac |
|
---|
| 2090 | sort
|
---|
| 2091 | )
|
---|
[8756] | 2092 | echo
|
---|
| 2093 |
|
---|
| 2094 | cat <<\_ASBOX
|
---|
| 2095 | ## ----------------- ##
|
---|
| 2096 | ## Output variables. ##
|
---|
| 2097 | ## ----------------- ##
|
---|
| 2098 | _ASBOX
|
---|
| 2099 | echo
|
---|
| 2100 | for ac_var in $ac_subst_vars
|
---|
| 2101 | do
|
---|
[22378] | 2102 | eval ac_val=\$$ac_var
|
---|
| 2103 | case $ac_val in
|
---|
| 2104 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2105 | esac
|
---|
| 2106 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[8756] | 2107 | done | sort
|
---|
| 2108 | echo
|
---|
| 2109 |
|
---|
| 2110 | if test -n "$ac_subst_files"; then
|
---|
| 2111 | cat <<\_ASBOX
|
---|
[22378] | 2112 | ## ------------------- ##
|
---|
| 2113 | ## File substitutions. ##
|
---|
| 2114 | ## ------------------- ##
|
---|
[8756] | 2115 | _ASBOX
|
---|
| 2116 | echo
|
---|
| 2117 | for ac_var in $ac_subst_files
|
---|
| 2118 | do
|
---|
[22378] | 2119 | eval ac_val=\$$ac_var
|
---|
| 2120 | case $ac_val in
|
---|
| 2121 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
| 2122 | esac
|
---|
| 2123 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
[8756] | 2124 | done | sort
|
---|
| 2125 | echo
|
---|
| 2126 | fi
|
---|
| 2127 |
|
---|
| 2128 | if test -s confdefs.h; then
|
---|
| 2129 | cat <<\_ASBOX
|
---|
| 2130 | ## ----------- ##
|
---|
| 2131 | ## confdefs.h. ##
|
---|
| 2132 | ## ----------- ##
|
---|
| 2133 | _ASBOX
|
---|
| 2134 | echo
|
---|
[22378] | 2135 | cat confdefs.h
|
---|
[8756] | 2136 | echo
|
---|
| 2137 | fi
|
---|
| 2138 | test "$ac_signal" != 0 &&
|
---|
[22378] | 2139 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
| 2140 | $as_echo "$as_me: exit $exit_status"
|
---|
[8756] | 2141 | } >&5
|
---|
[22378] | 2142 | rm -f core *.core core.conftest.* &&
|
---|
| 2143 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[8756] | 2144 | exit $exit_status
|
---|
[22378] | 2145 | ' 0
|
---|
[8756] | 2146 | for ac_signal in 1 2 13 15; do
|
---|
[22378] | 2147 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
[8756] | 2148 | done
|
---|
| 2149 | ac_signal=0
|
---|
| 2150 |
|
---|
| 2151 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[22378] | 2152 | rm -f -r conftest* confdefs.h
|
---|
[8756] | 2153 |
|
---|
[22378] | 2154 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
| 2155 |
|
---|
[8756] | 2156 | # Predefined preprocessor variables.
|
---|
| 2157 |
|
---|
| 2158 | cat >>confdefs.h <<_ACEOF
|
---|
| 2159 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 2160 | _ACEOF
|
---|
| 2161 |
|
---|
| 2162 | cat >>confdefs.h <<_ACEOF
|
---|
| 2163 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 2164 | _ACEOF
|
---|
| 2165 |
|
---|
| 2166 | cat >>confdefs.h <<_ACEOF
|
---|
| 2167 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 2168 | _ACEOF
|
---|
| 2169 |
|
---|
| 2170 | cat >>confdefs.h <<_ACEOF
|
---|
| 2171 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 2172 | _ACEOF
|
---|
| 2173 |
|
---|
| 2174 | cat >>confdefs.h <<_ACEOF
|
---|
| 2175 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 2176 | _ACEOF
|
---|
| 2177 |
|
---|
[22378] | 2178 | cat >>confdefs.h <<_ACEOF
|
---|
| 2179 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
| 2180 | _ACEOF
|
---|
[8756] | 2181 |
|
---|
[22378] | 2182 |
|
---|
[8756] | 2183 | # Let the site file select an alternate cache file if it wants to.
|
---|
[22378] | 2184 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
| 2185 | ac_site_file1=NONE
|
---|
| 2186 | ac_site_file2=NONE
|
---|
| 2187 | if test -n "$CONFIG_SITE"; then
|
---|
| 2188 | ac_site_file1=$CONFIG_SITE
|
---|
| 2189 | elif test "x$prefix" != xNONE; then
|
---|
| 2190 | ac_site_file1=$prefix/share/config.site
|
---|
| 2191 | ac_site_file2=$prefix/etc/config.site
|
---|
| 2192 | else
|
---|
| 2193 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
| 2194 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
[562] | 2195 | fi
|
---|
[22378] | 2196 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
| 2197 | do
|
---|
| 2198 | test "x$ac_site_file" = xNONE && continue
|
---|
| 2199 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
| 2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
| 2201 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[8756] | 2202 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[562] | 2203 | . "$ac_site_file"
|
---|
| 2204 | fi
|
---|
| 2205 | done
|
---|
| 2206 |
|
---|
| 2207 | if test -r "$cache_file"; then
|
---|
[22378] | 2208 | # Some versions of bash will fail to source /dev/null (special files
|
---|
| 2209 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
| 2210 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
| 2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
| 2212 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
[8756] | 2213 | case $cache_file in
|
---|
[22378] | 2214 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
| 2215 | *) . "./$cache_file";;
|
---|
[8756] | 2216 | esac
|
---|
| 2217 | fi
|
---|
[562] | 2218 | else
|
---|
[22378] | 2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
| 2220 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
[8756] | 2221 | >$cache_file
|
---|
[562] | 2222 | fi
|
---|
| 2223 |
|
---|
[8756] | 2224 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 2225 | # value.
|
---|
| 2226 | ac_cache_corrupted=false
|
---|
[22378] | 2227 | for ac_var in $ac_precious_vars; do
|
---|
[8756] | 2228 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 2229 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[22378] | 2230 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
| 2231 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
[8756] | 2232 | case $ac_old_set,$ac_new_set in
|
---|
| 2233 | set,)
|
---|
[22378] | 2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 2235 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
[8756] | 2236 | ac_cache_corrupted=: ;;
|
---|
| 2237 | ,set)
|
---|
[22378] | 2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 2239 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
[8756] | 2240 | ac_cache_corrupted=: ;;
|
---|
| 2241 | ,);;
|
---|
| 2242 | *)
|
---|
| 2243 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[22378] | 2244 | # differences in whitespace do not lead to failure.
|
---|
| 2245 | ac_old_val_w=`echo x $ac_old_val`
|
---|
| 2246 | ac_new_val_w=`echo x $ac_new_val`
|
---|
| 2247 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
| 2248 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 2249 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 2250 | ac_cache_corrupted=:
|
---|
| 2251 | else
|
---|
| 2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
| 2253 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
| 2254 | eval $ac_var=\$ac_old_val
|
---|
| 2255 | fi
|
---|
| 2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
| 2257 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
| 2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
| 2259 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
[8756] | 2260 | fi;;
|
---|
| 2261 | esac
|
---|
| 2262 | # Pass precious variables to config.status.
|
---|
| 2263 | if test "$ac_new_set" = set; then
|
---|
| 2264 | case $ac_new_val in
|
---|
[22378] | 2265 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[8756] | 2266 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 2267 | esac
|
---|
| 2268 | case " $ac_configure_args " in
|
---|
| 2269 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
[22378] | 2270 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
[8756] | 2271 | esac
|
---|
| 2272 | fi
|
---|
| 2273 | done
|
---|
| 2274 | if $ac_cache_corrupted; then
|
---|
[22378] | 2275 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2276 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2277 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
| 2278 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 2279 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
[8756] | 2280 | fi
|
---|
[22378] | 2281 | ## -------------------- ##
|
---|
| 2282 | ## Main body of script. ##
|
---|
| 2283 | ## -------------------- ##
|
---|
[8756] | 2284 |
|
---|
[20853] | 2285 | ac_ext=c
|
---|
| 2286 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[562] | 2290 |
|
---|
| 2291 |
|
---|
[22378] | 2292 | ac_config_headers="$ac_config_headers config.h"
|
---|
[562] | 2293 |
|
---|
[8200] | 2294 |
|
---|
[562] | 2295 | PACKAGE=gsdl
|
---|
[16572] | 2296 | VERSION=2.82-svn
|
---|
[8756] | 2297 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 2298 | #define PACKAGE "$PACKAGE"
|
---|
[8756] | 2299 | _ACEOF
|
---|
[562] | 2300 |
|
---|
[8756] | 2301 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 2302 | #define VERSION "$VERSION"
|
---|
[8756] | 2303 | _ACEOF
|
---|
[562] | 2304 |
|
---|
[8200] | 2305 |
|
---|
| 2306 |
|
---|
| 2307 |
|
---|
[18487] | 2308 |
|
---|
[567] | 2309 | USE_FASTCGI=0
|
---|
| 2310 | if test USE_FASTCGI = 1; then
|
---|
[22378] | 2311 | $as_echo "#define USE_FASTCGI 1" >>confdefs.h
|
---|
[567] | 2312 |
|
---|
[8200] | 2313 |
|
---|
[3631] | 2314 | fi
|
---|
[567] | 2315 |
|
---|
[3631] | 2316 | if test USE_LANGACTION = 1; then
|
---|
[22378] | 2317 | $as_echo "#define USE_LANGACTION 1" >>confdefs.h
|
---|
[3631] | 2318 |
|
---|
[8200] | 2319 |
|
---|
[567] | 2320 | fi
|
---|
| 2321 |
|
---|
[22378] | 2322 | # Check whether --enable-corba was given.
|
---|
| 2323 | if test "${enable_corba+set}" = set; then :
|
---|
| 2324 | enableval=$enable_corba; USE_CORBA=$enableval
|
---|
[1860] | 2325 | else
|
---|
[21724] | 2326 | USE_CORBA=no
|
---|
[22378] | 2327 | fi
|
---|
| 2328 |
|
---|
[21724] | 2329 | if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
|
---|
| 2330 | USE_CORBA=1
|
---|
[22378] | 2331 | $as_echo "#define USE_CORBA /**/" >>confdefs.h
|
---|
[1860] | 2332 |
|
---|
[21724] | 2333 | else
|
---|
| 2334 | USE_CORBA=0
|
---|
| 2335 | fi
|
---|
[8200] | 2336 |
|
---|
| 2337 |
|
---|
[8756] | 2338 |
|
---|
[22378] | 2339 | # Check whether --with-micodir was given.
|
---|
| 2340 | if test "${with_micodir+set}" = set; then :
|
---|
| 2341 | withval=$with_micodir; MICO_DIR=$withval
|
---|
[1860] | 2342 | else
|
---|
[2471] | 2343 | MICO_DIR="default"
|
---|
[22378] | 2344 | fi
|
---|
| 2345 |
|
---|
[8756] | 2346 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 2347 | #define MICO_DIR "$MICO_DIR"
|
---|
[8756] | 2348 | _ACEOF
|
---|
[1860] | 2349 |
|
---|
[8200] | 2350 |
|
---|
| 2351 |
|
---|
[22378] | 2352 | # Check whether --enable-z3950 was given.
|
---|
| 2353 | if test "${enable_z3950+set}" = set; then :
|
---|
| 2354 | enableval=$enable_z3950; USE_Z3950=$enableval
|
---|
[1938] | 2355 | else
|
---|
[21724] | 2356 | USE_Z3950=no
|
---|
[22378] | 2357 | fi
|
---|
| 2358 |
|
---|
[21724] | 2359 | if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
|
---|
| 2360 | USE_Z3950=1
|
---|
[22378] | 2361 | $as_echo "#define USE_Z3950 /**/" >>confdefs.h
|
---|
[1938] | 2362 |
|
---|
[21724] | 2363 | else
|
---|
| 2364 | USE_Z3950=0
|
---|
[2297] | 2365 | fi
|
---|
[1938] | 2366 |
|
---|
[21724] | 2367 |
|
---|
[22378] | 2368 | # Check whether --enable-yaz was given.
|
---|
| 2369 | if test "${enable_yaz+set}" = set; then :
|
---|
| 2370 | enableval=$enable_yaz; USE_YAZ=$enableval
|
---|
[12492] | 2371 | else
|
---|
[21724] | 2372 | USE_YAZ=yes
|
---|
[22378] | 2373 | fi
|
---|
| 2374 |
|
---|
[21724] | 2375 | if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
|
---|
[12492] | 2376 | USE_YAZ=1
|
---|
[22378] | 2377 | $as_echo "#define USE_YAZ /**/" >>confdefs.h
|
---|
[8756] | 2378 |
|
---|
[21724] | 2379 | else
|
---|
| 2380 | USE_YAZ=0
|
---|
| 2381 | fi
|
---|
[12492] | 2382 |
|
---|
| 2383 |
|
---|
[22378] | 2384 | # Check whether --enable-jdbm was given.
|
---|
| 2385 | if test "${enable_jdbm+set}" = set; then :
|
---|
| 2386 | enableval=$enable_jdbm; USE_JDBM=$enableval
|
---|
[22058] | 2387 | else
|
---|
| 2388 | USE_JDBM=yes
|
---|
[22378] | 2389 | fi
|
---|
| 2390 |
|
---|
[22058] | 2391 | if test $USE_JDBM = "yes" -o $USE_JDBM = "1" ; then
|
---|
| 2392 | USE_JDBM=1
|
---|
[22378] | 2393 | $as_echo "#define USE_JDBM /**/" >>confdefs.h
|
---|
[22058] | 2394 |
|
---|
| 2395 | else
|
---|
| 2396 | USE_JDBM=0
|
---|
| 2397 | fi
|
---|
| 2398 |
|
---|
| 2399 |
|
---|
[22378] | 2400 | # Check whether --enable-gdbm was given.
|
---|
| 2401 | if test "${enable_gdbm+set}" = set; then :
|
---|
| 2402 | enableval=$enable_gdbm; USE_GDBM=$enableval
|
---|
[22058] | 2403 | else
|
---|
| 2404 | USE_GDBM=yes
|
---|
[22378] | 2405 | fi
|
---|
| 2406 |
|
---|
[22058] | 2407 | if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
|
---|
| 2408 | USE_GDBM=1
|
---|
[22378] | 2409 | $as_echo "#define USE_GDBM /**/" >>confdefs.h
|
---|
[22058] | 2410 |
|
---|
| 2411 | else
|
---|
| 2412 | USE_GDBM=0
|
---|
| 2413 | fi
|
---|
| 2414 |
|
---|
| 2415 |
|
---|
[22378] | 2416 | # Check whether --enable-accentfold was given.
|
---|
| 2417 | if test "${enable_accentfold+set}" = set; then :
|
---|
| 2418 | enableval=$enable_accentfold; ENABLE_ACCENTFOLD=$enableval
|
---|
[12922] | 2419 | else
|
---|
[21724] | 2420 | ENABLE_ACCENTFOLD=yes
|
---|
[22378] | 2421 | fi
|
---|
| 2422 |
|
---|
[21724] | 2423 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
[12922] | 2424 | ENABLE_ACCENTFOLD=1
|
---|
[22378] | 2425 | $as_echo "#define ENABLE_ACCENTFOLD /**/" >>confdefs.h
|
---|
[12922] | 2426 |
|
---|
[21724] | 2427 | else
|
---|
| 2428 | ENABLE_ACCENTFOLD=0
|
---|
| 2429 | fi
|
---|
[12922] | 2430 |
|
---|
[15901] | 2431 |
|
---|
[22378] | 2432 | # Check whether --enable-sqlite was given.
|
---|
| 2433 | if test "${enable_sqlite+set}" = set; then :
|
---|
| 2434 | enableval=$enable_sqlite; USE_SQLITE=$enableval
|
---|
[16288] | 2435 | else
|
---|
[21724] | 2436 | USE_SQLITE=yes
|
---|
[22378] | 2437 | fi
|
---|
| 2438 |
|
---|
[21724] | 2439 | if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
|
---|
[15794] | 2440 | USE_SQLITE=1
|
---|
[22378] | 2441 | $as_echo "#define USE_SQLITE /**/" >>confdefs.h
|
---|
[12922] | 2442 |
|
---|
[21724] | 2443 | else
|
---|
| 2444 | USE_SQLITE=0
|
---|
| 2445 | fi
|
---|
[15794] | 2446 |
|
---|
[15901] | 2447 |
|
---|
[21377] | 2448 | if test -d runtime-src; then
|
---|
[22378] | 2449 | # Check whether --enable-apache-httpd was given.
|
---|
| 2450 | if test "${enable_apache_httpd+set}" = set; then :
|
---|
| 2451 | enableval=$enable_apache_httpd; USE_APACHE_HTTPD=$enableval
|
---|
[19263] | 2452 | else
|
---|
[21724] | 2453 | USE_APACHE_HTTPD=no
|
---|
[22378] | 2454 | fi
|
---|
| 2455 |
|
---|
[21724] | 2456 | if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
|
---|
| 2457 | USE_APACHE_HTTPD=1
|
---|
[22378] | 2458 | $as_echo "#define USE_APACHE_HTTPD /**/" >>confdefs.h
|
---|
[18487] | 2459 |
|
---|
[21724] | 2460 | else
|
---|
| 2461 | USE_APACHE_HTTPD=0
|
---|
| 2462 | fi
|
---|
[18487] | 2463 |
|
---|
[21377] | 2464 | fi
|
---|
[18487] | 2465 |
|
---|
[22378] | 2466 | # Check whether --enable-jni was given.
|
---|
| 2467 | if test "${enable_jni+set}" = set; then :
|
---|
| 2468 | enableval=$enable_jni; ENABLE_JNI=$enableval
|
---|
[21366] | 2469 | else
|
---|
| 2470 | ENABLE_JNI=no
|
---|
[22378] | 2471 | fi
|
---|
| 2472 |
|
---|
[21366] | 2473 | if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
|
---|
| 2474 | ENABLE_JNI=1
|
---|
[22378] | 2475 | $as_echo "#define ENABLE_JNI /**/" >>confdefs.h
|
---|
[18487] | 2476 |
|
---|
[21366] | 2477 | else
|
---|
| 2478 | ENABLE_JNI=0
|
---|
| 2479 | fi
|
---|
| 2480 |
|
---|
| 2481 |
|
---|
[22378] | 2482 | # Check whether --enable-mg was given.
|
---|
| 2483 | if test "${enable_mg+set}" = set; then :
|
---|
| 2484 | enableval=$enable_mg; ENABLE_MG=$enableval
|
---|
[21330] | 2485 | else
|
---|
| 2486 | ENABLE_MG=yes
|
---|
[22378] | 2487 | fi
|
---|
| 2488 |
|
---|
[21330] | 2489 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 2490 | ENABLE_MG=1
|
---|
[22378] | 2491 | $as_echo "#define ENABLE_MG /**/" >>confdefs.h
|
---|
[21330] | 2492 |
|
---|
| 2493 | else
|
---|
| 2494 | ENABLE_MG=0
|
---|
| 2495 | fi
|
---|
| 2496 |
|
---|
| 2497 |
|
---|
| 2498 |
|
---|
[22378] | 2499 | # Check whether --enable-mgpp was given.
|
---|
| 2500 | if test "${enable_mgpp+set}" = set; then :
|
---|
| 2501 | enableval=$enable_mgpp; ENABLE_MGPP=$enableval
|
---|
[21330] | 2502 | else
|
---|
| 2503 | ENABLE_MGPP=yes
|
---|
[22378] | 2504 | fi
|
---|
| 2505 |
|
---|
[21330] | 2506 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 2507 | ENABLE_MGPP=1
|
---|
[22378] | 2508 | $as_echo "#define ENABLE_MGPP /**/" >>confdefs.h
|
---|
[21330] | 2509 |
|
---|
| 2510 | else
|
---|
| 2511 | ENABLE_MGPP=0
|
---|
| 2512 | fi
|
---|
| 2513 |
|
---|
| 2514 |
|
---|
[22378] | 2515 | # Check whether --enable-lucene was given.
|
---|
| 2516 | if test "${enable_lucene+set}" = set; then :
|
---|
| 2517 | enableval=$enable_lucene; ENABLE_LUCENE=$enableval
|
---|
[21330] | 2518 | else
|
---|
| 2519 | ENABLE_LUCENE=yes
|
---|
[22378] | 2520 | fi
|
---|
| 2521 |
|
---|
[21330] | 2522 | if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
|
---|
| 2523 | ENABLE_LUCENE=1
|
---|
[22378] | 2524 | $as_echo "#define ENABLE_LUCENE /**/" >>confdefs.h
|
---|
[21330] | 2525 |
|
---|
| 2526 | else
|
---|
| 2527 | ENABLE_LUCENE=0
|
---|
| 2528 | fi
|
---|
| 2529 |
|
---|
| 2530 |
|
---|
| 2531 |
|
---|
[14169] | 2532 | LDFLAGS=$LDFLAGS
|
---|
[15551] | 2533 |
|
---|
[1722] | 2534 | if test -z "$CFLAGS"; then
|
---|
[794] | 2535 | CFLAGS=-O2
|
---|
[1722] | 2536 | fi
|
---|
[576] | 2537 |
|
---|
| 2538 |
|
---|
[15551] | 2539 |
|
---|
[8756] | 2540 | ac_ext=c
|
---|
| 2541 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2545 | if test -n "$ac_tool_prefix"; then
|
---|
| 2546 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 2547 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[22378] | 2548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2549 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2550 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 2551 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 2552 | else
|
---|
| 2553 | if test -n "$CC"; then
|
---|
| 2554 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2555 | else
|
---|
| 2556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2557 | for as_dir in $PATH
|
---|
| 2558 | do
|
---|
| 2559 | IFS=$as_save_IFS
|
---|
| 2560 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2561 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2563 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
[22378] | 2564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2565 | break 2
|
---|
| 2566 | fi
|
---|
| 2567 | done
|
---|
[22378] | 2568 | done
|
---|
| 2569 | IFS=$as_save_IFS
|
---|
[8756] | 2570 |
|
---|
| 2571 | fi
|
---|
| 2572 | fi
|
---|
| 2573 | CC=$ac_cv_prog_CC
|
---|
| 2574 | if test -n "$CC"; then
|
---|
[22378] | 2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 2576 | $as_echo "$CC" >&6; }
|
---|
[8756] | 2577 | else
|
---|
[22378] | 2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2579 | $as_echo "no" >&6; }
|
---|
[8756] | 2580 | fi
|
---|
| 2581 |
|
---|
[22378] | 2582 |
|
---|
[8756] | 2583 | fi
|
---|
| 2584 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2585 | ac_ct_CC=$CC
|
---|
| 2586 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[562] | 2587 | set dummy gcc; ac_word=$2
|
---|
[22378] | 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2589 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2590 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
| 2591 | $as_echo_n "(cached) " >&6
|
---|
[562] | 2592 | else
|
---|
[8756] | 2593 | if test -n "$ac_ct_CC"; then
|
---|
| 2594 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2595 | else
|
---|
| 2596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2597 | for as_dir in $PATH
|
---|
| 2598 | do
|
---|
| 2599 | IFS=$as_save_IFS
|
---|
| 2600 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2601 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2603 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
[22378] | 2604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2605 | break 2
|
---|
| 2606 | fi
|
---|
| 2607 | done
|
---|
[22378] | 2608 | done
|
---|
| 2609 | IFS=$as_save_IFS
|
---|
[8756] | 2610 |
|
---|
| 2611 | fi
|
---|
| 2612 | fi
|
---|
| 2613 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2614 | if test -n "$ac_ct_CC"; then
|
---|
[22378] | 2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
| 2616 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[8756] | 2617 | else
|
---|
[22378] | 2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2619 | $as_echo "no" >&6; }
|
---|
[8756] | 2620 | fi
|
---|
| 2621 |
|
---|
[22378] | 2622 | if test "x$ac_ct_CC" = x; then
|
---|
| 2623 | CC=""
|
---|
| 2624 | else
|
---|
| 2625 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2626 | yes:)
|
---|
| 2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 2628 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 2629 | ac_tool_warned=yes ;;
|
---|
| 2630 | esac
|
---|
| 2631 | CC=$ac_ct_CC
|
---|
| 2632 | fi
|
---|
[8756] | 2633 | else
|
---|
| 2634 | CC="$ac_cv_prog_CC"
|
---|
| 2635 | fi
|
---|
| 2636 |
|
---|
| 2637 | if test -z "$CC"; then
|
---|
[22378] | 2638 | if test -n "$ac_tool_prefix"; then
|
---|
| 2639 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[8756] | 2640 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[22378] | 2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2642 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2643 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 2644 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 2645 | else
|
---|
[562] | 2646 | if test -n "$CC"; then
|
---|
| 2647 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2648 | else
|
---|
[8756] | 2649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2650 | for as_dir in $PATH
|
---|
| 2651 | do
|
---|
| 2652 | IFS=$as_save_IFS
|
---|
| 2653 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2654 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2656 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
[22378] | 2657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2658 | break 2
|
---|
| 2659 | fi
|
---|
| 2660 | done
|
---|
[22378] | 2661 | done
|
---|
| 2662 | IFS=$as_save_IFS
|
---|
[8756] | 2663 |
|
---|
[562] | 2664 | fi
|
---|
| 2665 | fi
|
---|
[8756] | 2666 | CC=$ac_cv_prog_CC
|
---|
[562] | 2667 | if test -n "$CC"; then
|
---|
[22378] | 2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 2669 | $as_echo "$CC" >&6; }
|
---|
[562] | 2670 | else
|
---|
[22378] | 2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2672 | $as_echo "no" >&6; }
|
---|
[562] | 2673 | fi
|
---|
| 2674 |
|
---|
[22378] | 2675 |
|
---|
[20853] | 2676 | fi
|
---|
[8756] | 2677 | fi
|
---|
[562] | 2678 | if test -z "$CC"; then
|
---|
| 2679 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2680 | set dummy cc; ac_word=$2
|
---|
[22378] | 2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2682 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2683 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 2684 | $as_echo_n "(cached) " >&6
|
---|
[562] | 2685 | else
|
---|
| 2686 | if test -n "$CC"; then
|
---|
| 2687 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2688 | else
|
---|
| 2689 | ac_prog_rejected=no
|
---|
[8756] | 2690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2691 | for as_dir in $PATH
|
---|
| 2692 | do
|
---|
| 2693 | IFS=$as_save_IFS
|
---|
| 2694 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2695 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2697 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 2698 | ac_prog_rejected=yes
|
---|
| 2699 | continue
|
---|
| 2700 | fi
|
---|
| 2701 | ac_cv_prog_CC="cc"
|
---|
[22378] | 2702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2703 | break 2
|
---|
| 2704 | fi
|
---|
| 2705 | done
|
---|
[22378] | 2706 | done
|
---|
| 2707 | IFS=$as_save_IFS
|
---|
[8756] | 2708 |
|
---|
[562] | 2709 | if test $ac_prog_rejected = yes; then
|
---|
| 2710 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 2711 | set dummy $ac_cv_prog_CC
|
---|
| 2712 | shift
|
---|
[8756] | 2713 | if test $# != 0; then
|
---|
[562] | 2714 | # We chose a different compiler from the bogus one.
|
---|
| 2715 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 2716 | # first if we set CC to just the basename; use the full file name.
|
---|
| 2717 | shift
|
---|
[8756] | 2718 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[562] | 2719 | fi
|
---|
| 2720 | fi
|
---|
| 2721 | fi
|
---|
| 2722 | fi
|
---|
[8756] | 2723 | CC=$ac_cv_prog_CC
|
---|
[562] | 2724 | if test -n "$CC"; then
|
---|
[22378] | 2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 2726 | $as_echo "$CC" >&6; }
|
---|
[562] | 2727 | else
|
---|
[22378] | 2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2729 | $as_echo "no" >&6; }
|
---|
[562] | 2730 | fi
|
---|
| 2731 |
|
---|
[22378] | 2732 |
|
---|
[8756] | 2733 | fi
|
---|
| 2734 | if test -z "$CC"; then
|
---|
| 2735 | if test -n "$ac_tool_prefix"; then
|
---|
[22378] | 2736 | for ac_prog in cl.exe
|
---|
[8756] | 2737 | do
|
---|
| 2738 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2739 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[22378] | 2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2741 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2742 | if test "${ac_cv_prog_CC+set}" = set; then :
|
---|
| 2743 | $as_echo_n "(cached) " >&6
|
---|
[562] | 2744 | else
|
---|
| 2745 | if test -n "$CC"; then
|
---|
| 2746 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2747 | else
|
---|
[8756] | 2748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2749 | for as_dir in $PATH
|
---|
| 2750 | do
|
---|
| 2751 | IFS=$as_save_IFS
|
---|
| 2752 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2753 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2755 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
[22378] | 2756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2757 | break 2
|
---|
| 2758 | fi
|
---|
| 2759 | done
|
---|
[22378] | 2760 | done
|
---|
| 2761 | IFS=$as_save_IFS
|
---|
[8756] | 2762 |
|
---|
[562] | 2763 | fi
|
---|
| 2764 | fi
|
---|
[8756] | 2765 | CC=$ac_cv_prog_CC
|
---|
[562] | 2766 | if test -n "$CC"; then
|
---|
[22378] | 2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
| 2768 | $as_echo "$CC" >&6; }
|
---|
[562] | 2769 | else
|
---|
[22378] | 2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2771 | $as_echo "no" >&6; }
|
---|
[562] | 2772 | fi
|
---|
[8756] | 2773 |
|
---|
[22378] | 2774 |
|
---|
[8756] | 2775 | test -n "$CC" && break
|
---|
| 2776 | done
|
---|
| 2777 | fi
|
---|
| 2778 | if test -z "$CC"; then
|
---|
| 2779 | ac_ct_CC=$CC
|
---|
[22378] | 2780 | for ac_prog in cl.exe
|
---|
[8756] | 2781 | do
|
---|
| 2782 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2783 | set dummy $ac_prog; ac_word=$2
|
---|
[22378] | 2784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 2785 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 2786 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
|
---|
| 2787 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 2788 | else
|
---|
| 2789 | if test -n "$ac_ct_CC"; then
|
---|
| 2790 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2791 | else
|
---|
| 2792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2793 | for as_dir in $PATH
|
---|
| 2794 | do
|
---|
| 2795 | IFS=$as_save_IFS
|
---|
| 2796 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 2797 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 2799 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
[22378] | 2800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2801 | break 2
|
---|
[8200] | 2802 | fi
|
---|
[8756] | 2803 | done
|
---|
[22378] | 2804 | done
|
---|
| 2805 | IFS=$as_save_IFS
|
---|
[8756] | 2806 |
|
---|
[562] | 2807 | fi
|
---|
[8756] | 2808 | fi
|
---|
| 2809 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2810 | if test -n "$ac_ct_CC"; then
|
---|
[22378] | 2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
| 2812 | $as_echo "$ac_ct_CC" >&6; }
|
---|
[8756] | 2813 | else
|
---|
[22378] | 2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2815 | $as_echo "no" >&6; }
|
---|
[8756] | 2816 | fi
|
---|
[562] | 2817 |
|
---|
[22378] | 2818 |
|
---|
[8756] | 2819 | test -n "$ac_ct_CC" && break
|
---|
| 2820 | done
|
---|
[562] | 2821 |
|
---|
[22378] | 2822 | if test "x$ac_ct_CC" = x; then
|
---|
| 2823 | CC=""
|
---|
| 2824 | else
|
---|
| 2825 | case $cross_compiling:$ac_tool_warned in
|
---|
| 2826 | yes:)
|
---|
| 2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 2828 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 2829 | ac_tool_warned=yes ;;
|
---|
| 2830 | esac
|
---|
| 2831 | CC=$ac_ct_CC
|
---|
| 2832 | fi
|
---|
[8756] | 2833 | fi
|
---|
[562] | 2834 |
|
---|
[8756] | 2835 | fi
|
---|
[562] | 2836 |
|
---|
| 2837 |
|
---|
[22378] | 2838 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2839 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2840 | as_fn_error "no acceptable C compiler found in \$PATH
|
---|
| 2841 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[8756] | 2842 |
|
---|
| 2843 | # Provide some information about the compiler.
|
---|
[22378] | 2844 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
| 2845 | set X $ac_compile
|
---|
| 2846 | ac_compiler=$2
|
---|
| 2847 | for ac_option in --version -v -V -qversion; do
|
---|
| 2848 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
| 2849 | case "(($ac_try" in
|
---|
| 2850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2851 | *) ac_try_echo=$ac_try;;
|
---|
| 2852 | esac
|
---|
| 2853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2854 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2855 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[8756] | 2856 | ac_status=$?
|
---|
[22378] | 2857 | if test -s conftest.err; then
|
---|
| 2858 | sed '10a\
|
---|
| 2859 | ... rest of stderr output deleted ...
|
---|
| 2860 | 10q' conftest.err >conftest.er1
|
---|
| 2861 | cat conftest.er1 >&5
|
---|
| 2862 | fi
|
---|
| 2863 | rm -f conftest.er1 conftest.err
|
---|
| 2864 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2865 | test $ac_status = 0; }
|
---|
| 2866 | done
|
---|
[8756] | 2867 |
|
---|
[22378] | 2868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 2869 | /* end confdefs.h. */
|
---|
| 2870 |
|
---|
| 2871 | int
|
---|
| 2872 | main ()
|
---|
| 2873 | {
|
---|
| 2874 |
|
---|
| 2875 | ;
|
---|
| 2876 | return 0;
|
---|
| 2877 | }
|
---|
| 2878 | _ACEOF
|
---|
| 2879 | ac_clean_files_save=$ac_clean_files
|
---|
[22378] | 2880 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
[8756] | 2881 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 2882 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 2883 | # of exeext.
|
---|
[22378] | 2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
| 2885 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
| 2886 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[20853] | 2887 |
|
---|
[22378] | 2888 | # The possible output files:
|
---|
| 2889 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
| 2890 |
|
---|
| 2891 | ac_rmfiles=
|
---|
| 2892 | for ac_file in $ac_files
|
---|
[8756] | 2893 | do
|
---|
[22378] | 2894 | case $ac_file in
|
---|
| 2895 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
| 2896 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
| 2897 | esac
|
---|
| 2898 | done
|
---|
| 2899 | rm -f $ac_rmfiles
|
---|
| 2900 |
|
---|
| 2901 | if { { ac_try="$ac_link_default"
|
---|
| 2902 | case "(($ac_try" in
|
---|
| 2903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2904 | *) ac_try_echo=$ac_try;;
|
---|
| 2905 | esac
|
---|
| 2906 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2907 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2908 | (eval "$ac_link_default") 2>&5
|
---|
| 2909 | ac_status=$?
|
---|
| 2910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2911 | test $ac_status = 0; }; then :
|
---|
| 2912 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
| 2913 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
| 2914 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
| 2915 | # so that the user can short-circuit this test for compilers unknown to
|
---|
| 2916 | # Autoconf.
|
---|
| 2917 | for ac_file in $ac_files ''
|
---|
| 2918 | do
|
---|
[8756] | 2919 | test -f "$ac_file" || continue
|
---|
| 2920 | case $ac_file in
|
---|
[22378] | 2921 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
[8756] | 2922 | ;;
|
---|
| 2923 | [ab].out )
|
---|
| 2924 | # We found the default executable, but exeext='' is most
|
---|
| 2925 | # certainly right.
|
---|
| 2926 | break;;
|
---|
| 2927 | *.* )
|
---|
[22378] | 2928 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
| 2929 | then :; else
|
---|
| 2930 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2931 | fi
|
---|
| 2932 | # We set ac_cv_exeext here because the later test for it is not
|
---|
| 2933 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
| 2934 | # argument, so we may need to know it at that point already.
|
---|
| 2935 | # Even if this section looks crufty: it has the advantage of
|
---|
| 2936 | # actually working.
|
---|
[8756] | 2937 | break;;
|
---|
| 2938 | * )
|
---|
| 2939 | break;;
|
---|
| 2940 | esac
|
---|
| 2941 | done
|
---|
[22378] | 2942 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
| 2943 |
|
---|
[8756] | 2944 | else
|
---|
[22378] | 2945 | ac_file=''
|
---|
| 2946 | fi
|
---|
| 2947 | if test -z "$ac_file"; then :
|
---|
| 2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 2949 | $as_echo "no" >&6; }
|
---|
| 2950 | $as_echo "$as_me: failed program was:" >&5
|
---|
[8756] | 2951 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2952 |
|
---|
[22378] | 2953 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2954 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2955 | { as_fn_set_status 77
|
---|
| 2956 | as_fn_error "C compiler cannot create executables
|
---|
| 2957 | See \`config.log' for more details." "$LINENO" 5; }; }
|
---|
| 2958 | else
|
---|
| 2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 2960 | $as_echo "yes" >&6; }
|
---|
[8756] | 2961 | fi
|
---|
[22378] | 2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
| 2963 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
| 2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
| 2965 | $as_echo "$ac_file" >&6; }
|
---|
[8756] | 2966 | ac_exeext=$ac_cv_exeext
|
---|
| 2967 |
|
---|
[22378] | 2968 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
[8756] | 2969 | ac_clean_files=$ac_clean_files_save
|
---|
[22378] | 2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
| 2971 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
| 2972 | if { { ac_try="$ac_link"
|
---|
| 2973 | case "(($ac_try" in
|
---|
| 2974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 2975 | *) ac_try_echo=$ac_try;;
|
---|
| 2976 | esac
|
---|
| 2977 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 2978 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 2979 | (eval "$ac_link") 2>&5
|
---|
[8756] | 2980 | ac_status=$?
|
---|
[22378] | 2981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 2982 | test $ac_status = 0; }; then :
|
---|
[8756] | 2983 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2984 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2985 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2986 | # `rm'.
|
---|
| 2987 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2988 | test -f "$ac_file" || continue
|
---|
| 2989 | case $ac_file in
|
---|
[22378] | 2990 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
[8756] | 2991 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2992 | break;;
|
---|
| 2993 | * ) break;;
|
---|
| 2994 | esac
|
---|
| 2995 | done
|
---|
| 2996 | else
|
---|
[22378] | 2997 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 2998 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 2999 | as_fn_error "cannot compute suffix of executables: cannot compile and link
|
---|
| 3000 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[562] | 3001 | fi
|
---|
[22378] | 3002 | rm -f conftest conftest$ac_cv_exeext
|
---|
| 3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
| 3004 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
[562] | 3005 |
|
---|
[8756] | 3006 | rm -f conftest.$ac_ext
|
---|
| 3007 | EXEEXT=$ac_cv_exeext
|
---|
| 3008 | ac_exeext=$EXEEXT
|
---|
[22378] | 3009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3010 | /* end confdefs.h. */
|
---|
| 3011 | #include <stdio.h>
|
---|
| 3012 | int
|
---|
| 3013 | main ()
|
---|
| 3014 | {
|
---|
| 3015 | FILE *f = fopen ("conftest.out", "w");
|
---|
| 3016 | return ferror (f) || fclose (f) != 0;
|
---|
| 3017 |
|
---|
| 3018 | ;
|
---|
| 3019 | return 0;
|
---|
| 3020 | }
|
---|
| 3021 | _ACEOF
|
---|
| 3022 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
| 3023 | # Check that the compiler produces executables we can run. If not, either
|
---|
| 3024 | # the compiler is broken, or we cross compile.
|
---|
| 3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
| 3026 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
| 3027 | if test "$cross_compiling" != yes; then
|
---|
| 3028 | { { ac_try="$ac_link"
|
---|
| 3029 | case "(($ac_try" in
|
---|
| 3030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3031 | *) ac_try_echo=$ac_try;;
|
---|
| 3032 | esac
|
---|
| 3033 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3034 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3035 | (eval "$ac_link") 2>&5
|
---|
| 3036 | ac_status=$?
|
---|
| 3037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3038 | test $ac_status = 0; }
|
---|
| 3039 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
| 3040 | { { case "(($ac_try" in
|
---|
| 3041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3042 | *) ac_try_echo=$ac_try;;
|
---|
| 3043 | esac
|
---|
| 3044 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3045 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3046 | (eval "$ac_try") 2>&5
|
---|
| 3047 | ac_status=$?
|
---|
| 3048 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3049 | test $ac_status = 0; }; }; then
|
---|
| 3050 | cross_compiling=no
|
---|
| 3051 | else
|
---|
| 3052 | if test "$cross_compiling" = maybe; then
|
---|
| 3053 | cross_compiling=yes
|
---|
| 3054 | else
|
---|
| 3055 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 3056 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 3057 | as_fn_error "cannot run C compiled programs.
|
---|
| 3058 | If you meant to cross compile, use \`--host'.
|
---|
| 3059 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
| 3060 | fi
|
---|
| 3061 | fi
|
---|
| 3062 | fi
|
---|
| 3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
| 3064 | $as_echo "$cross_compiling" >&6; }
|
---|
| 3065 |
|
---|
| 3066 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
| 3067 | ac_clean_files=$ac_clean_files_save
|
---|
| 3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
| 3069 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
| 3070 | if test "${ac_cv_objext+set}" = set; then :
|
---|
| 3071 | $as_echo_n "(cached) " >&6
|
---|
[562] | 3072 | else
|
---|
[22378] | 3073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3074 | /* end confdefs.h. */
|
---|
| 3075 |
|
---|
| 3076 | int
|
---|
| 3077 | main ()
|
---|
| 3078 | {
|
---|
| 3079 |
|
---|
| 3080 | ;
|
---|
| 3081 | return 0;
|
---|
| 3082 | }
|
---|
| 3083 | _ACEOF
|
---|
| 3084 | rm -f conftest.o conftest.obj
|
---|
[22378] | 3085 | if { { ac_try="$ac_compile"
|
---|
| 3086 | case "(($ac_try" in
|
---|
| 3087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3088 | *) ac_try_echo=$ac_try;;
|
---|
| 3089 | esac
|
---|
| 3090 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3091 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3092 | (eval "$ac_compile") 2>&5
|
---|
[8756] | 3093 | ac_status=$?
|
---|
[22378] | 3094 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3095 | test $ac_status = 0; }; then :
|
---|
| 3096 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
| 3097 | test -f "$ac_file" || continue;
|
---|
[8756] | 3098 | case $ac_file in
|
---|
[22378] | 3099 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
[8756] | 3100 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 3101 | break;;
|
---|
| 3102 | esac
|
---|
| 3103 | done
|
---|
[562] | 3104 | else
|
---|
[22378] | 3105 | $as_echo "$as_me: failed program was:" >&5
|
---|
[8756] | 3106 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3107 |
|
---|
[22378] | 3108 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 3109 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 3110 | as_fn_error "cannot compute suffix of object files: cannot compile
|
---|
| 3111 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[562] | 3112 | fi
|
---|
[8756] | 3113 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[562] | 3114 | fi
|
---|
[22378] | 3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
| 3116 | $as_echo "$ac_cv_objext" >&6; }
|
---|
[8756] | 3117 | OBJEXT=$ac_cv_objext
|
---|
| 3118 | ac_objext=$OBJEXT
|
---|
[22378] | 3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
| 3120 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
| 3121 | if test "${ac_cv_c_compiler_gnu+set}" = set; then :
|
---|
| 3122 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3123 | else
|
---|
[22378] | 3124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3125 | /* end confdefs.h. */
|
---|
[562] | 3126 |
|
---|
[8756] | 3127 | int
|
---|
| 3128 | main ()
|
---|
| 3129 | {
|
---|
| 3130 | #ifndef __GNUC__
|
---|
| 3131 | choke me
|
---|
| 3132 | #endif
|
---|
[562] | 3133 |
|
---|
[8756] | 3134 | ;
|
---|
| 3135 | return 0;
|
---|
| 3136 | }
|
---|
| 3137 | _ACEOF
|
---|
[22378] | 3138 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[8756] | 3139 | ac_compiler_gnu=yes
|
---|
[562] | 3140 | else
|
---|
[22378] | 3141 | ac_compiler_gnu=no
|
---|
[562] | 3142 | fi
|
---|
[22378] | 3143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3144 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
[562] | 3145 |
|
---|
[8756] | 3146 | fi
|
---|
[22378] | 3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 3148 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
| 3149 | if test $ac_compiler_gnu = yes; then
|
---|
| 3150 | GCC=yes
|
---|
| 3151 | else
|
---|
| 3152 | GCC=
|
---|
| 3153 | fi
|
---|
[8756] | 3154 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 3155 | ac_save_CFLAGS=$CFLAGS
|
---|
[22378] | 3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
| 3157 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
| 3158 | if test "${ac_cv_prog_cc_g+set}" = set; then :
|
---|
| 3159 | $as_echo_n "(cached) " >&6
|
---|
[562] | 3160 | else
|
---|
[22378] | 3161 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
| 3162 | ac_c_werror_flag=yes
|
---|
| 3163 | ac_cv_prog_cc_g=no
|
---|
| 3164 | CFLAGS="-g"
|
---|
| 3165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3166 | /* end confdefs.h. */
|
---|
| 3167 |
|
---|
| 3168 | int
|
---|
| 3169 | main ()
|
---|
| 3170 | {
|
---|
| 3171 |
|
---|
| 3172 | ;
|
---|
| 3173 | return 0;
|
---|
| 3174 | }
|
---|
| 3175 | _ACEOF
|
---|
[22378] | 3176 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[562] | 3177 | ac_cv_prog_cc_g=yes
|
---|
| 3178 | else
|
---|
[22378] | 3179 | CFLAGS=""
|
---|
| 3180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3181 | /* end confdefs.h. */
|
---|
[8200] | 3182 |
|
---|
[22378] | 3183 | int
|
---|
| 3184 | main ()
|
---|
| 3185 | {
|
---|
| 3186 |
|
---|
| 3187 | ;
|
---|
| 3188 | return 0;
|
---|
| 3189 | }
|
---|
| 3190 | _ACEOF
|
---|
| 3191 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3192 |
|
---|
| 3193 | else
|
---|
| 3194 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 3195 | CFLAGS="-g"
|
---|
| 3196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3197 | /* end confdefs.h. */
|
---|
| 3198 |
|
---|
| 3199 | int
|
---|
| 3200 | main ()
|
---|
| 3201 | {
|
---|
| 3202 |
|
---|
| 3203 | ;
|
---|
| 3204 | return 0;
|
---|
| 3205 | }
|
---|
| 3206 | _ACEOF
|
---|
| 3207 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3208 | ac_cv_prog_cc_g=yes
|
---|
[562] | 3209 | fi
|
---|
[22378] | 3210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3211 | fi
|
---|
[22378] | 3212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3213 | fi
|
---|
| 3214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3215 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
| 3216 | fi
|
---|
| 3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
| 3218 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
[562] | 3219 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8756] | 3220 | CFLAGS=$ac_save_CFLAGS
|
---|
[562] | 3221 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 3222 | if test "$GCC" = yes; then
|
---|
| 3223 | CFLAGS="-g -O2"
|
---|
| 3224 | else
|
---|
| 3225 | CFLAGS="-g"
|
---|
| 3226 | fi
|
---|
| 3227 | else
|
---|
| 3228 | if test "$GCC" = yes; then
|
---|
| 3229 | CFLAGS="-O2"
|
---|
| 3230 | else
|
---|
| 3231 | CFLAGS=
|
---|
| 3232 | fi
|
---|
| 3233 | fi
|
---|
[22378] | 3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
| 3235 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
| 3236 | if test "${ac_cv_prog_cc_c89+set}" = set; then :
|
---|
| 3237 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3238 | else
|
---|
[22378] | 3239 | ac_cv_prog_cc_c89=no
|
---|
[8756] | 3240 | ac_save_CC=$CC
|
---|
[22378] | 3241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3242 | /* end confdefs.h. */
|
---|
| 3243 | #include <stdarg.h>
|
---|
| 3244 | #include <stdio.h>
|
---|
| 3245 | #include <sys/types.h>
|
---|
| 3246 | #include <sys/stat.h>
|
---|
| 3247 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 3248 | struct buf { int x; };
|
---|
| 3249 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 3250 | static char *e (p, i)
|
---|
| 3251 | char **p;
|
---|
| 3252 | int i;
|
---|
| 3253 | {
|
---|
| 3254 | return p[i];
|
---|
| 3255 | }
|
---|
| 3256 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 3257 | {
|
---|
| 3258 | char *s;
|
---|
| 3259 | va_list v;
|
---|
| 3260 | va_start (v,p);
|
---|
| 3261 | s = g (p, va_arg (v,int));
|
---|
| 3262 | va_end (v);
|
---|
| 3263 | return s;
|
---|
| 3264 | }
|
---|
[8200] | 3265 |
|
---|
[8756] | 3266 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 3267 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 3268 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[22378] | 3269 | as 'x'. The following induces an error, until -std is added to get
|
---|
[8756] | 3270 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 3271 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[22378] | 3272 | that's true only with -std. */
|
---|
[8756] | 3273 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 3274 |
|
---|
[22378] | 3275 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
| 3276 | inside strings and character constants. */
|
---|
| 3277 | #define FOO(x) 'x'
|
---|
| 3278 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
| 3279 |
|
---|
[8756] | 3280 | int test (int i, double x);
|
---|
| 3281 | struct s1 {int (*f) (int a);};
|
---|
| 3282 | struct s2 {int (*f) (double a);};
|
---|
| 3283 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 3284 | int argc;
|
---|
| 3285 | char **argv;
|
---|
| 3286 | int
|
---|
| 3287 | main ()
|
---|
| 3288 | {
|
---|
| 3289 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 3290 | ;
|
---|
| 3291 | return 0;
|
---|
| 3292 | }
|
---|
| 3293 | _ACEOF
|
---|
[22378] | 3294 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
| 3295 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[562] | 3296 | do
|
---|
[8756] | 3297 | CC="$ac_save_CC $ac_arg"
|
---|
[22378] | 3298 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 3299 | ac_cv_prog_cc_c89=$ac_arg
|
---|
[562] | 3300 | fi
|
---|
[22378] | 3301 | rm -f core conftest.err conftest.$ac_objext
|
---|
| 3302 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
[8756] | 3303 | done
|
---|
[22378] | 3304 | rm -f conftest.$ac_ext
|
---|
[8756] | 3305 | CC=$ac_save_CC
|
---|
| 3306 |
|
---|
[562] | 3307 | fi
|
---|
[22378] | 3308 | # AC_CACHE_VAL
|
---|
| 3309 | case "x$ac_cv_prog_cc_c89" in
|
---|
| 3310 | x)
|
---|
| 3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
| 3312 | $as_echo "none needed" >&6; } ;;
|
---|
| 3313 | xno)
|
---|
| 3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
| 3315 | $as_echo "unsupported" >&6; } ;;
|
---|
[8756] | 3316 | *)
|
---|
[22378] | 3317 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
| 3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
| 3319 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
[8756] | 3320 | esac
|
---|
[22378] | 3321 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
[8756] | 3322 |
|
---|
[20853] | 3323 | fi
|
---|
| 3324 |
|
---|
[8756] | 3325 | ac_ext=c
|
---|
| 3326 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[8200] | 3330 |
|
---|
[22378] | 3331 | ac_ext=cpp
|
---|
[8200] | 3332 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 3333 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3334 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3335 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[22378] | 3336 | if test -z "$CXX"; then
|
---|
| 3337 | if test -n "$CCC"; then
|
---|
| 3338 | CXX=$CCC
|
---|
| 3339 | else
|
---|
| 3340 | if test -n "$ac_tool_prefix"; then
|
---|
| 3341 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[8756] | 3342 | do
|
---|
| 3343 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 3344 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[22378] | 3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3346 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3347 | if test "${ac_cv_prog_CXX+set}" = set; then :
|
---|
| 3348 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3349 | else
|
---|
| 3350 | if test -n "$CXX"; then
|
---|
| 3351 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 3352 | else
|
---|
| 3353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3354 | for as_dir in $PATH
|
---|
| 3355 | do
|
---|
| 3356 | IFS=$as_save_IFS
|
---|
| 3357 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3358 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3359 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3360 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
[22378] | 3361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3362 | break 2
|
---|
| 3363 | fi
|
---|
| 3364 | done
|
---|
[22378] | 3365 | done
|
---|
| 3366 | IFS=$as_save_IFS
|
---|
[8200] | 3367 |
|
---|
[8756] | 3368 | fi
|
---|
| 3369 | fi
|
---|
| 3370 | CXX=$ac_cv_prog_CXX
|
---|
| 3371 | if test -n "$CXX"; then
|
---|
[22378] | 3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
|
---|
| 3373 | $as_echo "$CXX" >&6; }
|
---|
[8756] | 3374 | else
|
---|
[22378] | 3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3376 | $as_echo "no" >&6; }
|
---|
[8756] | 3377 | fi
|
---|
[8200] | 3378 |
|
---|
[22378] | 3379 |
|
---|
[8756] | 3380 | test -n "$CXX" && break
|
---|
| 3381 | done
|
---|
| 3382 | fi
|
---|
| 3383 | if test -z "$CXX"; then
|
---|
| 3384 | ac_ct_CXX=$CXX
|
---|
[22378] | 3385 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
|
---|
[8756] | 3386 | do
|
---|
| 3387 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3388 | set dummy $ac_prog; ac_word=$2
|
---|
[22378] | 3389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3390 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3391 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
|
---|
| 3392 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3393 | else
|
---|
| 3394 | if test -n "$ac_ct_CXX"; then
|
---|
| 3395 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 3396 | else
|
---|
| 3397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3398 | for as_dir in $PATH
|
---|
| 3399 | do
|
---|
| 3400 | IFS=$as_save_IFS
|
---|
| 3401 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3402 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3404 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
[22378] | 3405 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3406 | break 2
|
---|
| 3407 | fi
|
---|
| 3408 | done
|
---|
[22378] | 3409 | done
|
---|
| 3410 | IFS=$as_save_IFS
|
---|
[8200] | 3411 |
|
---|
[8756] | 3412 | fi
|
---|
| 3413 | fi
|
---|
| 3414 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 3415 | if test -n "$ac_ct_CXX"; then
|
---|
[22378] | 3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
|
---|
| 3417 | $as_echo "$ac_ct_CXX" >&6; }
|
---|
[3631] | 3418 | else
|
---|
[22378] | 3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3420 | $as_echo "no" >&6; }
|
---|
[3631] | 3421 | fi
|
---|
[562] | 3422 |
|
---|
[22378] | 3423 |
|
---|
[8756] | 3424 | test -n "$ac_ct_CXX" && break
|
---|
| 3425 | done
|
---|
| 3426 |
|
---|
[22378] | 3427 | if test "x$ac_ct_CXX" = x; then
|
---|
| 3428 | CXX="g++"
|
---|
| 3429 | else
|
---|
| 3430 | case $cross_compiling:$ac_tool_warned in
|
---|
| 3431 | yes:)
|
---|
| 3432 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 3433 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 3434 | ac_tool_warned=yes ;;
|
---|
| 3435 | esac
|
---|
| 3436 | CXX=$ac_ct_CXX
|
---|
| 3437 | fi
|
---|
[3631] | 3438 | fi
|
---|
[562] | 3439 |
|
---|
[22378] | 3440 | fi
|
---|
| 3441 | fi
|
---|
[8756] | 3442 | # Provide some information about the compiler.
|
---|
[22378] | 3443 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
|
---|
| 3444 | set X $ac_compile
|
---|
| 3445 | ac_compiler=$2
|
---|
| 3446 | for ac_option in --version -v -V -qversion; do
|
---|
| 3447 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
| 3448 | case "(($ac_try" in
|
---|
| 3449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
| 3450 | *) ac_try_echo=$ac_try;;
|
---|
| 3451 | esac
|
---|
| 3452 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
| 3453 | $as_echo "$ac_try_echo"; } >&5
|
---|
| 3454 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
[8756] | 3455 | ac_status=$?
|
---|
[22378] | 3456 | if test -s conftest.err; then
|
---|
| 3457 | sed '10a\
|
---|
| 3458 | ... rest of stderr output deleted ...
|
---|
| 3459 | 10q' conftest.err >conftest.er1
|
---|
| 3460 | cat conftest.er1 >&5
|
---|
| 3461 | fi
|
---|
| 3462 | rm -f conftest.er1 conftest.err
|
---|
| 3463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
| 3464 | test $ac_status = 0; }
|
---|
| 3465 | done
|
---|
[8756] | 3466 |
|
---|
[22378] | 3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 3468 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
|
---|
| 3469 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
|
---|
| 3470 | $as_echo_n "(cached) " >&6
|
---|
[3631] | 3471 | else
|
---|
[22378] | 3472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3473 | /* end confdefs.h. */
|
---|
| 3474 |
|
---|
| 3475 | int
|
---|
| 3476 | main ()
|
---|
| 3477 | {
|
---|
| 3478 | #ifndef __GNUC__
|
---|
| 3479 | choke me
|
---|
[3631] | 3480 | #endif
|
---|
[8756] | 3481 |
|
---|
| 3482 | ;
|
---|
| 3483 | return 0;
|
---|
| 3484 | }
|
---|
| 3485 | _ACEOF
|
---|
[22378] | 3486 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[8756] | 3487 | ac_compiler_gnu=yes
|
---|
[8200] | 3488 | else
|
---|
[22378] | 3489 | ac_compiler_gnu=no
|
---|
[8200] | 3490 | fi
|
---|
[22378] | 3491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3492 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 3493 |
|
---|
[8200] | 3494 | fi
|
---|
[22378] | 3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 3496 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
|
---|
| 3497 | if test $ac_compiler_gnu = yes; then
|
---|
| 3498 | GXX=yes
|
---|
| 3499 | else
|
---|
| 3500 | GXX=
|
---|
| 3501 | fi
|
---|
[8756] | 3502 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 3503 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[22378] | 3504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
|
---|
| 3505 | $as_echo_n "checking whether $CXX accepts -g... " >&6; }
|
---|
| 3506 | if test "${ac_cv_prog_cxx_g+set}" = set; then :
|
---|
| 3507 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3508 | else
|
---|
[22378] | 3509 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag
|
---|
| 3510 | ac_cxx_werror_flag=yes
|
---|
| 3511 | ac_cv_prog_cxx_g=no
|
---|
| 3512 | CXXFLAGS="-g"
|
---|
| 3513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 3514 | /* end confdefs.h. */
|
---|
[3631] | 3515 |
|
---|
[8756] | 3516 | int
|
---|
| 3517 | main ()
|
---|
| 3518 | {
|
---|
[8200] | 3519 |
|
---|
[8756] | 3520 | ;
|
---|
| 3521 | return 0;
|
---|
| 3522 | }
|
---|
| 3523 | _ACEOF
|
---|
[22378] | 3524 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[562] | 3525 | ac_cv_prog_cxx_g=yes
|
---|
| 3526 | else
|
---|
[22378] | 3527 | CXXFLAGS=""
|
---|
| 3528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3529 | /* end confdefs.h. */
|
---|
[8200] | 3530 |
|
---|
[8756] | 3531 | int
|
---|
| 3532 | main ()
|
---|
| 3533 | {
|
---|
[22378] | 3534 |
|
---|
[8756] | 3535 | ;
|
---|
| 3536 | return 0;
|
---|
| 3537 | }
|
---|
| 3538 | _ACEOF
|
---|
[22378] | 3539 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 3540 |
|
---|
[8756] | 3541 | else
|
---|
[22378] | 3542 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3543 | CXXFLAGS="-g"
|
---|
| 3544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 3545 | /* end confdefs.h. */
|
---|
[3063] | 3546 |
|
---|
[8756] | 3547 | int
|
---|
| 3548 | main ()
|
---|
| 3549 | {
|
---|
[22378] | 3550 |
|
---|
[8756] | 3551 | ;
|
---|
| 3552 | return 0;
|
---|
| 3553 | }
|
---|
| 3554 | _ACEOF
|
---|
[22378] | 3555 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 3556 | ac_cv_prog_cxx_g=yes
|
---|
| 3557 | fi
|
---|
| 3558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3559 | fi
|
---|
| 3560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3561 | fi
|
---|
| 3562 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3563 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag
|
---|
| 3564 | fi
|
---|
| 3565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 3566 | $as_echo "$ac_cv_prog_cxx_g" >&6; }
|
---|
| 3567 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 3568 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 3569 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 3570 | if test "$GXX" = yes; then
|
---|
| 3571 | CXXFLAGS="-g -O2"
|
---|
| 3572 | else
|
---|
| 3573 | CXXFLAGS="-g"
|
---|
| 3574 | fi
|
---|
[8756] | 3575 | else
|
---|
[22378] | 3576 | if test "$GXX" = yes; then
|
---|
| 3577 | CXXFLAGS="-O2"
|
---|
| 3578 | else
|
---|
| 3579 | CXXFLAGS=
|
---|
| 3580 | fi
|
---|
[8756] | 3581 | fi
|
---|
| 3582 | ac_ext=c
|
---|
| 3583 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3587 |
|
---|
| 3588 | for ac_prog in gawk mawk nawk awk
|
---|
[3063] | 3589 | do
|
---|
[8756] | 3590 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 3591 | set dummy $ac_prog; ac_word=$2
|
---|
[22378] | 3592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3593 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3594 | if test "${ac_cv_prog_AWK+set}" = set; then :
|
---|
| 3595 | $as_echo_n "(cached) " >&6
|
---|
[687] | 3596 | else
|
---|
| 3597 | if test -n "$AWK"; then
|
---|
| 3598 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 3599 | else
|
---|
[8756] | 3600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3601 | for as_dir in $PATH
|
---|
| 3602 | do
|
---|
| 3603 | IFS=$as_save_IFS
|
---|
| 3604 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3605 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3607 | ac_cv_prog_AWK="$ac_prog"
|
---|
[22378] | 3608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3609 | break 2
|
---|
| 3610 | fi
|
---|
| 3611 | done
|
---|
[22378] | 3612 | done
|
---|
| 3613 | IFS=$as_save_IFS
|
---|
[8756] | 3614 |
|
---|
[687] | 3615 | fi
|
---|
| 3616 | fi
|
---|
[8756] | 3617 | AWK=$ac_cv_prog_AWK
|
---|
[687] | 3618 | if test -n "$AWK"; then
|
---|
[22378] | 3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
| 3620 | $as_echo "$AWK" >&6; }
|
---|
[687] | 3621 | else
|
---|
[22378] | 3622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3623 | $as_echo "no" >&6; }
|
---|
[687] | 3624 | fi
|
---|
| 3625 |
|
---|
[22378] | 3626 |
|
---|
[8756] | 3627 | test -n "$AWK" && break
|
---|
[687] | 3628 | done
|
---|
| 3629 |
|
---|
| 3630 | for ac_prog in 'bison -y' byacc
|
---|
| 3631 | do
|
---|
[8756] | 3632 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 3633 | set dummy $ac_prog; ac_word=$2
|
---|
[22378] | 3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3635 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3636 | if test "${ac_cv_prog_YACC+set}" = set; then :
|
---|
| 3637 | $as_echo_n "(cached) " >&6
|
---|
[687] | 3638 | else
|
---|
| 3639 | if test -n "$YACC"; then
|
---|
| 3640 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 3641 | else
|
---|
[8756] | 3642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3643 | for as_dir in $PATH
|
---|
| 3644 | do
|
---|
| 3645 | IFS=$as_save_IFS
|
---|
| 3646 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3647 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3649 | ac_cv_prog_YACC="$ac_prog"
|
---|
[22378] | 3650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3651 | break 2
|
---|
| 3652 | fi
|
---|
| 3653 | done
|
---|
[22378] | 3654 | done
|
---|
| 3655 | IFS=$as_save_IFS
|
---|
[8756] | 3656 |
|
---|
[687] | 3657 | fi
|
---|
| 3658 | fi
|
---|
[8756] | 3659 | YACC=$ac_cv_prog_YACC
|
---|
[687] | 3660 | if test -n "$YACC"; then
|
---|
[22378] | 3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
|
---|
| 3662 | $as_echo "$YACC" >&6; }
|
---|
[687] | 3663 | else
|
---|
[22378] | 3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3665 | $as_echo "no" >&6; }
|
---|
[687] | 3666 | fi
|
---|
| 3667 |
|
---|
[22378] | 3668 |
|
---|
[8756] | 3669 | test -n "$YACC" && break
|
---|
[687] | 3670 | done
|
---|
| 3671 | test -n "$YACC" || YACC="yacc"
|
---|
| 3672 |
|
---|
[703] | 3673 | ac_aux_dir=
|
---|
[22378] | 3674 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
| 3675 | for ac_t in install-sh install.sh shtool; do
|
---|
| 3676 | if test -f "$ac_dir/$ac_t"; then
|
---|
| 3677 | ac_aux_dir=$ac_dir
|
---|
| 3678 | ac_install_sh="$ac_aux_dir/$ac_t -c"
|
---|
| 3679 | break 2
|
---|
| 3680 | fi
|
---|
| 3681 | done
|
---|
[703] | 3682 | done
|
---|
| 3683 | if test -z "$ac_aux_dir"; then
|
---|
[22378] | 3684 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
[703] | 3685 | fi
|
---|
| 3686 |
|
---|
[22378] | 3687 | # These three variables are undocumented and unsupported,
|
---|
| 3688 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
| 3689 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
| 3690 | # whose full name contains unusual characters.
|
---|
| 3691 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
| 3692 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
| 3693 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
| 3694 |
|
---|
| 3695 |
|
---|
[8756] | 3696 | # Make sure we can run config.sub.
|
---|
[22378] | 3697 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
| 3698 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
[2279] | 3699 |
|
---|
[22378] | 3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
| 3701 | $as_echo_n "checking build system type... " >&6; }
|
---|
| 3702 | if test "${ac_cv_build+set}" = set; then :
|
---|
| 3703 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3704 | else
|
---|
[22378] | 3705 | ac_build_alias=$build_alias
|
---|
| 3706 | test "x$ac_build_alias" = x &&
|
---|
| 3707 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
| 3708 | test "x$ac_build_alias" = x &&
|
---|
| 3709 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
| 3710 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
| 3711 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
[2279] | 3712 |
|
---|
| 3713 | fi
|
---|
[22378] | 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
| 3715 | $as_echo "$ac_cv_build" >&6; }
|
---|
| 3716 | case $ac_cv_build in
|
---|
| 3717 | *-*-*) ;;
|
---|
| 3718 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
|
---|
| 3719 | esac
|
---|
[8756] | 3720 | build=$ac_cv_build
|
---|
[22378] | 3721 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3722 | set x $ac_cv_build
|
---|
| 3723 | shift
|
---|
| 3724 | build_cpu=$1
|
---|
| 3725 | build_vendor=$2
|
---|
| 3726 | shift; shift
|
---|
| 3727 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3728 | # except with old shells:
|
---|
| 3729 | build_os=$*
|
---|
| 3730 | IFS=$ac_save_IFS
|
---|
| 3731 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
[2279] | 3732 |
|
---|
| 3733 |
|
---|
[22378] | 3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
| 3735 | $as_echo_n "checking host system type... " >&6; }
|
---|
| 3736 | if test "${ac_cv_host+set}" = set; then :
|
---|
| 3737 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3738 | else
|
---|
[22378] | 3739 | if test "x$host_alias" = x; then
|
---|
| 3740 | ac_cv_host=$ac_cv_build
|
---|
| 3741 | else
|
---|
| 3742 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
| 3743 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
| 3744 | fi
|
---|
[2279] | 3745 |
|
---|
[8756] | 3746 | fi
|
---|
[22378] | 3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
| 3748 | $as_echo "$ac_cv_host" >&6; }
|
---|
| 3749 | case $ac_cv_host in
|
---|
| 3750 | *-*-*) ;;
|
---|
| 3751 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
|
---|
| 3752 | esac
|
---|
[8756] | 3753 | host=$ac_cv_host
|
---|
[22378] | 3754 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3755 | set x $ac_cv_host
|
---|
| 3756 | shift
|
---|
| 3757 | host_cpu=$1
|
---|
| 3758 | host_vendor=$2
|
---|
| 3759 | shift; shift
|
---|
| 3760 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3761 | # except with old shells:
|
---|
| 3762 | host_os=$*
|
---|
| 3763 | IFS=$ac_save_IFS
|
---|
| 3764 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
[8200] | 3765 |
|
---|
| 3766 |
|
---|
[22378] | 3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
|
---|
| 3768 | $as_echo_n "checking target system type... " >&6; }
|
---|
| 3769 | if test "${ac_cv_target+set}" = set; then :
|
---|
| 3770 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3771 | else
|
---|
[22378] | 3772 | if test "x$target_alias" = x; then
|
---|
| 3773 | ac_cv_target=$ac_cv_host
|
---|
| 3774 | else
|
---|
| 3775 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
|
---|
| 3776 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
|
---|
| 3777 | fi
|
---|
[8200] | 3778 |
|
---|
[8756] | 3779 | fi
|
---|
[22378] | 3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
|
---|
| 3781 | $as_echo "$ac_cv_target" >&6; }
|
---|
| 3782 | case $ac_cv_target in
|
---|
| 3783 | *-*-*) ;;
|
---|
| 3784 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
|
---|
| 3785 | esac
|
---|
[8756] | 3786 | target=$ac_cv_target
|
---|
[22378] | 3787 | ac_save_IFS=$IFS; IFS='-'
|
---|
| 3788 | set x $ac_cv_target
|
---|
| 3789 | shift
|
---|
| 3790 | target_cpu=$1
|
---|
| 3791 | target_vendor=$2
|
---|
| 3792 | shift; shift
|
---|
| 3793 | # Remember, the first character of IFS is used to create $*,
|
---|
| 3794 | # except with old shells:
|
---|
| 3795 | target_os=$*
|
---|
| 3796 | IFS=$ac_save_IFS
|
---|
| 3797 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
|
---|
[8200] | 3798 |
|
---|
| 3799 |
|
---|
[8756] | 3800 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 3801 | # will get canonicalized.
|
---|
| 3802 | test -n "$target_alias" &&
|
---|
[2279] | 3803 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 3804 | NONENONEs,x,x, &&
|
---|
| 3805 | program_prefix=${target_alias}-
|
---|
[22378] | 3806 |
|
---|
[703] | 3807 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3808 | # so one script is as good as another. But avoid the broken or
|
---|
| 3809 | # incompatible versions:
|
---|
| 3810 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3811 | # SunOS /usr/etc/install
|
---|
| 3812 | # IRIX /sbin/install
|
---|
| 3813 | # AIX /bin/install
|
---|
[8756] | 3814 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[703] | 3815 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3816 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3817 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[8756] | 3818 | # OS/2's system install, which has a completely different semantic
|
---|
[703] | 3819 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[22378] | 3820 | # Reject install programs that cannot install multiple files.
|
---|
| 3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
| 3822 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
[703] | 3823 | if test -z "$INSTALL"; then
|
---|
[22378] | 3824 | if test "${ac_cv_path_install+set}" = set; then :
|
---|
| 3825 | $as_echo_n "(cached) " >&6
|
---|
[703] | 3826 | else
|
---|
[8756] | 3827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3828 | for as_dir in $PATH
|
---|
| 3829 | do
|
---|
| 3830 | IFS=$as_save_IFS
|
---|
| 3831 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3832 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3833 | case $as_dir/ in #((
|
---|
| 3834 | ./ | .// | /[cC]/* | \
|
---|
[8756] | 3835 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
[22378] | 3836 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
[8756] | 3837 | /usr/ucb/* ) ;;
|
---|
| 3838 | *)
|
---|
| 3839 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3840 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3841 | # by default.
|
---|
| 3842 | for ac_prog in ginstall scoinst install; do
|
---|
| 3843 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[22378] | 3844 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
[703] | 3845 | if test $ac_prog = install &&
|
---|
[8756] | 3846 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[703] | 3847 | # AIX install. It has an incompatible calling convention.
|
---|
| 3848 | :
|
---|
[8756] | 3849 | elif test $ac_prog = install &&
|
---|
| 3850 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3851 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3852 | :
|
---|
[703] | 3853 | else
|
---|
[22378] | 3854 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3855 | echo one > conftest.one
|
---|
| 3856 | echo two > conftest.two
|
---|
| 3857 | mkdir conftest.dir
|
---|
| 3858 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
| 3859 | test -s conftest.one && test -s conftest.two &&
|
---|
| 3860 | test -s conftest.dir/conftest.one &&
|
---|
| 3861 | test -s conftest.dir/conftest.two
|
---|
| 3862 | then
|
---|
| 3863 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3864 | break 3
|
---|
| 3865 | fi
|
---|
[703] | 3866 | fi
|
---|
| 3867 | fi
|
---|
| 3868 | done
|
---|
[8756] | 3869 | done
|
---|
| 3870 | ;;
|
---|
| 3871 | esac
|
---|
[703] | 3872 |
|
---|
[22378] | 3873 | done
|
---|
| 3874 | IFS=$as_save_IFS
|
---|
[8756] | 3875 |
|
---|
[22378] | 3876 | rm -rf conftest.one conftest.two conftest.dir
|
---|
| 3877 |
|
---|
[703] | 3878 | fi
|
---|
| 3879 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8756] | 3880 | INSTALL=$ac_cv_path_install
|
---|
[703] | 3881 | else
|
---|
[22378] | 3882 | # As a last resort, use the slow shell script. Don't cache a
|
---|
| 3883 | # value for INSTALL within a source directory, because that will
|
---|
[703] | 3884 | # break other packages using the cache if that directory is
|
---|
[22378] | 3885 | # removed, or if the value is a relative name.
|
---|
[8756] | 3886 | INSTALL=$ac_install_sh
|
---|
[703] | 3887 | fi
|
---|
| 3888 | fi
|
---|
[22378] | 3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
| 3890 | $as_echo "$INSTALL" >&6; }
|
---|
[703] | 3891 |
|
---|
| 3892 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3893 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3894 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3895 |
|
---|
[8756] | 3896 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[703] | 3897 |
|
---|
| 3898 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3899 |
|
---|
[22378] | 3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
| 3901 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
[8756] | 3902 | LN_S=$as_ln_s
|
---|
| 3903 | if test "$LN_S" = "ln -s"; then
|
---|
[22378] | 3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 3905 | $as_echo "yes" >&6; }
|
---|
[562] | 3906 | else
|
---|
[22378] | 3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
| 3908 | $as_echo "no, using $LN_S" >&6; }
|
---|
[562] | 3909 | fi
|
---|
| 3910 |
|
---|
[22378] | 3911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3912 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
| 3913 | set x ${MAKE-make}
|
---|
| 3914 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
| 3915 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
| 3916 | $as_echo_n "(cached) " >&6
|
---|
[562] | 3917 | else
|
---|
[8756] | 3918 | cat >conftest.make <<\_ACEOF
|
---|
[22378] | 3919 | SHELL = /bin/sh
|
---|
[562] | 3920 | all:
|
---|
[22378] | 3921 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
[8756] | 3922 | _ACEOF
|
---|
[562] | 3923 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[22378] | 3924 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
| 3925 | *@@@%%%=?*=@@@%%%*)
|
---|
| 3926 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
| 3927 | *)
|
---|
| 3928 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
| 3929 | esac
|
---|
[8756] | 3930 | rm -f conftest.make
|
---|
[562] | 3931 | fi
|
---|
[22378] | 3932 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
| 3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 3934 | $as_echo "yes" >&6; }
|
---|
[562] | 3935 | SET_MAKE=
|
---|
| 3936 | else
|
---|
[22378] | 3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3938 | $as_echo "no" >&6; }
|
---|
[562] | 3939 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3940 | fi
|
---|
| 3941 |
|
---|
[8756] | 3942 | if test -n "$ac_tool_prefix"; then
|
---|
| 3943 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3944 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[22378] | 3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3946 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3947 | if test "${ac_cv_prog_RANLIB+set}" = set; then :
|
---|
| 3948 | $as_echo_n "(cached) " >&6
|
---|
[562] | 3949 | else
|
---|
| 3950 | if test -n "$RANLIB"; then
|
---|
| 3951 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3952 | else
|
---|
[8756] | 3953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3954 | for as_dir in $PATH
|
---|
| 3955 | do
|
---|
| 3956 | IFS=$as_save_IFS
|
---|
| 3957 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3958 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 3960 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
[22378] | 3961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3962 | break 2
|
---|
| 3963 | fi
|
---|
| 3964 | done
|
---|
[22378] | 3965 | done
|
---|
| 3966 | IFS=$as_save_IFS
|
---|
[8756] | 3967 |
|
---|
[562] | 3968 | fi
|
---|
| 3969 | fi
|
---|
[8756] | 3970 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[562] | 3971 | if test -n "$RANLIB"; then
|
---|
[22378] | 3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
| 3973 | $as_echo "$RANLIB" >&6; }
|
---|
[562] | 3974 | else
|
---|
[22378] | 3975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 3976 | $as_echo "no" >&6; }
|
---|
[562] | 3977 | fi
|
---|
| 3978 |
|
---|
[22378] | 3979 |
|
---|
[8756] | 3980 | fi
|
---|
| 3981 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3982 | ac_ct_RANLIB=$RANLIB
|
---|
| 3983 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3984 | set dummy ranlib; ac_word=$2
|
---|
[22378] | 3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
| 3986 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
| 3987 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
|
---|
| 3988 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 3989 | else
|
---|
| 3990 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3991 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3992 | else
|
---|
| 3993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3994 | for as_dir in $PATH
|
---|
| 3995 | do
|
---|
| 3996 | IFS=$as_save_IFS
|
---|
| 3997 | test -z "$as_dir" && as_dir=.
|
---|
[22378] | 3998 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
[8756] | 4000 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
[22378] | 4001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 4002 | break 2
|
---|
| 4003 | fi
|
---|
| 4004 | done
|
---|
[22378] | 4005 | done
|
---|
| 4006 | IFS=$as_save_IFS
|
---|
[562] | 4007 |
|
---|
[8756] | 4008 | fi
|
---|
| 4009 | fi
|
---|
| 4010 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 4011 | if test -n "$ac_ct_RANLIB"; then
|
---|
[22378] | 4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
| 4013 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
[8756] | 4014 | else
|
---|
[22378] | 4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4016 | $as_echo "no" >&6; }
|
---|
[8756] | 4017 | fi
|
---|
| 4018 |
|
---|
[22378] | 4019 | if test "x$ac_ct_RANLIB" = x; then
|
---|
| 4020 | RANLIB=":"
|
---|
| 4021 | else
|
---|
| 4022 | case $cross_compiling:$ac_tool_warned in
|
---|
| 4023 | yes:)
|
---|
| 4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
| 4025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
| 4026 | ac_tool_warned=yes ;;
|
---|
| 4027 | esac
|
---|
| 4028 | RANLIB=$ac_ct_RANLIB
|
---|
| 4029 | fi
|
---|
[8756] | 4030 | else
|
---|
| 4031 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 4032 | fi
|
---|
| 4033 |
|
---|
| 4034 |
|
---|
[22378] | 4035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
|
---|
| 4036 | $as_echo_n "checking to see if architecture is 64-bit... " >&6; }
|
---|
[15551] | 4037 | arch_64bit=no
|
---|
| 4038 | case "$host_cpu" in
|
---|
| 4039 | x86_64) arch_64bit=yes ;;
|
---|
| 4040 | esac
|
---|
| 4041 |
|
---|
| 4042 | if test "$arch_64bit" = yes; then
|
---|
[22378] | 4043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 4044 | $as_echo "yes" >&6; }
|
---|
[15551] | 4045 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
[22378] | 4046 | if test "$ENABLE_MG" = "1" -o "$ENABLE_MGPP" = "1" ; then
|
---|
| 4047 | COMPAT32BITFLAGS="-m32"
|
---|
| 4048 | fi
|
---|
[15551] | 4049 | fi
|
---|
| 4050 | else
|
---|
[22378] | 4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4052 | $as_echo "no" >&6; }
|
---|
[15551] | 4053 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 4054 | COMPAT32BITFLAGS=
|
---|
| 4055 | fi
|
---|
| 4056 | fi
|
---|
[21432] | 4057 |
|
---|
[15551] | 4058 | export COMPAT32BITFLAGS
|
---|
| 4059 |
|
---|
| 4060 |
|
---|
| 4061 |
|
---|
[2173] | 4062 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 4063 | if test $USE_CORBA = 1; then
|
---|
| 4064 |
|
---|
[2213] | 4065 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 4066 | #do something
|
---|
| 4067 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 4068 | else
|
---|
| 4069 | #build the micotest program
|
---|
| 4070 | MICO_INC= ""
|
---|
| 4071 | if test $MICO_DIR != yes; then
|
---|
| 4072 | MICO_INC="-I $MICO_DIR"
|
---|
| 4073 | fi
|
---|
| 4074 | fi
|
---|
| 4075 |
|
---|
| 4076 | #get MICO_VER value
|
---|
| 4077 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 4078 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 4079 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 4080 | sh -c "rm micotest"
|
---|
| 4081 | sh -c "rm micotest.o"
|
---|
| 4082 |
|
---|
| 4083 | #do test of MICO_VER
|
---|
| 4084 | if test MICO_VER != 0; then
|
---|
[22378] | 4085 | $as_echo "#define MICO_VER 1" >>confdefs.h
|
---|
[2173] | 4086 |
|
---|
[8200] | 4087 |
|
---|
[2173] | 4088 | fi
|
---|
| 4089 | #end USE_CORBA test
|
---|
| 4090 | fi
|
---|
| 4091 |
|
---|
[8756] | 4092 |
|
---|
| 4093 | ac_ext=c
|
---|
| 4094 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[22378] | 4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
| 4099 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
[687] | 4100 | # On Suns, sometimes $CPP names a directory.
|
---|
| 4101 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 4102 | CPP=
|
---|
| 4103 | fi
|
---|
| 4104 | if test -z "$CPP"; then
|
---|
[22378] | 4105 | if test "${ac_cv_prog_CPP+set}" = set; then :
|
---|
| 4106 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4107 | else
|
---|
[8756] | 4108 | # Double quotes because CPP needs to be expanded
|
---|
| 4109 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 4110 | do
|
---|
| 4111 | ac_preproc_ok=false
|
---|
| 4112 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4113 | do
|
---|
| 4114 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4115 | # with a fresh cross-compiler works.
|
---|
| 4116 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4117 | # <limits.h> exists even on freestanding compilers.
|
---|
[687] | 4118 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8756] | 4119 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[22378] | 4120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4121 | /* end confdefs.h. */
|
---|
| 4122 | #ifdef __STDC__
|
---|
| 4123 | # include <limits.h>
|
---|
| 4124 | #else
|
---|
| 4125 | # include <assert.h>
|
---|
| 4126 | #endif
|
---|
| 4127 | Syntax error
|
---|
| 4128 | _ACEOF
|
---|
[22378] | 4129 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4130 |
|
---|
[20853] | 4131 | else
|
---|
[8756] | 4132 | # Broken: fails on valid input.
|
---|
| 4133 | continue
|
---|
| 4134 | fi
|
---|
| 4135 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4136 |
|
---|
[22378] | 4137 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[8756] | 4138 | # can be detected and how.
|
---|
[22378] | 4139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4140 | /* end confdefs.h. */
|
---|
| 4141 | #include <ac_nonexistent.h>
|
---|
| 4142 | _ACEOF
|
---|
[22378] | 4143 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[8756] | 4144 | # Broken: success on invalid input.
|
---|
| 4145 | continue
|
---|
| 4146 | else
|
---|
| 4147 | # Passes both tests.
|
---|
| 4148 | ac_preproc_ok=:
|
---|
| 4149 | break
|
---|
| 4150 | fi
|
---|
| 4151 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4152 |
|
---|
| 4153 | done
|
---|
| 4154 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 4155 | rm -f conftest.err conftest.$ac_ext
|
---|
[22378] | 4156 | if $ac_preproc_ok; then :
|
---|
[8756] | 4157 | break
|
---|
| 4158 | fi
|
---|
| 4159 |
|
---|
| 4160 | done
|
---|
| 4161 | ac_cv_prog_CPP=$CPP
|
---|
| 4162 |
|
---|
| 4163 | fi
|
---|
| 4164 | CPP=$ac_cv_prog_CPP
|
---|
| 4165 | else
|
---|
| 4166 | ac_cv_prog_CPP=$CPP
|
---|
| 4167 | fi
|
---|
[22378] | 4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
| 4169 | $as_echo "$CPP" >&6; }
|
---|
[8756] | 4170 | ac_preproc_ok=false
|
---|
| 4171 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 4172 | do
|
---|
| 4173 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 4174 | # with a fresh cross-compiler works.
|
---|
| 4175 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 4176 | # <limits.h> exists even on freestanding compilers.
|
---|
| 4177 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 4178 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[22378] | 4179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4180 | /* end confdefs.h. */
|
---|
| 4181 | #ifdef __STDC__
|
---|
| 4182 | # include <limits.h>
|
---|
| 4183 | #else
|
---|
| 4184 | # include <assert.h>
|
---|
| 4185 | #endif
|
---|
| 4186 | Syntax error
|
---|
| 4187 | _ACEOF
|
---|
[22378] | 4188 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
| 4189 |
|
---|
[20853] | 4190 | else
|
---|
[8756] | 4191 | # Broken: fails on valid input.
|
---|
| 4192 | continue
|
---|
[687] | 4193 | fi
|
---|
[8756] | 4194 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4195 |
|
---|
[22378] | 4196 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
[8756] | 4197 | # can be detected and how.
|
---|
[22378] | 4198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4199 | /* end confdefs.h. */
|
---|
| 4200 | #include <ac_nonexistent.h>
|
---|
| 4201 | _ACEOF
|
---|
[22378] | 4202 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
[8756] | 4203 | # Broken: success on invalid input.
|
---|
| 4204 | continue
|
---|
| 4205 | else
|
---|
| 4206 | # Passes both tests.
|
---|
| 4207 | ac_preproc_ok=:
|
---|
| 4208 | break
|
---|
[687] | 4209 | fi
|
---|
[8756] | 4210 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4211 |
|
---|
| 4212 | done
|
---|
| 4213 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 4214 | rm -f conftest.err conftest.$ac_ext
|
---|
[22378] | 4215 | if $ac_preproc_ok; then :
|
---|
| 4216 |
|
---|
[8756] | 4217 | else
|
---|
[22378] | 4218 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
| 4219 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
| 4220 | as_fn_error "C preprocessor \"$CPP\" fails sanity check
|
---|
| 4221 | See \`config.log' for more details." "$LINENO" 5; }
|
---|
[8200] | 4222 | fi
|
---|
[8756] | 4223 |
|
---|
| 4224 | ac_ext=c
|
---|
| 4225 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4229 |
|
---|
| 4230 |
|
---|
[22378] | 4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
| 4232 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
| 4233 | if test "${ac_cv_path_GREP+set}" = set; then :
|
---|
| 4234 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4235 | else
|
---|
[22378] | 4236 | if test -z "$GREP"; then
|
---|
| 4237 | ac_path_GREP_found=false
|
---|
| 4238 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4240 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4241 | do
|
---|
| 4242 | IFS=$as_save_IFS
|
---|
| 4243 | test -z "$as_dir" && as_dir=.
|
---|
| 4244 | for ac_prog in grep ggrep; do
|
---|
| 4245 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4246 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4247 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
| 4248 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
| 4249 | # Check for GNU $ac_path_GREP
|
---|
| 4250 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
| 4251 | *GNU*)
|
---|
| 4252 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
| 4253 | *)
|
---|
| 4254 | ac_count=0
|
---|
| 4255 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4256 | while :
|
---|
| 4257 | do
|
---|
| 4258 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4259 | mv "conftest.tmp" "conftest.in"
|
---|
| 4260 | cp "conftest.in" "conftest.nl"
|
---|
| 4261 | $as_echo 'GREP' >> "conftest.nl"
|
---|
| 4262 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4263 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 4264 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
| 4265 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
| 4266 | # Best one so far, save it but keep looking for a better one
|
---|
| 4267 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
| 4268 | ac_path_GREP_max=$ac_count
|
---|
[8756] | 4269 | fi
|
---|
[22378] | 4270 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4271 | test $ac_count -gt 10 && break
|
---|
| 4272 | done
|
---|
| 4273 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4274 | esac
|
---|
[687] | 4275 |
|
---|
[22378] | 4276 | $ac_path_GREP_found && break 3
|
---|
| 4277 | done
|
---|
| 4278 | done
|
---|
| 4279 | done
|
---|
| 4280 | IFS=$as_save_IFS
|
---|
| 4281 | if test -z "$ac_cv_path_GREP"; then
|
---|
| 4282 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
| 4283 | fi
|
---|
[687] | 4284 | else
|
---|
[22378] | 4285 | ac_cv_path_GREP=$GREP
|
---|
[687] | 4286 | fi
|
---|
| 4287 |
|
---|
[22378] | 4288 | fi
|
---|
| 4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
| 4290 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
| 4291 | GREP="$ac_cv_path_GREP"
|
---|
[8200] | 4292 |
|
---|
[687] | 4293 |
|
---|
[22378] | 4294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
| 4295 | $as_echo_n "checking for egrep... " >&6; }
|
---|
| 4296 | if test "${ac_cv_path_EGREP+set}" = set; then :
|
---|
| 4297 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4298 | else
|
---|
[22378] | 4299 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
| 4300 | then ac_cv_path_EGREP="$GREP -E"
|
---|
| 4301 | else
|
---|
| 4302 | if test -z "$EGREP"; then
|
---|
| 4303 | ac_path_EGREP_found=false
|
---|
| 4304 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
| 4305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 4306 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
| 4307 | do
|
---|
| 4308 | IFS=$as_save_IFS
|
---|
| 4309 | test -z "$as_dir" && as_dir=.
|
---|
| 4310 | for ac_prog in egrep; do
|
---|
| 4311 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 4312 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
| 4313 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
| 4314 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
| 4315 | # Check for GNU $ac_path_EGREP
|
---|
| 4316 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
| 4317 | *GNU*)
|
---|
| 4318 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
| 4319 | *)
|
---|
| 4320 | ac_count=0
|
---|
| 4321 | $as_echo_n 0123456789 >"conftest.in"
|
---|
| 4322 | while :
|
---|
| 4323 | do
|
---|
| 4324 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
| 4325 | mv "conftest.tmp" "conftest.in"
|
---|
| 4326 | cp "conftest.in" "conftest.nl"
|
---|
| 4327 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
| 4328 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
| 4329 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
| 4330 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
| 4331 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
| 4332 | # Best one so far, save it but keep looking for a better one
|
---|
| 4333 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
| 4334 | ac_path_EGREP_max=$ac_count
|
---|
| 4335 | fi
|
---|
| 4336 | # 10*(2^10) chars as input seems more than enough
|
---|
| 4337 | test $ac_count -gt 10 && break
|
---|
| 4338 | done
|
---|
| 4339 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
| 4340 | esac
|
---|
[8756] | 4341 |
|
---|
[22378] | 4342 | $ac_path_EGREP_found && break 3
|
---|
| 4343 | done
|
---|
| 4344 | done
|
---|
| 4345 | done
|
---|
| 4346 | IFS=$as_save_IFS
|
---|
| 4347 | if test -z "$ac_cv_path_EGREP"; then
|
---|
| 4348 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
| 4349 | fi
|
---|
[687] | 4350 | else
|
---|
[22378] | 4351 | ac_cv_path_EGREP=$EGREP
|
---|
[8756] | 4352 | fi
|
---|
| 4353 |
|
---|
[22378] | 4354 | fi
|
---|
[8756] | 4355 | fi
|
---|
[22378] | 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
| 4357 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
| 4358 | EGREP="$ac_cv_path_EGREP"
|
---|
[8756] | 4359 |
|
---|
[22378] | 4360 |
|
---|
| 4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
| 4362 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
| 4363 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
| 4364 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4365 | else
|
---|
[22378] | 4366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4367 | /* end confdefs.h. */
|
---|
| 4368 | #include <stdlib.h>
|
---|
| 4369 | #include <stdarg.h>
|
---|
| 4370 | #include <string.h>
|
---|
| 4371 | #include <float.h>
|
---|
| 4372 |
|
---|
| 4373 | int
|
---|
| 4374 | main ()
|
---|
| 4375 | {
|
---|
| 4376 |
|
---|
| 4377 | ;
|
---|
| 4378 | return 0;
|
---|
| 4379 | }
|
---|
| 4380 | _ACEOF
|
---|
[22378] | 4381 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[8756] | 4382 | ac_cv_header_stdc=yes
|
---|
| 4383 | else
|
---|
[22378] | 4384 | ac_cv_header_stdc=no
|
---|
[687] | 4385 | fi
|
---|
[22378] | 4386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 4387 |
|
---|
| 4388 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4389 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[22378] | 4390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4391 | /* end confdefs.h. */
|
---|
| 4392 | #include <string.h>
|
---|
| 4393 |
|
---|
| 4394 | _ACEOF
|
---|
| 4395 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 4396 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 4397 |
|
---|
[8756] | 4398 | else
|
---|
| 4399 | ac_cv_header_stdc=no
|
---|
| 4400 | fi
|
---|
[8200] | 4401 | rm -f conftest*
|
---|
[8756] | 4402 |
|
---|
[687] | 4403 | fi
|
---|
[8756] | 4404 |
|
---|
| 4405 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4406 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[22378] | 4407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4408 | /* end confdefs.h. */
|
---|
| 4409 | #include <stdlib.h>
|
---|
| 4410 |
|
---|
| 4411 | _ACEOF
|
---|
| 4412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 4413 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 4414 |
|
---|
[8756] | 4415 | else
|
---|
| 4416 | ac_cv_header_stdc=no
|
---|
| 4417 | fi
|
---|
| 4418 | rm -f conftest*
|
---|
| 4419 |
|
---|
| 4420 | fi
|
---|
| 4421 |
|
---|
| 4422 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4423 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[22378] | 4424 | if test "$cross_compiling" = yes; then :
|
---|
[8756] | 4425 | :
|
---|
| 4426 | else
|
---|
[22378] | 4427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4428 | /* end confdefs.h. */
|
---|
| 4429 | #include <ctype.h>
|
---|
[22378] | 4430 | #include <stdlib.h>
|
---|
[8756] | 4431 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4432 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4433 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4434 | #else
|
---|
| 4435 | # define ISLOWER(c) \
|
---|
| 4436 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4437 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4438 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 4439 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4440 | #endif
|
---|
| 4441 |
|
---|
| 4442 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 4443 | int
|
---|
| 4444 | main ()
|
---|
| 4445 | {
|
---|
| 4446 | int i;
|
---|
| 4447 | for (i = 0; i < 256; i++)
|
---|
| 4448 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 4449 | || toupper (i) != TOUPPER (i))
|
---|
[22378] | 4450 | return 2;
|
---|
| 4451 | return 0;
|
---|
[8756] | 4452 | }
|
---|
| 4453 | _ACEOF
|
---|
[22378] | 4454 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 4455 |
|
---|
[8756] | 4456 | else
|
---|
[22378] | 4457 | ac_cv_header_stdc=no
|
---|
[8756] | 4458 | fi
|
---|
[22378] | 4459 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 4460 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[8756] | 4461 | fi
|
---|
[22378] | 4462 |
|
---|
[8756] | 4463 | fi
|
---|
| 4464 | fi
|
---|
[22378] | 4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
| 4466 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[8756] | 4467 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4468 |
|
---|
[22378] | 4469 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[8756] | 4470 |
|
---|
| 4471 | fi
|
---|
| 4472 |
|
---|
| 4473 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
[22378] | 4474 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 4475 | inttypes.h stdint.h unistd.h
|
---|
| 4476 | do :
|
---|
| 4477 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 4478 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
| 4479 | "
|
---|
| 4480 | eval as_val=\$$as_ac_Header
|
---|
| 4481 | if test "x$as_val" = x""yes; then :
|
---|
| 4482 | cat >>confdefs.h <<_ACEOF
|
---|
| 4483 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4484 | _ACEOF
|
---|
[8756] | 4485 |
|
---|
[22378] | 4486 | fi
|
---|
[8756] | 4487 |
|
---|
[22378] | 4488 | done
|
---|
[8756] | 4489 |
|
---|
| 4490 |
|
---|
| 4491 |
|
---|
[22378] | 4492 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
---|
| 4493 | if test "x$ac_cv_header_minix_config_h" = x""yes; then :
|
---|
| 4494 | MINIX=yes
|
---|
| 4495 | else
|
---|
| 4496 | MINIX=
|
---|
| 4497 | fi
|
---|
[8756] | 4498 |
|
---|
| 4499 |
|
---|
[22378] | 4500 | if test "$MINIX" = yes; then
|
---|
[8756] | 4501 |
|
---|
[22378] | 4502 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
---|
[8756] | 4503 |
|
---|
[22378] | 4504 |
|
---|
| 4505 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
---|
| 4506 |
|
---|
| 4507 |
|
---|
| 4508 | $as_echo "#define _MINIX 1" >>confdefs.h
|
---|
| 4509 |
|
---|
| 4510 | fi
|
---|
| 4511 |
|
---|
| 4512 |
|
---|
| 4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
---|
| 4514 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
---|
| 4515 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
|
---|
| 4516 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 4517 | else
|
---|
[22378] | 4518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4519 | /* end confdefs.h. */
|
---|
| 4520 |
|
---|
[22378] | 4521 | # define __EXTENSIONS__ 1
|
---|
| 4522 | $ac_includes_default
|
---|
| 4523 | int
|
---|
| 4524 | main ()
|
---|
| 4525 | {
|
---|
| 4526 |
|
---|
| 4527 | ;
|
---|
| 4528 | return 0;
|
---|
| 4529 | }
|
---|
[8756] | 4530 | _ACEOF
|
---|
[22378] | 4531 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 4532 | ac_cv_safe_to_define___extensions__=yes
|
---|
[8756] | 4533 | else
|
---|
[22378] | 4534 | ac_cv_safe_to_define___extensions__=no
|
---|
[8756] | 4535 | fi
|
---|
[22378] | 4536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 4537 | fi
|
---|
[22378] | 4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
---|
| 4539 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
---|
| 4540 | test $ac_cv_safe_to_define___extensions__ = yes &&
|
---|
| 4541 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
---|
[8756] | 4542 |
|
---|
[22378] | 4543 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
---|
[8756] | 4544 |
|
---|
[22378] | 4545 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
---|
[8756] | 4546 |
|
---|
[22378] | 4547 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
---|
[8756] | 4548 |
|
---|
[22378] | 4549 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
---|
| 4550 |
|
---|
| 4551 |
|
---|
| 4552 |
|
---|
| 4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
|
---|
| 4554 | $as_echo_n "checking for library containing strerror... " >&6; }
|
---|
| 4555 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
| 4556 | $as_echo_n "(cached) " >&6
|
---|
[8756] | 4557 | else
|
---|
[22378] | 4558 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4560 | /* end confdefs.h. */
|
---|
| 4561 |
|
---|
[22378] | 4562 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 4563 | Use char because int might match the return type of a GCC
|
---|
| 4564 | builtin and then its argument prototype would still apply. */
|
---|
| 4565 | #ifdef __cplusplus
|
---|
| 4566 | extern "C"
|
---|
| 4567 | #endif
|
---|
| 4568 | char strerror ();
|
---|
| 4569 | int
|
---|
| 4570 | main ()
|
---|
| 4571 | {
|
---|
| 4572 | return strerror ();
|
---|
| 4573 | ;
|
---|
| 4574 | return 0;
|
---|
| 4575 | }
|
---|
[8756] | 4576 | _ACEOF
|
---|
[22378] | 4577 | for ac_lib in '' cposix; do
|
---|
| 4578 | if test -z "$ac_lib"; then
|
---|
| 4579 | ac_res="none required"
|
---|
[20853] | 4580 | else
|
---|
[22378] | 4581 | ac_res=-l$ac_lib
|
---|
| 4582 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[20853] | 4583 | fi
|
---|
[22378] | 4584 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 4585 | ac_cv_search_strerror=$ac_res
|
---|
[20853] | 4586 | fi
|
---|
[22378] | 4587 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 4588 | conftest$ac_exeext
|
---|
| 4589 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
| 4590 | break
|
---|
[8756] | 4591 | fi
|
---|
[22378] | 4592 | done
|
---|
| 4593 | if test "${ac_cv_search_strerror+set}" = set; then :
|
---|
[8756] | 4594 |
|
---|
| 4595 | else
|
---|
[22378] | 4596 | ac_cv_search_strerror=no
|
---|
[8756] | 4597 | fi
|
---|
[22378] | 4598 | rm conftest.$ac_ext
|
---|
| 4599 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4600 | fi
|
---|
| 4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
|
---|
| 4602 | $as_echo "$ac_cv_search_strerror" >&6; }
|
---|
| 4603 | ac_res=$ac_cv_search_strerror
|
---|
| 4604 | if test "$ac_res" != no; then :
|
---|
| 4605 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[8756] | 4606 |
|
---|
| 4607 | fi
|
---|
[687] | 4608 |
|
---|
[8756] | 4609 |
|
---|
[22378] | 4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 4611 | $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
|
---|
| 4612 | if test "${ac_cv_prog_cc_stdc+set}" = set; then :
|
---|
| 4613 | $as_echo_n "(cached) " >&6
|
---|
[700] | 4614 | else
|
---|
| 4615 | ac_cv_prog_cc_stdc=no
|
---|
| 4616 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4617 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4618 | # breaks some systems' header files.
|
---|
| 4619 | # AIX -qlanglvl=ansi
|
---|
| 4620 | # Ultrix and OSF/1 -std1
|
---|
| 4621 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4622 | # SVR4 -Xc
|
---|
| 4623 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4624 | do
|
---|
| 4625 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[22378] | 4626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4627 | /* end confdefs.h. */
|
---|
[700] | 4628 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4629 | choke me
|
---|
[8756] | 4630 | #endif
|
---|
[700] | 4631 |
|
---|
[8756] | 4632 | int
|
---|
| 4633 | main ()
|
---|
| 4634 | {
|
---|
[700] | 4635 | int test (int i, double x);
|
---|
| 4636 | struct s1 {int (*f) (int a);};
|
---|
| 4637 | struct s2 {int (*f) (double a);};
|
---|
[8756] | 4638 | ;
|
---|
| 4639 | return 0;
|
---|
| 4640 | }
|
---|
| 4641 | _ACEOF
|
---|
[22378] | 4642 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[700] | 4643 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4644 | fi
|
---|
[22378] | 4645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[700] | 4646 | done
|
---|
| 4647 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4648 |
|
---|
| 4649 | fi
|
---|
| 4650 |
|
---|
[22378] | 4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4652 | $as_echo "$ac_cv_prog_cc_stdc" >&6; }
|
---|
[700] | 4653 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4654 | x|xno) ;;
|
---|
| 4655 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4656 | esac
|
---|
| 4657 |
|
---|
[8200] | 4658 |
|
---|
[22378] | 4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
|
---|
| 4660 | $as_echo_n "checking for function prototypes... " >&6; }
|
---|
[700] | 4661 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[22378] | 4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 4663 | $as_echo "yes" >&6; }
|
---|
| 4664 | $as_echo "#define PROTOTYPES 1" >>confdefs.h
|
---|
[700] | 4665 |
|
---|
| 4666 | U= ANSI2KNR=
|
---|
| 4667 | else
|
---|
[22378] | 4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 4669 | $as_echo "no" >&6; }
|
---|
[700] | 4670 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4671 | fi
|
---|
| 4672 |
|
---|
[22378] | 4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
| 4674 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
| 4675 | if test "${ac_cv_c_const+set}" = set; then :
|
---|
| 4676 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4677 | else
|
---|
[22378] | 4678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4679 | /* end confdefs.h. */
|
---|
[8200] | 4680 |
|
---|
[8756] | 4681 | int
|
---|
| 4682 | main ()
|
---|
| 4683 | {
|
---|
| 4684 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4685 | #ifndef __cplusplus
|
---|
| 4686 | /* Ultrix mips cc rejects this. */
|
---|
| 4687 | typedef int charset[2];
|
---|
[22378] | 4688 | const charset cs;
|
---|
[8756] | 4689 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[22378] | 4690 | char const *const *pcpcc;
|
---|
| 4691 | char **ppc;
|
---|
[8756] | 4692 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4693 | struct point {int x, y;};
|
---|
| 4694 | static struct point const zero = {0,0};
|
---|
| 4695 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4696 | It does not let you subtract one const X* pointer from another in
|
---|
| 4697 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4698 | expression */
|
---|
| 4699 | const char *g = "string";
|
---|
[22378] | 4700 | pcpcc = &g + (g ? g-g : 0);
|
---|
[8756] | 4701 | /* HPUX 7.0 cc rejects these. */
|
---|
[22378] | 4702 | ++pcpcc;
|
---|
| 4703 | ppc = (char**) pcpcc;
|
---|
| 4704 | pcpcc = (char const *const *) ppc;
|
---|
[8756] | 4705 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4706 | char *t;
|
---|
| 4707 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
[8200] | 4708 |
|
---|
[8756] | 4709 | *t++ = 0;
|
---|
[22378] | 4710 | if (s) return 0;
|
---|
[8756] | 4711 | }
|
---|
| 4712 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4713 | int x[] = {25, 17};
|
---|
| 4714 | const int *foo = &x[0];
|
---|
| 4715 | ++foo;
|
---|
| 4716 | }
|
---|
| 4717 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4718 | typedef const int *iptr;
|
---|
| 4719 | iptr p = 0;
|
---|
| 4720 | ++p;
|
---|
| 4721 | }
|
---|
| 4722 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4723 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4724 | struct s { int j; const int *ap[3]; };
|
---|
| 4725 | struct s *b; b->j = 5;
|
---|
| 4726 | }
|
---|
| 4727 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4728 | const int foo = 10;
|
---|
[22378] | 4729 | if (!foo) return 0;
|
---|
[8756] | 4730 | }
|
---|
[22378] | 4731 | return !cs[0] && !zero.x;
|
---|
[8756] | 4732 | #endif
|
---|
[8200] | 4733 |
|
---|
[8756] | 4734 | ;
|
---|
| 4735 | return 0;
|
---|
[3631] | 4736 | }
|
---|
[8756] | 4737 | _ACEOF
|
---|
[22378] | 4738 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[687] | 4739 | ac_cv_c_const=yes
|
---|
| 4740 | else
|
---|
[22378] | 4741 | ac_cv_c_const=no
|
---|
[687] | 4742 | fi
|
---|
[22378] | 4743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4744 | fi
|
---|
[22378] | 4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
| 4746 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
[3631] | 4747 | if test $ac_cv_c_const = no; then
|
---|
[687] | 4748 |
|
---|
[22378] | 4749 | $as_echo "#define const /**/" >>confdefs.h
|
---|
[8756] | 4750 |
|
---|
[687] | 4751 | fi
|
---|
| 4752 |
|
---|
[22378] | 4753 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
|
---|
| 4754 | if test "x$ac_cv_type_off_t" = x""yes; then :
|
---|
[687] | 4755 |
|
---|
| 4756 | else
|
---|
| 4757 |
|
---|
[8756] | 4758 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 4759 | #define off_t long int
|
---|
[8756] | 4760 | _ACEOF
|
---|
[687] | 4761 |
|
---|
| 4762 | fi
|
---|
[8200] | 4763 |
|
---|
[22378] | 4764 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
|
---|
| 4765 | if test "x$ac_cv_type_size_t" = x""yes; then :
|
---|
[8200] | 4766 |
|
---|
[687] | 4767 | else
|
---|
[8200] | 4768 |
|
---|
[8756] | 4769 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 4770 | #define size_t unsigned int
|
---|
[8756] | 4771 | _ACEOF
|
---|
[687] | 4772 |
|
---|
| 4773 | fi
|
---|
| 4774 |
|
---|
[22378] | 4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4776 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
|
---|
| 4777 | if test "${ac_cv_header_time+set}" = set; then :
|
---|
| 4778 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4779 | else
|
---|
[22378] | 4780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4781 | /* end confdefs.h. */
|
---|
[687] | 4782 | #include <sys/types.h>
|
---|
| 4783 | #include <sys/time.h>
|
---|
| 4784 | #include <time.h>
|
---|
[8756] | 4785 |
|
---|
| 4786 | int
|
---|
| 4787 | main ()
|
---|
| 4788 | {
|
---|
| 4789 | if ((struct tm *) 0)
|
---|
| 4790 | return 0;
|
---|
| 4791 | ;
|
---|
| 4792 | return 0;
|
---|
| 4793 | }
|
---|
| 4794 | _ACEOF
|
---|
[22378] | 4795 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[687] | 4796 | ac_cv_header_time=yes
|
---|
| 4797 | else
|
---|
[22378] | 4798 | ac_cv_header_time=no
|
---|
[687] | 4799 | fi
|
---|
[22378] | 4800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4801 | fi
|
---|
[22378] | 4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
|
---|
| 4803 | $as_echo "$ac_cv_header_time" >&6; }
|
---|
[8756] | 4804 | if test $ac_cv_header_time = yes; then
|
---|
[8200] | 4805 |
|
---|
[22378] | 4806 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
|
---|
[687] | 4807 |
|
---|
| 4808 | fi
|
---|
| 4809 |
|
---|
[22378] | 4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4811 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
| 4812 | if test "${ac_cv_struct_tm+set}" = set; then :
|
---|
| 4813 | $as_echo_n "(cached) " >&6
|
---|
[687] | 4814 | else
|
---|
[22378] | 4815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4816 | /* end confdefs.h. */
|
---|
[687] | 4817 | #include <sys/types.h>
|
---|
| 4818 | #include <time.h>
|
---|
[8756] | 4819 |
|
---|
| 4820 | int
|
---|
| 4821 | main ()
|
---|
| 4822 | {
|
---|
[22378] | 4823 | struct tm tm;
|
---|
| 4824 | int *p = &tm.tm_sec;
|
---|
| 4825 | return !p;
|
---|
[8756] | 4826 | ;
|
---|
| 4827 | return 0;
|
---|
| 4828 | }
|
---|
| 4829 | _ACEOF
|
---|
[22378] | 4830 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[687] | 4831 | ac_cv_struct_tm=time.h
|
---|
| 4832 | else
|
---|
[22378] | 4833 | ac_cv_struct_tm=sys/time.h
|
---|
[687] | 4834 | fi
|
---|
[22378] | 4835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4836 | fi
|
---|
[22378] | 4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
| 4838 | $as_echo "$ac_cv_struct_tm" >&6; }
|
---|
[8756] | 4839 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8200] | 4840 |
|
---|
[22378] | 4841 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
[687] | 4842 |
|
---|
| 4843 | fi
|
---|
| 4844 |
|
---|
[8200] | 4845 |
|
---|
[687] | 4846 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[22378] | 4847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4848 | /* end confdefs.h. */
|
---|
[687] | 4849 | #include <stdio.h>
|
---|
| 4850 |
|
---|
[8756] | 4851 | int
|
---|
| 4852 | main ()
|
---|
| 4853 | {
|
---|
| 4854 | FILE *rubbish = popen("yes", "r");
|
---|
| 4855 | ;
|
---|
| 4856 | return 0;
|
---|
| 4857 | }
|
---|
| 4858 | _ACEOF
|
---|
[22378] | 4859 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 4860 |
|
---|
[687] | 4861 | else
|
---|
[22378] | 4862 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[687] | 4863 | fi
|
---|
[22378] | 4864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4865 | fi
|
---|
| 4866 |
|
---|
[8200] | 4867 |
|
---|
[22378] | 4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lg" >&5
|
---|
| 4869 | $as_echo_n "checking for main in -lg... " >&6; }
|
---|
| 4870 | if test "${ac_cv_lib_g_main+set}" = set; then :
|
---|
| 4871 | $as_echo_n "(cached) " >&6
|
---|
[562] | 4872 | else
|
---|
[8756] | 4873 | ac_check_lib_save_LIBS=$LIBS
|
---|
[562] | 4874 | LIBS="-lg $LIBS"
|
---|
[22378] | 4875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4876 | /* end confdefs.h. */
|
---|
[562] | 4877 |
|
---|
[8756] | 4878 |
|
---|
| 4879 | int
|
---|
| 4880 | main ()
|
---|
| 4881 | {
|
---|
[22378] | 4882 | return main ();
|
---|
[8756] | 4883 | ;
|
---|
| 4884 | return 0;
|
---|
| 4885 | }
|
---|
| 4886 | _ACEOF
|
---|
[22378] | 4887 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8756] | 4888 | ac_cv_lib_g_main=yes
|
---|
[562] | 4889 | else
|
---|
[22378] | 4890 | ac_cv_lib_g_main=no
|
---|
[562] | 4891 | fi
|
---|
[22378] | 4892 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 4893 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 4894 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4895 | fi
|
---|
[22378] | 4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g_main" >&5
|
---|
| 4897 | $as_echo "$ac_cv_lib_g_main" >&6; }
|
---|
| 4898 | if test "x$ac_cv_lib_g_main" = x""yes; then :
|
---|
[8756] | 4899 | cat >>confdefs.h <<_ACEOF
|
---|
| 4900 | #define HAVE_LIBG 1
|
---|
| 4901 | _ACEOF
|
---|
[562] | 4902 |
|
---|
| 4903 | LIBS="-lg $LIBS"
|
---|
| 4904 |
|
---|
| 4905 | fi
|
---|
[8756] | 4906 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
[562] | 4907 |
|
---|
[22378] | 4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
|
---|
| 4909 | $as_echo_n "checking for main in -lm... " >&6; }
|
---|
| 4910 | if test "${ac_cv_lib_m_main+set}" = set; then :
|
---|
| 4911 | $as_echo_n "(cached) " >&6
|
---|
[562] | 4912 | else
|
---|
[8756] | 4913 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4914 | LIBS="-lm $LIBS"
|
---|
[22378] | 4915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4916 | /* end confdefs.h. */
|
---|
[8200] | 4917 |
|
---|
[562] | 4918 |
|
---|
[8756] | 4919 | int
|
---|
| 4920 | main ()
|
---|
| 4921 | {
|
---|
[22378] | 4922 | return main ();
|
---|
[8756] | 4923 | ;
|
---|
| 4924 | return 0;
|
---|
| 4925 | }
|
---|
| 4926 | _ACEOF
|
---|
[22378] | 4927 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8756] | 4928 | ac_cv_lib_m_main=yes
|
---|
[8200] | 4929 | else
|
---|
[22378] | 4930 | ac_cv_lib_m_main=no
|
---|
[562] | 4931 | fi
|
---|
[22378] | 4932 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 4933 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 4934 | LIBS=$ac_check_lib_save_LIBS
|
---|
[562] | 4935 | fi
|
---|
[22378] | 4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
|
---|
| 4937 | $as_echo "$ac_cv_lib_m_main" >&6; }
|
---|
| 4938 | if test "x$ac_cv_lib_m_main" = x""yes; then :
|
---|
[8756] | 4939 | cat >>confdefs.h <<_ACEOF
|
---|
| 4940 | #define HAVE_LIBM 1
|
---|
| 4941 | _ACEOF
|
---|
[562] | 4942 |
|
---|
| 4943 | LIBS="-lm $LIBS"
|
---|
| 4944 |
|
---|
| 4945 | fi
|
---|
[8756] | 4946 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
[562] | 4947 |
|
---|
[22378] | 4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
|
---|
| 4949 | $as_echo_n "checking for main in -lcrypt... " >&6; }
|
---|
| 4950 | if test "${ac_cv_lib_crypt_main+set}" = set; then :
|
---|
| 4951 | $as_echo_n "(cached) " >&6
|
---|
[562] | 4952 | else
|
---|
[8756] | 4953 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4954 | LIBS="-lcrypt $LIBS"
|
---|
[22378] | 4955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 4956 | /* end confdefs.h. */
|
---|
[562] | 4957 |
|
---|
[8756] | 4958 |
|
---|
| 4959 | int
|
---|
| 4960 | main ()
|
---|
| 4961 | {
|
---|
[22378] | 4962 | return main ();
|
---|
[8756] | 4963 | ;
|
---|
| 4964 | return 0;
|
---|
| 4965 | }
|
---|
| 4966 | _ACEOF
|
---|
[22378] | 4967 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8756] | 4968 | ac_cv_lib_crypt_main=yes
|
---|
[562] | 4969 | else
|
---|
[22378] | 4970 | ac_cv_lib_crypt_main=no
|
---|
[562] | 4971 | fi
|
---|
[22378] | 4972 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 4973 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 4974 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4975 | fi
|
---|
[22378] | 4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4977 | $as_echo "$ac_cv_lib_crypt_main" >&6; }
|
---|
| 4978 | if test "x$ac_cv_lib_crypt_main" = x""yes; then :
|
---|
[8756] | 4979 | cat >>confdefs.h <<_ACEOF
|
---|
| 4980 | #define HAVE_LIBCRYPT 1
|
---|
| 4981 | _ACEOF
|
---|
[562] | 4982 |
|
---|
[8756] | 4983 | LIBS="-lcrypt $LIBS"
|
---|
[562] | 4984 |
|
---|
| 4985 | fi
|
---|
[8756] | 4986 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
[562] | 4987 |
|
---|
[20842] | 4988 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 4989 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 4990 | #fi
|
---|
[562] | 4991 |
|
---|
[687] | 4992 | ac_header_dirent=no
|
---|
[8756] | 4993 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[22378] | 4994 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4996 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
|
---|
| 4997 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
|
---|
| 4998 | $as_echo_n "(cached) " >&6
|
---|
[562] | 4999 | else
|
---|
[22378] | 5000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5001 | /* end confdefs.h. */
|
---|
[687] | 5002 | #include <sys/types.h>
|
---|
| 5003 | #include <$ac_hdr>
|
---|
[8756] | 5004 |
|
---|
| 5005 | int
|
---|
| 5006 | main ()
|
---|
| 5007 | {
|
---|
| 5008 | if ((DIR *) 0)
|
---|
| 5009 | return 0;
|
---|
| 5010 | ;
|
---|
| 5011 | return 0;
|
---|
| 5012 | }
|
---|
| 5013 | _ACEOF
|
---|
[22378] | 5014 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[8756] | 5015 | eval "$as_ac_Header=yes"
|
---|
[562] | 5016 | else
|
---|
[22378] | 5017 | eval "$as_ac_Header=no"
|
---|
[687] | 5018 | fi
|
---|
[22378] | 5019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5020 | fi
|
---|
[22378] | 5021 | eval ac_res=\$$as_ac_Header
|
---|
| 5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
| 5023 | $as_echo "$ac_res" >&6; }
|
---|
| 5024 | eval as_val=\$$as_ac_Header
|
---|
| 5025 | if test "x$as_val" = x""yes; then :
|
---|
[8756] | 5026 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 5027 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
[8756] | 5028 | _ACEOF
|
---|
| 5029 |
|
---|
| 5030 | ac_header_dirent=$ac_hdr; break
|
---|
[687] | 5031 | fi
|
---|
[8756] | 5032 |
|
---|
[687] | 5033 | done
|
---|
| 5034 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 5035 | if test $ac_header_dirent = dirent.h; then
|
---|
[22378] | 5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
| 5037 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
| 5038 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5039 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5040 | else
|
---|
[8756] | 5041 | ac_func_search_save_LIBS=$LIBS
|
---|
[22378] | 5042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5043 | /* end confdefs.h. */
|
---|
| 5044 |
|
---|
[22378] | 5045 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5046 | Use char because int might match the return type of a GCC
|
---|
| 5047 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 5048 | #ifdef __cplusplus
|
---|
| 5049 | extern "C"
|
---|
| 5050 | #endif
|
---|
| 5051 | char opendir ();
|
---|
| 5052 | int
|
---|
| 5053 | main ()
|
---|
| 5054 | {
|
---|
[22378] | 5055 | return opendir ();
|
---|
[8756] | 5056 | ;
|
---|
| 5057 | return 0;
|
---|
| 5058 | }
|
---|
| 5059 | _ACEOF
|
---|
[22378] | 5060 | for ac_lib in '' dir; do
|
---|
| 5061 | if test -z "$ac_lib"; then
|
---|
| 5062 | ac_res="none required"
|
---|
| 5063 | else
|
---|
| 5064 | ac_res=-l$ac_lib
|
---|
| 5065 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5066 | fi
|
---|
| 5067 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 5068 | ac_cv_search_opendir=$ac_res
|
---|
[687] | 5069 | fi
|
---|
[22378] | 5070 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5071 | conftest$ac_exeext
|
---|
| 5072 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5073 | break
|
---|
| 5074 | fi
|
---|
| 5075 | done
|
---|
| 5076 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
[8200] | 5077 |
|
---|
| 5078 | else
|
---|
[22378] | 5079 | ac_cv_search_opendir=no
|
---|
[687] | 5080 | fi
|
---|
[22378] | 5081 | rm conftest.$ac_ext
|
---|
[8756] | 5082 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5083 | fi
|
---|
[22378] | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
| 5085 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5086 | ac_res=$ac_cv_search_opendir
|
---|
| 5087 | if test "$ac_res" != no; then :
|
---|
| 5088 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[687] | 5089 |
|
---|
[8756] | 5090 | fi
|
---|
| 5091 |
|
---|
[687] | 5092 | else
|
---|
[22378] | 5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
|
---|
| 5094 | $as_echo_n "checking for library containing opendir... " >&6; }
|
---|
| 5095 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5096 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5097 | else
|
---|
[8756] | 5098 | ac_func_search_save_LIBS=$LIBS
|
---|
[22378] | 5099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5100 | /* end confdefs.h. */
|
---|
| 5101 |
|
---|
[22378] | 5102 | /* Override any GCC internal prototype to avoid an error.
|
---|
| 5103 | Use char because int might match the return type of a GCC
|
---|
| 5104 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 5105 | #ifdef __cplusplus
|
---|
| 5106 | extern "C"
|
---|
| 5107 | #endif
|
---|
| 5108 | char opendir ();
|
---|
| 5109 | int
|
---|
| 5110 | main ()
|
---|
| 5111 | {
|
---|
[22378] | 5112 | return opendir ();
|
---|
[8756] | 5113 | ;
|
---|
| 5114 | return 0;
|
---|
| 5115 | }
|
---|
| 5116 | _ACEOF
|
---|
[22378] | 5117 | for ac_lib in '' x; do
|
---|
| 5118 | if test -z "$ac_lib"; then
|
---|
| 5119 | ac_res="none required"
|
---|
| 5120 | else
|
---|
| 5121 | ac_res=-l$ac_lib
|
---|
| 5122 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5123 | fi
|
---|
| 5124 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
| 5125 | ac_cv_search_opendir=$ac_res
|
---|
[562] | 5126 | fi
|
---|
[22378] | 5127 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5128 | conftest$ac_exeext
|
---|
| 5129 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
| 5130 | break
|
---|
| 5131 | fi
|
---|
| 5132 | done
|
---|
| 5133 | if test "${ac_cv_search_opendir+set}" = set; then :
|
---|
[8200] | 5134 |
|
---|
| 5135 | else
|
---|
[22378] | 5136 | ac_cv_search_opendir=no
|
---|
[562] | 5137 | fi
|
---|
[22378] | 5138 | rm conftest.$ac_ext
|
---|
[8756] | 5139 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5140 | fi
|
---|
[22378] | 5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
|
---|
| 5142 | $as_echo "$ac_cv_search_opendir" >&6; }
|
---|
| 5143 | ac_res=$ac_cv_search_opendir
|
---|
| 5144 | if test "$ac_res" != no; then :
|
---|
| 5145 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
[562] | 5146 |
|
---|
[687] | 5147 | fi
|
---|
| 5148 |
|
---|
[8756] | 5149 | fi
|
---|
| 5150 |
|
---|
[22378] | 5151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
| 5152 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
| 5153 | if test "${ac_cv_header_stdc+set}" = set; then :
|
---|
| 5154 | $as_echo_n "(cached) " >&6
|
---|
[562] | 5155 | else
|
---|
[22378] | 5156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5157 | /* end confdefs.h. */
|
---|
[562] | 5158 | #include <stdlib.h>
|
---|
| 5159 | #include <stdarg.h>
|
---|
| 5160 | #include <string.h>
|
---|
| 5161 | #include <float.h>
|
---|
[8756] | 5162 |
|
---|
| 5163 | int
|
---|
| 5164 | main ()
|
---|
| 5165 | {
|
---|
| 5166 |
|
---|
| 5167 | ;
|
---|
| 5168 | return 0;
|
---|
| 5169 | }
|
---|
| 5170 | _ACEOF
|
---|
[22378] | 5171 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
[562] | 5172 | ac_cv_header_stdc=yes
|
---|
| 5173 | else
|
---|
[22378] | 5174 | ac_cv_header_stdc=no
|
---|
[562] | 5175 | fi
|
---|
[22378] | 5176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5177 |
|
---|
| 5178 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5179 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[22378] | 5180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5181 | /* end confdefs.h. */
|
---|
[562] | 5182 | #include <string.h>
|
---|
[8756] | 5183 |
|
---|
| 5184 | _ACEOF
|
---|
[562] | 5185 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5186 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
| 5187 |
|
---|
[562] | 5188 | else
|
---|
| 5189 | ac_cv_header_stdc=no
|
---|
| 5190 | fi
|
---|
| 5191 | rm -f conftest*
|
---|
| 5192 |
|
---|
| 5193 | fi
|
---|
| 5194 |
|
---|
| 5195 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5196 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[22378] | 5197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5198 | /* end confdefs.h. */
|
---|
[562] | 5199 | #include <stdlib.h>
|
---|
[8756] | 5200 |
|
---|
| 5201 | _ACEOF
|
---|
[562] | 5202 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5203 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
| 5204 |
|
---|
[562] | 5205 | else
|
---|
| 5206 | ac_cv_header_stdc=no
|
---|
| 5207 | fi
|
---|
| 5208 | rm -f conftest*
|
---|
| 5209 |
|
---|
| 5210 | fi
|
---|
| 5211 |
|
---|
| 5212 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5213 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[22378] | 5214 | if test "$cross_compiling" = yes; then :
|
---|
[562] | 5215 | :
|
---|
| 5216 | else
|
---|
[22378] | 5217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5218 | /* end confdefs.h. */
|
---|
[562] | 5219 | #include <ctype.h>
|
---|
[22378] | 5220 | #include <stdlib.h>
|
---|
[8756] | 5221 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5222 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5223 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5224 | #else
|
---|
| 5225 | # define ISLOWER(c) \
|
---|
| 5226 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5227 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5228 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5229 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5230 | #endif
|
---|
| 5231 |
|
---|
[8200] | 5232 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8756] | 5233 | int
|
---|
| 5234 | main ()
|
---|
| 5235 | {
|
---|
| 5236 | int i;
|
---|
| 5237 | for (i = 0; i < 256; i++)
|
---|
| 5238 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5239 | || toupper (i) != TOUPPER (i))
|
---|
[22378] | 5240 | return 2;
|
---|
| 5241 | return 0;
|
---|
[8756] | 5242 | }
|
---|
| 5243 | _ACEOF
|
---|
[22378] | 5244 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
| 5245 |
|
---|
[562] | 5246 | else
|
---|
[22378] | 5247 | ac_cv_header_stdc=no
|
---|
[562] | 5248 | fi
|
---|
[22378] | 5249 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5250 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[562] | 5251 | fi
|
---|
[22378] | 5252 |
|
---|
[562] | 5253 | fi
|
---|
| 5254 | fi
|
---|
[22378] | 5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
| 5256 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
[8756] | 5257 | if test $ac_cv_header_stdc = yes; then
|
---|
[8200] | 5258 |
|
---|
[22378] | 5259 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
[562] | 5260 |
|
---|
| 5261 | fi
|
---|
| 5262 |
|
---|
[10181] | 5263 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
[22378] | 5264 | do :
|
---|
| 5265 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5266 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
---|
| 5267 | eval as_val=\$$as_ac_Header
|
---|
| 5268 | if test "x$as_val" = x""yes; then :
|
---|
[8756] | 5269 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 5270 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
[8756] | 5271 | _ACEOF
|
---|
| 5272 |
|
---|
| 5273 | fi
|
---|
| 5274 |
|
---|
[562] | 5275 | done
|
---|
| 5276 |
|
---|
[22378] | 5277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5278 | /* end confdefs.h. */
|
---|
[687] | 5279 | #include <stdio.h>
|
---|
[8756] | 5280 |
|
---|
| 5281 | _ACEOF
|
---|
[687] | 5282 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5283 | $EGREP "fread" >/dev/null 2>&1; then :
|
---|
| 5284 | $as_echo "#define HAVE_FREAD_DECL 1" >>confdefs.h
|
---|
[562] | 5285 |
|
---|
[687] | 5286 | fi
|
---|
| 5287 | rm -f conftest*
|
---|
| 5288 |
|
---|
[22378] | 5289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5290 | /* end confdefs.h. */
|
---|
[687] | 5291 | #include <stdio.h>
|
---|
[8756] | 5292 |
|
---|
| 5293 | _ACEOF
|
---|
[687] | 5294 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5295 | $EGREP "fgetc" >/dev/null 2>&1; then :
|
---|
| 5296 | $as_echo "#define HAVE_FGETC_DECL 1" >>confdefs.h
|
---|
[687] | 5297 |
|
---|
| 5298 | fi
|
---|
| 5299 | rm -f conftest*
|
---|
| 5300 |
|
---|
[22378] | 5301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5302 | /* end confdefs.h. */
|
---|
[687] | 5303 | #include <sys/procfs.h>
|
---|
[8756] | 5304 |
|
---|
| 5305 | _ACEOF
|
---|
[687] | 5306 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5307 | $EGREP "pr_brksize" >/dev/null 2>&1; then :
|
---|
| 5308 | $as_echo "#define HAVE_PR_BRKSIZE 1" >>confdefs.h
|
---|
[687] | 5309 |
|
---|
| 5310 | fi
|
---|
| 5311 | rm -f conftest*
|
---|
| 5312 |
|
---|
[8200] | 5313 |
|
---|
[687] | 5314 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5315 | # for constant arguments. Useless!
|
---|
[22378] | 5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
---|
| 5317 | $as_echo_n "checking for working alloca.h... " >&6; }
|
---|
| 5318 | if test "${ac_cv_working_alloca_h+set}" = set; then :
|
---|
| 5319 | $as_echo_n "(cached) " >&6
|
---|
[562] | 5320 | else
|
---|
[22378] | 5321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5322 | /* end confdefs.h. */
|
---|
[687] | 5323 | #include <alloca.h>
|
---|
[8756] | 5324 | int
|
---|
| 5325 | main ()
|
---|
| 5326 | {
|
---|
| 5327 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
[22378] | 5328 | if (p) return 0;
|
---|
[8756] | 5329 | ;
|
---|
| 5330 | return 0;
|
---|
| 5331 | }
|
---|
| 5332 | _ACEOF
|
---|
[22378] | 5333 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[8756] | 5334 | ac_cv_working_alloca_h=yes
|
---|
[562] | 5335 | else
|
---|
[22378] | 5336 | ac_cv_working_alloca_h=no
|
---|
[562] | 5337 | fi
|
---|
[22378] | 5338 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5339 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5340 | fi
|
---|
[22378] | 5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5342 | $as_echo "$ac_cv_working_alloca_h" >&6; }
|
---|
[8756] | 5343 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[562] | 5344 |
|
---|
[22378] | 5345 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
|
---|
[562] | 5346 |
|
---|
| 5347 | fi
|
---|
| 5348 |
|
---|
[22378] | 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
|
---|
| 5350 | $as_echo_n "checking for alloca... " >&6; }
|
---|
| 5351 | if test "${ac_cv_func_alloca_works+set}" = set; then :
|
---|
| 5352 | $as_echo_n "(cached) " >&6
|
---|
[562] | 5353 | else
|
---|
[22378] | 5354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5355 | /* end confdefs.h. */
|
---|
[687] | 5356 | #ifdef __GNUC__
|
---|
| 5357 | # define alloca __builtin_alloca
|
---|
| 5358 | #else
|
---|
| 5359 | # ifdef _MSC_VER
|
---|
| 5360 | # include <malloc.h>
|
---|
| 5361 | # define alloca _alloca
|
---|
| 5362 | # else
|
---|
[22378] | 5363 | # ifdef HAVE_ALLOCA_H
|
---|
[687] | 5364 | # include <alloca.h>
|
---|
| 5365 | # else
|
---|
| 5366 | # ifdef _AIX
|
---|
| 5367 | #pragma alloca
|
---|
| 5368 | # else
|
---|
| 5369 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5370 | char *alloca ();
|
---|
| 5371 | # endif
|
---|
| 5372 | # endif
|
---|
| 5373 | # endif
|
---|
| 5374 | # endif
|
---|
| 5375 | #endif
|
---|
| 5376 |
|
---|
[8756] | 5377 | int
|
---|
| 5378 | main ()
|
---|
| 5379 | {
|
---|
| 5380 | char *p = (char *) alloca (1);
|
---|
[22378] | 5381 | if (p) return 0;
|
---|
[8756] | 5382 | ;
|
---|
| 5383 | return 0;
|
---|
| 5384 | }
|
---|
| 5385 | _ACEOF
|
---|
[22378] | 5386 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
[687] | 5387 | ac_cv_func_alloca_works=yes
|
---|
[562] | 5388 | else
|
---|
[22378] | 5389 | ac_cv_func_alloca_works=no
|
---|
[562] | 5390 | fi
|
---|
[22378] | 5391 | rm -f core conftest.err conftest.$ac_objext \
|
---|
| 5392 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5393 | fi
|
---|
[22378] | 5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5395 | $as_echo "$ac_cv_func_alloca_works" >&6; }
|
---|
[562] | 5396 |
|
---|
[687] | 5397 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8756] | 5398 |
|
---|
[22378] | 5399 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
|
---|
[562] | 5400 |
|
---|
[8756] | 5401 | else
|
---|
| 5402 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5403 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5404 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5405 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8200] | 5406 |
|
---|
[22378] | 5407 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
|
---|
[8756] | 5408 |
|
---|
[22378] | 5409 | $as_echo "#define C_ALLOCA 1" >>confdefs.h
|
---|
[562] | 5410 |
|
---|
[8200] | 5411 |
|
---|
[22378] | 5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5413 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
|
---|
| 5414 | if test "${ac_cv_os_cray+set}" = set; then :
|
---|
| 5415 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5416 | else
|
---|
[22378] | 5417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5418 | /* end confdefs.h. */
|
---|
[22378] | 5419 | #if defined CRAY && ! defined CRAY2
|
---|
[687] | 5420 | webecray
|
---|
| 5421 | #else
|
---|
| 5422 | wenotbecray
|
---|
| 5423 | #endif
|
---|
[562] | 5424 |
|
---|
[8756] | 5425 | _ACEOF
|
---|
[687] | 5426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5427 | $EGREP "webecray" >/dev/null 2>&1; then :
|
---|
[687] | 5428 | ac_cv_os_cray=yes
|
---|
| 5429 | else
|
---|
| 5430 | ac_cv_os_cray=no
|
---|
| 5431 | fi
|
---|
| 5432 | rm -f conftest*
|
---|
[562] | 5433 |
|
---|
[687] | 5434 | fi
|
---|
[22378] | 5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
|
---|
| 5436 | $as_echo "$ac_cv_os_cray" >&6; }
|
---|
[687] | 5437 | if test $ac_cv_os_cray = yes; then
|
---|
[8756] | 5438 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[22378] | 5439 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5440 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 5441 | eval as_val=\$$as_ac_var
|
---|
| 5442 | if test "x$as_val" = x""yes; then :
|
---|
[8756] | 5443 |
|
---|
| 5444 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5445 | #define CRAY_STACKSEG_END $ac_func
|
---|
[8756] | 5446 | _ACEOF
|
---|
[562] | 5447 |
|
---|
[8756] | 5448 | break
|
---|
[687] | 5449 | fi
|
---|
[562] | 5450 |
|
---|
[8756] | 5451 | done
|
---|
[687] | 5452 | fi
|
---|
| 5453 |
|
---|
[22378] | 5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
|
---|
| 5455 | $as_echo_n "checking stack direction for C alloca... " >&6; }
|
---|
| 5456 | if test "${ac_cv_c_stack_direction+set}" = set; then :
|
---|
| 5457 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5458 | else
|
---|
[22378] | 5459 | if test "$cross_compiling" = yes; then :
|
---|
[687] | 5460 | ac_cv_c_stack_direction=0
|
---|
| 5461 | else
|
---|
[22378] | 5462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5463 | /* end confdefs.h. */
|
---|
[22378] | 5464 | $ac_includes_default
|
---|
[8756] | 5465 | int
|
---|
[687] | 5466 | find_stack_direction ()
|
---|
| 5467 | {
|
---|
| 5468 | static char *addr = 0;
|
---|
| 5469 | auto char dummy;
|
---|
| 5470 | if (addr == 0)
|
---|
| 5471 | {
|
---|
| 5472 | addr = &dummy;
|
---|
| 5473 | return find_stack_direction ();
|
---|
| 5474 | }
|
---|
| 5475 | else
|
---|
| 5476 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5477 | }
|
---|
[8756] | 5478 |
|
---|
| 5479 | int
|
---|
[687] | 5480 | main ()
|
---|
| 5481 | {
|
---|
[22378] | 5482 | return find_stack_direction () < 0;
|
---|
[687] | 5483 | }
|
---|
[8756] | 5484 | _ACEOF
|
---|
[22378] | 5485 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
[687] | 5486 | ac_cv_c_stack_direction=1
|
---|
[562] | 5487 | else
|
---|
[22378] | 5488 | ac_cv_c_stack_direction=-1
|
---|
[562] | 5489 | fi
|
---|
[22378] | 5490 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 5491 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[687] | 5492 | fi
|
---|
[22378] | 5493 |
|
---|
[687] | 5494 | fi
|
---|
[22378] | 5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5496 | $as_echo "$ac_cv_c_stack_direction" >&6; }
|
---|
[8756] | 5497 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5498 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[8756] | 5499 | _ACEOF
|
---|
[687] | 5500 |
|
---|
[8756] | 5501 |
|
---|
[687] | 5502 | fi
|
---|
| 5503 |
|
---|
[8756] | 5504 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[22378] | 5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
|
---|
| 5506 | $as_echo_n "checking whether $CC needs -traditional... " >&6; }
|
---|
| 5507 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
|
---|
| 5508 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5509 | else
|
---|
| 5510 | ac_pattern="Autoconf.*'x'"
|
---|
[22378] | 5511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5512 | /* end confdefs.h. */
|
---|
[687] | 5513 | #include <sgtty.h>
|
---|
| 5514 | Autoconf TIOCGETP
|
---|
[8756] | 5515 | _ACEOF
|
---|
[687] | 5516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5517 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[687] | 5518 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5519 | else
|
---|
| 5520 | ac_cv_prog_gcc_traditional=no
|
---|
| 5521 | fi
|
---|
[562] | 5522 | rm -f conftest*
|
---|
[687] | 5523 |
|
---|
[8200] | 5524 |
|
---|
[687] | 5525 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[22378] | 5526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5527 | /* end confdefs.h. */
|
---|
[687] | 5528 | #include <termio.h>
|
---|
| 5529 | Autoconf TCGETA
|
---|
[8756] | 5530 | _ACEOF
|
---|
[687] | 5531 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[22378] | 5532 | $EGREP "$ac_pattern" >/dev/null 2>&1; then :
|
---|
[687] | 5533 | ac_cv_prog_gcc_traditional=yes
|
---|
[562] | 5534 | fi
|
---|
[687] | 5535 | rm -f conftest*
|
---|
[562] | 5536 |
|
---|
[687] | 5537 | fi
|
---|
| 5538 | fi
|
---|
[22378] | 5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5540 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
|
---|
[687] | 5541 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5542 | CC="$CC -traditional"
|
---|
| 5543 | fi
|
---|
| 5544 | fi
|
---|
| 5545 |
|
---|
[22378] | 5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
|
---|
| 5547 | $as_echo_n "checking return type of signal handlers... " >&6; }
|
---|
| 5548 | if test "${ac_cv_type_signal+set}" = set; then :
|
---|
| 5549 | $as_echo_n "(cached) " >&6
|
---|
[687] | 5550 | else
|
---|
[22378] | 5551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5552 | /* end confdefs.h. */
|
---|
[687] | 5553 | #include <sys/types.h>
|
---|
| 5554 | #include <signal.h>
|
---|
[562] | 5555 |
|
---|
[8756] | 5556 | int
|
---|
| 5557 | main ()
|
---|
| 5558 | {
|
---|
[22378] | 5559 | return *(signal (0, 0)) (0) == 1;
|
---|
[8756] | 5560 | ;
|
---|
| 5561 | return 0;
|
---|
| 5562 | }
|
---|
| 5563 | _ACEOF
|
---|
[22378] | 5564 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
| 5565 | ac_cv_type_signal=int
|
---|
| 5566 | else
|
---|
[20853] | 5567 | ac_cv_type_signal=void
|
---|
[562] | 5568 | fi
|
---|
[22378] | 5569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5570 | fi
|
---|
[22378] | 5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
|
---|
| 5572 | $as_echo "$ac_cv_type_signal" >&6; }
|
---|
[562] | 5573 |
|
---|
[8756] | 5574 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5575 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[8756] | 5576 | _ACEOF
|
---|
[562] | 5577 |
|
---|
[8200] | 5578 |
|
---|
[8756] | 5579 | for ac_func in vprintf
|
---|
[22378] | 5580 | do :
|
---|
| 5581 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
|
---|
| 5582 | if test "x$ac_cv_func_vprintf" = x""yes; then :
|
---|
[8756] | 5583 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 5584 | #define HAVE_VPRINTF 1
|
---|
[8756] | 5585 | _ACEOF
|
---|
[8200] | 5586 |
|
---|
[22378] | 5587 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
|
---|
| 5588 | if test "x$ac_cv_func__doprnt" = x""yes; then :
|
---|
[8200] | 5589 |
|
---|
[22378] | 5590 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
|
---|
[8756] | 5591 |
|
---|
[562] | 5592 | fi
|
---|
| 5593 |
|
---|
| 5594 | fi
|
---|
[8756] | 5595 | done
|
---|
[562] | 5596 |
|
---|
[8756] | 5597 |
|
---|
[788] | 5598 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[22378] | 5599 | do :
|
---|
| 5600 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5601 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 5602 | eval as_val=\$$as_ac_var
|
---|
| 5603 | if test "x$as_val" = x""yes; then :
|
---|
[8756] | 5604 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 5605 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[8756] | 5606 | _ACEOF
|
---|
[8200] | 5607 |
|
---|
[687] | 5608 | fi
|
---|
| 5609 | done
|
---|
| 5610 |
|
---|
| 5611 | for ac_func in ftruncate strstr strcasecmp
|
---|
[22378] | 5612 | do :
|
---|
| 5613 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5614 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
|
---|
| 5615 | eval as_val=\$$as_ac_var
|
---|
| 5616 | if test "x$as_val" = x""yes; then :
|
---|
[8756] | 5617 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 5618 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[8756] | 5619 | _ACEOF
|
---|
[8200] | 5620 |
|
---|
[687] | 5621 | else
|
---|
[22378] | 5622 | case " $LIBOBJS " in
|
---|
[8756] | 5623 | *" $ac_func.$ac_objext "* ) ;;
|
---|
[22378] | 5624 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
---|
| 5625 | ;;
|
---|
[8756] | 5626 | esac
|
---|
| 5627 |
|
---|
[687] | 5628 | fi
|
---|
| 5629 | done
|
---|
| 5630 |
|
---|
[8200] | 5631 |
|
---|
| 5632 |
|
---|
[22378] | 5633 | ac_fn_c_check_func "$LINENO" "textdomain" "ac_cv_func_textdomain"
|
---|
| 5634 | if test "x$ac_cv_func_textdomain" = x""yes; then :
|
---|
| 5635 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h
|
---|
[8756] | 5636 |
|
---|
[3705] | 5637 | fi
|
---|
[8200] | 5638 |
|
---|
[3705] | 5639 |
|
---|
[687] | 5640 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 5641 | # ---------------------------------------------------------------------------
|
---|
[22378] | 5642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX needing gmalloc" >&5
|
---|
| 5643 | $as_echo_n "checking for HP-UX needing gmalloc... " >&6; }
|
---|
[687] | 5644 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[22378] | 5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 5646 | $as_echo "yes" >&6; }
|
---|
| 5647 | case " $LIBOBJS " in
|
---|
[8756] | 5648 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[22378] | 5649 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext"
|
---|
| 5650 | ;;
|
---|
[8756] | 5651 | esac
|
---|
| 5652 |
|
---|
[22378] | 5653 | $as_echo "#define HAVE_VALLOC 1" >>confdefs.h
|
---|
[687] | 5654 |
|
---|
| 5655 | else
|
---|
[22378] | 5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5657 | $as_echo "no" >&6; }
|
---|
| 5658 | for ac_func in valloc
|
---|
| 5659 | do :
|
---|
| 5660 | ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
|
---|
| 5661 | if test "x$ac_cv_func_valloc" = x""yes; then :
|
---|
[8756] | 5662 | cat >>confdefs.h <<_ACEOF
|
---|
[22378] | 5663 | #define HAVE_VALLOC 1
|
---|
[8756] | 5664 | _ACEOF
|
---|
[8200] | 5665 |
|
---|
[687] | 5666 | fi
|
---|
| 5667 | done
|
---|
| 5668 |
|
---|
| 5669 | fi
|
---|
| 5670 |
|
---|
[8200] | 5671 | # we cannot generate static libraries under Darwin
|
---|
[22378] | 5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple MacOS X/Darwin" >&5
|
---|
| 5673 | $as_echo_n "checking for Apple MacOS X/Darwin... " >&6; }
|
---|
[8200] | 5674 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[22378] | 5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 5676 | $as_echo "yes" >&6; }
|
---|
[8200] | 5677 | STATIC=""
|
---|
| 5678 | else
|
---|
[22378] | 5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5680 | $as_echo "no" >&6; }
|
---|
[8200] | 5681 | STATIC="-static "
|
---|
| 5682 | fi
|
---|
[3631] | 5683 |
|
---|
[8200] | 5684 |
|
---|
[22378] | 5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
|
---|
| 5686 | $as_echo_n "checking if malloc debugging is wanted... " >&6; }
|
---|
[8756] | 5687 |
|
---|
[22378] | 5688 | # Check whether --with-dmalloc was given.
|
---|
| 5689 | if test "${with_dmalloc+set}" = set; then :
|
---|
| 5690 | withval=$with_dmalloc; if test "$withval" = yes; then
|
---|
| 5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
| 5692 | $as_echo "yes" >&6; }
|
---|
| 5693 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
|
---|
[687] | 5694 |
|
---|
[700] | 5695 | LIBS="$LIBS -ldmalloc"
|
---|
| 5696 | LDFLAGS="$LDFLAGS -g"
|
---|
| 5697 | else
|
---|
[22378] | 5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5699 | $as_echo "no" >&6; }
|
---|
[700] | 5700 | fi
|
---|
| 5701 | else
|
---|
[22378] | 5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
| 5703 | $as_echo "no" >&6; }
|
---|
| 5704 | fi
|
---|
[700] | 5705 |
|
---|
| 5706 |
|
---|
[22378] | 5707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which of rx or regex is wanted" >&5
|
---|
| 5708 | $as_echo_n "checking which of rx or regex is wanted... " >&6; }
|
---|
| 5709 |
|
---|
| 5710 | # Check whether --with-regex was given.
|
---|
| 5711 | if test "${with_regex+set}" = set; then :
|
---|
| 5712 | withval=$with_regex; if test "$withval" = yes; then
|
---|
[700] | 5713 | ac_with_regex=1
|
---|
[22378] | 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: regex" >&5
|
---|
| 5715 | $as_echo "regex" >&6; }
|
---|
| 5716 | $as_echo "#define WITH_REGEX 1" >>confdefs.h
|
---|
[700] | 5717 |
|
---|
[22378] | 5718 | case " $LIBOBJS " in
|
---|
[8756] | 5719 | *" regex.$ac_objext "* ) ;;
|
---|
[22378] | 5720 | *) LIBOBJS="$LIBOBJS regex.$ac_objext"
|
---|
| 5721 | ;;
|
---|
[8756] | 5722 | esac
|
---|
| 5723 |
|
---|
[700] | 5724 | fi
|
---|
[22378] | 5725 | fi
|
---|
| 5726 |
|
---|
[700] | 5727 | if test -z "$ac_with_regex"; then
|
---|
[22378] | 5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: rx" >&5
|
---|
| 5729 | $as_echo "rx" >&6; }
|
---|
| 5730 | ac_fn_c_check_func "$LINENO" "re_rx_search" "ac_cv_func_re_rx_search"
|
---|
| 5731 | if test "x$ac_cv_func_re_rx_search" = x""yes; then :
|
---|
[8756] | 5732 |
|
---|
[700] | 5733 | else
|
---|
[22378] | 5734 | case " $LIBOBJS " in
|
---|
[8756] | 5735 | *" rx.$ac_objext "* ) ;;
|
---|
[22378] | 5736 | *) LIBOBJS="$LIBOBJS rx.$ac_objext"
|
---|
| 5737 | ;;
|
---|
[8756] | 5738 | esac
|
---|
| 5739 |
|
---|
[700] | 5740 | fi
|
---|
| 5741 |
|
---|
| 5742 | fi
|
---|
| 5743 |
|
---|
[8200] | 5744 |
|
---|
[687] | 5745 | # ---------------------------------------------------------------------------
|
---|
| 5746 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[22378] | 5747 | case " $LIBOBJS " in
|
---|
[8756] | 5748 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[22378] | 5749 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext"
|
---|
| 5750 | ;;
|
---|
[8756] | 5751 | esac
|
---|
| 5752 |
|
---|
[22378] | 5753 | case " $LIBOBJS " in
|
---|
[8756] | 5754 | *" error.$ac_objext "* ) ;;
|
---|
[22378] | 5755 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 5756 | ;;
|
---|
[8756] | 5757 | esac
|
---|
| 5758 |
|
---|
[687] | 5759 | fi
|
---|
| 5760 |
|
---|
[8200] | 5761 |
|
---|
[687] | 5762 | # ---------------------------------------------------------------------------
|
---|
| 5763 |
|
---|
[22378] | 5764 | ac_ext=cpp
|
---|
[687] | 5765 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 5766 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 5767 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 5768 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[687] | 5769 |
|
---|
[8200] | 5770 |
|
---|
[22378] | 5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that Perl 5 is available" >&5
|
---|
| 5772 | $as_echo_n "checking that Perl 5 is available... " >&6; }
|
---|
[687] | 5773 | success="no"
|
---|
| 5774 | pl_path="$PATH"
|
---|
| 5775 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 5776 | for pl_dir in $pl_path; do
|
---|
| 5777 | test -z "$pl_dir" && pl_dir=.
|
---|
| 5778 | if test -x $pl_dir/perl; then
|
---|
| 5779 | success="yes"
|
---|
| 5780 | break
|
---|
| 5781 | fi
|
---|
| 5782 | done
|
---|
| 5783 | IFS="$pl_save_ifs"
|
---|
| 5784 |
|
---|
| 5785 | if test $success = "yes"; then
|
---|
| 5786 | try=`perl configtest.pl` || try="0"
|
---|
| 5787 | try=`expr $try \> 5.000`
|
---|
| 5788 | if test $try = "1"; then
|
---|
[22378] | 5789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
|
---|
| 5790 | $as_echo "\"yes\"" >&6; }
|
---|
[687] | 5791 | else
|
---|
| 5792 | success="no"
|
---|
| 5793 | fi
|
---|
| 5794 | fi
|
---|
| 5795 |
|
---|
| 5796 | if test $success = "no"; then
|
---|
[22378] | 5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
|
---|
| 5798 | $as_echo "\"no\"" >&6; }
|
---|
| 5799 | as_fn_error "\"Perl 5 not available - cannot install\"" "$LINENO" 5
|
---|
[687] | 5800 | fi
|
---|
| 5801 |
|
---|
| 5802 | success=no
|
---|
[22378] | 5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"whether STL library has known faults\"" >&5
|
---|
| 5804 | $as_echo_n "checking \"whether STL library has known faults\"... " >&6; }
|
---|
[687] | 5805 |
|
---|
[18214] | 5806 |
|
---|
[22378] | 5807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5808 | /* end confdefs.h. */
|
---|
[687] | 5809 | #include <vector>
|
---|
| 5810 |
|
---|
[8756] | 5811 | int
|
---|
| 5812 | main ()
|
---|
| 5813 | {
|
---|
[687] | 5814 |
|
---|
[8756] | 5815 | ;
|
---|
| 5816 | return 0;
|
---|
| 5817 | }
|
---|
| 5818 | _ACEOF
|
---|
[22378] | 5819 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[687] | 5820 | success=yes
|
---|
| 5821 | fi
|
---|
[22378] | 5822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5823 |
|
---|
| 5824 | if test $success = "no"; then
|
---|
[22378] | 5825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5826 | /* end confdefs.h. */
|
---|
[687] | 5827 | #include <vector.h>
|
---|
| 5828 |
|
---|
[8756] | 5829 | int
|
---|
| 5830 | main ()
|
---|
| 5831 | {
|
---|
[687] | 5832 |
|
---|
[8756] | 5833 | ;
|
---|
| 5834 | return 0;
|
---|
| 5835 | }
|
---|
| 5836 | _ACEOF
|
---|
[22378] | 5837 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[687] | 5838 | success="yes"
|
---|
| 5839 | fi
|
---|
[22378] | 5840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5841 | fi
|
---|
| 5842 |
|
---|
| 5843 | if test $success = "no"; then
|
---|
[22378] | 5844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[8756] | 5845 | /* end confdefs.h. */
|
---|
[687] | 5846 | #include <ospace\\std\\vector>
|
---|
| 5847 |
|
---|
[8756] | 5848 | int
|
---|
| 5849 | main ()
|
---|
| 5850 | {
|
---|
[687] | 5851 |
|
---|
[8756] | 5852 | ;
|
---|
| 5853 | return 0;
|
---|
| 5854 | }
|
---|
| 5855 | _ACEOF
|
---|
[22378] | 5856 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[687] | 5857 | success="yes"
|
---|
| 5858 | fi
|
---|
[22378] | 5859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5860 | fi
|
---|
| 5861 |
|
---|
| 5862 | if test $success = yes; then
|
---|
[22378] | 5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
|
---|
| 5864 | $as_echo "\"no\"" >&6; }
|
---|
[687] | 5865 | else
|
---|
[22378] | 5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
|
---|
| 5867 | $as_echo "\"yes\"" >&6; }
|
---|
| 5868 | as_fn_error "\"STL Broken - Obtain newer version of GNU C Compiler\"" "$LINENO" 5
|
---|
[687] | 5869 | fi
|
---|
| 5870 |
|
---|
[2950] | 5871 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 5872 | # check for running bash under cygwin
|
---|
| 5873 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 5874 | then
|
---|
| 5875 | gsdlos=windows
|
---|
| 5876 | fi
|
---|
[687] | 5877 |
|
---|
[8200] | 5878 |
|
---|
[10856] | 5879 | # check for endianness
|
---|
[22378] | 5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
|
---|
| 5881 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
|
---|
| 5882 | if test "${ac_cv_c_bigendian+set}" = set; then :
|
---|
| 5883 | $as_echo_n "(cached) " >&6
|
---|
[10856] | 5884 | else
|
---|
[22378] | 5885 | ac_cv_c_bigendian=unknown
|
---|
| 5886 | # See if we're dealing with a universal compiler.
|
---|
| 5887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5888 | /* end confdefs.h. */
|
---|
| 5889 | #ifndef __APPLE_CC__
|
---|
| 5890 | not a universal capable compiler
|
---|
| 5891 | #endif
|
---|
| 5892 | typedef int dummy;
|
---|
| 5893 |
|
---|
[10856] | 5894 | _ACEOF
|
---|
[22378] | 5895 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 5896 |
|
---|
| 5897 | # Check for potential -arch flags. It is not universal unless
|
---|
| 5898 | # there are at least two -arch flags with different values.
|
---|
| 5899 | ac_arch=
|
---|
| 5900 | ac_prev=
|
---|
| 5901 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
|
---|
| 5902 | if test -n "$ac_prev"; then
|
---|
| 5903 | case $ac_word in
|
---|
| 5904 | i?86 | x86_64 | ppc | ppc64)
|
---|
| 5905 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
|
---|
| 5906 | ac_arch=$ac_word
|
---|
| 5907 | else
|
---|
| 5908 | ac_cv_c_bigendian=universal
|
---|
| 5909 | break
|
---|
| 5910 | fi
|
---|
| 5911 | ;;
|
---|
| 5912 | esac
|
---|
| 5913 | ac_prev=
|
---|
| 5914 | elif test "x$ac_word" = "x-arch"; then
|
---|
| 5915 | ac_prev=arch
|
---|
| 5916 | fi
|
---|
| 5917 | done
|
---|
| 5918 | fi
|
---|
| 5919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5920 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 5921 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 5922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10856] | 5923 | /* end confdefs.h. */
|
---|
| 5924 | #include <sys/types.h>
|
---|
[22378] | 5925 | #include <sys/param.h>
|
---|
[10856] | 5926 |
|
---|
| 5927 | int
|
---|
| 5928 | main ()
|
---|
| 5929 | {
|
---|
[22378] | 5930 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
|
---|
| 5931 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
|
---|
| 5932 | && LITTLE_ENDIAN)
|
---|
| 5933 | bogus endian macros
|
---|
| 5934 | #endif
|
---|
[10856] | 5935 |
|
---|
| 5936 | ;
|
---|
| 5937 | return 0;
|
---|
| 5938 | }
|
---|
| 5939 | _ACEOF
|
---|
[22378] | 5940 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[10856] | 5941 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
[22378] | 5942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10856] | 5943 | /* end confdefs.h. */
|
---|
| 5944 | #include <sys/types.h>
|
---|
[22378] | 5945 | #include <sys/param.h>
|
---|
[10856] | 5946 |
|
---|
| 5947 | int
|
---|
| 5948 | main ()
|
---|
| 5949 | {
|
---|
| 5950 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
[22378] | 5951 | not big endian
|
---|
| 5952 | #endif
|
---|
[10856] | 5953 |
|
---|
| 5954 | ;
|
---|
| 5955 | return 0;
|
---|
| 5956 | }
|
---|
| 5957 | _ACEOF
|
---|
[22378] | 5958 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[10856] | 5959 | ac_cv_c_bigendian=yes
|
---|
| 5960 | else
|
---|
[22378] | 5961 | ac_cv_c_bigendian=no
|
---|
[10856] | 5962 | fi
|
---|
[22378] | 5963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5964 | fi
|
---|
| 5965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5966 | fi
|
---|
| 5967 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 5968 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
|
---|
| 5969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 5970 | /* end confdefs.h. */
|
---|
| 5971 | #include <limits.h>
|
---|
[10856] | 5972 |
|
---|
[22378] | 5973 | int
|
---|
| 5974 | main ()
|
---|
| 5975 | {
|
---|
| 5976 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
|
---|
| 5977 | bogus endian macros
|
---|
| 5978 | #endif
|
---|
| 5979 |
|
---|
| 5980 | ;
|
---|
| 5981 | return 0;
|
---|
| 5982 | }
|
---|
[10856] | 5983 | _ACEOF
|
---|
[22378] | 5984 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 5985 | # It does; now see whether it defined to _BIG_ENDIAN or not.
|
---|
| 5986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10856] | 5987 | /* end confdefs.h. */
|
---|
[22378] | 5988 | #include <limits.h>
|
---|
| 5989 |
|
---|
[10856] | 5990 | int
|
---|
| 5991 | main ()
|
---|
| 5992 | {
|
---|
[22378] | 5993 | #ifndef _BIG_ENDIAN
|
---|
| 5994 | not big endian
|
---|
| 5995 | #endif
|
---|
| 5996 |
|
---|
[10856] | 5997 | ;
|
---|
| 5998 | return 0;
|
---|
| 5999 | }
|
---|
| 6000 | _ACEOF
|
---|
[22378] | 6001 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
[10856] | 6002 | ac_cv_c_bigendian=yes
|
---|
[22378] | 6003 | else
|
---|
| 6004 | ac_cv_c_bigendian=no
|
---|
[10856] | 6005 | fi
|
---|
[22378] | 6006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 6007 | fi
|
---|
[22378] | 6008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6009 | fi
|
---|
| 6010 | if test $ac_cv_c_bigendian = unknown; then
|
---|
| 6011 | # Compile a test program.
|
---|
| 6012 | if test "$cross_compiling" = yes; then :
|
---|
| 6013 | # Try to guess by grepping values from an object file.
|
---|
| 6014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
| 6015 | /* end confdefs.h. */
|
---|
| 6016 | short int ascii_mm[] =
|
---|
| 6017 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 6018 | short int ascii_ii[] =
|
---|
| 6019 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 6020 | int use_ascii (int i) {
|
---|
| 6021 | return ascii_mm[i] + ascii_ii[i];
|
---|
| 6022 | }
|
---|
| 6023 | short int ebcdic_ii[] =
|
---|
| 6024 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 6025 | short int ebcdic_mm[] =
|
---|
| 6026 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 6027 | int use_ebcdic (int i) {
|
---|
| 6028 | return ebcdic_mm[i] + ebcdic_ii[i];
|
---|
| 6029 | }
|
---|
| 6030 | extern int foo;
|
---|
[10856] | 6031 |
|
---|
[22378] | 6032 | int
|
---|
| 6033 | main ()
|
---|
| 6034 | {
|
---|
| 6035 | return use_ascii (foo) == use_ebcdic (foo);
|
---|
| 6036 | ;
|
---|
| 6037 | return 0;
|
---|
| 6038 | }
|
---|
| 6039 | _ACEOF
|
---|
| 6040 | if ac_fn_cxx_try_compile "$LINENO"; then :
|
---|
| 6041 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
|
---|
| 6042 | ac_cv_c_bigendian=yes
|
---|
| 6043 | fi
|
---|
| 6044 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 6045 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 6046 | ac_cv_c_bigendian=no
|
---|
| 6047 | else
|
---|
| 6048 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 6049 | ac_cv_c_bigendian=unknown
|
---|
| 6050 | fi
|
---|
| 6051 | fi
|
---|
[10856] | 6052 | fi
|
---|
[22378] | 6053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 6054 | else
|
---|
[22378] | 6055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
[10856] | 6056 | /* end confdefs.h. */
|
---|
[22378] | 6057 | $ac_includes_default
|
---|
[10856] | 6058 | int
|
---|
| 6059 | main ()
|
---|
| 6060 | {
|
---|
[22378] | 6061 |
|
---|
| 6062 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 6063 | union
|
---|
| 6064 | {
|
---|
| 6065 | long int l;
|
---|
| 6066 | char c[sizeof (long int)];
|
---|
| 6067 | } u;
|
---|
| 6068 | u.l = 1;
|
---|
| 6069 | return u.c[sizeof (long int) - 1] == 1;
|
---|
| 6070 |
|
---|
| 6071 | ;
|
---|
| 6072 | return 0;
|
---|
[10856] | 6073 | }
|
---|
| 6074 | _ACEOF
|
---|
[22378] | 6075 | if ac_fn_cxx_try_run "$LINENO"; then :
|
---|
[10856] | 6076 | ac_cv_c_bigendian=no
|
---|
| 6077 | else
|
---|
[22378] | 6078 | ac_cv_c_bigendian=yes
|
---|
[10856] | 6079 | fi
|
---|
[22378] | 6080 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
| 6081 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
[10856] | 6082 | fi
|
---|
[22378] | 6083 |
|
---|
| 6084 | fi
|
---|
[10856] | 6085 | fi
|
---|
[22378] | 6086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
|
---|
| 6087 | $as_echo "$ac_cv_c_bigendian" >&6; }
|
---|
| 6088 | case $ac_cv_c_bigendian in #(
|
---|
| 6089 | yes)
|
---|
| 6090 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
|
---|
| 6091 | ;; #(
|
---|
| 6092 | no)
|
---|
| 6093 | ;; #(
|
---|
| 6094 | universal)
|
---|
[10856] | 6095 |
|
---|
[22378] | 6096 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
|
---|
[10856] | 6097 |
|
---|
[22378] | 6098 | ;; #(
|
---|
| 6099 | *)
|
---|
| 6100 | as_fn_error "unknown endianness
|
---|
| 6101 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
|
---|
| 6102 | esac
|
---|
| 6103 |
|
---|
[687] | 6104 | # ---------------------------------------------------------------------------
|
---|
| 6105 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[22378] | 6106 | case " $LIBOBJS " in
|
---|
[8756] | 6107 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
[22378] | 6108 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext"
|
---|
| 6109 | ;;
|
---|
[8756] | 6110 | esac
|
---|
| 6111 |
|
---|
[22378] | 6112 | case " $LIBOBJS " in
|
---|
[8756] | 6113 | *" error.$ac_objext "* ) ;;
|
---|
[22378] | 6114 | *) LIBOBJS="$LIBOBJS error.$ac_objext"
|
---|
| 6115 | ;;
|
---|
[8756] | 6116 | esac
|
---|
| 6117 |
|
---|
[687] | 6118 | fi
|
---|
| 6119 |
|
---|
[3063] | 6120 | # ---------------------------------------------------------------------------
|
---|
[687] | 6121 |
|
---|
[3063] | 6122 | moduleDirs=""
|
---|
| 6123 | MODULEDIRS=""
|
---|
[16619] | 6124 | if test -d modules ; then
|
---|
[15300] | 6125 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 6126 | if test -d "$x"; then
|
---|
| 6127 | d="$x/Makefile.in"
|
---|
| 6128 | if test -e "$d"; then
|
---|
| 6129 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 6130 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 6131 | fi
|
---|
[3063] | 6132 | fi
|
---|
[15300] | 6133 | done
|
---|
| 6134 | echo "Making $moduleDirs in modules directory"
|
---|
[3063] | 6135 |
|
---|
[15300] | 6136 | fi
|
---|
[8200] | 6137 |
|
---|
[15300] | 6138 |
|
---|
[687] | 6139 | # ---------------------------------------------------------------------------
|
---|
[1675] | 6140 |
|
---|
[13777] | 6141 | # indexers needs a bindir option to get the binaries into the right place
|
---|
| 6142 | gsdlprefix=`pwd`
|
---|
[19264] | 6143 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
[20853] | 6144 |
|
---|
| 6145 |
|
---|
[21377] | 6146 | subdirs="$subdirs common-src"
|
---|
[8756] | 6147 |
|
---|
[21377] | 6148 | subdirs="$subdirs build-src"
|
---|
| 6149 |
|
---|
| 6150 |
|
---|
[3063] | 6151 | # the list of folders in the src folder
|
---|
[16572] | 6152 | srclist="common-src/Makefile \
|
---|
[21377] | 6153 | build-src/Makefile"
|
---|
| 6154 |
|
---|
| 6155 | if test -d runtime-src; then
|
---|
[22378] | 6156 | subdirs="$subdirs runtime-src"
|
---|
[21377] | 6157 |
|
---|
| 6158 | srclist="$srclist \
|
---|
[16572] | 6159 | runtime-src/Makefile"
|
---|
[21377] | 6160 | fi
|
---|
[3063] | 6161 |
|
---|
[22378] | 6162 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
| 6163 |
|
---|
[8756] | 6164 | cat >confcache <<\_ACEOF
|
---|
[562] | 6165 | # This file is a shell script that caches the results of configure
|
---|
| 6166 | # tests run on this system so they can be shared between configure
|
---|
[8756] | 6167 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 6168 | # It is not useful on other systems. If it contains results you don't
|
---|
| 6169 | # want to keep, you may remove or edit it.
|
---|
[562] | 6170 | #
|
---|
[8756] | 6171 | # config.status only pays attention to the cache file if you give it
|
---|
| 6172 | # the --recheck option to rerun configure.
|
---|
[562] | 6173 | #
|
---|
[8756] | 6174 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 6175 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 6176 | # following values.
|
---|
| 6177 |
|
---|
| 6178 | _ACEOF
|
---|
| 6179 |
|
---|
[562] | 6180 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 6181 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[22378] | 6182 | # So, we kill variables containing newlines.
|
---|
[562] | 6183 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 6184 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[22378] | 6185 | (
|
---|
| 6186 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
| 6187 | eval ac_val=\$$ac_var
|
---|
| 6188 | case $ac_val in #(
|
---|
| 6189 | *${as_nl}*)
|
---|
| 6190 | case $ac_var in #(
|
---|
| 6191 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
| 6192 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
| 6193 | esac
|
---|
| 6194 | case $ac_var in #(
|
---|
| 6195 | _ | IFS | as_nl) ;; #(
|
---|
| 6196 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
| 6197 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
| 6198 | esac ;;
|
---|
| 6199 | esac
|
---|
| 6200 | done
|
---|
| 6201 |
|
---|
[8756] | 6202 | (set) 2>&1 |
|
---|
[22378] | 6203 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
| 6204 | *${as_nl}ac_space=\ *)
|
---|
| 6205 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
| 6206 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
[8756] | 6207 | sed -n \
|
---|
| 6208 | "s/'/'\\\\''/g;
|
---|
| 6209 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[22378] | 6210 | ;; #(
|
---|
[8756] | 6211 | *)
|
---|
| 6212 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[22378] | 6213 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
[8756] | 6214 | ;;
|
---|
[22378] | 6215 | esac |
|
---|
| 6216 | sort
|
---|
| 6217 | ) |
|
---|
[8756] | 6218 | sed '
|
---|
[22378] | 6219 | /^ac_cv_env_/b end
|
---|
[8756] | 6220 | t clear
|
---|
[22378] | 6221 | :clear
|
---|
[8756] | 6222 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 6223 | t end
|
---|
[22378] | 6224 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 6225 | :end' >>confcache
|
---|
| 6226 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
| 6227 | if test -w "$cache_file"; then
|
---|
| 6228 | test "x$cache_file" != "x/dev/null" &&
|
---|
| 6229 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
| 6230 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
[8756] | 6231 | cat confcache >$cache_file
|
---|
[562] | 6232 | else
|
---|
[22378] | 6233 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
| 6234 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
[562] | 6235 | fi
|
---|
| 6236 | fi
|
---|
| 6237 | rm -f confcache
|
---|
| 6238 |
|
---|
| 6239 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 6240 | # Let make expand exec_prefix.
|
---|
| 6241 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 6242 |
|
---|
[687] | 6243 | DEFS=-DHAVE_CONFIG_H
|
---|
[562] | 6244 |
|
---|
[8756] | 6245 | ac_libobjs=
|
---|
| 6246 | ac_ltlibobjs=
|
---|
| 6247 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 6248 | # 1. Remove the extension, and $U if already installed.
|
---|
[22378] | 6249 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
| 6250 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
| 6251 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
| 6252 | # will be set to the directory where LIBOBJS objects are built.
|
---|
| 6253 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
| 6254 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
[8756] | 6255 | done
|
---|
| 6256 | LIBOBJS=$ac_libobjs
|
---|
| 6257 |
|
---|
| 6258 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 6259 |
|
---|
| 6260 |
|
---|
| 6261 |
|
---|
[22378] | 6262 |
|
---|
[562] | 6263 | : ${CONFIG_STATUS=./config.status}
|
---|
[22378] | 6264 | ac_write_fail=0
|
---|
[8756] | 6265 | ac_clean_files_save=$ac_clean_files
|
---|
| 6266 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[22378] | 6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
| 6268 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 6269 | as_write_fail=0
|
---|
| 6270 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
[8756] | 6271 | #! $SHELL
|
---|
| 6272 | # Generated by $as_me.
|
---|
[562] | 6273 | # Run this file to recreate the current configuration.
|
---|
| 6274 | # Compiler output produced by configure, useful for debugging
|
---|
[8756] | 6275 | # configure, is in config.log if it exists.
|
---|
[562] | 6276 |
|
---|
[8756] | 6277 | debug=false
|
---|
| 6278 | ac_cs_recheck=false
|
---|
| 6279 | ac_cs_silent=false
|
---|
[22378] | 6280 |
|
---|
[8756] | 6281 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
[22378] | 6282 | export SHELL
|
---|
| 6283 | _ASEOF
|
---|
| 6284 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
| 6285 | ## -------------------- ##
|
---|
| 6286 | ## M4sh Initialization. ##
|
---|
| 6287 | ## -------------------- ##
|
---|
[8756] | 6288 |
|
---|
[22378] | 6289 | # Be more Bourne compatible
|
---|
| 6290 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 6291 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
[8756] | 6292 | emulate sh
|
---|
| 6293 | NULLCMD=:
|
---|
[22378] | 6294 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
[8756] | 6295 | # is contrary to our usage. Disable this feature.
|
---|
| 6296 | alias -g '${1+"$@"}'='"$@"'
|
---|
[22378] | 6297 | setopt NO_GLOB_SUBST
|
---|
| 6298 | else
|
---|
| 6299 | case `(set -o) 2>/dev/null` in #(
|
---|
| 6300 | *posix*) :
|
---|
| 6301 | set -o posix ;; #(
|
---|
| 6302 | *) :
|
---|
| 6303 | ;;
|
---|
| 6304 | esac
|
---|
[8756] | 6305 | fi
|
---|
| 6306 |
|
---|
[22378] | 6307 |
|
---|
| 6308 | as_nl='
|
---|
| 6309 | '
|
---|
| 6310 | export as_nl
|
---|
| 6311 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
| 6312 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
| 6313 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 6314 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
| 6315 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
| 6316 | # but without wasting forks for bash or zsh.
|
---|
| 6317 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
| 6318 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 6319 | as_echo='print -r --'
|
---|
| 6320 | as_echo_n='print -rn --'
|
---|
| 6321 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
| 6322 | as_echo='printf %s\n'
|
---|
| 6323 | as_echo_n='printf %s'
|
---|
[8756] | 6324 | else
|
---|
[22378] | 6325 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
| 6326 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
| 6327 | as_echo_n='/usr/ucb/echo -n'
|
---|
| 6328 | else
|
---|
| 6329 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
| 6330 | as_echo_n_body='eval
|
---|
| 6331 | arg=$1;
|
---|
| 6332 | case $arg in #(
|
---|
| 6333 | *"$as_nl"*)
|
---|
| 6334 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
| 6335 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
| 6336 | esac;
|
---|
| 6337 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
| 6338 | '
|
---|
| 6339 | export as_echo_n_body
|
---|
| 6340 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
| 6341 | fi
|
---|
| 6342 | export as_echo_body
|
---|
| 6343 | as_echo='sh -c $as_echo_body as_echo'
|
---|
[8756] | 6344 | fi
|
---|
| 6345 |
|
---|
[22378] | 6346 | # The user is always right.
|
---|
| 6347 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 6348 | PATH_SEPARATOR=:
|
---|
| 6349 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
| 6350 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
| 6351 | PATH_SEPARATOR=';'
|
---|
| 6352 | }
|
---|
| 6353 | fi
|
---|
[8756] | 6354 |
|
---|
[22378] | 6355 |
|
---|
| 6356 | # IFS
|
---|
| 6357 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
| 6358 | # there to prevent editors from complaining about space-tab.
|
---|
| 6359 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
| 6360 | # splitting by setting IFS to empty value.)
|
---|
| 6361 | IFS=" "" $as_nl"
|
---|
| 6362 |
|
---|
| 6363 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
| 6364 | case $0 in #((
|
---|
| 6365 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 6366 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 6367 | for as_dir in $PATH
|
---|
| 6368 | do
|
---|
| 6369 | IFS=$as_save_IFS
|
---|
| 6370 | test -z "$as_dir" && as_dir=.
|
---|
| 6371 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 6372 | done
|
---|
| 6373 | IFS=$as_save_IFS
|
---|
| 6374 |
|
---|
| 6375 | ;;
|
---|
| 6376 | esac
|
---|
| 6377 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 6378 | # in which case we are not to be found in the path.
|
---|
| 6379 | if test "x$as_myself" = x; then
|
---|
| 6380 | as_myself=$0
|
---|
| 6381 | fi
|
---|
| 6382 | if test ! -f "$as_myself"; then
|
---|
| 6383 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
| 6384 | exit 1
|
---|
| 6385 | fi
|
---|
| 6386 |
|
---|
| 6387 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
| 6388 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
| 6389 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
| 6390 | # trigger a bug in pdksh 5.2.14.
|
---|
| 6391 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
| 6392 | do eval test x\${$as_var+set} = xset \
|
---|
| 6393 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
| 6394 | done
|
---|
[8756] | 6395 | PS1='$ '
|
---|
| 6396 | PS2='> '
|
---|
| 6397 | PS4='+ '
|
---|
| 6398 |
|
---|
| 6399 | # NLS nuisances.
|
---|
[22378] | 6400 | LC_ALL=C
|
---|
| 6401 | export LC_ALL
|
---|
| 6402 | LANGUAGE=C
|
---|
| 6403 | export LANGUAGE
|
---|
| 6404 |
|
---|
| 6405 | # CDPATH.
|
---|
| 6406 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
| 6407 |
|
---|
| 6408 |
|
---|
| 6409 | # as_fn_error ERROR [LINENO LOG_FD]
|
---|
| 6410 | # ---------------------------------
|
---|
| 6411 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
| 6412 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
| 6413 | # script with status $?, using 1 if that was 0.
|
---|
| 6414 | as_fn_error ()
|
---|
| 6415 | {
|
---|
| 6416 | as_status=$?; test $as_status -eq 0 && as_status=1
|
---|
| 6417 | if test "$3"; then
|
---|
| 6418 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
| 6419 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
|
---|
[8756] | 6420 | fi
|
---|
[22378] | 6421 | $as_echo "$as_me: error: $1" >&2
|
---|
| 6422 | as_fn_exit $as_status
|
---|
| 6423 | } # as_fn_error
|
---|
[562] | 6424 |
|
---|
[22378] | 6425 |
|
---|
| 6426 | # as_fn_set_status STATUS
|
---|
| 6427 | # -----------------------
|
---|
| 6428 | # Set $? to STATUS, without forking.
|
---|
| 6429 | as_fn_set_status ()
|
---|
| 6430 | {
|
---|
| 6431 | return $1
|
---|
| 6432 | } # as_fn_set_status
|
---|
| 6433 |
|
---|
| 6434 | # as_fn_exit STATUS
|
---|
| 6435 | # -----------------
|
---|
| 6436 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
| 6437 | as_fn_exit ()
|
---|
| 6438 | {
|
---|
| 6439 | set +e
|
---|
| 6440 | as_fn_set_status $1
|
---|
| 6441 | exit $1
|
---|
| 6442 | } # as_fn_exit
|
---|
| 6443 |
|
---|
| 6444 | # as_fn_unset VAR
|
---|
| 6445 | # ---------------
|
---|
| 6446 | # Portably unset VAR.
|
---|
| 6447 | as_fn_unset ()
|
---|
| 6448 | {
|
---|
| 6449 | { eval $1=; unset $1;}
|
---|
| 6450 | }
|
---|
| 6451 | as_unset=as_fn_unset
|
---|
| 6452 | # as_fn_append VAR VALUE
|
---|
| 6453 | # ----------------------
|
---|
| 6454 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
| 6455 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
| 6456 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
| 6457 | # implementations.
|
---|
| 6458 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
| 6459 | eval 'as_fn_append ()
|
---|
| 6460 | {
|
---|
| 6461 | eval $1+=\$2
|
---|
| 6462 | }'
|
---|
| 6463 | else
|
---|
| 6464 | as_fn_append ()
|
---|
| 6465 | {
|
---|
| 6466 | eval $1=\$$1\$2
|
---|
| 6467 | }
|
---|
| 6468 | fi # as_fn_append
|
---|
| 6469 |
|
---|
| 6470 | # as_fn_arith ARG...
|
---|
| 6471 | # ------------------
|
---|
| 6472 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
| 6473 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
| 6474 | # must be portable across $(()) and expr.
|
---|
| 6475 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
| 6476 | eval 'as_fn_arith ()
|
---|
| 6477 | {
|
---|
| 6478 | as_val=$(( $* ))
|
---|
| 6479 | }'
|
---|
| 6480 | else
|
---|
| 6481 | as_fn_arith ()
|
---|
| 6482 | {
|
---|
| 6483 | as_val=`expr "$@" || test $? -eq 1`
|
---|
| 6484 | }
|
---|
| 6485 | fi # as_fn_arith
|
---|
| 6486 |
|
---|
| 6487 |
|
---|
| 6488 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
| 6489 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
[8756] | 6490 | as_expr=expr
|
---|
| 6491 | else
|
---|
| 6492 | as_expr=false
|
---|
| 6493 | fi
|
---|
[562] | 6494 |
|
---|
[22378] | 6495 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
[8756] | 6496 | as_basename=basename
|
---|
| 6497 | else
|
---|
| 6498 | as_basename=false
|
---|
| 6499 | fi
|
---|
[562] | 6500 |
|
---|
[22378] | 6501 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
| 6502 | as_dirname=dirname
|
---|
| 6503 | else
|
---|
| 6504 | as_dirname=false
|
---|
| 6505 | fi
|
---|
[562] | 6506 |
|
---|
[22378] | 6507 | as_me=`$as_basename -- "$0" ||
|
---|
[8756] | 6508 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 6509 | X"$0" : 'X\(//\)$' \| \
|
---|
[22378] | 6510 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 6511 | $as_echo X/"$0" |
|
---|
| 6512 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
| 6513 | s//\1/
|
---|
| 6514 | q
|
---|
| 6515 | }
|
---|
| 6516 | /^X\/\(\/\/\)$/{
|
---|
| 6517 | s//\1/
|
---|
| 6518 | q
|
---|
| 6519 | }
|
---|
| 6520 | /^X\/\(\/\).*/{
|
---|
| 6521 | s//\1/
|
---|
| 6522 | q
|
---|
| 6523 | }
|
---|
| 6524 | s/.*/./; q'`
|
---|
[3631] | 6525 |
|
---|
[20853] | 6526 | # Avoid depending upon Character Ranges.
|
---|
| 6527 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 6528 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 6529 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 6530 | as_cr_digits='0123456789'
|
---|
| 6531 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[8756] | 6532 |
|
---|
[22378] | 6533 | ECHO_C= ECHO_N= ECHO_T=
|
---|
| 6534 | case `echo -n x` in #(((((
|
---|
| 6535 | -n*)
|
---|
| 6536 | case `echo 'xy\c'` in
|
---|
| 6537 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
| 6538 | xy) ECHO_C='\c';;
|
---|
| 6539 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
| 6540 | ECHO_T=' ';;
|
---|
| 6541 | esac;;
|
---|
| 6542 | *)
|
---|
| 6543 | ECHO_N='-n';;
|
---|
[8756] | 6544 | esac
|
---|
| 6545 |
|
---|
[22378] | 6546 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 6547 | if test -d conf$$.dir; then
|
---|
| 6548 | rm -f conf$$.dir/conf$$.file
|
---|
[8756] | 6549 | else
|
---|
[22378] | 6550 | rm -f conf$$.dir
|
---|
| 6551 | mkdir conf$$.dir 2>/dev/null
|
---|
[8756] | 6552 | fi
|
---|
[22378] | 6553 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
| 6554 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6555 | as_ln_s='ln -s'
|
---|
| 6556 | # ... but there are two gotchas:
|
---|
| 6557 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
| 6558 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
| 6559 | # In both cases, we have to default to `cp -p'.
|
---|
| 6560 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
| 6561 | as_ln_s='cp -p'
|
---|
| 6562 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6563 | as_ln_s=ln
|
---|
| 6564 | else
|
---|
[8756] | 6565 | as_ln_s='cp -p'
|
---|
[20853] | 6566 | fi
|
---|
[8756] | 6567 | else
|
---|
| 6568 | as_ln_s='cp -p'
|
---|
| 6569 | fi
|
---|
[22378] | 6570 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
| 6571 | rmdir conf$$.dir 2>/dev/null
|
---|
[8756] | 6572 |
|
---|
[22378] | 6573 |
|
---|
| 6574 | # as_fn_mkdir_p
|
---|
| 6575 | # -------------
|
---|
| 6576 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
| 6577 | as_fn_mkdir_p ()
|
---|
| 6578 | {
|
---|
| 6579 |
|
---|
| 6580 | case $as_dir in #(
|
---|
| 6581 | -*) as_dir=./$as_dir;;
|
---|
| 6582 | esac
|
---|
| 6583 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
| 6584 | as_dirs=
|
---|
| 6585 | while :; do
|
---|
| 6586 | case $as_dir in #(
|
---|
| 6587 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
| 6588 | *) as_qdir=$as_dir;;
|
---|
| 6589 | esac
|
---|
| 6590 | as_dirs="'$as_qdir' $as_dirs"
|
---|
| 6591 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
| 6592 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 6593 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 6594 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 6595 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 6596 | $as_echo X"$as_dir" |
|
---|
| 6597 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 6598 | s//\1/
|
---|
| 6599 | q
|
---|
| 6600 | }
|
---|
| 6601 | /^X\(\/\/\)[^/].*/{
|
---|
| 6602 | s//\1/
|
---|
| 6603 | q
|
---|
| 6604 | }
|
---|
| 6605 | /^X\(\/\/\)$/{
|
---|
| 6606 | s//\1/
|
---|
| 6607 | q
|
---|
| 6608 | }
|
---|
| 6609 | /^X\(\/\).*/{
|
---|
| 6610 | s//\1/
|
---|
| 6611 | q
|
---|
| 6612 | }
|
---|
| 6613 | s/.*/./; q'`
|
---|
| 6614 | test -d "$as_dir" && break
|
---|
| 6615 | done
|
---|
| 6616 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
| 6617 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
|
---|
| 6618 |
|
---|
| 6619 |
|
---|
| 6620 | } # as_fn_mkdir_p
|
---|
[8756] | 6621 | if mkdir -p . 2>/dev/null; then
|
---|
[22378] | 6622 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
[8756] | 6623 | else
|
---|
| 6624 | test -d ./-p && rmdir ./-p
|
---|
| 6625 | as_mkdir_p=false
|
---|
| 6626 | fi
|
---|
| 6627 |
|
---|
[22378] | 6628 | if test -x / >/dev/null 2>&1; then
|
---|
| 6629 | as_test_x='test -x'
|
---|
| 6630 | else
|
---|
| 6631 | if ls -dL / >/dev/null 2>&1; then
|
---|
| 6632 | as_ls_L_option=L
|
---|
| 6633 | else
|
---|
| 6634 | as_ls_L_option=
|
---|
| 6635 | fi
|
---|
| 6636 | as_test_x='
|
---|
| 6637 | eval sh -c '\''
|
---|
| 6638 | if test -d "$1"; then
|
---|
| 6639 | test -d "$1/.";
|
---|
| 6640 | else
|
---|
| 6641 | case $1 in #(
|
---|
| 6642 | -*)set "./$1";;
|
---|
| 6643 | esac;
|
---|
| 6644 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
|
---|
| 6645 | ???[sx]*):;;*)false;;esac;fi
|
---|
| 6646 | '\'' sh
|
---|
| 6647 | '
|
---|
| 6648 | fi
|
---|
| 6649 | as_executable_p=$as_test_x
|
---|
[8756] | 6650 |
|
---|
| 6651 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 6652 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6653 |
|
---|
| 6654 | # Sed expression to map a string onto a valid variable name.
|
---|
| 6655 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6656 |
|
---|
| 6657 |
|
---|
| 6658 | exec 6>&1
|
---|
[22378] | 6659 | ## ----------------------------------- ##
|
---|
| 6660 | ## Main body of $CONFIG_STATUS script. ##
|
---|
| 6661 | ## ----------------------------------- ##
|
---|
| 6662 | _ASEOF
|
---|
| 6663 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
[8756] | 6664 |
|
---|
[22378] | 6665 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6666 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
[8756] | 6667 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[22378] | 6668 | # values after options handling.
|
---|
| 6669 | ac_log="
|
---|
[8756] | 6670 | This file was extended by $as_me, which was
|
---|
[22378] | 6671 | generated by GNU Autoconf 2.65. Invocation command line was
|
---|
[8756] | 6672 |
|
---|
| 6673 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 6674 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 6675 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 6676 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 6677 | $ $0 $@
|
---|
| 6678 |
|
---|
[22378] | 6679 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 6680 | "
|
---|
| 6681 |
|
---|
[8756] | 6682 | _ACEOF
|
---|
| 6683 |
|
---|
[22378] | 6684 | case $ac_config_files in *"
|
---|
| 6685 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
| 6686 | esac
|
---|
[8756] | 6687 |
|
---|
[22378] | 6688 | case $ac_config_headers in *"
|
---|
| 6689 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
| 6690 | esac
|
---|
[8756] | 6691 |
|
---|
[20853] | 6692 |
|
---|
[22378] | 6693 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6694 | # Files that config.status was made for.
|
---|
| 6695 | config_files="$ac_config_files"
|
---|
| 6696 | config_headers="$ac_config_headers"
|
---|
[20853] | 6697 |
|
---|
[22378] | 6698 | _ACEOF
|
---|
[20853] | 6699 |
|
---|
[22378] | 6700 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[8756] | 6701 | ac_cs_usage="\
|
---|
[22378] | 6702 | \`$as_me' instantiates files and other configuration actions
|
---|
| 6703 | from templates according to the current configuration. Unless the files
|
---|
| 6704 | and actions are specified as TAGs, all are instantiated by default.
|
---|
[8756] | 6705 |
|
---|
[22378] | 6706 | Usage: $0 [OPTION]... [TAG]...
|
---|
[8756] | 6707 |
|
---|
| 6708 | -h, --help print this help, then exit
|
---|
[22378] | 6709 | -V, --version print version number and configuration settings, then exit
|
---|
| 6710 | --config print configuration, then exit
|
---|
| 6711 | -q, --quiet, --silent
|
---|
| 6712 | do not print progress messages
|
---|
[8756] | 6713 | -d, --debug don't remove temporary files
|
---|
| 6714 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
[22378] | 6715 | --file=FILE[:TEMPLATE]
|
---|
| 6716 | instantiate the configuration file FILE
|
---|
| 6717 | --header=FILE[:TEMPLATE]
|
---|
| 6718 | instantiate the configuration header FILE
|
---|
[8756] | 6719 |
|
---|
| 6720 | Configuration files:
|
---|
| 6721 | $config_files
|
---|
| 6722 |
|
---|
| 6723 | Configuration headers:
|
---|
| 6724 | $config_headers
|
---|
| 6725 |
|
---|
[22378] | 6726 | Report bugs to the package provider."
|
---|
| 6727 |
|
---|
[20853] | 6728 | _ACEOF
|
---|
[22378] | 6729 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6730 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
[8756] | 6731 | ac_cs_version="\\
|
---|
| 6732 | config.status
|
---|
[22378] | 6733 | configured by $0, generated by GNU Autoconf 2.65,
|
---|
| 6734 | with options \\"\$ac_cs_config\\"
|
---|
[8756] | 6735 |
|
---|
[22378] | 6736 | Copyright (C) 2009 Free Software Foundation, Inc.
|
---|
[8756] | 6737 | This config.status script is free software; the Free Software Foundation
|
---|
| 6738 | gives unlimited permission to copy, distribute and modify it."
|
---|
[22378] | 6739 |
|
---|
| 6740 | ac_pwd='$ac_pwd'
|
---|
| 6741 | srcdir='$srcdir'
|
---|
| 6742 | INSTALL='$INSTALL'
|
---|
| 6743 | AWK='$AWK'
|
---|
| 6744 | test -n "\$AWK" || AWK=awk
|
---|
[8756] | 6745 | _ACEOF
|
---|
| 6746 |
|
---|
[22378] | 6747 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6748 | # The default lists apply if the user does not specify any file.
|
---|
[8756] | 6749 | ac_need_defaults=:
|
---|
| 6750 | while test $# != 0
|
---|
| 6751 | do
|
---|
| 6752 | case $1 in
|
---|
| 6753 | --*=*)
|
---|
[22378] | 6754 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
| 6755 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
[8756] | 6756 | ac_shift=:
|
---|
| 6757 | ;;
|
---|
[22378] | 6758 | *)
|
---|
[8756] | 6759 | ac_option=$1
|
---|
| 6760 | ac_optarg=$2
|
---|
| 6761 | ac_shift=shift
|
---|
| 6762 | ;;
|
---|
| 6763 | esac
|
---|
| 6764 |
|
---|
| 6765 | case $ac_option in
|
---|
| 6766 | # Handling of the options.
|
---|
| 6767 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 6768 | ac_cs_recheck=: ;;
|
---|
[22378] | 6769 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
| 6770 | $as_echo "$ac_cs_version"; exit ;;
|
---|
| 6771 | --config | --confi | --conf | --con | --co | --c )
|
---|
| 6772 | $as_echo "$ac_cs_config"; exit ;;
|
---|
| 6773 | --debug | --debu | --deb | --de | --d | -d )
|
---|
[8756] | 6774 | debug=: ;;
|
---|
| 6775 | --file | --fil | --fi | --f )
|
---|
| 6776 | $ac_shift
|
---|
[22378] | 6777 | case $ac_optarg in
|
---|
| 6778 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 6779 | esac
|
---|
| 6780 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
[8756] | 6781 | ac_need_defaults=false;;
|
---|
| 6782 | --header | --heade | --head | --hea )
|
---|
| 6783 | $ac_shift
|
---|
[22378] | 6784 | case $ac_optarg in
|
---|
| 6785 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 6786 | esac
|
---|
| 6787 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
[8756] | 6788 | ac_need_defaults=false;;
|
---|
[22378] | 6789 | --he | --h)
|
---|
| 6790 | # Conflict between --help and --header
|
---|
| 6791 | as_fn_error "ambiguous option: \`$1'
|
---|
| 6792 | Try \`$0 --help' for more information.";;
|
---|
| 6793 | --help | --hel | -h )
|
---|
| 6794 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
[8756] | 6795 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 6796 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 6797 | ac_cs_silent=: ;;
|
---|
| 6798 |
|
---|
| 6799 | # This is an error.
|
---|
[22378] | 6800 | -*) as_fn_error "unrecognized option: \`$1'
|
---|
| 6801 | Try \`$0 --help' for more information." ;;
|
---|
[8756] | 6802 |
|
---|
[22378] | 6803 | *) as_fn_append ac_config_targets " $1"
|
---|
| 6804 | ac_need_defaults=false ;;
|
---|
[8756] | 6805 |
|
---|
| 6806 | esac
|
---|
| 6807 | shift
|
---|
[8200] | 6808 | done
|
---|
[8756] | 6809 |
|
---|
| 6810 | ac_configure_extra_args=
|
---|
| 6811 |
|
---|
| 6812 | if $ac_cs_silent; then
|
---|
| 6813 | exec 6>/dev/null
|
---|
| 6814 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
[8200] | 6815 | fi
|
---|
[562] | 6816 |
|
---|
[8756] | 6817 | _ACEOF
|
---|
[22378] | 6818 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
[8756] | 6819 | if \$ac_cs_recheck; then
|
---|
[22378] | 6820 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 6821 | shift
|
---|
| 6822 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
| 6823 | CONFIG_SHELL='$SHELL'
|
---|
| 6824 | export CONFIG_SHELL
|
---|
| 6825 | exec "\$@"
|
---|
[8756] | 6826 | fi
|
---|
[8200] | 6827 |
|
---|
[8756] | 6828 | _ACEOF
|
---|
[22378] | 6829 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 6830 | exec 5>>config.log
|
---|
| 6831 | {
|
---|
| 6832 | echo
|
---|
| 6833 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 6834 | ## Running $as_me. ##
|
---|
| 6835 | _ASBOX
|
---|
| 6836 | $as_echo "$ac_log"
|
---|
| 6837 | } >&5
|
---|
[8756] | 6838 |
|
---|
[22378] | 6839 | _ACEOF
|
---|
| 6840 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6841 | _ACEOF
|
---|
[8756] | 6842 |
|
---|
[22378] | 6843 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[20853] | 6844 |
|
---|
[22378] | 6845 | # Handling of arguments.
|
---|
[8756] | 6846 | for ac_config_target in $ac_config_targets
|
---|
| 6847 | do
|
---|
[22378] | 6848 | case $ac_config_target in
|
---|
| 6849 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 6850 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 6851 | "$srclist") CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 6852 | "$moduleDirs") CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 6853 |
|
---|
| 6854 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
[562] | 6855 | esac
|
---|
[8756] | 6856 | done
|
---|
[562] | 6857 |
|
---|
[22378] | 6858 |
|
---|
[8756] | 6859 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 6860 | # then the envvar interface is used. Set only those that are not.
|
---|
| 6861 | # We use the long form for the default assignment because of an extremely
|
---|
| 6862 | # bizarre bug on SunOS 4.1.3.
|
---|
| 6863 | if $ac_need_defaults; then
|
---|
| 6864 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 6865 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 6866 | fi
|
---|
[8200] | 6867 |
|
---|
[8756] | 6868 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[22378] | 6869 | # simply because there is no reason against having it here, and in addition,
|
---|
[8756] | 6870 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[22378] | 6871 | # Hook for its removal unless debugging.
|
---|
| 6872 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
| 6873 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
[8756] | 6874 | $debug ||
|
---|
| 6875 | {
|
---|
[22378] | 6876 | tmp=
|
---|
| 6877 | trap 'exit_status=$?
|
---|
| 6878 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
| 6879 | ' 0
|
---|
| 6880 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
[8756] | 6881 | }
|
---|
| 6882 | # Create a (secure) tmp directory for tmp files.
|
---|
| 6883 |
|
---|
| 6884 | {
|
---|
[22378] | 6885 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
[8756] | 6886 | test -n "$tmp" && test -d "$tmp"
|
---|
| 6887 | } ||
|
---|
| 6888 | {
|
---|
[22378] | 6889 | tmp=./conf$$-$RANDOM
|
---|
| 6890 | (umask 077 && mkdir "$tmp")
|
---|
| 6891 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
|
---|
| 6892 |
|
---|
| 6893 | # Set up the scripts for CONFIG_FILES section.
|
---|
| 6894 | # No need to generate them if there are no CONFIG_FILES.
|
---|
| 6895 | # This happens for instance with `./config.status config.h'.
|
---|
| 6896 | if test -n "$CONFIG_FILES"; then
|
---|
| 6897 |
|
---|
| 6898 |
|
---|
| 6899 | ac_cr=`echo X | tr X '\015'`
|
---|
| 6900 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
| 6901 | # But we know of no other shell where ac_cr would be empty at this
|
---|
| 6902 | # point, so we can use a bashism as a fallback.
|
---|
| 6903 | if test "x$ac_cr" = x; then
|
---|
| 6904 | eval ac_cr=\$\'\\r\'
|
---|
| 6905 | fi
|
---|
| 6906 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
| 6907 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
| 6908 | ac_cs_awk_cr='\r'
|
---|
| 6909 | else
|
---|
| 6910 | ac_cs_awk_cr=$ac_cr
|
---|
| 6911 | fi
|
---|
| 6912 |
|
---|
| 6913 | echo 'BEGIN {' >"$tmp/subs1.awk" &&
|
---|
| 6914 | _ACEOF
|
---|
| 6915 |
|
---|
| 6916 |
|
---|
[8756] | 6917 | {
|
---|
[22378] | 6918 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
| 6919 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
| 6920 | echo "_ACEOF"
|
---|
| 6921 | } >conf$$subs.sh ||
|
---|
| 6922 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
| 6923 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
|
---|
| 6924 | ac_delim='%!_!# '
|
---|
| 6925 | for ac_last_try in false false false false false :; do
|
---|
| 6926 | . ./conf$$subs.sh ||
|
---|
| 6927 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
| 6928 |
|
---|
| 6929 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
| 6930 | if test $ac_delim_n = $ac_delim_num; then
|
---|
| 6931 | break
|
---|
| 6932 | elif $ac_last_try; then
|
---|
| 6933 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
| 6934 | else
|
---|
| 6935 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
| 6936 | fi
|
---|
| 6937 | done
|
---|
| 6938 | rm -f conf$$subs.sh
|
---|
| 6939 |
|
---|
| 6940 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6941 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
|
---|
| 6942 | _ACEOF
|
---|
| 6943 | sed -n '
|
---|
| 6944 | h
|
---|
| 6945 | s/^/S["/; s/!.*/"]=/
|
---|
| 6946 | p
|
---|
| 6947 | g
|
---|
| 6948 | s/^[^!]*!//
|
---|
| 6949 | :repl
|
---|
| 6950 | t repl
|
---|
| 6951 | s/'"$ac_delim"'$//
|
---|
| 6952 | t delim
|
---|
| 6953 | :nl
|
---|
| 6954 | h
|
---|
| 6955 | s/\(.\{148\}\)..*/\1/
|
---|
| 6956 | t more1
|
---|
| 6957 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
| 6958 | p
|
---|
| 6959 | n
|
---|
| 6960 | b repl
|
---|
| 6961 | :more1
|
---|
| 6962 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 6963 | p
|
---|
| 6964 | g
|
---|
| 6965 | s/.\{148\}//
|
---|
| 6966 | t nl
|
---|
| 6967 | :delim
|
---|
| 6968 | h
|
---|
| 6969 | s/\(.\{148\}\)..*/\1/
|
---|
| 6970 | t more2
|
---|
| 6971 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
| 6972 | p
|
---|
| 6973 | b
|
---|
| 6974 | :more2
|
---|
| 6975 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
| 6976 | p
|
---|
| 6977 | g
|
---|
| 6978 | s/.\{148\}//
|
---|
| 6979 | t delim
|
---|
| 6980 | ' <conf$$subs.awk | sed '
|
---|
| 6981 | /^[^""]/{
|
---|
| 6982 | N
|
---|
| 6983 | s/\n//
|
---|
[8756] | 6984 | }
|
---|
[22378] | 6985 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 6986 | rm -f conf$$subs.awk
|
---|
| 6987 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 6988 | _ACAWK
|
---|
| 6989 | cat >>"\$tmp/subs1.awk" <<_ACAWK &&
|
---|
| 6990 | for (key in S) S_is_set[key] = 1
|
---|
| 6991 | FS = ""
|
---|
[8756] | 6992 |
|
---|
[22378] | 6993 | }
|
---|
| 6994 | {
|
---|
| 6995 | line = $ 0
|
---|
| 6996 | nfields = split(line, field, "@")
|
---|
| 6997 | substed = 0
|
---|
| 6998 | len = length(field[1])
|
---|
| 6999 | for (i = 2; i < nfields; i++) {
|
---|
| 7000 | key = field[i]
|
---|
| 7001 | keylen = length(key)
|
---|
| 7002 | if (S_is_set[key]) {
|
---|
| 7003 | value = S[key]
|
---|
| 7004 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
| 7005 | len += length(value) + length(field[++i])
|
---|
| 7006 | substed = 1
|
---|
| 7007 | } else
|
---|
| 7008 | len += 1 + keylen
|
---|
| 7009 | }
|
---|
| 7010 |
|
---|
| 7011 | print line
|
---|
| 7012 | }
|
---|
| 7013 |
|
---|
| 7014 | _ACAWK
|
---|
[20853] | 7015 | _ACEOF
|
---|
[22378] | 7016 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7017 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
| 7018 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
| 7019 | else
|
---|
| 7020 | cat
|
---|
| 7021 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
|
---|
| 7022 | || as_fn_error "could not setup config files machinery" "$LINENO" 5
|
---|
| 7023 | _ACEOF
|
---|
[20853] | 7024 |
|
---|
[22378] | 7025 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7026 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7027 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7028 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7029 | if test "x$srcdir" = x.; then
|
---|
| 7030 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7031 | s/:*\$(srcdir):*/:/
|
---|
| 7032 | s/:*\${srcdir}:*/:/
|
---|
| 7033 | s/:*@srcdir@:*/:/
|
---|
| 7034 | s/^\([^=]*=[ ]*\):*/\1/
|
---|
| 7035 | s/:*$//
|
---|
| 7036 | s/^[^=]*=[ ]*$//
|
---|
| 7037 | }'
|
---|
| 7038 | fi
|
---|
[20853] | 7039 |
|
---|
[22378] | 7040 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7041 | fi # test -n "$CONFIG_FILES"
|
---|
[8756] | 7042 |
|
---|
[22378] | 7043 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
| 7044 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
| 7045 | # This happens for instance with `./config.status Makefile'.
|
---|
| 7046 | if test -n "$CONFIG_HEADERS"; then
|
---|
| 7047 | cat >"$tmp/defines.awk" <<\_ACAWK ||
|
---|
| 7048 | BEGIN {
|
---|
[8756] | 7049 | _ACEOF
|
---|
| 7050 |
|
---|
[22378] | 7051 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
| 7052 | # here-document in config.status, that substitutes the proper values into
|
---|
| 7053 | # config.h.in to produce config.h.
|
---|
| 7054 |
|
---|
| 7055 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
| 7056 | # handling of long lines.
|
---|
| 7057 | ac_delim='%!_!# '
|
---|
| 7058 | for ac_last_try in false false :; do
|
---|
| 7059 | ac_t=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
| 7060 | if test -z "$ac_t"; then
|
---|
| 7061 | break
|
---|
| 7062 | elif $ac_last_try; then
|
---|
| 7063 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
| 7064 | else
|
---|
| 7065 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
[562] | 7066 | fi
|
---|
[22378] | 7067 | done
|
---|
[562] | 7068 |
|
---|
[22378] | 7069 | # For the awk script, D is an array of macro values keyed by name,
|
---|
| 7070 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
| 7071 | # newline sequences.
|
---|
| 7072 |
|
---|
| 7073 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
| 7074 | sed -n '
|
---|
| 7075 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7076 | t rset
|
---|
| 7077 | :rset
|
---|
| 7078 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
| 7079 | t def
|
---|
| 7080 | d
|
---|
| 7081 | :def
|
---|
| 7082 | s/\\$//
|
---|
| 7083 | t bsnl
|
---|
| 7084 | s/["\\]/\\&/g
|
---|
| 7085 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7086 | D["\1"]=" \3"/p
|
---|
| 7087 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
| 7088 | d
|
---|
| 7089 | :bsnl
|
---|
| 7090 | s/["\\]/\\&/g
|
---|
| 7091 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
| 7092 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
| 7093 | t cont
|
---|
| 7094 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
| 7095 | t cont
|
---|
| 7096 | d
|
---|
| 7097 | :cont
|
---|
| 7098 | n
|
---|
| 7099 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
| 7100 | t clear
|
---|
| 7101 | :clear
|
---|
| 7102 | s/\\$//
|
---|
| 7103 | t bsnlc
|
---|
| 7104 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
| 7105 | d
|
---|
| 7106 | :bsnlc
|
---|
| 7107 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
| 7108 | b cont
|
---|
| 7109 | ' <confdefs.h | sed '
|
---|
| 7110 | s/'"$ac_delim"'/"\\\
|
---|
| 7111 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
| 7112 |
|
---|
| 7113 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7114 | for (key in D) D_is_set[key] = 1
|
---|
| 7115 | FS = ""
|
---|
| 7116 | }
|
---|
| 7117 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
| 7118 | line = \$ 0
|
---|
| 7119 | split(line, arg, " ")
|
---|
| 7120 | if (arg[1] == "#") {
|
---|
| 7121 | defundef = arg[2]
|
---|
| 7122 | mac1 = arg[3]
|
---|
| 7123 | } else {
|
---|
| 7124 | defundef = substr(arg[1], 2)
|
---|
| 7125 | mac1 = arg[2]
|
---|
| 7126 | }
|
---|
| 7127 | split(mac1, mac2, "(") #)
|
---|
| 7128 | macro = mac2[1]
|
---|
| 7129 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
| 7130 | if (D_is_set[macro]) {
|
---|
| 7131 | # Preserve the white space surrounding the "#".
|
---|
| 7132 | print prefix "define", macro P[macro] D[macro]
|
---|
| 7133 | next
|
---|
| 7134 | } else {
|
---|
| 7135 | # Replace #undef with comments. This is necessary, for example,
|
---|
| 7136 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 7137 | # on some systems where configure will not decide to define it.
|
---|
| 7138 | if (defundef == "undef") {
|
---|
| 7139 | print "/*", prefix defundef, macro, "*/"
|
---|
| 7140 | next
|
---|
| 7141 | }
|
---|
| 7142 | }
|
---|
| 7143 | }
|
---|
| 7144 | { print }
|
---|
| 7145 | _ACAWK
|
---|
[8756] | 7146 | _ACEOF
|
---|
[22378] | 7147 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7148 | as_fn_error "could not setup config headers machinery" "$LINENO" 5
|
---|
| 7149 | fi # test -n "$CONFIG_HEADERS"
|
---|
| 7150 |
|
---|
| 7151 |
|
---|
| 7152 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
|
---|
| 7153 | shift
|
---|
| 7154 | for ac_tag
|
---|
| 7155 | do
|
---|
| 7156 | case $ac_tag in
|
---|
| 7157 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
[562] | 7158 | esac
|
---|
[22378] | 7159 | case $ac_mode$ac_tag in
|
---|
| 7160 | :[FHL]*:*);;
|
---|
| 7161 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
| 7162 | :[FH]-) ac_tag=-:-;;
|
---|
| 7163 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
| 7164 | esac
|
---|
| 7165 | ac_save_IFS=$IFS
|
---|
| 7166 | IFS=:
|
---|
| 7167 | set x $ac_tag
|
---|
| 7168 | IFS=$ac_save_IFS
|
---|
| 7169 | shift
|
---|
| 7170 | ac_file=$1
|
---|
| 7171 | shift
|
---|
[562] | 7172 |
|
---|
[22378] | 7173 | case $ac_mode in
|
---|
| 7174 | :L) ac_source=$1;;
|
---|
| 7175 | :[FH])
|
---|
| 7176 | ac_file_inputs=
|
---|
| 7177 | for ac_f
|
---|
| 7178 | do
|
---|
| 7179 | case $ac_f in
|
---|
| 7180 | -) ac_f="$tmp/stdin";;
|
---|
| 7181 | *) # Look for the file first in the build tree, then in the source tree
|
---|
| 7182 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
| 7183 | # because $ac_f cannot contain `:'.
|
---|
| 7184 | test -f "$ac_f" ||
|
---|
| 7185 | case $ac_f in
|
---|
| 7186 | [\\/$]*) false;;
|
---|
| 7187 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
| 7188 | esac ||
|
---|
| 7189 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
| 7190 | esac
|
---|
| 7191 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
| 7192 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
| 7193 | done
|
---|
| 7194 |
|
---|
| 7195 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7196 | # use $as_me), people would be surprised to read:
|
---|
| 7197 | # /* config.h. Generated by config.status. */
|
---|
| 7198 | configure_input='Generated from '`
|
---|
| 7199 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
| 7200 | `' by configure.'
|
---|
| 7201 | if test x"$ac_file" != x-; then
|
---|
| 7202 | configure_input="$ac_file. $configure_input"
|
---|
| 7203 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
| 7204 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7205 | fi
|
---|
| 7206 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
| 7207 | case $configure_input in #(
|
---|
| 7208 | *\&* | *\|* | *\\* )
|
---|
| 7209 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
| 7210 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
| 7211 | *) ac_sed_conf_input=$configure_input;;
|
---|
| 7212 | esac
|
---|
| 7213 |
|
---|
| 7214 | case $ac_tag in
|
---|
| 7215 | *:-:* | *:-) cat >"$tmp/stdin" \
|
---|
| 7216 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
|
---|
| 7217 | esac
|
---|
| 7218 | ;;
|
---|
| 7219 | esac
|
---|
| 7220 |
|
---|
| 7221 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
[8756] | 7222 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7223 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7224 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[22378] | 7225 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
| 7226 | $as_echo X"$ac_file" |
|
---|
| 7227 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
| 7228 | s//\1/
|
---|
| 7229 | q
|
---|
| 7230 | }
|
---|
| 7231 | /^X\(\/\/\)[^/].*/{
|
---|
| 7232 | s//\1/
|
---|
| 7233 | q
|
---|
| 7234 | }
|
---|
| 7235 | /^X\(\/\/\)$/{
|
---|
| 7236 | s//\1/
|
---|
| 7237 | q
|
---|
| 7238 | }
|
---|
| 7239 | /^X\(\/\).*/{
|
---|
| 7240 | s//\1/
|
---|
| 7241 | q
|
---|
| 7242 | }
|
---|
| 7243 | s/.*/./; q'`
|
---|
| 7244 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
[8756] | 7245 | ac_builddir=.
|
---|
| 7246 |
|
---|
[22378] | 7247 | case "$ac_dir" in
|
---|
| 7248 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7249 | *)
|
---|
| 7250 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 7251 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 7252 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 7253 | case $ac_top_builddir_sub in
|
---|
| 7254 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7255 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 7256 | esac ;;
|
---|
| 7257 | esac
|
---|
| 7258 | ac_abs_top_builddir=$ac_pwd
|
---|
| 7259 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 7260 | # for backward compatibility:
|
---|
| 7261 | ac_top_builddir=$ac_top_build_prefix
|
---|
[8756] | 7262 |
|
---|
| 7263 | case $srcdir in
|
---|
[22378] | 7264 | .) # We are building in place.
|
---|
[8756] | 7265 | ac_srcdir=.
|
---|
[22378] | 7266 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 7267 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 7268 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[8756] | 7269 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[22378] | 7270 | ac_top_srcdir=$srcdir
|
---|
| 7271 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 7272 | *) # Relative name.
|
---|
| 7273 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 7274 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 7275 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[8756] | 7276 | esac
|
---|
[22378] | 7277 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[8756] | 7278 |
|
---|
| 7279 |
|
---|
[22378] | 7280 | case $ac_mode in
|
---|
| 7281 | :F)
|
---|
| 7282 | #
|
---|
| 7283 | # CONFIG_FILE
|
---|
| 7284 | #
|
---|
[8756] | 7285 |
|
---|
| 7286 | case $INSTALL in
|
---|
| 7287 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[22378] | 7288 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
[8200] | 7289 | esac
|
---|
[22378] | 7290 | _ACEOF
|
---|
[562] | 7291 |
|
---|
[22378] | 7292 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
| 7293 | # If the template does not know about datarootdir, expand it.
|
---|
| 7294 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
| 7295 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
| 7296 | ac_sed_dataroot='
|
---|
| 7297 | /datarootdir/ {
|
---|
| 7298 | p
|
---|
| 7299 | q
|
---|
| 7300 | }
|
---|
| 7301 | /@datadir@/p
|
---|
| 7302 | /@docdir@/p
|
---|
| 7303 | /@infodir@/p
|
---|
| 7304 | /@localedir@/p
|
---|
| 7305 | /@mandir@/p'
|
---|
| 7306 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
| 7307 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
| 7308 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
| 7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
| 7310 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
| 7311 | _ACEOF
|
---|
| 7312 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7313 | ac_datarootdir_hack='
|
---|
| 7314 | s&@datadir@&$datadir&g
|
---|
| 7315 | s&@docdir@&$docdir&g
|
---|
| 7316 | s&@infodir@&$infodir&g
|
---|
| 7317 | s&@localedir@&$localedir&g
|
---|
| 7318 | s&@mandir@&$mandir&g
|
---|
| 7319 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
| 7320 | esac
|
---|
| 7321 | _ACEOF
|
---|
[562] | 7322 |
|
---|
[22378] | 7323 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
| 7324 | # Shell code in configure.ac might set extrasub.
|
---|
| 7325 | # FIXME: do we really want to maintain this feature?
|
---|
| 7326 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
| 7327 | ac_sed_extra="$ac_vpsub
|
---|
[8756] | 7328 | $extrasub
|
---|
| 7329 | _ACEOF
|
---|
[22378] | 7330 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
[8756] | 7331 | :t
|
---|
| 7332 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[22378] | 7333 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
| 7334 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
| 7335 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
| 7336 | s&@srcdir@&$ac_srcdir&;t t
|
---|
| 7337 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
| 7338 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
| 7339 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
| 7340 | s&@builddir@&$ac_builddir&;t t
|
---|
| 7341 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
| 7342 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
| 7343 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
| 7344 | $ac_datarootdir_hack
|
---|
| 7345 | "
|
---|
| 7346 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
|
---|
| 7347 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
[8756] | 7348 |
|
---|
[22378] | 7349 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
| 7350 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
| 7351 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
| 7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
| 7353 | which seems to be undefined. Please make sure it is defined." >&5
|
---|
| 7354 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
| 7355 | which seems to be undefined. Please make sure it is defined." >&2;}
|
---|
[8756] | 7356 |
|
---|
[22378] | 7357 | rm -f "$tmp/stdin"
|
---|
[8756] | 7358 | case $ac_file in
|
---|
[22378] | 7359 | -) cat "$tmp/out" && rm -f "$tmp/out";;
|
---|
| 7360 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
|
---|
| 7361 | esac \
|
---|
| 7362 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
| 7363 | ;;
|
---|
| 7364 | :H)
|
---|
| 7365 | #
|
---|
| 7366 | # CONFIG_HEADER
|
---|
| 7367 | #
|
---|
[8756] | 7368 | if test x"$ac_file" != x-; then
|
---|
[22378] | 7369 | {
|
---|
| 7370 | $as_echo "/* $configure_input */" \
|
---|
| 7371 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
|
---|
| 7372 | } >"$tmp/config.h" \
|
---|
| 7373 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
| 7374 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
|
---|
| 7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
| 7376 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
[8756] | 7377 | else
|
---|
[22378] | 7378 | rm -f "$ac_file"
|
---|
| 7379 | mv "$tmp/config.h" "$ac_file" \
|
---|
| 7380 | || as_fn_error "could not create $ac_file" "$LINENO" 5
|
---|
[687] | 7381 | fi
|
---|
[8756] | 7382 | else
|
---|
[22378] | 7383 | $as_echo "/* $configure_input */" \
|
---|
| 7384 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
|
---|
| 7385 | || as_fn_error "could not create -" "$LINENO" 5
|
---|
[687] | 7386 | fi
|
---|
[22378] | 7387 | ;;
|
---|
[8200] | 7388 |
|
---|
[687] | 7389 |
|
---|
[22378] | 7390 | esac
|
---|
| 7391 |
|
---|
| 7392 | done # for ac_tag
|
---|
| 7393 |
|
---|
| 7394 |
|
---|
| 7395 | as_fn_exit 0
|
---|
[8756] | 7396 | _ACEOF
|
---|
| 7397 | ac_clean_files=$ac_clean_files_save
|
---|
[562] | 7398 |
|
---|
[22378] | 7399 | test $ac_write_fail = 0 ||
|
---|
| 7400 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
[8756] | 7401 |
|
---|
[22378] | 7402 |
|
---|
[8756] | 7403 | # configure is writing to config.log, and then calls config.status.
|
---|
| 7404 | # config.status does its own redirection, appending to config.log.
|
---|
| 7405 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 7406 | # by configure, so config.status won't be able to write to it; its
|
---|
| 7407 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 7408 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 7409 | # appended to by config.status. When coming back to configure, we
|
---|
| 7410 | # need to make the FD available again.
|
---|
| 7411 | if test "$no_create" != yes; then
|
---|
| 7412 | ac_cs_success=:
|
---|
| 7413 | ac_config_status_args=
|
---|
| 7414 | test "$silent" = yes &&
|
---|
| 7415 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 7416 | exec 5>/dev/null
|
---|
| 7417 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 7418 | exec 5>>config.log
|
---|
| 7419 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 7420 | # would make configure fail if this is the last instruction.
|
---|
[22378] | 7421 | $ac_cs_success || as_fn_exit $?
|
---|
[8756] | 7422 | fi
|
---|
| 7423 |
|
---|
| 7424 | #
|
---|
| 7425 | # CONFIG_SUBDIRS section.
|
---|
| 7426 | #
|
---|
[1675] | 7427 | if test "$no_recursion" != yes; then
|
---|
[562] | 7428 |
|
---|
[22378] | 7429 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments
|
---|
| 7430 | # so they do not pile up.
|
---|
[1675] | 7431 | ac_sub_configure_args=
|
---|
| 7432 | ac_prev=
|
---|
[22378] | 7433 | eval "set x $ac_configure_args"
|
---|
| 7434 | shift
|
---|
| 7435 | for ac_arg
|
---|
| 7436 | do
|
---|
[1675] | 7437 | if test -n "$ac_prev"; then
|
---|
| 7438 | ac_prev=
|
---|
| 7439 | continue
|
---|
| 7440 | fi
|
---|
[8756] | 7441 | case $ac_arg in
|
---|
[1675] | 7442 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 7443 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 7444 | ac_prev=cache_file ;;
|
---|
| 7445 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
[8756] | 7446 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 7447 | | --c=*)
|
---|
[1675] | 7448 | ;;
|
---|
[8756] | 7449 | --config-cache | -C)
|
---|
| 7450 | ;;
|
---|
[1675] | 7451 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 7452 | ac_prev=srcdir ;;
|
---|
| 7453 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 7454 | ;;
|
---|
[8756] | 7455 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 7456 | ac_prev=prefix ;;
|
---|
| 7457 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 7458 | ;;
|
---|
[22378] | 7459 | --disable-option-checking)
|
---|
| 7460 | ;;
|
---|
| 7461 | *)
|
---|
| 7462 | case $ac_arg in
|
---|
| 7463 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 7464 | esac
|
---|
| 7465 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
|
---|
[1675] | 7466 | esac
|
---|
| 7467 | done
|
---|
[562] | 7468 |
|
---|
[8756] | 7469 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 7470 | # in subdir configurations.
|
---|
[22378] | 7471 | ac_arg="--prefix=$prefix"
|
---|
| 7472 | case $ac_arg in
|
---|
| 7473 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 7474 | esac
|
---|
| 7475 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
|
---|
[1570] | 7476 |
|
---|
[22378] | 7477 | # Pass --silent
|
---|
| 7478 | if test "$silent" = yes; then
|
---|
| 7479 | ac_sub_configure_args="--silent $ac_sub_configure_args"
|
---|
| 7480 | fi
|
---|
| 7481 |
|
---|
| 7482 | # Always prepend --disable-option-checking to silence warnings, since
|
---|
| 7483 | # different subdirs can have different --enable and --with options.
|
---|
| 7484 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
|
---|
| 7485 |
|
---|
[8756] | 7486 | ac_popdir=`pwd`
|
---|
| 7487 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 7488 |
|
---|
[1675] | 7489 | # Do not complain, so a configure script can configure whichever
|
---|
| 7490 | # parts of a large source tree are present.
|
---|
[22378] | 7491 | test -d "$srcdir/$ac_dir" || continue
|
---|
[1675] | 7492 |
|
---|
[22378] | 7493 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
|
---|
| 7494 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
|
---|
| 7495 | $as_echo "$ac_msg" >&6
|
---|
| 7496 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
[8756] | 7497 | ac_builddir=.
|
---|
[1675] | 7498 |
|
---|
[22378] | 7499 | case "$ac_dir" in
|
---|
| 7500 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7501 | *)
|
---|
| 7502 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
| 7503 | # A ".." for each directory in $ac_dir_suffix.
|
---|
| 7504 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
| 7505 | case $ac_top_builddir_sub in
|
---|
| 7506 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
| 7507 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
| 7508 | esac ;;
|
---|
| 7509 | esac
|
---|
| 7510 | ac_abs_top_builddir=$ac_pwd
|
---|
| 7511 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
| 7512 | # for backward compatibility:
|
---|
| 7513 | ac_top_builddir=$ac_top_build_prefix
|
---|
[1675] | 7514 |
|
---|
[8756] | 7515 | case $srcdir in
|
---|
[22378] | 7516 | .) # We are building in place.
|
---|
[8756] | 7517 | ac_srcdir=.
|
---|
[22378] | 7518 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
| 7519 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
| 7520 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
[8756] | 7521 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[22378] | 7522 | ac_top_srcdir=$srcdir
|
---|
| 7523 | ac_abs_top_srcdir=$srcdir ;;
|
---|
| 7524 | *) # Relative name.
|
---|
| 7525 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
| 7526 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
| 7527 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
[8756] | 7528 | esac
|
---|
[22378] | 7529 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
[1675] | 7530 |
|
---|
| 7531 |
|
---|
[22378] | 7532 | cd "$ac_dir"
|
---|
[8756] | 7533 |
|
---|
[1675] | 7534 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[22378] | 7535 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
| 7536 | ac_sub_configure=$ac_srcdir/configure.gnu
|
---|
| 7537 | elif test -f "$ac_srcdir/configure"; then
|
---|
| 7538 | ac_sub_configure=$ac_srcdir/configure
|
---|
| 7539 | elif test -f "$ac_srcdir/configure.in"; then
|
---|
| 7540 | # This should be Cygnus configure.
|
---|
| 7541 | ac_sub_configure=$ac_aux_dir/configure
|
---|
[1675] | 7542 | else
|
---|
[22378] | 7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 7544 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[1675] | 7545 | ac_sub_configure=
|
---|
| 7546 | fi
|
---|
| 7547 |
|
---|
| 7548 | # The recursion is here.
|
---|
| 7549 | if test -n "$ac_sub_configure"; then
|
---|
| 7550 | # Make the cache file name correct relative to the subdirectory.
|
---|
[8756] | 7551 | case $cache_file in
|
---|
| 7552 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[22378] | 7553 | *) # Relative name.
|
---|
| 7554 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
|
---|
[1675] | 7555 | esac
|
---|
| 7556 |
|
---|
[22378] | 7557 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 7558 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[1675] | 7559 | # The eval makes quoting arguments work.
|
---|
[22378] | 7560 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
|
---|
| 7561 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
|
---|
| 7562 | as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
|
---|
[1675] | 7563 | fi
|
---|
| 7564 |
|
---|
[22378] | 7565 | cd "$ac_popdir"
|
---|
[1675] | 7566 | done
|
---|
| 7567 | fi
|
---|
[22378] | 7568 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
| 7569 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
| 7570 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
| 7571 | fi
|
---|
[1675] | 7572 |
|
---|
[8200] | 7573 |
|
---|
| 7574 |
|
---|